aorecomp

Anarchy Online classic in the browser

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


client/game/eer.dll/lifted-0002.c (198116B)


      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_2D004200(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(0x2D004200u);
     17 
     18 L_2D004200:
     19     PUSH32(esp, ebp); /* 0x2D004200: push ebp */
     20     ebp = esp; /* 0x2D004201: mov ebp, esp */
     21     eax = MEM32(ebp + 0x8); /* 0x2D004203: mov eax, dword ptr [ebp + 8] */
     22     ecx = MEM32(0x2D01752C); /* 0x2D004206: mov ecx, dword ptr [0x2d01752c] */
     23     PUSH32(esp, eax); /* 0x2D00420C: push eax */
     24     RECOMP_ICALL(MEM32(0x2D009330)); /* 0x2D00420D: call dword ptr [0x2d009330] */
     25     RECOMP_FLAGS_IN();
     26     ebp = POP32_VAL(esp); /* 0x2D004213: pop ebp */
     27     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D004214: ret 4 */
     28     RECOMP_REGS_OUT();
     29 }
     30 
     31 void sub_2D004220(void) {
     32     int _fpu_cmp = 0;
     33     uint32_t _cf = 0;
     34     int _df = 1;
     35     uint32_t _flag_k = FK_NONE;
     36     uint32_t _flag_a = 0, _flag_b = 0;
     37     uint32_t _itail_tgt = 0;
     38     RECOMP_REGS_LOCALS
     39     RECOMP_ENTER(0x2D004220u);
     40 
     41 L_2D004220:
     42     PUSH32(esp, ebp); /* 0x2D004220: push ebp */
     43     ebp = esp; /* 0x2D004221: mov ebp, esp */
     44     ecx = MEM32(0x2D01752C); /* 0x2D004223: mov ecx, dword ptr [0x2d01752c] */
     45     /* test ecx, ecx */ /* 0x2D004229: test ecx, ecx */
     46     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
     47     _cf = 0;
     48     _flag_k = FK_TEST;
     49     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00423F; /* 0x2D00422B: je 0x2d00423f */
     50 L_2D00422D:
     51     eax = MEM32(ebp + 0xC); /* 0x2D00422D: mov eax, dword ptr [ebp + 0xc] */
     52     edx = MEM32(ebp + 0x8); /* 0x2D004230: mov edx, dword ptr [ebp + 8] */
     53     PUSH32(esp, eax); /* 0x2D004233: push eax */
     54     PUSH32(esp, edx); /* 0x2D004234: push edx */
     55     RECOMP_ICALL(MEM32(0x2D009334)); /* 0x2D004235: call dword ptr [0x2d009334] */
     56     RECOMP_FLAGS_IN();
     57     ebp = POP32_VAL(esp); /* 0x2D00423B: pop ebp */
     58     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D00423C: ret 8 */
     59 L_2D00423F:
     60     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
     61     SET_LO8(eax, 0); /* 0x2D00423F: xor al, al */
     62     _cf = 0;
     63     _flag_k = FK_NARROW(FK_TEST, 24);
     64     ebp = POP32_VAL(esp); /* 0x2D004241: pop ebp */
     65     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D004242: ret 8 */
     66     RECOMP_REGS_OUT();
     67 }
     68 
     69 void sub_2D004250(void) {
     70     int _fpu_cmp = 0;
     71     uint32_t _cf = 0;
     72     int _df = 1;
     73     uint32_t _flag_k = FK_NONE;
     74     uint32_t _flag_a = 0, _flag_b = 0;
     75     uint32_t _itail_tgt = 0;
     76     RECOMP_REGS_LOCALS
     77     RECOMP_ENTER(0x2D004250u);
     78 
     79 L_2D004250:
     80     PUSH32(esp, ebp); /* 0x2D004250: push ebp */
     81     ebp = esp; /* 0x2D004251: mov ebp, esp */
     82     ecx = MEM32(0x2D01752C); /* 0x2D004253: mov ecx, dword ptr [0x2d01752c] */
     83     /* test ecx, ecx */ /* 0x2D004259: test ecx, ecx */
     84     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
     85     _cf = 0;
     86     _flag_k = FK_TEST;
     87     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00426B; /* 0x2D00425B: je 0x2d00426b */
     88 L_2D00425D:
     89     eax = MEM32(ebp + 0x8); /* 0x2D00425D: mov eax, dword ptr [ebp + 8] */
     90     PUSH32(esp, eax); /* 0x2D004260: push eax */
     91     RECOMP_ICALL(MEM32(0x2D009338)); /* 0x2D004261: call dword ptr [0x2d009338] */
     92     RECOMP_FLAGS_IN();
     93     ebp = POP32_VAL(esp); /* 0x2D004267: pop ebp */
     94     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D004268: ret 4 */
     95 L_2D00426B:
     96     fp_push(*(float*)&MEM32(0x2D009694)); /* 0x2D00426B: fld dword ptr [0x2d009694] */
     97     ebp = POP32_VAL(esp); /* 0x2D004271: pop ebp */
     98     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D004272: ret 4 */
     99     RECOMP_REGS_OUT();
    100 }
    101 
    102 void sub_2D004280(void) {
    103     int _fpu_cmp = 0;
    104     uint32_t _cf = 0;
    105     int _df = 1;
    106     uint32_t _flag_k = FK_NONE;
    107     uint32_t _flag_a = 0, _flag_b = 0;
    108     uint32_t _itail_tgt = 0;
    109     RECOMP_REGS_LOCALS
    110     RECOMP_ENTER(0x2D004280u);
    111 
    112 L_2D004280:
    113     PUSH32(esp, ebp); /* 0x2D004280: push ebp */
    114     ebp = esp; /* 0x2D004281: mov ebp, esp */
    115     eax = MEM32(ebp + 0xC); /* 0x2D004283: mov eax, dword ptr [ebp + 0xc] */
    116     ecx = MEM32(ebp + 0x8); /* 0x2D004286: mov ecx, dword ptr [ebp + 8] */
    117     PUSH32(esp, eax); /* 0x2D004289: push eax */
    118     PUSH32(esp, ecx); /* 0x2D00428A: push ecx */
    119     ecx = MEM32(0x2D01752C); /* 0x2D00428B: mov ecx, dword ptr [0x2d01752c] */
    120     RECOMP_ICALL(MEM32(0x2D00933C)); /* 0x2D004291: call dword ptr [0x2d00933c] */
    121     RECOMP_FLAGS_IN();
    122     ebp = POP32_VAL(esp); /* 0x2D004297: pop ebp */
    123     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D004298: ret 8 */
    124     RECOMP_REGS_OUT();
    125 }
    126 
    127 void sub_2D0042A0(void) {
    128     int _fpu_cmp = 0;
    129     uint32_t _cf = 0;
    130     int _df = 1;
    131     uint32_t _flag_k = FK_NONE;
    132     uint32_t _flag_a = 0, _flag_b = 0;
    133     uint32_t _itail_tgt = 0;
    134     RECOMP_REGS_LOCALS
    135     RECOMP_ENTER(0x2D0042A0u);
    136 
    137 L_2D0042A0:
    138     PUSH32(esp, ebp); /* 0x2D0042A0: push ebp */
    139     ebp = esp; /* 0x2D0042A1: mov ebp, esp */
    140     PUSH32(esp, esi); /* 0x2D0042A3: push esi */
    141     esi = MEM32(0x2D01752C); /* 0x2D0042A4: mov esi, dword ptr [0x2d01752c] */
    142     /* test esi, esi */ /* 0x2D0042AA: test esi, esi */
    143     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
    144     _cf = 0;
    145     _flag_k = FK_TEST;
    146     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0042BF; /* 0x2D0042AC: je 0x2d0042bf */
    147 L_2D0042AE:
    148     fp_push(*(float*)&MEM32(ebp + 0x8)); /* 0x2D0042AE: fld dword ptr [ebp + 8] */
    149     RECOMP_ICALL(0x2D0081B2u); /* 0x2D0042B1: call 0x2d0081b2 */ /* not lifted */
    150     RECOMP_FLAGS_IN();
    151     PUSH32(esp, eax); /* 0x2D0042B6: push eax */
    152     ecx = esi; /* 0x2D0042B7: mov ecx, esi */
    153     RECOMP_ICALL(MEM32(0x2D0091C4)); /* 0x2D0042B9: call dword ptr [0x2d0091c4] */
    154     RECOMP_FLAGS_IN();
    155 L_2D0042BF:
    156     esi = POP32_VAL(esp); /* 0x2D0042BF: pop esi */
    157     ebp = POP32_VAL(esp); /* 0x2D0042C0: pop ebp */
    158     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D0042C1: ret 4 */
    159     RECOMP_REGS_OUT();
    160 }
    161 
    162 void sub_2D0042D0(void) {
    163     int _fpu_cmp = 0;
    164     uint32_t _cf = 0;
    165     int _df = 1;
    166     uint32_t _flag_k = FK_NONE;
    167     uint32_t _flag_a = 0, _flag_b = 0;
    168     uint32_t _itail_tgt = 0;
    169     RECOMP_REGS_LOCALS
    170     RECOMP_ENTER(0x2D0042D0u);
    171 
    172 L_2D0042D0:
    173     PUSH32(esp, ebp); /* 0x2D0042D0: push ebp */
    174     ebp = esp; /* 0x2D0042D1: mov ebp, esp */
    175     PUSH32(esp, ecx); /* 0x2D0042D3: push ecx */
    176     ecx = MEM32(0x2D01752C); /* 0x2D0042D4: mov ecx, dword ptr [0x2d01752c] */
    177     RECOMP_ICALL(MEM32(0x2D009340)); /* 0x2D0042DA: call dword ptr [0x2d009340] */
    178     RECOMP_FLAGS_IN();
    179     MEM32(ebp + (-0x4)) = eax; /* 0x2D0042E0: mov dword ptr [ebp - 4], eax */
    180     fp_push((double)(int32_t)MEM32(ebp + (-0x4))); /* 0x2D0042E3: fild dword ptr [ebp - 4] */
    181     esp = ebp; /* 0x2D0042E6: mov esp, ebp */
    182     ebp = POP32_VAL(esp); /* 0x2D0042E8: pop ebp */
    183     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D0042E9: ret  */
    184     RECOMP_REGS_OUT();
    185 }
    186 
    187 void sub_2D0042F0(void) {
    188     int _fpu_cmp = 0;
    189     uint32_t _cf = 0;
    190     int _df = 1;
    191     uint32_t _flag_k = FK_NONE;
    192     uint32_t _flag_a = 0, _flag_b = 0;
    193     uint32_t _itail_tgt = 0;
    194     RECOMP_REGS_LOCALS
    195     RECOMP_ENTER(0x2D0042F0u);
    196 
    197 L_2D0042F0:
    198     PUSH32(esp, ebp); /* 0x2D0042F0: push ebp */
    199     ebp = esp; /* 0x2D0042F1: mov ebp, esp */
    200     eax = MEM32(ebp + 0x8); /* 0x2D0042F3: mov eax, dword ptr [ebp + 8] */
    201     ecx = MEM32(0x2D01752C); /* 0x2D0042F6: mov ecx, dword ptr [0x2d01752c] */
    202     PUSH32(esp, eax); /* 0x2D0042FC: push eax */
    203     RECOMP_ICALL(MEM32(0x2D009344)); /* 0x2D0042FD: call dword ptr [0x2d009344] */
    204     RECOMP_FLAGS_IN();
    205     ebp = POP32_VAL(esp); /* 0x2D004303: pop ebp */
    206     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D004304: ret 4 */
    207     RECOMP_REGS_OUT();
    208 }
    209 
    210 void sub_2D004310(void) {
    211     int _fpu_cmp = 0;
    212     uint32_t _cf = 0;
    213     int _df = 1;
    214     uint32_t _flag_k = FK_NONE;
    215     uint32_t _flag_a = 0, _flag_b = 0;
    216     uint32_t _itail_tgt = 0;
    217     RECOMP_REGS_LOCALS
    218     RECOMP_ENTER(0x2D004310u);
    219 
    220 L_2D004310:
    221     PUSH32(esp, ebp); /* 0x2D004310: push ebp */
    222     ebp = esp; /* 0x2D004311: mov ebp, esp */
    223     ecx = MEM32(0x2D01752C); /* 0x2D004313: mov ecx, dword ptr [0x2d01752c] */
    224     /* test ecx, ecx */ /* 0x2D004319: test ecx, ecx */
    225     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    226     _cf = 0;
    227     _flag_k = FK_TEST;
    228     if (TEST_Z(_flag_a, _flag_b)) goto L_2D004327; /* 0x2D00431B: je 0x2d004327 */
    229 L_2D00431D:
    230     eax = MEM32(ebp + 0x8); /* 0x2D00431D: mov eax, dword ptr [ebp + 8] */
    231     PUSH32(esp, eax); /* 0x2D004320: push eax */
    232     RECOMP_ICALL(MEM32(0x2D009348)); /* 0x2D004321: call dword ptr [0x2d009348] */
    233     RECOMP_FLAGS_IN();
    234 L_2D004327:
    235     ebp = POP32_VAL(esp); /* 0x2D004327: pop ebp */
    236     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D004328: ret 4 */
    237     RECOMP_REGS_OUT();
    238 }
    239 
    240 void sub_2D004330(void) {
    241     int _fpu_cmp = 0;
    242     uint32_t _cf = 0;
    243     int _df = 1;
    244     uint32_t _flag_k = FK_NONE;
    245     uint32_t _flag_a = 0, _flag_b = 0;
    246     uint32_t _itail_tgt = 0;
    247     RECOMP_REGS_LOCALS
    248     RECOMP_ENTER(0x2D004330u);
    249 
    250 L_2D004330:
    251     PUSH32(esp, ebp); /* 0x2D004330: push ebp */
    252     ebp = esp; /* 0x2D004331: mov ebp, esp */
    253     ecx = MEM32(0x2D01752C); /* 0x2D004333: mov ecx, dword ptr [0x2d01752c] */
    254     /* test ecx, ecx */ /* 0x2D004339: test ecx, ecx */
    255     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    256     _cf = 0;
    257     _flag_k = FK_TEST;
    258     if (TEST_Z(_flag_a, _flag_b)) goto L_2D004353; /* 0x2D00433B: je 0x2d004353 */
    259 L_2D00433D:
    260     eax = MEM32(ebp + 0x10); /* 0x2D00433D: mov eax, dword ptr [ebp + 0x10] */
    261     edx = MEM32(ebp + 0xC); /* 0x2D004340: mov edx, dword ptr [ebp + 0xc] */
    262     PUSH32(esp, eax); /* 0x2D004343: push eax */
    263     eax = MEM32(ebp + 0x8); /* 0x2D004344: mov eax, dword ptr [ebp + 8] */
    264     PUSH32(esp, edx); /* 0x2D004347: push edx */
    265     PUSH32(esp, eax); /* 0x2D004348: push eax */
    266     RECOMP_ICALL(MEM32(0x2D00934C)); /* 0x2D004349: call dword ptr [0x2d00934c] */
    267     RECOMP_FLAGS_IN();
    268     ebp = POP32_VAL(esp); /* 0x2D00434F: pop ebp */
    269     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2D004350: ret 0xc */
    270 L_2D004353:
    271     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
    272     SET_LO8(eax, 0); /* 0x2D004353: xor al, al */
    273     _cf = 0;
    274     _flag_k = FK_NARROW(FK_TEST, 24);
    275     ebp = POP32_VAL(esp); /* 0x2D004355: pop ebp */
    276     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x2D004356: ret 0xc */
    277     RECOMP_REGS_OUT();
    278 }
    279 
    280 void sub_2D004360(void) {
    281     int _fpu_cmp = 0;
    282     uint32_t _cf = 0;
    283     int _df = 1;
    284     uint32_t _flag_k = FK_NONE;
    285     uint32_t _flag_a = 0, _flag_b = 0;
    286     uint32_t _itail_tgt = 0;
    287     RECOMP_REGS_LOCALS
    288     RECOMP_ENTER(0x2D004360u);
    289 
    290 L_2D004360:
    291     ecx = MEM32(0x2D01752C); /* 0x2D004360: mov ecx, dword ptr [0x2d01752c] */
    292 L_2D004366:
    293     /* test ecx, ecx */ /* 0x2D004366: test ecx, ecx */
    294     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    295     _cf = 0;
    296     _flag_k = FK_TEST;
    297 L_2D004368:
    298     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2D004370; /* 0x2D004368: je 0x2d004370 */
    299 L_2D00436A:
    300     { _itail_tgt = (uint32_t)(MEM32(0x2D009350)); goto _ljump; }
    301 L_2D004370:
    302     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    303     eax = 0; /* 0x2D004370: xor eax, eax */
    304     _cf = 0;
    305     _flag_k = FK_TEST;
    306 L_2D004372:
    307     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D004372: ret  */
    308   _ljump:
    309     switch (_itail_tgt) {
    310       case 0x2D004360u: goto L_2D004360;
    311       case 0x2D004366u: goto L_2D004366;
    312       case 0x2D004368u: goto L_2D004368;
    313       case 0x2D00436Au: goto L_2D00436A;
    314       case 0x2D004370u: goto L_2D004370;
    315       case 0x2D004372u: goto L_2D004372;
    316       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    317     }
    318     RECOMP_REGS_OUT();
    319 }
    320 
    321 void sub_2D004380(void) {
    322     int _fpu_cmp = 0;
    323     uint32_t _cf = 0;
    324     int _df = 1;
    325     uint32_t _flag_k = FK_NONE;
    326     uint32_t _flag_a = 0, _flag_b = 0;
    327     uint32_t _itail_tgt = 0;
    328     RECOMP_REGS_LOCALS
    329     RECOMP_ENTER(0x2D004380u);
    330 
    331 L_2D004380:
    332     PUSH32(esp, ebp); /* 0x2D004380: push ebp */
    333     ebp = esp; /* 0x2D004381: mov ebp, esp */
    334     ecx = MEM32(0x2D01752C); /* 0x2D004383: mov ecx, dword ptr [0x2d01752c] */
    335     /* test ecx, ecx */ /* 0x2D004389: test ecx, ecx */
    336     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    337     _cf = 0;
    338     _flag_k = FK_TEST;
    339     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00439F; /* 0x2D00438B: je 0x2d00439f */
    340 L_2D00438D:
    341     eax = MEM32(ebp + 0xC); /* 0x2D00438D: mov eax, dword ptr [ebp + 0xc] */
    342     edx = MEM32(ebp + 0x8); /* 0x2D004390: mov edx, dword ptr [ebp + 8] */
    343     PUSH32(esp, eax); /* 0x2D004393: push eax */
    344     PUSH32(esp, edx); /* 0x2D004394: push edx */
    345     RECOMP_ICALL(MEM32(0x2D009354)); /* 0x2D004395: call dword ptr [0x2d009354] */
    346     RECOMP_FLAGS_IN();
    347     ebp = POP32_VAL(esp); /* 0x2D00439B: pop ebp */
    348     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D00439C: ret 8 */
    349 L_2D00439F:
    350     eax = 0x499602D2u; /* 0x2D00439F: mov eax, 0x499602d2 */
    351     ebp = POP32_VAL(esp); /* 0x2D0043A4: pop ebp */
    352     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D0043A5: ret 8 */
    353     RECOMP_REGS_OUT();
    354 }
    355 
    356 void sub_2D0043B0(void) {
    357     int _fpu_cmp = 0;
    358     uint32_t _cf = 0;
    359     int _df = 1;
    360     uint32_t _flag_k = FK_NONE;
    361     uint32_t _flag_a = 0, _flag_b = 0;
    362     uint32_t _itail_tgt = 0;
    363     RECOMP_REGS_LOCALS
    364     RECOMP_ENTER(0x2D0043B0u);
    365 
    366 L_2D0043B0:
    367     PUSH32(esp, ebp); /* 0x2D0043B0: push ebp */
    368     ebp = esp; /* 0x2D0043B1: mov ebp, esp */
    369     ecx = MEM32(0x2D01752C); /* 0x2D0043B3: mov ecx, dword ptr [0x2d01752c] */
    370     /* test ecx, ecx */ /* 0x2D0043B9: test ecx, ecx */
    371     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    372     _cf = 0;
    373     _flag_k = FK_TEST;
    374     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0043CB; /* 0x2D0043BB: je 0x2d0043cb */
    375 L_2D0043BD:
    376     eax = MEM32(ebp + 0x8); /* 0x2D0043BD: mov eax, dword ptr [ebp + 8] */
    377     PUSH32(esp, eax); /* 0x2D0043C0: push eax */
    378     RECOMP_ICALL(MEM32(0x2D009358)); /* 0x2D0043C1: call dword ptr [0x2d009358] */
    379     RECOMP_FLAGS_IN();
    380     ebp = POP32_VAL(esp); /* 0x2D0043C7: pop ebp */
    381     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D0043C8: ret 4 */
    382 L_2D0043CB:
    383     eax = 0x499602D2u; /* 0x2D0043CB: mov eax, 0x499602d2 */
    384     ebp = POP32_VAL(esp); /* 0x2D0043D0: pop ebp */
    385     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D0043D1: ret 4 */
    386     RECOMP_REGS_OUT();
    387 }
    388 
    389 void sub_2D0043E0(void) {
    390     int _fpu_cmp = 0;
    391     uint32_t _cf = 0;
    392     int _df = 1;
    393     uint32_t _flag_k = FK_NONE;
    394     uint32_t _flag_a = 0, _flag_b = 0;
    395     uint32_t _itail_tgt = 0;
    396     RECOMP_REGS_LOCALS
    397     RECOMP_ENTER(0x2D0043E0u);
    398 
    399 L_2D0043E0:
    400     PUSH32(esp, ebp); /* 0x2D0043E0: push ebp */
    401     ebp = esp; /* 0x2D0043E1: mov ebp, esp */
    402     ecx = MEM32(0x2D01752C); /* 0x2D0043E3: mov ecx, dword ptr [0x2d01752c] */
    403     /* test ecx, ecx */ /* 0x2D0043E9: test ecx, ecx */
    404     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    405     _cf = 0;
    406     _flag_k = FK_TEST;
    407     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0043FB; /* 0x2D0043EB: je 0x2d0043fb */
    408 L_2D0043ED:
    409     eax = MEM32(ebp + 0x8); /* 0x2D0043ED: mov eax, dword ptr [ebp + 8] */
    410     PUSH32(esp, eax); /* 0x2D0043F0: push eax */
    411     RECOMP_ICALL(MEM32(0x2D00935C)); /* 0x2D0043F1: call dword ptr [0x2d00935c] */
    412     RECOMP_FLAGS_IN();
    413     ebp = POP32_VAL(esp); /* 0x2D0043F7: pop ebp */
    414     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D0043F8: ret 4 */
    415 L_2D0043FB:
    416     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
    417     SET_LO8(eax, 0); /* 0x2D0043FB: xor al, al */
    418     _cf = 0;
    419     _flag_k = FK_NARROW(FK_TEST, 24);
    420     ebp = POP32_VAL(esp); /* 0x2D0043FD: pop ebp */
    421     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D0043FE: ret 4 */
    422     RECOMP_REGS_OUT();
    423 }
    424 
    425 void sub_2D004410(void) {
    426     int _fpu_cmp = 0;
    427     uint32_t _cf = 0;
    428     int _df = 1;
    429     uint32_t _flag_k = FK_NONE;
    430     uint32_t _flag_a = 0, _flag_b = 0;
    431     uint32_t _itail_tgt = 0;
    432     RECOMP_REGS_LOCALS
    433     RECOMP_ENTER(0x2D004410u);
    434 
    435 L_2D004410:
    436     PUSH32(esp, ebp); /* 0x2D004410: push ebp */
    437     ebp = esp; /* 0x2D004411: mov ebp, esp */
    438     ecx = MEM32(0x2D01752C); /* 0x2D004413: mov ecx, dword ptr [0x2d01752c] */
    439     /* test ecx, ecx */ /* 0x2D004419: test ecx, ecx */
    440     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    441     _cf = 0;
    442     _flag_k = FK_TEST;
    443     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00442B; /* 0x2D00441B: je 0x2d00442b */
    444 L_2D00441D:
    445     eax = MEM32(ebp + 0x8); /* 0x2D00441D: mov eax, dword ptr [ebp + 8] */
    446     PUSH32(esp, eax); /* 0x2D004420: push eax */
    447     RECOMP_ICALL(MEM32(0x2D009360)); /* 0x2D004421: call dword ptr [0x2d009360] */
    448     RECOMP_FLAGS_IN();
    449     ebp = POP32_VAL(esp); /* 0x2D004427: pop ebp */
    450     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D004428: ret 4 */
    451 L_2D00442B:
    452     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
    453     SET_LO8(eax, 0); /* 0x2D00442B: xor al, al */
    454     _cf = 0;
    455     _flag_k = FK_NARROW(FK_TEST, 24);
    456     ebp = POP32_VAL(esp); /* 0x2D00442D: pop ebp */
    457     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D00442E: ret 4 */
    458     RECOMP_REGS_OUT();
    459 }
    460 
    461 void sub_2D004440(void) {
    462     int _fpu_cmp = 0;
    463     uint32_t _cf = 0;
    464     int _df = 1;
    465     uint32_t _flag_k = FK_NONE;
    466     uint32_t _flag_a = 0, _flag_b = 0;
    467     uint32_t _itail_tgt = 0;
    468     RECOMP_REGS_LOCALS
    469     RECOMP_ENTER(0x2D004440u);
    470 
    471 L_2D004440:
    472     ecx = MEM32(0x2D01752C); /* 0x2D004440: mov ecx, dword ptr [0x2d01752c] */
    473 L_2D004446:
    474     /* test ecx, ecx */ /* 0x2D004446: test ecx, ecx */
    475     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    476     _cf = 0;
    477     _flag_k = FK_TEST;
    478 L_2D004448:
    479     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2D004450; /* 0x2D004448: je 0x2d004450 */
    480 L_2D00444A:
    481     { _itail_tgt = (uint32_t)(MEM32(0x2D009364)); goto _ljump; }
    482 L_2D004450:
    483     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    484     eax = 0; /* 0x2D004450: xor eax, eax */
    485     _cf = 0;
    486     _flag_k = FK_TEST;
    487 L_2D004452:
    488     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D004452: ret  */
    489   _ljump:
    490     switch (_itail_tgt) {
    491       case 0x2D004440u: goto L_2D004440;
    492       case 0x2D004446u: goto L_2D004446;
    493       case 0x2D004448u: goto L_2D004448;
    494       case 0x2D00444Au: goto L_2D00444A;
    495       case 0x2D004450u: goto L_2D004450;
    496       case 0x2D004452u: goto L_2D004452;
    497       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    498     }
    499     RECOMP_REGS_OUT();
    500 }
    501 
    502 void sub_2D004460(void) {
    503     int _fpu_cmp = 0;
    504     uint32_t _cf = 0;
    505     int _df = 1;
    506     uint32_t _flag_k = FK_NONE;
    507     uint32_t _flag_a = 0, _flag_b = 0;
    508     uint32_t _itail_tgt = 0;
    509     RECOMP_REGS_LOCALS
    510     RECOMP_ENTER(0x2D004460u);
    511 
    512 L_2D004460:
    513     PUSH32(esp, ebp); /* 0x2D004460: push ebp */
    514     ebp = esp; /* 0x2D004461: mov ebp, esp */
    515     ecx = MEM32(0x2D01752C); /* 0x2D004463: mov ecx, dword ptr [0x2d01752c] */
    516     /* test ecx, ecx */ /* 0x2D004469: test ecx, ecx */
    517     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    518     _cf = 0;
    519     _flag_k = FK_TEST;
    520     if (TEST_Z(_flag_a, _flag_b)) goto L_2D004477; /* 0x2D00446B: je 0x2d004477 */
    521 L_2D00446D:
    522     eax = MEM32(ebp + 0x8); /* 0x2D00446D: mov eax, dword ptr [ebp + 8] */
    523     PUSH32(esp, eax); /* 0x2D004470: push eax */
    524     RECOMP_ICALL(MEM32(0x2D009368)); /* 0x2D004471: call dword ptr [0x2d009368] */
    525     RECOMP_FLAGS_IN();
    526 L_2D004477:
    527     ebp = POP32_VAL(esp); /* 0x2D004477: pop ebp */
    528     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D004478: ret 4 */
    529     RECOMP_REGS_OUT();
    530 }
    531 
    532 void sub_2D004480(void) {
    533     int _fpu_cmp = 0;
    534     uint32_t _cf = 0;
    535     int _df = 1;
    536     uint32_t _flag_k = FK_NONE;
    537     uint32_t _flag_a = 0, _flag_b = 0;
    538     uint32_t _itail_tgt = 0;
    539     RECOMP_REGS_LOCALS
    540     RECOMP_ENTER(0x2D004480u);
    541 
    542 L_2D004480:
    543     PUSH32(esp, ebp); /* 0x2D004480: push ebp */
    544     ebp = esp; /* 0x2D004481: mov ebp, esp */
    545     ecx = MEM32(0x2D01752C); /* 0x2D004483: mov ecx, dword ptr [0x2d01752c] */
    546     /* test ecx, ecx */ /* 0x2D004489: test ecx, ecx */
    547     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    548     _cf = 0;
    549     _flag_k = FK_TEST;
    550     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00449F; /* 0x2D00448B: je 0x2d00449f */
    551 L_2D00448D:
    552     eax = MEM32(ebp + 0xC); /* 0x2D00448D: mov eax, dword ptr [ebp + 0xc] */
    553     edx = MEM32(ebp + 0x8); /* 0x2D004490: mov edx, dword ptr [ebp + 8] */
    554     PUSH32(esp, eax); /* 0x2D004493: push eax */
    555     PUSH32(esp, edx); /* 0x2D004494: push edx */
    556     RECOMP_ICALL(MEM32(0x2D00936C)); /* 0x2D004495: call dword ptr [0x2d00936c] */
    557     RECOMP_FLAGS_IN();
    558     ebp = POP32_VAL(esp); /* 0x2D00449B: pop ebp */
    559     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D00449C: ret 8 */
    560 L_2D00449F:
    561     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
    562     SET_LO8(eax, 0); /* 0x2D00449F: xor al, al */
    563     _cf = 0;
    564     _flag_k = FK_NARROW(FK_TEST, 24);
    565     ebp = POP32_VAL(esp); /* 0x2D0044A1: pop ebp */
    566     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D0044A2: ret 8 */
    567     RECOMP_REGS_OUT();
    568 }
    569 
    570 void sub_2D0044B0(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(0x2D0044B0u);
    579 
    580 L_2D0044B0:
    581     ecx = MEM32(0x2D01752C); /* 0x2D0044B0: mov ecx, dword ptr [0x2d01752c] */
    582 L_2D0044B6:
    583     /* test ecx, ecx */ /* 0x2D0044B6: test ecx, ecx */
    584     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    585     _cf = 0;
    586     _flag_k = FK_TEST;
    587 L_2D0044B8:
    588     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2D0044C0; /* 0x2D0044B8: je 0x2d0044c0 */
    589 L_2D0044BA:
    590     { _itail_tgt = (uint32_t)(MEM32(0x2D009370)); goto _ljump; }
    591 L_2D0044C0:
    592     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    593     eax = 0; /* 0x2D0044C0: xor eax, eax */
    594     _cf = 0;
    595     _flag_k = FK_TEST;
    596 L_2D0044C2:
    597     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D0044C2: ret  */
    598   _ljump:
    599     switch (_itail_tgt) {
    600       case 0x2D0044B0u: goto L_2D0044B0;
    601       case 0x2D0044B6u: goto L_2D0044B6;
    602       case 0x2D0044B8u: goto L_2D0044B8;
    603       case 0x2D0044BAu: goto L_2D0044BA;
    604       case 0x2D0044C0u: goto L_2D0044C0;
    605       case 0x2D0044C2u: goto L_2D0044C2;
    606       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    607     }
    608     RECOMP_REGS_OUT();
    609 }
    610 
    611 void sub_2D0044D0(void) {
    612     int _fpu_cmp = 0;
    613     uint32_t _cf = 0;
    614     int _df = 1;
    615     uint32_t _flag_k = FK_NONE;
    616     uint32_t _flag_a = 0, _flag_b = 0;
    617     uint32_t _itail_tgt = 0;
    618     RECOMP_REGS_LOCALS
    619     RECOMP_ENTER(0x2D0044D0u);
    620 
    621 L_2D0044D0:
    622     PUSH32(esp, ebp); /* 0x2D0044D0: push ebp */
    623     ebp = esp; /* 0x2D0044D1: mov ebp, esp */
    624     ecx = MEM32(0x2D01752C); /* 0x2D0044D3: mov ecx, dword ptr [0x2d01752c] */
    625     /* test ecx, ecx */ /* 0x2D0044D9: test ecx, ecx */
    626     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    627     _cf = 0;
    628     _flag_k = FK_TEST;
    629     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0044EB; /* 0x2D0044DB: je 0x2d0044eb */
    630 L_2D0044DD:
    631     eax = MEM32(ebp + 0x8); /* 0x2D0044DD: mov eax, dword ptr [ebp + 8] */
    632     PUSH32(esp, eax); /* 0x2D0044E0: push eax */
    633     RECOMP_ICALL(MEM32(0x2D009374)); /* 0x2D0044E1: call dword ptr [0x2d009374] */
    634     RECOMP_FLAGS_IN();
    635     ebp = POP32_VAL(esp); /* 0x2D0044E7: pop ebp */
    636     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D0044E8: ret 4 */
    637 L_2D0044EB:
    638     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    639     eax = 0; /* 0x2D0044EB: xor eax, eax */
    640     _cf = 0;
    641     _flag_k = FK_TEST;
    642     ebp = POP32_VAL(esp); /* 0x2D0044ED: pop ebp */
    643     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D0044EE: ret 4 */
    644     RECOMP_REGS_OUT();
    645 }
    646 
    647 void sub_2D004500(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(0x2D004500u);
    656 
    657 L_2D004500:
    658     ecx = MEM32(0x2D01752C); /* 0x2D004500: mov ecx, dword ptr [0x2d01752c] */
    659 L_2D004506:
    660     /* test ecx, ecx */ /* 0x2D004506: test ecx, ecx */
    661     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    662     _cf = 0;
    663     _flag_k = FK_TEST;
    664 L_2D004508:
    665     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2D004510; /* 0x2D004508: je 0x2d004510 */
    666 L_2D00450A:
    667     { _itail_tgt = (uint32_t)(MEM32(0x2D009378)); goto _ljump; }
    668 L_2D004510:
    669     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
    670     SET_LO8(eax, 0); /* 0x2D004510: xor al, al */
    671     _cf = 0;
    672     _flag_k = FK_NARROW(FK_TEST, 24);
    673 L_2D004512:
    674     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D004512: ret  */
    675   _ljump:
    676     switch (_itail_tgt) {
    677       case 0x2D004500u: goto L_2D004500;
    678       case 0x2D004506u: goto L_2D004506;
    679       case 0x2D004508u: goto L_2D004508;
    680       case 0x2D00450Au: goto L_2D00450A;
    681       case 0x2D004510u: goto L_2D004510;
    682       case 0x2D004512u: goto L_2D004512;
    683       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    684     }
    685     RECOMP_REGS_OUT();
    686 }
    687 
    688 void sub_2D004520(void) {
    689     int _fpu_cmp = 0;
    690     uint32_t _cf = 0;
    691     int _df = 1;
    692     uint32_t _flag_k = FK_NONE;
    693     uint32_t _flag_a = 0, _flag_b = 0;
    694     uint32_t _itail_tgt = 0;
    695     RECOMP_REGS_LOCALS
    696     RECOMP_ENTER(0x2D004520u);
    697 
    698 L_2D004520:
    699     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D004520: ret  */
    700     RECOMP_REGS_OUT();
    701 }
    702 
    703 void sub_2D004530(void) {
    704     int _fpu_cmp = 0;
    705     uint32_t _cf = 0;
    706     int _df = 1;
    707     uint32_t _flag_k = FK_NONE;
    708     uint32_t _flag_a = 0, _flag_b = 0;
    709     uint32_t _itail_tgt = 0;
    710     RECOMP_REGS_LOCALS
    711     RECOMP_ENTER(0x2D004530u);
    712 
    713 L_2D004530:
    714     SET_LO8(eax, MEM8(0x2D017536)); /* 0x2D004530: mov al, byte ptr [0x2d017536] */
    715     /* test LO8(eax), LO8(eax) */ /* 0x2D004535: test al, al */
    716     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
    717     _cf = 0;
    718     _flag_k = FK_NARROW(FK_TEST, 24);
    719     SET_LO8(eax, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x2D004537: sete al */
    720     MEM8(0x2D017536) = (uint8_t)(LO8(eax)); /* 0x2D00453A: mov byte ptr [0x2d017536], al */
    721     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D00453F: ret  */
    722     RECOMP_REGS_OUT();
    723 }
    724 
    725 void sub_2D004540(void) {
    726     int _fpu_cmp = 0;
    727     uint32_t _cf = 0;
    728     int _df = 1;
    729     uint32_t _flag_k = FK_NONE;
    730     uint32_t _flag_a = 0, _flag_b = 0;
    731     uint32_t _itail_tgt = 0;
    732     RECOMP_REGS_LOCALS
    733     RECOMP_ENTER(0x2D004540u);
    734 
    735 L_2D004540:
    736     PUSH32(esp, 0x2D017510u); /* 0x2D004540: push 0x2d017510 */
    737     PUSH32(esp, 0x2D017520u); /* 0x2D004545: push 0x2d017520 */
    738     RECOMP_ICALL(MEM32(0x2D0090EC)); /* 0x2D00454A: call dword ptr [0x2d0090ec] */
    739     RECOMP_FLAGS_IN();
    740     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    741     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    742     esp = esp + 8; /* 0x2D004550: add esp, 8 */
    743     _flag_k = FK_ADD;
    744     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D004553: ret  */
    745     RECOMP_REGS_OUT();
    746 }
    747 
    748 void sub_2D004560(void) {
    749     int _fpu_cmp = 0;
    750     uint32_t _cf = 0;
    751     int _df = 1;
    752     uint32_t _flag_k = FK_NONE;
    753     uint32_t _flag_a = 0, _flag_b = 0;
    754     uint32_t _itail_tgt = 0;
    755     RECOMP_REGS_LOCALS
    756     RECOMP_ENTER(0x2D004560u);
    757 
    758 L_2D004560:
    759     PUSH32(esp, ebp); /* 0x2D004560: push ebp */
    760     ebp = esp; /* 0x2D004561: mov ebp, esp */
    761     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x3Cu);
    762     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    763     esp = esp - 0x3Cu; /* 0x2D004563: sub esp, 0x3c */
    764     _flag_k = FK_CMP;
    765     MEM32(ebp + (-0x24)) = 0; /* 0x2D004566: mov dword ptr [ebp - 0x24], 0 */
    766     eax = MEM32(ebp + (-0x24)); /* 0x2D00456D: mov eax, dword ptr [ebp - 0x24] */
    767     MEM32(ebp + (-0x20)) = 0; /* 0x2D004570: mov dword ptr [ebp - 0x20], 0 */
    768     ecx = MEM32(ebp + (-0x20)); /* 0x2D004577: mov ecx, dword ptr [ebp - 0x20] */
    769     MEM32(ebp + (-0xC)) = eax; /* 0x2D00457A: mov dword ptr [ebp - 0xc], eax */
    770     eax = MEM32(0x2D017510); /* 0x2D00457D: mov eax, dword ptr [0x2d017510] */
    771     MEM32(ebp + (-0x1C)) = 0x3F800000u; /* 0x2D004582: mov dword ptr [ebp - 0x1c], 0x3f800000 */
    772     edx = MEM32(ebp + (-0x1C)); /* 0x2D004589: mov edx, dword ptr [ebp - 0x1c] */
    773     MEM32(ebp + (-0x8)) = ecx; /* 0x2D00458C: mov dword ptr [ebp - 8], ecx */
    774     ecx = MEM32(0x2D017514); /* 0x2D00458F: mov ecx, dword ptr [0x2d017514] */
    775     MEM32(ebp + (-0x30)) = eax; /* 0x2D004595: mov dword ptr [ebp - 0x30], eax */
    776     MEM32(ebp + (-0x4)) = edx; /* 0x2D004598: mov dword ptr [ebp - 4], edx */
    777     edx = MEM32(0x2D017518); /* 0x2D00459B: mov edx, dword ptr [0x2d017518] */
    778     eax = ebp + (-0xC); /* 0x2D0045A1: lea eax, [ebp - 0xc] */
    779     MEM32(ebp + (-0x2C)) = ecx; /* 0x2D0045A4: mov dword ptr [ebp - 0x2c], ecx */
    780     PUSH32(esp, eax); /* 0x2D0045A7: push eax */
    781     ecx = ebp + (-0x30); /* 0x2D0045A8: lea ecx, [ebp - 0x30] */
    782     MEM32(ebp + (-0x28)) = edx; /* 0x2D0045AB: mov dword ptr [ebp - 0x28], edx */
    783     RECOMP_ICALL(MEM32(0x2D00960C)); /* 0x2D0045AE: call dword ptr [0x2d00960c] */
    784     RECOMP_FLAGS_IN();
    785     ecx = MEM32(eax); /* 0x2D0045B4: mov ecx, dword ptr [eax] */
    786     MEM32(ebp + (-0x24)) = ecx; /* 0x2D0045B6: mov dword ptr [ebp - 0x24], ecx */
    787     edx = MEM32(eax + 0x4); /* 0x2D0045B9: mov edx, dword ptr [eax + 4] */
    788     ecx = MEM32(0x2D017510); /* 0x2D0045BC: mov ecx, dword ptr [0x2d017510] */
    789     MEM32(ebp + (-0x20)) = edx; /* 0x2D0045C2: mov dword ptr [ebp - 0x20], edx */
    790     eax = MEM32(eax + 0x8); /* 0x2D0045C5: mov eax, dword ptr [eax + 8] */
    791     edx = MEM32(0x2D017514); /* 0x2D0045C8: mov edx, dword ptr [0x2d017514] */
    792     MEM32(ebp + (-0x3C)) = ecx; /* 0x2D0045CE: mov dword ptr [ebp - 0x3c], ecx */
    793     ecx = ebp + (-0x24); /* 0x2D0045D1: lea ecx, [ebp - 0x24] */
    794     MEM32(ebp + (-0x1C)) = eax; /* 0x2D0045D4: mov dword ptr [ebp - 0x1c], eax */
    795     eax = MEM32(0x2D017518); /* 0x2D0045D7: mov eax, dword ptr [0x2d017518] */
    796     PUSH32(esp, ecx); /* 0x2D0045DC: push ecx */
    797     ecx = ebp + (-0x3C); /* 0x2D0045DD: lea ecx, [ebp - 0x3c] */
    798     MEM32(ebp + (-0x38)) = edx; /* 0x2D0045E0: mov dword ptr [ebp - 0x38], edx */
    799     MEM32(ebp + (-0x34)) = eax; /* 0x2D0045E3: mov dword ptr [ebp - 0x34], eax */
    800     RECOMP_ICALL(MEM32(0x2D00960C)); /* 0x2D0045E6: call dword ptr [0x2d00960c] */
    801     RECOMP_FLAGS_IN();
    802     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D0045EC: fld dword ptr [0x2d01751c] */
    803     edx = MEM32(eax); /* 0x2D0045F2: mov edx, dword ptr [eax] */
    804     _st[0] += _st[0]; /* 0x2D0045F4: fadd st(0), st(0) */
    805     ecx = MEM32(eax + 0x4); /* 0x2D0045F6: mov ecx, dword ptr [eax + 4] */
    806     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x2D0045F9: fld dword ptr [ebp - 0x24] */
    807     MEM32(ebp + (-0x18)) = edx; /* 0x2D0045FC: mov dword ptr [ebp - 0x18], edx */
    808     edx = MEM32(eax + 0x8); /* 0x2D0045FF: mov edx, dword ptr [eax + 8] */
    809     _st[0] *= _st[1]; /* 0x2D004602: fmul st(1) */
    810     MEM32(ebp + (-0x14)) = ecx; /* 0x2D004604: mov dword ptr [ebp - 0x14], ecx */
    811     MEM32(ebp + (-0x10)) = edx; /* 0x2D004607: mov dword ptr [ebp - 0x10], edx */
    812     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x2D00460A: fstp dword ptr [ebp - 0x24] */
    813     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x2D00460D: fld dword ptr [ebp - 0x20] */
    814     _st[0] *= _st[1]; /* 0x2D004610: fmul st(1) */
    815     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x2D004612: fstp dword ptr [ebp - 0x20] */
    816     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x2D004615: fmul dword ptr [ebp - 0x1c] */
    817     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x2D004618: fld dword ptr [ebp - 0x18] */
    818     _st[0] += _st[0]; /* 0x2D00461B: fadd st(0), st(0) */
    819     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x2D00461D: fstp dword ptr [ebp - 0x18] */
    820     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x2D004620: fld dword ptr [ebp - 0x14] */
    821     _st[0] += _st[0]; /* 0x2D004623: fadd st(0), st(0) */
    822     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x2D004625: fstp dword ptr [ebp - 0x14] */
    823     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x2D004628: fld dword ptr [ebp - 0x10] */
    824     _st[0] += _st[0]; /* 0x2D00462B: fadd st(0), st(0) */
    825     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2D00462D: fstp dword ptr [ebp - 0x10] */
    826     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x2D004630: fld dword ptr [ebp - 0xc] */
    827     _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x2D004633: fadd dword ptr [ebp - 0x24] */
    828     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x2D004636: fstp dword ptr [ebp - 0xc] */
    829     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x2D004639: fld dword ptr [ebp - 0x20] */
    830     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x2D00463C: fadd dword ptr [ebp - 8] */
    831     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x2D00463F: fstp dword ptr [ebp - 8] */
    832     _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x2D004642: fadd dword ptr [ebp - 4] */
    833     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x2D004645: fld dword ptr [ebp - 0xc] */
    834     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D004648: fadd dword ptr [ebp - 0x18] */
    835     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x2D00464B: fstp dword ptr [ebp - 0xc] */
    836     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x2D00464E: fld dword ptr [ebp - 0x14] */
    837     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x2D004651: fadd dword ptr [ebp - 8] */
    838     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x2D004654: fstp dword ptr [ebp - 8] */
    839     _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D004657: fadd dword ptr [ebp - 0x10] */
    840     fp_push(*(float*)&MEM32(0x2D017520)); /* 0x2D00465A: fld dword ptr [0x2d017520] */
    841     _st[0] += (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D004660: fadd dword ptr [ebp - 0xc] */
    842     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D017520) = _v; } /* 0x2D004663: fstp dword ptr [0x2d017520] */
    843     fp_push(*(float*)&MEM32(0x2D017524)); /* 0x2D004669: fld dword ptr [0x2d017524] */
    844     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x2D00466F: fadd dword ptr [ebp - 8] */
    845     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D017524) = _v; } /* 0x2D004672: fstp dword ptr [0x2d017524] */
    846     fp_push(*(float*)&MEM32(0x2D017528)); /* 0x2D004678: fld dword ptr [0x2d017528] */
    847     _st[0] += _st[1]; /* 0x2D00467E: fadd st(1) */
    848     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D017528) = _v; } /* 0x2D004680: fstp dword ptr [0x2d017528] */
    849     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2D004686: fstp st(0) */
    850     esp = ebp; /* 0x2D004688: mov esp, ebp */
    851     ebp = POP32_VAL(esp); /* 0x2D00468A: pop ebp */
    852     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D00468B: ret  */
    853     RECOMP_REGS_OUT();
    854 }
    855 
    856 void sub_2D004690(void) {
    857     int _fpu_cmp = 0;
    858     uint32_t _cf = 0;
    859     int _df = 1;
    860     uint32_t _flag_k = FK_NONE;
    861     uint32_t _flag_a = 0, _flag_b = 0;
    862     uint32_t _itail_tgt = 0;
    863     RECOMP_REGS_LOCALS
    864     RECOMP_ENTER(0x2D004690u);
    865 
    866 L_2D004690:
    867     PUSH32(esp, ebp); /* 0x2D004690: push ebp */
    868     ebp = esp; /* 0x2D004691: mov ebp, esp */
    869     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x3Cu);
    870     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    871     esp = esp - 0x3Cu; /* 0x2D004693: sub esp, 0x3c */
    872     _flag_k = FK_CMP;
    873     MEM32(ebp + (-0x24)) = 0; /* 0x2D004696: mov dword ptr [ebp - 0x24], 0 */
    874     eax = MEM32(ebp + (-0x24)); /* 0x2D00469D: mov eax, dword ptr [ebp - 0x24] */
    875     MEM32(ebp + (-0x20)) = 0; /* 0x2D0046A0: mov dword ptr [ebp - 0x20], 0 */
    876     ecx = MEM32(ebp + (-0x20)); /* 0x2D0046A7: mov ecx, dword ptr [ebp - 0x20] */
    877     MEM32(ebp + (-0xC)) = eax; /* 0x2D0046AA: mov dword ptr [ebp - 0xc], eax */
    878     eax = MEM32(0x2D017510); /* 0x2D0046AD: mov eax, dword ptr [0x2d017510] */
    879     MEM32(ebp + (-0x1C)) = 0x3F800000u; /* 0x2D0046B2: mov dword ptr [ebp - 0x1c], 0x3f800000 */
    880     edx = MEM32(ebp + (-0x1C)); /* 0x2D0046B9: mov edx, dword ptr [ebp - 0x1c] */
    881     MEM32(ebp + (-0x8)) = ecx; /* 0x2D0046BC: mov dword ptr [ebp - 8], ecx */
    882     ecx = MEM32(0x2D017514); /* 0x2D0046BF: mov ecx, dword ptr [0x2d017514] */
    883     MEM32(ebp + (-0x30)) = eax; /* 0x2D0046C5: mov dword ptr [ebp - 0x30], eax */
    884     MEM32(ebp + (-0x4)) = edx; /* 0x2D0046C8: mov dword ptr [ebp - 4], edx */
    885     edx = MEM32(0x2D017518); /* 0x2D0046CB: mov edx, dword ptr [0x2d017518] */
    886     eax = ebp + (-0xC); /* 0x2D0046D1: lea eax, [ebp - 0xc] */
    887     MEM32(ebp + (-0x2C)) = ecx; /* 0x2D0046D4: mov dword ptr [ebp - 0x2c], ecx */
    888     PUSH32(esp, eax); /* 0x2D0046D7: push eax */
    889     ecx = ebp + (-0x30); /* 0x2D0046D8: lea ecx, [ebp - 0x30] */
    890     MEM32(ebp + (-0x28)) = edx; /* 0x2D0046DB: mov dword ptr [ebp - 0x28], edx */
    891     RECOMP_ICALL(MEM32(0x2D00960C)); /* 0x2D0046DE: call dword ptr [0x2d00960c] */
    892     RECOMP_FLAGS_IN();
    893     ecx = MEM32(eax); /* 0x2D0046E4: mov ecx, dword ptr [eax] */
    894     MEM32(ebp + (-0x24)) = ecx; /* 0x2D0046E6: mov dword ptr [ebp - 0x24], ecx */
    895     edx = MEM32(eax + 0x4); /* 0x2D0046E9: mov edx, dword ptr [eax + 4] */
    896     ecx = MEM32(0x2D017510); /* 0x2D0046EC: mov ecx, dword ptr [0x2d017510] */
    897     MEM32(ebp + (-0x20)) = edx; /* 0x2D0046F2: mov dword ptr [ebp - 0x20], edx */
    898     eax = MEM32(eax + 0x8); /* 0x2D0046F5: mov eax, dword ptr [eax + 8] */
    899     edx = MEM32(0x2D017514); /* 0x2D0046F8: mov edx, dword ptr [0x2d017514] */
    900     MEM32(ebp + (-0x3C)) = ecx; /* 0x2D0046FE: mov dword ptr [ebp - 0x3c], ecx */
    901     ecx = ebp + (-0x24); /* 0x2D004701: lea ecx, [ebp - 0x24] */
    902     MEM32(ebp + (-0x1C)) = eax; /* 0x2D004704: mov dword ptr [ebp - 0x1c], eax */
    903     eax = MEM32(0x2D017518); /* 0x2D004707: mov eax, dword ptr [0x2d017518] */
    904     PUSH32(esp, ecx); /* 0x2D00470C: push ecx */
    905     ecx = ebp + (-0x3C); /* 0x2D00470D: lea ecx, [ebp - 0x3c] */
    906     MEM32(ebp + (-0x38)) = edx; /* 0x2D004710: mov dword ptr [ebp - 0x38], edx */
    907     MEM32(ebp + (-0x34)) = eax; /* 0x2D004713: mov dword ptr [ebp - 0x34], eax */
    908     RECOMP_ICALL(MEM32(0x2D00960C)); /* 0x2D004716: call dword ptr [0x2d00960c] */
    909     RECOMP_FLAGS_IN();
    910     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D00471C: fld dword ptr [0x2d01751c] */
    911     edx = MEM32(eax); /* 0x2D004722: mov edx, dword ptr [eax] */
    912     _st[0] += _st[0]; /* 0x2D004724: fadd st(0), st(0) */
    913     ecx = MEM32(eax + 0x4); /* 0x2D004726: mov ecx, dword ptr [eax + 4] */
    914     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x2D004729: fld dword ptr [ebp - 0x24] */
    915     MEM32(ebp + (-0x18)) = edx; /* 0x2D00472C: mov dword ptr [ebp - 0x18], edx */
    916     edx = MEM32(eax + 0x8); /* 0x2D00472F: mov edx, dword ptr [eax + 8] */
    917     _st[0] *= _st[1]; /* 0x2D004732: fmul st(1) */
    918     MEM32(ebp + (-0x14)) = ecx; /* 0x2D004734: mov dword ptr [ebp - 0x14], ecx */
    919     MEM32(ebp + (-0x10)) = edx; /* 0x2D004737: mov dword ptr [ebp - 0x10], edx */
    920     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x2D00473A: fstp dword ptr [ebp - 0x24] */
    921     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x2D00473D: fld dword ptr [ebp - 0x20] */
    922     _st[0] *= _st[1]; /* 0x2D004740: fmul st(1) */
    923     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x2D004742: fstp dword ptr [ebp - 0x20] */
    924     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x2D004745: fmul dword ptr [ebp - 0x1c] */
    925     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x2D004748: fld dword ptr [ebp - 0x18] */
    926     _st[0] += _st[0]; /* 0x2D00474B: fadd st(0), st(0) */
    927     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x2D00474D: fstp dword ptr [ebp - 0x18] */
    928     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x2D004750: fld dword ptr [ebp - 0x14] */
    929     _st[0] += _st[0]; /* 0x2D004753: fadd st(0), st(0) */
    930     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x2D004755: fstp dword ptr [ebp - 0x14] */
    931     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x2D004758: fld dword ptr [ebp - 0x10] */
    932     _st[0] += _st[0]; /* 0x2D00475B: fadd st(0), st(0) */
    933     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2D00475D: fstp dword ptr [ebp - 0x10] */
    934     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x2D004760: fld dword ptr [ebp - 0xc] */
    935     _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x2D004763: fadd dword ptr [ebp - 0x24] */
    936     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x2D004766: fstp dword ptr [ebp - 0xc] */
    937     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x2D004769: fld dword ptr [ebp - 0x20] */
    938     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x2D00476C: fadd dword ptr [ebp - 8] */
    939     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x2D00476F: fstp dword ptr [ebp - 8] */
    940     _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x2D004772: fadd dword ptr [ebp - 4] */
    941     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x2D004775: fld dword ptr [ebp - 0xc] */
    942     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D004778: fadd dword ptr [ebp - 0x18] */
    943     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x2D00477B: fstp dword ptr [ebp - 0xc] */
    944     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x2D00477E: fld dword ptr [ebp - 0x14] */
    945     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x2D004781: fadd dword ptr [ebp - 8] */
    946     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x2D004784: fstp dword ptr [ebp - 8] */
    947     _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D004787: fadd dword ptr [ebp - 0x10] */
    948     fp_push(*(float*)&MEM32(0x2D017520)); /* 0x2D00478A: fld dword ptr [0x2d017520] */
    949     _st[0] -= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D004790: fsub dword ptr [ebp - 0xc] */
    950     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D017520) = _v; } /* 0x2D004793: fstp dword ptr [0x2d017520] */
    951     fp_push(*(float*)&MEM32(0x2D017524)); /* 0x2D004799: fld dword ptr [0x2d017524] */
    952     _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x2D00479F: fsub dword ptr [ebp - 8] */
    953     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D017524) = _v; } /* 0x2D0047A2: fstp dword ptr [0x2d017524] */
    954     fp_push(*(float*)&MEM32(0x2D017528)); /* 0x2D0047A8: fld dword ptr [0x2d017528] */
    955     _st[0] -= _st[1]; /* 0x2D0047AE: fsub st(1) */
    956     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D017528) = _v; } /* 0x2D0047B0: fstp dword ptr [0x2d017528] */
    957     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2D0047B6: fstp st(0) */
    958     esp = ebp; /* 0x2D0047B8: mov esp, ebp */
    959     ebp = POP32_VAL(esp); /* 0x2D0047BA: pop ebp */
    960     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D0047BB: ret  */
    961     RECOMP_REGS_OUT();
    962 }
    963 
    964 void sub_2D0047C0(void) {
    965     int _fpu_cmp = 0;
    966     uint32_t _cf = 0;
    967     int _df = 1;
    968     uint32_t _flag_k = FK_NONE;
    969     uint32_t _flag_a = 0, _flag_b = 0;
    970     uint32_t _itail_tgt = 0;
    971     RECOMP_REGS_LOCALS
    972     RECOMP_ENTER(0x2D0047C0u);
    973 
    974 L_2D0047C0:
    975     PUSH32(esp, ebp); /* 0x2D0047C0: push ebp */
    976     ebp = esp; /* 0x2D0047C1: mov ebp, esp */
    977     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
    978     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    979     esp = esp - 0x28u; /* 0x2D0047C3: sub esp, 0x28 */
    980     _flag_k = FK_CMP;
    981     PUSH32(esp, 0xBF7FFFFFu); /* 0x2D0047C6: push 0xbf7fffff */
    982     PUSH32(esp, 0xFFFFFFFFu); /* 0x2D0047CB: push -1 */
    983     RECOMP_ICALL(MEM32(0x2D009074)); /* 0x2D0047CD: call dword ptr [0x2d009074] */
    984     RECOMP_FLAGS_IN();
    985     _st[0] = (double)*(float*)ADDR(0x2D00969C) - _st[0]; /* 0x2D0047D3: fsubr dword ptr [0x2d00969c] */
    986     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    987     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    988     esp = esp + 8; /* 0x2D0047D9: add esp, 8 */
    989     _flag_k = FK_ADD;
    990     _st[0] *= (double)*(float*)ADDR(0x2D009698); /* 0x2D0047DC: fmul dword ptr [0x2d009698] */
    991     fp_push(_st[0]); /* 0x2D0047E2: fld st(0) */
    992     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x2D0047E4: fsin  */
    993     fp_push(*(float*)&MEM32(0x2D009694)); /* 0x2D0047E6: fld dword ptr [0x2d009694] */
    994     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x2D0047EC: fst dword ptr [ebp - 0x18] */
    995     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x2D0047EF: fstp dword ptr [ebp - 0x14] */
    996     eax = MEM32(ebp + (-0x18)); /* 0x2D0047F2: mov eax, dword ptr [ebp - 0x18] */
    997     ecx = MEM32(ebp + (-0x14)); /* 0x2D0047F5: mov ecx, dword ptr [ebp - 0x14] */
    998     MEM32(ebp + (-0x28)) = eax; /* 0x2D0047F8: mov dword ptr [ebp - 0x28], eax */
    999     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2D0047FB: fstp dword ptr [ebp - 0x10] */
   1000     edx = MEM32(ebp + (-0x10)); /* 0x2D0047FE: mov edx, dword ptr [ebp - 0x10] */
   1001     MEM32(ebp + (-0x24)) = ecx; /* 0x2D004801: mov dword ptr [ebp - 0x24], ecx */
   1002     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x2D004804: fcos  */
   1003     MEM32(ebp + (-0x20)) = edx; /* 0x2D004806: mov dword ptr [ebp - 0x20], edx */
   1004     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x2D004809: fstp dword ptr [ebp - 0xc] */
   1005     fp_push(*(float*)&MEM32(0x2D017514)); /* 0x2D00480C: fld dword ptr [0x2d017514] */
   1006     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D004812: fmul dword ptr [ebp - 0x10] */
   1007     eax = MEM32(ebp + (-0xC)); /* 0x2D004815: mov eax, dword ptr [ebp - 0xc] */
   1008     fp_push(*(float*)&MEM32(0x2D017510)); /* 0x2D004818: fld dword ptr [0x2d017510] */
   1009     MEM32(ebp + (-0x1C)) = eax; /* 0x2D00481E: mov dword ptr [ebp - 0x1c], eax */
   1010     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D004821: fmul dword ptr [ebp - 0xc] */
   1011     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D004824: faddp st(1) */
   1012     fp_push(*(float*)&MEM32(0x2D017518)); /* 0x2D004826: fld dword ptr [0x2d017518] */
   1013     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x2D00482C: fmul dword ptr [ebp - 0x14] */
   1014     { double _v = fp_pop(); _st[0] -= _v; } /* 0x2D00482F: fsubp st(1) */
   1015     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D004831: fld dword ptr [0x2d01751c] */
   1016     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D004837: fmul dword ptr [ebp - 0x18] */
   1017     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D00483A: faddp st(1) */
   1018     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D00483C: fld dword ptr [0x2d01751c] */
   1019     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x2D004842: fmul dword ptr [ebp - 0x14] */
   1020     fp_push(*(float*)&MEM32(0x2D017510)); /* 0x2D004845: fld dword ptr [0x2d017510] */
   1021     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D00484B: fmul dword ptr [ebp - 0x10] */
   1022     { double _v = fp_pop(); _st[0] -= _v; } /* 0x2D00484E: fsubp st(1) */
   1023     fp_push(*(float*)&MEM32(0x2D017514)); /* 0x2D004850: fld dword ptr [0x2d017514] */
   1024     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D004856: fmul dword ptr [ebp - 0xc] */
   1025     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D004859: faddp st(1) */
   1026     fp_push(*(float*)&MEM32(0x2D017518)); /* 0x2D00485B: fld dword ptr [0x2d017518] */
   1027     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D004861: fmul dword ptr [ebp - 0x18] */
   1028     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D004864: faddp st(1) */
   1029     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x2D004866: fstp dword ptr [ebp - 4] */
   1030     fp_push(*(float*)&MEM32(0x2D017510)); /* 0x2D004869: fld dword ptr [0x2d017510] */
   1031     ecx = MEM32(ebp + (-0x4)); /* 0x2D00486F: mov ecx, dword ptr [ebp - 4] */
   1032     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x2D004872: fmul dword ptr [ebp - 0x14] */
   1033     MEM32(ebp + (-0x24)) = ecx; /* 0x2D004875: mov dword ptr [ebp - 0x24], ecx */
   1034     fp_push(*(float*)&MEM32(0x2D017514)); /* 0x2D004878: fld dword ptr [0x2d017514] */
   1035     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D00487E: fmul dword ptr [ebp - 0x18] */
   1036     { double _v = fp_pop(); _st[0] -= _v; } /* 0x2D004881: fsubp st(1) */
   1037     fp_push(*(float*)&MEM32(0x2D017518)); /* 0x2D004883: fld dword ptr [0x2d017518] */
   1038     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D004889: fmul dword ptr [ebp - 0xc] */
   1039     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D00488C: faddp st(1) */
   1040     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D00488E: fld dword ptr [0x2d01751c] */
   1041     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D004894: fmul dword ptr [ebp - 0x10] */
   1042     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D004897: faddp st(1) */
   1043     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x2D004899: fstp dword ptr [ebp - 8] */
   1044     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D00489C: fld dword ptr [0x2d01751c] */
   1045     edx = MEM32(ebp + (-0x8)); /* 0x2D0048A2: mov edx, dword ptr [ebp - 8] */
   1046     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D0048A5: fmul dword ptr [ebp - 0xc] */
   1047     MEM32(ebp + (-0x20)) = edx; /* 0x2D0048A8: mov dword ptr [ebp - 0x20], edx */
   1048     fp_push(*(float*)&MEM32(0x2D017518)); /* 0x2D0048AB: fld dword ptr [0x2d017518] */
   1049     MEM32(0x2D017518) = edx; /* 0x2D0048B1: mov dword ptr [0x2d017518], edx */
   1050     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D0048B7: fmul dword ptr [ebp - 0x10] */
   1051     fp_push(*(float*)&MEM32(0x2D017514)); /* 0x2D0048BA: fld dword ptr [0x2d017514] */
   1052     MEM32(0x2D017514) = ecx; /* 0x2D0048C0: mov dword ptr [0x2d017514], ecx */
   1053     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x2D0048C6: fmul dword ptr [ebp - 0x14] */
   1054     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D0048C9: faddp st(1) */
   1055     fp_push(*(float*)&MEM32(0x2D017510)); /* 0x2D0048CB: fld dword ptr [0x2d017510] */
   1056     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D0048D1: fmul dword ptr [ebp - 0x18] */
   1057     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D0048D4: faddp st(1) */
   1058     { double _v = fp_pop(); _st[0] -= _v; } /* 0x2D0048D6: fsubp st(1) */
   1059     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x2D0048D8: fstp dword ptr [ebp - 0x1c] */
   1060     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x2D0048DB: fstp dword ptr [ebp - 0x28] */
   1061     eax = MEM32(ebp + (-0x28)); /* 0x2D0048DE: mov eax, dword ptr [ebp - 0x28] */
   1062     MEM32(0x2D017510) = eax; /* 0x2D0048E1: mov dword ptr [0x2d017510], eax */
   1063     eax = MEM32(ebp + (-0x1C)); /* 0x2D0048E6: mov eax, dword ptr [ebp - 0x1c] */
   1064     MEM32(0x2D01751C) = eax; /* 0x2D0048E9: mov dword ptr [0x2d01751c], eax */
   1065     esp = ebp; /* 0x2D0048EE: mov esp, ebp */
   1066     ebp = POP32_VAL(esp); /* 0x2D0048F0: pop ebp */
   1067     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D0048F1: ret  */
   1068     RECOMP_REGS_OUT();
   1069 }
   1070 
   1071 void sub_2D004900(void) {
   1072     int _fpu_cmp = 0;
   1073     uint32_t _cf = 0;
   1074     int _df = 1;
   1075     uint32_t _flag_k = FK_NONE;
   1076     uint32_t _flag_a = 0, _flag_b = 0;
   1077     uint32_t _itail_tgt = 0;
   1078     RECOMP_REGS_LOCALS
   1079     RECOMP_ENTER(0x2D004900u);
   1080 
   1081 L_2D004900:
   1082     PUSH32(esp, ebp); /* 0x2D004900: push ebp */
   1083     ebp = esp; /* 0x2D004901: mov ebp, esp */
   1084     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
   1085     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1086     esp = esp - 0x28u; /* 0x2D004903: sub esp, 0x28 */
   1087     _flag_k = FK_CMP;
   1088     fp_push(*(double*)ADDR(0x2D0096A0)); /* 0x2D004906: fld qword ptr [0x2d0096a0] */
   1089     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x2D00490C: fsin  */
   1090     fp_push(*(float*)&MEM32(0x2D009694)); /* 0x2D00490E: fld dword ptr [0x2d009694] */
   1091     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x2D004914: fst dword ptr [ebp - 0x18] */
   1092     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x2D004917: fstp dword ptr [ebp - 0x14] */
   1093     eax = MEM32(ebp + (-0x18)); /* 0x2D00491A: mov eax, dword ptr [ebp - 0x18] */
   1094     ecx = MEM32(ebp + (-0x14)); /* 0x2D00491D: mov ecx, dword ptr [ebp - 0x14] */
   1095     MEM32(ebp + (-0x28)) = eax; /* 0x2D004920: mov dword ptr [ebp - 0x28], eax */
   1096     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2D004923: fstp dword ptr [ebp - 0x10] */
   1097     edx = MEM32(ebp + (-0x10)); /* 0x2D004926: mov edx, dword ptr [ebp - 0x10] */
   1098     fp_push(*(double*)ADDR(0x2D0096A0)); /* 0x2D004929: fld qword ptr [0x2d0096a0] */
   1099     MEM32(ebp + (-0x24)) = ecx; /* 0x2D00492F: mov dword ptr [ebp - 0x24], ecx */
   1100     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x2D004932: fcos  */
   1101     MEM32(ebp + (-0x20)) = edx; /* 0x2D004934: mov dword ptr [ebp - 0x20], edx */
   1102     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x2D004937: fstp dword ptr [ebp - 0xc] */
   1103     fp_push(*(float*)&MEM32(0x2D017514)); /* 0x2D00493A: fld dword ptr [0x2d017514] */
   1104     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D004940: fmul dword ptr [ebp - 0x10] */
   1105     eax = MEM32(ebp + (-0xC)); /* 0x2D004943: mov eax, dword ptr [ebp - 0xc] */
   1106     fp_push(*(float*)&MEM32(0x2D017510)); /* 0x2D004946: fld dword ptr [0x2d017510] */
   1107     MEM32(ebp + (-0x1C)) = eax; /* 0x2D00494C: mov dword ptr [ebp - 0x1c], eax */
   1108     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D00494F: fmul dword ptr [ebp - 0xc] */
   1109     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D004952: faddp st(1) */
   1110     fp_push(*(float*)&MEM32(0x2D017518)); /* 0x2D004954: fld dword ptr [0x2d017518] */
   1111     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x2D00495A: fmul dword ptr [ebp - 0x14] */
   1112     { double _v = fp_pop(); _st[0] -= _v; } /* 0x2D00495D: fsubp st(1) */
   1113     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D00495F: fld dword ptr [0x2d01751c] */
   1114     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D004965: fmul dword ptr [ebp - 0x18] */
   1115     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D004968: faddp st(1) */
   1116     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D00496A: fld dword ptr [0x2d01751c] */
   1117     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x2D004970: fmul dword ptr [ebp - 0x14] */
   1118     fp_push(*(float*)&MEM32(0x2D017510)); /* 0x2D004973: fld dword ptr [0x2d017510] */
   1119     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D004979: fmul dword ptr [ebp - 0x10] */
   1120     { double _v = fp_pop(); _st[0] -= _v; } /* 0x2D00497C: fsubp st(1) */
   1121     fp_push(*(float*)&MEM32(0x2D017514)); /* 0x2D00497E: fld dword ptr [0x2d017514] */
   1122     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D004984: fmul dword ptr [ebp - 0xc] */
   1123     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D004987: faddp st(1) */
   1124     fp_push(*(float*)&MEM32(0x2D017518)); /* 0x2D004989: fld dword ptr [0x2d017518] */
   1125     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D00498F: fmul dword ptr [ebp - 0x18] */
   1126     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D004992: faddp st(1) */
   1127     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x2D004994: fstp dword ptr [ebp - 4] */
   1128     fp_push(*(float*)&MEM32(0x2D017510)); /* 0x2D004997: fld dword ptr [0x2d017510] */
   1129     ecx = MEM32(ebp + (-0x4)); /* 0x2D00499D: mov ecx, dword ptr [ebp - 4] */
   1130     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x2D0049A0: fmul dword ptr [ebp - 0x14] */
   1131     MEM32(ebp + (-0x24)) = ecx; /* 0x2D0049A3: mov dword ptr [ebp - 0x24], ecx */
   1132     fp_push(*(float*)&MEM32(0x2D017514)); /* 0x2D0049A6: fld dword ptr [0x2d017514] */
   1133     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D0049AC: fmul dword ptr [ebp - 0x18] */
   1134     { double _v = fp_pop(); _st[0] -= _v; } /* 0x2D0049AF: fsubp st(1) */
   1135     fp_push(*(float*)&MEM32(0x2D017518)); /* 0x2D0049B1: fld dword ptr [0x2d017518] */
   1136     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D0049B7: fmul dword ptr [ebp - 0xc] */
   1137     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D0049BA: faddp st(1) */
   1138     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D0049BC: fld dword ptr [0x2d01751c] */
   1139     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D0049C2: fmul dword ptr [ebp - 0x10] */
   1140     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D0049C5: faddp st(1) */
   1141     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x2D0049C7: fstp dword ptr [ebp - 8] */
   1142     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D0049CA: fld dword ptr [0x2d01751c] */
   1143     edx = MEM32(ebp + (-0x8)); /* 0x2D0049D0: mov edx, dword ptr [ebp - 8] */
   1144     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D0049D3: fmul dword ptr [ebp - 0xc] */
   1145     MEM32(ebp + (-0x20)) = edx; /* 0x2D0049D6: mov dword ptr [ebp - 0x20], edx */
   1146     fp_push(*(float*)&MEM32(0x2D017518)); /* 0x2D0049D9: fld dword ptr [0x2d017518] */
   1147     MEM32(0x2D017518) = edx; /* 0x2D0049DF: mov dword ptr [0x2d017518], edx */
   1148     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D0049E5: fmul dword ptr [ebp - 0x10] */
   1149     fp_push(*(float*)&MEM32(0x2D017514)); /* 0x2D0049E8: fld dword ptr [0x2d017514] */
   1150     MEM32(0x2D017514) = ecx; /* 0x2D0049EE: mov dword ptr [0x2d017514], ecx */
   1151     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x2D0049F4: fmul dword ptr [ebp - 0x14] */
   1152     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D0049F7: faddp st(1) */
   1153     fp_push(*(float*)&MEM32(0x2D017510)); /* 0x2D0049F9: fld dword ptr [0x2d017510] */
   1154     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D0049FF: fmul dword ptr [ebp - 0x18] */
   1155     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D004A02: faddp st(1) */
   1156     { double _v = fp_pop(); _st[0] -= _v; } /* 0x2D004A04: fsubp st(1) */
   1157     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x2D004A06: fstp dword ptr [ebp - 0x1c] */
   1158     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x2D004A09: fstp dword ptr [ebp - 0x28] */
   1159     eax = MEM32(ebp + (-0x28)); /* 0x2D004A0C: mov eax, dword ptr [ebp - 0x28] */
   1160     MEM32(0x2D017510) = eax; /* 0x2D004A0F: mov dword ptr [0x2d017510], eax */
   1161     eax = MEM32(ebp + (-0x1C)); /* 0x2D004A14: mov eax, dword ptr [ebp - 0x1c] */
   1162     MEM32(0x2D01751C) = eax; /* 0x2D004A17: mov dword ptr [0x2d01751c], eax */
   1163     esp = ebp; /* 0x2D004A1C: mov esp, ebp */
   1164     ebp = POP32_VAL(esp); /* 0x2D004A1E: pop ebp */
   1165     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D004A1F: ret  */
   1166     RECOMP_REGS_OUT();
   1167 }
   1168 
   1169 void sub_2D004A20(void) {
   1170     int _fpu_cmp = 0;
   1171     uint32_t _cf = 0;
   1172     int _df = 1;
   1173     uint32_t _flag_k = FK_NONE;
   1174     uint32_t _flag_a = 0, _flag_b = 0;
   1175     uint32_t _itail_tgt = 0;
   1176     RECOMP_REGS_LOCALS
   1177     RECOMP_ENTER(0x2D004A20u);
   1178 
   1179 L_2D004A20:
   1180     PUSH32(esp, ebp); /* 0x2D004A20: push ebp */
   1181     ebp = esp; /* 0x2D004A21: mov ebp, esp */
   1182     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x3Cu);
   1183     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1184     esp = esp - 0x3Cu; /* 0x2D004A23: sub esp, 0x3c */
   1185     _flag_k = FK_CMP;
   1186     MEM32(ebp + (-0x24)) = 0; /* 0x2D004A26: mov dword ptr [ebp - 0x24], 0 */
   1187     eax = MEM32(ebp + (-0x24)); /* 0x2D004A2D: mov eax, dword ptr [ebp - 0x24] */
   1188     MEM32(ebp + (-0x20)) = 0x3F800000u; /* 0x2D004A30: mov dword ptr [ebp - 0x20], 0x3f800000 */
   1189     ecx = MEM32(ebp + (-0x20)); /* 0x2D004A37: mov ecx, dword ptr [ebp - 0x20] */
   1190     MEM32(ebp + (-0xC)) = eax; /* 0x2D004A3A: mov dword ptr [ebp - 0xc], eax */
   1191     eax = MEM32(0x2D017510); /* 0x2D004A3D: mov eax, dword ptr [0x2d017510] */
   1192     MEM32(ebp + (-0x1C)) = 0; /* 0x2D004A42: mov dword ptr [ebp - 0x1c], 0 */
   1193     edx = MEM32(ebp + (-0x1C)); /* 0x2D004A49: mov edx, dword ptr [ebp - 0x1c] */
   1194     MEM32(ebp + (-0x8)) = ecx; /* 0x2D004A4C: mov dword ptr [ebp - 8], ecx */
   1195     ecx = MEM32(0x2D017514); /* 0x2D004A4F: mov ecx, dword ptr [0x2d017514] */
   1196     MEM32(ebp + (-0x30)) = eax; /* 0x2D004A55: mov dword ptr [ebp - 0x30], eax */
   1197     MEM32(ebp + (-0x4)) = edx; /* 0x2D004A58: mov dword ptr [ebp - 4], edx */
   1198     edx = MEM32(0x2D017518); /* 0x2D004A5B: mov edx, dword ptr [0x2d017518] */
   1199     eax = ebp + (-0xC); /* 0x2D004A61: lea eax, [ebp - 0xc] */
   1200     MEM32(ebp + (-0x2C)) = ecx; /* 0x2D004A64: mov dword ptr [ebp - 0x2c], ecx */
   1201     PUSH32(esp, eax); /* 0x2D004A67: push eax */
   1202     ecx = ebp + (-0x30); /* 0x2D004A68: lea ecx, [ebp - 0x30] */
   1203     MEM32(ebp + (-0x28)) = edx; /* 0x2D004A6B: mov dword ptr [ebp - 0x28], edx */
   1204     RECOMP_ICALL(MEM32(0x2D00960C)); /* 0x2D004A6E: call dword ptr [0x2d00960c] */
   1205     RECOMP_FLAGS_IN();
   1206     ecx = MEM32(eax); /* 0x2D004A74: mov ecx, dword ptr [eax] */
   1207     MEM32(ebp + (-0x24)) = ecx; /* 0x2D004A76: mov dword ptr [ebp - 0x24], ecx */
   1208     edx = MEM32(eax + 0x4); /* 0x2D004A79: mov edx, dword ptr [eax + 4] */
   1209     ecx = MEM32(0x2D017510); /* 0x2D004A7C: mov ecx, dword ptr [0x2d017510] */
   1210     MEM32(ebp + (-0x20)) = edx; /* 0x2D004A82: mov dword ptr [ebp - 0x20], edx */
   1211     eax = MEM32(eax + 0x8); /* 0x2D004A85: mov eax, dword ptr [eax + 8] */
   1212     edx = MEM32(0x2D017514); /* 0x2D004A88: mov edx, dword ptr [0x2d017514] */
   1213     MEM32(ebp + (-0x3C)) = ecx; /* 0x2D004A8E: mov dword ptr [ebp - 0x3c], ecx */
   1214     ecx = ebp + (-0x24); /* 0x2D004A91: lea ecx, [ebp - 0x24] */
   1215     MEM32(ebp + (-0x1C)) = eax; /* 0x2D004A94: mov dword ptr [ebp - 0x1c], eax */
   1216     eax = MEM32(0x2D017518); /* 0x2D004A97: mov eax, dword ptr [0x2d017518] */
   1217     PUSH32(esp, ecx); /* 0x2D004A9C: push ecx */
   1218     ecx = ebp + (-0x3C); /* 0x2D004A9D: lea ecx, [ebp - 0x3c] */
   1219     MEM32(ebp + (-0x38)) = edx; /* 0x2D004AA0: mov dword ptr [ebp - 0x38], edx */
   1220     MEM32(ebp + (-0x34)) = eax; /* 0x2D004AA3: mov dword ptr [ebp - 0x34], eax */
   1221     RECOMP_ICALL(MEM32(0x2D00960C)); /* 0x2D004AA6: call dword ptr [0x2d00960c] */
   1222     RECOMP_FLAGS_IN();
   1223     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D004AAC: fld dword ptr [0x2d01751c] */
   1224     edx = MEM32(eax); /* 0x2D004AB2: mov edx, dword ptr [eax] */
   1225     _st[0] += _st[0]; /* 0x2D004AB4: fadd st(0), st(0) */
   1226     ecx = MEM32(eax + 0x4); /* 0x2D004AB6: mov ecx, dword ptr [eax + 4] */
   1227     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x2D004AB9: fld dword ptr [ebp - 0x24] */
   1228     MEM32(ebp + (-0x18)) = edx; /* 0x2D004ABC: mov dword ptr [ebp - 0x18], edx */
   1229     edx = MEM32(eax + 0x8); /* 0x2D004ABF: mov edx, dword ptr [eax + 8] */
   1230     _st[0] *= _st[1]; /* 0x2D004AC2: fmul st(1) */
   1231     MEM32(ebp + (-0x14)) = ecx; /* 0x2D004AC4: mov dword ptr [ebp - 0x14], ecx */
   1232     MEM32(ebp + (-0x10)) = edx; /* 0x2D004AC7: mov dword ptr [ebp - 0x10], edx */
   1233     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x2D004ACA: fstp dword ptr [ebp - 0x24] */
   1234     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x2D004ACD: fld dword ptr [ebp - 0x20] */
   1235     _st[0] *= _st[1]; /* 0x2D004AD0: fmul st(1) */
   1236     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x2D004AD2: fstp dword ptr [ebp - 0x20] */
   1237     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x2D004AD5: fmul dword ptr [ebp - 0x1c] */
   1238     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x2D004AD8: fld dword ptr [ebp - 0x18] */
   1239     _st[0] += _st[0]; /* 0x2D004ADB: fadd st(0), st(0) */
   1240     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x2D004ADD: fstp dword ptr [ebp - 0x18] */
   1241     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x2D004AE0: fld dword ptr [ebp - 0x14] */
   1242     _st[0] += _st[0]; /* 0x2D004AE3: fadd st(0), st(0) */
   1243     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x2D004AE5: fstp dword ptr [ebp - 0x14] */
   1244     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x2D004AE8: fld dword ptr [ebp - 0x10] */
   1245     _st[0] += _st[0]; /* 0x2D004AEB: fadd st(0), st(0) */
   1246     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2D004AED: fstp dword ptr [ebp - 0x10] */
   1247     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x2D004AF0: fld dword ptr [ebp - 0xc] */
   1248     _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x2D004AF3: fadd dword ptr [ebp - 0x24] */
   1249     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x2D004AF6: fstp dword ptr [ebp - 0xc] */
   1250     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x2D004AF9: fld dword ptr [ebp - 0x20] */
   1251     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x2D004AFC: fadd dword ptr [ebp - 8] */
   1252     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x2D004AFF: fstp dword ptr [ebp - 8] */
   1253     _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x2D004B02: fadd dword ptr [ebp - 4] */
   1254     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x2D004B05: fld dword ptr [ebp - 0xc] */
   1255     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D004B08: fadd dword ptr [ebp - 0x18] */
   1256     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x2D004B0B: fstp dword ptr [ebp - 0xc] */
   1257     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x2D004B0E: fld dword ptr [ebp - 0x14] */
   1258     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x2D004B11: fadd dword ptr [ebp - 8] */
   1259     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x2D004B14: fstp dword ptr [ebp - 8] */
   1260     _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D004B17: fadd dword ptr [ebp - 0x10] */
   1261     fp_push(*(float*)&MEM32(0x2D017520)); /* 0x2D004B1A: fld dword ptr [0x2d017520] */
   1262     _st[0] += (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D004B20: fadd dword ptr [ebp - 0xc] */
   1263     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D017520) = _v; } /* 0x2D004B23: fstp dword ptr [0x2d017520] */
   1264     fp_push(*(float*)&MEM32(0x2D017524)); /* 0x2D004B29: fld dword ptr [0x2d017524] */
   1265     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x2D004B2F: fadd dword ptr [ebp - 8] */
   1266     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D017524) = _v; } /* 0x2D004B32: fstp dword ptr [0x2d017524] */
   1267     fp_push(*(float*)&MEM32(0x2D017528)); /* 0x2D004B38: fld dword ptr [0x2d017528] */
   1268     _st[0] += _st[1]; /* 0x2D004B3E: fadd st(1) */
   1269     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D017528) = _v; } /* 0x2D004B40: fstp dword ptr [0x2d017528] */
   1270     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2D004B46: fstp st(0) */
   1271     esp = ebp; /* 0x2D004B48: mov esp, ebp */
   1272     ebp = POP32_VAL(esp); /* 0x2D004B4A: pop ebp */
   1273     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D004B4B: ret  */
   1274     RECOMP_REGS_OUT();
   1275 }
   1276 
   1277 void sub_2D004B50(void) {
   1278     int _fpu_cmp = 0;
   1279     uint32_t _cf = 0;
   1280     int _df = 1;
   1281     uint32_t _flag_k = FK_NONE;
   1282     uint32_t _flag_a = 0, _flag_b = 0;
   1283     uint32_t _itail_tgt = 0;
   1284     RECOMP_REGS_LOCALS
   1285     RECOMP_ENTER(0x2D004B50u);
   1286 
   1287 L_2D004B50:
   1288     PUSH32(esp, ebp); /* 0x2D004B50: push ebp */
   1289     ebp = esp; /* 0x2D004B51: mov ebp, esp */
   1290     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x3Cu);
   1291     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1292     esp = esp - 0x3Cu; /* 0x2D004B53: sub esp, 0x3c */
   1293     _flag_k = FK_CMP;
   1294     MEM32(ebp + (-0x24)) = 0; /* 0x2D004B56: mov dword ptr [ebp - 0x24], 0 */
   1295     eax = MEM32(ebp + (-0x24)); /* 0x2D004B5D: mov eax, dword ptr [ebp - 0x24] */
   1296     MEM32(ebp + (-0x20)) = 0x3F800000u; /* 0x2D004B60: mov dword ptr [ebp - 0x20], 0x3f800000 */
   1297     ecx = MEM32(ebp + (-0x20)); /* 0x2D004B67: mov ecx, dword ptr [ebp - 0x20] */
   1298     MEM32(ebp + (-0xC)) = eax; /* 0x2D004B6A: mov dword ptr [ebp - 0xc], eax */
   1299     eax = MEM32(0x2D017510); /* 0x2D004B6D: mov eax, dword ptr [0x2d017510] */
   1300     MEM32(ebp + (-0x1C)) = 0; /* 0x2D004B72: mov dword ptr [ebp - 0x1c], 0 */
   1301     edx = MEM32(ebp + (-0x1C)); /* 0x2D004B79: mov edx, dword ptr [ebp - 0x1c] */
   1302     MEM32(ebp + (-0x8)) = ecx; /* 0x2D004B7C: mov dword ptr [ebp - 8], ecx */
   1303     ecx = MEM32(0x2D017514); /* 0x2D004B7F: mov ecx, dword ptr [0x2d017514] */
   1304     MEM32(ebp + (-0x30)) = eax; /* 0x2D004B85: mov dword ptr [ebp - 0x30], eax */
   1305     MEM32(ebp + (-0x4)) = edx; /* 0x2D004B88: mov dword ptr [ebp - 4], edx */
   1306     edx = MEM32(0x2D017518); /* 0x2D004B8B: mov edx, dword ptr [0x2d017518] */
   1307     eax = ebp + (-0xC); /* 0x2D004B91: lea eax, [ebp - 0xc] */
   1308     MEM32(ebp + (-0x2C)) = ecx; /* 0x2D004B94: mov dword ptr [ebp - 0x2c], ecx */
   1309     PUSH32(esp, eax); /* 0x2D004B97: push eax */
   1310     ecx = ebp + (-0x30); /* 0x2D004B98: lea ecx, [ebp - 0x30] */
   1311     MEM32(ebp + (-0x28)) = edx; /* 0x2D004B9B: mov dword ptr [ebp - 0x28], edx */
   1312     RECOMP_ICALL(MEM32(0x2D00960C)); /* 0x2D004B9E: call dword ptr [0x2d00960c] */
   1313     RECOMP_FLAGS_IN();
   1314     ecx = MEM32(eax); /* 0x2D004BA4: mov ecx, dword ptr [eax] */
   1315     MEM32(ebp + (-0x24)) = ecx; /* 0x2D004BA6: mov dword ptr [ebp - 0x24], ecx */
   1316     edx = MEM32(eax + 0x4); /* 0x2D004BA9: mov edx, dword ptr [eax + 4] */
   1317     ecx = MEM32(0x2D017510); /* 0x2D004BAC: mov ecx, dword ptr [0x2d017510] */
   1318     MEM32(ebp + (-0x20)) = edx; /* 0x2D004BB2: mov dword ptr [ebp - 0x20], edx */
   1319     eax = MEM32(eax + 0x8); /* 0x2D004BB5: mov eax, dword ptr [eax + 8] */
   1320     edx = MEM32(0x2D017514); /* 0x2D004BB8: mov edx, dword ptr [0x2d017514] */
   1321     MEM32(ebp + (-0x3C)) = ecx; /* 0x2D004BBE: mov dword ptr [ebp - 0x3c], ecx */
   1322     ecx = ebp + (-0x24); /* 0x2D004BC1: lea ecx, [ebp - 0x24] */
   1323     MEM32(ebp + (-0x1C)) = eax; /* 0x2D004BC4: mov dword ptr [ebp - 0x1c], eax */
   1324     eax = MEM32(0x2D017518); /* 0x2D004BC7: mov eax, dword ptr [0x2d017518] */
   1325     PUSH32(esp, ecx); /* 0x2D004BCC: push ecx */
   1326     ecx = ebp + (-0x3C); /* 0x2D004BCD: lea ecx, [ebp - 0x3c] */
   1327     MEM32(ebp + (-0x38)) = edx; /* 0x2D004BD0: mov dword ptr [ebp - 0x38], edx */
   1328     MEM32(ebp + (-0x34)) = eax; /* 0x2D004BD3: mov dword ptr [ebp - 0x34], eax */
   1329     RECOMP_ICALL(MEM32(0x2D00960C)); /* 0x2D004BD6: call dword ptr [0x2d00960c] */
   1330     RECOMP_FLAGS_IN();
   1331     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D004BDC: fld dword ptr [0x2d01751c] */
   1332     edx = MEM32(eax); /* 0x2D004BE2: mov edx, dword ptr [eax] */
   1333     _st[0] += _st[0]; /* 0x2D004BE4: fadd st(0), st(0) */
   1334     ecx = MEM32(eax + 0x4); /* 0x2D004BE6: mov ecx, dword ptr [eax + 4] */
   1335     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x2D004BE9: fld dword ptr [ebp - 0x24] */
   1336     MEM32(ebp + (-0x18)) = edx; /* 0x2D004BEC: mov dword ptr [ebp - 0x18], edx */
   1337     edx = MEM32(eax + 0x8); /* 0x2D004BEF: mov edx, dword ptr [eax + 8] */
   1338     _st[0] *= _st[1]; /* 0x2D004BF2: fmul st(1) */
   1339     MEM32(ebp + (-0x14)) = ecx; /* 0x2D004BF4: mov dword ptr [ebp - 0x14], ecx */
   1340     MEM32(ebp + (-0x10)) = edx; /* 0x2D004BF7: mov dword ptr [ebp - 0x10], edx */
   1341     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x2D004BFA: fstp dword ptr [ebp - 0x24] */
   1342     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x2D004BFD: fld dword ptr [ebp - 0x20] */
   1343     _st[0] *= _st[1]; /* 0x2D004C00: fmul st(1) */
   1344     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x2D004C02: fstp dword ptr [ebp - 0x20] */
   1345     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x2D004C05: fmul dword ptr [ebp - 0x1c] */
   1346     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x2D004C08: fld dword ptr [ebp - 0x18] */
   1347     _st[0] += _st[0]; /* 0x2D004C0B: fadd st(0), st(0) */
   1348     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x2D004C0D: fstp dword ptr [ebp - 0x18] */
   1349     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x2D004C10: fld dword ptr [ebp - 0x14] */
   1350     _st[0] += _st[0]; /* 0x2D004C13: fadd st(0), st(0) */
   1351     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x2D004C15: fstp dword ptr [ebp - 0x14] */
   1352     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x2D004C18: fld dword ptr [ebp - 0x10] */
   1353     _st[0] += _st[0]; /* 0x2D004C1B: fadd st(0), st(0) */
   1354     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2D004C1D: fstp dword ptr [ebp - 0x10] */
   1355     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x2D004C20: fld dword ptr [ebp - 0xc] */
   1356     _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x2D004C23: fadd dword ptr [ebp - 0x24] */
   1357     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x2D004C26: fstp dword ptr [ebp - 0xc] */
   1358     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x2D004C29: fld dword ptr [ebp - 0x20] */
   1359     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x2D004C2C: fadd dword ptr [ebp - 8] */
   1360     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x2D004C2F: fstp dword ptr [ebp - 8] */
   1361     _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x2D004C32: fadd dword ptr [ebp - 4] */
   1362     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x2D004C35: fld dword ptr [ebp - 0xc] */
   1363     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D004C38: fadd dword ptr [ebp - 0x18] */
   1364     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x2D004C3B: fstp dword ptr [ebp - 0xc] */
   1365     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x2D004C3E: fld dword ptr [ebp - 0x14] */
   1366     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x2D004C41: fadd dword ptr [ebp - 8] */
   1367     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x2D004C44: fstp dword ptr [ebp - 8] */
   1368     _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D004C47: fadd dword ptr [ebp - 0x10] */
   1369     fp_push(*(float*)&MEM32(0x2D017520)); /* 0x2D004C4A: fld dword ptr [0x2d017520] */
   1370     _st[0] -= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D004C50: fsub dword ptr [ebp - 0xc] */
   1371     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D017520) = _v; } /* 0x2D004C53: fstp dword ptr [0x2d017520] */
   1372     fp_push(*(float*)&MEM32(0x2D017524)); /* 0x2D004C59: fld dword ptr [0x2d017524] */
   1373     _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x2D004C5F: fsub dword ptr [ebp - 8] */
   1374     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D017524) = _v; } /* 0x2D004C62: fstp dword ptr [0x2d017524] */
   1375     fp_push(*(float*)&MEM32(0x2D017528)); /* 0x2D004C68: fld dword ptr [0x2d017528] */
   1376     _st[0] -= _st[1]; /* 0x2D004C6E: fsub st(1) */
   1377     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D017528) = _v; } /* 0x2D004C70: fstp dword ptr [0x2d017528] */
   1378     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2D004C76: fstp st(0) */
   1379     esp = ebp; /* 0x2D004C78: mov esp, ebp */
   1380     ebp = POP32_VAL(esp); /* 0x2D004C7A: pop ebp */
   1381     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D004C7B: ret  */
   1382     RECOMP_REGS_OUT();
   1383 }
   1384 
   1385 void sub_2D004C80(void) {
   1386     int _fpu_cmp = 0;
   1387     uint32_t _cf = 0;
   1388     int _df = 1;
   1389     uint32_t _flag_k = FK_NONE;
   1390     uint32_t _flag_a = 0, _flag_b = 0;
   1391     uint32_t _itail_tgt = 0;
   1392     RECOMP_REGS_LOCALS
   1393     RECOMP_ENTER(0x2D004C80u);
   1394 
   1395 L_2D004C80:
   1396     PUSH32(esp, ebp); /* 0x2D004C80: push ebp */
   1397     ebp = esp; /* 0x2D004C81: mov ebp, esp */
   1398     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x3Cu);
   1399     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1400     esp = esp - 0x3Cu; /* 0x2D004C83: sub esp, 0x3c */
   1401     _flag_k = FK_CMP;
   1402     MEM32(ebp + (-0x24)) = 0x3F800000u; /* 0x2D004C86: mov dword ptr [ebp - 0x24], 0x3f800000 */
   1403     eax = MEM32(ebp + (-0x24)); /* 0x2D004C8D: mov eax, dword ptr [ebp - 0x24] */
   1404     MEM32(ebp + (-0x20)) = 0; /* 0x2D004C90: mov dword ptr [ebp - 0x20], 0 */
   1405     ecx = MEM32(ebp + (-0x20)); /* 0x2D004C97: mov ecx, dword ptr [ebp - 0x20] */
   1406     MEM32(ebp + (-0xC)) = eax; /* 0x2D004C9A: mov dword ptr [ebp - 0xc], eax */
   1407     eax = MEM32(0x2D017510); /* 0x2D004C9D: mov eax, dword ptr [0x2d017510] */
   1408     MEM32(ebp + (-0x1C)) = 0; /* 0x2D004CA2: mov dword ptr [ebp - 0x1c], 0 */
   1409     edx = MEM32(ebp + (-0x1C)); /* 0x2D004CA9: mov edx, dword ptr [ebp - 0x1c] */
   1410     MEM32(ebp + (-0x8)) = ecx; /* 0x2D004CAC: mov dword ptr [ebp - 8], ecx */
   1411     ecx = MEM32(0x2D017514); /* 0x2D004CAF: mov ecx, dword ptr [0x2d017514] */
   1412     MEM32(ebp + (-0x30)) = eax; /* 0x2D004CB5: mov dword ptr [ebp - 0x30], eax */
   1413     MEM32(ebp + (-0x4)) = edx; /* 0x2D004CB8: mov dword ptr [ebp - 4], edx */
   1414     edx = MEM32(0x2D017518); /* 0x2D004CBB: mov edx, dword ptr [0x2d017518] */
   1415     eax = ebp + (-0xC); /* 0x2D004CC1: lea eax, [ebp - 0xc] */
   1416     MEM32(ebp + (-0x2C)) = ecx; /* 0x2D004CC4: mov dword ptr [ebp - 0x2c], ecx */
   1417     PUSH32(esp, eax); /* 0x2D004CC7: push eax */
   1418     ecx = ebp + (-0x30); /* 0x2D004CC8: lea ecx, [ebp - 0x30] */
   1419     MEM32(ebp + (-0x28)) = edx; /* 0x2D004CCB: mov dword ptr [ebp - 0x28], edx */
   1420     RECOMP_ICALL(MEM32(0x2D00960C)); /* 0x2D004CCE: call dword ptr [0x2d00960c] */
   1421     RECOMP_FLAGS_IN();
   1422     ecx = MEM32(eax); /* 0x2D004CD4: mov ecx, dword ptr [eax] */
   1423     MEM32(ebp + (-0x24)) = ecx; /* 0x2D004CD6: mov dword ptr [ebp - 0x24], ecx */
   1424     edx = MEM32(eax + 0x4); /* 0x2D004CD9: mov edx, dword ptr [eax + 4] */
   1425     ecx = MEM32(0x2D017510); /* 0x2D004CDC: mov ecx, dword ptr [0x2d017510] */
   1426     MEM32(ebp + (-0x20)) = edx; /* 0x2D004CE2: mov dword ptr [ebp - 0x20], edx */
   1427     eax = MEM32(eax + 0x8); /* 0x2D004CE5: mov eax, dword ptr [eax + 8] */
   1428     edx = MEM32(0x2D017514); /* 0x2D004CE8: mov edx, dword ptr [0x2d017514] */
   1429     MEM32(ebp + (-0x3C)) = ecx; /* 0x2D004CEE: mov dword ptr [ebp - 0x3c], ecx */
   1430     ecx = ebp + (-0x24); /* 0x2D004CF1: lea ecx, [ebp - 0x24] */
   1431     MEM32(ebp + (-0x1C)) = eax; /* 0x2D004CF4: mov dword ptr [ebp - 0x1c], eax */
   1432     eax = MEM32(0x2D017518); /* 0x2D004CF7: mov eax, dword ptr [0x2d017518] */
   1433     PUSH32(esp, ecx); /* 0x2D004CFC: push ecx */
   1434     ecx = ebp + (-0x3C); /* 0x2D004CFD: lea ecx, [ebp - 0x3c] */
   1435     MEM32(ebp + (-0x38)) = edx; /* 0x2D004D00: mov dword ptr [ebp - 0x38], edx */
   1436     MEM32(ebp + (-0x34)) = eax; /* 0x2D004D03: mov dword ptr [ebp - 0x34], eax */
   1437     RECOMP_ICALL(MEM32(0x2D00960C)); /* 0x2D004D06: call dword ptr [0x2d00960c] */
   1438     RECOMP_FLAGS_IN();
   1439     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D004D0C: fld dword ptr [0x2d01751c] */
   1440     edx = MEM32(eax); /* 0x2D004D12: mov edx, dword ptr [eax] */
   1441     _st[0] += _st[0]; /* 0x2D004D14: fadd st(0), st(0) */
   1442     ecx = MEM32(eax + 0x4); /* 0x2D004D16: mov ecx, dword ptr [eax + 4] */
   1443     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x2D004D19: fld dword ptr [ebp - 0x24] */
   1444     MEM32(ebp + (-0x18)) = edx; /* 0x2D004D1C: mov dword ptr [ebp - 0x18], edx */
   1445     edx = MEM32(eax + 0x8); /* 0x2D004D1F: mov edx, dword ptr [eax + 8] */
   1446     _st[0] *= _st[1]; /* 0x2D004D22: fmul st(1) */
   1447     MEM32(ebp + (-0x14)) = ecx; /* 0x2D004D24: mov dword ptr [ebp - 0x14], ecx */
   1448     MEM32(ebp + (-0x10)) = edx; /* 0x2D004D27: mov dword ptr [ebp - 0x10], edx */
   1449     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x2D004D2A: fstp dword ptr [ebp - 0x24] */
   1450     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x2D004D2D: fld dword ptr [ebp - 0x20] */
   1451     _st[0] *= _st[1]; /* 0x2D004D30: fmul st(1) */
   1452     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x2D004D32: fstp dword ptr [ebp - 0x20] */
   1453     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x2D004D35: fmul dword ptr [ebp - 0x1c] */
   1454     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x2D004D38: fld dword ptr [ebp - 0x18] */
   1455     _st[0] += _st[0]; /* 0x2D004D3B: fadd st(0), st(0) */
   1456     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x2D004D3D: fstp dword ptr [ebp - 0x18] */
   1457     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x2D004D40: fld dword ptr [ebp - 0x14] */
   1458     _st[0] += _st[0]; /* 0x2D004D43: fadd st(0), st(0) */
   1459     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x2D004D45: fstp dword ptr [ebp - 0x14] */
   1460     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x2D004D48: fld dword ptr [ebp - 0x10] */
   1461     _st[0] += _st[0]; /* 0x2D004D4B: fadd st(0), st(0) */
   1462     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2D004D4D: fstp dword ptr [ebp - 0x10] */
   1463     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x2D004D50: fld dword ptr [ebp - 0xc] */
   1464     _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x2D004D53: fadd dword ptr [ebp - 0x24] */
   1465     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x2D004D56: fstp dword ptr [ebp - 0xc] */
   1466     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x2D004D59: fld dword ptr [ebp - 0x20] */
   1467     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x2D004D5C: fadd dword ptr [ebp - 8] */
   1468     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x2D004D5F: fstp dword ptr [ebp - 8] */
   1469     _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x2D004D62: fadd dword ptr [ebp - 4] */
   1470     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x2D004D65: fld dword ptr [ebp - 0xc] */
   1471     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D004D68: fadd dword ptr [ebp - 0x18] */
   1472     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x2D004D6B: fstp dword ptr [ebp - 0xc] */
   1473     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x2D004D6E: fld dword ptr [ebp - 0x14] */
   1474     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x2D004D71: fadd dword ptr [ebp - 8] */
   1475     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x2D004D74: fstp dword ptr [ebp - 8] */
   1476     _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D004D77: fadd dword ptr [ebp - 0x10] */
   1477     fp_push(*(float*)&MEM32(0x2D017520)); /* 0x2D004D7A: fld dword ptr [0x2d017520] */
   1478     _st[0] -= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D004D80: fsub dword ptr [ebp - 0xc] */
   1479     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D017520) = _v; } /* 0x2D004D83: fstp dword ptr [0x2d017520] */
   1480     fp_push(*(float*)&MEM32(0x2D017524)); /* 0x2D004D89: fld dword ptr [0x2d017524] */
   1481     _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x2D004D8F: fsub dword ptr [ebp - 8] */
   1482     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D017524) = _v; } /* 0x2D004D92: fstp dword ptr [0x2d017524] */
   1483     fp_push(*(float*)&MEM32(0x2D017528)); /* 0x2D004D98: fld dword ptr [0x2d017528] */
   1484     _st[0] -= _st[1]; /* 0x2D004D9E: fsub st(1) */
   1485     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D017528) = _v; } /* 0x2D004DA0: fstp dword ptr [0x2d017528] */
   1486     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2D004DA6: fstp st(0) */
   1487     esp = ebp; /* 0x2D004DA8: mov esp, ebp */
   1488     ebp = POP32_VAL(esp); /* 0x2D004DAA: pop ebp */
   1489     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D004DAB: ret  */
   1490     RECOMP_REGS_OUT();
   1491 }
   1492 
   1493 void sub_2D004DB0(void) {
   1494     int _fpu_cmp = 0;
   1495     uint32_t _cf = 0;
   1496     int _df = 1;
   1497     uint32_t _flag_k = FK_NONE;
   1498     uint32_t _flag_a = 0, _flag_b = 0;
   1499     uint32_t _itail_tgt = 0;
   1500     RECOMP_REGS_LOCALS
   1501     RECOMP_ENTER(0x2D004DB0u);
   1502 
   1503 L_2D004DB0:
   1504     PUSH32(esp, ebp); /* 0x2D004DB0: push ebp */
   1505     ebp = esp; /* 0x2D004DB1: mov ebp, esp */
   1506     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x3Cu);
   1507     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1508     esp = esp - 0x3Cu; /* 0x2D004DB3: sub esp, 0x3c */
   1509     _flag_k = FK_CMP;
   1510     MEM32(ebp + (-0x24)) = 0x3F800000u; /* 0x2D004DB6: mov dword ptr [ebp - 0x24], 0x3f800000 */
   1511     eax = MEM32(ebp + (-0x24)); /* 0x2D004DBD: mov eax, dword ptr [ebp - 0x24] */
   1512     MEM32(ebp + (-0x20)) = 0; /* 0x2D004DC0: mov dword ptr [ebp - 0x20], 0 */
   1513     ecx = MEM32(ebp + (-0x20)); /* 0x2D004DC7: mov ecx, dword ptr [ebp - 0x20] */
   1514     MEM32(ebp + (-0xC)) = eax; /* 0x2D004DCA: mov dword ptr [ebp - 0xc], eax */
   1515     eax = MEM32(0x2D017510); /* 0x2D004DCD: mov eax, dword ptr [0x2d017510] */
   1516     MEM32(ebp + (-0x1C)) = 0; /* 0x2D004DD2: mov dword ptr [ebp - 0x1c], 0 */
   1517     edx = MEM32(ebp + (-0x1C)); /* 0x2D004DD9: mov edx, dword ptr [ebp - 0x1c] */
   1518     MEM32(ebp + (-0x8)) = ecx; /* 0x2D004DDC: mov dword ptr [ebp - 8], ecx */
   1519     ecx = MEM32(0x2D017514); /* 0x2D004DDF: mov ecx, dword ptr [0x2d017514] */
   1520     MEM32(ebp + (-0x30)) = eax; /* 0x2D004DE5: mov dword ptr [ebp - 0x30], eax */
   1521     MEM32(ebp + (-0x4)) = edx; /* 0x2D004DE8: mov dword ptr [ebp - 4], edx */
   1522     edx = MEM32(0x2D017518); /* 0x2D004DEB: mov edx, dword ptr [0x2d017518] */
   1523     eax = ebp + (-0xC); /* 0x2D004DF1: lea eax, [ebp - 0xc] */
   1524     MEM32(ebp + (-0x2C)) = ecx; /* 0x2D004DF4: mov dword ptr [ebp - 0x2c], ecx */
   1525     PUSH32(esp, eax); /* 0x2D004DF7: push eax */
   1526     ecx = ebp + (-0x30); /* 0x2D004DF8: lea ecx, [ebp - 0x30] */
   1527     MEM32(ebp + (-0x28)) = edx; /* 0x2D004DFB: mov dword ptr [ebp - 0x28], edx */
   1528     RECOMP_ICALL(MEM32(0x2D00960C)); /* 0x2D004DFE: call dword ptr [0x2d00960c] */
   1529     RECOMP_FLAGS_IN();
   1530     ecx = MEM32(eax); /* 0x2D004E04: mov ecx, dword ptr [eax] */
   1531     MEM32(ebp + (-0x24)) = ecx; /* 0x2D004E06: mov dword ptr [ebp - 0x24], ecx */
   1532     edx = MEM32(eax + 0x4); /* 0x2D004E09: mov edx, dword ptr [eax + 4] */
   1533     ecx = MEM32(0x2D017510); /* 0x2D004E0C: mov ecx, dword ptr [0x2d017510] */
   1534     MEM32(ebp + (-0x20)) = edx; /* 0x2D004E12: mov dword ptr [ebp - 0x20], edx */
   1535     eax = MEM32(eax + 0x8); /* 0x2D004E15: mov eax, dword ptr [eax + 8] */
   1536     edx = MEM32(0x2D017514); /* 0x2D004E18: mov edx, dword ptr [0x2d017514] */
   1537     MEM32(ebp + (-0x3C)) = ecx; /* 0x2D004E1E: mov dword ptr [ebp - 0x3c], ecx */
   1538     ecx = ebp + (-0x24); /* 0x2D004E21: lea ecx, [ebp - 0x24] */
   1539     MEM32(ebp + (-0x1C)) = eax; /* 0x2D004E24: mov dword ptr [ebp - 0x1c], eax */
   1540     eax = MEM32(0x2D017518); /* 0x2D004E27: mov eax, dword ptr [0x2d017518] */
   1541     PUSH32(esp, ecx); /* 0x2D004E2C: push ecx */
   1542     ecx = ebp + (-0x3C); /* 0x2D004E2D: lea ecx, [ebp - 0x3c] */
   1543     MEM32(ebp + (-0x38)) = edx; /* 0x2D004E30: mov dword ptr [ebp - 0x38], edx */
   1544     MEM32(ebp + (-0x34)) = eax; /* 0x2D004E33: mov dword ptr [ebp - 0x34], eax */
   1545     RECOMP_ICALL(MEM32(0x2D00960C)); /* 0x2D004E36: call dword ptr [0x2d00960c] */
   1546     RECOMP_FLAGS_IN();
   1547     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D004E3C: fld dword ptr [0x2d01751c] */
   1548     edx = MEM32(eax); /* 0x2D004E42: mov edx, dword ptr [eax] */
   1549     _st[0] += _st[0]; /* 0x2D004E44: fadd st(0), st(0) */
   1550     ecx = MEM32(eax + 0x4); /* 0x2D004E46: mov ecx, dword ptr [eax + 4] */
   1551     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x2D004E49: fld dword ptr [ebp - 0x24] */
   1552     MEM32(ebp + (-0x18)) = edx; /* 0x2D004E4C: mov dword ptr [ebp - 0x18], edx */
   1553     edx = MEM32(eax + 0x8); /* 0x2D004E4F: mov edx, dword ptr [eax + 8] */
   1554     _st[0] *= _st[1]; /* 0x2D004E52: fmul st(1) */
   1555     MEM32(ebp + (-0x14)) = ecx; /* 0x2D004E54: mov dword ptr [ebp - 0x14], ecx */
   1556     MEM32(ebp + (-0x10)) = edx; /* 0x2D004E57: mov dword ptr [ebp - 0x10], edx */
   1557     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x2D004E5A: fstp dword ptr [ebp - 0x24] */
   1558     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x2D004E5D: fld dword ptr [ebp - 0x20] */
   1559     _st[0] *= _st[1]; /* 0x2D004E60: fmul st(1) */
   1560     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x2D004E62: fstp dword ptr [ebp - 0x20] */
   1561     _st[0] *= (double)*(float*)ADDR(ebp + (-0x1C)); /* 0x2D004E65: fmul dword ptr [ebp - 0x1c] */
   1562     fp_push(*(float*)&MEM32(ebp + (-0x18))); /* 0x2D004E68: fld dword ptr [ebp - 0x18] */
   1563     _st[0] += _st[0]; /* 0x2D004E6B: fadd st(0), st(0) */
   1564     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x2D004E6D: fstp dword ptr [ebp - 0x18] */
   1565     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x2D004E70: fld dword ptr [ebp - 0x14] */
   1566     _st[0] += _st[0]; /* 0x2D004E73: fadd st(0), st(0) */
   1567     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x2D004E75: fstp dword ptr [ebp - 0x14] */
   1568     fp_push(*(float*)&MEM32(ebp + (-0x10))); /* 0x2D004E78: fld dword ptr [ebp - 0x10] */
   1569     _st[0] += _st[0]; /* 0x2D004E7B: fadd st(0), st(0) */
   1570     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2D004E7D: fstp dword ptr [ebp - 0x10] */
   1571     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x2D004E80: fld dword ptr [ebp - 0xc] */
   1572     _st[0] += (double)*(float*)ADDR(ebp + (-0x24)); /* 0x2D004E83: fadd dword ptr [ebp - 0x24] */
   1573     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x2D004E86: fstp dword ptr [ebp - 0xc] */
   1574     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x2D004E89: fld dword ptr [ebp - 0x20] */
   1575     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x2D004E8C: fadd dword ptr [ebp - 8] */
   1576     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x2D004E8F: fstp dword ptr [ebp - 8] */
   1577     _st[0] += (double)*(float*)ADDR(ebp + (-0x4)); /* 0x2D004E92: fadd dword ptr [ebp - 4] */
   1578     fp_push(*(float*)&MEM32(ebp + (-0xC))); /* 0x2D004E95: fld dword ptr [ebp - 0xc] */
   1579     _st[0] += (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D004E98: fadd dword ptr [ebp - 0x18] */
   1580     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x2D004E9B: fstp dword ptr [ebp - 0xc] */
   1581     fp_push(*(float*)&MEM32(ebp + (-0x14))); /* 0x2D004E9E: fld dword ptr [ebp - 0x14] */
   1582     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x2D004EA1: fadd dword ptr [ebp - 8] */
   1583     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x2D004EA4: fstp dword ptr [ebp - 8] */
   1584     _st[0] += (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D004EA7: fadd dword ptr [ebp - 0x10] */
   1585     fp_push(*(float*)&MEM32(0x2D017520)); /* 0x2D004EAA: fld dword ptr [0x2d017520] */
   1586     _st[0] += (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D004EB0: fadd dword ptr [ebp - 0xc] */
   1587     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D017520) = _v; } /* 0x2D004EB3: fstp dword ptr [0x2d017520] */
   1588     fp_push(*(float*)&MEM32(0x2D017524)); /* 0x2D004EB9: fld dword ptr [0x2d017524] */
   1589     _st[0] += (double)*(float*)ADDR(ebp + (-0x8)); /* 0x2D004EBF: fadd dword ptr [ebp - 8] */
   1590     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D017524) = _v; } /* 0x2D004EC2: fstp dword ptr [0x2d017524] */
   1591     fp_push(*(float*)&MEM32(0x2D017528)); /* 0x2D004EC8: fld dword ptr [0x2d017528] */
   1592     _st[0] += _st[1]; /* 0x2D004ECE: fadd st(1) */
   1593     { float _v = (float)fp_pop(); *(float*)ADDR(0x2D017528) = _v; } /* 0x2D004ED0: fstp dword ptr [0x2d017528] */
   1594     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x2D004ED6: fstp st(0) */
   1595     esp = ebp; /* 0x2D004ED8: mov esp, ebp */
   1596     ebp = POP32_VAL(esp); /* 0x2D004EDA: pop ebp */
   1597     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D004EDB: ret  */
   1598     RECOMP_REGS_OUT();
   1599 }
   1600 
   1601 void sub_2D004EE0(void) {
   1602     int _fpu_cmp = 0;
   1603     uint32_t _cf = 0;
   1604     int _df = 1;
   1605     uint32_t _flag_k = FK_NONE;
   1606     uint32_t _flag_a = 0, _flag_b = 0;
   1607     uint32_t _itail_tgt = 0;
   1608     RECOMP_REGS_LOCALS
   1609     RECOMP_ENTER(0x2D004EE0u);
   1610 
   1611 L_2D004EE0:
   1612     PUSH32(esp, ebp); /* 0x2D004EE0: push ebp */
   1613     ebp = esp; /* 0x2D004EE1: mov ebp, esp */
   1614     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
   1615     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1616     esp = esp - 0x28u; /* 0x2D004EE3: sub esp, 0x28 */
   1617     _flag_k = FK_CMP;
   1618     PUSH32(esp, 0xBF7FFFFFu); /* 0x2D004EE6: push 0xbf7fffff */
   1619     PUSH32(esp, 0xFFFFFFFFu); /* 0x2D004EEB: push -1 */
   1620     RECOMP_ICALL(MEM32(0x2D009074)); /* 0x2D004EED: call dword ptr [0x2d009074] */
   1621     RECOMP_FLAGS_IN();
   1622     _st[0] = (double)*(float*)ADDR(0x2D00969C) - _st[0]; /* 0x2D004EF3: fsubr dword ptr [0x2d00969c] */
   1623     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1624     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1625     esp = esp + 8; /* 0x2D004EF9: add esp, 8 */
   1626     _flag_k = FK_ADD;
   1627     _st[0] *= (double)*(float*)ADDR(0x2D009698); /* 0x2D004EFC: fmul dword ptr [0x2d009698] */
   1628     fp_push(_st[0]); /* 0x2D004F02: fld st(0) */
   1629     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x2D004F04: fsin  */
   1630     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x2D004F06: fstp dword ptr [ebp - 0x18] */
   1631     fp_push(*(float*)&MEM32(0x2D009694)); /* 0x2D004F09: fld dword ptr [0x2d009694] */
   1632     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x2D004F0F: fst dword ptr [ebp - 0x14] */
   1633     eax = MEM32(ebp + (-0x18)); /* 0x2D004F12: mov eax, dword ptr [ebp - 0x18] */
   1634     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2D004F15: fstp dword ptr [ebp - 0x10] */
   1635     MEM32(ebp + (-0x28)) = eax; /* 0x2D004F18: mov dword ptr [ebp - 0x28], eax */
   1636     ecx = MEM32(ebp + (-0x14)); /* 0x2D004F1B: mov ecx, dword ptr [ebp - 0x14] */
   1637     edx = MEM32(ebp + (-0x10)); /* 0x2D004F1E: mov edx, dword ptr [ebp - 0x10] */
   1638     MEM32(ebp + (-0x24)) = ecx; /* 0x2D004F21: mov dword ptr [ebp - 0x24], ecx */
   1639     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x2D004F24: fcos  */
   1640     MEM32(ebp + (-0x20)) = edx; /* 0x2D004F26: mov dword ptr [ebp - 0x20], edx */
   1641     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x2D004F29: fstp dword ptr [ebp - 0xc] */
   1642     fp_push(*(float*)&MEM32(0x2D017514)); /* 0x2D004F2C: fld dword ptr [0x2d017514] */
   1643     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D004F32: fmul dword ptr [ebp - 0x10] */
   1644     eax = MEM32(ebp + (-0xC)); /* 0x2D004F35: mov eax, dword ptr [ebp - 0xc] */
   1645     fp_push(*(float*)&MEM32(0x2D017510)); /* 0x2D004F38: fld dword ptr [0x2d017510] */
   1646     MEM32(ebp + (-0x1C)) = eax; /* 0x2D004F3E: mov dword ptr [ebp - 0x1c], eax */
   1647     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D004F41: fmul dword ptr [ebp - 0xc] */
   1648     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D004F44: faddp st(1) */
   1649     fp_push(*(float*)&MEM32(0x2D017518)); /* 0x2D004F46: fld dword ptr [0x2d017518] */
   1650     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x2D004F4C: fmul dword ptr [ebp - 0x14] */
   1651     { double _v = fp_pop(); _st[0] -= _v; } /* 0x2D004F4F: fsubp st(1) */
   1652     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D004F51: fld dword ptr [0x2d01751c] */
   1653     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D004F57: fmul dword ptr [ebp - 0x18] */
   1654     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D004F5A: faddp st(1) */
   1655     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D004F5C: fld dword ptr [0x2d01751c] */
   1656     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x2D004F62: fmul dword ptr [ebp - 0x14] */
   1657     fp_push(*(float*)&MEM32(0x2D017510)); /* 0x2D004F65: fld dword ptr [0x2d017510] */
   1658     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D004F6B: fmul dword ptr [ebp - 0x10] */
   1659     { double _v = fp_pop(); _st[0] -= _v; } /* 0x2D004F6E: fsubp st(1) */
   1660     fp_push(*(float*)&MEM32(0x2D017514)); /* 0x2D004F70: fld dword ptr [0x2d017514] */
   1661     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D004F76: fmul dword ptr [ebp - 0xc] */
   1662     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D004F79: faddp st(1) */
   1663     fp_push(*(float*)&MEM32(0x2D017518)); /* 0x2D004F7B: fld dword ptr [0x2d017518] */
   1664     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D004F81: fmul dword ptr [ebp - 0x18] */
   1665     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D004F84: faddp st(1) */
   1666     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x2D004F86: fstp dword ptr [ebp - 4] */
   1667     fp_push(*(float*)&MEM32(0x2D017510)); /* 0x2D004F89: fld dword ptr [0x2d017510] */
   1668     ecx = MEM32(ebp + (-0x4)); /* 0x2D004F8F: mov ecx, dword ptr [ebp - 4] */
   1669     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x2D004F92: fmul dword ptr [ebp - 0x14] */
   1670     MEM32(ebp + (-0x24)) = ecx; /* 0x2D004F95: mov dword ptr [ebp - 0x24], ecx */
   1671     fp_push(*(float*)&MEM32(0x2D017514)); /* 0x2D004F98: fld dword ptr [0x2d017514] */
   1672     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D004F9E: fmul dword ptr [ebp - 0x18] */
   1673     { double _v = fp_pop(); _st[0] -= _v; } /* 0x2D004FA1: fsubp st(1) */
   1674     fp_push(*(float*)&MEM32(0x2D017518)); /* 0x2D004FA3: fld dword ptr [0x2d017518] */
   1675     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D004FA9: fmul dword ptr [ebp - 0xc] */
   1676     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D004FAC: faddp st(1) */
   1677     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D004FAE: fld dword ptr [0x2d01751c] */
   1678     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D004FB4: fmul dword ptr [ebp - 0x10] */
   1679     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D004FB7: faddp st(1) */
   1680     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x2D004FB9: fstp dword ptr [ebp - 8] */
   1681     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D004FBC: fld dword ptr [0x2d01751c] */
   1682     edx = MEM32(ebp + (-0x8)); /* 0x2D004FC2: mov edx, dword ptr [ebp - 8] */
   1683     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D004FC5: fmul dword ptr [ebp - 0xc] */
   1684     MEM32(ebp + (-0x20)) = edx; /* 0x2D004FC8: mov dword ptr [ebp - 0x20], edx */
   1685     fp_push(*(float*)&MEM32(0x2D017518)); /* 0x2D004FCB: fld dword ptr [0x2d017518] */
   1686     MEM32(0x2D017518) = edx; /* 0x2D004FD1: mov dword ptr [0x2d017518], edx */
   1687     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D004FD7: fmul dword ptr [ebp - 0x10] */
   1688     fp_push(*(float*)&MEM32(0x2D017514)); /* 0x2D004FDA: fld dword ptr [0x2d017514] */
   1689     MEM32(0x2D017514) = ecx; /* 0x2D004FE0: mov dword ptr [0x2d017514], ecx */
   1690     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x2D004FE6: fmul dword ptr [ebp - 0x14] */
   1691     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D004FE9: faddp st(1) */
   1692     fp_push(*(float*)&MEM32(0x2D017510)); /* 0x2D004FEB: fld dword ptr [0x2d017510] */
   1693     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D004FF1: fmul dword ptr [ebp - 0x18] */
   1694     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D004FF4: faddp st(1) */
   1695     { double _v = fp_pop(); _st[0] -= _v; } /* 0x2D004FF6: fsubp st(1) */
   1696     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x2D004FF8: fstp dword ptr [ebp - 0x1c] */
   1697     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x2D004FFB: fstp dword ptr [ebp - 0x28] */
   1698     eax = MEM32(ebp + (-0x28)); /* 0x2D004FFE: mov eax, dword ptr [ebp - 0x28] */
   1699     MEM32(0x2D017510) = eax; /* 0x2D005001: mov dword ptr [0x2d017510], eax */
   1700     eax = MEM32(ebp + (-0x1C)); /* 0x2D005006: mov eax, dword ptr [ebp - 0x1c] */
   1701     MEM32(0x2D01751C) = eax; /* 0x2D005009: mov dword ptr [0x2d01751c], eax */
   1702     esp = ebp; /* 0x2D00500E: mov esp, ebp */
   1703     ebp = POP32_VAL(esp); /* 0x2D005010: pop ebp */
   1704     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D005011: ret  */
   1705     RECOMP_REGS_OUT();
   1706 }
   1707 
   1708 void sub_2D005020(void) {
   1709     int _fpu_cmp = 0;
   1710     uint32_t _cf = 0;
   1711     int _df = 1;
   1712     uint32_t _flag_k = FK_NONE;
   1713     uint32_t _flag_a = 0, _flag_b = 0;
   1714     uint32_t _itail_tgt = 0;
   1715     RECOMP_REGS_LOCALS
   1716     RECOMP_ENTER(0x2D005020u);
   1717 
   1718 L_2D005020:
   1719     PUSH32(esp, ebp); /* 0x2D005020: push ebp */
   1720     ebp = esp; /* 0x2D005021: mov ebp, esp */
   1721     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
   1722     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1723     esp = esp - 0x28u; /* 0x2D005023: sub esp, 0x28 */
   1724     _flag_k = FK_CMP;
   1725     fp_push(*(double*)ADDR(0x2D0096A0)); /* 0x2D005026: fld qword ptr [0x2d0096a0] */
   1726     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x2D00502C: fsin  */
   1727     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x2D00502E: fstp dword ptr [ebp - 0x18] */
   1728     fp_push(*(float*)&MEM32(0x2D009694)); /* 0x2D005031: fld dword ptr [0x2d009694] */
   1729     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x2D005037: fst dword ptr [ebp - 0x14] */
   1730     eax = MEM32(ebp + (-0x18)); /* 0x2D00503A: mov eax, dword ptr [ebp - 0x18] */
   1731     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x10)) = _v; } /* 0x2D00503D: fstp dword ptr [ebp - 0x10] */
   1732     MEM32(ebp + (-0x28)) = eax; /* 0x2D005040: mov dword ptr [ebp - 0x28], eax */
   1733     fp_push(*(double*)ADDR(0x2D0096A0)); /* 0x2D005043: fld qword ptr [0x2d0096a0] */
   1734     ecx = MEM32(ebp + (-0x14)); /* 0x2D005049: mov ecx, dword ptr [ebp - 0x14] */
   1735     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x2D00504C: fcos  */
   1736     edx = MEM32(ebp + (-0x10)); /* 0x2D00504E: mov edx, dword ptr [ebp - 0x10] */
   1737     MEM32(ebp + (-0x24)) = ecx; /* 0x2D005051: mov dword ptr [ebp - 0x24], ecx */
   1738     MEM32(ebp + (-0x20)) = edx; /* 0x2D005054: mov dword ptr [ebp - 0x20], edx */
   1739     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x2D005057: fstp dword ptr [ebp - 0xc] */
   1740     fp_push(*(float*)&MEM32(0x2D017514)); /* 0x2D00505A: fld dword ptr [0x2d017514] */
   1741     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D005060: fmul dword ptr [ebp - 0x10] */
   1742     eax = MEM32(ebp + (-0xC)); /* 0x2D005063: mov eax, dword ptr [ebp - 0xc] */
   1743     fp_push(*(float*)&MEM32(0x2D017510)); /* 0x2D005066: fld dword ptr [0x2d017510] */
   1744     MEM32(ebp + (-0x1C)) = eax; /* 0x2D00506C: mov dword ptr [ebp - 0x1c], eax */
   1745     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D00506F: fmul dword ptr [ebp - 0xc] */
   1746     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D005072: faddp st(1) */
   1747     fp_push(*(float*)&MEM32(0x2D017518)); /* 0x2D005074: fld dword ptr [0x2d017518] */
   1748     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x2D00507A: fmul dword ptr [ebp - 0x14] */
   1749     { double _v = fp_pop(); _st[0] -= _v; } /* 0x2D00507D: fsubp st(1) */
   1750     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D00507F: fld dword ptr [0x2d01751c] */
   1751     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D005085: fmul dword ptr [ebp - 0x18] */
   1752     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D005088: faddp st(1) */
   1753     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D00508A: fld dword ptr [0x2d01751c] */
   1754     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x2D005090: fmul dword ptr [ebp - 0x14] */
   1755     fp_push(*(float*)&MEM32(0x2D017510)); /* 0x2D005093: fld dword ptr [0x2d017510] */
   1756     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D005099: fmul dword ptr [ebp - 0x10] */
   1757     { double _v = fp_pop(); _st[0] -= _v; } /* 0x2D00509C: fsubp st(1) */
   1758     fp_push(*(float*)&MEM32(0x2D017514)); /* 0x2D00509E: fld dword ptr [0x2d017514] */
   1759     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D0050A4: fmul dword ptr [ebp - 0xc] */
   1760     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D0050A7: faddp st(1) */
   1761     fp_push(*(float*)&MEM32(0x2D017518)); /* 0x2D0050A9: fld dword ptr [0x2d017518] */
   1762     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D0050AF: fmul dword ptr [ebp - 0x18] */
   1763     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D0050B2: faddp st(1) */
   1764     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x2D0050B4: fstp dword ptr [ebp - 4] */
   1765     fp_push(*(float*)&MEM32(0x2D017510)); /* 0x2D0050B7: fld dword ptr [0x2d017510] */
   1766     ecx = MEM32(ebp + (-0x4)); /* 0x2D0050BD: mov ecx, dword ptr [ebp - 4] */
   1767     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x2D0050C0: fmul dword ptr [ebp - 0x14] */
   1768     MEM32(ebp + (-0x24)) = ecx; /* 0x2D0050C3: mov dword ptr [ebp - 0x24], ecx */
   1769     fp_push(*(float*)&MEM32(0x2D017514)); /* 0x2D0050C6: fld dword ptr [0x2d017514] */
   1770     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D0050CC: fmul dword ptr [ebp - 0x18] */
   1771     { double _v = fp_pop(); _st[0] -= _v; } /* 0x2D0050CF: fsubp st(1) */
   1772     fp_push(*(float*)&MEM32(0x2D017518)); /* 0x2D0050D1: fld dword ptr [0x2d017518] */
   1773     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D0050D7: fmul dword ptr [ebp - 0xc] */
   1774     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D0050DA: faddp st(1) */
   1775     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D0050DC: fld dword ptr [0x2d01751c] */
   1776     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D0050E2: fmul dword ptr [ebp - 0x10] */
   1777     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D0050E5: faddp st(1) */
   1778     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x2D0050E7: fstp dword ptr [ebp - 8] */
   1779     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D0050EA: fld dword ptr [0x2d01751c] */
   1780     edx = MEM32(ebp + (-0x8)); /* 0x2D0050F0: mov edx, dword ptr [ebp - 8] */
   1781     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D0050F3: fmul dword ptr [ebp - 0xc] */
   1782     MEM32(ebp + (-0x20)) = edx; /* 0x2D0050F6: mov dword ptr [ebp - 0x20], edx */
   1783     fp_push(*(float*)&MEM32(0x2D017518)); /* 0x2D0050F9: fld dword ptr [0x2d017518] */
   1784     MEM32(0x2D017518) = edx; /* 0x2D0050FF: mov dword ptr [0x2d017518], edx */
   1785     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D005105: fmul dword ptr [ebp - 0x10] */
   1786     fp_push(*(float*)&MEM32(0x2D017514)); /* 0x2D005108: fld dword ptr [0x2d017514] */
   1787     MEM32(0x2D017514) = ecx; /* 0x2D00510E: mov dword ptr [0x2d017514], ecx */
   1788     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x2D005114: fmul dword ptr [ebp - 0x14] */
   1789     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D005117: faddp st(1) */
   1790     fp_push(*(float*)&MEM32(0x2D017510)); /* 0x2D005119: fld dword ptr [0x2d017510] */
   1791     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D00511F: fmul dword ptr [ebp - 0x18] */
   1792     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D005122: faddp st(1) */
   1793     { double _v = fp_pop(); _st[0] -= _v; } /* 0x2D005124: fsubp st(1) */
   1794     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x2D005126: fstp dword ptr [ebp - 0x1c] */
   1795     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x2D005129: fstp dword ptr [ebp - 0x28] */
   1796     eax = MEM32(ebp + (-0x28)); /* 0x2D00512C: mov eax, dword ptr [ebp - 0x28] */
   1797     MEM32(0x2D017510) = eax; /* 0x2D00512F: mov dword ptr [0x2d017510], eax */
   1798     eax = MEM32(ebp + (-0x1C)); /* 0x2D005134: mov eax, dword ptr [ebp - 0x1c] */
   1799     MEM32(0x2D01751C) = eax; /* 0x2D005137: mov dword ptr [0x2d01751c], eax */
   1800     esp = ebp; /* 0x2D00513C: mov esp, ebp */
   1801     ebp = POP32_VAL(esp); /* 0x2D00513E: pop ebp */
   1802     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D00513F: ret  */
   1803     RECOMP_REGS_OUT();
   1804 }
   1805 
   1806 void sub_2D005140(void) {
   1807     int _fpu_cmp = 0;
   1808     uint32_t _cf = 0;
   1809     int _df = 1;
   1810     uint32_t _flag_k = FK_NONE;
   1811     uint32_t _flag_a = 0, _flag_b = 0;
   1812     uint32_t _itail_tgt = 0;
   1813     RECOMP_REGS_LOCALS
   1814     RECOMP_ENTER(0x2D005140u);
   1815 
   1816 L_2D005140:
   1817     PUSH32(esp, ebp); /* 0x2D005140: push ebp */
   1818     ebp = esp; /* 0x2D005141: mov ebp, esp */
   1819     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
   1820     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1821     esp = esp - 0x28u; /* 0x2D005143: sub esp, 0x28 */
   1822     _flag_k = FK_CMP;
   1823     PUSH32(esp, 0xBF7FFFFFu); /* 0x2D005146: push 0xbf7fffff */
   1824     PUSH32(esp, 0xFFFFFFFFu); /* 0x2D00514B: push -1 */
   1825     RECOMP_ICALL(MEM32(0x2D009074)); /* 0x2D00514D: call dword ptr [0x2d009074] */
   1826     RECOMP_FLAGS_IN();
   1827     _st[0] = (double)*(float*)ADDR(0x2D00969C) - _st[0]; /* 0x2D005153: fsubr dword ptr [0x2d00969c] */
   1828     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1829     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1830     esp = esp + 8; /* 0x2D005159: add esp, 8 */
   1831     _flag_k = FK_ADD;
   1832     _st[0] *= (double)*(float*)ADDR(0x2D009698); /* 0x2D00515C: fmul dword ptr [0x2d009698] */
   1833     fp_push(_st[0]); /* 0x2D005162: fld st(0) */
   1834     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x2D005164: fsin  */
   1835     fp_push(*(float*)&MEM32(0x2D009694)); /* 0x2D005166: fld dword ptr [0x2d009694] */
   1836     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x2D00516C: fst dword ptr [ebp - 4] */
   1837     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x2D00516F: fstp dword ptr [ebp - 0x18] */
   1838     eax = MEM32(ebp + (-0x4)); /* 0x2D005172: mov eax, dword ptr [ebp - 4] */
   1839     MEM32(ebp + (-0x10)) = eax; /* 0x2D005175: mov dword ptr [ebp - 0x10], eax */
   1840     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x2D005178: fstp dword ptr [ebp - 0x14] */
   1841     ecx = MEM32(ebp + (-0x18)); /* 0x2D00517B: mov ecx, dword ptr [ebp - 0x18] */
   1842     edx = MEM32(ebp + (-0x14)); /* 0x2D00517E: mov edx, dword ptr [ebp - 0x14] */
   1843     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x2D005181: fcos  */
   1844     MEM32(ebp + (-0x28)) = ecx; /* 0x2D005183: mov dword ptr [ebp - 0x28], ecx */
   1845     MEM32(ebp + (-0x24)) = edx; /* 0x2D005186: mov dword ptr [ebp - 0x24], edx */
   1846     MEM32(ebp + (-0x20)) = eax; /* 0x2D005189: mov dword ptr [ebp - 0x20], eax */
   1847     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x2D00518C: fstp dword ptr [ebp - 0xc] */
   1848     fp_push(*(float*)&MEM32(0x2D017514)); /* 0x2D00518F: fld dword ptr [0x2d017514] */
   1849     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D005195: fmul dword ptr [ebp - 0x10] */
   1850     ecx = MEM32(ebp + (-0xC)); /* 0x2D005198: mov ecx, dword ptr [ebp - 0xc] */
   1851     fp_push(*(float*)&MEM32(0x2D017510)); /* 0x2D00519B: fld dword ptr [0x2d017510] */
   1852     MEM32(ebp + (-0x1C)) = ecx; /* 0x2D0051A1: mov dword ptr [ebp - 0x1c], ecx */
   1853     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D0051A4: fmul dword ptr [ebp - 0xc] */
   1854     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D0051A7: faddp st(1) */
   1855     fp_push(*(float*)&MEM32(0x2D017518)); /* 0x2D0051A9: fld dword ptr [0x2d017518] */
   1856     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x2D0051AF: fmul dword ptr [ebp - 0x14] */
   1857     { double _v = fp_pop(); _st[0] -= _v; } /* 0x2D0051B2: fsubp st(1) */
   1858     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D0051B4: fld dword ptr [0x2d01751c] */
   1859     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D0051BA: fmul dword ptr [ebp - 0x18] */
   1860     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D0051BD: faddp st(1) */
   1861     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D0051BF: fld dword ptr [0x2d01751c] */
   1862     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x2D0051C5: fmul dword ptr [ebp - 0x14] */
   1863     fp_push(*(float*)&MEM32(0x2D017510)); /* 0x2D0051C8: fld dword ptr [0x2d017510] */
   1864     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D0051CE: fmul dword ptr [ebp - 0x10] */
   1865     { double _v = fp_pop(); _st[0] -= _v; } /* 0x2D0051D1: fsubp st(1) */
   1866     fp_push(*(float*)&MEM32(0x2D017514)); /* 0x2D0051D3: fld dword ptr [0x2d017514] */
   1867     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D0051D9: fmul dword ptr [ebp - 0xc] */
   1868     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D0051DC: faddp st(1) */
   1869     fp_push(*(float*)&MEM32(0x2D017518)); /* 0x2D0051DE: fld dword ptr [0x2d017518] */
   1870     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D0051E4: fmul dword ptr [ebp - 0x18] */
   1871     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D0051E7: faddp st(1) */
   1872     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x2D0051E9: fstp dword ptr [ebp - 4] */
   1873     fp_push(*(float*)&MEM32(0x2D017510)); /* 0x2D0051EC: fld dword ptr [0x2d017510] */
   1874     edx = MEM32(ebp + (-0x4)); /* 0x2D0051F2: mov edx, dword ptr [ebp - 4] */
   1875     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x2D0051F5: fmul dword ptr [ebp - 0x14] */
   1876     MEM32(ebp + (-0x24)) = edx; /* 0x2D0051F8: mov dword ptr [ebp - 0x24], edx */
   1877     fp_push(*(float*)&MEM32(0x2D017514)); /* 0x2D0051FB: fld dword ptr [0x2d017514] */
   1878     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D005201: fmul dword ptr [ebp - 0x18] */
   1879     { double _v = fp_pop(); _st[0] -= _v; } /* 0x2D005204: fsubp st(1) */
   1880     fp_push(*(float*)&MEM32(0x2D017518)); /* 0x2D005206: fld dword ptr [0x2d017518] */
   1881     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D00520C: fmul dword ptr [ebp - 0xc] */
   1882     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D00520F: faddp st(1) */
   1883     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D005211: fld dword ptr [0x2d01751c] */
   1884     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D005217: fmul dword ptr [ebp - 0x10] */
   1885     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D00521A: faddp st(1) */
   1886     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x2D00521C: fstp dword ptr [ebp - 8] */
   1887     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D00521F: fld dword ptr [0x2d01751c] */
   1888     eax = MEM32(ebp + (-0x8)); /* 0x2D005225: mov eax, dword ptr [ebp - 8] */
   1889     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D005228: fmul dword ptr [ebp - 0xc] */
   1890     MEM32(ebp + (-0x20)) = eax; /* 0x2D00522B: mov dword ptr [ebp - 0x20], eax */
   1891     fp_push(*(float*)&MEM32(0x2D017518)); /* 0x2D00522E: fld dword ptr [0x2d017518] */
   1892     MEM32(0x2D017518) = eax; /* 0x2D005234: mov dword ptr [0x2d017518], eax */
   1893     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D005239: fmul dword ptr [ebp - 0x10] */
   1894     fp_push(*(float*)&MEM32(0x2D017514)); /* 0x2D00523C: fld dword ptr [0x2d017514] */
   1895     MEM32(0x2D017514) = edx; /* 0x2D005242: mov dword ptr [0x2d017514], edx */
   1896     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x2D005248: fmul dword ptr [ebp - 0x14] */
   1897     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D00524B: faddp st(1) */
   1898     fp_push(*(float*)&MEM32(0x2D017510)); /* 0x2D00524D: fld dword ptr [0x2d017510] */
   1899     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D005253: fmul dword ptr [ebp - 0x18] */
   1900     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D005256: faddp st(1) */
   1901     { double _v = fp_pop(); _st[0] -= _v; } /* 0x2D005258: fsubp st(1) */
   1902     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x2D00525A: fstp dword ptr [ebp - 0x1c] */
   1903     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x2D00525D: fstp dword ptr [ebp - 0x28] */
   1904     ecx = MEM32(ebp + (-0x28)); /* 0x2D005260: mov ecx, dword ptr [ebp - 0x28] */
   1905     MEM32(0x2D017510) = ecx; /* 0x2D005263: mov dword ptr [0x2d017510], ecx */
   1906     ecx = MEM32(ebp + (-0x1C)); /* 0x2D005269: mov ecx, dword ptr [ebp - 0x1c] */
   1907     MEM32(0x2D01751C) = ecx; /* 0x2D00526C: mov dword ptr [0x2d01751c], ecx */
   1908     esp = ebp; /* 0x2D005272: mov esp, ebp */
   1909     ebp = POP32_VAL(esp); /* 0x2D005274: pop ebp */
   1910     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D005275: ret  */
   1911     RECOMP_REGS_OUT();
   1912 }
   1913 
   1914 void sub_2D005280(void) {
   1915     int _fpu_cmp = 0;
   1916     uint32_t _cf = 0;
   1917     int _df = 1;
   1918     uint32_t _flag_k = FK_NONE;
   1919     uint32_t _flag_a = 0, _flag_b = 0;
   1920     uint32_t _itail_tgt = 0;
   1921     RECOMP_REGS_LOCALS
   1922     RECOMP_ENTER(0x2D005280u);
   1923 
   1924 L_2D005280:
   1925     PUSH32(esp, ebp); /* 0x2D005280: push ebp */
   1926     ebp = esp; /* 0x2D005281: mov ebp, esp */
   1927     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
   1928     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1929     esp = esp - 0x28u; /* 0x2D005283: sub esp, 0x28 */
   1930     _flag_k = FK_CMP;
   1931     fp_push(*(double*)ADDR(0x2D0096A0)); /* 0x2D005286: fld qword ptr [0x2d0096a0] */
   1932     _st[0] = sin(_st[0]); _fpu_cmp = 1; /* 0x2D00528C: fsin  */
   1933     fp_push(*(float*)&MEM32(0x2D009694)); /* 0x2D00528E: fld dword ptr [0x2d009694] */
   1934     { float _v = (float)_st[0]; *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x2D005294: fst dword ptr [ebp - 4] */
   1935     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x18)) = _v; } /* 0x2D005297: fstp dword ptr [ebp - 0x18] */
   1936     eax = MEM32(ebp + (-0x4)); /* 0x2D00529A: mov eax, dword ptr [ebp - 4] */
   1937     MEM32(ebp + (-0x10)) = eax; /* 0x2D00529D: mov dword ptr [ebp - 0x10], eax */
   1938     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x14)) = _v; } /* 0x2D0052A0: fstp dword ptr [ebp - 0x14] */
   1939     ecx = MEM32(ebp + (-0x18)); /* 0x2D0052A3: mov ecx, dword ptr [ebp - 0x18] */
   1940     fp_push(*(double*)ADDR(0x2D0096A0)); /* 0x2D0052A6: fld qword ptr [0x2d0096a0] */
   1941     edx = MEM32(ebp + (-0x14)); /* 0x2D0052AC: mov edx, dword ptr [ebp - 0x14] */
   1942     _st[0] = cos(_st[0]); _fpu_cmp = 1; /* 0x2D0052AF: fcos  */
   1943     MEM32(ebp + (-0x28)) = ecx; /* 0x2D0052B1: mov dword ptr [ebp - 0x28], ecx */
   1944     MEM32(ebp + (-0x24)) = edx; /* 0x2D0052B4: mov dword ptr [ebp - 0x24], edx */
   1945     MEM32(ebp + (-0x20)) = eax; /* 0x2D0052B7: mov dword ptr [ebp - 0x20], eax */
   1946     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0xC)) = _v; } /* 0x2D0052BA: fstp dword ptr [ebp - 0xc] */
   1947     fp_push(*(float*)&MEM32(0x2D017514)); /* 0x2D0052BD: fld dword ptr [0x2d017514] */
   1948     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D0052C3: fmul dword ptr [ebp - 0x10] */
   1949     ecx = MEM32(ebp + (-0xC)); /* 0x2D0052C6: mov ecx, dword ptr [ebp - 0xc] */
   1950     fp_push(*(float*)&MEM32(0x2D017510)); /* 0x2D0052C9: fld dword ptr [0x2d017510] */
   1951     MEM32(ebp + (-0x1C)) = ecx; /* 0x2D0052CF: mov dword ptr [ebp - 0x1c], ecx */
   1952     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D0052D2: fmul dword ptr [ebp - 0xc] */
   1953     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D0052D5: faddp st(1) */
   1954     fp_push(*(float*)&MEM32(0x2D017518)); /* 0x2D0052D7: fld dword ptr [0x2d017518] */
   1955     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x2D0052DD: fmul dword ptr [ebp - 0x14] */
   1956     { double _v = fp_pop(); _st[0] -= _v; } /* 0x2D0052E0: fsubp st(1) */
   1957     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D0052E2: fld dword ptr [0x2d01751c] */
   1958     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D0052E8: fmul dword ptr [ebp - 0x18] */
   1959     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D0052EB: faddp st(1) */
   1960     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D0052ED: fld dword ptr [0x2d01751c] */
   1961     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x2D0052F3: fmul dword ptr [ebp - 0x14] */
   1962     fp_push(*(float*)&MEM32(0x2D017510)); /* 0x2D0052F6: fld dword ptr [0x2d017510] */
   1963     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D0052FC: fmul dword ptr [ebp - 0x10] */
   1964     { double _v = fp_pop(); _st[0] -= _v; } /* 0x2D0052FF: fsubp st(1) */
   1965     fp_push(*(float*)&MEM32(0x2D017514)); /* 0x2D005301: fld dword ptr [0x2d017514] */
   1966     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D005307: fmul dword ptr [ebp - 0xc] */
   1967     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D00530A: faddp st(1) */
   1968     fp_push(*(float*)&MEM32(0x2D017518)); /* 0x2D00530C: fld dword ptr [0x2d017518] */
   1969     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D005312: fmul dword ptr [ebp - 0x18] */
   1970     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D005315: faddp st(1) */
   1971     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x4)) = _v; } /* 0x2D005317: fstp dword ptr [ebp - 4] */
   1972     fp_push(*(float*)&MEM32(0x2D017510)); /* 0x2D00531A: fld dword ptr [0x2d017510] */
   1973     edx = MEM32(ebp + (-0x4)); /* 0x2D005320: mov edx, dword ptr [ebp - 4] */
   1974     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x2D005323: fmul dword ptr [ebp - 0x14] */
   1975     MEM32(ebp + (-0x24)) = edx; /* 0x2D005326: mov dword ptr [ebp - 0x24], edx */
   1976     fp_push(*(float*)&MEM32(0x2D017514)); /* 0x2D005329: fld dword ptr [0x2d017514] */
   1977     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D00532F: fmul dword ptr [ebp - 0x18] */
   1978     { double _v = fp_pop(); _st[0] -= _v; } /* 0x2D005332: fsubp st(1) */
   1979     fp_push(*(float*)&MEM32(0x2D017518)); /* 0x2D005334: fld dword ptr [0x2d017518] */
   1980     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D00533A: fmul dword ptr [ebp - 0xc] */
   1981     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D00533D: faddp st(1) */
   1982     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D00533F: fld dword ptr [0x2d01751c] */
   1983     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D005345: fmul dword ptr [ebp - 0x10] */
   1984     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D005348: faddp st(1) */
   1985     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x8)) = _v; } /* 0x2D00534A: fstp dword ptr [ebp - 8] */
   1986     fp_push(*(float*)&MEM32(0x2D01751C)); /* 0x2D00534D: fld dword ptr [0x2d01751c] */
   1987     eax = MEM32(ebp + (-0x8)); /* 0x2D005353: mov eax, dword ptr [ebp - 8] */
   1988     _st[0] *= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x2D005356: fmul dword ptr [ebp - 0xc] */
   1989     MEM32(ebp + (-0x20)) = eax; /* 0x2D005359: mov dword ptr [ebp - 0x20], eax */
   1990     fp_push(*(float*)&MEM32(0x2D017518)); /* 0x2D00535C: fld dword ptr [0x2d017518] */
   1991     MEM32(0x2D017518) = eax; /* 0x2D005362: mov dword ptr [0x2d017518], eax */
   1992     _st[0] *= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x2D005367: fmul dword ptr [ebp - 0x10] */
   1993     fp_push(*(float*)&MEM32(0x2D017514)); /* 0x2D00536A: fld dword ptr [0x2d017514] */
   1994     MEM32(0x2D017514) = edx; /* 0x2D005370: mov dword ptr [0x2d017514], edx */
   1995     _st[0] *= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x2D005376: fmul dword ptr [ebp - 0x14] */
   1996     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D005379: faddp st(1) */
   1997     fp_push(*(float*)&MEM32(0x2D017510)); /* 0x2D00537B: fld dword ptr [0x2d017510] */
   1998     _st[0] *= (double)*(float*)ADDR(ebp + (-0x18)); /* 0x2D005381: fmul dword ptr [ebp - 0x18] */
   1999     { double _v = fp_pop(); _st[0] += _v; } /* 0x2D005384: faddp st(1) */
   2000     { double _v = fp_pop(); _st[0] -= _v; } /* 0x2D005386: fsubp st(1) */
   2001     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x1C)) = _v; } /* 0x2D005388: fstp dword ptr [ebp - 0x1c] */
   2002     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x28)) = _v; } /* 0x2D00538B: fstp dword ptr [ebp - 0x28] */
   2003     ecx = MEM32(ebp + (-0x28)); /* 0x2D00538E: mov ecx, dword ptr [ebp - 0x28] */
   2004     MEM32(0x2D017510) = ecx; /* 0x2D005391: mov dword ptr [0x2d017510], ecx */
   2005     ecx = MEM32(ebp + (-0x1C)); /* 0x2D005397: mov ecx, dword ptr [ebp - 0x1c] */
   2006     MEM32(0x2D01751C) = ecx; /* 0x2D00539A: mov dword ptr [0x2d01751c], ecx */
   2007     esp = ebp; /* 0x2D0053A0: mov esp, ebp */
   2008     ebp = POP32_VAL(esp); /* 0x2D0053A2: pop ebp */
   2009     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D0053A3: ret  */
   2010     RECOMP_REGS_OUT();
   2011 }
   2012 
   2013 void sub_2D0053B0(void) {
   2014     int _fpu_cmp = 0;
   2015     uint32_t _cf = 0;
   2016     int _df = 1;
   2017     uint32_t _flag_k = FK_NONE;
   2018     uint32_t _flag_a = 0, _flag_b = 0;
   2019     uint32_t _itail_tgt = 0;
   2020     RECOMP_REGS_LOCALS
   2021     RECOMP_ENTER(0x2D0053B0u);
   2022 
   2023 L_2D0053B0:
   2024     { _itail_tgt = (uint32_t)(MEM32(0x2D0090F0)); goto _ljump; }
   2025     { RECOMP_REGS_OUT(); return; } /* end of function */
   2026   _ljump:
   2027     switch (_itail_tgt) {
   2028       case 0x2D0053B0u: goto L_2D0053B0;
   2029       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2030     }
   2031     RECOMP_REGS_OUT();
   2032 }
   2033 
   2034 void sub_2D0053C0(void) {
   2035     int _fpu_cmp = 0;
   2036     uint32_t _cf = 0;
   2037     int _df = 1;
   2038     uint32_t _flag_k = FK_NONE;
   2039     uint32_t _flag_a = 0, _flag_b = 0;
   2040     uint32_t _itail_tgt = 0;
   2041     RECOMP_REGS_LOCALS
   2042     RECOMP_ENTER(0x2D0053C0u);
   2043 
   2044 L_2D0053C0:
   2045     { _itail_tgt = (uint32_t)(MEM32(0x2D0090F4)); goto _ljump; }
   2046     { RECOMP_REGS_OUT(); return; } /* end of function */
   2047   _ljump:
   2048     switch (_itail_tgt) {
   2049       case 0x2D0053C0u: goto L_2D0053C0;
   2050       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2051     }
   2052     RECOMP_REGS_OUT();
   2053 }
   2054 
   2055 void sub_2D0053D0(void) {
   2056     int _fpu_cmp = 0;
   2057     uint32_t _cf = 0;
   2058     int _df = 1;
   2059     uint32_t _flag_k = FK_NONE;
   2060     uint32_t _flag_a = 0, _flag_b = 0;
   2061     uint32_t _itail_tgt = 0;
   2062     RECOMP_REGS_LOCALS
   2063     RECOMP_ENTER(0x2D0053D0u);
   2064 
   2065 L_2D0053D0:
   2066     { _itail_tgt = (uint32_t)(MEM32(0x2D0090F8)); goto _ljump; }
   2067     { RECOMP_REGS_OUT(); return; } /* end of function */
   2068   _ljump:
   2069     switch (_itail_tgt) {
   2070       case 0x2D0053D0u: goto L_2D0053D0;
   2071       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2072     }
   2073     RECOMP_REGS_OUT();
   2074 }
   2075 
   2076 void sub_2D0053E0(void) {
   2077     int _fpu_cmp = 0;
   2078     uint32_t _cf = 0;
   2079     int _df = 1;
   2080     uint32_t _flag_k = FK_NONE;
   2081     uint32_t _flag_a = 0, _flag_b = 0;
   2082     uint32_t _itail_tgt = 0;
   2083     RECOMP_REGS_LOCALS
   2084     RECOMP_ENTER(0x2D0053E0u);
   2085 
   2086 L_2D0053E0:
   2087     { _itail_tgt = (uint32_t)(MEM32(0x2D0095C0)); goto _ljump; }
   2088     { RECOMP_REGS_OUT(); return; } /* end of function */
   2089   _ljump:
   2090     switch (_itail_tgt) {
   2091       case 0x2D0053E0u: goto L_2D0053E0;
   2092       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2093     }
   2094     RECOMP_REGS_OUT();
   2095 }
   2096 
   2097 void sub_2D0053F0(void) {
   2098     int _fpu_cmp = 0;
   2099     uint32_t _cf = 0;
   2100     int _df = 1;
   2101     uint32_t _flag_k = FK_NONE;
   2102     uint32_t _flag_a = 0, _flag_b = 0;
   2103     uint32_t _itail_tgt = 0;
   2104     RECOMP_REGS_LOCALS
   2105     RECOMP_ENTER(0x2D0053F0u);
   2106 
   2107 L_2D0053F0:
   2108     ecx = MEM32(0x2D01752C); /* 0x2D0053F0: mov ecx, dword ptr [0x2d01752c] */
   2109 L_2D0053F6:
   2110     { _itail_tgt = (uint32_t)(MEM32(0x2D009154)); goto _ljump; }
   2111     { RECOMP_REGS_OUT(); return; } /* end of function */
   2112   _ljump:
   2113     switch (_itail_tgt) {
   2114       case 0x2D0053F0u: goto L_2D0053F0;
   2115       case 0x2D0053F6u: goto L_2D0053F6;
   2116       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2117     }
   2118     RECOMP_REGS_OUT();
   2119 }
   2120 
   2121 void sub_2D005400(void) {
   2122     int _fpu_cmp = 0;
   2123     uint32_t _cf = 0;
   2124     int _df = 1;
   2125     uint32_t _flag_k = FK_NONE;
   2126     uint32_t _flag_a = 0, _flag_b = 0;
   2127     uint32_t _itail_tgt = 0;
   2128     RECOMP_REGS_LOCALS
   2129     RECOMP_ENTER(0x2D005400u);
   2130 
   2131 L_2D005400:
   2132     PUSH32(esp, ebp); /* 0x2D005400: push ebp */
   2133     ebp = esp; /* 0x2D005401: mov ebp, esp */
   2134     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2135     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2136     esp = esp - 8; /* 0x2D005403: sub esp, 8 */
   2137     _flag_k = FK_CMP;
   2138     eax = ebp + (-0x8); /* 0x2D005406: lea eax, [ebp - 8] */
   2139     PUSH32(esp, eax); /* 0x2D005409: push eax */
   2140     MEM32(ebp + (-0x8)) = 0; /* 0x2D00540A: mov dword ptr [ebp - 8], 0 */
   2141     MEM32(ebp + (-0x4)) = 0; /* 0x2D005411: mov dword ptr [ebp - 4], 0 */
   2142     RECOMP_ICALL(MEM32(0x2D0090B8)); /* 0x2D005418: call dword ptr [0x2d0090b8] */
   2143     RECOMP_FLAGS_IN();
   2144     ecx = eax; /* 0x2D00541E: mov ecx, eax */
   2145     RECOMP_ICALL(MEM32(0x2D0090B4)); /* 0x2D005420: call dword ptr [0x2d0090b4] */
   2146     RECOMP_FLAGS_IN();
   2147     ecx = MEM32(0x2D01752C); /* 0x2D005426: mov ecx, dword ptr [0x2d01752c] */
   2148     /* test ecx, ecx */ /* 0x2D00542C: test ecx, ecx */
   2149     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2150     _cf = 0;
   2151     _flag_k = FK_TEST;
   2152     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00543A; /* 0x2D00542E: je 0x2d00543a */
   2153 L_2D005430:
   2154     edx = ebp + (-0x8); /* 0x2D005430: lea edx, [ebp - 8] */
   2155     PUSH32(esp, edx); /* 0x2D005433: push edx */
   2156     RECOMP_ICALL(MEM32(0x2D00937C)); /* 0x2D005434: call dword ptr [0x2d00937c] */
   2157     RECOMP_FLAGS_IN();
   2158 L_2D00543A:
   2159     esp = ebp; /* 0x2D00543A: mov esp, ebp */
   2160     ebp = POP32_VAL(esp); /* 0x2D00543C: pop ebp */
   2161     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D00543D: ret  */
   2162     RECOMP_REGS_OUT();
   2163 }
   2164 
   2165 void sub_2D005440(void) {
   2166     int _fpu_cmp = 0;
   2167     uint32_t _cf = 0;
   2168     int _df = 1;
   2169     uint32_t _flag_k = FK_NONE;
   2170     uint32_t _flag_a = 0, _flag_b = 0;
   2171     uint32_t _itail_tgt = 0;
   2172     RECOMP_REGS_LOCALS
   2173     RECOMP_ENTER(0x2D005440u);
   2174 
   2175 L_2D005440:
   2176     PUSH32(esp, ebp); /* 0x2D005440: push ebp */
   2177     ebp = esp; /* 0x2D005441: mov ebp, esp */
   2178     ecx = MEM32(0x2D01752C); /* 0x2D005443: mov ecx, dword ptr [0x2d01752c] */
   2179     /* test ecx, ecx */ /* 0x2D005449: test ecx, ecx */
   2180     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2181     _cf = 0;
   2182     _flag_k = FK_TEST;
   2183     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00545B; /* 0x2D00544B: je 0x2d00545b */
   2184 L_2D00544D:
   2185     eax = MEM32(ebp + 0xC); /* 0x2D00544D: mov eax, dword ptr [ebp + 0xc] */
   2186     edx = MEM32(ebp + 0x8); /* 0x2D005450: mov edx, dword ptr [ebp + 8] */
   2187     PUSH32(esp, eax); /* 0x2D005453: push eax */
   2188     PUSH32(esp, edx); /* 0x2D005454: push edx */
   2189     RECOMP_ICALL(MEM32(0x2D0091E0)); /* 0x2D005455: call dword ptr [0x2d0091e0] */
   2190     RECOMP_FLAGS_IN();
   2191 L_2D00545B:
   2192     ebp = POP32_VAL(esp); /* 0x2D00545B: pop ebp */
   2193     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D00545C: ret 8 */
   2194     RECOMP_REGS_OUT();
   2195 }
   2196 
   2197 void sub_2D005460(void) {
   2198     int _fpu_cmp = 0;
   2199     uint32_t _cf = 0;
   2200     int _df = 1;
   2201     uint32_t _flag_k = FK_NONE;
   2202     uint32_t _flag_a = 0, _flag_b = 0;
   2203     uint32_t _itail_tgt = 0;
   2204     RECOMP_REGS_LOCALS
   2205     RECOMP_ENTER(0x2D005460u);
   2206 
   2207 L_2D005460:
   2208     PUSH32(esp, ebp); /* 0x2D005460: push ebp */
   2209     ebp = esp; /* 0x2D005461: mov ebp, esp */
   2210     ecx = MEM32(0x2D01752C); /* 0x2D005463: mov ecx, dword ptr [0x2d01752c] */
   2211     /* test ecx, ecx */ /* 0x2D005469: test ecx, ecx */
   2212     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2213     _cf = 0;
   2214     _flag_k = FK_TEST;
   2215     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005477; /* 0x2D00546B: je 0x2d005477 */
   2216 L_2D00546D:
   2217     eax = MEM32(ebp + 0x8); /* 0x2D00546D: mov eax, dword ptr [ebp + 8] */
   2218     PUSH32(esp, eax); /* 0x2D005470: push eax */
   2219     RECOMP_ICALL(MEM32(0x2D009380)); /* 0x2D005471: call dword ptr [0x2d009380] */
   2220     RECOMP_FLAGS_IN();
   2221 L_2D005477:
   2222     ebp = POP32_VAL(esp); /* 0x2D005477: pop ebp */
   2223     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005478: ret 4 */
   2224     RECOMP_REGS_OUT();
   2225 }
   2226 
   2227 void sub_2D005480(void) {
   2228     int _fpu_cmp = 0;
   2229     uint32_t _cf = 0;
   2230     int _df = 1;
   2231     uint32_t _flag_k = FK_NONE;
   2232     uint32_t _flag_a = 0, _flag_b = 0;
   2233     uint32_t _itail_tgt = 0;
   2234     RECOMP_REGS_LOCALS
   2235     RECOMP_ENTER(0x2D005480u);
   2236 
   2237 L_2D005480:
   2238     ecx = MEM32(0x2D01752C); /* 0x2D005480: mov ecx, dword ptr [0x2d01752c] */
   2239 L_2D005486:
   2240     /* test ecx, ecx */ /* 0x2D005486: test ecx, ecx */
   2241     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2242     _cf = 0;
   2243     _flag_k = FK_TEST;
   2244 L_2D005488:
   2245     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2D005490; /* 0x2D005488: je 0x2d005490 */
   2246 L_2D00548A:
   2247     { _itail_tgt = (uint32_t)(MEM32(0x2D009384)); goto _ljump; }
   2248 L_2D005490:
   2249     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   2250     SET_LO8(eax, 0); /* 0x2D005490: xor al, al */
   2251     _cf = 0;
   2252     _flag_k = FK_NARROW(FK_TEST, 24);
   2253 L_2D005492:
   2254     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D005492: ret  */
   2255   _ljump:
   2256     switch (_itail_tgt) {
   2257       case 0x2D005480u: goto L_2D005480;
   2258       case 0x2D005486u: goto L_2D005486;
   2259       case 0x2D005488u: goto L_2D005488;
   2260       case 0x2D00548Au: goto L_2D00548A;
   2261       case 0x2D005490u: goto L_2D005490;
   2262       case 0x2D005492u: goto L_2D005492;
   2263       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2264     }
   2265     RECOMP_REGS_OUT();
   2266 }
   2267 
   2268 void sub_2D0054A0(void) {
   2269     int _fpu_cmp = 0;
   2270     uint32_t _cf = 0;
   2271     int _df = 1;
   2272     uint32_t _flag_k = FK_NONE;
   2273     uint32_t _flag_a = 0, _flag_b = 0;
   2274     uint32_t _itail_tgt = 0;
   2275     RECOMP_REGS_LOCALS
   2276     RECOMP_ENTER(0x2D0054A0u);
   2277 
   2278 L_2D0054A0:
   2279     PUSH32(esp, ebp); /* 0x2D0054A0: push ebp */
   2280     ebp = esp; /* 0x2D0054A1: mov ebp, esp */
   2281     ecx = MEM32(0x2D01752C); /* 0x2D0054A3: mov ecx, dword ptr [0x2d01752c] */
   2282     /* test ecx, ecx */ /* 0x2D0054A9: test ecx, ecx */
   2283     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2284     _cf = 0;
   2285     _flag_k = FK_TEST;
   2286     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0054B7; /* 0x2D0054AB: je 0x2d0054b7 */
   2287 L_2D0054AD:
   2288     eax = MEM32(ebp + 0x8); /* 0x2D0054AD: mov eax, dword ptr [ebp + 8] */
   2289     PUSH32(esp, eax); /* 0x2D0054B0: push eax */
   2290     RECOMP_ICALL(MEM32(0x2D009388)); /* 0x2D0054B1: call dword ptr [0x2d009388] */
   2291     RECOMP_FLAGS_IN();
   2292 L_2D0054B7:
   2293     ebp = POP32_VAL(esp); /* 0x2D0054B7: pop ebp */
   2294     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D0054B8: ret 4 */
   2295     RECOMP_REGS_OUT();
   2296 }
   2297 
   2298 void sub_2D0054C0(void) {
   2299     int _fpu_cmp = 0;
   2300     uint32_t _cf = 0;
   2301     int _df = 1;
   2302     uint32_t _flag_k = FK_NONE;
   2303     uint32_t _flag_a = 0, _flag_b = 0;
   2304     uint32_t _itail_tgt = 0;
   2305     RECOMP_REGS_LOCALS
   2306     RECOMP_ENTER(0x2D0054C0u);
   2307 
   2308 L_2D0054C0:
   2309     PUSH32(esp, ebp); /* 0x2D0054C0: push ebp */
   2310     ebp = esp; /* 0x2D0054C1: mov ebp, esp */
   2311     ecx = MEM32(0x2D01752C); /* 0x2D0054C3: mov ecx, dword ptr [0x2d01752c] */
   2312     /* test ecx, ecx */ /* 0x2D0054C9: test ecx, ecx */
   2313     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2314     _cf = 0;
   2315     _flag_k = FK_TEST;
   2316     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0054D7; /* 0x2D0054CB: je 0x2d0054d7 */
   2317 L_2D0054CD:
   2318     eax = MEM32(ebp + 0x8); /* 0x2D0054CD: mov eax, dword ptr [ebp + 8] */
   2319     PUSH32(esp, eax); /* 0x2D0054D0: push eax */
   2320     RECOMP_ICALL(MEM32(0x2D00938C)); /* 0x2D0054D1: call dword ptr [0x2d00938c] */
   2321     RECOMP_FLAGS_IN();
   2322 L_2D0054D7:
   2323     ebp = POP32_VAL(esp); /* 0x2D0054D7: pop ebp */
   2324     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D0054D8: ret 4 */
   2325     RECOMP_REGS_OUT();
   2326 }
   2327 
   2328 void sub_2D0054E0(void) {
   2329     int _fpu_cmp = 0;
   2330     uint32_t _cf = 0;
   2331     int _df = 1;
   2332     uint32_t _flag_k = FK_NONE;
   2333     uint32_t _flag_a = 0, _flag_b = 0;
   2334     uint32_t _itail_tgt = 0;
   2335     RECOMP_REGS_LOCALS
   2336     RECOMP_ENTER(0x2D0054E0u);
   2337 
   2338 L_2D0054E0:
   2339     PUSH32(esp, ebp); /* 0x2D0054E0: push ebp */
   2340     ebp = esp; /* 0x2D0054E1: mov ebp, esp */
   2341     ecx = MEM32(0x2D01752C); /* 0x2D0054E3: mov ecx, dword ptr [0x2d01752c] */
   2342     /* test ecx, ecx */ /* 0x2D0054E9: test ecx, ecx */
   2343     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2344     _cf = 0;
   2345     _flag_k = FK_TEST;
   2346     if (TEST_NZ(_flag_a, _flag_b)) goto L_2D0054F3; /* 0x2D0054EB: jne 0x2d0054f3 */
   2347 L_2D0054ED:
   2348     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   2349     SET_LO8(eax, 0); /* 0x2D0054ED: xor al, al */
   2350     _cf = 0;
   2351     _flag_k = FK_NARROW(FK_TEST, 24);
   2352     ebp = POP32_VAL(esp); /* 0x2D0054EF: pop ebp */
   2353     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D0054F0: ret 4 */
   2354 L_2D0054F3:
   2355     eax = MEM32(ebp + 0x8); /* 0x2D0054F3: mov eax, dword ptr [ebp + 8] */
   2356     PUSH32(esp, eax); /* 0x2D0054F6: push eax */
   2357     RECOMP_ICALL(MEM32(0x2D009390)); /* 0x2D0054F7: call dword ptr [0x2d009390] */
   2358     RECOMP_FLAGS_IN();
   2359     ebp = POP32_VAL(esp); /* 0x2D0054FD: pop ebp */
   2360     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D0054FE: ret 4 */
   2361     RECOMP_REGS_OUT();
   2362 }
   2363 
   2364 void sub_2D005510(void) {
   2365     int _fpu_cmp = 0;
   2366     uint32_t _cf = 0;
   2367     int _df = 1;
   2368     uint32_t _flag_k = FK_NONE;
   2369     uint32_t _flag_a = 0, _flag_b = 0;
   2370     uint32_t _itail_tgt = 0;
   2371     RECOMP_REGS_LOCALS
   2372     RECOMP_ENTER(0x2D005510u);
   2373 
   2374 L_2D005510:
   2375     PUSH32(esp, ebp); /* 0x2D005510: push ebp */
   2376     ebp = esp; /* 0x2D005511: mov ebp, esp */
   2377     ecx = MEM32(0x2D01752C); /* 0x2D005513: mov ecx, dword ptr [0x2d01752c] */
   2378     /* test ecx, ecx */ /* 0x2D005519: test ecx, ecx */
   2379     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2380     _cf = 0;
   2381     _flag_k = FK_TEST;
   2382     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00552F; /* 0x2D00551B: je 0x2d00552f */
   2383 L_2D00551D:
   2384     eax = MEM32(ebp + 0xC); /* 0x2D00551D: mov eax, dword ptr [ebp + 0xc] */
   2385     edx = MEM32(ebp + 0x8); /* 0x2D005520: mov edx, dword ptr [ebp + 8] */
   2386     PUSH32(esp, eax); /* 0x2D005523: push eax */
   2387     PUSH32(esp, edx); /* 0x2D005524: push edx */
   2388     RECOMP_ICALL(MEM32(0x2D009394)); /* 0x2D005525: call dword ptr [0x2d009394] */
   2389     RECOMP_FLAGS_IN();
   2390     ebp = POP32_VAL(esp); /* 0x2D00552B: pop ebp */
   2391     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D00552C: ret 8 */
   2392 L_2D00552F:
   2393     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2394     eax = 0; /* 0x2D00552F: xor eax, eax */
   2395     _cf = 0;
   2396     _flag_k = FK_TEST;
   2397     ebp = POP32_VAL(esp); /* 0x2D005531: pop ebp */
   2398     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D005532: ret 8 */
   2399     RECOMP_REGS_OUT();
   2400 }
   2401 
   2402 void sub_2D005540(void) {
   2403     int _fpu_cmp = 0;
   2404     uint32_t _cf = 0;
   2405     int _df = 1;
   2406     uint32_t _flag_k = FK_NONE;
   2407     uint32_t _flag_a = 0, _flag_b = 0;
   2408     uint32_t _itail_tgt = 0;
   2409     RECOMP_REGS_LOCALS
   2410     RECOMP_ENTER(0x2D005540u);
   2411 
   2412 L_2D005540:
   2413     PUSH32(esp, ebp); /* 0x2D005540: push ebp */
   2414     ebp = esp; /* 0x2D005541: mov ebp, esp */
   2415     eax = MEM32(ebp + 0x8); /* 0x2D005543: mov eax, dword ptr [ebp + 8] */
   2416     ecx = MEM32(0x2D01752C); /* 0x2D005546: mov ecx, dword ptr [0x2d01752c] */
   2417     PUSH32(esp, eax); /* 0x2D00554C: push eax */
   2418     RECOMP_ICALL(MEM32(0x2D009398)); /* 0x2D00554D: call dword ptr [0x2d009398] */
   2419     RECOMP_FLAGS_IN();
   2420     ebp = POP32_VAL(esp); /* 0x2D005553: pop ebp */
   2421     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005554: ret 4 */
   2422     RECOMP_REGS_OUT();
   2423 }
   2424 
   2425 void sub_2D005560(void) {
   2426     int _fpu_cmp = 0;
   2427     uint32_t _cf = 0;
   2428     int _df = 1;
   2429     uint32_t _flag_k = FK_NONE;
   2430     uint32_t _flag_a = 0, _flag_b = 0;
   2431     uint32_t _itail_tgt = 0;
   2432     RECOMP_REGS_LOCALS
   2433     RECOMP_ENTER(0x2D005560u);
   2434 
   2435 L_2D005560:
   2436     PUSH32(esp, ebp); /* 0x2D005560: push ebp */
   2437     ebp = esp; /* 0x2D005561: mov ebp, esp */
   2438     eax = MEM32(ebp + 0x8); /* 0x2D005563: mov eax, dword ptr [ebp + 8] */
   2439     ecx = MEM32(0x2D01752C); /* 0x2D005566: mov ecx, dword ptr [0x2d01752c] */
   2440     PUSH32(esp, eax); /* 0x2D00556C: push eax */
   2441     RECOMP_ICALL(MEM32(0x2D00939C)); /* 0x2D00556D: call dword ptr [0x2d00939c] */
   2442     RECOMP_FLAGS_IN();
   2443     ebp = POP32_VAL(esp); /* 0x2D005573: pop ebp */
   2444     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005574: ret 4 */
   2445     RECOMP_REGS_OUT();
   2446 }
   2447 
   2448 void sub_2D005580(void) {
   2449     int _fpu_cmp = 0;
   2450     uint32_t _cf = 0;
   2451     int _df = 1;
   2452     uint32_t _flag_k = FK_NONE;
   2453     uint32_t _flag_a = 0, _flag_b = 0;
   2454     uint32_t _itail_tgt = 0;
   2455     RECOMP_REGS_LOCALS
   2456     RECOMP_ENTER(0x2D005580u);
   2457 
   2458 L_2D005580:
   2459     PUSH32(esp, ebp); /* 0x2D005580: push ebp */
   2460     ebp = esp; /* 0x2D005581: mov ebp, esp */
   2461     eax = MEM32(ebp + 0x8); /* 0x2D005583: mov eax, dword ptr [ebp + 8] */
   2462     ecx = MEM32(0x2D01752C); /* 0x2D005586: mov ecx, dword ptr [0x2d01752c] */
   2463     PUSH32(esp, eax); /* 0x2D00558C: push eax */
   2464     RECOMP_ICALL(MEM32(0x2D0093A0)); /* 0x2D00558D: call dword ptr [0x2d0093a0] */
   2465     RECOMP_FLAGS_IN();
   2466     ebp = POP32_VAL(esp); /* 0x2D005593: pop ebp */
   2467     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005594: ret 4 */
   2468     RECOMP_REGS_OUT();
   2469 }
   2470 
   2471 void sub_2D0055A0(void) {
   2472     int _fpu_cmp = 0;
   2473     uint32_t _cf = 0;
   2474     int _df = 1;
   2475     uint32_t _flag_k = FK_NONE;
   2476     uint32_t _flag_a = 0, _flag_b = 0;
   2477     uint32_t _itail_tgt = 0;
   2478     RECOMP_REGS_LOCALS
   2479     RECOMP_ENTER(0x2D0055A0u);
   2480 
   2481 L_2D0055A0:
   2482     PUSH32(esp, ebp); /* 0x2D0055A0: push ebp */
   2483     ebp = esp; /* 0x2D0055A1: mov ebp, esp */
   2484     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2485     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2486     esp = esp - 8; /* 0x2D0055A3: sub esp, 8 */
   2487     _flag_k = FK_CMP;
   2488     eax = MEM32(ebp + 0xC); /* 0x2D0055A6: mov eax, dword ptr [ebp + 0xc] */
   2489     PUSH32(esp, eax); /* 0x2D0055A9: push eax */
   2490     ecx = ebp + (-0x8); /* 0x2D0055AA: lea ecx, [ebp - 8] */
   2491     PUSH32(esp, ecx); /* 0x2D0055AD: push ecx */
   2492     ecx = MEM32(0x2D01752C); /* 0x2D0055AE: mov ecx, dword ptr [0x2d01752c] */
   2493     RECOMP_ICALL(MEM32(0x2D0093A4)); /* 0x2D0055B4: call dword ptr [0x2d0093a4] */
   2494     RECOMP_FLAGS_IN();
   2495     ecx = eax; /* 0x2D0055BA: mov ecx, eax */
   2496     eax = MEM32(ebp + 0x8); /* 0x2D0055BC: mov eax, dword ptr [ebp + 8] */
   2497     /* cmp eax, ecx */ /* 0x2D0055BF: cmp eax, ecx */
   2498     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2499     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2500     _flag_k = FK_CMP;
   2501     if (CMP_EQ(_flag_a, _flag_b)) goto L_2D0055CD; /* 0x2D0055C1: je 0x2d0055cd */
   2502 L_2D0055C3:
   2503     edx = MEM32(ecx); /* 0x2D0055C3: mov edx, dword ptr [ecx] */
   2504     MEM32(eax) = edx; /* 0x2D0055C5: mov dword ptr [eax], edx */
   2505     ecx = MEM32(ecx + 0x4); /* 0x2D0055C7: mov ecx, dword ptr [ecx + 4] */
   2506     MEM32(eax + 0x4) = ecx; /* 0x2D0055CA: mov dword ptr [eax + 4], ecx */
   2507 L_2D0055CD:
   2508     esp = ebp; /* 0x2D0055CD: mov esp, ebp */
   2509     ebp = POP32_VAL(esp); /* 0x2D0055CF: pop ebp */
   2510     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D0055D0: ret 8 */
   2511     RECOMP_REGS_OUT();
   2512 }
   2513 
   2514 void sub_2D0055E0(void) {
   2515     int _fpu_cmp = 0;
   2516     uint32_t _cf = 0;
   2517     int _df = 1;
   2518     uint32_t _flag_k = FK_NONE;
   2519     uint32_t _flag_a = 0, _flag_b = 0;
   2520     uint32_t _itail_tgt = 0;
   2521     RECOMP_REGS_LOCALS
   2522     RECOMP_ENTER(0x2D0055E0u);
   2523 
   2524 L_2D0055E0:
   2525     PUSH32(esp, ebp); /* 0x2D0055E0: push ebp */
   2526     ebp = esp; /* 0x2D0055E1: mov ebp, esp */
   2527     eax = MEM32(ebp + 0xC); /* 0x2D0055E3: mov eax, dword ptr [ebp + 0xc] */
   2528     ecx = MEM32(ebp + 0x8); /* 0x2D0055E6: mov ecx, dword ptr [ebp + 8] */
   2529     PUSH32(esp, eax); /* 0x2D0055E9: push eax */
   2530     PUSH32(esp, ecx); /* 0x2D0055EA: push ecx */
   2531     ecx = MEM32(0x2D01752C); /* 0x2D0055EB: mov ecx, dword ptr [0x2d01752c] */
   2532     RECOMP_ICALL(MEM32(0x2D0093A8)); /* 0x2D0055F1: call dword ptr [0x2d0093a8] */
   2533     RECOMP_FLAGS_IN();
   2534     ebp = POP32_VAL(esp); /* 0x2D0055F7: pop ebp */
   2535     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D0055F8: ret 8 */
   2536     RECOMP_REGS_OUT();
   2537 }
   2538 
   2539 void sub_2D005600(void) {
   2540     int _fpu_cmp = 0;
   2541     uint32_t _cf = 0;
   2542     int _df = 1;
   2543     uint32_t _flag_k = FK_NONE;
   2544     uint32_t _flag_a = 0, _flag_b = 0;
   2545     uint32_t _itail_tgt = 0;
   2546     RECOMP_REGS_LOCALS
   2547     RECOMP_ENTER(0x2D005600u);
   2548 
   2549 L_2D005600:
   2550     PUSH32(esp, ebp); /* 0x2D005600: push ebp */
   2551     ebp = esp; /* 0x2D005601: mov ebp, esp */
   2552     eax = MEM32(ebp + 0xC); /* 0x2D005603: mov eax, dword ptr [ebp + 0xc] */
   2553     ecx = MEM32(ebp + 0x8); /* 0x2D005606: mov ecx, dword ptr [ebp + 8] */
   2554     PUSH32(esp, eax); /* 0x2D005609: push eax */
   2555     PUSH32(esp, ecx); /* 0x2D00560A: push ecx */
   2556     ecx = MEM32(0x2D01752C); /* 0x2D00560B: mov ecx, dword ptr [0x2d01752c] */
   2557     RECOMP_ICALL(MEM32(0x2D0093AC)); /* 0x2D005611: call dword ptr [0x2d0093ac] */
   2558     RECOMP_FLAGS_IN();
   2559     ebp = POP32_VAL(esp); /* 0x2D005617: pop ebp */
   2560     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D005618: ret 8 */
   2561     RECOMP_REGS_OUT();
   2562 }
   2563 
   2564 void sub_2D005620(void) {
   2565     int _fpu_cmp = 0;
   2566     uint32_t _cf = 0;
   2567     int _df = 1;
   2568     uint32_t _flag_k = FK_NONE;
   2569     uint32_t _flag_a = 0, _flag_b = 0;
   2570     uint32_t _itail_tgt = 0;
   2571     RECOMP_REGS_LOCALS
   2572     RECOMP_ENTER(0x2D005620u);
   2573 
   2574 L_2D005620:
   2575     PUSH32(esp, ebp); /* 0x2D005620: push ebp */
   2576     ebp = esp; /* 0x2D005621: mov ebp, esp */
   2577     eax = MEM32(ebp + 0xC); /* 0x2D005623: mov eax, dword ptr [ebp + 0xc] */
   2578     ecx = MEM32(ebp + 0x8); /* 0x2D005626: mov ecx, dword ptr [ebp + 8] */
   2579     PUSH32(esp, eax); /* 0x2D005629: push eax */
   2580     PUSH32(esp, ecx); /* 0x2D00562A: push ecx */
   2581     ecx = MEM32(0x2D01752C); /* 0x2D00562B: mov ecx, dword ptr [0x2d01752c] */
   2582     RECOMP_ICALL(MEM32(0x2D0093B0)); /* 0x2D005631: call dword ptr [0x2d0093b0] */
   2583     RECOMP_FLAGS_IN();
   2584     ebp = POP32_VAL(esp); /* 0x2D005637: pop ebp */
   2585     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D005638: ret 8 */
   2586     RECOMP_REGS_OUT();
   2587 }
   2588 
   2589 void sub_2D005640(void) {
   2590     int _fpu_cmp = 0;
   2591     uint32_t _cf = 0;
   2592     int _df = 1;
   2593     uint32_t _flag_k = FK_NONE;
   2594     uint32_t _flag_a = 0, _flag_b = 0;
   2595     uint32_t _itail_tgt = 0;
   2596     RECOMP_REGS_LOCALS
   2597     RECOMP_ENTER(0x2D005640u);
   2598 
   2599 L_2D005640:
   2600     PUSH32(esp, ebp); /* 0x2D005640: push ebp */
   2601     ebp = esp; /* 0x2D005641: mov ebp, esp */
   2602     eax = MEM32(ebp + 0x8); /* 0x2D005643: mov eax, dword ptr [ebp + 8] */
   2603     ecx = MEM32(0x2D01752C); /* 0x2D005646: mov ecx, dword ptr [0x2d01752c] */
   2604     PUSH32(esp, eax); /* 0x2D00564C: push eax */
   2605     RECOMP_ICALL(MEM32(0x2D0093B4)); /* 0x2D00564D: call dword ptr [0x2d0093b4] */
   2606     RECOMP_FLAGS_IN();
   2607     ebp = POP32_VAL(esp); /* 0x2D005653: pop ebp */
   2608     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005654: ret 4 */
   2609     RECOMP_REGS_OUT();
   2610 }
   2611 
   2612 void sub_2D005660(void) {
   2613     int _fpu_cmp = 0;
   2614     uint32_t _cf = 0;
   2615     int _df = 1;
   2616     uint32_t _flag_k = FK_NONE;
   2617     uint32_t _flag_a = 0, _flag_b = 0;
   2618     uint32_t _itail_tgt = 0;
   2619     RECOMP_REGS_LOCALS
   2620     RECOMP_ENTER(0x2D005660u);
   2621 
   2622 L_2D005660:
   2623     PUSH32(esp, ebp); /* 0x2D005660: push ebp */
   2624     ebp = esp; /* 0x2D005661: mov ebp, esp */
   2625     ecx = MEM32(0x2D01752C); /* 0x2D005663: mov ecx, dword ptr [0x2d01752c] */
   2626     /* test ecx, ecx */ /* 0x2D005669: test ecx, ecx */
   2627     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2628     _cf = 0;
   2629     _flag_k = FK_TEST;
   2630     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00567B; /* 0x2D00566B: je 0x2d00567b */
   2631 L_2D00566D:
   2632     eax = MEM32(ebp + 0x8); /* 0x2D00566D: mov eax, dword ptr [ebp + 8] */
   2633     PUSH32(esp, eax); /* 0x2D005670: push eax */
   2634     RECOMP_ICALL(MEM32(0x2D0093B8)); /* 0x2D005671: call dword ptr [0x2d0093b8] */
   2635     RECOMP_FLAGS_IN();
   2636     ebp = POP32_VAL(esp); /* 0x2D005677: pop ebp */
   2637     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005678: ret 4 */
   2638 L_2D00567B:
   2639     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   2640     SET_LO8(eax, 0); /* 0x2D00567B: xor al, al */
   2641     _cf = 0;
   2642     _flag_k = FK_NARROW(FK_TEST, 24);
   2643     ebp = POP32_VAL(esp); /* 0x2D00567D: pop ebp */
   2644     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D00567E: ret 4 */
   2645     RECOMP_REGS_OUT();
   2646 }
   2647 
   2648 void sub_2D005690(void) {
   2649     int _fpu_cmp = 0;
   2650     uint32_t _cf = 0;
   2651     int _df = 1;
   2652     uint32_t _flag_k = FK_NONE;
   2653     uint32_t _flag_a = 0, _flag_b = 0;
   2654     uint32_t _itail_tgt = 0;
   2655     RECOMP_REGS_LOCALS
   2656     RECOMP_ENTER(0x2D005690u);
   2657 
   2658 L_2D005690:
   2659     PUSH32(esp, ebp); /* 0x2D005690: push ebp */
   2660     ebp = esp; /* 0x2D005691: mov ebp, esp */
   2661     ecx = MEM32(0x2D01752C); /* 0x2D005693: mov ecx, dword ptr [0x2d01752c] */
   2662     /* test ecx, ecx */ /* 0x2D005699: test ecx, ecx */
   2663     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2664     _cf = 0;
   2665     _flag_k = FK_TEST;
   2666     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0056A7; /* 0x2D00569B: je 0x2d0056a7 */
   2667 L_2D00569D:
   2668     eax = MEM32(ebp + 0x8); /* 0x2D00569D: mov eax, dword ptr [ebp + 8] */
   2669     PUSH32(esp, eax); /* 0x2D0056A0: push eax */
   2670     RECOMP_ICALL(MEM32(0x2D0093BC)); /* 0x2D0056A1: call dword ptr [0x2d0093bc] */
   2671     RECOMP_FLAGS_IN();
   2672 L_2D0056A7:
   2673     ebp = POP32_VAL(esp); /* 0x2D0056A7: pop ebp */
   2674     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D0056A8: ret 4 */
   2675     RECOMP_REGS_OUT();
   2676 }
   2677 
   2678 void sub_2D0056B0(void) {
   2679     int _fpu_cmp = 0;
   2680     uint32_t _cf = 0;
   2681     int _df = 1;
   2682     uint32_t _flag_k = FK_NONE;
   2683     uint32_t _flag_a = 0, _flag_b = 0;
   2684     uint32_t _itail_tgt = 0;
   2685     RECOMP_REGS_LOCALS
   2686     RECOMP_ENTER(0x2D0056B0u);
   2687 
   2688 L_2D0056B0:
   2689     PUSH32(esp, ebp); /* 0x2D0056B0: push ebp */
   2690     ebp = esp; /* 0x2D0056B1: mov ebp, esp */
   2691     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2692     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2693     esp = esp - 8; /* 0x2D0056B3: sub esp, 8 */
   2694     _flag_k = FK_CMP;
   2695     eax = ebp + (-0x8); /* 0x2D0056B6: lea eax, [ebp - 8] */
   2696     PUSH32(esp, eax); /* 0x2D0056B9: push eax */
   2697     MEM32(ebp + (-0x8)) = 0; /* 0x2D0056BA: mov dword ptr [ebp - 8], 0 */
   2698     MEM32(ebp + (-0x4)) = 0; /* 0x2D0056C1: mov dword ptr [ebp - 4], 0 */
   2699     RECOMP_ICALL(MEM32(0x2D0090B8)); /* 0x2D0056C8: call dword ptr [0x2d0090b8] */
   2700     RECOMP_FLAGS_IN();
   2701     ecx = eax; /* 0x2D0056CE: mov ecx, eax */
   2702     RECOMP_ICALL(MEM32(0x2D0090B4)); /* 0x2D0056D0: call dword ptr [0x2d0090b4] */
   2703     RECOMP_FLAGS_IN();
   2704     ecx = MEM32(0x2D01752C); /* 0x2D0056D6: mov ecx, dword ptr [0x2d01752c] */
   2705     /* test ecx, ecx */ /* 0x2D0056DC: test ecx, ecx */
   2706     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2707     _cf = 0;
   2708     _flag_k = FK_TEST;
   2709     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0056EA; /* 0x2D0056DE: je 0x2d0056ea */
   2710 L_2D0056E0:
   2711     edx = ebp + (-0x8); /* 0x2D0056E0: lea edx, [ebp - 8] */
   2712     PUSH32(esp, edx); /* 0x2D0056E3: push edx */
   2713     RECOMP_ICALL(MEM32(0x2D0093C0)); /* 0x2D0056E4: call dword ptr [0x2d0093c0] */
   2714     RECOMP_FLAGS_IN();
   2715 L_2D0056EA:
   2716     esp = ebp; /* 0x2D0056EA: mov esp, ebp */
   2717     ebp = POP32_VAL(esp); /* 0x2D0056EC: pop ebp */
   2718     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D0056ED: ret  */
   2719     RECOMP_REGS_OUT();
   2720 }
   2721 
   2722 void sub_2D0056F0(void) {
   2723     int _fpu_cmp = 0;
   2724     uint32_t _cf = 0;
   2725     int _df = 1;
   2726     uint32_t _flag_k = FK_NONE;
   2727     uint32_t _flag_a = 0, _flag_b = 0;
   2728     uint32_t _itail_tgt = 0;
   2729     RECOMP_REGS_LOCALS
   2730     RECOMP_ENTER(0x2D0056F0u);
   2731 
   2732 L_2D0056F0:
   2733     PUSH32(esp, ebp); /* 0x2D0056F0: push ebp */
   2734     ebp = esp; /* 0x2D0056F1: mov ebp, esp */
   2735     ecx = MEM32(0x2D01752C); /* 0x2D0056F3: mov ecx, dword ptr [0x2d01752c] */
   2736     /* test ecx, ecx */ /* 0x2D0056F9: test ecx, ecx */
   2737     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2738     _cf = 0;
   2739     _flag_k = FK_TEST;
   2740     if (TEST_Z(_flag_a, _flag_b)) goto L_2D00570F; /* 0x2D0056FB: je 0x2d00570f */
   2741 L_2D0056FD:
   2742     eax = MEM32(ebp + 0xC); /* 0x2D0056FD: mov eax, dword ptr [ebp + 0xc] */
   2743     edx = MEM32(ebp + 0x8); /* 0x2D005700: mov edx, dword ptr [ebp + 8] */
   2744     PUSH32(esp, eax); /* 0x2D005703: push eax */
   2745     PUSH32(esp, edx); /* 0x2D005704: push edx */
   2746     RECOMP_ICALL(MEM32(0x2D0093C4)); /* 0x2D005705: call dword ptr [0x2d0093c4] */
   2747     RECOMP_FLAGS_IN();
   2748     ebp = POP32_VAL(esp); /* 0x2D00570B: pop ebp */
   2749     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D00570C: ret 8 */
   2750 L_2D00570F:
   2751     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   2752     SET_LO8(eax, 0); /* 0x2D00570F: xor al, al */
   2753     _cf = 0;
   2754     _flag_k = FK_NARROW(FK_TEST, 24);
   2755     ebp = POP32_VAL(esp); /* 0x2D005711: pop ebp */
   2756     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D005712: ret 8 */
   2757     RECOMP_REGS_OUT();
   2758 }
   2759 
   2760 void sub_2D005720(void) {
   2761     int _fpu_cmp = 0;
   2762     uint32_t _cf = 0;
   2763     int _df = 1;
   2764     uint32_t _flag_k = FK_NONE;
   2765     uint32_t _flag_a = 0, _flag_b = 0;
   2766     uint32_t _itail_tgt = 0;
   2767     RECOMP_REGS_LOCALS
   2768     RECOMP_ENTER(0x2D005720u);
   2769 
   2770 L_2D005720:
   2771     PUSH32(esp, ebp); /* 0x2D005720: push ebp */
   2772     ebp = esp; /* 0x2D005721: mov ebp, esp */
   2773     eax = MEM32(ebp + 0x8); /* 0x2D005723: mov eax, dword ptr [ebp + 8] */
   2774     ecx = MEM32(0x2D01752C); /* 0x2D005726: mov ecx, dword ptr [0x2d01752c] */
   2775     PUSH32(esp, eax); /* 0x2D00572C: push eax */
   2776     RECOMP_ICALL(MEM32(0x2D0093C8)); /* 0x2D00572D: call dword ptr [0x2d0093c8] */
   2777     RECOMP_FLAGS_IN();
   2778     ebp = POP32_VAL(esp); /* 0x2D005733: pop ebp */
   2779     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005734: ret 4 */
   2780     RECOMP_REGS_OUT();
   2781 }
   2782 
   2783 void sub_2D005740(void) {
   2784     int _fpu_cmp = 0;
   2785     uint32_t _cf = 0;
   2786     int _df = 1;
   2787     uint32_t _flag_k = FK_NONE;
   2788     uint32_t _flag_a = 0, _flag_b = 0;
   2789     uint32_t _itail_tgt = 0;
   2790     RECOMP_REGS_LOCALS
   2791     RECOMP_ENTER(0x2D005740u);
   2792 
   2793 L_2D005740:
   2794     PUSH32(esp, ebp); /* 0x2D005740: push ebp */
   2795     ebp = esp; /* 0x2D005741: mov ebp, esp */
   2796     eax = MEM32(ebp + 0x8); /* 0x2D005743: mov eax, dword ptr [ebp + 8] */
   2797     ecx = MEM32(0x2D01752C); /* 0x2D005746: mov ecx, dword ptr [0x2d01752c] */
   2798     PUSH32(esp, eax); /* 0x2D00574C: push eax */
   2799     RECOMP_ICALL(MEM32(0x2D0093CC)); /* 0x2D00574D: call dword ptr [0x2d0093cc] */
   2800     RECOMP_FLAGS_IN();
   2801     ebp = POP32_VAL(esp); /* 0x2D005753: pop ebp */
   2802     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005754: ret 4 */
   2803     RECOMP_REGS_OUT();
   2804 }
   2805 
   2806 void sub_2D005760(void) {
   2807     int _fpu_cmp = 0;
   2808     uint32_t _cf = 0;
   2809     int _df = 1;
   2810     uint32_t _flag_k = FK_NONE;
   2811     uint32_t _flag_a = 0, _flag_b = 0;
   2812     uint32_t _itail_tgt = 0;
   2813     RECOMP_REGS_LOCALS
   2814     RECOMP_ENTER(0x2D005760u);
   2815 
   2816 L_2D005760:
   2817     ecx = MEM32(0x2D01752C); /* 0x2D005760: mov ecx, dword ptr [0x2d01752c] */
   2818 L_2D005766:
   2819     /* test ecx, ecx */ /* 0x2D005766: test ecx, ecx */
   2820     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2821     _cf = 0;
   2822     _flag_k = FK_TEST;
   2823 L_2D005768:
   2824     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2D005770; /* 0x2D005768: je 0x2d005770 */
   2825 L_2D00576A:
   2826     { _itail_tgt = (uint32_t)(MEM32(0x2D0093D0)); goto _ljump; }
   2827 L_2D005770:
   2828     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   2829     SET_LO8(eax, 0); /* 0x2D005770: xor al, al */
   2830     _cf = 0;
   2831     _flag_k = FK_NARROW(FK_TEST, 24);
   2832 L_2D005772:
   2833     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D005772: ret  */
   2834   _ljump:
   2835     switch (_itail_tgt) {
   2836       case 0x2D005760u: goto L_2D005760;
   2837       case 0x2D005766u: goto L_2D005766;
   2838       case 0x2D005768u: goto L_2D005768;
   2839       case 0x2D00576Au: goto L_2D00576A;
   2840       case 0x2D005770u: goto L_2D005770;
   2841       case 0x2D005772u: goto L_2D005772;
   2842       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2843     }
   2844     RECOMP_REGS_OUT();
   2845 }
   2846 
   2847 void sub_2D005780(void) {
   2848     int _fpu_cmp = 0;
   2849     uint32_t _cf = 0;
   2850     int _df = 1;
   2851     uint32_t _flag_k = FK_NONE;
   2852     uint32_t _flag_a = 0, _flag_b = 0;
   2853     uint32_t _itail_tgt = 0;
   2854     RECOMP_REGS_LOCALS
   2855     RECOMP_ENTER(0x2D005780u);
   2856 
   2857 L_2D005780:
   2858     ecx = MEM32(0x2D01752C); /* 0x2D005780: mov ecx, dword ptr [0x2d01752c] */
   2859     /* test ecx, ecx */ /* 0x2D005786: test ecx, ecx */
   2860     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2861     _cf = 0;
   2862     _flag_k = FK_TEST;
   2863     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005797; /* 0x2D005788: je 0x2d005797 */
   2864 L_2D00578A:
   2865     RECOMP_ICALL(MEM32(0x2D0092E4)); /* 0x2D00578A: call dword ptr [0x2d0092e4] */
   2866     RECOMP_FLAGS_IN();
   2867     /* test eax, eax */ /* 0x2D005790: test eax, eax */
   2868     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2869     _cf = 0;
   2870     _flag_k = FK_TEST;
   2871     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005797; /* 0x2D005792: je 0x2d005797 */
   2872 L_2D005794:
   2873     SET_LO8(eax, 1); /* 0x2D005794: mov al, 1 */
   2874     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D005796: ret  */
   2875 L_2D005797:
   2876     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   2877     SET_LO8(eax, 0); /* 0x2D005797: xor al, al */
   2878     _cf = 0;
   2879     _flag_k = FK_NARROW(FK_TEST, 24);
   2880     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D005799: ret  */
   2881     RECOMP_REGS_OUT();
   2882 }
   2883 
   2884 void sub_2D0057A0(void) {
   2885     int _fpu_cmp = 0;
   2886     uint32_t _cf = 0;
   2887     int _df = 1;
   2888     uint32_t _flag_k = FK_NONE;
   2889     uint32_t _flag_a = 0, _flag_b = 0;
   2890     uint32_t _itail_tgt = 0;
   2891     RECOMP_REGS_LOCALS
   2892     RECOMP_ENTER(0x2D0057A0u);
   2893 
   2894 L_2D0057A0:
   2895     ecx = MEM32(0x2D01752C); /* 0x2D0057A0: mov ecx, dword ptr [0x2d01752c] */
   2896 L_2D0057A6:
   2897     /* test ecx, ecx */ /* 0x2D0057A6: test ecx, ecx */
   2898     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2899     _cf = 0;
   2900     _flag_k = FK_TEST;
   2901 L_2D0057A8:
   2902     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2D0057B0; /* 0x2D0057A8: je 0x2d0057b0 */
   2903 L_2D0057AA:
   2904     { _itail_tgt = (uint32_t)(MEM32(0x2D0093D4)); goto _ljump; }
   2905 L_2D0057B0:
   2906     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   2907     SET_LO8(eax, 0); /* 0x2D0057B0: xor al, al */
   2908     _cf = 0;
   2909     _flag_k = FK_NARROW(FK_TEST, 24);
   2910 L_2D0057B2:
   2911     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D0057B2: ret  */
   2912   _ljump:
   2913     switch (_itail_tgt) {
   2914       case 0x2D0057A0u: goto L_2D0057A0;
   2915       case 0x2D0057A6u: goto L_2D0057A6;
   2916       case 0x2D0057A8u: goto L_2D0057A8;
   2917       case 0x2D0057AAu: goto L_2D0057AA;
   2918       case 0x2D0057B0u: goto L_2D0057B0;
   2919       case 0x2D0057B2u: goto L_2D0057B2;
   2920       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2921     }
   2922     RECOMP_REGS_OUT();
   2923 }
   2924 
   2925 void sub_2D0057C0(void) {
   2926     int _fpu_cmp = 0;
   2927     uint32_t _cf = 0;
   2928     int _df = 1;
   2929     uint32_t _flag_k = FK_NONE;
   2930     uint32_t _flag_a = 0, _flag_b = 0;
   2931     uint32_t _itail_tgt = 0;
   2932     RECOMP_REGS_LOCALS
   2933     RECOMP_ENTER(0x2D0057C0u);
   2934 
   2935 L_2D0057C0:
   2936     goto L_2D0057F0; /* 0x2D0057C0: jmp 0x2d0057f0 */
   2937 L_2D0057F0:
   2938     PUSH32(esp, ebp); /* 0x2D0057F0: push ebp */
   2939     ebp = esp; /* 0x2D0057F1: mov ebp, esp */
   2940     PUSH32(esp, ecx); /* 0x2D0057F3: push ecx */
   2941     ecx = MEM32(0x2D017530); /* 0x2D0057F4: mov ecx, dword ptr [0x2d017530] */
   2942     RECOMP_ICALL(0x2D007360u); /* 0x2D0057FA: call 0x2d007360 */ /* not lifted */
   2943     RECOMP_FLAGS_IN();
   2944     /* cmp eax, 8 */ /* 0x2D0057FF: cmp eax, 8 */
   2945     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   2946     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2947     _flag_k = FK_CMP;
   2948     if (CMP_NE(_flag_a, _flag_b)) goto L_2D005819; /* 0x2D005802: jne 0x2d005819 */
   2949 L_2D005804:
   2950     PUSH32(esp, 0x1A7u); /* 0x2D005804: push 0x1a7 */
   2951     PUSH32(esp, 0x17u); /* 0x2D005809: push 0x17 */
   2952     RECOMP_ICALL(MEM32(0x2D0090B8)); /* 0x2D00580B: call dword ptr [0x2d0090b8] */
   2953     RECOMP_FLAGS_IN();
   2954     ecx = eax; /* 0x2D005811: mov ecx, eax */
   2955     RECOMP_ICALL(MEM32(0x2D0090A4)); /* 0x2D005813: call dword ptr [0x2d0090a4] */
   2956     RECOMP_FLAGS_IN();
   2957 L_2D005819:
   2958     ecx = MEM32(0x2D01752C); /* 0x2D005819: mov ecx, dword ptr [0x2d01752c] */
   2959     /* test ecx, ecx */ /* 0x2D00581F: test ecx, ecx */
   2960     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2961     _cf = 0;
   2962     _flag_k = FK_TEST;
   2963     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005836; /* 0x2D005821: je 0x2d005836 */
   2964 L_2D005823:
   2965     eax = ebp + (-0x4); /* 0x2D005823: lea eax, [ebp - 4] */
   2966     PUSH32(esp, eax); /* 0x2D005826: push eax */
   2967     PUSH32(esp, 1); /* 0x2D005827: push 1 */
   2968     MEM32(ebp + (-0x4)) = 0; /* 0x2D005829: mov dword ptr [ebp - 4], 0 */
   2969     RECOMP_ICALL(MEM32(0x2D0093D8)); /* 0x2D005830: call dword ptr [0x2d0093d8] */
   2970     RECOMP_FLAGS_IN();
   2971 L_2D005836:
   2972     esp = ebp; /* 0x2D005836: mov esp, ebp */
   2973     ebp = POP32_VAL(esp); /* 0x2D005838: pop ebp */
   2974     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D005839: ret  */
   2975     RECOMP_REGS_OUT();
   2976 }
   2977 
   2978 void sub_2D0057D0(void) {
   2979     int _fpu_cmp = 0;
   2980     uint32_t _cf = 0;
   2981     int _df = 1;
   2982     uint32_t _flag_k = FK_NONE;
   2983     uint32_t _flag_a = 0, _flag_b = 0;
   2984     uint32_t _itail_tgt = 0;
   2985     RECOMP_REGS_LOCALS
   2986     RECOMP_ENTER(0x2D0057D0u);
   2987 
   2988 L_2D0057D0:
   2989     RECOMP_ICALL(0x2D005840u); /* 0x2D0057D0: call 0x2d005840 */ /* not lifted */
   2990     RECOMP_FLAGS_IN();
   2991     RECOMP_ICALL(0x2D0058C0u); /* 0x2D0057D5: call 0x2d0058c0 */ /* not lifted */
   2992     RECOMP_FLAGS_IN();
   2993     RECOMP_ICALL(0x2D005920u); /* 0x2D0057DA: call 0x2d005920 */ /* not lifted */
   2994     RECOMP_FLAGS_IN();
   2995     RECOMP_ICALL(0x2D005980u); /* 0x2D0057DF: call 0x2d005980 */ /* not lifted */
   2996     RECOMP_FLAGS_IN();
   2997     RECOMP_ICALL(0x2D005A00u); /* 0x2D0057E4: call 0x2d005a00 */ /* not lifted */
   2998     RECOMP_FLAGS_IN();
   2999     goto L_2D005A80; /* 0x2D0057E9: jmp 0x2d005a80 */
   3000 L_2D005A80:
   3001     PUSH32(esp, ebp); /* 0x2D005A80: push ebp */
   3002     ebp = esp; /* 0x2D005A81: mov ebp, esp */
   3003     PUSH32(esp, ecx); /* 0x2D005A83: push ecx */
   3004     ecx = MEM32(0x2D01752C); /* 0x2D005A84: mov ecx, dword ptr [0x2d01752c] */
   3005     /* test ecx, ecx */ /* 0x2D005A8A: test ecx, ecx */
   3006     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3007     _cf = 0;
   3008     _flag_k = FK_TEST;
   3009     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005AA1; /* 0x2D005A8C: je 0x2d005aa1 */
   3010 L_2D005A8E:
   3011     eax = ebp + (-0x4); /* 0x2D005A8E: lea eax, [ebp - 4] */
   3012     PUSH32(esp, eax); /* 0x2D005A91: push eax */
   3013     PUSH32(esp, 6); /* 0x2D005A92: push 6 */
   3014     MEM32(ebp + (-0x4)) = 0; /* 0x2D005A94: mov dword ptr [ebp - 4], 0 */
   3015     RECOMP_ICALL(MEM32(0x2D0093D8)); /* 0x2D005A9B: call dword ptr [0x2d0093d8] */
   3016     RECOMP_FLAGS_IN();
   3017 L_2D005AA1:
   3018     esp = ebp; /* 0x2D005AA1: mov esp, ebp */
   3019     ebp = POP32_VAL(esp); /* 0x2D005AA3: pop ebp */
   3020     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D005AA4: ret  */
   3021     RECOMP_REGS_OUT();
   3022 }
   3023 
   3024 void sub_2D0057F0(void) {
   3025     int _fpu_cmp = 0;
   3026     uint32_t _cf = 0;
   3027     int _df = 1;
   3028     uint32_t _flag_k = FK_NONE;
   3029     uint32_t _flag_a = 0, _flag_b = 0;
   3030     uint32_t _itail_tgt = 0;
   3031     RECOMP_REGS_LOCALS
   3032     RECOMP_ENTER(0x2D0057F0u);
   3033 
   3034 L_2D0057F0:
   3035     PUSH32(esp, ebp); /* 0x2D0057F0: push ebp */
   3036     ebp = esp; /* 0x2D0057F1: mov ebp, esp */
   3037     PUSH32(esp, ecx); /* 0x2D0057F3: push ecx */
   3038     ecx = MEM32(0x2D017530); /* 0x2D0057F4: mov ecx, dword ptr [0x2d017530] */
   3039     RECOMP_ICALL(0x2D007360u); /* 0x2D0057FA: call 0x2d007360 */ /* not lifted */
   3040     RECOMP_FLAGS_IN();
   3041     /* cmp eax, 8 */ /* 0x2D0057FF: cmp eax, 8 */
   3042     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   3043     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3044     _flag_k = FK_CMP;
   3045     if (CMP_NE(_flag_a, _flag_b)) goto L_2D005819; /* 0x2D005802: jne 0x2d005819 */
   3046 L_2D005804:
   3047     PUSH32(esp, 0x1A7u); /* 0x2D005804: push 0x1a7 */
   3048     PUSH32(esp, 0x17u); /* 0x2D005809: push 0x17 */
   3049     RECOMP_ICALL(MEM32(0x2D0090B8)); /* 0x2D00580B: call dword ptr [0x2d0090b8] */
   3050     RECOMP_FLAGS_IN();
   3051     ecx = eax; /* 0x2D005811: mov ecx, eax */
   3052     RECOMP_ICALL(MEM32(0x2D0090A4)); /* 0x2D005813: call dword ptr [0x2d0090a4] */
   3053     RECOMP_FLAGS_IN();
   3054 L_2D005819:
   3055     ecx = MEM32(0x2D01752C); /* 0x2D005819: mov ecx, dword ptr [0x2d01752c] */
   3056     /* test ecx, ecx */ /* 0x2D00581F: test ecx, ecx */
   3057     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3058     _cf = 0;
   3059     _flag_k = FK_TEST;
   3060     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005836; /* 0x2D005821: je 0x2d005836 */
   3061 L_2D005823:
   3062     eax = ebp + (-0x4); /* 0x2D005823: lea eax, [ebp - 4] */
   3063     PUSH32(esp, eax); /* 0x2D005826: push eax */
   3064     PUSH32(esp, 1); /* 0x2D005827: push 1 */
   3065     MEM32(ebp + (-0x4)) = 0; /* 0x2D005829: mov dword ptr [ebp - 4], 0 */
   3066     RECOMP_ICALL(MEM32(0x2D0093D8)); /* 0x2D005830: call dword ptr [0x2d0093d8] */
   3067     RECOMP_FLAGS_IN();
   3068 L_2D005836:
   3069     esp = ebp; /* 0x2D005836: mov esp, ebp */
   3070     ebp = POP32_VAL(esp); /* 0x2D005838: pop ebp */
   3071     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D005839: ret  */
   3072     RECOMP_REGS_OUT();
   3073 }
   3074 
   3075 void sub_2D005840(void) {
   3076     int _fpu_cmp = 0;
   3077     uint32_t _cf = 0;
   3078     int _df = 1;
   3079     uint32_t _flag_k = FK_NONE;
   3080     uint32_t _flag_a = 0, _flag_b = 0;
   3081     uint32_t _itail_tgt = 0;
   3082     RECOMP_REGS_LOCALS
   3083     RECOMP_ENTER(0x2D005840u);
   3084 
   3085 L_2D005840:
   3086     PUSH32(esp, ebp); /* 0x2D005840: push ebp */
   3087     ebp = esp; /* 0x2D005841: mov ebp, esp */
   3088     PUSH32(esp, ecx); /* 0x2D005843: push ecx */
   3089     ecx = MEM32(0x2D01752C); /* 0x2D005844: mov ecx, dword ptr [0x2d01752c] */
   3090     /* test ecx, ecx */ /* 0x2D00584A: test ecx, ecx */
   3091     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3092     _cf = 0;
   3093     _flag_k = FK_TEST;
   3094     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005861; /* 0x2D00584C: je 0x2d005861 */
   3095 L_2D00584E:
   3096     eax = ebp + (-0x4); /* 0x2D00584E: lea eax, [ebp - 4] */
   3097     PUSH32(esp, eax); /* 0x2D005851: push eax */
   3098     PUSH32(esp, 2); /* 0x2D005852: push 2 */
   3099     MEM32(ebp + (-0x4)) = 0; /* 0x2D005854: mov dword ptr [ebp - 4], 0 */
   3100     RECOMP_ICALL(MEM32(0x2D0093D8)); /* 0x2D00585B: call dword ptr [0x2d0093d8] */
   3101     RECOMP_FLAGS_IN();
   3102 L_2D005861:
   3103     esp = ebp; /* 0x2D005861: mov esp, ebp */
   3104     ebp = POP32_VAL(esp); /* 0x2D005863: pop ebp */
   3105     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D005864: ret  */
   3106     RECOMP_REGS_OUT();
   3107 }
   3108 
   3109 void sub_2D005870(void) {
   3110     int _fpu_cmp = 0;
   3111     uint32_t _cf = 0;
   3112     int _df = 1;
   3113     uint32_t _flag_k = FK_NONE;
   3114     uint32_t _flag_a = 0, _flag_b = 0;
   3115     uint32_t _itail_tgt = 0;
   3116     RECOMP_REGS_LOCALS
   3117     RECOMP_ENTER(0x2D005870u);
   3118 
   3119 L_2D005870:
   3120     PUSH32(esp, ebp); /* 0x2D005870: push ebp */
   3121     ebp = esp; /* 0x2D005871: mov ebp, esp */
   3122     PUSH32(esp, ecx); /* 0x2D005873: push ecx */
   3123     ecx = MEM32(0x2D017530); /* 0x2D005874: mov ecx, dword ptr [0x2d017530] */
   3124     RECOMP_ICALL(0x2D007360u); /* 0x2D00587A: call 0x2d007360 */ /* not lifted */
   3125     RECOMP_FLAGS_IN();
   3126     /* cmp eax, 8 */ /* 0x2D00587F: cmp eax, 8 */
   3127     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   3128     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3129     _flag_k = FK_CMP;
   3130     if (CMP_NE(_flag_a, _flag_b)) goto L_2D005899; /* 0x2D005882: jne 0x2d005899 */
   3131 L_2D005884:
   3132     PUSH32(esp, 0x1A7u); /* 0x2D005884: push 0x1a7 */
   3133     PUSH32(esp, 0x17u); /* 0x2D005889: push 0x17 */
   3134     RECOMP_ICALL(MEM32(0x2D0090B8)); /* 0x2D00588B: call dword ptr [0x2d0090b8] */
   3135     RECOMP_FLAGS_IN();
   3136     ecx = eax; /* 0x2D005891: mov ecx, eax */
   3137     RECOMP_ICALL(MEM32(0x2D0090A4)); /* 0x2D005893: call dword ptr [0x2d0090a4] */
   3138     RECOMP_FLAGS_IN();
   3139 L_2D005899:
   3140     ecx = MEM32(0x2D01752C); /* 0x2D005899: mov ecx, dword ptr [0x2d01752c] */
   3141     /* test ecx, ecx */ /* 0x2D00589F: test ecx, ecx */
   3142     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3143     _cf = 0;
   3144     _flag_k = FK_TEST;
   3145     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0058B6; /* 0x2D0058A1: je 0x2d0058b6 */
   3146 L_2D0058A3:
   3147     eax = ebp + (-0x4); /* 0x2D0058A3: lea eax, [ebp - 4] */
   3148     PUSH32(esp, eax); /* 0x2D0058A6: push eax */
   3149     PUSH32(esp, 3); /* 0x2D0058A7: push 3 */
   3150     MEM32(ebp + (-0x4)) = 0; /* 0x2D0058A9: mov dword ptr [ebp - 4], 0 */
   3151     RECOMP_ICALL(MEM32(0x2D0093D8)); /* 0x2D0058B0: call dword ptr [0x2d0093d8] */
   3152     RECOMP_FLAGS_IN();
   3153 L_2D0058B6:
   3154     esp = ebp; /* 0x2D0058B6: mov esp, ebp */
   3155     ebp = POP32_VAL(esp); /* 0x2D0058B8: pop ebp */
   3156     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D0058B9: ret  */
   3157     RECOMP_REGS_OUT();
   3158 }
   3159 
   3160 void sub_2D0058C0(void) {
   3161     int _fpu_cmp = 0;
   3162     uint32_t _cf = 0;
   3163     int _df = 1;
   3164     uint32_t _flag_k = FK_NONE;
   3165     uint32_t _flag_a = 0, _flag_b = 0;
   3166     uint32_t _itail_tgt = 0;
   3167     RECOMP_REGS_LOCALS
   3168     RECOMP_ENTER(0x2D0058C0u);
   3169 
   3170 L_2D0058C0:
   3171     PUSH32(esp, ebp); /* 0x2D0058C0: push ebp */
   3172     ebp = esp; /* 0x2D0058C1: mov ebp, esp */
   3173     PUSH32(esp, ecx); /* 0x2D0058C3: push ecx */
   3174     ecx = MEM32(0x2D01752C); /* 0x2D0058C4: mov ecx, dword ptr [0x2d01752c] */
   3175     /* test ecx, ecx */ /* 0x2D0058CA: test ecx, ecx */
   3176     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3177     _cf = 0;
   3178     _flag_k = FK_TEST;
   3179     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0058E1; /* 0x2D0058CC: je 0x2d0058e1 */
   3180 L_2D0058CE:
   3181     eax = ebp + (-0x4); /* 0x2D0058CE: lea eax, [ebp - 4] */
   3182     PUSH32(esp, eax); /* 0x2D0058D1: push eax */
   3183     PUSH32(esp, 4); /* 0x2D0058D2: push 4 */
   3184     MEM32(ebp + (-0x4)) = 0; /* 0x2D0058D4: mov dword ptr [ebp - 4], 0 */
   3185     RECOMP_ICALL(MEM32(0x2D0093D8)); /* 0x2D0058DB: call dword ptr [0x2d0093d8] */
   3186     RECOMP_FLAGS_IN();
   3187 L_2D0058E1:
   3188     esp = ebp; /* 0x2D0058E1: mov esp, ebp */
   3189     ebp = POP32_VAL(esp); /* 0x2D0058E3: pop ebp */
   3190     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D0058E4: ret  */
   3191     RECOMP_REGS_OUT();
   3192 }
   3193 
   3194 void sub_2D0058F0(void) {
   3195     int _fpu_cmp = 0;
   3196     uint32_t _cf = 0;
   3197     int _df = 1;
   3198     uint32_t _flag_k = FK_NONE;
   3199     uint32_t _flag_a = 0, _flag_b = 0;
   3200     uint32_t _itail_tgt = 0;
   3201     RECOMP_REGS_LOCALS
   3202     RECOMP_ENTER(0x2D0058F0u);
   3203 
   3204 L_2D0058F0:
   3205     PUSH32(esp, ebp); /* 0x2D0058F0: push ebp */
   3206     ebp = esp; /* 0x2D0058F1: mov ebp, esp */
   3207     PUSH32(esp, ecx); /* 0x2D0058F3: push ecx */
   3208     ecx = MEM32(0x2D01752C); /* 0x2D0058F4: mov ecx, dword ptr [0x2d01752c] */
   3209     /* test ecx, ecx */ /* 0x2D0058FA: test ecx, ecx */
   3210     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3211     _cf = 0;
   3212     _flag_k = FK_TEST;
   3213     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005911; /* 0x2D0058FC: je 0x2d005911 */
   3214 L_2D0058FE:
   3215     eax = ebp + (-0x4); /* 0x2D0058FE: lea eax, [ebp - 4] */
   3216     PUSH32(esp, eax); /* 0x2D005901: push eax */
   3217     PUSH32(esp, 0xBu); /* 0x2D005902: push 0xb */
   3218     MEM32(ebp + (-0x4)) = 0; /* 0x2D005904: mov dword ptr [ebp - 4], 0 */
   3219     RECOMP_ICALL(MEM32(0x2D0093D8)); /* 0x2D00590B: call dword ptr [0x2d0093d8] */
   3220     RECOMP_FLAGS_IN();
   3221 L_2D005911:
   3222     esp = ebp; /* 0x2D005911: mov esp, ebp */
   3223     ebp = POP32_VAL(esp); /* 0x2D005913: pop ebp */
   3224     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D005914: ret  */
   3225     RECOMP_REGS_OUT();
   3226 }
   3227 
   3228 void sub_2D005920(void) {
   3229     int _fpu_cmp = 0;
   3230     uint32_t _cf = 0;
   3231     int _df = 1;
   3232     uint32_t _flag_k = FK_NONE;
   3233     uint32_t _flag_a = 0, _flag_b = 0;
   3234     uint32_t _itail_tgt = 0;
   3235     RECOMP_REGS_LOCALS
   3236     RECOMP_ENTER(0x2D005920u);
   3237 
   3238 L_2D005920:
   3239     PUSH32(esp, ebp); /* 0x2D005920: push ebp */
   3240     ebp = esp; /* 0x2D005921: mov ebp, esp */
   3241     PUSH32(esp, ecx); /* 0x2D005923: push ecx */
   3242     ecx = MEM32(0x2D01752C); /* 0x2D005924: mov ecx, dword ptr [0x2d01752c] */
   3243     /* test ecx, ecx */ /* 0x2D00592A: test ecx, ecx */
   3244     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3245     _cf = 0;
   3246     _flag_k = FK_TEST;
   3247     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005941; /* 0x2D00592C: je 0x2d005941 */
   3248 L_2D00592E:
   3249     eax = ebp + (-0x4); /* 0x2D00592E: lea eax, [ebp - 4] */
   3250     PUSH32(esp, eax); /* 0x2D005931: push eax */
   3251     PUSH32(esp, 0xCu); /* 0x2D005932: push 0xc */
   3252     MEM32(ebp + (-0x4)) = 0; /* 0x2D005934: mov dword ptr [ebp - 4], 0 */
   3253     RECOMP_ICALL(MEM32(0x2D0093D8)); /* 0x2D00593B: call dword ptr [0x2d0093d8] */
   3254     RECOMP_FLAGS_IN();
   3255 L_2D005941:
   3256     esp = ebp; /* 0x2D005941: mov esp, ebp */
   3257     ebp = POP32_VAL(esp); /* 0x2D005943: pop ebp */
   3258     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D005944: ret  */
   3259     RECOMP_REGS_OUT();
   3260 }
   3261 
   3262 void sub_2D005950(void) {
   3263     int _fpu_cmp = 0;
   3264     uint32_t _cf = 0;
   3265     int _df = 1;
   3266     uint32_t _flag_k = FK_NONE;
   3267     uint32_t _flag_a = 0, _flag_b = 0;
   3268     uint32_t _itail_tgt = 0;
   3269     RECOMP_REGS_LOCALS
   3270     RECOMP_ENTER(0x2D005950u);
   3271 
   3272 L_2D005950:
   3273     PUSH32(esp, ebp); /* 0x2D005950: push ebp */
   3274     ebp = esp; /* 0x2D005951: mov ebp, esp */
   3275     PUSH32(esp, ecx); /* 0x2D005953: push ecx */
   3276     ecx = MEM32(0x2D01752C); /* 0x2D005954: mov ecx, dword ptr [0x2d01752c] */
   3277     /* test ecx, ecx */ /* 0x2D00595A: test ecx, ecx */
   3278     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3279     _cf = 0;
   3280     _flag_k = FK_TEST;
   3281     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005971; /* 0x2D00595C: je 0x2d005971 */
   3282 L_2D00595E:
   3283     eax = ebp + (-0x4); /* 0x2D00595E: lea eax, [ebp - 4] */
   3284     PUSH32(esp, eax); /* 0x2D005961: push eax */
   3285     PUSH32(esp, 9); /* 0x2D005962: push 9 */
   3286     MEM32(ebp + (-0x4)) = 0; /* 0x2D005964: mov dword ptr [ebp - 4], 0 */
   3287     RECOMP_ICALL(MEM32(0x2D0093D8)); /* 0x2D00596B: call dword ptr [0x2d0093d8] */
   3288     RECOMP_FLAGS_IN();
   3289 L_2D005971:
   3290     esp = ebp; /* 0x2D005971: mov esp, ebp */
   3291     ebp = POP32_VAL(esp); /* 0x2D005973: pop ebp */
   3292     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D005974: ret  */
   3293     RECOMP_REGS_OUT();
   3294 }
   3295 
   3296 void sub_2D005980(void) {
   3297     int _fpu_cmp = 0;
   3298     uint32_t _cf = 0;
   3299     int _df = 1;
   3300     uint32_t _flag_k = FK_NONE;
   3301     uint32_t _flag_a = 0, _flag_b = 0;
   3302     uint32_t _itail_tgt = 0;
   3303     RECOMP_REGS_LOCALS
   3304     RECOMP_ENTER(0x2D005980u);
   3305 
   3306 L_2D005980:
   3307     PUSH32(esp, ebp); /* 0x2D005980: push ebp */
   3308     ebp = esp; /* 0x2D005981: mov ebp, esp */
   3309     PUSH32(esp, ecx); /* 0x2D005983: push ecx */
   3310     ecx = MEM32(0x2D01752C); /* 0x2D005984: mov ecx, dword ptr [0x2d01752c] */
   3311     /* test ecx, ecx */ /* 0x2D00598A: test ecx, ecx */
   3312     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3313     _cf = 0;
   3314     _flag_k = FK_TEST;
   3315     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0059A1; /* 0x2D00598C: je 0x2d0059a1 */
   3316 L_2D00598E:
   3317     eax = ebp + (-0x4); /* 0x2D00598E: lea eax, [ebp - 4] */
   3318     PUSH32(esp, eax); /* 0x2D005991: push eax */
   3319     PUSH32(esp, 0xAu); /* 0x2D005992: push 0xa */
   3320     MEM32(ebp + (-0x4)) = 0; /* 0x2D005994: mov dword ptr [ebp - 4], 0 */
   3321     RECOMP_ICALL(MEM32(0x2D0093D8)); /* 0x2D00599B: call dword ptr [0x2d0093d8] */
   3322     RECOMP_FLAGS_IN();
   3323 L_2D0059A1:
   3324     esp = ebp; /* 0x2D0059A1: mov esp, ebp */
   3325     ebp = POP32_VAL(esp); /* 0x2D0059A3: pop ebp */
   3326     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D0059A4: ret  */
   3327     RECOMP_REGS_OUT();
   3328 }
   3329 
   3330 void sub_2D0059B0(void) {
   3331     int _fpu_cmp = 0;
   3332     uint32_t _cf = 0;
   3333     int _df = 1;
   3334     uint32_t _flag_k = FK_NONE;
   3335     uint32_t _flag_a = 0, _flag_b = 0;
   3336     uint32_t _itail_tgt = 0;
   3337     RECOMP_REGS_LOCALS
   3338     RECOMP_ENTER(0x2D0059B0u);
   3339 
   3340 L_2D0059B0:
   3341     PUSH32(esp, ebp); /* 0x2D0059B0: push ebp */
   3342     ebp = esp; /* 0x2D0059B1: mov ebp, esp */
   3343     PUSH32(esp, ecx); /* 0x2D0059B3: push ecx */
   3344     ecx = MEM32(0x2D017530); /* 0x2D0059B4: mov ecx, dword ptr [0x2d017530] */
   3345     RECOMP_ICALL(0x2D007360u); /* 0x2D0059BA: call 0x2d007360 */ /* not lifted */
   3346     RECOMP_FLAGS_IN();
   3347     /* cmp eax, 8 */ /* 0x2D0059BF: cmp eax, 8 */
   3348     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   3349     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3350     _flag_k = FK_CMP;
   3351     if (CMP_NE(_flag_a, _flag_b)) goto L_2D0059D9; /* 0x2D0059C2: jne 0x2d0059d9 */
   3352 L_2D0059C4:
   3353     PUSH32(esp, 0x1A7u); /* 0x2D0059C4: push 0x1a7 */
   3354     PUSH32(esp, 0x17u); /* 0x2D0059C9: push 0x17 */
   3355     RECOMP_ICALL(MEM32(0x2D0090B8)); /* 0x2D0059CB: call dword ptr [0x2d0090b8] */
   3356     RECOMP_FLAGS_IN();
   3357     ecx = eax; /* 0x2D0059D1: mov ecx, eax */
   3358     RECOMP_ICALL(MEM32(0x2D0090A4)); /* 0x2D0059D3: call dword ptr [0x2d0090a4] */
   3359     RECOMP_FLAGS_IN();
   3360 L_2D0059D9:
   3361     ecx = MEM32(0x2D01752C); /* 0x2D0059D9: mov ecx, dword ptr [0x2d01752c] */
   3362     /* test ecx, ecx */ /* 0x2D0059DF: test ecx, ecx */
   3363     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3364     _cf = 0;
   3365     _flag_k = FK_TEST;
   3366     if (TEST_Z(_flag_a, _flag_b)) goto L_2D0059F6; /* 0x2D0059E1: je 0x2d0059f6 */
   3367 L_2D0059E3:
   3368     eax = ebp + (-0x4); /* 0x2D0059E3: lea eax, [ebp - 4] */
   3369     PUSH32(esp, eax); /* 0x2D0059E6: push eax */
   3370     PUSH32(esp, 7); /* 0x2D0059E7: push 7 */
   3371     MEM32(ebp + (-0x4)) = 0; /* 0x2D0059E9: mov dword ptr [ebp - 4], 0 */
   3372     RECOMP_ICALL(MEM32(0x2D0093D8)); /* 0x2D0059F0: call dword ptr [0x2d0093d8] */
   3373     RECOMP_FLAGS_IN();
   3374 L_2D0059F6:
   3375     esp = ebp; /* 0x2D0059F6: mov esp, ebp */
   3376     ebp = POP32_VAL(esp); /* 0x2D0059F8: pop ebp */
   3377     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D0059F9: ret  */
   3378     RECOMP_REGS_OUT();
   3379 }
   3380 
   3381 void sub_2D005A00(void) {
   3382     int _fpu_cmp = 0;
   3383     uint32_t _cf = 0;
   3384     int _df = 1;
   3385     uint32_t _flag_k = FK_NONE;
   3386     uint32_t _flag_a = 0, _flag_b = 0;
   3387     uint32_t _itail_tgt = 0;
   3388     RECOMP_REGS_LOCALS
   3389     RECOMP_ENTER(0x2D005A00u);
   3390 
   3391 L_2D005A00:
   3392     PUSH32(esp, ebp); /* 0x2D005A00: push ebp */
   3393     ebp = esp; /* 0x2D005A01: mov ebp, esp */
   3394     PUSH32(esp, ecx); /* 0x2D005A03: push ecx */
   3395     ecx = MEM32(0x2D01752C); /* 0x2D005A04: mov ecx, dword ptr [0x2d01752c] */
   3396     /* test ecx, ecx */ /* 0x2D005A0A: test ecx, ecx */
   3397     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3398     _cf = 0;
   3399     _flag_k = FK_TEST;
   3400     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005A21; /* 0x2D005A0C: je 0x2d005a21 */
   3401 L_2D005A0E:
   3402     eax = ebp + (-0x4); /* 0x2D005A0E: lea eax, [ebp - 4] */
   3403     PUSH32(esp, eax); /* 0x2D005A11: push eax */
   3404     PUSH32(esp, 8); /* 0x2D005A12: push 8 */
   3405     MEM32(ebp + (-0x4)) = 0; /* 0x2D005A14: mov dword ptr [ebp - 4], 0 */
   3406     RECOMP_ICALL(MEM32(0x2D0093D8)); /* 0x2D005A1B: call dword ptr [0x2d0093d8] */
   3407     RECOMP_FLAGS_IN();
   3408 L_2D005A21:
   3409     esp = ebp; /* 0x2D005A21: mov esp, ebp */
   3410     ebp = POP32_VAL(esp); /* 0x2D005A23: pop ebp */
   3411     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D005A24: ret  */
   3412     RECOMP_REGS_OUT();
   3413 }
   3414 
   3415 void sub_2D005A30(void) {
   3416     int _fpu_cmp = 0;
   3417     uint32_t _cf = 0;
   3418     int _df = 1;
   3419     uint32_t _flag_k = FK_NONE;
   3420     uint32_t _flag_a = 0, _flag_b = 0;
   3421     uint32_t _itail_tgt = 0;
   3422     RECOMP_REGS_LOCALS
   3423     RECOMP_ENTER(0x2D005A30u);
   3424 
   3425 L_2D005A30:
   3426     PUSH32(esp, ebp); /* 0x2D005A30: push ebp */
   3427     ebp = esp; /* 0x2D005A31: mov ebp, esp */
   3428     PUSH32(esp, ecx); /* 0x2D005A33: push ecx */
   3429     ecx = MEM32(0x2D017530); /* 0x2D005A34: mov ecx, dword ptr [0x2d017530] */
   3430     RECOMP_ICALL(0x2D007360u); /* 0x2D005A3A: call 0x2d007360 */ /* not lifted */
   3431     RECOMP_FLAGS_IN();
   3432     /* cmp eax, 8 */ /* 0x2D005A3F: cmp eax, 8 */
   3433     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   3434     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3435     _flag_k = FK_CMP;
   3436     if (CMP_NE(_flag_a, _flag_b)) goto L_2D005A59; /* 0x2D005A42: jne 0x2d005a59 */
   3437 L_2D005A44:
   3438     PUSH32(esp, 0x1A7u); /* 0x2D005A44: push 0x1a7 */
   3439     PUSH32(esp, 0x17u); /* 0x2D005A49: push 0x17 */
   3440     RECOMP_ICALL(MEM32(0x2D0090B8)); /* 0x2D005A4B: call dword ptr [0x2d0090b8] */
   3441     RECOMP_FLAGS_IN();
   3442     ecx = eax; /* 0x2D005A51: mov ecx, eax */
   3443     RECOMP_ICALL(MEM32(0x2D0090A4)); /* 0x2D005A53: call dword ptr [0x2d0090a4] */
   3444     RECOMP_FLAGS_IN();
   3445 L_2D005A59:
   3446     ecx = MEM32(0x2D01752C); /* 0x2D005A59: mov ecx, dword ptr [0x2d01752c] */
   3447     /* test ecx, ecx */ /* 0x2D005A5F: test ecx, ecx */
   3448     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3449     _cf = 0;
   3450     _flag_k = FK_TEST;
   3451     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005A76; /* 0x2D005A61: je 0x2d005a76 */
   3452 L_2D005A63:
   3453     eax = ebp + (-0x4); /* 0x2D005A63: lea eax, [ebp - 4] */
   3454     PUSH32(esp, eax); /* 0x2D005A66: push eax */
   3455     PUSH32(esp, 5); /* 0x2D005A67: push 5 */
   3456     MEM32(ebp + (-0x4)) = 0; /* 0x2D005A69: mov dword ptr [ebp - 4], 0 */
   3457     RECOMP_ICALL(MEM32(0x2D0093D8)); /* 0x2D005A70: call dword ptr [0x2d0093d8] */
   3458     RECOMP_FLAGS_IN();
   3459 L_2D005A76:
   3460     esp = ebp; /* 0x2D005A76: mov esp, ebp */
   3461     ebp = POP32_VAL(esp); /* 0x2D005A78: pop ebp */
   3462     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D005A79: ret  */
   3463     RECOMP_REGS_OUT();
   3464 }
   3465 
   3466 void sub_2D005A80(void) {
   3467     int _fpu_cmp = 0;
   3468     uint32_t _cf = 0;
   3469     int _df = 1;
   3470     uint32_t _flag_k = FK_NONE;
   3471     uint32_t _flag_a = 0, _flag_b = 0;
   3472     uint32_t _itail_tgt = 0;
   3473     RECOMP_REGS_LOCALS
   3474     RECOMP_ENTER(0x2D005A80u);
   3475 
   3476 L_2D005A80:
   3477     PUSH32(esp, ebp); /* 0x2D005A80: push ebp */
   3478     ebp = esp; /* 0x2D005A81: mov ebp, esp */
   3479     PUSH32(esp, ecx); /* 0x2D005A83: push ecx */
   3480     ecx = MEM32(0x2D01752C); /* 0x2D005A84: mov ecx, dword ptr [0x2d01752c] */
   3481     /* test ecx, ecx */ /* 0x2D005A8A: test ecx, ecx */
   3482     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3483     _cf = 0;
   3484     _flag_k = FK_TEST;
   3485     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005AA1; /* 0x2D005A8C: je 0x2d005aa1 */
   3486 L_2D005A8E:
   3487     eax = ebp + (-0x4); /* 0x2D005A8E: lea eax, [ebp - 4] */
   3488     PUSH32(esp, eax); /* 0x2D005A91: push eax */
   3489     PUSH32(esp, 6); /* 0x2D005A92: push 6 */
   3490     MEM32(ebp + (-0x4)) = 0; /* 0x2D005A94: mov dword ptr [ebp - 4], 0 */
   3491     RECOMP_ICALL(MEM32(0x2D0093D8)); /* 0x2D005A9B: call dword ptr [0x2d0093d8] */
   3492     RECOMP_FLAGS_IN();
   3493 L_2D005AA1:
   3494     esp = ebp; /* 0x2D005AA1: mov esp, ebp */
   3495     ebp = POP32_VAL(esp); /* 0x2D005AA3: pop ebp */
   3496     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D005AA4: ret  */
   3497     RECOMP_REGS_OUT();
   3498 }
   3499 
   3500 void sub_2D005AB0(void) {
   3501     int _fpu_cmp = 0;
   3502     uint32_t _cf = 0;
   3503     int _df = 1;
   3504     uint32_t _flag_k = FK_NONE;
   3505     uint32_t _flag_a = 0, _flag_b = 0;
   3506     uint32_t _itail_tgt = 0;
   3507     RECOMP_REGS_LOCALS
   3508     RECOMP_ENTER(0x2D005AB0u);
   3509 
   3510 L_2D005AB0:
   3511     PUSH32(esp, ebp); /* 0x2D005AB0: push ebp */
   3512     ebp = esp; /* 0x2D005AB1: mov ebp, esp */
   3513     ecx = MEM32(0x2D01752C); /* 0x2D005AB3: mov ecx, dword ptr [0x2d01752c] */
   3514     /* test ecx, ecx */ /* 0x2D005AB9: test ecx, ecx */
   3515     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3516     _cf = 0;
   3517     _flag_k = FK_TEST;
   3518     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005ACB; /* 0x2D005ABB: je 0x2d005acb */
   3519 L_2D005ABD:
   3520     eax = MEM32(ebp + 0xC); /* 0x2D005ABD: mov eax, dword ptr [ebp + 0xc] */
   3521     edx = MEM32(ebp + 0x8); /* 0x2D005AC0: mov edx, dword ptr [ebp + 8] */
   3522     PUSH32(esp, eax); /* 0x2D005AC3: push eax */
   3523     PUSH32(esp, edx); /* 0x2D005AC4: push edx */
   3524     RECOMP_ICALL(MEM32(0x2D0093DC)); /* 0x2D005AC5: call dword ptr [0x2d0093dc] */
   3525     RECOMP_FLAGS_IN();
   3526 L_2D005ACB:
   3527     ebp = POP32_VAL(esp); /* 0x2D005ACB: pop ebp */
   3528     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D005ACC: ret 8 */
   3529     RECOMP_REGS_OUT();
   3530 }
   3531 
   3532 void sub_2D005AD0(void) {
   3533     int _fpu_cmp = 0;
   3534     uint32_t _cf = 0;
   3535     int _df = 1;
   3536     uint32_t _flag_k = FK_NONE;
   3537     uint32_t _flag_a = 0, _flag_b = 0;
   3538     uint32_t _itail_tgt = 0;
   3539     RECOMP_REGS_LOCALS
   3540     RECOMP_ENTER(0x2D005AD0u);
   3541 
   3542 L_2D005AD0:
   3543     ecx = MEM32(0x2D01752C); /* 0x2D005AD0: mov ecx, dword ptr [0x2d01752c] */
   3544 L_2D005AD6:
   3545     /* test ecx, ecx */ /* 0x2D005AD6: test ecx, ecx */
   3546     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3547     _cf = 0;
   3548     _flag_k = FK_TEST;
   3549 L_2D005AD8:
   3550     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2D005AE0; /* 0x2D005AD8: je 0x2d005ae0 */
   3551 L_2D005ADA:
   3552     { _itail_tgt = (uint32_t)(MEM32(0x2D0093E0)); goto _ljump; }
   3553 L_2D005AE0:
   3554     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D005AE0: ret  */
   3555   _ljump:
   3556     switch (_itail_tgt) {
   3557       case 0x2D005AD0u: goto L_2D005AD0;
   3558       case 0x2D005AD6u: goto L_2D005AD6;
   3559       case 0x2D005AD8u: goto L_2D005AD8;
   3560       case 0x2D005ADAu: goto L_2D005ADA;
   3561       case 0x2D005AE0u: goto L_2D005AE0;
   3562       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3563     }
   3564     RECOMP_REGS_OUT();
   3565 }
   3566 
   3567 void sub_2D005AF0(void) {
   3568     int _fpu_cmp = 0;
   3569     uint32_t _cf = 0;
   3570     int _df = 1;
   3571     uint32_t _flag_k = FK_NONE;
   3572     uint32_t _flag_a = 0, _flag_b = 0;
   3573     uint32_t _itail_tgt = 0;
   3574     RECOMP_REGS_LOCALS
   3575     RECOMP_ENTER(0x2D005AF0u);
   3576 
   3577 L_2D005AF0:
   3578     PUSH32(esp, ebp); /* 0x2D005AF0: push ebp */
   3579     ebp = esp; /* 0x2D005AF1: mov ebp, esp */
   3580     ecx = MEM32(0x2D01752C); /* 0x2D005AF3: mov ecx, dword ptr [0x2d01752c] */
   3581     /* test ecx, ecx */ /* 0x2D005AF9: test ecx, ecx */
   3582     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3583     _cf = 0;
   3584     _flag_k = FK_TEST;
   3585     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005B0B; /* 0x2D005AFB: je 0x2d005b0b */
   3586 L_2D005AFD:
   3587     eax = MEM32(ebp + 0xC); /* 0x2D005AFD: mov eax, dword ptr [ebp + 0xc] */
   3588     edx = MEM32(ebp + 0x8); /* 0x2D005B00: mov edx, dword ptr [ebp + 8] */
   3589     PUSH32(esp, eax); /* 0x2D005B03: push eax */
   3590     PUSH32(esp, edx); /* 0x2D005B04: push edx */
   3591     RECOMP_ICALL(MEM32(0x2D0093E4)); /* 0x2D005B05: call dword ptr [0x2d0093e4] */
   3592     RECOMP_FLAGS_IN();
   3593 L_2D005B0B:
   3594     ebp = POP32_VAL(esp); /* 0x2D005B0B: pop ebp */
   3595     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D005B0C: ret 8 */
   3596     RECOMP_REGS_OUT();
   3597 }
   3598 
   3599 void sub_2D005B10(void) {
   3600     int _fpu_cmp = 0;
   3601     uint32_t _cf = 0;
   3602     int _df = 1;
   3603     uint32_t _flag_k = FK_NONE;
   3604     uint32_t _flag_a = 0, _flag_b = 0;
   3605     uint32_t _itail_tgt = 0;
   3606     RECOMP_REGS_LOCALS
   3607     RECOMP_ENTER(0x2D005B10u);
   3608 
   3609 L_2D005B10:
   3610     ecx = MEM32(0x2D01752C); /* 0x2D005B10: mov ecx, dword ptr [0x2d01752c] */
   3611 L_2D005B16:
   3612     /* test ecx, ecx */ /* 0x2D005B16: test ecx, ecx */
   3613     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3614     _cf = 0;
   3615     _flag_k = FK_TEST;
   3616 L_2D005B18:
   3617     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_2D005B20; /* 0x2D005B18: je 0x2d005b20 */
   3618 L_2D005B1A:
   3619     { _itail_tgt = (uint32_t)(MEM32(0x2D0093E8)); goto _ljump; }
   3620 L_2D005B20:
   3621     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x2D005B20: ret  */
   3622   _ljump:
   3623     switch (_itail_tgt) {
   3624       case 0x2D005B10u: goto L_2D005B10;
   3625       case 0x2D005B16u: goto L_2D005B16;
   3626       case 0x2D005B18u: goto L_2D005B18;
   3627       case 0x2D005B1Au: goto L_2D005B1A;
   3628       case 0x2D005B20u: goto L_2D005B20;
   3629       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3630     }
   3631     RECOMP_REGS_OUT();
   3632 }
   3633 
   3634 void sub_2D005B30(void) {
   3635     int _fpu_cmp = 0;
   3636     uint32_t _cf = 0;
   3637     int _df = 1;
   3638     uint32_t _flag_k = FK_NONE;
   3639     uint32_t _flag_a = 0, _flag_b = 0;
   3640     uint32_t _itail_tgt = 0;
   3641     RECOMP_REGS_LOCALS
   3642     RECOMP_ENTER(0x2D005B30u);
   3643 
   3644 L_2D005B30:
   3645     PUSH32(esp, ebp); /* 0x2D005B30: push ebp */
   3646     ebp = esp; /* 0x2D005B31: mov ebp, esp */
   3647     eax = MEM32(ebp + 0x8); /* 0x2D005B33: mov eax, dword ptr [ebp + 8] */
   3648     ecx = MEM32(0x2D01752C); /* 0x2D005B36: mov ecx, dword ptr [0x2d01752c] */
   3649     PUSH32(esp, eax); /* 0x2D005B3C: push eax */
   3650     RECOMP_ICALL(MEM32(0x2D0093EC)); /* 0x2D005B3D: call dword ptr [0x2d0093ec] */
   3651     RECOMP_FLAGS_IN();
   3652     ebp = POP32_VAL(esp); /* 0x2D005B43: pop ebp */
   3653     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005B44: ret 4 */
   3654     RECOMP_REGS_OUT();
   3655 }
   3656 
   3657 void sub_2D005B50(void) {
   3658     int _fpu_cmp = 0;
   3659     uint32_t _cf = 0;
   3660     int _df = 1;
   3661     uint32_t _flag_k = FK_NONE;
   3662     uint32_t _flag_a = 0, _flag_b = 0;
   3663     uint32_t _itail_tgt = 0;
   3664     RECOMP_REGS_LOCALS
   3665     RECOMP_ENTER(0x2D005B50u);
   3666 
   3667 L_2D005B50:
   3668     PUSH32(esp, ebp); /* 0x2D005B50: push ebp */
   3669     ebp = esp; /* 0x2D005B51: mov ebp, esp */
   3670     ecx = MEM32(0x2D01752C); /* 0x2D005B53: mov ecx, dword ptr [0x2d01752c] */
   3671     /* test ecx, ecx */ /* 0x2D005B59: test ecx, ecx */
   3672     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3673     _cf = 0;
   3674     _flag_k = FK_TEST;
   3675     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005B6B; /* 0x2D005B5B: je 0x2d005b6b */
   3676 L_2D005B5D:
   3677     eax = MEM32(ebp + 0x8); /* 0x2D005B5D: mov eax, dword ptr [ebp + 8] */
   3678     PUSH32(esp, eax); /* 0x2D005B60: push eax */
   3679     RECOMP_ICALL(MEM32(0x2D0093F0)); /* 0x2D005B61: call dword ptr [0x2d0093f0] */
   3680     RECOMP_FLAGS_IN();
   3681     ebp = POP32_VAL(esp); /* 0x2D005B67: pop ebp */
   3682     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005B68: ret 4 */
   3683 L_2D005B6B:
   3684     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   3685     SET_LO8(eax, 0); /* 0x2D005B6B: xor al, al */
   3686     _cf = 0;
   3687     _flag_k = FK_NARROW(FK_TEST, 24);
   3688     ebp = POP32_VAL(esp); /* 0x2D005B6D: pop ebp */
   3689     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005B6E: ret 4 */
   3690     RECOMP_REGS_OUT();
   3691 }
   3692 
   3693 void sub_2D005B80(void) {
   3694     int _fpu_cmp = 0;
   3695     uint32_t _cf = 0;
   3696     int _df = 1;
   3697     uint32_t _flag_k = FK_NONE;
   3698     uint32_t _flag_a = 0, _flag_b = 0;
   3699     uint32_t _itail_tgt = 0;
   3700     RECOMP_REGS_LOCALS
   3701     RECOMP_ENTER(0x2D005B80u);
   3702 
   3703 L_2D005B80:
   3704     PUSH32(esp, ebp); /* 0x2D005B80: push ebp */
   3705     ebp = esp; /* 0x2D005B81: mov ebp, esp */
   3706     ecx = MEM32(0x2D01752C); /* 0x2D005B83: mov ecx, dword ptr [0x2d01752c] */
   3707     /* test ecx, ecx */ /* 0x2D005B89: test ecx, ecx */
   3708     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3709     _cf = 0;
   3710     _flag_k = FK_TEST;
   3711     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005B9B; /* 0x2D005B8B: je 0x2d005b9b */
   3712 L_2D005B8D:
   3713     eax = MEM32(ebp + 0x8); /* 0x2D005B8D: mov eax, dword ptr [ebp + 8] */
   3714     PUSH32(esp, eax); /* 0x2D005B90: push eax */
   3715     RECOMP_ICALL(MEM32(0x2D0093F4)); /* 0x2D005B91: call dword ptr [0x2d0093f4] */
   3716     RECOMP_FLAGS_IN();
   3717     ebp = POP32_VAL(esp); /* 0x2D005B97: pop ebp */
   3718     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005B98: ret 4 */
   3719 L_2D005B9B:
   3720     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   3721     SET_LO8(eax, 0); /* 0x2D005B9B: xor al, al */
   3722     _cf = 0;
   3723     _flag_k = FK_NARROW(FK_TEST, 24);
   3724     ebp = POP32_VAL(esp); /* 0x2D005B9D: pop ebp */
   3725     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005B9E: ret 4 */
   3726     RECOMP_REGS_OUT();
   3727 }
   3728 
   3729 void sub_2D005BB0(void) {
   3730     int _fpu_cmp = 0;
   3731     uint32_t _cf = 0;
   3732     int _df = 1;
   3733     uint32_t _flag_k = FK_NONE;
   3734     uint32_t _flag_a = 0, _flag_b = 0;
   3735     uint32_t _itail_tgt = 0;
   3736     RECOMP_REGS_LOCALS
   3737     RECOMP_ENTER(0x2D005BB0u);
   3738 
   3739 L_2D005BB0:
   3740     PUSH32(esp, ebp); /* 0x2D005BB0: push ebp */
   3741     ebp = esp; /* 0x2D005BB1: mov ebp, esp */
   3742     eax = MEM32(ebp + 0x8); /* 0x2D005BB3: mov eax, dword ptr [ebp + 8] */
   3743     ecx = MEM32(0x2D01752C); /* 0x2D005BB6: mov ecx, dword ptr [0x2d01752c] */
   3744     PUSH32(esp, eax); /* 0x2D005BBC: push eax */
   3745     RECOMP_ICALL(MEM32(0x2D0093F8)); /* 0x2D005BBD: call dword ptr [0x2d0093f8] */
   3746     RECOMP_FLAGS_IN();
   3747     ebp = POP32_VAL(esp); /* 0x2D005BC3: pop ebp */
   3748     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005BC4: ret 4 */
   3749     RECOMP_REGS_OUT();
   3750 }
   3751 
   3752 void sub_2D005BD0(void) {
   3753     int _fpu_cmp = 0;
   3754     uint32_t _cf = 0;
   3755     int _df = 1;
   3756     uint32_t _flag_k = FK_NONE;
   3757     uint32_t _flag_a = 0, _flag_b = 0;
   3758     uint32_t _itail_tgt = 0;
   3759     RECOMP_REGS_LOCALS
   3760     RECOMP_ENTER(0x2D005BD0u);
   3761 
   3762 L_2D005BD0:
   3763     PUSH32(esp, ebp); /* 0x2D005BD0: push ebp */
   3764     ebp = esp; /* 0x2D005BD1: mov ebp, esp */
   3765     eax = MEM32(ebp + 0x8); /* 0x2D005BD3: mov eax, dword ptr [ebp + 8] */
   3766     ecx = MEM32(0x2D01752C); /* 0x2D005BD6: mov ecx, dword ptr [0x2d01752c] */
   3767     PUSH32(esp, eax); /* 0x2D005BDC: push eax */
   3768     RECOMP_ICALL(MEM32(0x2D0093FC)); /* 0x2D005BDD: call dword ptr [0x2d0093fc] */
   3769     RECOMP_FLAGS_IN();
   3770     ebp = POP32_VAL(esp); /* 0x2D005BE3: pop ebp */
   3771     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005BE4: ret 4 */
   3772     RECOMP_REGS_OUT();
   3773 }
   3774 
   3775 void sub_2D005BF0(void) {
   3776     int _fpu_cmp = 0;
   3777     uint32_t _cf = 0;
   3778     int _df = 1;
   3779     uint32_t _flag_k = FK_NONE;
   3780     uint32_t _flag_a = 0, _flag_b = 0;
   3781     uint32_t _itail_tgt = 0;
   3782     RECOMP_REGS_LOCALS
   3783     RECOMP_ENTER(0x2D005BF0u);
   3784 
   3785 L_2D005BF0:
   3786     PUSH32(esp, ebp); /* 0x2D005BF0: push ebp */
   3787     ebp = esp; /* 0x2D005BF1: mov ebp, esp */
   3788     eax = MEM32(ebp + 0x8); /* 0x2D005BF3: mov eax, dword ptr [ebp + 8] */
   3789     ecx = MEM32(0x2D01752C); /* 0x2D005BF6: mov ecx, dword ptr [0x2d01752c] */
   3790     PUSH32(esp, eax); /* 0x2D005BFC: push eax */
   3791     RECOMP_ICALL(MEM32(0x2D009400)); /* 0x2D005BFD: call dword ptr [0x2d009400] */
   3792     RECOMP_FLAGS_IN();
   3793     ebp = POP32_VAL(esp); /* 0x2D005C03: pop ebp */
   3794     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005C04: ret 4 */
   3795     RECOMP_REGS_OUT();
   3796 }
   3797 
   3798 void sub_2D005C10(void) {
   3799     int _fpu_cmp = 0;
   3800     uint32_t _cf = 0;
   3801     int _df = 1;
   3802     uint32_t _flag_k = FK_NONE;
   3803     uint32_t _flag_a = 0, _flag_b = 0;
   3804     uint32_t _itail_tgt = 0;
   3805     RECOMP_REGS_LOCALS
   3806     RECOMP_ENTER(0x2D005C10u);
   3807 
   3808 L_2D005C10:
   3809     PUSH32(esp, ebp); /* 0x2D005C10: push ebp */
   3810     ebp = esp; /* 0x2D005C11: mov ebp, esp */
   3811     eax = MEM32(ebp + 0x8); /* 0x2D005C13: mov eax, dword ptr [ebp + 8] */
   3812     ecx = MEM32(0x2D01752C); /* 0x2D005C16: mov ecx, dword ptr [0x2d01752c] */
   3813     PUSH32(esp, eax); /* 0x2D005C1C: push eax */
   3814     RECOMP_ICALL(MEM32(0x2D009404)); /* 0x2D005C1D: call dword ptr [0x2d009404] */
   3815     RECOMP_FLAGS_IN();
   3816     ebp = POP32_VAL(esp); /* 0x2D005C23: pop ebp */
   3817     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005C24: ret 4 */
   3818     RECOMP_REGS_OUT();
   3819 }
   3820 
   3821 void sub_2D005C30(void) {
   3822     int _fpu_cmp = 0;
   3823     uint32_t _cf = 0;
   3824     int _df = 1;
   3825     uint32_t _flag_k = FK_NONE;
   3826     uint32_t _flag_a = 0, _flag_b = 0;
   3827     uint32_t _itail_tgt = 0;
   3828     RECOMP_REGS_LOCALS
   3829     RECOMP_ENTER(0x2D005C30u);
   3830 
   3831 L_2D005C30:
   3832     PUSH32(esp, ebp); /* 0x2D005C30: push ebp */
   3833     ebp = esp; /* 0x2D005C31: mov ebp, esp */
   3834     eax = MEM32(ebp + 0x8); /* 0x2D005C33: mov eax, dword ptr [ebp + 8] */
   3835     ecx = MEM32(0x2D01752C); /* 0x2D005C36: mov ecx, dword ptr [0x2d01752c] */
   3836     PUSH32(esp, eax); /* 0x2D005C3C: push eax */
   3837     RECOMP_ICALL(MEM32(0x2D009408)); /* 0x2D005C3D: call dword ptr [0x2d009408] */
   3838     RECOMP_FLAGS_IN();
   3839     ebp = POP32_VAL(esp); /* 0x2D005C43: pop ebp */
   3840     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005C44: ret 4 */
   3841     RECOMP_REGS_OUT();
   3842 }
   3843 
   3844 void sub_2D005C50(void) {
   3845     int _fpu_cmp = 0;
   3846     uint32_t _cf = 0;
   3847     int _df = 1;
   3848     uint32_t _flag_k = FK_NONE;
   3849     uint32_t _flag_a = 0, _flag_b = 0;
   3850     uint32_t _itail_tgt = 0;
   3851     RECOMP_REGS_LOCALS
   3852     RECOMP_ENTER(0x2D005C50u);
   3853 
   3854 L_2D005C50:
   3855     PUSH32(esp, ebp); /* 0x2D005C50: push ebp */
   3856     ebp = esp; /* 0x2D005C51: mov ebp, esp */
   3857     eax = MEM32(ebp + 0xC); /* 0x2D005C53: mov eax, dword ptr [ebp + 0xc] */
   3858     ecx = MEM32(ebp + 0x8); /* 0x2D005C56: mov ecx, dword ptr [ebp + 8] */
   3859     PUSH32(esp, eax); /* 0x2D005C59: push eax */
   3860     PUSH32(esp, ecx); /* 0x2D005C5A: push ecx */
   3861     ecx = MEM32(0x2D01752C); /* 0x2D005C5B: mov ecx, dword ptr [0x2d01752c] */
   3862     RECOMP_ICALL(MEM32(0x2D00940C)); /* 0x2D005C61: call dword ptr [0x2d00940c] */
   3863     RECOMP_FLAGS_IN();
   3864     ebp = POP32_VAL(esp); /* 0x2D005C67: pop ebp */
   3865     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x2D005C68: ret 8 */
   3866     RECOMP_REGS_OUT();
   3867 }
   3868 
   3869 void sub_2D005C70(void) {
   3870     int _fpu_cmp = 0;
   3871     uint32_t _cf = 0;
   3872     int _df = 1;
   3873     uint32_t _flag_k = FK_NONE;
   3874     uint32_t _flag_a = 0, _flag_b = 0;
   3875     uint32_t _itail_tgt = 0;
   3876     RECOMP_REGS_LOCALS
   3877     RECOMP_ENTER(0x2D005C70u);
   3878 
   3879 L_2D005C70:
   3880     PUSH32(esp, ebp); /* 0x2D005C70: push ebp */
   3881     ebp = esp; /* 0x2D005C71: mov ebp, esp */
   3882     eax = MEM32(ebp + 0x8); /* 0x2D005C73: mov eax, dword ptr [ebp + 8] */
   3883     ecx = MEM32(0x2D01752C); /* 0x2D005C76: mov ecx, dword ptr [0x2d01752c] */
   3884     PUSH32(esp, eax); /* 0x2D005C7C: push eax */
   3885     RECOMP_ICALL(MEM32(0x2D009410)); /* 0x2D005C7D: call dword ptr [0x2d009410] */
   3886     RECOMP_FLAGS_IN();
   3887     ebp = POP32_VAL(esp); /* 0x2D005C83: pop ebp */
   3888     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005C84: ret 4 */
   3889     RECOMP_REGS_OUT();
   3890 }
   3891 
   3892 void sub_2D005C90(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(0x2D005C90u);
   3901 
   3902 L_2D005C90:
   3903     PUSH32(esp, ebp); /* 0x2D005C90: push ebp */
   3904     ebp = esp; /* 0x2D005C91: mov ebp, esp */
   3905     ecx = MEM32(0x2D01752C); /* 0x2D005C93: mov ecx, dword ptr [0x2d01752c] */
   3906     /* test ecx, ecx */ /* 0x2D005C99: 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_2D005CAB; /* 0x2D005C9B: je 0x2d005cab */
   3911 L_2D005C9D:
   3912     eax = MEM32(ebp + 0x8); /* 0x2D005C9D: mov eax, dword ptr [ebp + 8] */
   3913     PUSH32(esp, eax); /* 0x2D005CA0: push eax */
   3914     RECOMP_ICALL(MEM32(0x2D009414)); /* 0x2D005CA1: call dword ptr [0x2d009414] */
   3915     RECOMP_FLAGS_IN();
   3916     ebp = POP32_VAL(esp); /* 0x2D005CA7: pop ebp */
   3917     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005CA8: ret 4 */
   3918 L_2D005CAB:
   3919     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3920     eax = 0; /* 0x2D005CAB: xor eax, eax */
   3921     _cf = 0;
   3922     _flag_k = FK_TEST;
   3923     ebp = POP32_VAL(esp); /* 0x2D005CAD: pop ebp */
   3924     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005CAE: ret 4 */
   3925     RECOMP_REGS_OUT();
   3926 }
   3927 
   3928 void sub_2D005CC0(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(0x2D005CC0u);
   3937 
   3938 L_2D005CC0:
   3939     PUSH32(esp, ebp); /* 0x2D005CC0: push ebp */
   3940     ebp = esp; /* 0x2D005CC1: mov ebp, esp */
   3941     ecx = MEM32(0x2D01752C); /* 0x2D005CC3: mov ecx, dword ptr [0x2d01752c] */
   3942     /* test ecx, ecx */ /* 0x2D005CC9: 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_2D005CDB; /* 0x2D005CCB: je 0x2d005cdb */
   3947 L_2D005CCD:
   3948     eax = MEM32(ebp + 0x8); /* 0x2D005CCD: mov eax, dword ptr [ebp + 8] */
   3949     PUSH32(esp, eax); /* 0x2D005CD0: push eax */
   3950     RECOMP_ICALL(MEM32(0x2D009418)); /* 0x2D005CD1: call dword ptr [0x2d009418] */
   3951     RECOMP_FLAGS_IN();
   3952     ebp = POP32_VAL(esp); /* 0x2D005CD7: pop ebp */
   3953     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005CD8: ret 4 */
   3954 L_2D005CDB:
   3955     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3956     eax = 0; /* 0x2D005CDB: xor eax, eax */
   3957     _cf = 0;
   3958     _flag_k = FK_TEST;
   3959     ebp = POP32_VAL(esp); /* 0x2D005CDD: pop ebp */
   3960     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005CDE: ret 4 */
   3961     RECOMP_REGS_OUT();
   3962 }
   3963 
   3964 void sub_2D005CF0(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(0x2D005CF0u);
   3973 
   3974 L_2D005CF0:
   3975     PUSH32(esp, ebp); /* 0x2D005CF0: push ebp */
   3976     ebp = esp; /* 0x2D005CF1: mov ebp, esp */
   3977     eax = MEM32(ebp + 0x8); /* 0x2D005CF3: mov eax, dword ptr [ebp + 8] */
   3978     ecx = MEM32(0x2D01752C); /* 0x2D005CF6: mov ecx, dword ptr [0x2d01752c] */
   3979     PUSH32(esp, eax); /* 0x2D005CFC: push eax */
   3980     RECOMP_ICALL(MEM32(0x2D00941C)); /* 0x2D005CFD: call dword ptr [0x2d00941c] */
   3981     RECOMP_FLAGS_IN();
   3982     ebp = POP32_VAL(esp); /* 0x2D005D03: pop ebp */
   3983     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005D04: ret 4 */
   3984     RECOMP_REGS_OUT();
   3985 }
   3986 
   3987 void sub_2D005D10(void) {
   3988     int _fpu_cmp = 0;
   3989     uint32_t _cf = 0;
   3990     int _df = 1;
   3991     uint32_t _flag_k = FK_NONE;
   3992     uint32_t _flag_a = 0, _flag_b = 0;
   3993     uint32_t _itail_tgt = 0;
   3994     RECOMP_REGS_LOCALS
   3995     RECOMP_ENTER(0x2D005D10u);
   3996 
   3997 L_2D005D10:
   3998     PUSH32(esp, ebp); /* 0x2D005D10: push ebp */
   3999     ebp = esp; /* 0x2D005D11: mov ebp, esp */
   4000     eax = MEM32(ebp + 0x8); /* 0x2D005D13: mov eax, dword ptr [ebp + 8] */
   4001     ecx = MEM32(0x2D01752C); /* 0x2D005D16: mov ecx, dword ptr [0x2d01752c] */
   4002     PUSH32(esp, eax); /* 0x2D005D1C: push eax */
   4003     RECOMP_ICALL(MEM32(0x2D009420)); /* 0x2D005D1D: call dword ptr [0x2d009420] */
   4004     RECOMP_FLAGS_IN();
   4005     ebp = POP32_VAL(esp); /* 0x2D005D23: pop ebp */
   4006     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005D24: ret 4 */
   4007     RECOMP_REGS_OUT();
   4008 }
   4009 
   4010 void sub_2D005D30(void) {
   4011     int _fpu_cmp = 0;
   4012     uint32_t _cf = 0;
   4013     int _df = 1;
   4014     uint32_t _flag_k = FK_NONE;
   4015     uint32_t _flag_a = 0, _flag_b = 0;
   4016     uint32_t _itail_tgt = 0;
   4017     RECOMP_REGS_LOCALS
   4018     RECOMP_ENTER(0x2D005D30u);
   4019 
   4020 L_2D005D30:
   4021     PUSH32(esp, ebp); /* 0x2D005D30: push ebp */
   4022     ebp = esp; /* 0x2D005D31: mov ebp, esp */
   4023     ecx = MEM32(0x2D01752C); /* 0x2D005D33: mov ecx, dword ptr [0x2d01752c] */
   4024     /* test ecx, ecx */ /* 0x2D005D39: test ecx, ecx */
   4025     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4026     _cf = 0;
   4027     _flag_k = FK_TEST;
   4028     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005D4B; /* 0x2D005D3B: je 0x2d005d4b */
   4029 L_2D005D3D:
   4030     eax = MEM32(ebp + 0x8); /* 0x2D005D3D: mov eax, dword ptr [ebp + 8] */
   4031     PUSH32(esp, eax); /* 0x2D005D40: push eax */
   4032     RECOMP_ICALL(MEM32(0x2D009424)); /* 0x2D005D41: call dword ptr [0x2d009424] */
   4033     RECOMP_FLAGS_IN();
   4034     ebp = POP32_VAL(esp); /* 0x2D005D47: pop ebp */
   4035     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005D48: ret 4 */
   4036 L_2D005D4B:
   4037     eax = MEM32(0x2D017040); /* 0x2D005D4B: mov eax, dword ptr [0x2d017040] */
   4038     ebp = POP32_VAL(esp); /* 0x2D005D50: pop ebp */
   4039     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005D51: ret 4 */
   4040     RECOMP_REGS_OUT();
   4041 }
   4042 
   4043 void sub_2D005D60(void) {
   4044     int _fpu_cmp = 0;
   4045     uint32_t _cf = 0;
   4046     int _df = 1;
   4047     uint32_t _flag_k = FK_NONE;
   4048     uint32_t _flag_a = 0, _flag_b = 0;
   4049     uint32_t _itail_tgt = 0;
   4050     RECOMP_REGS_LOCALS
   4051     RECOMP_ENTER(0x2D005D60u);
   4052 
   4053 L_2D005D60:
   4054     PUSH32(esp, ebp); /* 0x2D005D60: push ebp */
   4055     ebp = esp; /* 0x2D005D61: mov ebp, esp */
   4056     ecx = MEM32(0x2D01752C); /* 0x2D005D63: mov ecx, dword ptr [0x2d01752c] */
   4057     /* test ecx, ecx */ /* 0x2D005D69: test ecx, ecx */
   4058     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4059     _cf = 0;
   4060     _flag_k = FK_TEST;
   4061     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005D7B; /* 0x2D005D6B: je 0x2d005d7b */
   4062 L_2D005D6D:
   4063     eax = MEM32(ebp + 0x8); /* 0x2D005D6D: mov eax, dword ptr [ebp + 8] */
   4064     PUSH32(esp, eax); /* 0x2D005D70: push eax */
   4065     RECOMP_ICALL(MEM32(0x2D009428)); /* 0x2D005D71: call dword ptr [0x2d009428] */
   4066     RECOMP_FLAGS_IN();
   4067     ebp = POP32_VAL(esp); /* 0x2D005D77: pop ebp */
   4068     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005D78: ret 4 */
   4069 L_2D005D7B:
   4070     eax = MEM32(0x2D017040); /* 0x2D005D7B: mov eax, dword ptr [0x2d017040] */
   4071     ebp = POP32_VAL(esp); /* 0x2D005D80: pop ebp */
   4072     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005D81: ret 4 */
   4073     RECOMP_REGS_OUT();
   4074 }
   4075 
   4076 void sub_2D005D90(void) {
   4077     int _fpu_cmp = 0;
   4078     uint32_t _cf = 0;
   4079     int _df = 1;
   4080     uint32_t _flag_k = FK_NONE;
   4081     uint32_t _flag_a = 0, _flag_b = 0;
   4082     uint32_t _itail_tgt = 0;
   4083     RECOMP_REGS_LOCALS
   4084     RECOMP_ENTER(0x2D005D90u);
   4085 
   4086 L_2D005D90:
   4087     PUSH32(esp, ebp); /* 0x2D005D90: push ebp */
   4088     ebp = esp; /* 0x2D005D91: mov ebp, esp */
   4089     ecx = MEM32(0x2D01752C); /* 0x2D005D93: mov ecx, dword ptr [0x2d01752c] */
   4090     /* test ecx, ecx */ /* 0x2D005D99: test ecx, ecx */
   4091     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4092     _cf = 0;
   4093     _flag_k = FK_TEST;
   4094     if (TEST_Z(_flag_a, _flag_b)) goto L_2D005DAB; /* 0x2D005D9B: je 0x2d005dab */
   4095 L_2D005D9D:
   4096     eax = MEM32(ebp + 0x8); /* 0x2D005D9D: mov eax, dword ptr [ebp + 8] */
   4097     PUSH32(esp, eax); /* 0x2D005DA0: push eax */
   4098     RECOMP_ICALL(MEM32(0x2D00942C)); /* 0x2D005DA1: call dword ptr [0x2d00942c] */
   4099     RECOMP_FLAGS_IN();
   4100     ebp = POP32_VAL(esp); /* 0x2D005DA7: pop ebp */
   4101     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005DA8: ret 4 */
   4102 L_2D005DAB:
   4103     eax = MEM32(0x2D017040); /* 0x2D005DAB: mov eax, dword ptr [0x2d017040] */
   4104     ebp = POP32_VAL(esp); /* 0x2D005DB0: pop ebp */
   4105     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x2D005DB1: ret 4 */
   4106     RECOMP_REGS_OUT();
   4107 }