aorecomp

Anarchy Online classic in the browser

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


client/game/llr.dll/lifted-0016.c (232459B)


      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_38027300(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(0x38027300u);
     17 
     18 L_38027300:
     19     goto L_38027310; /* 0x38027300: jmp 0x38027310 */
     20 L_38027310:
     21     MEM32(0x3806ED7C) = 0x3806BA3Cu; /* 0x38027310: mov dword ptr [0x3806ed7c], 0x3806ba3c */
     22     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802731A: ret  */
     23     RECOMP_REGS_OUT();
     24 }
     25 
     26 void sub_38027310(void) {
     27     int _fpu_cmp = 0;
     28     uint32_t _cf = 0;
     29     int _df = 1;
     30     uint32_t _flag_k = FK_NONE;
     31     uint32_t _flag_a = 0, _flag_b = 0;
     32     uint32_t _itail_tgt = 0;
     33     RECOMP_REGS_LOCALS
     34     RECOMP_ENTER(0x38027310u);
     35 
     36 L_38027310:
     37     MEM32(0x3806ED7C) = 0x3806BA3Cu; /* 0x38027310: mov dword ptr [0x3806ed7c], 0x3806ba3c */
     38     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802731A: ret  */
     39     RECOMP_REGS_OUT();
     40 }
     41 
     42 void sub_38027320(void) {
     43     int _fpu_cmp = 0;
     44     uint32_t _cf = 0;
     45     int _df = 1;
     46     uint32_t _flag_k = FK_NONE;
     47     uint32_t _flag_a = 0, _flag_b = 0;
     48     uint32_t _itail_tgt = 0;
     49     RECOMP_REGS_LOCALS
     50     RECOMP_ENTER(0x38027320u);
     51 
     52 L_38027320:
     53     goto L_38027330; /* 0x38027320: jmp 0x38027330 */
     54 L_38027330:
     55     MEM32(0x3806ED78) = 0x3806BA70u; /* 0x38027330: mov dword ptr [0x3806ed78], 0x3806ba70 */
     56     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802733A: ret  */
     57     RECOMP_REGS_OUT();
     58 }
     59 
     60 void sub_38027330(void) {
     61     int _fpu_cmp = 0;
     62     uint32_t _cf = 0;
     63     int _df = 1;
     64     uint32_t _flag_k = FK_NONE;
     65     uint32_t _flag_a = 0, _flag_b = 0;
     66     uint32_t _itail_tgt = 0;
     67     RECOMP_REGS_LOCALS
     68     RECOMP_ENTER(0x38027330u);
     69 
     70 L_38027330:
     71     MEM32(0x3806ED78) = 0x3806BA70u; /* 0x38027330: mov dword ptr [0x3806ed78], 0x3806ba70 */
     72     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802733A: ret  */
     73     RECOMP_REGS_OUT();
     74 }
     75 
     76 void sub_38027340(void) {
     77     int _fpu_cmp = 0;
     78     uint32_t _cf = 0;
     79     int _df = 1;
     80     uint32_t _flag_k = FK_NONE;
     81     uint32_t _flag_a = 0, _flag_b = 0;
     82     uint32_t _itail_tgt = 0;
     83     RECOMP_REGS_LOCALS
     84     RECOMP_ENTER(0x38027340u);
     85 
     86 L_38027340:
     87     goto L_38027350; /* 0x38027340: jmp 0x38027350 */
     88 L_38027350:
     89     MEM32(0x3806ED74) = 0x3806BAA4u; /* 0x38027350: mov dword ptr [0x3806ed74], 0x3806baa4 */
     90     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802735A: ret  */
     91     RECOMP_REGS_OUT();
     92 }
     93 
     94 void sub_38027350(void) {
     95     int _fpu_cmp = 0;
     96     uint32_t _cf = 0;
     97     int _df = 1;
     98     uint32_t _flag_k = FK_NONE;
     99     uint32_t _flag_a = 0, _flag_b = 0;
    100     uint32_t _itail_tgt = 0;
    101     RECOMP_REGS_LOCALS
    102     RECOMP_ENTER(0x38027350u);
    103 
    104 L_38027350:
    105     MEM32(0x3806ED74) = 0x3806BAA4u; /* 0x38027350: mov dword ptr [0x3806ed74], 0x3806baa4 */
    106     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802735A: ret  */
    107     RECOMP_REGS_OUT();
    108 }
    109 
    110 void sub_38027360(void) {
    111     int _fpu_cmp = 0;
    112     uint32_t _cf = 0;
    113     int _df = 1;
    114     uint32_t _flag_k = FK_NONE;
    115     uint32_t _flag_a = 0, _flag_b = 0;
    116     uint32_t _itail_tgt = 0;
    117     RECOMP_REGS_LOCALS
    118     RECOMP_ENTER(0x38027360u);
    119 
    120 L_38027360:
    121     goto L_38027370; /* 0x38027360: jmp 0x38027370 */
    122 L_38027370:
    123     MEM32(0x3806ED70) = 0x3806BAD8u; /* 0x38027370: mov dword ptr [0x3806ed70], 0x3806bad8 */
    124     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802737A: ret  */
    125     RECOMP_REGS_OUT();
    126 }
    127 
    128 void sub_38027370(void) {
    129     int _fpu_cmp = 0;
    130     uint32_t _cf = 0;
    131     int _df = 1;
    132     uint32_t _flag_k = FK_NONE;
    133     uint32_t _flag_a = 0, _flag_b = 0;
    134     uint32_t _itail_tgt = 0;
    135     RECOMP_REGS_LOCALS
    136     RECOMP_ENTER(0x38027370u);
    137 
    138 L_38027370:
    139     MEM32(0x3806ED70) = 0x3806BAD8u; /* 0x38027370: mov dword ptr [0x3806ed70], 0x3806bad8 */
    140     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802737A: ret  */
    141     RECOMP_REGS_OUT();
    142 }
    143 
    144 void sub_38027380(void) {
    145     int _fpu_cmp = 0;
    146     uint32_t _cf = 0;
    147     int _df = 1;
    148     uint32_t _flag_k = FK_NONE;
    149     uint32_t _flag_a = 0, _flag_b = 0;
    150     uint32_t _itail_tgt = 0;
    151     RECOMP_REGS_LOCALS
    152     RECOMP_ENTER(0x38027380u);
    153 
    154 L_38027380:
    155     goto L_38027390; /* 0x38027380: jmp 0x38027390 */
    156 L_38027390:
    157     MEM32(0x3806ED6C) = 0x3806BB10u; /* 0x38027390: mov dword ptr [0x3806ed6c], 0x3806bb10 */
    158     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802739A: ret  */
    159     RECOMP_REGS_OUT();
    160 }
    161 
    162 void sub_38027390(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(0x38027390u);
    171 
    172 L_38027390:
    173     MEM32(0x3806ED6C) = 0x3806BB10u; /* 0x38027390: mov dword ptr [0x3806ed6c], 0x3806bb10 */
    174     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802739A: ret  */
    175     RECOMP_REGS_OUT();
    176 }
    177 
    178 void sub_380273A0(void) {
    179     int _fpu_cmp = 0;
    180     uint32_t _cf = 0;
    181     int _df = 1;
    182     uint32_t _flag_k = FK_NONE;
    183     uint32_t _flag_a = 0, _flag_b = 0;
    184     uint32_t _itail_tgt = 0;
    185     RECOMP_REGS_LOCALS
    186     RECOMP_ENTER(0x380273A0u);
    187 
    188 L_380273A0:
    189     goto L_380273B0; /* 0x380273A0: jmp 0x380273b0 */
    190 L_380273B0:
    191     MEM32(0x3806ED68) = 0x3806BB4Cu; /* 0x380273B0: mov dword ptr [0x3806ed68], 0x3806bb4c */
    192     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380273BA: ret  */
    193     RECOMP_REGS_OUT();
    194 }
    195 
    196 void sub_380273B0(void) {
    197     int _fpu_cmp = 0;
    198     uint32_t _cf = 0;
    199     int _df = 1;
    200     uint32_t _flag_k = FK_NONE;
    201     uint32_t _flag_a = 0, _flag_b = 0;
    202     uint32_t _itail_tgt = 0;
    203     RECOMP_REGS_LOCALS
    204     RECOMP_ENTER(0x380273B0u);
    205 
    206 L_380273B0:
    207     MEM32(0x3806ED68) = 0x3806BB4Cu; /* 0x380273B0: mov dword ptr [0x3806ed68], 0x3806bb4c */
    208     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380273BA: ret  */
    209     RECOMP_REGS_OUT();
    210 }
    211 
    212 void sub_380273C0(void) {
    213     int _fpu_cmp = 0;
    214     uint32_t _cf = 0;
    215     int _df = 1;
    216     uint32_t _flag_k = FK_NONE;
    217     uint32_t _flag_a = 0, _flag_b = 0;
    218     uint32_t _itail_tgt = 0;
    219     RECOMP_REGS_LOCALS
    220     RECOMP_ENTER(0x380273C0u);
    221 
    222 L_380273C0:
    223     goto L_380273D0; /* 0x380273C0: jmp 0x380273d0 */
    224 L_380273D0:
    225     MEM32(0x3806ED64) = 0x3806BB84u; /* 0x380273D0: mov dword ptr [0x3806ed64], 0x3806bb84 */
    226     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380273DA: ret  */
    227     RECOMP_REGS_OUT();
    228 }
    229 
    230 void sub_380273D0(void) {
    231     int _fpu_cmp = 0;
    232     uint32_t _cf = 0;
    233     int _df = 1;
    234     uint32_t _flag_k = FK_NONE;
    235     uint32_t _flag_a = 0, _flag_b = 0;
    236     uint32_t _itail_tgt = 0;
    237     RECOMP_REGS_LOCALS
    238     RECOMP_ENTER(0x380273D0u);
    239 
    240 L_380273D0:
    241     MEM32(0x3806ED64) = 0x3806BB84u; /* 0x380273D0: mov dword ptr [0x3806ed64], 0x3806bb84 */
    242     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380273DA: ret  */
    243     RECOMP_REGS_OUT();
    244 }
    245 
    246 void sub_380273E0(void) {
    247     int _fpu_cmp = 0;
    248     uint32_t _cf = 0;
    249     int _df = 1;
    250     uint32_t _flag_k = FK_NONE;
    251     uint32_t _flag_a = 0, _flag_b = 0;
    252     uint32_t _itail_tgt = 0;
    253     RECOMP_REGS_LOCALS
    254     RECOMP_ENTER(0x380273E0u);
    255 
    256 L_380273E0:
    257     goto L_380273F0; /* 0x380273E0: jmp 0x380273f0 */
    258 L_380273F0:
    259     MEM32(0x3806ED60) = 0x3806BBB8u; /* 0x380273F0: mov dword ptr [0x3806ed60], 0x3806bbb8 */
    260     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380273FA: ret  */
    261     RECOMP_REGS_OUT();
    262 }
    263 
    264 void sub_380273F0(void) {
    265     int _fpu_cmp = 0;
    266     uint32_t _cf = 0;
    267     int _df = 1;
    268     uint32_t _flag_k = FK_NONE;
    269     uint32_t _flag_a = 0, _flag_b = 0;
    270     uint32_t _itail_tgt = 0;
    271     RECOMP_REGS_LOCALS
    272     RECOMP_ENTER(0x380273F0u);
    273 
    274 L_380273F0:
    275     MEM32(0x3806ED60) = 0x3806BBB8u; /* 0x380273F0: mov dword ptr [0x3806ed60], 0x3806bbb8 */
    276     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380273FA: ret  */
    277     RECOMP_REGS_OUT();
    278 }
    279 
    280 void sub_38027400(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(0x38027400u);
    289 
    290 L_38027400:
    291     goto L_38027410; /* 0x38027400: jmp 0x38027410 */
    292 L_38027410:
    293     MEM32(0x3806ED5C) = 0x3806BBF4u; /* 0x38027410: mov dword ptr [0x3806ed5c], 0x3806bbf4 */
    294     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802741A: ret  */
    295     RECOMP_REGS_OUT();
    296 }
    297 
    298 void sub_38027410(void) {
    299     int _fpu_cmp = 0;
    300     uint32_t _cf = 0;
    301     int _df = 1;
    302     uint32_t _flag_k = FK_NONE;
    303     uint32_t _flag_a = 0, _flag_b = 0;
    304     uint32_t _itail_tgt = 0;
    305     RECOMP_REGS_LOCALS
    306     RECOMP_ENTER(0x38027410u);
    307 
    308 L_38027410:
    309     MEM32(0x3806ED5C) = 0x3806BBF4u; /* 0x38027410: mov dword ptr [0x3806ed5c], 0x3806bbf4 */
    310     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802741A: ret  */
    311     RECOMP_REGS_OUT();
    312 }
    313 
    314 void sub_38027420(void) {
    315     int _fpu_cmp = 0;
    316     uint32_t _cf = 0;
    317     int _df = 1;
    318     uint32_t _flag_k = FK_NONE;
    319     uint32_t _flag_a = 0, _flag_b = 0;
    320     uint32_t _itail_tgt = 0;
    321     RECOMP_REGS_LOCALS
    322     RECOMP_ENTER(0x38027420u);
    323 
    324 L_38027420:
    325     goto L_38027430; /* 0x38027420: jmp 0x38027430 */
    326 L_38027430:
    327     MEM32(0x3806ED58) = 0x3806BC2Cu; /* 0x38027430: mov dword ptr [0x3806ed58], 0x3806bc2c */
    328     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802743A: ret  */
    329     RECOMP_REGS_OUT();
    330 }
    331 
    332 void sub_38027430(void) {
    333     int _fpu_cmp = 0;
    334     uint32_t _cf = 0;
    335     int _df = 1;
    336     uint32_t _flag_k = FK_NONE;
    337     uint32_t _flag_a = 0, _flag_b = 0;
    338     uint32_t _itail_tgt = 0;
    339     RECOMP_REGS_LOCALS
    340     RECOMP_ENTER(0x38027430u);
    341 
    342 L_38027430:
    343     MEM32(0x3806ED58) = 0x3806BC2Cu; /* 0x38027430: mov dword ptr [0x3806ed58], 0x3806bc2c */
    344     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802743A: ret  */
    345     RECOMP_REGS_OUT();
    346 }
    347 
    348 void sub_38027440(void) {
    349     int _fpu_cmp = 0;
    350     uint32_t _cf = 0;
    351     int _df = 1;
    352     uint32_t _flag_k = FK_NONE;
    353     uint32_t _flag_a = 0, _flag_b = 0;
    354     uint32_t _itail_tgt = 0;
    355     RECOMP_REGS_LOCALS
    356     RECOMP_ENTER(0x38027440u);
    357 
    358 L_38027440:
    359     goto L_38027450; /* 0x38027440: jmp 0x38027450 */
    360 L_38027450:
    361     MEM32(0x3806ED54) = 0x3806BC68u; /* 0x38027450: mov dword ptr [0x3806ed54], 0x3806bc68 */
    362     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802745A: ret  */
    363     RECOMP_REGS_OUT();
    364 }
    365 
    366 void sub_38027450(void) {
    367     int _fpu_cmp = 0;
    368     uint32_t _cf = 0;
    369     int _df = 1;
    370     uint32_t _flag_k = FK_NONE;
    371     uint32_t _flag_a = 0, _flag_b = 0;
    372     uint32_t _itail_tgt = 0;
    373     RECOMP_REGS_LOCALS
    374     RECOMP_ENTER(0x38027450u);
    375 
    376 L_38027450:
    377     MEM32(0x3806ED54) = 0x3806BC68u; /* 0x38027450: mov dword ptr [0x3806ed54], 0x3806bc68 */
    378     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802745A: ret  */
    379     RECOMP_REGS_OUT();
    380 }
    381 
    382 void sub_38027460(void) {
    383     int _fpu_cmp = 0;
    384     uint32_t _cf = 0;
    385     int _df = 1;
    386     uint32_t _flag_k = FK_NONE;
    387     uint32_t _flag_a = 0, _flag_b = 0;
    388     uint32_t _itail_tgt = 0;
    389     RECOMP_REGS_LOCALS
    390     RECOMP_ENTER(0x38027460u);
    391 
    392 L_38027460:
    393     goto L_38027470; /* 0x38027460: jmp 0x38027470 */
    394 L_38027470:
    395     MEM32(0x3806ED50) = 0x3806BCA4u; /* 0x38027470: mov dword ptr [0x3806ed50], 0x3806bca4 */
    396     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802747A: ret  */
    397     RECOMP_REGS_OUT();
    398 }
    399 
    400 void sub_38027470(void) {
    401     int _fpu_cmp = 0;
    402     uint32_t _cf = 0;
    403     int _df = 1;
    404     uint32_t _flag_k = FK_NONE;
    405     uint32_t _flag_a = 0, _flag_b = 0;
    406     uint32_t _itail_tgt = 0;
    407     RECOMP_REGS_LOCALS
    408     RECOMP_ENTER(0x38027470u);
    409 
    410 L_38027470:
    411     MEM32(0x3806ED50) = 0x3806BCA4u; /* 0x38027470: mov dword ptr [0x3806ed50], 0x3806bca4 */
    412     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802747A: ret  */
    413     RECOMP_REGS_OUT();
    414 }
    415 
    416 void sub_38027480(void) {
    417     int _fpu_cmp = 0;
    418     uint32_t _cf = 0;
    419     int _df = 1;
    420     uint32_t _flag_k = FK_NONE;
    421     uint32_t _flag_a = 0, _flag_b = 0;
    422     uint32_t _itail_tgt = 0;
    423     RECOMP_REGS_LOCALS
    424     RECOMP_ENTER(0x38027480u);
    425 
    426 L_38027480:
    427     goto L_38027490; /* 0x38027480: jmp 0x38027490 */
    428 L_38027490:
    429     MEM32(0x3806ED4C) = 0x3806BCD8u; /* 0x38027490: mov dword ptr [0x3806ed4c], 0x3806bcd8 */
    430     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802749A: ret  */
    431     RECOMP_REGS_OUT();
    432 }
    433 
    434 void sub_38027490(void) {
    435     int _fpu_cmp = 0;
    436     uint32_t _cf = 0;
    437     int _df = 1;
    438     uint32_t _flag_k = FK_NONE;
    439     uint32_t _flag_a = 0, _flag_b = 0;
    440     uint32_t _itail_tgt = 0;
    441     RECOMP_REGS_LOCALS
    442     RECOMP_ENTER(0x38027490u);
    443 
    444 L_38027490:
    445     MEM32(0x3806ED4C) = 0x3806BCD8u; /* 0x38027490: mov dword ptr [0x3806ed4c], 0x3806bcd8 */
    446     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802749A: ret  */
    447     RECOMP_REGS_OUT();
    448 }
    449 
    450 void sub_380274A0(void) {
    451     int _fpu_cmp = 0;
    452     uint32_t _cf = 0;
    453     int _df = 1;
    454     uint32_t _flag_k = FK_NONE;
    455     uint32_t _flag_a = 0, _flag_b = 0;
    456     uint32_t _itail_tgt = 0;
    457     RECOMP_REGS_LOCALS
    458     RECOMP_ENTER(0x380274A0u);
    459 
    460 L_380274A0:
    461     goto L_380274B0; /* 0x380274A0: jmp 0x380274b0 */
    462 L_380274B0:
    463     MEM32(0x3806ED48) = 0x3806BD0Cu; /* 0x380274B0: mov dword ptr [0x3806ed48], 0x3806bd0c */
    464     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380274BA: ret  */
    465     RECOMP_REGS_OUT();
    466 }
    467 
    468 void sub_380274B0(void) {
    469     int _fpu_cmp = 0;
    470     uint32_t _cf = 0;
    471     int _df = 1;
    472     uint32_t _flag_k = FK_NONE;
    473     uint32_t _flag_a = 0, _flag_b = 0;
    474     uint32_t _itail_tgt = 0;
    475     RECOMP_REGS_LOCALS
    476     RECOMP_ENTER(0x380274B0u);
    477 
    478 L_380274B0:
    479     MEM32(0x3806ED48) = 0x3806BD0Cu; /* 0x380274B0: mov dword ptr [0x3806ed48], 0x3806bd0c */
    480     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380274BA: ret  */
    481     RECOMP_REGS_OUT();
    482 }
    483 
    484 void sub_380274C0(void) {
    485     int _fpu_cmp = 0;
    486     uint32_t _cf = 0;
    487     int _df = 1;
    488     uint32_t _flag_k = FK_NONE;
    489     uint32_t _flag_a = 0, _flag_b = 0;
    490     uint32_t _itail_tgt = 0;
    491     RECOMP_REGS_LOCALS
    492     RECOMP_ENTER(0x380274C0u);
    493 
    494 L_380274C0:
    495     PUSH32(esp, ebp); /* 0x380274C0: push ebp */
    496     ebp = esp; /* 0x380274C1: mov ebp, esp */
    497     PUSH32(esp, 0xFFFFFFFFu); /* 0x380274C3: push -1 */
    498     PUSH32(esp, 0x3804C84Bu); /* 0x380274C5: push 0x3804c84b */
    499     eax = MEM32(FS_BASE + (0)); /* 0x380274CA: mov eax, dword ptr fs:[0] */
    500     PUSH32(esp, eax); /* 0x380274D0: push eax */
    501     MEM32(FS_BASE + (0)) = esp; /* 0x380274D1: mov dword ptr fs:[0], esp */
    502     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
    503     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    504     esp = esp - 0xCu; /* 0x380274D8: sub esp, 0xc */
    505     _flag_k = FK_CMP;
    506     PUSH32(esp, ebx); /* 0x380274DB: push ebx */
    507     PUSH32(esp, esi); /* 0x380274DC: push esi */
    508     PUSH32(esp, edi); /* 0x380274DD: push edi */
    509     edi = ecx; /* 0x380274DE: mov edi, ecx */
    510     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    511     ebx = 0; /* 0x380274E0: xor ebx, ebx */
    512     _cf = 0;
    513     _flag_k = FK_TEST;
    514     PUSH32(esp, 0x14u); /* 0x380274E2: push 0x14 */
    515     MEM32(edi) = ebx; /* 0x380274E4: mov dword ptr [edi], ebx */
    516     MEM32(edi + 0x4) = ebx; /* 0x380274E6: mov dword ptr [edi + 4], ebx */
    517     MEM32(edi + 0x8) = ebx; /* 0x380274E9: mov dword ptr [edi + 8], ebx */
    518     RECOMP_ICALL(0x3804B676u); /* 0x380274EC: call 0x3804b676 */ /* not lifted */
    519     RECOMP_FLAGS_IN();
    520     esi = eax; /* 0x380274F1: mov esi, eax */
    521     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    522     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    523     esp = esp + 4; /* 0x380274F3: add esp, 4 */
    524     _flag_k = FK_ADD;
    525     MEM32(ebp + (-0x18)) = esi; /* 0x380274F6: mov dword ptr [ebp - 0x18], esi */
    526     /* cmp esi, ebx */ /* 0x380274F9: cmp esi, ebx */
    527     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
    528     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    529     _flag_k = FK_CMP;
    530     MEM32(ebp + (-0x4)) = ebx; /* 0x380274FB: mov dword ptr [ebp - 4], ebx */
    531     if (CMP_EQ(_flag_a, _flag_b)) goto L_38027571; /* 0x380274FE: je 0x38027571 */
    532 L_38027500:
    533     SET_LO8(eax, MEM8(ebp + (-0xD))); /* 0x38027500: mov al, byte ptr [ebp - 0xd] */
    534     SET_LO8(ecx, MEM8(ebp + (-0xD))); /* 0x38027503: mov cl, byte ptr [ebp - 0xd] */
    535     PUSH32(esp, 0x18u); /* 0x38027506: push 0x18 */
    536     MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x38027508: mov byte ptr [esi], al */
    537     MEM8(esi + 0x1) = (uint8_t)(LO8(ecx)); /* 0x3802750A: mov byte ptr [esi + 1], cl */
    538     MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x3802750D: mov byte ptr [esi + 0xc], bl */
    539     RECOMP_ICALL(0x3804B676u); /* 0x38027510: call 0x3804b676 */ /* not lifted */
    540     RECOMP_FLAGS_IN();
    541     MEM32(eax + 0x4) = ebx; /* 0x38027515: mov dword ptr [eax + 4], ebx */
    542     MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x38027518: mov byte ptr [eax + 0x15], bl */
    543     SET_LO8(ecx, 1); /* 0x3802751B: mov cl, 1 */
    544     MEM8(eax + 0x14) = (uint8_t)(LO8(ecx)); /* 0x3802751D: mov byte ptr [eax + 0x14], cl */
    545     MEM32(esi + 0x8) = eax; /* 0x38027520: mov dword ptr [esi + 8], eax */
    546     MEM8(eax + 0x15) = (uint8_t)(LO8(ecx)); /* 0x38027523: mov byte ptr [eax + 0x15], cl */
    547     edx = MEM32(esi + 0x8); /* 0x38027526: mov edx, dword ptr [esi + 8] */
    548     MEM32(edx) = ebx; /* 0x38027529: mov dword ptr [edx], ebx */
    549     eax = MEM32(esi + 0x8); /* 0x3802752B: mov eax, dword ptr [esi + 8] */
    550     MEM32(eax + 0x8) = ebx; /* 0x3802752E: mov dword ptr [eax + 8], ebx */
    551     ecx = MEM32(esi + 0x8); /* 0x38027531: mov ecx, dword ptr [esi + 8] */
    552     PUSH32(esp, 0x18u); /* 0x38027534: push 0x18 */
    553     MEM32(ebp + (-0x14)) = ecx; /* 0x38027536: mov dword ptr [ebp - 0x14], ecx */
    554     RECOMP_ICALL(0x3804B676u); /* 0x38027539: call 0x3804b676 */ /* not lifted */
    555     RECOMP_FLAGS_IN();
    556     edx = MEM32(ebp + (-0x14)); /* 0x3802753E: mov edx, dword ptr [ebp - 0x14] */
    557     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38027541: mov byte ptr [eax + 0x14], bl */
    558     MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x38027544: mov byte ptr [eax + 0x15], bl */
    559     MEM32(eax + 0x4) = edx; /* 0x38027547: mov dword ptr [eax + 4], edx */
    560     MEM32(esi + 0x4) = eax; /* 0x3802754A: mov dword ptr [esi + 4], eax */
    561     MEM32(eax) = eax; /* 0x3802754D: mov dword ptr [eax], eax */
    562     eax = MEM32(esi + 0x4); /* 0x3802754F: mov eax, dword ptr [esi + 4] */
    563     MEM32(eax + 0x8) = eax; /* 0x38027552: mov dword ptr [eax + 8], eax */
    564     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    565     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    566     esp = esp + 8; /* 0x38027555: add esp, 8 */
    567     _flag_k = FK_ADD;
    568     MEM32(esi + 0x10) = ebx; /* 0x38027558: mov dword ptr [esi + 0x10], ebx */
    569     MEM32(edi + 0xC) = esi; /* 0x3802755B: mov dword ptr [edi + 0xc], esi */
    570     eax = edi; /* 0x3802755E: mov eax, edi */
    571     edi = POP32_VAL(esp); /* 0x38027560: pop edi */
    572     esi = POP32_VAL(esp); /* 0x38027561: pop esi */
    573     ebx = POP32_VAL(esp); /* 0x38027562: pop ebx */
    574     ecx = MEM32(ebp + (-0xC)); /* 0x38027563: mov ecx, dword ptr [ebp - 0xc] */
    575     MEM32(FS_BASE + (0)) = ecx; /* 0x38027566: mov dword ptr fs:[0], ecx */
    576     esp = ebp; /* 0x3802756D: mov esp, ebp */
    577     ebp = POP32_VAL(esp); /* 0x3802756F: pop ebp */
    578     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38027570: ret  */
    579 L_38027571:
    580     ecx = MEM32(ebp + (-0xC)); /* 0x38027571: mov ecx, dword ptr [ebp - 0xc] */
    581     MEM32(edi + 0xC) = ebx; /* 0x38027574: mov dword ptr [edi + 0xc], ebx */
    582     eax = edi; /* 0x38027577: mov eax, edi */
    583     edi = POP32_VAL(esp); /* 0x38027579: pop edi */
    584     esi = POP32_VAL(esp); /* 0x3802757A: pop esi */
    585     ebx = POP32_VAL(esp); /* 0x3802757B: pop ebx */
    586     MEM32(FS_BASE + (0)) = ecx; /* 0x3802757C: mov dword ptr fs:[0], ecx */
    587     esp = ebp; /* 0x38027583: mov esp, ebp */
    588     ebp = POP32_VAL(esp); /* 0x38027585: pop ebp */
    589     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38027586: ret  */
    590     RECOMP_REGS_OUT();
    591 }
    592 
    593 void sub_38027590(void) {
    594     int _fpu_cmp = 0;
    595     uint32_t _cf = 0;
    596     int _df = 1;
    597     uint32_t _flag_k = FK_NONE;
    598     uint32_t _flag_a = 0, _flag_b = 0;
    599     uint32_t _itail_tgt = 0;
    600     RECOMP_REGS_LOCALS
    601     RECOMP_ENTER(0x38027590u);
    602 
    603 L_38027590:
    604     PUSH32(esp, esi); /* 0x38027590: push esi */
    605     PUSH32(esp, edi); /* 0x38027591: push edi */
    606     edi = ecx; /* 0x38027592: mov edi, ecx */
    607     eax = MEM32(edi + 0xC); /* 0x38027594: mov eax, dword ptr [edi + 0xc] */
    608     /* test eax, eax */ /* 0x38027597: test eax, eax */
    609     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    610     _cf = 0;
    611     _flag_k = FK_TEST;
    612     if (TEST_Z(_flag_a, _flag_b)) goto L_380275F4; /* 0x38027599: je 0x380275f4 */
    613 L_3802759B:
    614     eax = MEM32(eax + 0x4); /* 0x3802759B: mov eax, dword ptr [eax + 4] */
    615     esi = MEM32(eax); /* 0x3802759E: mov esi, dword ptr [eax] */
    616     /* cmp esi, eax */ /* 0x380275A0: cmp esi, eax */
    617     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
    618     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    619     _flag_k = FK_CMP;
    620     if (CMP_EQ(_flag_a, _flag_b)) goto L_380275F4; /* 0x380275A2: je 0x380275f4 */
    621 L_380275A4:
    622     ecx = MEM32(esi + 0x10); /* 0x380275A4: mov ecx, dword ptr [esi + 0x10] */
    623     /* test ecx, ecx */ /* 0x380275A7: test ecx, ecx */
    624     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    625     _cf = 0;
    626     _flag_k = FK_TEST;
    627     if (TEST_Z(_flag_a, _flag_b)) goto L_380275B1; /* 0x380275A9: je 0x380275b1 */
    628 L_380275AB:
    629     eax = MEM32(ecx); /* 0x380275AB: mov eax, dword ptr [ecx] */
    630     PUSH32(esp, 1); /* 0x380275AD: push 1 */
    631     RECOMP_ICALL(MEM32(eax)); /* 0x380275AF: call dword ptr [eax] */
    632     RECOMP_FLAGS_IN();
    633 L_380275B1:
    634     eax = MEM32(esi + 0x8); /* 0x380275B1: mov eax, dword ptr [esi + 8] */
    635     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x380275B4: mov cl, byte ptr [eax + 0x15] */
    636     /* test LO8(ecx), LO8(ecx) */ /* 0x380275B7: test cl, cl */
    637     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
    638     _cf = 0;
    639     _flag_k = FK_NARROW(FK_TEST, 24);
    640     if (TEST_NZ(_flag_a, _flag_b)) goto L_380275D3; /* 0x380275B9: jne 0x380275d3 */
    641 L_380275BB:
    642     esi = eax; /* 0x380275BB: mov esi, eax */
    643     eax = MEM32(esi); /* 0x380275BD: mov eax, dword ptr [esi] */
    644     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x380275BF: mov cl, byte ptr [eax + 0x15] */
    645     /* test LO8(ecx), LO8(ecx) */ /* 0x380275C2: test cl, cl */
    646     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
    647     _cf = 0;
    648     _flag_k = FK_NARROW(FK_TEST, 24);
    649     if (TEST_NZ(_flag_a, _flag_b)) goto L_380275EC; /* 0x380275C4: jne 0x380275ec */
    650 L_380275C6:
    651     esi = eax; /* 0x380275C6: mov esi, eax */
    652     eax = MEM32(esi); /* 0x380275C8: mov eax, dword ptr [esi] */
    653     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x380275CA: mov cl, byte ptr [eax + 0x15] */
    654     /* test LO8(ecx), LO8(ecx) */ /* 0x380275CD: test cl, cl */
    655     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
    656     _cf = 0;
    657     _flag_k = FK_NARROW(FK_TEST, 24);
    658     RECOMP_BACKEDGE();
    659     if (TEST_Z(_flag_a, _flag_b)) goto L_380275C6; /* 0x380275CF: je 0x380275c6 */
    660 L_380275D1:
    661     goto L_380275EC; /* 0x380275D1: jmp 0x380275ec */
    662 L_380275D3:
    663     eax = MEM32(esi + 0x4); /* 0x380275D3: mov eax, dword ptr [esi + 4] */
    664     /* cmp esi, MEM32(eax + 0x8) */ /* 0x380275D6: cmp esi, dword ptr [eax + 8] */
    665     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
    666     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    667     _flag_k = FK_CMP;
    668     if (CMP_NE(_flag_a, _flag_b)) goto L_380275E5; /* 0x380275D9: jne 0x380275e5 */
    669 L_380275DB:
    670     esi = eax; /* 0x380275DB: mov esi, eax */
    671     eax = MEM32(eax + 0x4); /* 0x380275DD: mov eax, dword ptr [eax + 4] */
    672     /* cmp esi, MEM32(eax + 0x8) */ /* 0x380275E0: cmp esi, dword ptr [eax + 8] */
    673     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
    674     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    675     _flag_k = FK_CMP;
    676     RECOMP_BACKEDGE();
    677     if (CMP_EQ(_flag_a, _flag_b)) goto L_380275DB; /* 0x380275E3: je 0x380275db */
    678 L_380275E5:
    679     /* cmp MEM32(esi + 0x8), eax */ /* 0x380275E5: cmp dword ptr [esi + 8], eax */
    680     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
    681     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    682     _flag_k = FK_CMP;
    683     if (CMP_EQ(_flag_a, _flag_b)) goto L_380275EC; /* 0x380275E8: je 0x380275ec */
    684 L_380275EA:
    685     esi = eax; /* 0x380275EA: mov esi, eax */
    686 L_380275EC:
    687     ecx = MEM32(edi + 0xC); /* 0x380275EC: mov ecx, dword ptr [edi + 0xc] */
    688     /* cmp esi, MEM32(ecx + 0x4) */ /* 0x380275EF: cmp esi, dword ptr [ecx + 4] */
    689     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
    690     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    691     _flag_k = FK_CMP;
    692     RECOMP_BACKEDGE();
    693     if (CMP_NE(_flag_a, _flag_b)) goto L_380275A4; /* 0x380275F2: jne 0x380275a4 */
    694 L_380275F4:
    695     esi = MEM32(edi + 0xC); /* 0x380275F4: mov esi, dword ptr [edi + 0xc] */
    696     /* test esi, esi */ /* 0x380275F7: test esi, esi */
    697     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
    698     _cf = 0;
    699     _flag_k = FK_TEST;
    700     if (TEST_Z(_flag_a, _flag_b)) goto L_3802760B; /* 0x380275F9: je 0x3802760b */
    701 L_380275FB:
    702     ecx = esi; /* 0x380275FB: mov ecx, esi */
    703     RECOMP_ICALL(0x38027630u); /* 0x380275FD: call 0x38027630 */ /* not lifted */
    704     RECOMP_FLAGS_IN();
    705     PUSH32(esp, esi); /* 0x38027602: push esi */
    706     RECOMP_ICALL(0x3804B4F6u); /* 0x38027603: call 0x3804b4f6 */ /* not lifted */
    707     RECOMP_FLAGS_IN();
    708     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    709     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    710     esp = esp + 4; /* 0x38027608: add esp, 4 */
    711     _flag_k = FK_ADD;
    712 L_3802760B:
    713     MEM32(edi + 0xC) = 0; /* 0x3802760B: mov dword ptr [edi + 0xc], 0 */
    714     MEM32(edi) = 0; /* 0x38027612: mov dword ptr [edi], 0 */
    715     MEM32(edi + 0x4) = 0; /* 0x38027618: mov dword ptr [edi + 4], 0 */
    716     MEM32(edi + 0x8) = 0; /* 0x3802761F: mov dword ptr [edi + 8], 0 */
    717     edi = POP32_VAL(esp); /* 0x38027626: pop edi */
    718     esi = POP32_VAL(esp); /* 0x38027627: pop esi */
    719     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38027628: ret  */
    720     RECOMP_REGS_OUT();
    721 }
    722 
    723 void sub_38027630(void) {
    724     int _fpu_cmp = 0;
    725     uint32_t _cf = 0;
    726     int _df = 1;
    727     uint32_t _flag_k = FK_NONE;
    728     uint32_t _flag_a = 0, _flag_b = 0;
    729     uint32_t _itail_tgt = 0;
    730     RECOMP_REGS_LOCALS
    731     RECOMP_ENTER(0x38027630u);
    732 
    733 L_38027630:
    734     PUSH32(esp, ebp); /* 0x38027630: push ebp */
    735     ebp = esp; /* 0x38027631: mov ebp, esp */
    736     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    737     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    738     esp = esp - 8; /* 0x38027633: sub esp, 8 */
    739     _flag_k = FK_CMP;
    740     PUSH32(esp, ebx); /* 0x38027636: push ebx */
    741     PUSH32(esp, esi); /* 0x38027637: push esi */
    742     esi = ecx; /* 0x38027638: mov esi, ecx */
    743     ecx = MEM32(esi + 0x10); /* 0x3802763A: mov ecx, dword ptr [esi + 0x10] */
    744     /* test ecx, ecx */ /* 0x3802763D: test ecx, ecx */
    745     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    746     _cf = 0;
    747     _flag_k = FK_TEST;
    748     PUSH32(esp, edi); /* 0x3802763F: push edi */
    749     edi = MEM32(esi + 0x4); /* 0x38027640: mov edi, dword ptr [esi + 4] */
    750     eax = MEM32(edi); /* 0x38027643: mov eax, dword ptr [edi] */
    751     MEM32(ebp + (-0x4)) = eax; /* 0x38027645: mov dword ptr [ebp - 4], eax */
    752     if (TEST_Z(_flag_a, _flag_b)) goto L_380276A5; /* 0x38027648: je 0x380276a5 */
    753 L_3802764A:
    754     ecx = eax; /* 0x3802764A: mov ecx, eax */
    755     /* cmp eax, ecx */ /* 0x3802764C: cmp eax, ecx */
    756     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    757     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    758     _flag_k = FK_CMP;
    759     if (CMP_NE(_flag_a, _flag_b)) goto L_380276A5; /* 0x3802764E: jne 0x380276a5 */
    760 L_38027650:
    761     /* cmp edi, edi */ /* 0x38027650: cmp edi, edi */
    762     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    763     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    764     _flag_k = FK_CMP;
    765     if (CMP_NE(_flag_a, _flag_b)) goto L_380276A5; /* 0x38027652: jne 0x380276a5 */
    766 L_38027654:
    767     ebx = MEM32(edi + 0x4); /* 0x38027654: mov ebx, dword ptr [edi + 4] */
    768     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x38027657: cmp ebx, dword ptr [esi + 8] */
    769     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    770     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    771     _flag_k = FK_CMP;
    772     edi = ebx; /* 0x3802765A: mov edi, ebx */
    773     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802767D; /* 0x3802765C: je 0x3802767d */
    774 L_3802765E:
    775     eax = MEM32(edi + 0x8); /* 0x3802765E: mov eax, dword ptr [edi + 8] */
    776     PUSH32(esp, eax); /* 0x38027661: push eax */
    777     ecx = esi; /* 0x38027662: mov ecx, esi */
    778     RECOMP_ICALL(0x38027D30u); /* 0x38027664: call 0x38027d30 */ /* not lifted */
    779     RECOMP_FLAGS_IN();
    780     edi = MEM32(edi); /* 0x38027669: mov edi, dword ptr [edi] */
    781     PUSH32(esp, ebx); /* 0x3802766B: push ebx */
    782     RECOMP_ICALL(0x3804B4F6u); /* 0x3802766C: call 0x3804b4f6 */ /* not lifted */
    783     RECOMP_FLAGS_IN();
    784     eax = MEM32(esi + 0x8); /* 0x38027671: mov eax, dword ptr [esi + 8] */
    785     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    786     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    787     esp = esp + 4; /* 0x38027674: add esp, 4 */
    788     _flag_k = FK_ADD;
    789     /* cmp edi, eax */ /* 0x38027677: cmp edi, eax */
    790     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    791     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    792     _flag_k = FK_CMP;
    793     ebx = edi; /* 0x38027679: mov ebx, edi */
    794     RECOMP_BACKEDGE();
    795     if (CMP_NE(_flag_a, _flag_b)) goto L_3802765E; /* 0x3802767B: jne 0x3802765e */
    796 L_3802767D:
    797     ecx = MEM32(esi + 0x4); /* 0x3802767D: mov ecx, dword ptr [esi + 4] */
    798     edx = MEM32(esi + 0x8); /* 0x38027680: mov edx, dword ptr [esi + 8] */
    799     MEM32(ecx + 0x4) = edx; /* 0x38027683: mov dword ptr [ecx + 4], edx */
    800     eax = MEM32(esi + 0x4); /* 0x38027686: mov eax, dword ptr [esi + 4] */
    801     MEM32(esi + 0x10) = 0; /* 0x38027689: mov dword ptr [esi + 0x10], 0 */
    802     MEM32(eax) = eax; /* 0x38027690: mov dword ptr [eax], eax */
    803     eax = MEM32(esi + 0x4); /* 0x38027692: mov eax, dword ptr [esi + 4] */
    804     MEM32(eax + 0x8) = eax; /* 0x38027695: mov dword ptr [eax + 8], eax */
    805     eax = ebp + (-0x8); /* 0x38027698: lea eax, [ebp - 8] */
    806     PUSH32(esp, eax); /* 0x3802769B: push eax */
    807     ecx = esi; /* 0x3802769C: mov ecx, esi */
    808     RECOMP_ICALL(0x380354C0u); /* 0x3802769E: call 0x380354c0 */ /* not lifted */
    809     RECOMP_FLAGS_IN();
    810     goto L_380276C6; /* 0x380276A3: jmp 0x380276c6 */
    811 L_380276A5:
    812     /* cmp eax, edi */ /* 0x380276A5: cmp eax, edi */
    813     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    814     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    815     _flag_k = FK_CMP;
    816     if (CMP_EQ(_flag_a, _flag_b)) goto L_380276C6; /* 0x380276A7: je 0x380276c6 */
    817 L_380276A9:
    818     ecx = ebp + (-0x4); /* 0x380276A9: lea ecx, [ebp - 4] */
    819     ebx = eax; /* 0x380276AC: mov ebx, eax */
    820     RECOMP_ICALL(0x38035590u); /* 0x380276AE: call 0x38035590 */ /* not lifted */
    821     RECOMP_FLAGS_IN();
    822     PUSH32(esp, ebx); /* 0x380276B3: push ebx */
    823     ecx = ebp + (-0x8); /* 0x380276B4: lea ecx, [ebp - 8] */
    824     PUSH32(esp, ecx); /* 0x380276B7: push ecx */
    825     ecx = esi; /* 0x380276B8: mov ecx, esi */
    826     RECOMP_ICALL(0x3800F9D0u); /* 0x380276BA: call 0x3800f9d0 */ /* not lifted */
    827     RECOMP_FLAGS_IN();
    828     eax = MEM32(ebp + (-0x4)); /* 0x380276BF: mov eax, dword ptr [ebp - 4] */
    829     /* cmp eax, edi */ /* 0x380276C2: cmp eax, edi */
    830     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    831     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    832     _flag_k = FK_CMP;
    833     RECOMP_BACKEDGE();
    834     if (CMP_NE(_flag_a, _flag_b)) goto L_380276A9; /* 0x380276C4: jne 0x380276a9 */
    835 L_380276C6:
    836     edx = MEM32(esi + 0x4); /* 0x380276C6: mov edx, dword ptr [esi + 4] */
    837     PUSH32(esp, edx); /* 0x380276C9: push edx */
    838     RECOMP_ICALL(0x3804B4F6u); /* 0x380276CA: call 0x3804b4f6 */ /* not lifted */
    839     RECOMP_FLAGS_IN();
    840     eax = MEM32(esi + 0x8); /* 0x380276CF: mov eax, dword ptr [esi + 8] */
    841     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    842     edi = 0; /* 0x380276D2: xor edi, edi */
    843     _cf = 0;
    844     _flag_k = FK_TEST;
    845     PUSH32(esp, eax); /* 0x380276D4: push eax */
    846     MEM32(esi + 0x4) = edi; /* 0x380276D5: mov dword ptr [esi + 4], edi */
    847     MEM32(esi + 0x10) = edi; /* 0x380276D8: mov dword ptr [esi + 0x10], edi */
    848     RECOMP_ICALL(0x3804B4F6u); /* 0x380276DB: call 0x3804b4f6 */ /* not lifted */
    849     RECOMP_FLAGS_IN();
    850     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    851     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    852     esp = esp + 8; /* 0x380276E0: add esp, 8 */
    853     _flag_k = FK_ADD;
    854     MEM32(esi + 0x8) = edi; /* 0x380276E3: mov dword ptr [esi + 8], edi */
    855     edi = POP32_VAL(esp); /* 0x380276E6: pop edi */
    856     esi = POP32_VAL(esp); /* 0x380276E7: pop esi */
    857     ebx = POP32_VAL(esp); /* 0x380276E8: pop ebx */
    858     esp = ebp; /* 0x380276E9: mov esp, ebp */
    859     ebp = POP32_VAL(esp); /* 0x380276EB: pop ebp */
    860     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380276EC: ret  */
    861     RECOMP_REGS_OUT();
    862 }
    863 
    864 void sub_380276F0(void) {
    865     int _fpu_cmp = 0;
    866     uint32_t _cf = 0;
    867     int _df = 1;
    868     uint32_t _flag_k = FK_NONE;
    869     uint32_t _flag_a = 0, _flag_b = 0;
    870     uint32_t _itail_tgt = 0;
    871     RECOMP_REGS_LOCALS
    872     RECOMP_ENTER(0x380276F0u);
    873 
    874 L_380276F0:
    875     PUSH32(esp, esi); /* 0x380276F0: push esi */
    876     esi = MEM32(0x3806ED8C); /* 0x380276F1: mov esi, dword ptr [0x3806ed8c] */
    877     /* test esi, esi */ /* 0x380276F7: test esi, esi */
    878     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
    879     _cf = 0;
    880     _flag_k = FK_TEST;
    881     if (TEST_Z(_flag_a, _flag_b)) goto L_3802770B; /* 0x380276F9: je 0x3802770b */
    882 L_380276FB:
    883     ecx = esi; /* 0x380276FB: mov ecx, esi */
    884     RECOMP_ICALL(0x38027720u); /* 0x380276FD: call 0x38027720 */ /* not lifted */
    885     RECOMP_FLAGS_IN();
    886     PUSH32(esp, esi); /* 0x38027702: push esi */
    887     RECOMP_ICALL(0x3804B4F6u); /* 0x38027703: call 0x3804b4f6 */ /* not lifted */
    888     RECOMP_FLAGS_IN();
    889     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    890     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    891     esp = esp + 4; /* 0x38027708: add esp, 4 */
    892     _flag_k = FK_ADD;
    893 L_3802770B:
    894     MEM32(0x3806ED8C) = 0; /* 0x3802770B: mov dword ptr [0x3806ed8c], 0 */
    895     esi = POP32_VAL(esp); /* 0x38027715: pop esi */
    896     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38027716: ret  */
    897     RECOMP_REGS_OUT();
    898 }
    899 
    900 void sub_38027720(void) {
    901     int _fpu_cmp = 0;
    902     uint32_t _cf = 0;
    903     int _df = 1;
    904     uint32_t _flag_k = FK_NONE;
    905     uint32_t _flag_a = 0, _flag_b = 0;
    906     uint32_t _itail_tgt = 0;
    907     RECOMP_REGS_LOCALS
    908     RECOMP_ENTER(0x38027720u);
    909 
    910 L_38027720:
    911     PUSH32(esp, ebp); /* 0x38027720: push ebp */
    912     ebp = esp; /* 0x38027721: mov ebp, esp */
    913     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    914     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    915     esp = esp - 8; /* 0x38027723: sub esp, 8 */
    916     _flag_k = FK_CMP;
    917     PUSH32(esp, ebx); /* 0x38027726: push ebx */
    918     PUSH32(esp, esi); /* 0x38027727: push esi */
    919     esi = ecx; /* 0x38027728: mov esi, ecx */
    920     ecx = MEM32(esi + 0x10); /* 0x3802772A: mov ecx, dword ptr [esi + 0x10] */
    921     /* test ecx, ecx */ /* 0x3802772D: test ecx, ecx */
    922     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    923     _cf = 0;
    924     _flag_k = FK_TEST;
    925     PUSH32(esp, edi); /* 0x3802772F: push edi */
    926     edi = MEM32(esi + 0x4); /* 0x38027730: mov edi, dword ptr [esi + 4] */
    927     eax = MEM32(edi); /* 0x38027733: mov eax, dword ptr [edi] */
    928     MEM32(ebp + (-0x4)) = eax; /* 0x38027735: mov dword ptr [ebp - 4], eax */
    929     if (TEST_Z(_flag_a, _flag_b)) goto L_38027795; /* 0x38027738: je 0x38027795 */
    930 L_3802773A:
    931     ecx = eax; /* 0x3802773A: mov ecx, eax */
    932     /* cmp eax, ecx */ /* 0x3802773C: cmp eax, ecx */
    933     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    934     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    935     _flag_k = FK_CMP;
    936     if (CMP_NE(_flag_a, _flag_b)) goto L_38027795; /* 0x3802773E: jne 0x38027795 */
    937 L_38027740:
    938     /* cmp edi, edi */ /* 0x38027740: cmp edi, edi */
    939     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    940     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    941     _flag_k = FK_CMP;
    942     if (CMP_NE(_flag_a, _flag_b)) goto L_38027795; /* 0x38027742: jne 0x38027795 */
    943 L_38027744:
    944     ebx = MEM32(edi + 0x4); /* 0x38027744: mov ebx, dword ptr [edi + 4] */
    945     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x38027747: cmp ebx, dword ptr [esi + 8] */
    946     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    947     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    948     _flag_k = FK_CMP;
    949     edi = ebx; /* 0x3802774A: mov edi, ebx */
    950     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802776D; /* 0x3802774C: je 0x3802776d */
    951 L_3802774E:
    952     eax = MEM32(edi + 0x8); /* 0x3802774E: mov eax, dword ptr [edi + 8] */
    953     PUSH32(esp, eax); /* 0x38027751: push eax */
    954     ecx = esi; /* 0x38027752: mov ecx, esi */
    955     RECOMP_ICALL(0x38027CB0u); /* 0x38027754: call 0x38027cb0 */ /* not lifted */
    956     RECOMP_FLAGS_IN();
    957     edi = MEM32(edi); /* 0x38027759: mov edi, dword ptr [edi] */
    958     PUSH32(esp, ebx); /* 0x3802775B: push ebx */
    959     RECOMP_ICALL(0x3804B4F6u); /* 0x3802775C: call 0x3804b4f6 */ /* not lifted */
    960     RECOMP_FLAGS_IN();
    961     eax = MEM32(esi + 0x8); /* 0x38027761: mov eax, dword ptr [esi + 8] */
    962     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    963     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    964     esp = esp + 4; /* 0x38027764: add esp, 4 */
    965     _flag_k = FK_ADD;
    966     /* cmp edi, eax */ /* 0x38027767: cmp edi, eax */
    967     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    968     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    969     _flag_k = FK_CMP;
    970     ebx = edi; /* 0x38027769: mov ebx, edi */
    971     RECOMP_BACKEDGE();
    972     if (CMP_NE(_flag_a, _flag_b)) goto L_3802774E; /* 0x3802776B: jne 0x3802774e */
    973 L_3802776D:
    974     ecx = MEM32(esi + 0x4); /* 0x3802776D: mov ecx, dword ptr [esi + 4] */
    975     edx = MEM32(esi + 0x8); /* 0x38027770: mov edx, dword ptr [esi + 8] */
    976     MEM32(ecx + 0x4) = edx; /* 0x38027773: mov dword ptr [ecx + 4], edx */
    977     eax = MEM32(esi + 0x4); /* 0x38027776: mov eax, dword ptr [esi + 4] */
    978     MEM32(esi + 0x10) = 0; /* 0x38027779: mov dword ptr [esi + 0x10], 0 */
    979     MEM32(eax) = eax; /* 0x38027780: mov dword ptr [eax], eax */
    980     eax = MEM32(esi + 0x4); /* 0x38027782: mov eax, dword ptr [esi + 4] */
    981     MEM32(eax + 0x8) = eax; /* 0x38027785: mov dword ptr [eax + 8], eax */
    982     eax = ebp + (-0x8); /* 0x38027788: lea eax, [ebp - 8] */
    983     PUSH32(esp, eax); /* 0x3802778B: push eax */
    984     ecx = esi; /* 0x3802778C: mov ecx, esi */
    985     RECOMP_ICALL(0x380354C0u); /* 0x3802778E: call 0x380354c0 */ /* not lifted */
    986     RECOMP_FLAGS_IN();
    987     goto L_380277B6; /* 0x38027793: jmp 0x380277b6 */
    988 L_38027795:
    989     /* cmp eax, edi */ /* 0x38027795: cmp eax, edi */
    990     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    991     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    992     _flag_k = FK_CMP;
    993     if (CMP_EQ(_flag_a, _flag_b)) goto L_380277B6; /* 0x38027797: je 0x380277b6 */
    994 L_38027799:
    995     ecx = ebp + (-0x4); /* 0x38027799: lea ecx, [ebp - 4] */
    996     ebx = eax; /* 0x3802779C: mov ebx, eax */
    997     RECOMP_ICALL(0x38035590u); /* 0x3802779E: call 0x38035590 */ /* not lifted */
    998     RECOMP_FLAGS_IN();
    999     PUSH32(esp, ebx); /* 0x380277A3: push ebx */
   1000     ecx = ebp + (-0x8); /* 0x380277A4: lea ecx, [ebp - 8] */
   1001     PUSH32(esp, ecx); /* 0x380277A7: push ecx */
   1002     ecx = esi; /* 0x380277A8: mov ecx, esi */
   1003     RECOMP_ICALL(0x3800F9D0u); /* 0x380277AA: call 0x3800f9d0 */ /* not lifted */
   1004     RECOMP_FLAGS_IN();
   1005     eax = MEM32(ebp + (-0x4)); /* 0x380277AF: mov eax, dword ptr [ebp - 4] */
   1006     /* cmp eax, edi */ /* 0x380277B2: cmp eax, edi */
   1007     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1008     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1009     _flag_k = FK_CMP;
   1010     RECOMP_BACKEDGE();
   1011     if (CMP_NE(_flag_a, _flag_b)) goto L_38027799; /* 0x380277B4: jne 0x38027799 */
   1012 L_380277B6:
   1013     edx = MEM32(esi + 0x4); /* 0x380277B6: mov edx, dword ptr [esi + 4] */
   1014     PUSH32(esp, edx); /* 0x380277B9: push edx */
   1015     RECOMP_ICALL(0x3804B4F6u); /* 0x380277BA: call 0x3804b4f6 */ /* not lifted */
   1016     RECOMP_FLAGS_IN();
   1017     eax = MEM32(esi + 0x8); /* 0x380277BF: mov eax, dword ptr [esi + 8] */
   1018     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1019     edi = 0; /* 0x380277C2: xor edi, edi */
   1020     _cf = 0;
   1021     _flag_k = FK_TEST;
   1022     PUSH32(esp, eax); /* 0x380277C4: push eax */
   1023     MEM32(esi + 0x4) = edi; /* 0x380277C5: mov dword ptr [esi + 4], edi */
   1024     MEM32(esi + 0x10) = edi; /* 0x380277C8: mov dword ptr [esi + 0x10], edi */
   1025     RECOMP_ICALL(0x3804B4F6u); /* 0x380277CB: call 0x3804b4f6 */ /* not lifted */
   1026     RECOMP_FLAGS_IN();
   1027     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1028     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1029     esp = esp + 8; /* 0x380277D0: add esp, 8 */
   1030     _flag_k = FK_ADD;
   1031     MEM32(esi + 0x8) = edi; /* 0x380277D3: mov dword ptr [esi + 8], edi */
   1032     edi = POP32_VAL(esp); /* 0x380277D6: pop edi */
   1033     esi = POP32_VAL(esp); /* 0x380277D7: pop esi */
   1034     ebx = POP32_VAL(esp); /* 0x380277D8: pop ebx */
   1035     esp = ebp; /* 0x380277D9: mov esp, ebp */
   1036     ebp = POP32_VAL(esp); /* 0x380277DB: pop ebp */
   1037     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380277DC: ret  */
   1038     RECOMP_REGS_OUT();
   1039 }
   1040 
   1041 void sub_380277E0(void) {
   1042     int _fpu_cmp = 0;
   1043     uint32_t _cf = 0;
   1044     int _df = 1;
   1045     uint32_t _flag_k = FK_NONE;
   1046     uint32_t _flag_a = 0, _flag_b = 0;
   1047     uint32_t _itail_tgt = 0;
   1048     RECOMP_REGS_LOCALS
   1049     RECOMP_ENTER(0x380277E0u);
   1050 
   1051 L_380277E0:
   1052     PUSH32(esp, ebp); /* 0x380277E0: push ebp */
   1053     ebp = esp; /* 0x380277E1: mov ebp, esp */
   1054     eax = MEM32(ebp + 0x8); /* 0x380277E3: mov eax, dword ptr [ebp + 8] */
   1055     edx = MEM32(ebp + 0x10); /* 0x380277E6: mov edx, dword ptr [ebp + 0x10] */
   1056     MEM32(ecx) = eax; /* 0x380277E9: mov dword ptr [ecx], eax */
   1057     eax = MEM32(ebp + 0xC); /* 0x380277EB: mov eax, dword ptr [ebp + 0xc] */
   1058     MEM32(ecx + 0x4) = eax; /* 0x380277EE: mov dword ptr [ecx + 4], eax */
   1059     MEM32(ecx + 0x8) = edx; /* 0x380277F1: mov dword ptr [ecx + 8], edx */
   1060     edx = MEM32(0x3806ED8C); /* 0x380277F4: mov edx, dword ptr [0x3806ed8c] */
   1061     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1062     eax = 0; /* 0x380277FA: xor eax, eax */
   1063     _cf = 0;
   1064     _flag_k = FK_TEST;
   1065     /* test edx, edx */ /* 0x380277FC: test edx, edx */
   1066     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   1067     _cf = 0;
   1068     _flag_k = FK_TEST;
   1069     SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x380277FE: setne al */
   1070     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1071     eax = eax - 1; /* 0x38027801: dec eax */
   1072     _flag_k = FK_DEC;
   1073     ebp = POP32_VAL(esp); /* 0x38027802: pop ebp */
   1074     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x38027803: ret 0xc */
   1075     RECOMP_REGS_OUT();
   1076 }
   1077 
   1078 void sub_38027810(void) {
   1079     int _fpu_cmp = 0;
   1080     uint32_t _cf = 0;
   1081     int _df = 1;
   1082     uint32_t _flag_k = FK_NONE;
   1083     uint32_t _flag_a = 0, _flag_b = 0;
   1084     uint32_t _itail_tgt = 0;
   1085     RECOMP_REGS_LOCALS
   1086     RECOMP_ENTER(0x38027810u);
   1087 
   1088 L_38027810:
   1089     PUSH32(esp, ebp); /* 0x38027810: push ebp */
   1090     ebp = esp; /* 0x38027811: mov ebp, esp */
   1091     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1092     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1093     esp = esp - 8; /* 0x38027813: sub esp, 8 */
   1094     _flag_k = FK_CMP;
   1095     PUSH32(esp, ebx); /* 0x38027816: push ebx */
   1096     PUSH32(esp, esi); /* 0x38027817: push esi */
   1097     PUSH32(esp, edi); /* 0x38027818: push edi */
   1098     edi = ecx; /* 0x38027819: mov edi, ecx */
   1099     eax = MEM32(edi + 0xC); /* 0x3802781B: mov eax, dword ptr [edi + 0xc] */
   1100     eax = MEM32(eax + 0x4); /* 0x3802781E: mov eax, dword ptr [eax + 4] */
   1101     esi = MEM32(eax); /* 0x38027821: mov esi, dword ptr [eax] */
   1102     /* cmp esi, eax */ /* 0x38027823: cmp esi, eax */
   1103     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   1104     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1105     _flag_k = FK_CMP;
   1106     if (CMP_EQ(_flag_a, _flag_b)) goto L_38027877; /* 0x38027825: je 0x38027877 */
   1107 L_38027827:
   1108     ecx = MEM32(esi + 0x10); /* 0x38027827: mov ecx, dword ptr [esi + 0x10] */
   1109     /* test ecx, ecx */ /* 0x3802782A: test ecx, ecx */
   1110     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1111     _cf = 0;
   1112     _flag_k = FK_TEST;
   1113     if (TEST_Z(_flag_a, _flag_b)) goto L_38027834; /* 0x3802782C: je 0x38027834 */
   1114 L_3802782E:
   1115     edx = MEM32(ecx); /* 0x3802782E: mov edx, dword ptr [ecx] */
   1116     PUSH32(esp, 1); /* 0x38027830: push 1 */
   1117     RECOMP_ICALL(MEM32(edx)); /* 0x38027832: call dword ptr [edx] */
   1118     RECOMP_FLAGS_IN();
   1119 L_38027834:
   1120     eax = MEM32(esi + 0x8); /* 0x38027834: mov eax, dword ptr [esi + 8] */
   1121     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x38027837: mov cl, byte ptr [eax + 0x15] */
   1122     /* test LO8(ecx), LO8(ecx) */ /* 0x3802783A: test cl, cl */
   1123     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   1124     _cf = 0;
   1125     _flag_k = FK_NARROW(FK_TEST, 24);
   1126     if (TEST_NZ(_flag_a, _flag_b)) goto L_38027856; /* 0x3802783C: jne 0x38027856 */
   1127 L_3802783E:
   1128     esi = eax; /* 0x3802783E: mov esi, eax */
   1129     eax = MEM32(esi); /* 0x38027840: mov eax, dword ptr [esi] */
   1130     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x38027842: mov cl, byte ptr [eax + 0x15] */
   1131     /* test LO8(ecx), LO8(ecx) */ /* 0x38027845: test cl, cl */
   1132     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   1133     _cf = 0;
   1134     _flag_k = FK_NARROW(FK_TEST, 24);
   1135     if (TEST_NZ(_flag_a, _flag_b)) goto L_3802786F; /* 0x38027847: jne 0x3802786f */
   1136 L_38027849:
   1137     esi = eax; /* 0x38027849: mov esi, eax */
   1138     eax = MEM32(esi); /* 0x3802784B: mov eax, dword ptr [esi] */
   1139     SET_LO8(ecx, MEM8(eax + 0x15)); /* 0x3802784D: mov cl, byte ptr [eax + 0x15] */
   1140     /* test LO8(ecx), LO8(ecx) */ /* 0x38027850: test cl, cl */
   1141     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   1142     _cf = 0;
   1143     _flag_k = FK_NARROW(FK_TEST, 24);
   1144     RECOMP_BACKEDGE();
   1145     if (TEST_Z(_flag_a, _flag_b)) goto L_38027849; /* 0x38027852: je 0x38027849 */
   1146 L_38027854:
   1147     goto L_3802786F; /* 0x38027854: jmp 0x3802786f */
   1148 L_38027856:
   1149     eax = MEM32(esi + 0x4); /* 0x38027856: mov eax, dword ptr [esi + 4] */
   1150     /* cmp esi, MEM32(eax + 0x8) */ /* 0x38027859: cmp esi, dword ptr [eax + 8] */
   1151     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   1152     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1153     _flag_k = FK_CMP;
   1154     if (CMP_NE(_flag_a, _flag_b)) goto L_38027868; /* 0x3802785C: jne 0x38027868 */
   1155 L_3802785E:
   1156     esi = eax; /* 0x3802785E: mov esi, eax */
   1157     eax = MEM32(eax + 0x4); /* 0x38027860: mov eax, dword ptr [eax + 4] */
   1158     /* cmp esi, MEM32(eax + 0x8) */ /* 0x38027863: cmp esi, dword ptr [eax + 8] */
   1159     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x8));
   1160     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1161     _flag_k = FK_CMP;
   1162     RECOMP_BACKEDGE();
   1163     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802785E; /* 0x38027866: je 0x3802785e */
   1164 L_38027868:
   1165     /* cmp MEM32(esi + 0x8), eax */ /* 0x38027868: cmp dword ptr [esi + 8], eax */
   1166     _flag_a = (uint32_t)(MEM32(esi + 0x8)); _flag_b = (uint32_t)(eax);
   1167     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1168     _flag_k = FK_CMP;
   1169     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802786F; /* 0x3802786B: je 0x3802786f */
   1170 L_3802786D:
   1171     esi = eax; /* 0x3802786D: mov esi, eax */
   1172 L_3802786F:
   1173     eax = MEM32(edi + 0xC); /* 0x3802786F: mov eax, dword ptr [edi + 0xc] */
   1174     /* cmp esi, MEM32(eax + 0x4) */ /* 0x38027872: cmp esi, dword ptr [eax + 4] */
   1175     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(MEM32(eax + 0x4));
   1176     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1177     _flag_k = FK_CMP;
   1178     RECOMP_BACKEDGE();
   1179     if (CMP_NE(_flag_a, _flag_b)) goto L_38027827; /* 0x38027875: jne 0x38027827 */
   1180 L_38027877:
   1181     esi = MEM32(edi + 0xC); /* 0x38027877: mov esi, dword ptr [edi + 0xc] */
   1182     edi = MEM32(esi + 0x4); /* 0x3802787A: mov edi, dword ptr [esi + 4] */
   1183     ecx = MEM32(esi + 0x10); /* 0x3802787D: mov ecx, dword ptr [esi + 0x10] */
   1184     /* test ecx, ecx */ /* 0x38027880: test ecx, ecx */
   1185     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1186     _cf = 0;
   1187     _flag_k = FK_TEST;
   1188     eax = MEM32(edi); /* 0x38027882: mov eax, dword ptr [edi] */
   1189     MEM32(ebp + (-0x4)) = eax; /* 0x38027884: mov dword ptr [ebp - 4], eax */
   1190     if (TEST_Z(_flag_a, _flag_b)) goto L_380278DE; /* 0x38027887: je 0x380278de */
   1191 L_38027889:
   1192     ecx = eax; /* 0x38027889: mov ecx, eax */
   1193     /* cmp eax, ecx */ /* 0x3802788B: cmp eax, ecx */
   1194     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1195     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1196     _flag_k = FK_CMP;
   1197     if (CMP_NE(_flag_a, _flag_b)) goto L_380278DE; /* 0x3802788D: jne 0x380278de */
   1198 L_3802788F:
   1199     /* cmp edi, edi */ /* 0x3802788F: cmp edi, edi */
   1200     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1201     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1202     _flag_k = FK_CMP;
   1203     if (CMP_NE(_flag_a, _flag_b)) goto L_380278DE; /* 0x38027891: jne 0x380278de */
   1204 L_38027893:
   1205     ebx = MEM32(edi + 0x4); /* 0x38027893: mov ebx, dword ptr [edi + 4] */
   1206     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x38027896: cmp ebx, dword ptr [esi + 8] */
   1207     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1208     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1209     _flag_k = FK_CMP;
   1210     edi = ebx; /* 0x38027899: mov edi, ebx */
   1211     if (CMP_EQ(_flag_a, _flag_b)) goto L_380278BC; /* 0x3802789B: je 0x380278bc */
   1212 L_3802789D:
   1213     ecx = MEM32(edi + 0x8); /* 0x3802789D: mov ecx, dword ptr [edi + 8] */
   1214     PUSH32(esp, ecx); /* 0x380278A0: push ecx */
   1215     ecx = esi; /* 0x380278A1: mov ecx, esi */
   1216     RECOMP_ICALL(0x38027D30u); /* 0x380278A3: call 0x38027d30 */ /* not lifted */
   1217     RECOMP_FLAGS_IN();
   1218     edi = MEM32(edi); /* 0x380278A8: mov edi, dword ptr [edi] */
   1219     PUSH32(esp, ebx); /* 0x380278AA: push ebx */
   1220     RECOMP_ICALL(0x3804B4F6u); /* 0x380278AB: call 0x3804b4f6 */ /* not lifted */
   1221     RECOMP_FLAGS_IN();
   1222     eax = MEM32(esi + 0x8); /* 0x380278B0: mov eax, dword ptr [esi + 8] */
   1223     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1224     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1225     esp = esp + 4; /* 0x380278B3: add esp, 4 */
   1226     _flag_k = FK_ADD;
   1227     /* cmp edi, eax */ /* 0x380278B6: cmp edi, eax */
   1228     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1229     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1230     _flag_k = FK_CMP;
   1231     ebx = edi; /* 0x380278B8: mov ebx, edi */
   1232     RECOMP_BACKEDGE();
   1233     if (CMP_NE(_flag_a, _flag_b)) goto L_3802789D; /* 0x380278BA: jne 0x3802789d */
   1234 L_380278BC:
   1235     eax = MEM32(esi + 0x8); /* 0x380278BC: mov eax, dword ptr [esi + 8] */
   1236     edx = MEM32(esi + 0x4); /* 0x380278BF: mov edx, dword ptr [esi + 4] */
   1237     MEM32(edx + 0x4) = eax; /* 0x380278C2: mov dword ptr [edx + 4], eax */
   1238     eax = MEM32(esi + 0x4); /* 0x380278C5: mov eax, dword ptr [esi + 4] */
   1239     MEM32(esi + 0x10) = 0; /* 0x380278C8: mov dword ptr [esi + 0x10], 0 */
   1240     MEM32(eax) = eax; /* 0x380278CF: mov dword ptr [eax], eax */
   1241     esi = MEM32(esi + 0x4); /* 0x380278D1: mov esi, dword ptr [esi + 4] */
   1242     edi = POP32_VAL(esp); /* 0x380278D4: pop edi */
   1243     MEM32(esi + 0x8) = esi; /* 0x380278D5: mov dword ptr [esi + 8], esi */
   1244     esi = POP32_VAL(esp); /* 0x380278D8: pop esi */
   1245     ebx = POP32_VAL(esp); /* 0x380278D9: pop ebx */
   1246     esp = ebp; /* 0x380278DA: mov esp, ebp */
   1247     ebp = POP32_VAL(esp); /* 0x380278DC: pop ebp */
   1248     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380278DD: ret  */
   1249 L_380278DE:
   1250     /* cmp eax, edi */ /* 0x380278DE: cmp eax, edi */
   1251     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1252     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1253     _flag_k = FK_CMP;
   1254     if (CMP_EQ(_flag_a, _flag_b)) goto L_380278FF; /* 0x380278E0: je 0x380278ff */
   1255 L_380278E2:
   1256     ecx = ebp + (-0x4); /* 0x380278E2: lea ecx, [ebp - 4] */
   1257     ebx = eax; /* 0x380278E5: mov ebx, eax */
   1258     RECOMP_ICALL(0x38035590u); /* 0x380278E7: call 0x38035590 */ /* not lifted */
   1259     RECOMP_FLAGS_IN();
   1260     PUSH32(esp, ebx); /* 0x380278EC: push ebx */
   1261     ecx = ebp + (-0x8); /* 0x380278ED: lea ecx, [ebp - 8] */
   1262     PUSH32(esp, ecx); /* 0x380278F0: push ecx */
   1263     ecx = esi; /* 0x380278F1: mov ecx, esi */
   1264     RECOMP_ICALL(0x3800F9D0u); /* 0x380278F3: call 0x3800f9d0 */ /* not lifted */
   1265     RECOMP_FLAGS_IN();
   1266     eax = MEM32(ebp + (-0x4)); /* 0x380278F8: mov eax, dword ptr [ebp - 4] */
   1267     /* cmp eax, edi */ /* 0x380278FB: cmp eax, edi */
   1268     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1269     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1270     _flag_k = FK_CMP;
   1271     RECOMP_BACKEDGE();
   1272     if (CMP_NE(_flag_a, _flag_b)) goto L_380278E2; /* 0x380278FD: jne 0x380278e2 */
   1273 L_380278FF:
   1274     edi = POP32_VAL(esp); /* 0x380278FF: pop edi */
   1275     esi = POP32_VAL(esp); /* 0x38027900: pop esi */
   1276     ebx = POP32_VAL(esp); /* 0x38027901: pop ebx */
   1277     esp = ebp; /* 0x38027902: mov esp, ebp */
   1278     ebp = POP32_VAL(esp); /* 0x38027904: pop ebp */
   1279     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38027905: ret  */
   1280     RECOMP_REGS_OUT();
   1281 }
   1282 
   1283 void sub_38027910(void) {
   1284     int _fpu_cmp = 0;
   1285     uint32_t _cf = 0;
   1286     int _df = 1;
   1287     uint32_t _flag_k = FK_NONE;
   1288     uint32_t _flag_a = 0, _flag_b = 0;
   1289     uint32_t _itail_tgt = 0;
   1290     RECOMP_REGS_LOCALS
   1291     RECOMP_ENTER(0x38027910u);
   1292 
   1293 L_38027910:
   1294     PUSH32(esp, ebp); /* 0x38027910: push ebp */
   1295     ebp = esp; /* 0x38027911: mov ebp, esp */
   1296     PUSH32(esp, 0xFFFFFFFFu); /* 0x38027913: push -1 */
   1297     PUSH32(esp, 0x3804C86Bu); /* 0x38027915: push 0x3804c86b */
   1298     eax = MEM32(FS_BASE + (0)); /* 0x3802791A: mov eax, dword ptr fs:[0] */
   1299     PUSH32(esp, eax); /* 0x38027920: push eax */
   1300     MEM32(FS_BASE + (0)) = esp; /* 0x38027921: mov dword ptr fs:[0], esp */
   1301     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   1302     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1303     esp = esp - 0x18u; /* 0x38027928: sub esp, 0x18 */
   1304     _flag_k = FK_CMP;
   1305     ecx = MEM32(0x3806ED8C); /* 0x3802792B: mov ecx, dword ptr [0x3806ed8c] */
   1306     PUSH32(esp, ebx); /* 0x38027931: push ebx */
   1307     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1308     ebx = 0; /* 0x38027932: xor ebx, ebx */
   1309     _cf = 0;
   1310     _flag_k = FK_TEST;
   1311     /* cmp ecx, ebx */ /* 0x38027934: cmp ecx, ebx */
   1312     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   1313     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1314     _flag_k = FK_CMP;
   1315     if (CMP_NE(_flag_a, _flag_b)) goto L_380279BE; /* 0x38027936: jne 0x380279be */
   1316 L_3802793C:
   1317     PUSH32(esp, esi); /* 0x3802793C: push esi */
   1318     PUSH32(esp, 0x14u); /* 0x3802793D: push 0x14 */
   1319     RECOMP_ICALL(0x3804B676u); /* 0x3802793F: call 0x3804b676 */ /* not lifted */
   1320     RECOMP_FLAGS_IN();
   1321     esi = eax; /* 0x38027944: mov esi, eax */
   1322     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1323     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1324     esp = esp + 4; /* 0x38027946: add esp, 4 */
   1325     _flag_k = FK_ADD;
   1326     MEM32(ebp + (-0x10)) = esi; /* 0x38027949: mov dword ptr [ebp - 0x10], esi */
   1327     /* cmp esi, ebx */ /* 0x3802794C: cmp esi, ebx */
   1328     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   1329     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1330     _flag_k = FK_CMP;
   1331     MEM32(ebp + (-0x4)) = ebx; /* 0x3802794E: mov dword ptr [ebp - 4], ebx */
   1332     if (CMP_EQ(_flag_a, _flag_b)) goto L_380279AC; /* 0x38027951: je 0x380279ac */
   1333 L_38027953:
   1334     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x38027953: mov al, byte ptr [ebp + 0xb] */
   1335     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x38027956: mov cl, byte ptr [ebp + 0xb] */
   1336     PUSH32(esp, edi); /* 0x38027959: push edi */
   1337     PUSH32(esp, 0x18u); /* 0x3802795A: push 0x18 */
   1338     MEM8(esi) = (uint8_t)(LO8(eax)); /* 0x3802795C: mov byte ptr [esi], al */
   1339     MEM8(esi + 0x1) = (uint8_t)(LO8(ecx)); /* 0x3802795E: mov byte ptr [esi + 1], cl */
   1340     MEM8(esi + 0xC) = (uint8_t)(LO8(ebx)); /* 0x38027961: mov byte ptr [esi + 0xc], bl */
   1341     RECOMP_ICALL(0x3804B676u); /* 0x38027964: call 0x3804b676 */ /* not lifted */
   1342     RECOMP_FLAGS_IN();
   1343     MEM32(eax + 0x4) = ebx; /* 0x38027969: mov dword ptr [eax + 4], ebx */
   1344     MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x3802796C: mov byte ptr [eax + 0x15], bl */
   1345     SET_LO8(ecx, 1); /* 0x3802796F: mov cl, 1 */
   1346     MEM8(eax + 0x14) = (uint8_t)(LO8(ecx)); /* 0x38027971: mov byte ptr [eax + 0x14], cl */
   1347     MEM32(esi + 0x8) = eax; /* 0x38027974: mov dword ptr [esi + 8], eax */
   1348     MEM8(eax + 0x15) = (uint8_t)(LO8(ecx)); /* 0x38027977: mov byte ptr [eax + 0x15], cl */
   1349     eax = MEM32(esi + 0x8); /* 0x3802797A: mov eax, dword ptr [esi + 8] */
   1350     MEM32(eax) = ebx; /* 0x3802797D: mov dword ptr [eax], ebx */
   1351     edx = MEM32(esi + 0x8); /* 0x3802797F: mov edx, dword ptr [esi + 8] */
   1352     MEM32(edx + 0x8) = ebx; /* 0x38027982: mov dword ptr [edx + 8], ebx */
   1353     edi = MEM32(esi + 0x8); /* 0x38027985: mov edi, dword ptr [esi + 8] */
   1354     PUSH32(esp, 0x18u); /* 0x38027988: push 0x18 */
   1355     RECOMP_ICALL(0x3804B676u); /* 0x3802798A: call 0x3804b676 */ /* not lifted */
   1356     RECOMP_FLAGS_IN();
   1357     MEM32(eax + 0x4) = edi; /* 0x3802798F: mov dword ptr [eax + 4], edi */
   1358     MEM8(eax + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38027992: mov byte ptr [eax + 0x14], bl */
   1359     MEM8(eax + 0x15) = (uint8_t)(LO8(ebx)); /* 0x38027995: mov byte ptr [eax + 0x15], bl */
   1360     MEM32(esi + 0x4) = eax; /* 0x38027998: mov dword ptr [esi + 4], eax */
   1361     MEM32(eax) = eax; /* 0x3802799B: mov dword ptr [eax], eax */
   1362     eax = MEM32(esi + 0x4); /* 0x3802799D: mov eax, dword ptr [esi + 4] */
   1363     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1364     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1365     esp = esp + 8; /* 0x380279A0: add esp, 8 */
   1366     _flag_k = FK_ADD;
   1367     MEM32(eax + 0x8) = eax; /* 0x380279A3: mov dword ptr [eax + 8], eax */
   1368     MEM32(esi + 0x10) = ebx; /* 0x380279A6: mov dword ptr [esi + 0x10], ebx */
   1369     edi = POP32_VAL(esp); /* 0x380279A9: pop edi */
   1370     goto L_380279AE; /* 0x380279AA: jmp 0x380279ae */
   1371 L_380279AC:
   1372     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1373     esi = 0; /* 0x380279AC: xor esi, esi */
   1374     _cf = 0;
   1375     _flag_k = FK_TEST;
   1376 L_380279AE:
   1377     ecx = esi; /* 0x380279AE: mov ecx, esi */
   1378     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380279B0: mov dword ptr [ebp - 4], 0xffffffff */
   1379     MEM32(0x3806ED8C) = ecx; /* 0x380279B7: mov dword ptr [0x3806ed8c], ecx */
   1380     esi = POP32_VAL(esp); /* 0x380279BD: pop esi */
   1381 L_380279BE:
   1382     eax = MEM32(ebp + 0x8); /* 0x380279BE: mov eax, dword ptr [ebp + 8] */
   1383     edx = ebp + (-0x14); /* 0x380279C1: lea edx, [ebp - 0x14] */
   1384     MEM32(ebp + (-0x14)) = eax; /* 0x380279C4: mov dword ptr [ebp - 0x14], eax */
   1385     PUSH32(esp, edx); /* 0x380279C7: push edx */
   1386     eax = ebp + (-0x1C); /* 0x380279C8: lea eax, [ebp - 0x1c] */
   1387     PUSH32(esp, eax); /* 0x380279CB: push eax */
   1388     MEM32(ebp + (-0x10)) = ebx; /* 0x380279CC: mov dword ptr [ebp - 0x10], ebx */
   1389     RECOMP_ICALL(0x3802DA60u); /* 0x380279CF: call 0x3802da60 */ /* not lifted */
   1390     RECOMP_FLAGS_IN();
   1391     ecx = eax; /* 0x380279D4: mov ecx, eax */
   1392     eax = MEM32(ecx); /* 0x380279D6: mov eax, dword ptr [ecx] */
   1393     edx = MEM32(ecx + 0x4); /* 0x380279D8: mov edx, dword ptr [ecx + 4] */
   1394     ecx = MEM32(ebp + 0xC); /* 0x380279DB: mov ecx, dword ptr [ebp + 0xc] */
   1395     MEM32(eax + 0x10) = ecx; /* 0x380279DE: mov dword ptr [eax + 0x10], ecx */
   1396     ecx = MEM32(ebp + (-0xC)); /* 0x380279E1: mov ecx, dword ptr [ebp - 0xc] */
   1397     MEM32(ebp + (-0x20)) = edx; /* 0x380279E4: mov dword ptr [ebp - 0x20], edx */
   1398     ebx = POP32_VAL(esp); /* 0x380279E7: pop ebx */
   1399     MEM32(FS_BASE + (0)) = ecx; /* 0x380279E8: mov dword ptr fs:[0], ecx */
   1400     esp = ebp; /* 0x380279EF: mov esp, ebp */
   1401     ebp = POP32_VAL(esp); /* 0x380279F1: pop ebp */
   1402     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380279F2: ret  */
   1403     RECOMP_REGS_OUT();
   1404 }
   1405 
   1406 void sub_38027A00(void) {
   1407     int _fpu_cmp = 0;
   1408     uint32_t _cf = 0;
   1409     int _df = 1;
   1410     uint32_t _flag_k = FK_NONE;
   1411     uint32_t _flag_a = 0, _flag_b = 0;
   1412     uint32_t _itail_tgt = 0;
   1413     RECOMP_REGS_LOCALS
   1414     RECOMP_ENTER(0x38027A00u);
   1415 
   1416 L_38027A00:
   1417     PUSH32(esp, ebp); /* 0x38027A00: push ebp */
   1418     ebp = esp; /* 0x38027A01: mov ebp, esp */
   1419     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1420     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1421     esp = esp - 0x14u; /* 0x38027A03: sub esp, 0x14 */
   1422     _flag_k = FK_CMP;
   1423     eax = MEM32(0x3806ED8C); /* 0x38027A06: mov eax, dword ptr [0x3806ed8c] */
   1424     /* test eax, eax */ /* 0x38027A0B: test eax, eax */
   1425     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1426     _cf = 0;
   1427     _flag_k = FK_TEST;
   1428     PUSH32(esp, ebx); /* 0x38027A0D: push ebx */
   1429     PUSH32(esp, esi); /* 0x38027A0E: push esi */
   1430     PUSH32(esp, edi); /* 0x38027A0F: push edi */
   1431     edi = ecx; /* 0x38027A10: mov edi, ecx */
   1432     if (TEST_NZ(_flag_a, _flag_b)) goto L_38027A1F; /* 0x38027A12: jne 0x38027a1f */
   1433 L_38027A14:
   1434     edi = POP32_VAL(esp); /* 0x38027A14: pop edi */
   1435     esi = POP32_VAL(esp); /* 0x38027A15: pop esi */
   1436     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1437     eax = 0; /* 0x38027A16: xor eax, eax */
   1438     _cf = 0;
   1439     _flag_k = FK_TEST;
   1440     ebx = POP32_VAL(esp); /* 0x38027A18: pop ebx */
   1441     esp = ebp; /* 0x38027A19: mov esp, ebp */
   1442     ebp = POP32_VAL(esp); /* 0x38027A1B: pop ebp */
   1443     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x38027A1C: ret 0xc */
   1444 L_38027A1F:
   1445     esi = MEM32(edi + 0xC); /* 0x38027A1F: mov esi, dword ptr [edi + 0xc] */
   1446     /* test esi, esi */ /* 0x38027A22: test esi, esi */
   1447     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1448     _cf = 0;
   1449     _flag_k = FK_TEST;
   1450     if (TEST_NZ(_flag_a, _flag_b)) goto L_38027A31; /* 0x38027A24: jne 0x38027a31 */
   1451 L_38027A26:
   1452     edi = POP32_VAL(esp); /* 0x38027A26: pop edi */
   1453     esi = POP32_VAL(esp); /* 0x38027A27: pop esi */
   1454     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1455     eax = 0; /* 0x38027A28: xor eax, eax */
   1456     _cf = 0;
   1457     _flag_k = FK_TEST;
   1458     ebx = POP32_VAL(esp); /* 0x38027A2A: pop ebx */
   1459     esp = ebp; /* 0x38027A2B: mov esp, ebp */
   1460     ebp = POP32_VAL(esp); /* 0x38027A2D: pop ebp */
   1461     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x38027A2E: ret 0xc */
   1462 L_38027A31:
   1463     ecx = MEM32(ebp + 0xC); /* 0x38027A31: mov ecx, dword ptr [ebp + 0xc] */
   1464     eax = MEM32(ecx); /* 0x38027A34: mov eax, dword ptr [ecx] */
   1465     /* test eax, eax */ /* 0x38027A36: test eax, eax */
   1466     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1467     _cf = 0;
   1468     _flag_k = FK_TEST;
   1469     if (TEST_NZ(_flag_a, _flag_b)) goto L_38027A4E; /* 0x38027A38: jne 0x38027a4e */
   1470 L_38027A3A:
   1471     edx = MEM32(ecx + 0x4); /* 0x38027A3A: mov edx, dword ptr [ecx + 4] */
   1472     /* test edx, edx */ /* 0x38027A3D: test edx, edx */
   1473     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   1474     _cf = 0;
   1475     _flag_k = FK_TEST;
   1476     if (TEST_Z(_flag_a, _flag_b)) goto L_38027A4E; /* 0x38027A3F: je 0x38027a4e */
   1477 L_38027A41:
   1478     /* test eax, eax */ /* 0x38027A41: test eax, eax */
   1479     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1480     _cf = 0;
   1481     _flag_k = FK_TEST;
   1482     if (TEST_NZ(_flag_a, _flag_b)) goto L_38027A4E; /* 0x38027A43: jne 0x38027a4e */
   1483 L_38027A45:
   1484     edi = POP32_VAL(esp); /* 0x38027A45: pop edi */
   1485     esi = POP32_VAL(esp); /* 0x38027A46: pop esi */
   1486     ebx = POP32_VAL(esp); /* 0x38027A47: pop ebx */
   1487     esp = ebp; /* 0x38027A48: mov esp, ebp */
   1488     ebp = POP32_VAL(esp); /* 0x38027A4A: pop ebp */
   1489     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x38027A4B: ret 0xc */
   1490 L_38027A4E:
   1491     eax = MEM32(edi + 0x4); /* 0x38027A4E: mov eax, dword ptr [edi + 4] */
   1492     /* test eax, eax */ /* 0x38027A51: test eax, eax */
   1493     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1494     _cf = 0;
   1495     _flag_k = FK_TEST;
   1496     if (TEST_NZ(_flag_a, _flag_b)) goto L_38027A60; /* 0x38027A53: jne 0x38027a60 */
   1497 L_38027A55:
   1498     edi = POP32_VAL(esp); /* 0x38027A55: pop edi */
   1499     esi = POP32_VAL(esp); /* 0x38027A56: pop esi */
   1500     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1501     eax = 0; /* 0x38027A57: xor eax, eax */
   1502     _cf = 0;
   1503     _flag_k = FK_TEST;
   1504     ebx = POP32_VAL(esp); /* 0x38027A59: pop ebx */
   1505     esp = ebp; /* 0x38027A5A: mov esp, ebp */
   1506     ebp = POP32_VAL(esp); /* 0x38027A5C: pop ebp */
   1507     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x38027A5D: ret 0xc */
   1508 L_38027A60:
   1509     eax = MEM32(ebp + 0x8); /* 0x38027A60: mov eax, dword ptr [ebp + 8] */
   1510     ecx = ebp + 0x8; /* 0x38027A63: lea ecx, [ebp + 8] */
   1511     PUSH32(esp, ecx); /* 0x38027A66: push ecx */
   1512     edx = ebp + (-0xC); /* 0x38027A67: lea edx, [ebp - 0xc] */
   1513     PUSH32(esp, edx); /* 0x38027A6A: push edx */
   1514     ecx = esi; /* 0x38027A6B: mov ecx, esi */
   1515     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1516     ebx = 0; /* 0x38027A6D: xor ebx, ebx */
   1517     _cf = 0;
   1518     _flag_k = FK_TEST;
   1519     MEM32(ebp + (-0x14)) = 0x000F4254u; /* 0x38027A6F: mov dword ptr [ebp - 0x14], 0xf4254 */
   1520     MEM32(ebp + (-0x10)) = eax; /* 0x38027A76: mov dword ptr [ebp - 0x10], eax */
   1521     RECOMP_ICALL(0x38027CF0u); /* 0x38027A79: call 0x38027cf0 */ /* not lifted */
   1522     RECOMP_FLAGS_IN();
   1523     eax = MEM32(eax); /* 0x38027A7E: mov eax, dword ptr [eax] */
   1524     ecx = MEM32(esi + 0x4); /* 0x38027A80: mov ecx, dword ptr [esi + 4] */
   1525     /* cmp eax, ecx */ /* 0x38027A83: cmp eax, ecx */
   1526     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1527     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1528     _flag_k = FK_CMP;
   1529     MEM32(ebp + (-0x4)) = eax; /* 0x38027A85: mov dword ptr [ebp - 4], eax */
   1530     if (CMP_EQ(_flag_a, _flag_b)) goto L_38027A97; /* 0x38027A88: je 0x38027a97 */
   1531 L_38027A8A:
   1532     edx = MEM32(ebp + 0x8); /* 0x38027A8A: mov edx, dword ptr [ebp + 8] */
   1533     /* cmp edx, MEM32(eax + 0xC) */ /* 0x38027A8D: cmp edx, dword ptr [eax + 0xc] */
   1534     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax + 0xC));
   1535     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1536     _flag_k = FK_CMP;
   1537     if (CMP_B(_flag_a, _flag_b)) goto L_38027A97; /* 0x38027A90: jb 0x38027a97 */
   1538 L_38027A92:
   1539     eax = ebp + (-0x4); /* 0x38027A92: lea eax, [ebp - 4] */
   1540     goto L_38027A9D; /* 0x38027A95: jmp 0x38027a9d */
   1541 L_38027A97:
   1542     MEM32(ebp + (-0x8)) = ecx; /* 0x38027A97: mov dword ptr [ebp - 8], ecx */
   1543     eax = ebp + (-0x8); /* 0x38027A9A: lea eax, [ebp - 8] */
   1544 L_38027A9D:
   1545     ecx = MEM32(edi + 0xC); /* 0x38027A9D: mov ecx, dword ptr [edi + 0xc] */
   1546     eax = MEM32(eax); /* 0x38027AA0: mov eax, dword ptr [eax] */
   1547     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38027AA2: cmp eax, dword ptr [ecx + 4] */
   1548     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   1549     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1550     _flag_k = FK_CMP;
   1551     if (CMP_NE(_flag_a, _flag_b)) goto L_38027AB6; /* 0x38027AA5: jne 0x38027ab6 */
   1552 L_38027AA7:
   1553     edx = ebp + (-0x14); /* 0x38027AA7: lea edx, [ebp - 0x14] */
   1554     PUSH32(esp, edx); /* 0x38027AAA: push edx */
   1555     ecx = edi; /* 0x38027AAB: mov ecx, edi */
   1556     RECOMP_ICALL(0x38027B00u); /* 0x38027AAD: call 0x38027b00 */ /* not lifted */
   1557     RECOMP_FLAGS_IN();
   1558     esi = eax; /* 0x38027AB2: mov esi, eax */
   1559     goto L_38027AB9; /* 0x38027AB4: jmp 0x38027ab9 */
   1560 L_38027AB6:
   1561     esi = MEM32(eax + 0x10); /* 0x38027AB6: mov esi, dword ptr [eax + 0x10] */
   1562 L_38027AB9:
   1563     /* test esi, esi */ /* 0x38027AB9: test esi, esi */
   1564     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1565     _cf = 0;
   1566     _flag_k = FK_TEST;
   1567     if (TEST_Z(_flag_a, _flag_b)) goto L_38027AF2; /* 0x38027ABB: je 0x38027af2 */
   1568 L_38027ABD:
   1569     ebx = MEM32(ebp + 0xC); /* 0x38027ABD: mov ebx, dword ptr [ebp + 0xc] */
   1570     eax = MEM32(ebx + 0x4); /* 0x38027AC0: mov eax, dword ptr [ebx + 4] */
   1571     /* test eax, eax */ /* 0x38027AC3: test eax, eax */
   1572     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1573     _cf = 0;
   1574     _flag_k = FK_TEST;
   1575     if (TEST_Z(_flag_a, _flag_b)) goto L_38027ADF; /* 0x38027AC5: je 0x38027adf */
   1576 L_38027AC7:
   1577     eax = MEM32(esi); /* 0x38027AC7: mov eax, dword ptr [esi] */
   1578     edi = MEM32(ebx); /* 0x38027AC9: mov edi, dword ptr [ebx] */
   1579     ecx = esi; /* 0x38027ACB: mov ecx, esi */
   1580     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x38027ACD: call dword ptr [eax + 8] */
   1581     RECOMP_FLAGS_IN();
   1582     /* cmp edi, eax */ /* 0x38027AD0: cmp edi, eax */
   1583     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1584     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1585     _flag_k = FK_CMP;
   1586     if (CMP_EQ(_flag_a, _flag_b)) goto L_38027ADF; /* 0x38027AD2: je 0x38027adf */
   1587 L_38027AD4:
   1588     edi = POP32_VAL(esp); /* 0x38027AD4: pop edi */
   1589     esi = POP32_VAL(esp); /* 0x38027AD5: pop esi */
   1590     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1591     eax = 0; /* 0x38027AD6: xor eax, eax */
   1592     _cf = 0;
   1593     _flag_k = FK_TEST;
   1594     ebx = POP32_VAL(esp); /* 0x38027AD8: pop ebx */
   1595     esp = ebp; /* 0x38027AD9: mov esp, ebp */
   1596     ebp = POP32_VAL(esp); /* 0x38027ADB: pop ebp */
   1597     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x38027ADC: ret 0xc */
   1598 L_38027ADF:
   1599     ecx = MEM32(ebp + 0x10); /* 0x38027ADF: mov ecx, dword ptr [ebp + 0x10] */
   1600     eax = MEM32(ebx + 0x4); /* 0x38027AE2: mov eax, dword ptr [ebx + 4] */
   1601     PUSH32(esp, ecx); /* 0x38027AE5: push ecx */
   1602     PUSH32(esp, eax); /* 0x38027AE6: push eax */
   1603     PUSH32(esp, esi); /* 0x38027AE7: push esi */
   1604     RECOMP_ICALL(0x38017880u); /* 0x38027AE8: call 0x38017880 */ /* not lifted */
   1605     RECOMP_FLAGS_IN();
   1606     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1607     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1608     esp = esp + 0xCu; /* 0x38027AED: add esp, 0xc */
   1609     _flag_k = FK_ADD;
   1610     ebx = eax; /* 0x38027AF0: mov ebx, eax */
   1611 L_38027AF2:
   1612     edi = POP32_VAL(esp); /* 0x38027AF2: pop edi */
   1613     esi = POP32_VAL(esp); /* 0x38027AF3: pop esi */
   1614     eax = ebx; /* 0x38027AF4: mov eax, ebx */
   1615     ebx = POP32_VAL(esp); /* 0x38027AF6: pop ebx */
   1616     esp = ebp; /* 0x38027AF7: mov esp, ebp */
   1617     ebp = POP32_VAL(esp); /* 0x38027AF9: pop ebp */
   1618     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x38027AFA: ret 0xc */
   1619     RECOMP_REGS_OUT();
   1620 }
   1621 
   1622 void sub_38027B00(void) {
   1623     int _fpu_cmp = 0;
   1624     uint32_t _cf = 0;
   1625     int _df = 1;
   1626     uint32_t _flag_k = FK_NONE;
   1627     uint32_t _flag_a = 0, _flag_b = 0;
   1628     uint32_t _itail_tgt = 0;
   1629     RECOMP_REGS_LOCALS
   1630     RECOMP_ENTER(0x38027B00u);
   1631 
   1632 L_38027B00:
   1633     PUSH32(esp, ebp); /* 0x38027B00: push ebp */
   1634     ebp = esp; /* 0x38027B01: mov ebp, esp */
   1635     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x38u);
   1636     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1637     esp = esp - 0x38u; /* 0x38027B03: sub esp, 0x38 */
   1638     _flag_k = FK_CMP;
   1639     PUSH32(esp, ebx); /* 0x38027B06: push ebx */
   1640     ebx = MEM32(ebp + 0x8); /* 0x38027B07: mov ebx, dword ptr [ebp + 8] */
   1641     PUSH32(esp, esi); /* 0x38027B0A: push esi */
   1642     PUSH32(esp, edi); /* 0x38027B0B: push edi */
   1643     MEM32(ebp + (-0x8)) = ecx; /* 0x38027B0C: mov dword ptr [ebp - 8], ecx */
   1644     ecx = MEM32(ecx + 0x4); /* 0x38027B0F: mov ecx, dword ptr [ecx + 4] */
   1645     PUSH32(esp, ebx); /* 0x38027B12: push ebx */
   1646     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1647     esi = 0; /* 0x38027B13: xor esi, esi */
   1648     _cf = 0;
   1649     _flag_k = FK_TEST;
   1650     RECOMP_ICALL(MEM32(0x3804E448)); /* 0x38027B15: call dword ptr [0x3804e448] */
   1651     RECOMP_FLAGS_IN();
   1652     edi = eax; /* 0x38027B1B: mov edi, eax */
   1653     /* test edi, edi */ /* 0x38027B1D: test edi, edi */
   1654     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1655     _cf = 0;
   1656     _flag_k = FK_TEST;
   1657     if (TEST_NZ(_flag_a, _flag_b)) goto L_38027B2A; /* 0x38027B1F: jne 0x38027b2a */
   1658 L_38027B21:
   1659     edi = POP32_VAL(esp); /* 0x38027B21: pop edi */
   1660     esi = POP32_VAL(esp); /* 0x38027B22: pop esi */
   1661     ebx = POP32_VAL(esp); /* 0x38027B23: pop ebx */
   1662     esp = ebp; /* 0x38027B24: mov esp, ebp */
   1663     ebp = POP32_VAL(esp); /* 0x38027B26: pop ebp */
   1664     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38027B27: ret 4 */
   1665 L_38027B2A:
   1666     eax = ebp + 0x8; /* 0x38027B2A: lea eax, [ebp + 8] */
   1667     PUSH32(esp, eax); /* 0x38027B2D: push eax */
   1668     ecx = edi; /* 0x38027B2E: mov ecx, edi */
   1669     MEM32(ebp + 0x8) = 0; /* 0x38027B30: mov dword ptr [ebp + 8], 0 */
   1670     RECOMP_ICALL(MEM32(0x3804E388)); /* 0x38027B37: call dword ptr [0x3804e388] */
   1671     RECOMP_FLAGS_IN();
   1672     eax = MEM32(ebp + 0x8); /* 0x38027B3D: mov eax, dword ptr [ebp + 8] */
   1673     /* test eax, eax */ /* 0x38027B40: test eax, eax */
   1674     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1675     _cf = 0;
   1676     _flag_k = FK_TEST;
   1677     MEM32(ebp + (-0x4)) = eax; /* 0x38027B42: mov dword ptr [ebp - 4], eax */
   1678     if (TEST_NZ(_flag_a, _flag_b)) goto L_38027B50; /* 0x38027B45: jne 0x38027b50 */
   1679 L_38027B47:
   1680     edi = POP32_VAL(esp); /* 0x38027B47: pop edi */
   1681     esi = POP32_VAL(esp); /* 0x38027B48: pop esi */
   1682     ebx = POP32_VAL(esp); /* 0x38027B49: pop ebx */
   1683     esp = ebp; /* 0x38027B4A: mov esp, ebp */
   1684     ebp = POP32_VAL(esp); /* 0x38027B4C: pop ebp */
   1685     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38027B4D: ret 4 */
   1686 L_38027B50:
   1687     ecx = MEM32(0x3806ED8C); /* 0x38027B50: mov ecx, dword ptr [0x3806ed8c] */
   1688     /* test ecx, ecx */ /* 0x38027B56: test ecx, ecx */
   1689     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1690     _cf = 0;
   1691     _flag_k = FK_TEST;
   1692     if (TEST_NZ(_flag_a, _flag_b)) goto L_38027B65; /* 0x38027B58: jne 0x38027b65 */
   1693 L_38027B5A:
   1694     edi = POP32_VAL(esp); /* 0x38027B5A: pop edi */
   1695     esi = POP32_VAL(esp); /* 0x38027B5B: pop esi */
   1696     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1697     eax = 0; /* 0x38027B5C: xor eax, eax */
   1698     _cf = 0;
   1699     _flag_k = FK_TEST;
   1700     ebx = POP32_VAL(esp); /* 0x38027B5E: pop ebx */
   1701     esp = ebp; /* 0x38027B5F: mov esp, ebp */
   1702     ebp = POP32_VAL(esp); /* 0x38027B61: pop ebp */
   1703     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38027B62: ret 4 */
   1704 L_38027B65:
   1705     edx = ebp + (-0x4); /* 0x38027B65: lea edx, [ebp - 4] */
   1706     PUSH32(esp, edx); /* 0x38027B68: push edx */
   1707     eax = ebp + (-0xC); /* 0x38027B69: lea eax, [ebp - 0xc] */
   1708     PUSH32(esp, eax); /* 0x38027B6C: push eax */
   1709     RECOMP_ICALL(0x38027C40u); /* 0x38027B6D: call 0x38027c40 */ /* not lifted */
   1710     RECOMP_FLAGS_IN();
   1711     ecx = MEM32(0x3806ED8C); /* 0x38027B72: mov ecx, dword ptr [0x3806ed8c] */
   1712     eax = MEM32(eax); /* 0x38027B78: mov eax, dword ptr [eax] */
   1713     /* cmp eax, MEM32(ecx + 0x4) */ /* 0x38027B7A: cmp eax, dword ptr [ecx + 4] */
   1714     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x4));
   1715     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1716     _flag_k = FK_CMP;
   1717     if (CMP_EQ(_flag_a, _flag_b)) goto L_38027C34; /* 0x38027B7D: je 0x38027c34 */
   1718 L_38027B83:
   1719     eax = MEM32(ebp + (-0x4)); /* 0x38027B83: mov eax, dword ptr [ebp - 4] */
   1720     edx = MEM32(ebx + 0x4); /* 0x38027B86: mov edx, dword ptr [ebx + 4] */
   1721     MEM32(ebp + (-0x20)) = eax; /* 0x38027B89: mov dword ptr [ebp - 0x20], eax */
   1722     MEM32(ebp + (-0x18)) = eax; /* 0x38027B8C: mov dword ptr [ebp - 0x18], eax */
   1723     eax = ebp + (-0x18); /* 0x38027B8F: lea eax, [ebp - 0x18] */
   1724     MEM32(ebp + (-0x1C)) = edx; /* 0x38027B92: mov dword ptr [ebp - 0x1c], edx */
   1725     PUSH32(esp, eax); /* 0x38027B95: push eax */
   1726     edx = ebp + (-0x28); /* 0x38027B96: lea edx, [ebp - 0x28] */
   1727     PUSH32(esp, edx); /* 0x38027B99: push edx */
   1728     MEM32(ebp + (-0x14)) = 0; /* 0x38027B9A: mov dword ptr [ebp - 0x14], 0 */
   1729     RECOMP_ICALL(0x3802DA60u); /* 0x38027BA1: call 0x3802da60 */ /* not lifted */
   1730     RECOMP_FLAGS_IN();
   1731     ecx = MEM32(eax); /* 0x38027BA6: mov ecx, dword ptr [eax] */
   1732     MEM32(ebp + (-0x10)) = ecx; /* 0x38027BA8: mov dword ptr [ebp - 0x10], ecx */
   1733     edx = MEM32(eax + 0x4); /* 0x38027BAB: mov edx, dword ptr [eax + 4] */
   1734     eax = ebp + (-0xC); /* 0x38027BAE: lea eax, [ebp - 0xc] */
   1735     PUSH32(esp, eax); /* 0x38027BB1: push eax */
   1736     ecx = ebp + (-0x10); /* 0x38027BB2: lea ecx, [ebp - 0x10] */
   1737     PUSH32(esp, ecx); /* 0x38027BB5: push ecx */
   1738     ecx = ebp + (-0x30); /* 0x38027BB6: lea ecx, [ebp - 0x30] */
   1739     MEM32(ebp + (-0xC)) = edx; /* 0x38027BB9: mov dword ptr [ebp - 0xc], edx */
   1740     RECOMP_ICALL(0x38035680u); /* 0x38027BBC: call 0x38035680 */ /* not lifted */
   1741     RECOMP_FLAGS_IN();
   1742     edx = eax; /* 0x38027BC1: mov edx, eax */
   1743     eax = MEM32(edx); /* 0x38027BC3: mov eax, dword ptr [edx] */
   1744     ecx = MEM32(edx + 0x4); /* 0x38027BC5: mov ecx, dword ptr [edx + 4] */
   1745     edx = ebp + (-0x20); /* 0x38027BC8: lea edx, [ebp - 0x20] */
   1746     PUSH32(esp, edx); /* 0x38027BCB: push edx */
   1747     MEM32(ebp + (-0x34)) = ecx; /* 0x38027BCC: mov dword ptr [ebp - 0x34], ecx */
   1748     RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x38027BCF: call dword ptr [eax + 0x10] */
   1749     RECOMP_FLAGS_IN();
   1750     esi = eax; /* 0x38027BD2: mov esi, eax */
   1751     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1752     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1753     esp = esp + 4; /* 0x38027BD4: add esp, 4 */
   1754     _flag_k = FK_ADD;
   1755     /* test esi, esi */ /* 0x38027BD7: test esi, esi */
   1756     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   1757     _cf = 0;
   1758     _flag_k = FK_TEST;
   1759     if (TEST_Z(_flag_a, _flag_b)) goto L_38027C34; /* 0x38027BD9: je 0x38027c34 */
   1760 L_38027BDB:
   1761     PUSH32(esp, 0); /* 0x38027BDB: push 0 */
   1762     ecx = edi; /* 0x38027BDD: mov ecx, edi */
   1763     RECOMP_ICALL(MEM32(0x3804E3B0)); /* 0x38027BDF: call dword ptr [0x3804e3b0] */
   1764     RECOMP_FLAGS_IN();
   1765     eax = MEM32(esi); /* 0x38027BE5: mov eax, dword ptr [esi] */
   1766     PUSH32(esp, edi); /* 0x38027BE7: push edi */
   1767     ecx = esi; /* 0x38027BE8: mov ecx, esi */
   1768     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x38027BEA: call dword ptr [eax + 4] */
   1769     RECOMP_FLAGS_IN();
   1770     ecx = edi; /* 0x38027BED: mov ecx, edi */
   1771     RECOMP_ICALL(MEM32(0x3804E374)); /* 0x38027BEF: call dword ptr [0x3804e374] */
   1772     RECOMP_FLAGS_IN();
   1773     ecx = MEM32(ebx + 0x4); /* 0x38027BF5: mov ecx, dword ptr [ebx + 4] */
   1774     edi = MEM32(ebp + (-0x8)); /* 0x38027BF8: mov edi, dword ptr [ebp - 8] */
   1775     edx = ebp + (-0xC); /* 0x38027BFB: lea edx, [ebp - 0xc] */
   1776     MEM32(ebp + (-0xC)) = ecx; /* 0x38027BFE: mov dword ptr [ebp - 0xc], ecx */
   1777     ecx = MEM32(edi + 0xC); /* 0x38027C01: mov ecx, dword ptr [edi + 0xc] */
   1778     PUSH32(esp, edx); /* 0x38027C04: push edx */
   1779     RECOMP_ICALL(0x3801D450u); /* 0x38027C05: call 0x3801d450 */ /* not lifted */
   1780     RECOMP_FLAGS_IN();
   1781     eax = MEM32(ebx + 0x4); /* 0x38027C0A: mov eax, dword ptr [ebx + 4] */
   1782     ecx = MEM32(edi + 0xC); /* 0x38027C0D: mov ecx, dword ptr [edi + 0xc] */
   1783     edx = ebp + (-0x18); /* 0x38027C10: lea edx, [ebp - 0x18] */
   1784     MEM32(ebp + (-0x18)) = eax; /* 0x38027C13: mov dword ptr [ebp - 0x18], eax */
   1785     PUSH32(esp, edx); /* 0x38027C16: push edx */
   1786     eax = ebp + (-0x38); /* 0x38027C17: lea eax, [ebp - 0x38] */
   1787     PUSH32(esp, eax); /* 0x38027C1A: push eax */
   1788     MEM32(ebp + (-0x14)) = 0; /* 0x38027C1B: mov dword ptr [ebp - 0x14], 0 */
   1789     RECOMP_ICALL(0x3801C870u); /* 0x38027C22: call 0x3801c870 */ /* not lifted */
   1790     RECOMP_FLAGS_IN();
   1791     ecx = eax; /* 0x38027C27: mov ecx, eax */
   1792     eax = MEM32(ecx); /* 0x38027C29: mov eax, dword ptr [ecx] */
   1793     edx = MEM32(ecx + 0x4); /* 0x38027C2B: mov edx, dword ptr [ecx + 4] */
   1794     MEM32(ebp + (-0x2C)) = edx; /* 0x38027C2E: mov dword ptr [ebp - 0x2c], edx */
   1795     MEM32(eax + 0x10) = esi; /* 0x38027C31: mov dword ptr [eax + 0x10], esi */
   1796 L_38027C34:
   1797     edi = POP32_VAL(esp); /* 0x38027C34: pop edi */
   1798     eax = esi; /* 0x38027C35: mov eax, esi */
   1799     esi = POP32_VAL(esp); /* 0x38027C37: pop esi */
   1800     ebx = POP32_VAL(esp); /* 0x38027C38: pop ebx */
   1801     esp = ebp; /* 0x38027C39: mov esp, ebp */
   1802     ebp = POP32_VAL(esp); /* 0x38027C3B: pop ebp */
   1803     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38027C3C: ret 4 */
   1804     RECOMP_REGS_OUT();
   1805 }
   1806 
   1807 void sub_38027C40(void) {
   1808     int _fpu_cmp = 0;
   1809     uint32_t _cf = 0;
   1810     int _df = 1;
   1811     uint32_t _flag_k = FK_NONE;
   1812     uint32_t _flag_a = 0, _flag_b = 0;
   1813     uint32_t _itail_tgt = 0;
   1814     RECOMP_REGS_LOCALS
   1815     RECOMP_ENTER(0x38027C40u);
   1816 
   1817 L_38027C40:
   1818     PUSH32(esp, ebp); /* 0x38027C40: push ebp */
   1819     ebp = esp; /* 0x38027C41: mov ebp, esp */
   1820     PUSH32(esp, ecx); /* 0x38027C43: push ecx */
   1821     edx = MEM32(ecx + 0x4); /* 0x38027C44: mov edx, dword ptr [ecx + 4] */
   1822     eax = MEM32(edx + 0x4); /* 0x38027C47: mov eax, dword ptr [edx + 4] */
   1823     ecx = MEM32(ecx + 0x8); /* 0x38027C4A: mov ecx, dword ptr [ecx + 8] */
   1824     /* cmp eax, ecx */ /* 0x38027C4D: cmp eax, ecx */
   1825     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1826     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1827     _flag_k = FK_CMP;
   1828     PUSH32(esp, ebx); /* 0x38027C4F: push ebx */
   1829     ebx = MEM32(ebp + 0xC); /* 0x38027C50: mov ebx, dword ptr [ebp + 0xc] */
   1830     PUSH32(esp, esi); /* 0x38027C53: push esi */
   1831     esi = edx; /* 0x38027C54: mov esi, edx */
   1832     if (CMP_EQ(_flag_a, _flag_b)) goto L_38027C6E; /* 0x38027C56: je 0x38027c6e */
   1833 L_38027C58:
   1834     PUSH32(esp, edi); /* 0x38027C58: push edi */
   1835     edi = MEM32(ebx); /* 0x38027C59: mov edi, dword ptr [ebx] */
   1836 L_38027C5B:
   1837     /* cmp MEM32(eax + 0xC), edi */ /* 0x38027C5B: cmp dword ptr [eax + 0xc], edi */
   1838     _flag_a = (uint32_t)(MEM32(eax + 0xC)); _flag_b = (uint32_t)(edi);
   1839     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1840     _flag_k = FK_CMP;
   1841     if (CMP_GE(_flag_a, _flag_b)) goto L_38027C65; /* 0x38027C5E: jge 0x38027c65 */
   1842 L_38027C60:
   1843     eax = MEM32(eax + 0x8); /* 0x38027C60: mov eax, dword ptr [eax + 8] */
   1844     goto L_38027C69; /* 0x38027C63: jmp 0x38027c69 */
   1845 L_38027C65:
   1846     esi = eax; /* 0x38027C65: mov esi, eax */
   1847     eax = MEM32(eax); /* 0x38027C67: mov eax, dword ptr [eax] */
   1848 L_38027C69:
   1849     /* cmp eax, ecx */ /* 0x38027C69: cmp eax, ecx */
   1850     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1851     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1852     _flag_k = FK_CMP;
   1853     RECOMP_BACKEDGE();
   1854     if (CMP_NE(_flag_a, _flag_b)) goto L_38027C5B; /* 0x38027C6B: jne 0x38027c5b */
   1855 L_38027C6D:
   1856     edi = POP32_VAL(esp); /* 0x38027C6D: pop edi */
   1857 L_38027C6E:
   1858     /* cmp esi, edx */ /* 0x38027C6E: cmp esi, edx */
   1859     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(edx);
   1860     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1861     _flag_k = FK_CMP;
   1862     MEM32(ebp + 0xC) = esi; /* 0x38027C70: mov dword ptr [ebp + 0xc], esi */
   1863     if (CMP_EQ(_flag_a, _flag_b)) goto L_38027C8E; /* 0x38027C73: je 0x38027c8e */
   1864 L_38027C75:
   1865     eax = MEM32(ebx); /* 0x38027C75: mov eax, dword ptr [ebx] */
   1866     /* cmp eax, MEM32(esi + 0xC) */ /* 0x38027C77: cmp eax, dword ptr [esi + 0xc] */
   1867     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC));
   1868     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1869     _flag_k = FK_CMP;
   1870     if (CMP_L(_flag_a, _flag_b)) goto L_38027C8E; /* 0x38027C7A: jl 0x38027c8e */
   1871 L_38027C7C:
   1872     eax = ebp + 0xC; /* 0x38027C7C: lea eax, [ebp + 0xc] */
   1873     ecx = MEM32(eax); /* 0x38027C7F: mov ecx, dword ptr [eax] */
   1874     eax = MEM32(ebp + 0x8); /* 0x38027C81: mov eax, dword ptr [ebp + 8] */
   1875     esi = POP32_VAL(esp); /* 0x38027C84: pop esi */
   1876     MEM32(eax) = ecx; /* 0x38027C85: mov dword ptr [eax], ecx */
   1877     ebx = POP32_VAL(esp); /* 0x38027C87: pop ebx */
   1878     esp = ebp; /* 0x38027C88: mov esp, ebp */
   1879     ebp = POP32_VAL(esp); /* 0x38027C8A: pop ebp */
   1880     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38027C8B: ret 8 */
   1881 L_38027C8E:
   1882     eax = ebp + (-0x4); /* 0x38027C8E: lea eax, [ebp - 4] */
   1883     MEM32(ebp + (-0x4)) = edx; /* 0x38027C91: mov dword ptr [ebp - 4], edx */
   1884     ecx = MEM32(eax); /* 0x38027C94: mov ecx, dword ptr [eax] */
   1885     eax = MEM32(ebp + 0x8); /* 0x38027C96: mov eax, dword ptr [ebp + 8] */
   1886     esi = POP32_VAL(esp); /* 0x38027C99: pop esi */
   1887     MEM32(eax) = ecx; /* 0x38027C9A: mov dword ptr [eax], ecx */
   1888     ebx = POP32_VAL(esp); /* 0x38027C9C: pop ebx */
   1889     esp = ebp; /* 0x38027C9D: mov esp, ebp */
   1890     ebp = POP32_VAL(esp); /* 0x38027C9F: pop ebp */
   1891     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38027CA0: ret 8 */
   1892     RECOMP_REGS_OUT();
   1893 }
   1894 
   1895 void sub_38027CB0(void) {
   1896     int _fpu_cmp = 0;
   1897     uint32_t _cf = 0;
   1898     int _df = 1;
   1899     uint32_t _flag_k = FK_NONE;
   1900     uint32_t _flag_a = 0, _flag_b = 0;
   1901     uint32_t _itail_tgt = 0;
   1902     RECOMP_REGS_LOCALS
   1903     RECOMP_ENTER(0x38027CB0u);
   1904 
   1905 L_38027CB0:
   1906     PUSH32(esp, ebp); /* 0x38027CB0: push ebp */
   1907     ebp = esp; /* 0x38027CB1: mov ebp, esp */
   1908     PUSH32(esp, ebx); /* 0x38027CB3: push ebx */
   1909     PUSH32(esp, esi); /* 0x38027CB4: push esi */
   1910     ebx = ecx; /* 0x38027CB5: mov ebx, ecx */
   1911     eax = MEM32(ebx + 0x8); /* 0x38027CB7: mov eax, dword ptr [ebx + 8] */
   1912     PUSH32(esp, edi); /* 0x38027CBA: push edi */
   1913     edi = MEM32(ebp + 0x8); /* 0x38027CBB: mov edi, dword ptr [ebp + 8] */
   1914     /* cmp edi, eax */ /* 0x38027CBE: cmp edi, eax */
   1915     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1916     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1917     _flag_k = FK_CMP;
   1918     esi = edi; /* 0x38027CC0: mov esi, edi */
   1919     if (CMP_EQ(_flag_a, _flag_b)) goto L_38027CE3; /* 0x38027CC2: je 0x38027ce3 */
   1920 L_38027CC4:
   1921     eax = MEM32(esi + 0x8); /* 0x38027CC4: mov eax, dword ptr [esi + 8] */
   1922     PUSH32(esp, eax); /* 0x38027CC7: push eax */
   1923     ecx = ebx; /* 0x38027CC8: mov ecx, ebx */
   1924     RECOMP_ICALL(0x38027CB0u); /* 0x38027CCA: call 0x38027cb0 */ /* not lifted */
   1925     RECOMP_FLAGS_IN();
   1926     esi = MEM32(esi); /* 0x38027CCF: mov esi, dword ptr [esi] */
   1927     PUSH32(esp, edi); /* 0x38027CD1: push edi */
   1928     RECOMP_ICALL(0x3804B4F6u); /* 0x38027CD2: call 0x3804b4f6 */ /* not lifted */
   1929     RECOMP_FLAGS_IN();
   1930     eax = MEM32(ebx + 0x8); /* 0x38027CD7: mov eax, dword ptr [ebx + 8] */
   1931     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1932     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1933     esp = esp + 4; /* 0x38027CDA: add esp, 4 */
   1934     _flag_k = FK_ADD;
   1935     /* cmp esi, eax */ /* 0x38027CDD: cmp esi, eax */
   1936     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   1937     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1938     _flag_k = FK_CMP;
   1939     edi = esi; /* 0x38027CDF: mov edi, esi */
   1940     RECOMP_BACKEDGE();
   1941     if (CMP_NE(_flag_a, _flag_b)) goto L_38027CC4; /* 0x38027CE1: jne 0x38027cc4 */
   1942 L_38027CE3:
   1943     edi = POP32_VAL(esp); /* 0x38027CE3: pop edi */
   1944     esi = POP32_VAL(esp); /* 0x38027CE4: pop esi */
   1945     ebx = POP32_VAL(esp); /* 0x38027CE5: pop ebx */
   1946     ebp = POP32_VAL(esp); /* 0x38027CE6: pop ebp */
   1947     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38027CE7: ret 4 */
   1948     RECOMP_REGS_OUT();
   1949 }
   1950 
   1951 void sub_38027CF0(void) {
   1952     int _fpu_cmp = 0;
   1953     uint32_t _cf = 0;
   1954     int _df = 1;
   1955     uint32_t _flag_k = FK_NONE;
   1956     uint32_t _flag_a = 0, _flag_b = 0;
   1957     uint32_t _itail_tgt = 0;
   1958     RECOMP_REGS_LOCALS
   1959     RECOMP_ENTER(0x38027CF0u);
   1960 
   1961 L_38027CF0:
   1962     PUSH32(esp, ebp); /* 0x38027CF0: push ebp */
   1963     ebp = esp; /* 0x38027CF1: mov ebp, esp */
   1964     edx = MEM32(ecx + 0x4); /* 0x38027CF3: mov edx, dword ptr [ecx + 4] */
   1965     eax = MEM32(edx + 0x4); /* 0x38027CF6: mov eax, dword ptr [edx + 4] */
   1966     ecx = MEM32(ecx + 0x8); /* 0x38027CF9: mov ecx, dword ptr [ecx + 8] */
   1967     /* cmp eax, ecx */ /* 0x38027CFC: cmp eax, ecx */
   1968     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1969     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1970     _flag_k = FK_CMP;
   1971     if (CMP_EQ(_flag_a, _flag_b)) goto L_38027D22; /* 0x38027CFE: je 0x38027d22 */
   1972 L_38027D00:
   1973     PUSH32(esp, esi); /* 0x38027D00: push esi */
   1974     esi = MEM32(ebp + 0xC); /* 0x38027D01: mov esi, dword ptr [ebp + 0xc] */
   1975     esi = MEM32(esi); /* 0x38027D04: mov esi, dword ptr [esi] */
   1976 L_38027D06:
   1977     /* cmp MEM32(eax + 0xC), esi */ /* 0x38027D06: cmp dword ptr [eax + 0xc], esi */
   1978     _flag_a = (uint32_t)(MEM32(eax + 0xC)); _flag_b = (uint32_t)(esi);
   1979     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1980     _flag_k = FK_CMP;
   1981     if (CMP_AE(_flag_a, _flag_b)) goto L_38027D10; /* 0x38027D09: jae 0x38027d10 */
   1982 L_38027D0B:
   1983     eax = MEM32(eax + 0x8); /* 0x38027D0B: mov eax, dword ptr [eax + 8] */
   1984     goto L_38027D14; /* 0x38027D0E: jmp 0x38027d14 */
   1985 L_38027D10:
   1986     edx = eax; /* 0x38027D10: mov edx, eax */
   1987     eax = MEM32(eax); /* 0x38027D12: mov eax, dword ptr [eax] */
   1988 L_38027D14:
   1989     /* cmp eax, ecx */ /* 0x38027D14: cmp eax, ecx */
   1990     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1991     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1992     _flag_k = FK_CMP;
   1993     RECOMP_BACKEDGE();
   1994     if (CMP_NE(_flag_a, _flag_b)) goto L_38027D06; /* 0x38027D16: jne 0x38027d06 */
   1995 L_38027D18:
   1996     eax = MEM32(ebp + 0x8); /* 0x38027D18: mov eax, dword ptr [ebp + 8] */
   1997     MEM32(eax) = edx; /* 0x38027D1B: mov dword ptr [eax], edx */
   1998     esi = POP32_VAL(esp); /* 0x38027D1D: pop esi */
   1999     ebp = POP32_VAL(esp); /* 0x38027D1E: pop ebp */
   2000     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38027D1F: ret 8 */
   2001 L_38027D22:
   2002     eax = MEM32(ebp + 0x8); /* 0x38027D22: mov eax, dword ptr [ebp + 8] */
   2003     MEM32(eax) = edx; /* 0x38027D25: mov dword ptr [eax], edx */
   2004     ebp = POP32_VAL(esp); /* 0x38027D27: pop ebp */
   2005     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38027D28: ret 8 */
   2006     RECOMP_REGS_OUT();
   2007 }
   2008 
   2009 void sub_38027D30(void) {
   2010     int _fpu_cmp = 0;
   2011     uint32_t _cf = 0;
   2012     int _df = 1;
   2013     uint32_t _flag_k = FK_NONE;
   2014     uint32_t _flag_a = 0, _flag_b = 0;
   2015     uint32_t _itail_tgt = 0;
   2016     RECOMP_REGS_LOCALS
   2017     RECOMP_ENTER(0x38027D30u);
   2018 
   2019 L_38027D30:
   2020     PUSH32(esp, ebp); /* 0x38027D30: push ebp */
   2021     ebp = esp; /* 0x38027D31: mov ebp, esp */
   2022     PUSH32(esp, ebx); /* 0x38027D33: push ebx */
   2023     PUSH32(esp, esi); /* 0x38027D34: push esi */
   2024     ebx = ecx; /* 0x38027D35: mov ebx, ecx */
   2025     eax = MEM32(ebx + 0x8); /* 0x38027D37: mov eax, dword ptr [ebx + 8] */
   2026     PUSH32(esp, edi); /* 0x38027D3A: push edi */
   2027     edi = MEM32(ebp + 0x8); /* 0x38027D3B: mov edi, dword ptr [ebp + 8] */
   2028     /* cmp edi, eax */ /* 0x38027D3E: cmp edi, eax */
   2029     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2030     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2031     _flag_k = FK_CMP;
   2032     esi = edi; /* 0x38027D40: mov esi, edi */
   2033     if (CMP_EQ(_flag_a, _flag_b)) goto L_38027D63; /* 0x38027D42: je 0x38027d63 */
   2034 L_38027D44:
   2035     eax = MEM32(esi + 0x8); /* 0x38027D44: mov eax, dword ptr [esi + 8] */
   2036     PUSH32(esp, eax); /* 0x38027D47: push eax */
   2037     ecx = ebx; /* 0x38027D48: mov ecx, ebx */
   2038     RECOMP_ICALL(0x38027D30u); /* 0x38027D4A: call 0x38027d30 */ /* not lifted */
   2039     RECOMP_FLAGS_IN();
   2040     esi = MEM32(esi); /* 0x38027D4F: mov esi, dword ptr [esi] */
   2041     PUSH32(esp, edi); /* 0x38027D51: push edi */
   2042     RECOMP_ICALL(0x3804B4F6u); /* 0x38027D52: call 0x3804b4f6 */ /* not lifted */
   2043     RECOMP_FLAGS_IN();
   2044     eax = MEM32(ebx + 0x8); /* 0x38027D57: mov eax, dword ptr [ebx + 8] */
   2045     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2046     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2047     esp = esp + 4; /* 0x38027D5A: add esp, 4 */
   2048     _flag_k = FK_ADD;
   2049     /* cmp esi, eax */ /* 0x38027D5D: cmp esi, eax */
   2050     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(eax);
   2051     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2052     _flag_k = FK_CMP;
   2053     edi = esi; /* 0x38027D5F: mov edi, esi */
   2054     RECOMP_BACKEDGE();
   2055     if (CMP_NE(_flag_a, _flag_b)) goto L_38027D44; /* 0x38027D61: jne 0x38027d44 */
   2056 L_38027D63:
   2057     edi = POP32_VAL(esp); /* 0x38027D63: pop edi */
   2058     esi = POP32_VAL(esp); /* 0x38027D64: pop esi */
   2059     ebx = POP32_VAL(esp); /* 0x38027D65: pop ebx */
   2060     ebp = POP32_VAL(esp); /* 0x38027D66: pop ebp */
   2061     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38027D67: ret 4 */
   2062     RECOMP_REGS_OUT();
   2063 }
   2064 
   2065 void sub_38027D70(void) {
   2066     int _fpu_cmp = 0;
   2067     uint32_t _cf = 0;
   2068     int _df = 1;
   2069     uint32_t _flag_k = FK_NONE;
   2070     uint32_t _flag_a = 0, _flag_b = 0;
   2071     uint32_t _itail_tgt = 0;
   2072     RECOMP_REGS_LOCALS
   2073     RECOMP_ENTER(0x38027D70u);
   2074 
   2075 L_38027D70:
   2076     RECOMP_ICALL(0x38027D80u); /* 0x38027D70: call 0x38027d80 */ /* not lifted */
   2077     RECOMP_FLAGS_IN();
   2078     goto L_38027D90; /* 0x38027D75: jmp 0x38027d90 */
   2079 L_38027D90:
   2080     PUSH32(esp, 0x38027DA0u); /* 0x38027D90: push 0x38027da0 */
   2081     RECOMP_ICALL(0x3804B54Cu); /* 0x38027D95: call 0x3804b54c */ /* not lifted */
   2082     RECOMP_FLAGS_IN();
   2083     ecx = POP32_VAL(esp); /* 0x38027D9A: pop ecx */
   2084     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38027D9B: ret  */
   2085     RECOMP_REGS_OUT();
   2086 }
   2087 
   2088 void sub_38027D80(void) {
   2089     int _fpu_cmp = 0;
   2090     uint32_t _cf = 0;
   2091     int _df = 1;
   2092     uint32_t _flag_k = FK_NONE;
   2093     uint32_t _flag_a = 0, _flag_b = 0;
   2094     uint32_t _itail_tgt = 0;
   2095     RECOMP_REGS_LOCALS
   2096     RECOMP_ENTER(0x38027D80u);
   2097 
   2098 L_38027D80:
   2099     ecx = 0x3806ED91u; /* 0x38027D80: mov ecx, 0x3806ed91 */
   2100 L_38027D85:
   2101     { _itail_tgt = (uint32_t)(MEM32(0x3804E060)); goto _ljump; }
   2102     { RECOMP_REGS_OUT(); return; } /* end of function */
   2103   _ljump:
   2104     switch (_itail_tgt) {
   2105       case 0x38027D80u: goto L_38027D80;
   2106       case 0x38027D85u: goto L_38027D85;
   2107       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2108     }
   2109     RECOMP_REGS_OUT();
   2110 }
   2111 
   2112 void sub_38027D90(void) {
   2113     int _fpu_cmp = 0;
   2114     uint32_t _cf = 0;
   2115     int _df = 1;
   2116     uint32_t _flag_k = FK_NONE;
   2117     uint32_t _flag_a = 0, _flag_b = 0;
   2118     uint32_t _itail_tgt = 0;
   2119     RECOMP_REGS_LOCALS
   2120     RECOMP_ENTER(0x38027D90u);
   2121 
   2122 L_38027D90:
   2123     PUSH32(esp, 0x38027DA0u); /* 0x38027D90: push 0x38027da0 */
   2124     RECOMP_ICALL(0x3804B54Cu); /* 0x38027D95: call 0x3804b54c */ /* not lifted */
   2125     RECOMP_FLAGS_IN();
   2126     ecx = POP32_VAL(esp); /* 0x38027D9A: pop ecx */
   2127     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38027D9B: ret  */
   2128     RECOMP_REGS_OUT();
   2129 }
   2130 
   2131 void sub_38027DA0(void) {
   2132     int _fpu_cmp = 0;
   2133     uint32_t _cf = 0;
   2134     int _df = 1;
   2135     uint32_t _flag_k = FK_NONE;
   2136     uint32_t _flag_a = 0, _flag_b = 0;
   2137     uint32_t _itail_tgt = 0;
   2138     RECOMP_REGS_LOCALS
   2139     RECOMP_ENTER(0x38027DA0u);
   2140 
   2141 L_38027DA0:
   2142     ecx = 0x3806ED91u; /* 0x38027DA0: mov ecx, 0x3806ed91 */
   2143 L_38027DA5:
   2144     { _itail_tgt = (uint32_t)(MEM32(0x3804E064)); goto _ljump; }
   2145     { RECOMP_REGS_OUT(); return; } /* end of function */
   2146   _ljump:
   2147     switch (_itail_tgt) {
   2148       case 0x38027DA0u: goto L_38027DA0;
   2149       case 0x38027DA5u: goto L_38027DA5;
   2150       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2151     }
   2152     RECOMP_REGS_OUT();
   2153 }
   2154 
   2155 void sub_38027DB0(void) {
   2156     int _fpu_cmp = 0;
   2157     uint32_t _cf = 0;
   2158     int _df = 1;
   2159     uint32_t _flag_k = FK_NONE;
   2160     uint32_t _flag_a = 0, _flag_b = 0;
   2161     uint32_t _itail_tgt = 0;
   2162     RECOMP_REGS_LOCALS
   2163     RECOMP_ENTER(0x38027DB0u);
   2164 
   2165 L_38027DB0:
   2166     RECOMP_ICALL(0x38027DC0u); /* 0x38027DB0: call 0x38027dc0 */ /* not lifted */
   2167     RECOMP_FLAGS_IN();
   2168     goto L_38027DD0; /* 0x38027DB5: jmp 0x38027dd0 */
   2169 L_38027DD0:
   2170     PUSH32(esp, 0x38027DE0u); /* 0x38027DD0: push 0x38027de0 */
   2171     RECOMP_ICALL(0x3804B54Cu); /* 0x38027DD5: call 0x3804b54c */ /* not lifted */
   2172     RECOMP_FLAGS_IN();
   2173     ecx = POP32_VAL(esp); /* 0x38027DDA: pop ecx */
   2174     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38027DDB: ret  */
   2175     RECOMP_REGS_OUT();
   2176 }
   2177 
   2178 void sub_38027DC0(void) {
   2179     int _fpu_cmp = 0;
   2180     uint32_t _cf = 0;
   2181     int _df = 1;
   2182     uint32_t _flag_k = FK_NONE;
   2183     uint32_t _flag_a = 0, _flag_b = 0;
   2184     uint32_t _itail_tgt = 0;
   2185     RECOMP_REGS_LOCALS
   2186     RECOMP_ENTER(0x38027DC0u);
   2187 
   2188 L_38027DC0:
   2189     ecx = 0x3806ED90u; /* 0x38027DC0: mov ecx, 0x3806ed90 */
   2190 L_38027DC5:
   2191     { _itail_tgt = (uint32_t)(MEM32(0x3804E068)); goto _ljump; }
   2192     { RECOMP_REGS_OUT(); return; } /* end of function */
   2193   _ljump:
   2194     switch (_itail_tgt) {
   2195       case 0x38027DC0u: goto L_38027DC0;
   2196       case 0x38027DC5u: goto L_38027DC5;
   2197       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2198     }
   2199     RECOMP_REGS_OUT();
   2200 }
   2201 
   2202 void sub_38027DD0(void) {
   2203     int _fpu_cmp = 0;
   2204     uint32_t _cf = 0;
   2205     int _df = 1;
   2206     uint32_t _flag_k = FK_NONE;
   2207     uint32_t _flag_a = 0, _flag_b = 0;
   2208     uint32_t _itail_tgt = 0;
   2209     RECOMP_REGS_LOCALS
   2210     RECOMP_ENTER(0x38027DD0u);
   2211 
   2212 L_38027DD0:
   2213     PUSH32(esp, 0x38027DE0u); /* 0x38027DD0: push 0x38027de0 */
   2214     RECOMP_ICALL(0x3804B54Cu); /* 0x38027DD5: call 0x3804b54c */ /* not lifted */
   2215     RECOMP_FLAGS_IN();
   2216     ecx = POP32_VAL(esp); /* 0x38027DDA: pop ecx */
   2217     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38027DDB: ret  */
   2218     RECOMP_REGS_OUT();
   2219 }
   2220 
   2221 void sub_38027DE0(void) {
   2222     int _fpu_cmp = 0;
   2223     uint32_t _cf = 0;
   2224     int _df = 1;
   2225     uint32_t _flag_k = FK_NONE;
   2226     uint32_t _flag_a = 0, _flag_b = 0;
   2227     uint32_t _itail_tgt = 0;
   2228     RECOMP_REGS_LOCALS
   2229     RECOMP_ENTER(0x38027DE0u);
   2230 
   2231 L_38027DE0:
   2232     ecx = 0x3806ED90u; /* 0x38027DE0: mov ecx, 0x3806ed90 */
   2233 L_38027DE5:
   2234     { _itail_tgt = (uint32_t)(MEM32(0x3804E06C)); goto _ljump; }
   2235     { RECOMP_REGS_OUT(); return; } /* end of function */
   2236   _ljump:
   2237     switch (_itail_tgt) {
   2238       case 0x38027DE0u: goto L_38027DE0;
   2239       case 0x38027DE5u: goto L_38027DE5;
   2240       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2241     }
   2242     RECOMP_REGS_OUT();
   2243 }
   2244 
   2245 void sub_38027DF0(void) {
   2246     int _fpu_cmp = 0;
   2247     uint32_t _cf = 0;
   2248     int _df = 1;
   2249     uint32_t _flag_k = FK_NONE;
   2250     uint32_t _flag_a = 0, _flag_b = 0;
   2251     uint32_t _itail_tgt = 0;
   2252     RECOMP_REGS_LOCALS
   2253     RECOMP_ENTER(0x38027DF0u);
   2254 
   2255 L_38027DF0:
   2256     PUSH32(esp, ebp); /* 0x38027DF0: push ebp */
   2257     ebp = esp; /* 0x38027DF1: mov ebp, esp */
   2258     PUSH32(esp, 0xFFFFFFFFu); /* 0x38027DF3: push -1 */
   2259     PUSH32(esp, 0x3804C889u); /* 0x38027DF5: push 0x3804c889 */
   2260     eax = MEM32(FS_BASE + (0)); /* 0x38027DFA: mov eax, dword ptr fs:[0] */
   2261     PUSH32(esp, eax); /* 0x38027E00: push eax */
   2262     MEM32(FS_BASE + (0)) = esp; /* 0x38027E01: mov dword ptr fs:[0], esp */
   2263     PUSH32(esp, ecx); /* 0x38027E08: push ecx */
   2264     eax = MEM32(ebp + 0x8); /* 0x38027E09: mov eax, dword ptr [ebp + 8] */
   2265     PUSH32(esp, ebx); /* 0x38027E0C: push ebx */
   2266     PUSH32(esp, esi); /* 0x38027E0D: push esi */
   2267     esi = ecx; /* 0x38027E0E: mov esi, ecx */
   2268     ecx = MEM32(ebp + 0xC); /* 0x38027E10: mov ecx, dword ptr [ebp + 0xc] */
   2269     MEM32(esi + 0x4) = eax; /* 0x38027E13: mov dword ptr [esi + 4], eax */
   2270     MEM32(esi + 0x8) = ecx; /* 0x38027E16: mov dword ptr [esi + 8], ecx */
   2271     eax = 1; /* 0x38027E19: mov eax, 1 */
   2272     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2273     ebx = 0; /* 0x38027E1E: xor ebx, ebx */
   2274     _cf = 0;
   2275     _flag_k = FK_TEST;
   2276     MEM32(esi + 0xC) = eax; /* 0x38027E20: mov dword ptr [esi + 0xc], eax */
   2277     MEM32(esi + 0x10) = eax; /* 0x38027E23: mov dword ptr [esi + 0x10], eax */
   2278     MEM8(esi + 0x14) = (uint8_t)(LO8(ebx)); /* 0x38027E26: mov byte ptr [esi + 0x14], bl */
   2279     MEM8(esi + 0x15) = (uint8_t)(LO8(eax)); /* 0x38027E29: mov byte ptr [esi + 0x15], al */
   2280     edx = MEM32(0x3804E444); /* 0x38027E2C: mov edx, dword ptr [0x3804e444] */
   2281     PUSH32(esp, edi); /* 0x38027E32: push edi */
   2282     MEM32(ebp + (-0x10)) = esi; /* 0x38027E33: mov dword ptr [ebp - 0x10], esi */
   2283     MEM32(esi) = edx; /* 0x38027E36: mov dword ptr [esi], edx */
   2284     edi = esi + 0x18; /* 0x38027E38: lea edi, [esi + 0x18] */
   2285     ecx = edi; /* 0x38027E3B: mov ecx, edi */
   2286     MEM32(ebp + (-0x4)) = ebx; /* 0x38027E3D: mov dword ptr [ebp - 4], ebx */
   2287     RECOMP_ICALL(0x380438A0u); /* 0x38027E40: call 0x380438a0 */ /* not lifted */
   2288     RECOMP_FLAGS_IN();
   2289     ecx = MEM32(ebp + (-0xC)); /* 0x38027E45: mov ecx, dword ptr [ebp - 0xc] */
   2290     MEM32(edi) = 0x3804F464u; /* 0x38027E48: mov dword ptr [edi], 0x3804f464 */
   2291     MEM32(esi + 0x28) = ebx; /* 0x38027E4E: mov dword ptr [esi + 0x28], ebx */
   2292     MEM32(esi + 0x2C) = ebx; /* 0x38027E51: mov dword ptr [esi + 0x2c], ebx */
   2293     MEM32(esi + 0x30) = ebx; /* 0x38027E54: mov dword ptr [esi + 0x30], ebx */
   2294     MEM32(esi + 0x34) = ebx; /* 0x38027E57: mov dword ptr [esi + 0x34], ebx */
   2295     MEM32(esi + 0x38) = ebx; /* 0x38027E5A: mov dword ptr [esi + 0x38], ebx */
   2296     MEM32(esi + 0x3C) = ebx; /* 0x38027E5D: mov dword ptr [esi + 0x3c], ebx */
   2297     edi = POP32_VAL(esp); /* 0x38027E60: pop edi */
   2298     MEM32(esi) = 0x3804F444u; /* 0x38027E61: mov dword ptr [esi], 0x3804f444 */
   2299     eax = esi; /* 0x38027E67: mov eax, esi */
   2300     esi = POP32_VAL(esp); /* 0x38027E69: pop esi */
   2301     ebx = POP32_VAL(esp); /* 0x38027E6A: pop ebx */
   2302     MEM32(FS_BASE + (0)) = ecx; /* 0x38027E6B: mov dword ptr fs:[0], ecx */
   2303     esp = ebp; /* 0x38027E72: mov esp, ebp */
   2304     ebp = POP32_VAL(esp); /* 0x38027E74: pop ebp */
   2305     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x38027E75: ret 8 */
   2306     RECOMP_REGS_OUT();
   2307 }
   2308 
   2309 void sub_38027E80(void) {
   2310     int _fpu_cmp = 0;
   2311     uint32_t _cf = 0;
   2312     int _df = 1;
   2313     uint32_t _flag_k = FK_NONE;
   2314     uint32_t _flag_a = 0, _flag_b = 0;
   2315     uint32_t _itail_tgt = 0;
   2316     RECOMP_REGS_LOCALS
   2317     RECOMP_ENTER(0x38027E80u);
   2318 
   2319 L_38027E80:
   2320     PUSH32(esp, ebp); /* 0x38027E80: push ebp */
   2321     ebp = esp; /* 0x38027E81: mov ebp, esp */
   2322     PUSH32(esp, ebx); /* 0x38027E83: push ebx */
   2323     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x38027E84: mov bl, byte ptr [ebp + 8] */
   2324     /* test LO8(ebx), 2 */ /* 0x38027E87: test bl, 2 */
   2325     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   2326     _cf = 0;
   2327     _flag_k = FK_NARROW(FK_TEST, 24);
   2328     PUSH32(esp, esi); /* 0x38027E8A: push esi */
   2329     esi = ecx; /* 0x38027E8B: mov esi, ecx */
   2330     if (TEST_Z(_flag_a, _flag_b)) goto L_38027EBB; /* 0x38027E8D: je 0x38027ebb */
   2331 L_38027E8F:
   2332     eax = MEM32(esi + (-0x4)); /* 0x38027E8F: mov eax, dword ptr [esi - 4] */
   2333     PUSH32(esp, edi); /* 0x38027E92: push edi */
   2334     PUSH32(esp, 0x38027EE0u); /* 0x38027E93: push 0x38027ee0 */
   2335     edi = esi + (-0x4); /* 0x38027E98: lea edi, [esi - 4] */
   2336     PUSH32(esp, eax); /* 0x38027E9B: push eax */
   2337     PUSH32(esp, 0x40u); /* 0x38027E9C: push 0x40 */
   2338     PUSH32(esp, esi); /* 0x38027E9E: push esi */
   2339     RECOMP_ICALL(0x3804B582u); /* 0x38027E9F: call 0x3804b582 */ /* not lifted */
   2340     RECOMP_FLAGS_IN();
   2341     /* test LO8(ebx), 1 */ /* 0x38027EA4: test bl, 1 */
   2342     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   2343     _cf = 0;
   2344     _flag_k = FK_NARROW(FK_TEST, 24);
   2345     if (TEST_Z(_flag_a, _flag_b)) goto L_38027EB2; /* 0x38027EA7: je 0x38027eb2 */
   2346 L_38027EA9:
   2347     PUSH32(esp, edi); /* 0x38027EA9: push edi */
   2348     RECOMP_ICALL(0x3804B4F6u); /* 0x38027EAA: call 0x3804b4f6 */ /* not lifted */
   2349     RECOMP_FLAGS_IN();
   2350     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2351     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2352     esp = esp + 4; /* 0x38027EAF: add esp, 4 */
   2353     _flag_k = FK_ADD;
   2354 L_38027EB2:
   2355     eax = edi; /* 0x38027EB2: mov eax, edi */
   2356     edi = POP32_VAL(esp); /* 0x38027EB4: pop edi */
   2357     esi = POP32_VAL(esp); /* 0x38027EB5: pop esi */
   2358     ebx = POP32_VAL(esp); /* 0x38027EB6: pop ebx */
   2359     ebp = POP32_VAL(esp); /* 0x38027EB7: pop ebp */
   2360     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38027EB8: ret 4 */
   2361 L_38027EBB:
   2362     ecx = esi; /* 0x38027EBB: mov ecx, esi */
   2363     RECOMP_ICALL(0x38027EE0u); /* 0x38027EBD: call 0x38027ee0 */ /* not lifted */
   2364     RECOMP_FLAGS_IN();
   2365     /* test LO8(ebx), 1 */ /* 0x38027EC2: test bl, 1 */
   2366     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   2367     _cf = 0;
   2368     _flag_k = FK_NARROW(FK_TEST, 24);
   2369     if (TEST_Z(_flag_a, _flag_b)) goto L_38027ED0; /* 0x38027EC5: je 0x38027ed0 */
   2370 L_38027EC7:
   2371     PUSH32(esp, esi); /* 0x38027EC7: push esi */
   2372     RECOMP_ICALL(0x3804B4F6u); /* 0x38027EC8: call 0x3804b4f6 */ /* not lifted */
   2373     RECOMP_FLAGS_IN();
   2374     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2375     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2376     esp = esp + 4; /* 0x38027ECD: add esp, 4 */
   2377     _flag_k = FK_ADD;
   2378 L_38027ED0:
   2379     eax = esi; /* 0x38027ED0: mov eax, esi */
   2380     esi = POP32_VAL(esp); /* 0x38027ED2: pop esi */
   2381     ebx = POP32_VAL(esp); /* 0x38027ED3: pop ebx */
   2382     ebp = POP32_VAL(esp); /* 0x38027ED4: pop ebp */
   2383     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38027ED5: ret 4 */
   2384     RECOMP_REGS_OUT();
   2385 }
   2386 
   2387 void sub_38027EE0(void) {
   2388     int _fpu_cmp = 0;
   2389     uint32_t _cf = 0;
   2390     int _df = 1;
   2391     uint32_t _flag_k = FK_NONE;
   2392     uint32_t _flag_a = 0, _flag_b = 0;
   2393     uint32_t _itail_tgt = 0;
   2394     RECOMP_REGS_LOCALS
   2395     RECOMP_ENTER(0x38027EE0u);
   2396 
   2397 L_38027EE0:
   2398     PUSH32(esp, ebp); /* 0x38027EE0: push ebp */
   2399     ebp = esp; /* 0x38027EE1: mov ebp, esp */
   2400     PUSH32(esp, 0xFFFFFFFFu); /* 0x38027EE3: push -1 */
   2401     PUSH32(esp, 0x3804C8D0u); /* 0x38027EE5: push 0x3804c8d0 */
   2402     eax = MEM32(FS_BASE + (0)); /* 0x38027EEA: mov eax, dword ptr fs:[0] */
   2403     PUSH32(esp, eax); /* 0x38027EF0: push eax */
   2404     MEM32(FS_BASE + (0)) = esp; /* 0x38027EF1: mov dword ptr fs:[0], esp */
   2405     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2406     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2407     esp = esp - 8; /* 0x38027EF8: sub esp, 8 */
   2408     _flag_k = FK_CMP;
   2409     PUSH32(esp, esi); /* 0x38027EFB: push esi */
   2410     esi = ecx; /* 0x38027EFC: mov esi, ecx */
   2411     PUSH32(esp, edi); /* 0x38027EFE: push edi */
   2412     edi = esi + 0x18; /* 0x38027EFF: lea edi, [esi + 0x18] */
   2413     MEM32(ebp + (-0x10)) = esi; /* 0x38027F02: mov dword ptr [ebp - 0x10], esi */
   2414     MEM32(esi) = 0x3804F444u; /* 0x38027F05: mov dword ptr [esi], 0x3804f444 */
   2415     MEM32(edi) = 0x3804F464u; /* 0x38027F0B: mov dword ptr [edi], 0x3804f464 */
   2416     ecx = MEM32(esi + 0x28); /* 0x38027F11: mov ecx, dword ptr [esi + 0x28] */
   2417     /* test ecx, ecx */ /* 0x38027F14: test ecx, ecx */
   2418     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2419     _cf = 0;
   2420     _flag_k = FK_TEST;
   2421     MEM32(ebp + (-0x4)) = 1; /* 0x38027F16: mov dword ptr [ebp - 4], 1 */
   2422     if (TEST_Z(_flag_a, _flag_b)) goto L_38027F25; /* 0x38027F1D: je 0x38027f25 */
   2423 L_38027F1F:
   2424     eax = MEM32(ecx); /* 0x38027F1F: mov eax, dword ptr [ecx] */
   2425     PUSH32(esp, 1); /* 0x38027F21: push 1 */
   2426     RECOMP_ICALL(MEM32(eax)); /* 0x38027F23: call dword ptr [eax] */
   2427     RECOMP_FLAGS_IN();
   2428 L_38027F25:
   2429     ecx = MEM32(esi + 0x2C); /* 0x38027F25: mov ecx, dword ptr [esi + 0x2c] */
   2430     /* test ecx, ecx */ /* 0x38027F28: test ecx, ecx */
   2431     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2432     _cf = 0;
   2433     _flag_k = FK_TEST;
   2434     if (TEST_Z(_flag_a, _flag_b)) goto L_38027F32; /* 0x38027F2A: je 0x38027f32 */
   2435 L_38027F2C:
   2436     edx = MEM32(ecx); /* 0x38027F2C: mov edx, dword ptr [ecx] */
   2437     PUSH32(esp, 1); /* 0x38027F2E: push 1 */
   2438     RECOMP_ICALL(MEM32(edx)); /* 0x38027F30: call dword ptr [edx] */
   2439     RECOMP_FLAGS_IN();
   2440 L_38027F32:
   2441     ecx = MEM32(esi + 0x30); /* 0x38027F32: mov ecx, dword ptr [esi + 0x30] */
   2442     /* test ecx, ecx */ /* 0x38027F35: test ecx, ecx */
   2443     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2444     _cf = 0;
   2445     _flag_k = FK_TEST;
   2446     if (TEST_Z(_flag_a, _flag_b)) goto L_38027F3F; /* 0x38027F37: je 0x38027f3f */
   2447 L_38027F39:
   2448     eax = MEM32(ecx); /* 0x38027F39: mov eax, dword ptr [ecx] */
   2449     PUSH32(esp, 1); /* 0x38027F3B: push 1 */
   2450     RECOMP_ICALL(MEM32(eax)); /* 0x38027F3D: call dword ptr [eax] */
   2451     RECOMP_FLAGS_IN();
   2452 L_38027F3F:
   2453     ecx = esi; /* 0x38027F3F: mov ecx, esi */
   2454     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ecx);
   2455     _cf = (ecx) != 0;
   2456     ecx = (uint32_t)(-(int32_t)ecx); /* 0x38027F41: neg ecx */
   2457     _flag_k = FK_CMP;
   2458     { uint32_t _sa = ecx, _sb = ecx, _sc = _cf; /* 0x38027F43: sbb ecx, ecx */
   2459       ecx = _sc ? 0xFFFFFFFFu : 0;
   2460       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2461       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2462     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   2463     ecx = ecx & edi; /* 0x38027F45: and ecx, edi */
   2464     _cf = 0;
   2465     _flag_k = FK_TEST;
   2466     MEM8(ebp + (-0x4)) = (uint8_t)(0); /* 0x38027F47: mov byte ptr [ebp - 4], 0 */
   2467     RECOMP_ICALL(0x380438F0u); /* 0x38027F4B: call 0x380438f0 */ /* not lifted */
   2468     RECOMP_FLAGS_IN();
   2469     ecx = esi; /* 0x38027F50: mov ecx, esi */
   2470     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x38027F52: mov dword ptr [ebp - 4], 0xffffffff */
   2471     RECOMP_ICALL(MEM32(0x3804E454)); /* 0x38027F59: call dword ptr [0x3804e454] */
   2472     RECOMP_FLAGS_IN();
   2473     ecx = MEM32(ebp + (-0xC)); /* 0x38027F5F: mov ecx, dword ptr [ebp - 0xc] */
   2474     edi = POP32_VAL(esp); /* 0x38027F62: pop edi */
   2475     esi = POP32_VAL(esp); /* 0x38027F63: pop esi */
   2476     MEM32(FS_BASE + (0)) = ecx; /* 0x38027F64: mov dword ptr fs:[0], ecx */
   2477     esp = ebp; /* 0x38027F6B: mov esp, ebp */
   2478     ebp = POP32_VAL(esp); /* 0x38027F6D: pop ebp */
   2479     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38027F6E: ret  */
   2480     RECOMP_REGS_OUT();
   2481 }
   2482 
   2483 void sub_38027F70(void) {
   2484     int _fpu_cmp = 0;
   2485     uint32_t _cf = 0;
   2486     int _df = 1;
   2487     uint32_t _flag_k = FK_NONE;
   2488     uint32_t _flag_a = 0, _flag_b = 0;
   2489     uint32_t _itail_tgt = 0;
   2490     RECOMP_REGS_LOCALS
   2491     RECOMP_ENTER(0x38027F70u);
   2492 
   2493 L_38027F70:
   2494     PUSH32(esp, ebp); /* 0x38027F70: push ebp */
   2495     ebp = esp; /* 0x38027F71: mov ebp, esp */
   2496     PUSH32(esp, 0xFFFFFFFFu); /* 0x38027F73: push -1 */
   2497     PUSH32(esp, 0x3804C92Cu); /* 0x38027F75: push 0x3804c92c */
   2498     eax = MEM32(FS_BASE + (0)); /* 0x38027F7A: mov eax, dword ptr fs:[0] */
   2499     PUSH32(esp, eax); /* 0x38027F80: push eax */
   2500     MEM32(FS_BASE + (0)) = esp; /* 0x38027F81: mov dword ptr fs:[0], esp */
   2501     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xB0u);
   2502     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2503     esp = esp - 0xB0u; /* 0x38027F88: sub esp, 0xb0 */
   2504     _flag_k = FK_CMP;
   2505     PUSH32(esp, ebx); /* 0x38027F8E: push ebx */
   2506     PUSH32(esp, esi); /* 0x38027F8F: push esi */
   2507     esi = MEM32(ebp + 0x8); /* 0x38027F90: mov esi, dword ptr [ebp + 8] */
   2508     PUSH32(esp, edi); /* 0x38027F93: push edi */
   2509     edi = ecx; /* 0x38027F94: mov edi, ecx */
   2510     PUSH32(esp, esi); /* 0x38027F96: push esi */
   2511     MEM32(esi + 0x40) = 0; /* 0x38027F97: mov dword ptr [esi + 0x40], 0 */
   2512     RECOMP_ICALL(MEM32(0x3804E440)); /* 0x38027F9E: call dword ptr [0x3804e440] */
   2513     RECOMP_FLAGS_IN();
   2514     /* test LO8(eax), LO8(eax) */ /* 0x38027FA4: test al, al */
   2515     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   2516     _cf = 0;
   2517     _flag_k = FK_NARROW(FK_TEST, 24);
   2518     if (TEST_Z(_flag_a, _flag_b)) goto L_38028306; /* 0x38027FA6: je 0x38028306 */
   2519 L_38027FAC:
   2520     eax = MEM32(edi + 0x10); /* 0x38027FAC: mov eax, dword ptr [edi + 0x10] */
   2521     /* cmp eax, 1 */ /* 0x38027FAF: cmp eax, 1 */
   2522     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2523     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2524     _flag_k = FK_CMP;
   2525     if (CMP_NE(_flag_a, _flag_b)) goto L_38027FD2; /* 0x38027FB2: jne 0x38027fd2 */
   2526 L_38027FB4:
   2527     PUSH32(esp, esi); /* 0x38027FB4: push esi */
   2528     ecx = edi + 0x18; /* 0x38027FB5: lea ecx, [edi + 0x18] */
   2529     RECOMP_ICALL(0x38043A00u); /* 0x38027FB8: call 0x38043a00 */ /* not lifted */
   2530     RECOMP_FLAGS_IN();
   2531     edi = POP32_VAL(esp); /* 0x38027FBD: pop edi */
   2532     esi = POP32_VAL(esp); /* 0x38027FBE: pop esi */
   2533     SET_LO8(eax, 1); /* 0x38027FBF: mov al, 1 */
   2534     ebx = POP32_VAL(esp); /* 0x38027FC1: pop ebx */
   2535     ecx = MEM32(ebp + (-0xC)); /* 0x38027FC2: mov ecx, dword ptr [ebp - 0xc] */
   2536     MEM32(FS_BASE + (0)) = ecx; /* 0x38027FC5: mov dword ptr fs:[0], ecx */
   2537     esp = ebp; /* 0x38027FCC: mov esp, ebp */
   2538     ebp = POP32_VAL(esp); /* 0x38027FCE: pop ebp */
   2539     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38027FCF: ret 4 */
   2540 L_38027FD2:
   2541     /* cmp eax, 3 */ /* 0x38027FD2: cmp eax, 3 */
   2542     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(3);
   2543     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2544     _flag_k = FK_CMP;
   2545     if (CMP_NE(_flag_a, _flag_b)) goto L_38028147; /* 0x38027FD5: jne 0x38028147 */
   2546 L_38027FDB:
   2547     eax = ebp + 0x8; /* 0x38027FDB: lea eax, [ebp + 8] */
   2548     PUSH32(esp, eax); /* 0x38027FDE: push eax */
   2549     ecx = esi; /* 0x38027FDF: mov ecx, esi */
   2550     RECOMP_ICALL(MEM32(0x3804E388)); /* 0x38027FE1: call dword ptr [0x3804e388] */
   2551     RECOMP_FLAGS_IN();
   2552     eax = MEM32(ebp + 0x8); /* 0x38027FE7: mov eax, dword ptr [ebp + 8] */
   2553     /* cmp eax, 0x003D0900u */ /* 0x38027FEA: cmp eax, 0x3d0900 */
   2554     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x003D0900u);
   2555     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2556     _flag_k = FK_CMP;
   2557     if (CMP_A(_flag_a, _flag_b)) goto L_38028306; /* 0x38027FEF: ja 0x38028306 */
   2558 L_38027FF5:
   2559     PUSH32(esp, eax); /* 0x38027FF5: push eax */
   2560     MEM32(ebp + (-0x28)) = eax; /* 0x38027FF6: mov dword ptr [ebp - 0x28], eax */
   2561     RECOMP_ICALL(0x3804B676u); /* 0x38027FF9: call 0x3804b676 */ /* not lifted */
   2562     RECOMP_FLAGS_IN();
   2563     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2564     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2565     esp = esp + 4; /* 0x38027FFE: add esp, 4 */
   2566     _flag_k = FK_ADD;
   2567     ecx = esi; /* 0x38028001: mov ecx, esi */
   2568     MEM32(ebp + (-0x2C)) = eax; /* 0x38028003: mov dword ptr [ebp - 0x2c], eax */
   2569     RECOMP_ICALL(MEM32(0x3804E3C4)); /* 0x38028006: call dword ptr [0x3804e3c4] */
   2570     RECOMP_FLAGS_IN();
   2571     ecx = esi; /* 0x3802800C: mov ecx, esi */
   2572     ebx = eax; /* 0x3802800E: mov ebx, eax */
   2573     RECOMP_ICALL(MEM32(0x3804E398)); /* 0x38028010: call dword ptr [0x3804e398] */
   2574     RECOMP_FLAGS_IN();
   2575     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   2576     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2577     eax = eax - ebx; /* 0x38028016: sub eax, ebx */
   2578     _flag_k = FK_CMP;
   2579     ebx = MEM32(esi + 0x10); /* 0x38028018: mov ebx, dword ptr [esi + 0x10] */
   2580     PUSH32(esp, eax); /* 0x3802801B: push eax */
   2581     ecx = esi; /* 0x3802801C: mov ecx, esi */
   2582     RECOMP_ICALL(MEM32(0x3804E3C4)); /* 0x3802801E: call dword ptr [0x3804e3c4] */
   2583     RECOMP_FLAGS_IN();
   2584     esi = MEM32(ebp + (-0x2C)); /* 0x38028024: mov esi, dword ptr [ebp - 0x2c] */
   2585     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   2586     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2587     eax = eax + ebx; /* 0x38028027: add eax, ebx */
   2588     _flag_k = FK_ADD;
   2589     PUSH32(esp, eax); /* 0x38028029: push eax */
   2590     ecx = ebp + (-0x28); /* 0x3802802A: lea ecx, [ebp - 0x28] */
   2591     PUSH32(esp, ecx); /* 0x3802802D: push ecx */
   2592     PUSH32(esp, esi); /* 0x3802802E: push esi */
   2593     RECOMP_ICALL(0x380480B0u); /* 0x3802802F: call 0x380480b0 */ /* not lifted */
   2594     RECOMP_FLAGS_IN();
   2595     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2596     ebx = 0; /* 0x38028034: xor ebx, ebx */
   2597     _cf = 0;
   2598     _flag_k = FK_TEST;
   2599     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2600     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2601     esp = esp + 0x10u; /* 0x38028036: add esp, 0x10 */
   2602     _flag_k = FK_ADD;
   2603     /* cmp eax, ebx */ /* 0x38028039: cmp eax, ebx */
   2604     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   2605     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2606     _flag_k = FK_CMP;
   2607     if (CMP_NE(_flag_a, _flag_b)) goto L_38028306; /* 0x3802803B: jne 0x38028306 */
   2608 L_38028041:
   2609     edx = MEM32(ebp + 0x8); /* 0x38028041: mov edx, dword ptr [ebp + 8] */
   2610     PUSH32(esp, edx); /* 0x38028044: push edx */
   2611     PUSH32(esp, esi); /* 0x38028045: push esi */
   2612     ecx = ebp + (-0x78); /* 0x38028046: lea ecx, [ebp - 0x78] */
   2613     RECOMP_ICALL(MEM32(0x3804E380)); /* 0x38028049: call dword ptr [0x3804e380] */
   2614     RECOMP_FLAGS_IN();
   2615     esi = MEM32(0x3804E388); /* 0x3802804F: mov esi, dword ptr [0x3804e388] */
   2616     eax = ebp + (-0x20); /* 0x38028055: lea eax, [ebp - 0x20] */
   2617     PUSH32(esp, eax); /* 0x38028058: push eax */
   2618     ecx = ebp + (-0x78); /* 0x38028059: lea ecx, [ebp - 0x78] */
   2619     MEM32(ebp + (-0x4)) = ebx; /* 0x3802805C: mov dword ptr [ebp - 4], ebx */
   2620     MEM32(ebp + (-0x38)) = ebx; /* 0x3802805F: mov dword ptr [ebp - 0x38], ebx */
   2621     MEM8(ebp + (-0x54)) = (uint8_t)(1); /* 0x38028062: mov byte ptr [ebp - 0x54], 1 */
   2622     RECOMP_ICALL(esi); /* 0x38028066: call esi */
   2623     RECOMP_FLAGS_IN();
   2624     /* cmp MEM32(ebp + (-0x20)), ebx */ /* 0x38028068: cmp dword ptr [ebp - 0x20], ebx */
   2625     _flag_a = (uint32_t)(MEM32(ebp + (-0x20))); _flag_b = (uint32_t)(ebx);
   2626     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2627     _flag_k = FK_CMP;
   2628     if (CMP_EQ(_flag_a, _flag_b)) goto L_38028079; /* 0x3802806B: je 0x38028079 */
   2629 L_3802806D:
   2630     ecx = ebp + (-0x78); /* 0x3802806D: lea ecx, [ebp - 0x78] */
   2631     PUSH32(esp, ecx); /* 0x38028070: push ecx */
   2632     ecx = edi + 0x18; /* 0x38028071: lea ecx, [edi + 0x18] */
   2633     RECOMP_ICALL(0x38043A00u); /* 0x38028074: call 0x38043a00 */ /* not lifted */
   2634     RECOMP_FLAGS_IN();
   2635 L_38028079:
   2636     edx = ebp + (-0x30); /* 0x38028079: lea edx, [ebp - 0x30] */
   2637     PUSH32(esp, edx); /* 0x3802807C: push edx */
   2638     ecx = ebp + (-0x78); /* 0x3802807D: lea ecx, [ebp - 0x78] */
   2639     RECOMP_ICALL(esi); /* 0x38028080: call esi */
   2640     RECOMP_FLAGS_IN();
   2641     /* cmp MEM32(ebp + (-0x30)), ebx */ /* 0x38028082: cmp dword ptr [ebp - 0x30], ebx */
   2642     _flag_a = (uint32_t)(MEM32(ebp + (-0x30))); _flag_b = (uint32_t)(ebx);
   2643     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2644     _flag_k = FK_CMP;
   2645     if (CMP_EQ(_flag_a, _flag_b)) goto L_380280B8; /* 0x38028085: je 0x380280b8 */
   2646 L_38028087:
   2647     PUSH32(esp, 0x10u); /* 0x38028087: push 0x10 */
   2648     RECOMP_ICALL(0x3804B676u); /* 0x38028089: call 0x3804b676 */ /* not lifted */
   2649     RECOMP_FLAGS_IN();
   2650     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2651     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2652     esp = esp + 4; /* 0x3802808E: add esp, 4 */
   2653     _flag_k = FK_ADD;
   2654     MEM32(ebp + (-0x10)) = eax; /* 0x38028091: mov dword ptr [ebp - 0x10], eax */
   2655     /* cmp eax, ebx */ /* 0x38028094: cmp eax, ebx */
   2656     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   2657     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2658     _flag_k = FK_CMP;
   2659     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x38028096: mov byte ptr [ebp - 4], 1 */
   2660     if (CMP_EQ(_flag_a, _flag_b)) goto L_380280A5; /* 0x3802809A: je 0x380280a5 */
   2661 L_3802809C:
   2662     ecx = eax; /* 0x3802809C: mov ecx, eax */
   2663     RECOMP_ICALL(0x380438A0u); /* 0x3802809E: call 0x380438a0 */ /* not lifted */
   2664     RECOMP_FLAGS_IN();
   2665     goto L_380280A7; /* 0x380280A3: jmp 0x380280a7 */
   2666 L_380280A5:
   2667     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2668     eax = 0; /* 0x380280A5: xor eax, eax */
   2669     _cf = 0;
   2670     _flag_k = FK_TEST;
   2671 L_380280A7:
   2672     ecx = ebp + (-0x78); /* 0x380280A7: lea ecx, [ebp - 0x78] */
   2673     PUSH32(esp, ecx); /* 0x380280AA: push ecx */
   2674     ecx = eax; /* 0x380280AB: mov ecx, eax */
   2675     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x380280AD: mov byte ptr [ebp - 4], bl */
   2676     MEM32(edi + 0x28) = eax; /* 0x380280B0: mov dword ptr [edi + 0x28], eax */
   2677     RECOMP_ICALL(0x38043A00u); /* 0x380280B3: call 0x38043a00 */ /* not lifted */
   2678     RECOMP_FLAGS_IN();
   2679 L_380280B8:
   2680     edx = ebp + (-0x18); /* 0x380280B8: lea edx, [ebp - 0x18] */
   2681     PUSH32(esp, edx); /* 0x380280BB: push edx */
   2682     ecx = ebp + (-0x78); /* 0x380280BC: lea ecx, [ebp - 0x78] */
   2683     RECOMP_ICALL(esi); /* 0x380280BF: call esi */
   2684     RECOMP_FLAGS_IN();
   2685     /* cmp MEM32(ebp + (-0x18)), ebx */ /* 0x380280C1: cmp dword ptr [ebp - 0x18], ebx */
   2686     _flag_a = (uint32_t)(MEM32(ebp + (-0x18))); _flag_b = (uint32_t)(ebx);
   2687     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2688     _flag_k = FK_CMP;
   2689     if (CMP_EQ(_flag_a, _flag_b)) goto L_38028122; /* 0x380280C4: je 0x38028122 */
   2690 L_380280C6:
   2691     PUSH32(esp, 0x10u); /* 0x380280C6: push 0x10 */
   2692     RECOMP_ICALL(0x3804B676u); /* 0x380280C8: call 0x3804b676 */ /* not lifted */
   2693     RECOMP_FLAGS_IN();
   2694     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2695     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2696     esp = esp + 4; /* 0x380280CD: add esp, 4 */
   2697     _flag_k = FK_ADD;
   2698     MEM32(ebp + (-0x10)) = eax; /* 0x380280D0: mov dword ptr [ebp - 0x10], eax */
   2699     /* cmp eax, ebx */ /* 0x380280D3: cmp eax, ebx */
   2700     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   2701     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2702     _flag_k = FK_CMP;
   2703     MEM8(ebp + (-0x4)) = (uint8_t)(2); /* 0x380280D5: mov byte ptr [ebp - 4], 2 */
   2704     if (CMP_EQ(_flag_a, _flag_b)) goto L_380280E4; /* 0x380280D9: je 0x380280e4 */
   2705 L_380280DB:
   2706     ecx = eax; /* 0x380280DB: mov ecx, eax */
   2707     RECOMP_ICALL(0x380438A0u); /* 0x380280DD: call 0x380438a0 */ /* not lifted */
   2708     RECOMP_FLAGS_IN();
   2709     goto L_380280E6; /* 0x380280E2: jmp 0x380280e6 */
   2710 L_380280E4:
   2711     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2712     eax = 0; /* 0x380280E4: xor eax, eax */
   2713     _cf = 0;
   2714     _flag_k = FK_TEST;
   2715 L_380280E6:
   2716     ecx = ebp + (-0x78); /* 0x380280E6: lea ecx, [ebp - 0x78] */
   2717     PUSH32(esp, ecx); /* 0x380280E9: push ecx */
   2718     ecx = eax; /* 0x380280EA: mov ecx, eax */
   2719     MEM8(ebp + (-0x4)) = (uint8_t)(LO8(ebx)); /* 0x380280EC: mov byte ptr [ebp - 4], bl */
   2720     MEM32(edi + 0x2C) = eax; /* 0x380280EF: mov dword ptr [edi + 0x2c], eax */
   2721     RECOMP_ICALL(0x38043A00u); /* 0x380280F2: call 0x38043a00 */ /* not lifted */
   2722     RECOMP_FLAGS_IN();
   2723     esi = edi + 0x38; /* 0x380280F7: lea esi, [edi + 0x38] */
   2724     PUSH32(esp, esi); /* 0x380280FA: push esi */
   2725     ecx = ebp + (-0x78); /* 0x380280FB: lea ecx, [ebp - 0x78] */
   2726     RECOMP_ICALL(MEM32(0x3804E388)); /* 0x380280FE: call dword ptr [0x3804e388] */
   2727     RECOMP_FLAGS_IN();
   2728     ebx = edi + 0x3C; /* 0x38028104: lea ebx, [edi + 0x3c] */
   2729     PUSH32(esp, ebx); /* 0x38028107: push ebx */
   2730     ecx = ebp + (-0x78); /* 0x38028108: lea ecx, [ebp - 0x78] */
   2731     RECOMP_ICALL(MEM32(0x3804E388)); /* 0x3802810B: call dword ptr [0x3804e388] */
   2732     RECOMP_FLAGS_IN();
   2733     edx = MEM32(ebx); /* 0x38028111: mov edx, dword ptr [ebx] */
   2734     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFu);
   2735     edx = edx & 0xFFFFu; /* 0x38028113: and edx, 0xffff */
   2736     _cf = 0;
   2737     _flag_k = FK_TEST;
   2738     MEM32(edi + 0x34) = edx; /* 0x38028119: mov dword ptr [edi + 0x34], edx */
   2739     MEM32(esi) = 0x000186A1u; /* 0x3802811C: mov dword ptr [esi], 0x186a1 */
   2740 L_38028122:
   2741     ecx = ebp + (-0x78); /* 0x38028122: lea ecx, [ebp - 0x78] */
   2742     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x38028125: mov dword ptr [ebp - 4], 0xffffffff */
   2743     RECOMP_ICALL(MEM32(0x3804E378)); /* 0x3802812C: call dword ptr [0x3804e378] */
   2744     RECOMP_FLAGS_IN();
   2745     edi = POP32_VAL(esp); /* 0x38028132: pop edi */
   2746     esi = POP32_VAL(esp); /* 0x38028133: pop esi */
   2747     SET_LO8(eax, 1); /* 0x38028134: mov al, 1 */
   2748     ebx = POP32_VAL(esp); /* 0x38028136: pop ebx */
   2749     ecx = MEM32(ebp + (-0xC)); /* 0x38028137: mov ecx, dword ptr [ebp - 0xc] */
   2750     MEM32(FS_BASE + (0)) = ecx; /* 0x3802813A: mov dword ptr fs:[0], ecx */
   2751     esp = ebp; /* 0x38028141: mov esp, ebp */
   2752     ebp = POP32_VAL(esp); /* 0x38028143: pop ebp */
   2753     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38028144: ret 4 */
   2754 L_38028147:
   2755     /* cmp eax, 4 */ /* 0x38028147: cmp eax, 4 */
   2756     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   2757     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2758     _flag_k = FK_CMP;
   2759     if (CMP_NE(_flag_a, _flag_b)) goto L_38028306; /* 0x3802814A: jne 0x38028306 */
   2760 L_38028150:
   2761     eax = ebp + (-0x14); /* 0x38028150: lea eax, [ebp - 0x14] */
   2762     PUSH32(esp, eax); /* 0x38028153: push eax */
   2763     ecx = esi; /* 0x38028154: mov ecx, esi */
   2764     RECOMP_ICALL(MEM32(0x3804E388)); /* 0x38028156: call dword ptr [0x3804e388] */
   2765     RECOMP_FLAGS_IN();
   2766     eax = MEM32(ebp + (-0x14)); /* 0x3802815C: mov eax, dword ptr [ebp - 0x14] */
   2767     /* cmp eax, 0x003D0900u */ /* 0x3802815F: cmp eax, 0x3d0900 */
   2768     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x003D0900u);
   2769     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2770     _flag_k = FK_CMP;
   2771     if (CMP_A(_flag_a, _flag_b)) goto L_38028306; /* 0x38028164: ja 0x38028306 */
   2772 L_3802816A:
   2773     PUSH32(esp, eax); /* 0x3802816A: push eax */
   2774     MEM32(ebp + (-0x34)) = eax; /* 0x3802816B: mov dword ptr [ebp - 0x34], eax */
   2775     RECOMP_ICALL(0x3804B676u); /* 0x3802816E: call 0x3804b676 */ /* not lifted */
   2776     RECOMP_FLAGS_IN();
   2777     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2778     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2779     esp = esp + 4; /* 0x38028173: add esp, 4 */
   2780     _flag_k = FK_ADD;
   2781     ecx = esi; /* 0x38028176: mov ecx, esi */
   2782     MEM32(ebp + 0x8) = eax; /* 0x38028178: mov dword ptr [ebp + 8], eax */
   2783     RECOMP_ICALL(MEM32(0x3804E3C4)); /* 0x3802817B: call dword ptr [0x3804e3c4] */
   2784     RECOMP_FLAGS_IN();
   2785     ecx = esi; /* 0x38028181: mov ecx, esi */
   2786     ebx = eax; /* 0x38028183: mov ebx, eax */
   2787     RECOMP_ICALL(MEM32(0x3804E398)); /* 0x38028185: call dword ptr [0x3804e398] */
   2788     RECOMP_FLAGS_IN();
   2789     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   2790     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2791     eax = eax - ebx; /* 0x3802818B: sub eax, ebx */
   2792     _flag_k = FK_CMP;
   2793     ebx = MEM32(esi + 0x10); /* 0x3802818D: mov ebx, dword ptr [esi + 0x10] */
   2794     PUSH32(esp, eax); /* 0x38028190: push eax */
   2795     ecx = esi; /* 0x38028191: mov ecx, esi */
   2796     RECOMP_ICALL(MEM32(0x3804E3C4)); /* 0x38028193: call dword ptr [0x3804e3c4] */
   2797     RECOMP_FLAGS_IN();
   2798     esi = MEM32(ebp + 0x8); /* 0x38028199: mov esi, dword ptr [ebp + 8] */
   2799     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   2800     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2801     eax = eax + ebx; /* 0x3802819C: add eax, ebx */
   2802     _flag_k = FK_ADD;
   2803     PUSH32(esp, eax); /* 0x3802819E: push eax */
   2804     ecx = ebp + (-0x34); /* 0x3802819F: lea ecx, [ebp - 0x34] */
   2805     PUSH32(esp, ecx); /* 0x380281A2: push ecx */
   2806     PUSH32(esp, esi); /* 0x380281A3: push esi */
   2807     RECOMP_ICALL(0x380480B0u); /* 0x380281A4: call 0x380480b0 */ /* not lifted */
   2808     RECOMP_FLAGS_IN();
   2809     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2810     ebx = 0; /* 0x380281A9: xor ebx, ebx */
   2811     _cf = 0;
   2812     _flag_k = FK_TEST;
   2813     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2814     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2815     esp = esp + 0x10u; /* 0x380281AB: add esp, 0x10 */
   2816     _flag_k = FK_ADD;
   2817     /* cmp eax, ebx */ /* 0x380281AE: cmp eax, ebx */
   2818     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   2819     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2820     _flag_k = FK_CMP;
   2821     if (CMP_NE(_flag_a, _flag_b)) goto L_38028306; /* 0x380281B0: jne 0x38028306 */
   2822 L_380281B6:
   2823     edx = MEM32(ebp + (-0x14)); /* 0x380281B6: mov edx, dword ptr [ebp - 0x14] */
   2824     PUSH32(esp, edx); /* 0x380281B9: push edx */
   2825     PUSH32(esp, esi); /* 0x380281BA: push esi */
   2826     ecx = ebp + (-0xBC); /* 0x380281BB: lea ecx, [ebp - 0xbc] */
   2827     RECOMP_ICALL(MEM32(0x3804E380)); /* 0x380281C1: call dword ptr [0x3804e380] */
   2828     RECOMP_FLAGS_IN();
   2829     esi = MEM32(0x3804E388); /* 0x380281C7: mov esi, dword ptr [0x3804e388] */
   2830     eax = ebp + (-0x1C); /* 0x380281CD: lea eax, [ebp - 0x1c] */
   2831     PUSH32(esp, eax); /* 0x380281D0: push eax */
   2832     ecx = ebp + (-0xBC); /* 0x380281D1: lea ecx, [ebp - 0xbc] */
   2833     MEM32(ebp + (-0x4)) = 3; /* 0x380281D7: mov dword ptr [ebp - 4], 3 */
   2834     MEM32(ebp + (-0x7C)) = ebx; /* 0x380281DE: mov dword ptr [ebp - 0x7c], ebx */
   2835     MEM8(ebp + (-0x98)) = (uint8_t)(1); /* 0x380281E1: mov byte ptr [ebp - 0x98], 1 */
   2836     RECOMP_ICALL(esi); /* 0x380281E8: call esi */
   2837     RECOMP_FLAGS_IN();
   2838     /* cmp MEM32(ebp + (-0x1C)), ebx */ /* 0x380281EA: cmp dword ptr [ebp - 0x1c], ebx */
   2839     _flag_a = (uint32_t)(MEM32(ebp + (-0x1C))); _flag_b = (uint32_t)(ebx);
   2840     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2841     _flag_k = FK_CMP;
   2842     if (CMP_EQ(_flag_a, _flag_b)) goto L_380281FE; /* 0x380281ED: je 0x380281fe */
   2843 L_380281EF:
   2844     ecx = ebp + (-0xBC); /* 0x380281EF: lea ecx, [ebp - 0xbc] */
   2845     PUSH32(esp, ecx); /* 0x380281F5: push ecx */
   2846     ecx = edi + 0x18; /* 0x380281F6: lea ecx, [edi + 0x18] */
   2847     RECOMP_ICALL(0x38043A00u); /* 0x380281F9: call 0x38043a00 */ /* not lifted */
   2848     RECOMP_FLAGS_IN();
   2849 L_380281FE:
   2850     edx = ebp + (-0x24); /* 0x380281FE: lea edx, [ebp - 0x24] */
   2851     PUSH32(esp, edx); /* 0x38028201: push edx */
   2852     ecx = ebp + (-0xBC); /* 0x38028202: lea ecx, [ebp - 0xbc] */
   2853     RECOMP_ICALL(esi); /* 0x38028208: call esi */
   2854     RECOMP_FLAGS_IN();
   2855     /* cmp MEM32(ebp + (-0x24)), ebx */ /* 0x3802820A: cmp dword ptr [ebp - 0x24], ebx */
   2856     _flag_a = (uint32_t)(MEM32(ebp + (-0x24))); _flag_b = (uint32_t)(ebx);
   2857     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2858     _flag_k = FK_CMP;
   2859     if (CMP_EQ(_flag_a, _flag_b)) goto L_38028244; /* 0x3802820D: je 0x38028244 */
   2860 L_3802820F:
   2861     PUSH32(esp, 0x10u); /* 0x3802820F: push 0x10 */
   2862     RECOMP_ICALL(0x3804B676u); /* 0x38028211: call 0x3804b676 */ /* not lifted */
   2863     RECOMP_FLAGS_IN();
   2864     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2865     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2866     esp = esp + 4; /* 0x38028216: add esp, 4 */
   2867     _flag_k = FK_ADD;
   2868     MEM32(ebp + 0x8) = eax; /* 0x38028219: mov dword ptr [ebp + 8], eax */
   2869     /* cmp eax, ebx */ /* 0x3802821C: cmp eax, ebx */
   2870     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   2871     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2872     _flag_k = FK_CMP;
   2873     MEM8(ebp + (-0x4)) = (uint8_t)(4); /* 0x3802821E: mov byte ptr [ebp - 4], 4 */
   2874     if (CMP_EQ(_flag_a, _flag_b)) goto L_3802822D; /* 0x38028222: je 0x3802822d */
   2875 L_38028224:
   2876     ecx = eax; /* 0x38028224: mov ecx, eax */
   2877     RECOMP_ICALL(0x380438A0u); /* 0x38028226: call 0x380438a0 */ /* not lifted */
   2878     RECOMP_FLAGS_IN();
   2879     goto L_3802822F; /* 0x3802822B: jmp 0x3802822f */
   2880 L_3802822D:
   2881     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2882     eax = 0; /* 0x3802822D: xor eax, eax */
   2883     _cf = 0;
   2884     _flag_k = FK_TEST;
   2885 L_3802822F:
   2886     ecx = ebp + (-0xBC); /* 0x3802822F: lea ecx, [ebp - 0xbc] */
   2887     PUSH32(esp, ecx); /* 0x38028235: push ecx */
   2888     ecx = eax; /* 0x38028236: mov ecx, eax */
   2889     MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x38028238: mov byte ptr [ebp - 4], 3 */
   2890     MEM32(edi + 0x28) = eax; /* 0x3802823C: mov dword ptr [edi + 0x28], eax */
   2891     RECOMP_ICALL(0x38043A00u); /* 0x3802823F: call 0x38043a00 */ /* not lifted */
   2892     RECOMP_FLAGS_IN();
   2893 L_38028244:
   2894     edx = ebp + (-0x10); /* 0x38028244: lea edx, [ebp - 0x10] */
   2895     PUSH32(esp, edx); /* 0x38028247: push edx */
   2896     ecx = ebp + (-0xBC); /* 0x38028248: lea ecx, [ebp - 0xbc] */
   2897     RECOMP_ICALL(esi); /* 0x3802824E: call esi */
   2898     RECOMP_FLAGS_IN();
   2899     /* cmp MEM32(ebp + (-0x10)), ebx */ /* 0x38028250: cmp dword ptr [ebp - 0x10], ebx */
   2900     _flag_a = (uint32_t)(MEM32(ebp + (-0x10))); _flag_b = (uint32_t)(ebx);
   2901     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2902     _flag_k = FK_CMP;
   2903     if (CMP_EQ(_flag_a, _flag_b)) goto L_380282DE; /* 0x38028253: je 0x380282de */
   2904 L_38028259:
   2905     PUSH32(esp, 0x48u); /* 0x38028259: push 0x48 */
   2906     RECOMP_ICALL(0x3804B676u); /* 0x3802825B: call 0x3804b676 */ /* not lifted */
   2907     RECOMP_FLAGS_IN();
   2908     esi = eax; /* 0x38028260: mov esi, eax */
   2909     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2910     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2911     esp = esp + 4; /* 0x38028262: add esp, 4 */
   2912     _flag_k = FK_ADD;
   2913     MEM32(ebp + 0x8) = esi; /* 0x38028265: mov dword ptr [ebp + 8], esi */
   2914     /* cmp esi, ebx */ /* 0x38028268: cmp esi, ebx */
   2915     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ebx);
   2916     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2917     _flag_k = FK_CMP;
   2918     if (CMP_EQ(_flag_a, _flag_b)) goto L_38028296; /* 0x3802826A: je 0x38028296 */
   2919 L_3802826C:
   2920     SET_LO8(eax, MEM8(ebp + 0xB)); /* 0x3802826C: mov al, byte ptr [ebp + 0xb] */
   2921     MEM8(esi + 0x4) = (uint8_t)(LO8(eax)); /* 0x3802826F: mov byte ptr [esi + 4], al */
   2922     MEM32(esi + 0x8) = ebx; /* 0x38028272: mov dword ptr [esi + 8], ebx */
   2923     MEM32(esi + 0xC) = ebx; /* 0x38028275: mov dword ptr [esi + 0xc], ebx */
   2924     MEM32(esi + 0x10) = ebx; /* 0x38028278: mov dword ptr [esi + 0x10], ebx */
   2925     ecx = esi + 0x1C; /* 0x3802827B: lea ecx, [esi + 0x1c] */
   2926     MEM8(ebp + (-0x4)) = (uint8_t)(6); /* 0x3802827E: mov byte ptr [ebp - 4], 6 */
   2927     MEM32(esi + 0x14) = ebx; /* 0x38028282: mov dword ptr [esi + 0x14], ebx */
   2928     MEM32(esi + 0x18) = ebx; /* 0x38028285: mov dword ptr [esi + 0x18], ebx */
   2929     RECOMP_ICALL(MEM32(0x3804E5FC)); /* 0x38028288: call dword ptr [0x3804e5fc] */
   2930     RECOMP_FLAGS_IN();
   2931     MEM32(esi) = 0x3804F48Cu; /* 0x3802828E: mov dword ptr [esi], 0x3804f48c */
   2932     goto L_38028298; /* 0x38028294: jmp 0x38028298 */
   2933 L_38028296:
   2934     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2935     esi = 0; /* 0x38028296: xor esi, esi */
   2936     _cf = 0;
   2937     _flag_k = FK_TEST;
   2938 L_38028298:
   2939     ecx = ebp + (-0xBC); /* 0x38028298: lea ecx, [ebp - 0xbc] */
   2940     PUSH32(esp, ecx); /* 0x3802829E: push ecx */
   2941     ecx = esi; /* 0x3802829F: mov ecx, esi */
   2942     MEM8(ebp + (-0x4)) = (uint8_t)(3); /* 0x380282A1: mov byte ptr [ebp - 4], 3 */
   2943     MEM32(edi + 0x30) = esi; /* 0x380282A5: mov dword ptr [edi + 0x30], esi */
   2944     RECOMP_ICALL(0x3803F8D0u); /* 0x380282A8: call 0x3803f8d0 */ /* not lifted */
   2945     RECOMP_FLAGS_IN();
   2946     esi = edi + 0x38; /* 0x380282AD: lea esi, [edi + 0x38] */
   2947     PUSH32(esp, esi); /* 0x380282B0: push esi */
   2948     ecx = ebp + (-0xBC); /* 0x380282B1: lea ecx, [ebp - 0xbc] */
   2949     RECOMP_ICALL(MEM32(0x3804E388)); /* 0x380282B7: call dword ptr [0x3804e388] */
   2950     RECOMP_FLAGS_IN();
   2951     ebx = edi + 0x3C; /* 0x380282BD: lea ebx, [edi + 0x3c] */
   2952     PUSH32(esp, ebx); /* 0x380282C0: push ebx */
   2953     ecx = ebp + (-0xBC); /* 0x380282C1: lea ecx, [ebp - 0xbc] */
   2954     RECOMP_ICALL(MEM32(0x3804E388)); /* 0x380282C7: call dword ptr [0x3804e388] */
   2955     RECOMP_FLAGS_IN();
   2956     edx = MEM32(ebx); /* 0x380282CD: mov edx, dword ptr [ebx] */
   2957     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0xFFFFu);
   2958     edx = edx & 0xFFFFu; /* 0x380282CF: and edx, 0xffff */
   2959     _cf = 0;
   2960     _flag_k = FK_TEST;
   2961     MEM32(edi + 0x34) = edx; /* 0x380282D5: mov dword ptr [edi + 0x34], edx */
   2962     MEM32(esi) = 0x000186A1u; /* 0x380282D8: mov dword ptr [esi], 0x186a1 */
   2963 L_380282DE:
   2964     ecx = ebp + (-0xBC); /* 0x380282DE: lea ecx, [ebp - 0xbc] */
   2965     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x380282E4: mov dword ptr [ebp - 4], 0xffffffff */
   2966     RECOMP_ICALL(MEM32(0x3804E378)); /* 0x380282EB: call dword ptr [0x3804e378] */
   2967     RECOMP_FLAGS_IN();
   2968     edi = POP32_VAL(esp); /* 0x380282F1: pop edi */
   2969     esi = POP32_VAL(esp); /* 0x380282F2: pop esi */
   2970     SET_LO8(eax, 1); /* 0x380282F3: mov al, 1 */
   2971     ebx = POP32_VAL(esp); /* 0x380282F5: pop ebx */
   2972     ecx = MEM32(ebp + (-0xC)); /* 0x380282F6: mov ecx, dword ptr [ebp - 0xc] */
   2973     MEM32(FS_BASE + (0)) = ecx; /* 0x380282F9: mov dword ptr fs:[0], ecx */
   2974     esp = ebp; /* 0x38028300: mov esp, ebp */
   2975     ebp = POP32_VAL(esp); /* 0x38028302: pop ebp */
   2976     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38028303: ret 4 */
   2977 L_38028306:
   2978     ecx = MEM32(ebp + (-0xC)); /* 0x38028306: mov ecx, dword ptr [ebp - 0xc] */
   2979     edi = POP32_VAL(esp); /* 0x38028309: pop edi */
   2980     esi = POP32_VAL(esp); /* 0x3802830A: pop esi */
   2981     _flag_a = (uint32_t)(0) << 24; _flag_b = (uint32_t)(0) << 24;
   2982     SET_LO8(eax, 0); /* 0x3802830B: xor al, al */
   2983     _cf = 0;
   2984     _flag_k = FK_NARROW(FK_TEST, 24);
   2985     ebx = POP32_VAL(esp); /* 0x3802830D: pop ebx */
   2986     MEM32(FS_BASE + (0)) = ecx; /* 0x3802830E: mov dword ptr fs:[0], ecx */
   2987     esp = ebp; /* 0x38028315: mov esp, ebp */
   2988     ebp = POP32_VAL(esp); /* 0x38028317: pop ebp */
   2989     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38028318: ret 4 */
   2990     RECOMP_REGS_OUT();
   2991 }
   2992 
   2993 void sub_38028320(void) {
   2994     int _fpu_cmp = 0;
   2995     uint32_t _cf = 0;
   2996     int _df = 1;
   2997     uint32_t _flag_k = FK_NONE;
   2998     uint32_t _flag_a = 0, _flag_b = 0;
   2999     uint32_t _itail_tgt = 0;
   3000     RECOMP_REGS_LOCALS
   3001     RECOMP_ENTER(0x38028320u);
   3002 
   3003 L_38028320:
   3004     PUSH32(esp, ebp); /* 0x38028320: push ebp */
   3005     ebp = esp; /* 0x38028321: mov ebp, esp */
   3006     PUSH32(esp, esi); /* 0x38028323: push esi */
   3007     esi = ecx; /* 0x38028324: mov esi, ecx */
   3008     RECOMP_ICALL(0x3803F870u); /* 0x38028326: call 0x3803f870 */ /* not lifted */
   3009     RECOMP_FLAGS_IN();
   3010     /* test MEM8(ebp + 0x8), 1 */ /* 0x3802832B: test byte ptr [ebp + 8], 1 */
   3011     _flag_a = (uint32_t)(MEM8(ebp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   3012     _cf = 0;
   3013     _flag_k = FK_NARROW(FK_TEST, 24);
   3014     if (TEST_Z(_flag_a, _flag_b)) goto L_3802833A; /* 0x3802832F: je 0x3802833a */
   3015 L_38028331:
   3016     PUSH32(esp, esi); /* 0x38028331: push esi */
   3017     RECOMP_ICALL(0x3804B4F6u); /* 0x38028332: call 0x3804b4f6 */ /* not lifted */
   3018     RECOMP_FLAGS_IN();
   3019     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3020     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3021     esp = esp + 4; /* 0x38028337: add esp, 4 */
   3022     _flag_k = FK_ADD;
   3023 L_3802833A:
   3024     eax = esi; /* 0x3802833A: mov eax, esi */
   3025     esi = POP32_VAL(esp); /* 0x3802833C: pop esi */
   3026     ebp = POP32_VAL(esp); /* 0x3802833D: pop ebp */
   3027     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3802833E: ret 4 */
   3028     RECOMP_REGS_OUT();
   3029 }
   3030 
   3031 void sub_38028350(void) {
   3032     int _fpu_cmp = 0;
   3033     uint32_t _cf = 0;
   3034     int _df = 1;
   3035     uint32_t _flag_k = FK_NONE;
   3036     uint32_t _flag_a = 0, _flag_b = 0;
   3037     uint32_t _itail_tgt = 0;
   3038     RECOMP_REGS_LOCALS
   3039     RECOMP_ENTER(0x38028350u);
   3040 
   3041 L_38028350:
   3042     PUSH32(esp, ebp); /* 0x38028350: push ebp */
   3043     ebp = esp; /* 0x38028351: mov ebp, esp */
   3044     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x28u);
   3045     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3046     esp = esp - 0x28u; /* 0x38028353: sub esp, 0x28 */
   3047     _flag_k = FK_CMP;
   3048     PUSH32(esp, ebx); /* 0x38028356: push ebx */
   3049     PUSH32(esp, esi); /* 0x38028357: push esi */
   3050     PUSH32(esp, edi); /* 0x38028358: push edi */
   3051     edi = ecx; /* 0x38028359: mov edi, ecx */
   3052     esi = edi + (-0x18); /* 0x3802835B: lea esi, [edi - 0x18] */
   3053     ecx = esi; /* 0x3802835E: mov ecx, esi */
   3054     MEM32(ebp + (-0x4)) = edi; /* 0x38028360: mov dword ptr [ebp - 4], edi */
   3055     RECOMP_ICALL(0x38037B10u); /* 0x38028363: call 0x38037b10 */ /* not lifted */
   3056     RECOMP_FLAGS_IN();
   3057     /* test eax, eax */ /* 0x38028368: test eax, eax */
   3058     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3059     _cf = 0;
   3060     _flag_k = FK_TEST;
   3061     if (TEST_Z(_flag_a, _flag_b)) goto L_380284E0; /* 0x3802836A: je 0x380284e0 */
   3062 L_38028370:
   3063     SET_LO8(eax, MEM8(0x3806C7EC)); /* 0x38028370: mov al, byte ptr [0x3806c7ec] */
   3064     /* test LO8(eax), LO8(eax) */ /* 0x38028375: test al, al */
   3065     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3066     _cf = 0;
   3067     _flag_k = FK_NARROW(FK_TEST, 24);
   3068     if (TEST_Z(_flag_a, _flag_b)) goto L_380284E0; /* 0x38028377: je 0x380284e0 */
   3069 L_3802837D:
   3070     ecx = esi; /* 0x3802837D: mov ecx, esi */
   3071     MEM32(ebp + (-0x10)) = 0; /* 0x3802837F: mov dword ptr [ebp - 0x10], 0 */
   3072     MEM32(ebp + (-0xC)) = 0; /* 0x38028386: mov dword ptr [ebp - 0xc], 0 */
   3073     MEM32(ebp + (-0x8)) = 0; /* 0x3802838D: mov dword ptr [ebp - 8], 0 */
   3074     MEM32(ebp + (-0x1C)) = 0; /* 0x38028394: mov dword ptr [ebp - 0x1c], 0 */
   3075     MEM32(ebp + (-0x18)) = 0; /* 0x3802839B: mov dword ptr [ebp - 0x18], 0 */
   3076     MEM32(ebp + (-0x14)) = 0; /* 0x380283A2: mov dword ptr [ebp - 0x14], 0 */
   3077     RECOMP_ICALL(0x38037B10u); /* 0x380283A9: call 0x38037b10 */ /* not lifted */
   3078     RECOMP_FLAGS_IN();
   3079     edi = MEM32(ebp + 0x18); /* 0x380283AE: mov edi, dword ptr [ebp + 0x18] */
   3080     ebx = MEM32(ebp + 0xC); /* 0x380283B1: mov ebx, dword ptr [ebp + 0xc] */
   3081     esi = MEM32(ebp + 0x8); /* 0x380283B4: mov esi, dword ptr [ebp + 8] */
   3082     edx = MEM32(eax); /* 0x380283B7: mov edx, dword ptr [eax] */
   3083     PUSH32(esp, 0); /* 0x380283B9: push 0 */
   3084     PUSH32(esp, edi); /* 0x380283BB: push edi */
   3085     ecx = ebp + (-0x1C); /* 0x380283BC: lea ecx, [ebp - 0x1c] */
   3086     PUSH32(esp, ecx); /* 0x380283BF: push ecx */
   3087     ecx = ebp + (-0x10); /* 0x380283C0: lea ecx, [ebp - 0x10] */
   3088     PUSH32(esp, ecx); /* 0x380283C3: push ecx */
   3089     PUSH32(esp, ebx); /* 0x380283C4: push ebx */
   3090     PUSH32(esp, esi); /* 0x380283C5: push esi */
   3091     ecx = eax; /* 0x380283C6: mov ecx, eax */
   3092     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x380283C8: call dword ptr [edx + 0x10] */
   3093     RECOMP_FLAGS_IN();
   3094     edx = MEM32(ebp + 0x14); /* 0x380283CB: mov edx, dword ptr [ebp + 0x14] */
   3095     ecx = MEM32(ebp + (-0x4)); /* 0x380283CE: mov ecx, dword ptr [ebp - 4] */
   3096     PUSH32(esp, 0); /* 0x380283D1: push 0 */
   3097     PUSH32(esp, edi); /* 0x380283D3: push edi */
   3098     edi = MEM32(ebp + 0x10); /* 0x380283D4: mov edi, dword ptr [ebp + 0x10] */
   3099     PUSH32(esp, edx); /* 0x380283D7: push edx */
   3100     PUSH32(esp, edi); /* 0x380283D8: push edi */
   3101     PUSH32(esp, ebx); /* 0x380283D9: push ebx */
   3102     PUSH32(esp, esi); /* 0x380283DA: push esi */
   3103     MEM8(ebp + 0x1B) = (uint8_t)(LO8(eax)); /* 0x380283DB: mov byte ptr [ebp + 0x1b], al */
   3104     RECOMP_ICALL(0x38046190u); /* 0x380283DE: call 0x38046190 */ /* not lifted */
   3105     RECOMP_FLAGS_IN();
   3106     SET_LO8(ecx, MEM8(ebp + 0x1B)); /* 0x380283E3: mov cl, byte ptr [ebp + 0x1b] */
   3107     /* test LO8(ecx), LO8(ecx) */ /* 0x380283E6: test cl, cl */
   3108     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   3109     _cf = 0;
   3110     _flag_k = FK_NARROW(FK_TEST, 24);
   3111     if (TEST_Z(_flag_a, _flag_b)) goto L_380284FD; /* 0x380283E8: je 0x380284fd */
   3112 L_380283EE:
   3113     /* test LO8(eax), LO8(eax) */ /* 0x380283EE: test al, al */
   3114     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3115     _cf = 0;
   3116     _flag_k = FK_NARROW(FK_TEST, 24);
   3117     if (TEST_Z(_flag_a, _flag_b)) goto L_380284B0; /* 0x380283F0: je 0x380284b0 */
   3118 L_380283F6:
   3119     eax = esi; /* 0x380283F6: mov eax, esi */
   3120     ecx = MEM32(eax); /* 0x380283F8: mov ecx, dword ptr [eax] */
   3121     edx = MEM32(eax + 0x4); /* 0x380283FA: mov edx, dword ptr [eax + 4] */
   3122     eax = MEM32(eax + 0x8); /* 0x380283FD: mov eax, dword ptr [eax + 8] */
   3123     MEM32(ebp + (-0x28)) = ecx; /* 0x38028400: mov dword ptr [ebp - 0x28], ecx */
   3124     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38028403: fld dword ptr [ebp - 0x28] */
   3125     _st[0] -= (double)*(float*)ADDR(edi); /* 0x38028406: fsub dword ptr [edi] */
   3126     ecx = MEM32(esi); /* 0x38028408: mov ecx, dword ptr [esi] */
   3127     MEM32(ebp + (-0x24)) = edx; /* 0x3802840A: mov dword ptr [ebp - 0x24], edx */
   3128     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3802840D: fld dword ptr [ebp - 0x24] */
   3129     _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x38028410: fsub dword ptr [edi + 4] */
   3130     edx = MEM32(esi + 0x4); /* 0x38028413: mov edx, dword ptr [esi + 4] */
   3131     MEM32(ebp + (-0x20)) = eax; /* 0x38028416: mov dword ptr [ebp - 0x20], eax */
   3132     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x38028419: fld dword ptr [ebp - 0x20] */
   3133     _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x3802841C: fsub dword ptr [edi + 8] */
   3134     eax = MEM32(esi + 0x8); /* 0x3802841F: mov eax, dword ptr [esi + 8] */
   3135     MEM32(ebp + (-0x28)) = ecx; /* 0x38028422: mov dword ptr [ebp - 0x28], ecx */
   3136     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38028425: fld dword ptr [ebp - 0x28] */
   3137     _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x38028428: fsub dword ptr [ebp - 0x10] */
   3138     MEM32(ebp + (-0x24)) = edx; /* 0x3802842B: mov dword ptr [ebp - 0x24], edx */
   3139     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3802842E: fld dword ptr [ebp - 0x24] */
   3140     MEM32(ebp + (-0x20)) = eax; /* 0x38028431: mov dword ptr [ebp - 0x20], eax */
   3141     _st[0] -= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x38028434: fsub dword ptr [ebp - 0xc] */
   3142     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x38028437: fld dword ptr [ebp - 0x20] */
   3143     _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3802843A: fsub dword ptr [ebp - 8] */
   3144     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3802843D: fstp dword ptr [ebp - 0x20] */
   3145     fp_push(_st[2]); /* 0x38028440: fld st(2) */
   3146     _st[0] *= _st[3]; /* 0x38028442: fmul st(3) */
   3147     fp_push(_st[5]); /* 0x38028444: fld st(5) */
   3148     _st[0] *= _st[6]; /* 0x38028446: fmul st(6) */
   3149     { double _v = fp_pop(); _st[0] += _v; } /* 0x38028448: faddp st(1) */
   3150     fp_push(_st[4]); /* 0x3802844A: fld st(4) */
   3151     _st[0] *= _st[5]; /* 0x3802844C: fmul st(5) */
   3152     { double _v = fp_pop(); _st[0] += _v; } /* 0x3802844E: faddp st(1) */
   3153     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x38028450: fld dword ptr [ebp - 0x20] */
   3154     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x38028453: fmul dword ptr [ebp - 0x20] */
   3155     fp_push(_st[2]); /* 0x38028456: fld st(2) */
   3156     _st[0] *= _st[3]; /* 0x38028458: fmul st(3) */
   3157     { double _v = fp_pop(); _st[0] += _v; } /* 0x3802845A: faddp st(1) */
   3158     fp_push(_st[3]); /* 0x3802845C: fld st(3) */
   3159     _st[0] *= _st[4]; /* 0x3802845E: fmul st(4) */
   3160     { double _v = fp_pop(); _st[0] += _v; } /* 0x38028460: faddp st(1) */
   3161     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x38028462: fcompp  */
   3162     fp_pop(); fp_pop();
   3163     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38028464: fstp st(0) */
   3164     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38028466: fstp st(0) */
   3165     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38028468: fstp st(0) */
   3166     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3802846A: fnstsw ax */
   3167     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3802846C: fstp st(0) */
   3168     /* test HI8(eax), 0x41u */ /* 0x3802846E: test ah, 0x41 */
   3169     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   3170     _cf = 0;
   3171     _flag_k = FK_NARROW(FK_TEST, 24);
   3172     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38028471: fstp st(0) */
   3173     if (TEST_NZ(_flag_a, _flag_b)) goto L_38028480; /* 0x38028473: jne 0x38028480 */
   3174 L_38028475:
   3175     edi = POP32_VAL(esp); /* 0x38028475: pop edi */
   3176     esi = POP32_VAL(esp); /* 0x38028476: pop esi */
   3177     SET_LO8(eax, 1); /* 0x38028477: mov al, 1 */
   3178     ebx = POP32_VAL(esp); /* 0x38028479: pop ebx */
   3179     esp = ebp; /* 0x3802847A: mov esp, ebp */
   3180     ebp = POP32_VAL(esp); /* 0x3802847C: pop ebp */
   3181     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x3802847D: ret 0x18 */
   3182 L_38028480:
   3183     ecx = MEM32(ebp + (-0x10)); /* 0x38028480: mov ecx, dword ptr [ebp - 0x10] */
   3184     edx = MEM32(ebp + (-0xC)); /* 0x38028483: mov edx, dword ptr [ebp - 0xc] */
   3185     eax = MEM32(ebp + (-0x8)); /* 0x38028486: mov eax, dword ptr [ebp - 8] */
   3186     MEM32(edi) = ecx; /* 0x38028489: mov dword ptr [edi], ecx */
   3187     ecx = MEM32(ebp + (-0x1C)); /* 0x3802848B: mov ecx, dword ptr [ebp - 0x1c] */
   3188     MEM32(edi + 0x4) = edx; /* 0x3802848E: mov dword ptr [edi + 4], edx */
   3189     edx = MEM32(ebp + (-0x18)); /* 0x38028491: mov edx, dword ptr [ebp - 0x18] */
   3190     MEM32(edi + 0x8) = eax; /* 0x38028494: mov dword ptr [edi + 8], eax */
   3191     eax = MEM32(ebp + 0x14); /* 0x38028497: mov eax, dword ptr [ebp + 0x14] */
   3192     MEM32(eax) = ecx; /* 0x3802849A: mov dword ptr [eax], ecx */
   3193     ecx = MEM32(ebp + (-0x14)); /* 0x3802849C: mov ecx, dword ptr [ebp - 0x14] */
   3194     edi = POP32_VAL(esp); /* 0x3802849F: pop edi */
   3195     MEM32(eax + 0x4) = edx; /* 0x380284A0: mov dword ptr [eax + 4], edx */
   3196     esi = POP32_VAL(esp); /* 0x380284A3: pop esi */
   3197     MEM32(eax + 0x8) = ecx; /* 0x380284A4: mov dword ptr [eax + 8], ecx */
   3198     SET_LO8(eax, 1); /* 0x380284A7: mov al, 1 */
   3199     ebx = POP32_VAL(esp); /* 0x380284A9: pop ebx */
   3200     esp = ebp; /* 0x380284AA: mov esp, ebp */
   3201     ebp = POP32_VAL(esp); /* 0x380284AC: pop ebp */
   3202     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x380284AD: ret 0x18 */
   3203 L_380284B0:
   3204     edx = MEM32(ebp + (-0x10)); /* 0x380284B0: mov edx, dword ptr [ebp - 0x10] */
   3205     eax = MEM32(ebp + (-0xC)); /* 0x380284B3: mov eax, dword ptr [ebp - 0xc] */
   3206     ecx = MEM32(ebp + (-0x8)); /* 0x380284B6: mov ecx, dword ptr [ebp - 8] */
   3207     MEM32(edi) = edx; /* 0x380284B9: mov dword ptr [edi], edx */
   3208     edx = MEM32(ebp + (-0x1C)); /* 0x380284BB: mov edx, dword ptr [ebp - 0x1c] */
   3209     MEM32(edi + 0x4) = eax; /* 0x380284BE: mov dword ptr [edi + 4], eax */
   3210     eax = MEM32(ebp + 0x14); /* 0x380284C1: mov eax, dword ptr [ebp + 0x14] */
   3211     MEM32(edi + 0x8) = ecx; /* 0x380284C4: mov dword ptr [edi + 8], ecx */
   3212     ecx = MEM32(ebp + (-0x18)); /* 0x380284C7: mov ecx, dword ptr [ebp - 0x18] */
   3213     MEM32(eax) = edx; /* 0x380284CA: mov dword ptr [eax], edx */
   3214     edx = MEM32(ebp + (-0x14)); /* 0x380284CC: mov edx, dword ptr [ebp - 0x14] */
   3215     edi = POP32_VAL(esp); /* 0x380284CF: pop edi */
   3216     MEM32(eax + 0x4) = ecx; /* 0x380284D0: mov dword ptr [eax + 4], ecx */
   3217     esi = POP32_VAL(esp); /* 0x380284D3: pop esi */
   3218     MEM32(eax + 0x8) = edx; /* 0x380284D4: mov dword ptr [eax + 8], edx */
   3219     SET_LO8(eax, 1); /* 0x380284D7: mov al, 1 */
   3220     ebx = POP32_VAL(esp); /* 0x380284D9: pop ebx */
   3221     esp = ebp; /* 0x380284DA: mov esp, ebp */
   3222     ebp = POP32_VAL(esp); /* 0x380284DC: pop ebp */
   3223     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x380284DD: ret 0x18 */
   3224 L_380284E0:
   3225     eax = MEM32(ebp + 0x18); /* 0x380284E0: mov eax, dword ptr [ebp + 0x18] */
   3226     ecx = MEM32(ebp + 0x14); /* 0x380284E3: mov ecx, dword ptr [ebp + 0x14] */
   3227     edx = MEM32(ebp + 0x10); /* 0x380284E6: mov edx, dword ptr [ebp + 0x10] */
   3228     PUSH32(esp, 0); /* 0x380284E9: push 0 */
   3229     PUSH32(esp, eax); /* 0x380284EB: push eax */
   3230     eax = MEM32(ebp + 0xC); /* 0x380284EC: mov eax, dword ptr [ebp + 0xc] */
   3231     PUSH32(esp, ecx); /* 0x380284EF: push ecx */
   3232     ecx = MEM32(ebp + 0x8); /* 0x380284F0: mov ecx, dword ptr [ebp + 8] */
   3233     PUSH32(esp, edx); /* 0x380284F3: push edx */
   3234     PUSH32(esp, eax); /* 0x380284F4: push eax */
   3235     PUSH32(esp, ecx); /* 0x380284F5: push ecx */
   3236     ecx = edi; /* 0x380284F6: mov ecx, edi */
   3237     RECOMP_ICALL(0x38046190u); /* 0x380284F8: call 0x38046190 */ /* not lifted */
   3238     RECOMP_FLAGS_IN();
   3239 L_380284FD:
   3240     edi = POP32_VAL(esp); /* 0x380284FD: pop edi */
   3241     esi = POP32_VAL(esp); /* 0x380284FE: pop esi */
   3242     ebx = POP32_VAL(esp); /* 0x380284FF: pop ebx */
   3243     esp = ebp; /* 0x38028500: mov esp, ebp */
   3244     ebp = POP32_VAL(esp); /* 0x38028502: pop ebp */
   3245     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x38028503: ret 0x18 */
   3246     RECOMP_REGS_OUT();
   3247 }
   3248 
   3249 void sub_380283A2(void) {
   3250     int _fpu_cmp = 0;
   3251     uint32_t _cf = 0;
   3252     int _df = 1;
   3253     uint32_t _flag_k = FK_NONE;
   3254     uint32_t _flag_a = 0, _flag_b = 0;
   3255     uint32_t _itail_tgt = 0;
   3256     RECOMP_REGS_LOCALS
   3257     RECOMP_ENTER(0x380283A2u);
   3258 
   3259 L_380283A2:
   3260     MEM32(ebp + (-0x14)) = 0; /* 0x380283A2: mov dword ptr [ebp - 0x14], 0 */
   3261     RECOMP_ICALL(0x38037B10u); /* 0x380283A9: call 0x38037b10 */ /* not lifted */
   3262     RECOMP_FLAGS_IN();
   3263     edi = MEM32(ebp + 0x18); /* 0x380283AE: mov edi, dword ptr [ebp + 0x18] */
   3264     ebx = MEM32(ebp + 0xC); /* 0x380283B1: mov ebx, dword ptr [ebp + 0xc] */
   3265     esi = MEM32(ebp + 0x8); /* 0x380283B4: mov esi, dword ptr [ebp + 8] */
   3266     edx = MEM32(eax); /* 0x380283B7: mov edx, dword ptr [eax] */
   3267     PUSH32(esp, 0); /* 0x380283B9: push 0 */
   3268     PUSH32(esp, edi); /* 0x380283BB: push edi */
   3269     ecx = ebp + (-0x1C); /* 0x380283BC: lea ecx, [ebp - 0x1c] */
   3270     PUSH32(esp, ecx); /* 0x380283BF: push ecx */
   3271     ecx = ebp + (-0x10); /* 0x380283C0: lea ecx, [ebp - 0x10] */
   3272     PUSH32(esp, ecx); /* 0x380283C3: push ecx */
   3273     PUSH32(esp, ebx); /* 0x380283C4: push ebx */
   3274     PUSH32(esp, esi); /* 0x380283C5: push esi */
   3275     ecx = eax; /* 0x380283C6: mov ecx, eax */
   3276     RECOMP_ICALL(MEM32(edx + 0x10)); /* 0x380283C8: call dword ptr [edx + 0x10] */
   3277     RECOMP_FLAGS_IN();
   3278     edx = MEM32(ebp + 0x14); /* 0x380283CB: mov edx, dword ptr [ebp + 0x14] */
   3279     ecx = MEM32(ebp + (-0x4)); /* 0x380283CE: mov ecx, dword ptr [ebp - 4] */
   3280     PUSH32(esp, 0); /* 0x380283D1: push 0 */
   3281     PUSH32(esp, edi); /* 0x380283D3: push edi */
   3282     edi = MEM32(ebp + 0x10); /* 0x380283D4: mov edi, dword ptr [ebp + 0x10] */
   3283     PUSH32(esp, edx); /* 0x380283D7: push edx */
   3284     PUSH32(esp, edi); /* 0x380283D8: push edi */
   3285     PUSH32(esp, ebx); /* 0x380283D9: push ebx */
   3286     PUSH32(esp, esi); /* 0x380283DA: push esi */
   3287     MEM8(ebp + 0x1B) = (uint8_t)(LO8(eax)); /* 0x380283DB: mov byte ptr [ebp + 0x1b], al */
   3288     RECOMP_ICALL(0x38046190u); /* 0x380283DE: call 0x38046190 */ /* not lifted */
   3289     RECOMP_FLAGS_IN();
   3290     SET_LO8(ecx, MEM8(ebp + 0x1B)); /* 0x380283E3: mov cl, byte ptr [ebp + 0x1b] */
   3291     /* test LO8(ecx), LO8(ecx) */ /* 0x380283E6: test cl, cl */
   3292     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   3293     _cf = 0;
   3294     _flag_k = FK_NARROW(FK_TEST, 24);
   3295     if (TEST_Z(_flag_a, _flag_b)) goto L_380284FD; /* 0x380283E8: je 0x380284fd */
   3296 L_380283EE:
   3297     /* test LO8(eax), LO8(eax) */ /* 0x380283EE: test al, al */
   3298     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3299     _cf = 0;
   3300     _flag_k = FK_NARROW(FK_TEST, 24);
   3301     if (TEST_Z(_flag_a, _flag_b)) goto L_380284B0; /* 0x380283F0: je 0x380284b0 */
   3302 L_380283F6:
   3303     eax = esi; /* 0x380283F6: mov eax, esi */
   3304     ecx = MEM32(eax); /* 0x380283F8: mov ecx, dword ptr [eax] */
   3305     edx = MEM32(eax + 0x4); /* 0x380283FA: mov edx, dword ptr [eax + 4] */
   3306     eax = MEM32(eax + 0x8); /* 0x380283FD: mov eax, dword ptr [eax + 8] */
   3307     MEM32(ebp + (-0x28)) = ecx; /* 0x38028400: mov dword ptr [ebp - 0x28], ecx */
   3308     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38028403: fld dword ptr [ebp - 0x28] */
   3309     _st[0] -= (double)*(float*)ADDR(edi); /* 0x38028406: fsub dword ptr [edi] */
   3310     ecx = MEM32(esi); /* 0x38028408: mov ecx, dword ptr [esi] */
   3311     MEM32(ebp + (-0x24)) = edx; /* 0x3802840A: mov dword ptr [ebp - 0x24], edx */
   3312     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3802840D: fld dword ptr [ebp - 0x24] */
   3313     _st[0] -= (double)*(float*)ADDR(edi + 0x4); /* 0x38028410: fsub dword ptr [edi + 4] */
   3314     edx = MEM32(esi + 0x4); /* 0x38028413: mov edx, dword ptr [esi + 4] */
   3315     MEM32(ebp + (-0x20)) = eax; /* 0x38028416: mov dword ptr [ebp - 0x20], eax */
   3316     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x38028419: fld dword ptr [ebp - 0x20] */
   3317     _st[0] -= (double)*(float*)ADDR(edi + 0x8); /* 0x3802841C: fsub dword ptr [edi + 8] */
   3318     eax = MEM32(esi + 0x8); /* 0x3802841F: mov eax, dword ptr [esi + 8] */
   3319     MEM32(ebp + (-0x28)) = ecx; /* 0x38028422: mov dword ptr [ebp - 0x28], ecx */
   3320     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38028425: fld dword ptr [ebp - 0x28] */
   3321     _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x38028428: fsub dword ptr [ebp - 0x10] */
   3322     MEM32(ebp + (-0x24)) = edx; /* 0x3802842B: mov dword ptr [ebp - 0x24], edx */
   3323     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3802842E: fld dword ptr [ebp - 0x24] */
   3324     MEM32(ebp + (-0x20)) = eax; /* 0x38028431: mov dword ptr [ebp - 0x20], eax */
   3325     _st[0] -= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x38028434: fsub dword ptr [ebp - 0xc] */
   3326     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x38028437: fld dword ptr [ebp - 0x20] */
   3327     _st[0] -= (double)*(float*)ADDR(ebp + (-0x8)); /* 0x3802843A: fsub dword ptr [ebp - 8] */
   3328     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x20)) = _v; } /* 0x3802843D: fstp dword ptr [ebp - 0x20] */
   3329     fp_push(_st[2]); /* 0x38028440: fld st(2) */
   3330     _st[0] *= _st[3]; /* 0x38028442: fmul st(3) */
   3331     fp_push(_st[5]); /* 0x38028444: fld st(5) */
   3332     _st[0] *= _st[6]; /* 0x38028446: fmul st(6) */
   3333     { double _v = fp_pop(); _st[0] += _v; } /* 0x38028448: faddp st(1) */
   3334     fp_push(_st[4]); /* 0x3802844A: fld st(4) */
   3335     _st[0] *= _st[5]; /* 0x3802844C: fmul st(5) */
   3336     { double _v = fp_pop(); _st[0] += _v; } /* 0x3802844E: faddp st(1) */
   3337     fp_push(*(float*)&MEM32(ebp + (-0x20))); /* 0x38028450: fld dword ptr [ebp - 0x20] */
   3338     _st[0] *= (double)*(float*)ADDR(ebp + (-0x20)); /* 0x38028453: fmul dword ptr [ebp - 0x20] */
   3339     fp_push(_st[2]); /* 0x38028456: fld st(2) */
   3340     _st[0] *= _st[3]; /* 0x38028458: fmul st(3) */
   3341     { double _v = fp_pop(); _st[0] += _v; } /* 0x3802845A: faddp st(1) */
   3342     fp_push(_st[3]); /* 0x3802845C: fld st(3) */
   3343     _st[0] *= _st[4]; /* 0x3802845E: fmul st(4) */
   3344     { double _v = fp_pop(); _st[0] += _v; } /* 0x38028460: faddp st(1) */
   3345     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x38028462: fcompp  */
   3346     fp_pop(); fp_pop();
   3347     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38028464: fstp st(0) */
   3348     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38028466: fstp st(0) */
   3349     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38028468: fstp st(0) */
   3350     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3802846A: fnstsw ax */
   3351     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3802846C: fstp st(0) */
   3352     /* test HI8(eax), 0x41u */ /* 0x3802846E: test ah, 0x41 */
   3353     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   3354     _cf = 0;
   3355     _flag_k = FK_NARROW(FK_TEST, 24);
   3356     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38028471: fstp st(0) */
   3357     if (TEST_NZ(_flag_a, _flag_b)) goto L_38028480; /* 0x38028473: jne 0x38028480 */
   3358 L_38028475:
   3359     edi = POP32_VAL(esp); /* 0x38028475: pop edi */
   3360     esi = POP32_VAL(esp); /* 0x38028476: pop esi */
   3361     SET_LO8(eax, 1); /* 0x38028477: mov al, 1 */
   3362     ebx = POP32_VAL(esp); /* 0x38028479: pop ebx */
   3363     esp = ebp; /* 0x3802847A: mov esp, ebp */
   3364     ebp = POP32_VAL(esp); /* 0x3802847C: pop ebp */
   3365     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x3802847D: ret 0x18 */
   3366 L_38028480:
   3367     ecx = MEM32(ebp + (-0x10)); /* 0x38028480: mov ecx, dword ptr [ebp - 0x10] */
   3368     edx = MEM32(ebp + (-0xC)); /* 0x38028483: mov edx, dword ptr [ebp - 0xc] */
   3369     eax = MEM32(ebp + (-0x8)); /* 0x38028486: mov eax, dword ptr [ebp - 8] */
   3370     MEM32(edi) = ecx; /* 0x38028489: mov dword ptr [edi], ecx */
   3371     ecx = MEM32(ebp + (-0x1C)); /* 0x3802848B: mov ecx, dword ptr [ebp - 0x1c] */
   3372     MEM32(edi + 0x4) = edx; /* 0x3802848E: mov dword ptr [edi + 4], edx */
   3373     edx = MEM32(ebp + (-0x18)); /* 0x38028491: mov edx, dword ptr [ebp - 0x18] */
   3374     MEM32(edi + 0x8) = eax; /* 0x38028494: mov dword ptr [edi + 8], eax */
   3375     eax = MEM32(ebp + 0x14); /* 0x38028497: mov eax, dword ptr [ebp + 0x14] */
   3376     MEM32(eax) = ecx; /* 0x3802849A: mov dword ptr [eax], ecx */
   3377     ecx = MEM32(ebp + (-0x14)); /* 0x3802849C: mov ecx, dword ptr [ebp - 0x14] */
   3378     edi = POP32_VAL(esp); /* 0x3802849F: pop edi */
   3379     MEM32(eax + 0x4) = edx; /* 0x380284A0: mov dword ptr [eax + 4], edx */
   3380     esi = POP32_VAL(esp); /* 0x380284A3: pop esi */
   3381     MEM32(eax + 0x8) = ecx; /* 0x380284A4: mov dword ptr [eax + 8], ecx */
   3382     SET_LO8(eax, 1); /* 0x380284A7: mov al, 1 */
   3383     ebx = POP32_VAL(esp); /* 0x380284A9: pop ebx */
   3384     esp = ebp; /* 0x380284AA: mov esp, ebp */
   3385     ebp = POP32_VAL(esp); /* 0x380284AC: pop ebp */
   3386     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x380284AD: ret 0x18 */
   3387 L_380284B0:
   3388     edx = MEM32(ebp + (-0x10)); /* 0x380284B0: mov edx, dword ptr [ebp - 0x10] */
   3389     eax = MEM32(ebp + (-0xC)); /* 0x380284B3: mov eax, dword ptr [ebp - 0xc] */
   3390     ecx = MEM32(ebp + (-0x8)); /* 0x380284B6: mov ecx, dword ptr [ebp - 8] */
   3391     MEM32(edi) = edx; /* 0x380284B9: mov dword ptr [edi], edx */
   3392     edx = MEM32(ebp + (-0x1C)); /* 0x380284BB: mov edx, dword ptr [ebp - 0x1c] */
   3393     MEM32(edi + 0x4) = eax; /* 0x380284BE: mov dword ptr [edi + 4], eax */
   3394     eax = MEM32(ebp + 0x14); /* 0x380284C1: mov eax, dword ptr [ebp + 0x14] */
   3395     MEM32(edi + 0x8) = ecx; /* 0x380284C4: mov dword ptr [edi + 8], ecx */
   3396     ecx = MEM32(ebp + (-0x18)); /* 0x380284C7: mov ecx, dword ptr [ebp - 0x18] */
   3397     MEM32(eax) = edx; /* 0x380284CA: mov dword ptr [eax], edx */
   3398     edx = MEM32(ebp + (-0x14)); /* 0x380284CC: mov edx, dword ptr [ebp - 0x14] */
   3399     edi = POP32_VAL(esp); /* 0x380284CF: pop edi */
   3400     MEM32(eax + 0x4) = ecx; /* 0x380284D0: mov dword ptr [eax + 4], ecx */
   3401     esi = POP32_VAL(esp); /* 0x380284D3: pop esi */
   3402     MEM32(eax + 0x8) = edx; /* 0x380284D4: mov dword ptr [eax + 8], edx */
   3403     SET_LO8(eax, 1); /* 0x380284D7: mov al, 1 */
   3404     ebx = POP32_VAL(esp); /* 0x380284D9: pop ebx */
   3405     esp = ebp; /* 0x380284DA: mov esp, ebp */
   3406     ebp = POP32_VAL(esp); /* 0x380284DC: pop ebp */
   3407     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x380284DD: ret 0x18 */
   3408 L_380284FD:
   3409     edi = POP32_VAL(esp); /* 0x380284FD: pop edi */
   3410     esi = POP32_VAL(esp); /* 0x380284FE: pop esi */
   3411     ebx = POP32_VAL(esp); /* 0x380284FF: pop ebx */
   3412     esp = ebp; /* 0x38028500: mov esp, ebp */
   3413     ebp = POP32_VAL(esp); /* 0x38028502: pop ebp */
   3414     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x38028503: ret 0x18 */
   3415     RECOMP_REGS_OUT();
   3416 }
   3417 
   3418 void sub_38028510(void) {
   3419     int _fpu_cmp = 0;
   3420     uint32_t _cf = 0;
   3421     int _df = 1;
   3422     uint32_t _flag_k = FK_NONE;
   3423     uint32_t _flag_a = 0, _flag_b = 0;
   3424     uint32_t _itail_tgt = 0;
   3425     RECOMP_REGS_LOCALS
   3426     RECOMP_ENTER(0x38028510u);
   3427 
   3428 L_38028510:
   3429     PUSH32(esp, ebp); /* 0x38028510: push ebp */
   3430     ebp = esp; /* 0x38028511: mov ebp, esp */
   3431     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3432     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3433     esp = esp - 0xCu; /* 0x38028513: sub esp, 0xc */
   3434     _flag_k = FK_CMP;
   3435     edx = MEM32(ebp + 0x14); /* 0x38028516: mov edx, dword ptr [ebp + 0x14] */
   3436     eax = MEM32(ecx); /* 0x38028519: mov eax, dword ptr [ecx] */
   3437     PUSH32(esp, 0); /* 0x3802851B: push 0 */
   3438     PUSH32(esp, edx); /* 0x3802851D: push edx */
   3439     edx = ebp + (-0xC); /* 0x3802851E: lea edx, [ebp - 0xc] */
   3440     PUSH32(esp, edx); /* 0x38028521: push edx */
   3441     edx = MEM32(ebp + 0x10); /* 0x38028522: mov edx, dword ptr [ebp + 0x10] */
   3442     PUSH32(esp, edx); /* 0x38028525: push edx */
   3443     edx = MEM32(ebp + 0xC); /* 0x38028526: mov edx, dword ptr [ebp + 0xc] */
   3444     PUSH32(esp, edx); /* 0x38028529: push edx */
   3445     edx = MEM32(ebp + 0x8); /* 0x3802852A: mov edx, dword ptr [ebp + 8] */
   3446     PUSH32(esp, edx); /* 0x3802852D: push edx */
   3447     MEM32(ebp + (-0xC)) = 0; /* 0x3802852E: mov dword ptr [ebp - 0xc], 0 */
   3448     MEM32(ebp + (-0x8)) = 0; /* 0x38028535: mov dword ptr [ebp - 8], 0 */
   3449     MEM32(ebp + (-0x4)) = 0; /* 0x3802853C: mov dword ptr [ebp - 4], 0 */
   3450     RECOMP_ICALL(MEM32(eax + 0x10)); /* 0x38028543: call dword ptr [eax + 0x10] */
   3451     RECOMP_FLAGS_IN();
   3452     esp = ebp; /* 0x38028546: mov esp, ebp */
   3453     ebp = POP32_VAL(esp); /* 0x38028548: pop ebp */
   3454     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x38028549: ret 0x14 */
   3455     RECOMP_REGS_OUT();
   3456 }
   3457 
   3458 void sub_38028550(void) {
   3459     int _fpu_cmp = 0;
   3460     uint32_t _cf = 0;
   3461     int _df = 1;
   3462     uint32_t _flag_k = FK_NONE;
   3463     uint32_t _flag_a = 0, _flag_b = 0;
   3464     uint32_t _itail_tgt = 0;
   3465     RECOMP_REGS_LOCALS
   3466     RECOMP_ENTER(0x38028550u);
   3467 
   3468 L_38028550:
   3469     PUSH32(esp, ebp); /* 0x38028550: push ebp */
   3470     ebp = esp; /* 0x38028551: mov ebp, esp */
   3471     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu);
   3472     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3473     esp = esp - 0x2Cu; /* 0x38028553: sub esp, 0x2c */
   3474     _flag_k = FK_CMP;
   3475     PUSH32(esp, ebx); /* 0x38028556: push ebx */
   3476     PUSH32(esp, esi); /* 0x38028557: push esi */
   3477     PUSH32(esp, edi); /* 0x38028558: push edi */
   3478     edi = ecx; /* 0x38028559: mov edi, ecx */
   3479     esi = edi + (-0x18); /* 0x3802855B: lea esi, [edi - 0x18] */
   3480     ecx = esi; /* 0x3802855E: mov ecx, esi */
   3481     MEM32(ebp + (-0x8)) = edi; /* 0x38028560: mov dword ptr [ebp - 8], edi */
   3482     RECOMP_ICALL(0x38037B10u); /* 0x38028563: call 0x38037b10 */ /* not lifted */
   3483     RECOMP_FLAGS_IN();
   3484     /* test eax, eax */ /* 0x38028568: test eax, eax */
   3485     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3486     _cf = 0;
   3487     _flag_k = FK_TEST;
   3488     if (TEST_Z(_flag_a, _flag_b)) goto L_380286EC; /* 0x3802856A: je 0x380286ec */
   3489 L_38028570:
   3490     SET_LO8(eax, MEM8(0x3806C7EC)); /* 0x38028570: mov al, byte ptr [0x3806c7ec] */
   3491     /* test LO8(eax), LO8(eax) */ /* 0x38028575: test al, al */
   3492     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3493     _cf = 0;
   3494     _flag_k = FK_NARROW(FK_TEST, 24);
   3495     if (TEST_Z(_flag_a, _flag_b)) goto L_380286EC; /* 0x38028577: je 0x380286ec */
   3496 L_3802857D:
   3497     ecx = esi; /* 0x3802857D: mov ecx, esi */
   3498     MEM32(ebp + (-0x14)) = 0; /* 0x3802857F: mov dword ptr [ebp - 0x14], 0 */
   3499     MEM32(ebp + (-0x10)) = 0; /* 0x38028586: mov dword ptr [ebp - 0x10], 0 */
   3500     MEM32(ebp + (-0xC)) = 0; /* 0x3802858D: mov dword ptr [ebp - 0xc], 0 */
   3501     MEM32(ebp + (-0x20)) = 0; /* 0x38028594: mov dword ptr [ebp - 0x20], 0 */
   3502     MEM32(ebp + (-0x1C)) = 0; /* 0x3802859B: mov dword ptr [ebp - 0x1c], 0 */
   3503     MEM32(ebp + (-0x18)) = 0; /* 0x380285A2: mov dword ptr [ebp - 0x18], 0 */
   3504     RECOMP_ICALL(0x38037B10u); /* 0x380285A9: call 0x38037b10 */ /* not lifted */
   3505     RECOMP_FLAGS_IN();
   3506     edi = MEM32(ebp + 0x8); /* 0x380285AE: mov edi, dword ptr [ebp + 8] */
   3507     edx = MEM32(eax); /* 0x380285B1: mov edx, dword ptr [eax] */
   3508     ecx = ebp + (-0x4); /* 0x380285B3: lea ecx, [ebp - 4] */
   3509     PUSH32(esp, ecx); /* 0x380285B6: push ecx */
   3510     ecx = ebp + (-0x20); /* 0x380285B7: lea ecx, [ebp - 0x20] */
   3511     PUSH32(esp, ecx); /* 0x380285BA: push ecx */
   3512     ecx = ebp + (-0x14); /* 0x380285BB: lea ecx, [ebp - 0x14] */
   3513     PUSH32(esp, ecx); /* 0x380285BE: push ecx */
   3514     ecx = MEM32(ebp + 0xC); /* 0x380285BF: mov ecx, dword ptr [ebp + 0xc] */
   3515     PUSH32(esp, ecx); /* 0x380285C2: push ecx */
   3516     PUSH32(esp, edi); /* 0x380285C3: push edi */
   3517     ecx = eax; /* 0x380285C4: mov ecx, eax */
   3518     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x380285C6: call dword ptr [edx + 0x18] */
   3519     RECOMP_FLAGS_IN();
   3520     edx = MEM32(ebp + 0x18); /* 0x380285C9: mov edx, dword ptr [ebp + 0x18] */
   3521     ebx = MEM32(ebp + 0x14); /* 0x380285CC: mov ebx, dword ptr [ebp + 0x14] */
   3522     esi = MEM32(ebp + 0x10); /* 0x380285CF: mov esi, dword ptr [ebp + 0x10] */
   3523     ecx = MEM32(ebp + (-0x8)); /* 0x380285D2: mov ecx, dword ptr [ebp - 8] */
   3524     PUSH32(esp, edx); /* 0x380285D5: push edx */
   3525     PUSH32(esp, ebx); /* 0x380285D6: push ebx */
   3526     MEM8(ebp + 0xB) = (uint8_t)(LO8(eax)); /* 0x380285D7: mov byte ptr [ebp + 0xb], al */
   3527     eax = MEM32(ebp + 0xC); /* 0x380285DA: mov eax, dword ptr [ebp + 0xc] */
   3528     PUSH32(esp, esi); /* 0x380285DD: push esi */
   3529     PUSH32(esp, eax); /* 0x380285DE: push eax */
   3530     PUSH32(esp, edi); /* 0x380285DF: push edi */
   3531     RECOMP_ICALL(0x38046210u); /* 0x380285E0: call 0x38046210 */ /* not lifted */
   3532     RECOMP_FLAGS_IN();
   3533     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x380285E5: mov cl, byte ptr [ebp + 0xb] */
   3534     /* test LO8(ecx), LO8(ecx) */ /* 0x380285E8: test cl, cl */
   3535     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   3536     _cf = 0;
   3537     _flag_k = FK_NARROW(FK_TEST, 24);
   3538     if (TEST_Z(_flag_a, _flag_b)) goto L_38028707; /* 0x380285EA: je 0x38028707 */
   3539 L_380285F0:
   3540     /* test LO8(eax), LO8(eax) */ /* 0x380285F0: test al, al */
   3541     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3542     _cf = 0;
   3543     _flag_k = FK_NARROW(FK_TEST, 24);
   3544     if (TEST_Z(_flag_a, _flag_b)) goto L_380286B7; /* 0x380285F2: je 0x380286b7 */
   3545 L_380285F8:
   3546     ecx = edi; /* 0x380285F8: mov ecx, edi */
   3547     edx = MEM32(ecx); /* 0x380285FA: mov edx, dword ptr [ecx] */
   3548     eax = MEM32(ecx + 0x4); /* 0x380285FC: mov eax, dword ptr [ecx + 4] */
   3549     ecx = MEM32(ecx + 0x8); /* 0x380285FF: mov ecx, dword ptr [ecx + 8] */
   3550     MEM32(ebp + (-0x2C)) = edx; /* 0x38028602: mov dword ptr [ebp - 0x2c], edx */
   3551     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x38028605: fld dword ptr [ebp - 0x2c] */
   3552     _st[0] -= (double)*(float*)ADDR(esi); /* 0x38028608: fsub dword ptr [esi] */
   3553     edx = MEM32(edi); /* 0x3802860A: mov edx, dword ptr [edi] */
   3554     MEM32(ebp + (-0x28)) = eax; /* 0x3802860C: mov dword ptr [ebp - 0x28], eax */
   3555     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3802860F: fld dword ptr [ebp - 0x28] */
   3556     _st[0] -= (double)*(float*)ADDR(esi + 0x4); /* 0x38028612: fsub dword ptr [esi + 4] */
   3557     eax = MEM32(edi + 0x4); /* 0x38028615: mov eax, dword ptr [edi + 4] */
   3558     MEM32(ebp + (-0x24)) = ecx; /* 0x38028618: mov dword ptr [ebp - 0x24], ecx */
   3559     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3802861B: fld dword ptr [ebp - 0x24] */
   3560     _st[0] -= (double)*(float*)ADDR(esi + 0x8); /* 0x3802861E: fsub dword ptr [esi + 8] */
   3561     ecx = MEM32(edi + 0x8); /* 0x38028621: mov ecx, dword ptr [edi + 8] */
   3562     MEM32(ebp + (-0x2C)) = edx; /* 0x38028624: mov dword ptr [ebp - 0x2c], edx */
   3563     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x38028627: fld dword ptr [ebp - 0x2c] */
   3564     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x3802862A: fsub dword ptr [ebp - 0x14] */
   3565     MEM32(ebp + (-0x28)) = eax; /* 0x3802862D: mov dword ptr [ebp - 0x28], eax */
   3566     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38028630: fld dword ptr [ebp - 0x28] */
   3567     MEM32(ebp + (-0x24)) = ecx; /* 0x38028633: mov dword ptr [ebp - 0x24], ecx */
   3568     _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x38028636: fsub dword ptr [ebp - 0x10] */
   3569     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x38028639: fld dword ptr [ebp - 0x24] */
   3570     _st[0] -= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3802863C: fsub dword ptr [ebp - 0xc] */
   3571     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x3802863F: fstp dword ptr [ebp - 0x24] */
   3572     fp_push(_st[2]); /* 0x38028642: fld st(2) */
   3573     _st[0] *= _st[3]; /* 0x38028644: fmul st(3) */
   3574     fp_push(_st[5]); /* 0x38028646: fld st(5) */
   3575     _st[0] *= _st[6]; /* 0x38028648: fmul st(6) */
   3576     { double _v = fp_pop(); _st[0] += _v; } /* 0x3802864A: faddp st(1) */
   3577     fp_push(_st[4]); /* 0x3802864C: fld st(4) */
   3578     _st[0] *= _st[5]; /* 0x3802864E: fmul st(5) */
   3579     { double _v = fp_pop(); _st[0] += _v; } /* 0x38028650: faddp st(1) */
   3580     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x38028652: fld dword ptr [ebp - 0x24] */
   3581     _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x38028655: fmul dword ptr [ebp - 0x24] */
   3582     fp_push(_st[2]); /* 0x38028658: fld st(2) */
   3583     _st[0] *= _st[3]; /* 0x3802865A: fmul st(3) */
   3584     { double _v = fp_pop(); _st[0] += _v; } /* 0x3802865C: faddp st(1) */
   3585     fp_push(_st[3]); /* 0x3802865E: fld st(3) */
   3586     _st[0] *= _st[4]; /* 0x38028660: fmul st(4) */
   3587     { double _v = fp_pop(); _st[0] += _v; } /* 0x38028662: faddp st(1) */
   3588     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x38028664: fcompp  */
   3589     fp_pop(); fp_pop();
   3590     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38028666: fstp st(0) */
   3591     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38028668: fstp st(0) */
   3592     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3802866A: fstp st(0) */
   3593     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3802866C: fnstsw ax */
   3594     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3802866E: fstp st(0) */
   3595     /* test HI8(eax), 0x41u */ /* 0x38028670: test ah, 0x41 */
   3596     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   3597     _cf = 0;
   3598     _flag_k = FK_NARROW(FK_TEST, 24);
   3599     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38028673: fstp st(0) */
   3600     if (TEST_NZ(_flag_a, _flag_b)) goto L_38028682; /* 0x38028675: jne 0x38028682 */
   3601 L_38028677:
   3602     edi = POP32_VAL(esp); /* 0x38028677: pop edi */
   3603     esi = POP32_VAL(esp); /* 0x38028678: pop esi */
   3604     SET_LO8(eax, 1); /* 0x38028679: mov al, 1 */
   3605     ebx = POP32_VAL(esp); /* 0x3802867B: pop ebx */
   3606     esp = ebp; /* 0x3802867C: mov esp, ebp */
   3607     ebp = POP32_VAL(esp); /* 0x3802867E: pop ebp */
   3608     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x3802867F: ret 0x14 */
   3609 L_38028682:
   3610     edx = MEM32(ebp + (-0x14)); /* 0x38028682: mov edx, dword ptr [ebp - 0x14] */
   3611     eax = MEM32(ebp + (-0x10)); /* 0x38028685: mov eax, dword ptr [ebp - 0x10] */
   3612     ecx = MEM32(ebp + (-0xC)); /* 0x38028688: mov ecx, dword ptr [ebp - 0xc] */
   3613     MEM32(esi) = edx; /* 0x3802868B: mov dword ptr [esi], edx */
   3614     edx = MEM32(ebp + (-0x20)); /* 0x3802868D: mov edx, dword ptr [ebp - 0x20] */
   3615     MEM32(esi + 0x4) = eax; /* 0x38028690: mov dword ptr [esi + 4], eax */
   3616     eax = MEM32(ebp + (-0x1C)); /* 0x38028693: mov eax, dword ptr [ebp - 0x1c] */
   3617     MEM32(esi + 0x8) = ecx; /* 0x38028696: mov dword ptr [esi + 8], ecx */
   3618     ecx = MEM32(ebp + (-0x18)); /* 0x38028699: mov ecx, dword ptr [ebp - 0x18] */
   3619     MEM32(ebx) = edx; /* 0x3802869C: mov dword ptr [ebx], edx */
   3620     edx = MEM32(ebp + (-0x4)); /* 0x3802869E: mov edx, dword ptr [ebp - 4] */
   3621     MEM32(ebx + 0x4) = eax; /* 0x380286A1: mov dword ptr [ebx + 4], eax */
   3622     eax = MEM32(ebp + 0x18); /* 0x380286A4: mov eax, dword ptr [ebp + 0x18] */
   3623     edi = POP32_VAL(esp); /* 0x380286A7: pop edi */
   3624     MEM32(ebx + 0x8) = ecx; /* 0x380286A8: mov dword ptr [ebx + 8], ecx */
   3625     esi = POP32_VAL(esp); /* 0x380286AB: pop esi */
   3626     MEM32(eax) = edx; /* 0x380286AC: mov dword ptr [eax], edx */
   3627     SET_LO8(eax, 1); /* 0x380286AE: mov al, 1 */
   3628     ebx = POP32_VAL(esp); /* 0x380286B0: pop ebx */
   3629     esp = ebp; /* 0x380286B1: mov esp, ebp */
   3630     ebp = POP32_VAL(esp); /* 0x380286B3: pop ebp */
   3631     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x380286B4: ret 0x14 */
   3632 L_380286B7:
   3633     ecx = MEM32(ebp + (-0x14)); /* 0x380286B7: mov ecx, dword ptr [ebp - 0x14] */
   3634     edx = MEM32(ebp + (-0x10)); /* 0x380286BA: mov edx, dword ptr [ebp - 0x10] */
   3635     eax = MEM32(ebp + (-0xC)); /* 0x380286BD: mov eax, dword ptr [ebp - 0xc] */
   3636     MEM32(esi) = ecx; /* 0x380286C0: mov dword ptr [esi], ecx */
   3637     ecx = MEM32(ebp + (-0x20)); /* 0x380286C2: mov ecx, dword ptr [ebp - 0x20] */
   3638     MEM32(esi + 0x4) = edx; /* 0x380286C5: mov dword ptr [esi + 4], edx */
   3639     edx = MEM32(ebp + (-0x1C)); /* 0x380286C8: mov edx, dword ptr [ebp - 0x1c] */
   3640     MEM32(esi + 0x8) = eax; /* 0x380286CB: mov dword ptr [esi + 8], eax */
   3641     eax = MEM32(ebp + (-0x18)); /* 0x380286CE: mov eax, dword ptr [ebp - 0x18] */
   3642     MEM32(ebx) = ecx; /* 0x380286D1: mov dword ptr [ebx], ecx */
   3643     ecx = MEM32(ebp + (-0x4)); /* 0x380286D3: mov ecx, dword ptr [ebp - 4] */
   3644     MEM32(ebx + 0x4) = edx; /* 0x380286D6: mov dword ptr [ebx + 4], edx */
   3645     edx = MEM32(ebp + 0x18); /* 0x380286D9: mov edx, dword ptr [ebp + 0x18] */
   3646     edi = POP32_VAL(esp); /* 0x380286DC: pop edi */
   3647     MEM32(ebx + 0x8) = eax; /* 0x380286DD: mov dword ptr [ebx + 8], eax */
   3648     esi = POP32_VAL(esp); /* 0x380286E0: pop esi */
   3649     MEM32(edx) = ecx; /* 0x380286E1: mov dword ptr [edx], ecx */
   3650     SET_LO8(eax, 1); /* 0x380286E3: mov al, 1 */
   3651     ebx = POP32_VAL(esp); /* 0x380286E5: pop ebx */
   3652     esp = ebp; /* 0x380286E6: mov esp, ebp */
   3653     ebp = POP32_VAL(esp); /* 0x380286E8: pop ebp */
   3654     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x380286E9: ret 0x14 */
   3655 L_380286EC:
   3656     eax = MEM32(ebp + 0x18); /* 0x380286EC: mov eax, dword ptr [ebp + 0x18] */
   3657     ecx = MEM32(ebp + 0x14); /* 0x380286EF: mov ecx, dword ptr [ebp + 0x14] */
   3658     edx = MEM32(ebp + 0x10); /* 0x380286F2: mov edx, dword ptr [ebp + 0x10] */
   3659     PUSH32(esp, eax); /* 0x380286F5: push eax */
   3660     eax = MEM32(ebp + 0xC); /* 0x380286F6: mov eax, dword ptr [ebp + 0xc] */
   3661     PUSH32(esp, ecx); /* 0x380286F9: push ecx */
   3662     ecx = MEM32(ebp + 0x8); /* 0x380286FA: mov ecx, dword ptr [ebp + 8] */
   3663     PUSH32(esp, edx); /* 0x380286FD: push edx */
   3664     PUSH32(esp, eax); /* 0x380286FE: push eax */
   3665     PUSH32(esp, ecx); /* 0x380286FF: push ecx */
   3666     ecx = edi; /* 0x38028700: mov ecx, edi */
   3667     RECOMP_ICALL(0x38046210u); /* 0x38028702: call 0x38046210 */ /* not lifted */
   3668     RECOMP_FLAGS_IN();
   3669 L_38028707:
   3670     edi = POP32_VAL(esp); /* 0x38028707: pop edi */
   3671     esi = POP32_VAL(esp); /* 0x38028708: pop esi */
   3672     ebx = POP32_VAL(esp); /* 0x38028709: pop ebx */
   3673     esp = ebp; /* 0x3802870A: mov esp, ebp */
   3674     ebp = POP32_VAL(esp); /* 0x3802870C: pop ebp */
   3675     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x3802870D: ret 0x14 */
   3676     RECOMP_REGS_OUT();
   3677 }
   3678 
   3679 void sub_380285A9(void) {
   3680     int _fpu_cmp = 0;
   3681     uint32_t _cf = 0;
   3682     int _df = 1;
   3683     uint32_t _flag_k = FK_NONE;
   3684     uint32_t _flag_a = 0, _flag_b = 0;
   3685     uint32_t _itail_tgt = 0;
   3686     RECOMP_REGS_LOCALS
   3687     RECOMP_ENTER(0x380285A9u);
   3688 
   3689 L_380285A9:
   3690     RECOMP_ICALL(0x38037B10u); /* 0x380285A9: call 0x38037b10 */ /* not lifted */
   3691     RECOMP_FLAGS_IN();
   3692     edi = MEM32(ebp + 0x8); /* 0x380285AE: mov edi, dword ptr [ebp + 8] */
   3693     edx = MEM32(eax); /* 0x380285B1: mov edx, dword ptr [eax] */
   3694     ecx = ebp + (-0x4); /* 0x380285B3: lea ecx, [ebp - 4] */
   3695     PUSH32(esp, ecx); /* 0x380285B6: push ecx */
   3696     ecx = ebp + (-0x20); /* 0x380285B7: lea ecx, [ebp - 0x20] */
   3697     PUSH32(esp, ecx); /* 0x380285BA: push ecx */
   3698     ecx = ebp + (-0x14); /* 0x380285BB: lea ecx, [ebp - 0x14] */
   3699     PUSH32(esp, ecx); /* 0x380285BE: push ecx */
   3700     ecx = MEM32(ebp + 0xC); /* 0x380285BF: mov ecx, dword ptr [ebp + 0xc] */
   3701     PUSH32(esp, ecx); /* 0x380285C2: push ecx */
   3702     PUSH32(esp, edi); /* 0x380285C3: push edi */
   3703     ecx = eax; /* 0x380285C4: mov ecx, eax */
   3704     RECOMP_ICALL(MEM32(edx + 0x18)); /* 0x380285C6: call dword ptr [edx + 0x18] */
   3705     RECOMP_FLAGS_IN();
   3706     edx = MEM32(ebp + 0x18); /* 0x380285C9: mov edx, dword ptr [ebp + 0x18] */
   3707     ebx = MEM32(ebp + 0x14); /* 0x380285CC: mov ebx, dword ptr [ebp + 0x14] */
   3708     esi = MEM32(ebp + 0x10); /* 0x380285CF: mov esi, dword ptr [ebp + 0x10] */
   3709     ecx = MEM32(ebp + (-0x8)); /* 0x380285D2: mov ecx, dword ptr [ebp - 8] */
   3710     PUSH32(esp, edx); /* 0x380285D5: push edx */
   3711     PUSH32(esp, ebx); /* 0x380285D6: push ebx */
   3712     MEM8(ebp + 0xB) = (uint8_t)(LO8(eax)); /* 0x380285D7: mov byte ptr [ebp + 0xb], al */
   3713     eax = MEM32(ebp + 0xC); /* 0x380285DA: mov eax, dword ptr [ebp + 0xc] */
   3714     PUSH32(esp, esi); /* 0x380285DD: push esi */
   3715     PUSH32(esp, eax); /* 0x380285DE: push eax */
   3716     PUSH32(esp, edi); /* 0x380285DF: push edi */
   3717     RECOMP_ICALL(0x38046210u); /* 0x380285E0: call 0x38046210 */ /* not lifted */
   3718     RECOMP_FLAGS_IN();
   3719     SET_LO8(ecx, MEM8(ebp + 0xB)); /* 0x380285E5: mov cl, byte ptr [ebp + 0xb] */
   3720     /* test LO8(ecx), LO8(ecx) */ /* 0x380285E8: test cl, cl */
   3721     _flag_a = (uint32_t)(LO8(ecx)) << 24; _flag_b = (uint32_t)(LO8(ecx)) << 24;
   3722     _cf = 0;
   3723     _flag_k = FK_NARROW(FK_TEST, 24);
   3724     if (TEST_Z(_flag_a, _flag_b)) goto L_38028707; /* 0x380285EA: je 0x38028707 */
   3725 L_380285F0:
   3726     /* test LO8(eax), LO8(eax) */ /* 0x380285F0: test al, al */
   3727     _flag_a = (uint32_t)(LO8(eax)) << 24; _flag_b = (uint32_t)(LO8(eax)) << 24;
   3728     _cf = 0;
   3729     _flag_k = FK_NARROW(FK_TEST, 24);
   3730     if (TEST_Z(_flag_a, _flag_b)) goto L_380286B7; /* 0x380285F2: je 0x380286b7 */
   3731 L_380285F8:
   3732     ecx = edi; /* 0x380285F8: mov ecx, edi */
   3733     edx = MEM32(ecx); /* 0x380285FA: mov edx, dword ptr [ecx] */
   3734     eax = MEM32(ecx + 0x4); /* 0x380285FC: mov eax, dword ptr [ecx + 4] */
   3735     ecx = MEM32(ecx + 0x8); /* 0x380285FF: mov ecx, dword ptr [ecx + 8] */
   3736     MEM32(ebp + (-0x2C)) = edx; /* 0x38028602: mov dword ptr [ebp - 0x2c], edx */
   3737     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x38028605: fld dword ptr [ebp - 0x2c] */
   3738     _st[0] -= (double)*(float*)ADDR(esi); /* 0x38028608: fsub dword ptr [esi] */
   3739     edx = MEM32(edi); /* 0x3802860A: mov edx, dword ptr [edi] */
   3740     MEM32(ebp + (-0x28)) = eax; /* 0x3802860C: mov dword ptr [ebp - 0x28], eax */
   3741     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x3802860F: fld dword ptr [ebp - 0x28] */
   3742     _st[0] -= (double)*(float*)ADDR(esi + 0x4); /* 0x38028612: fsub dword ptr [esi + 4] */
   3743     eax = MEM32(edi + 0x4); /* 0x38028615: mov eax, dword ptr [edi + 4] */
   3744     MEM32(ebp + (-0x24)) = ecx; /* 0x38028618: mov dword ptr [ebp - 0x24], ecx */
   3745     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x3802861B: fld dword ptr [ebp - 0x24] */
   3746     _st[0] -= (double)*(float*)ADDR(esi + 0x8); /* 0x3802861E: fsub dword ptr [esi + 8] */
   3747     ecx = MEM32(edi + 0x8); /* 0x38028621: mov ecx, dword ptr [edi + 8] */
   3748     MEM32(ebp + (-0x2C)) = edx; /* 0x38028624: mov dword ptr [ebp - 0x2c], edx */
   3749     fp_push(*(float*)&MEM32(ebp + (-0x2C))); /* 0x38028627: fld dword ptr [ebp - 0x2c] */
   3750     _st[0] -= (double)*(float*)ADDR(ebp + (-0x14)); /* 0x3802862A: fsub dword ptr [ebp - 0x14] */
   3751     MEM32(ebp + (-0x28)) = eax; /* 0x3802862D: mov dword ptr [ebp - 0x28], eax */
   3752     fp_push(*(float*)&MEM32(ebp + (-0x28))); /* 0x38028630: fld dword ptr [ebp - 0x28] */
   3753     MEM32(ebp + (-0x24)) = ecx; /* 0x38028633: mov dword ptr [ebp - 0x24], ecx */
   3754     _st[0] -= (double)*(float*)ADDR(ebp + (-0x10)); /* 0x38028636: fsub dword ptr [ebp - 0x10] */
   3755     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x38028639: fld dword ptr [ebp - 0x24] */
   3756     _st[0] -= (double)*(float*)ADDR(ebp + (-0xC)); /* 0x3802863C: fsub dword ptr [ebp - 0xc] */
   3757     { float _v = (float)fp_pop(); *(float*)ADDR(ebp + (-0x24)) = _v; } /* 0x3802863F: fstp dword ptr [ebp - 0x24] */
   3758     fp_push(_st[2]); /* 0x38028642: fld st(2) */
   3759     _st[0] *= _st[3]; /* 0x38028644: fmul st(3) */
   3760     fp_push(_st[5]); /* 0x38028646: fld st(5) */
   3761     _st[0] *= _st[6]; /* 0x38028648: fmul st(6) */
   3762     { double _v = fp_pop(); _st[0] += _v; } /* 0x3802864A: faddp st(1) */
   3763     fp_push(_st[4]); /* 0x3802864C: fld st(4) */
   3764     _st[0] *= _st[5]; /* 0x3802864E: fmul st(5) */
   3765     { double _v = fp_pop(); _st[0] += _v; } /* 0x38028650: faddp st(1) */
   3766     fp_push(*(float*)&MEM32(ebp + (-0x24))); /* 0x38028652: fld dword ptr [ebp - 0x24] */
   3767     _st[0] *= (double)*(float*)ADDR(ebp + (-0x24)); /* 0x38028655: fmul dword ptr [ebp - 0x24] */
   3768     fp_push(_st[2]); /* 0x38028658: fld st(2) */
   3769     _st[0] *= _st[3]; /* 0x3802865A: fmul st(3) */
   3770     { double _v = fp_pop(); _st[0] += _v; } /* 0x3802865C: faddp st(1) */
   3771     fp_push(_st[3]); /* 0x3802865E: fld st(3) */
   3772     _st[0] *= _st[4]; /* 0x38028660: fmul st(4) */
   3773     { double _v = fp_pop(); _st[0] += _v; } /* 0x38028662: faddp st(1) */
   3774     _fpu_cmp = FPU_CMP(_st[0], _st[1]); /* 0x38028664: fcompp  */
   3775     fp_pop(); fp_pop();
   3776     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38028666: fstp st(0) */
   3777     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38028668: fstp st(0) */
   3778     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3802866A: fstp st(0) */
   3779     eax = (eax & 0xFFFF0000u) | ((_fpu_cmp >= 0x10000) ? (uint32_t)(_fpu_cmp & 0x4700) : _fpu_cmp == 2 ? 0x4500u : _fpu_cmp < 0 ? 0x0100u : _fpu_cmp == 0 ? 0x4000u : 0x0000u); /* 0x3802866C: fnstsw ax */
   3780     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x3802866E: fstp st(0) */
   3781     /* test HI8(eax), 0x41u */ /* 0x38028670: test ah, 0x41 */
   3782     _flag_a = (uint32_t)(HI8(eax)) << 24; _flag_b = (uint32_t)(0x41u) << 24;
   3783     _cf = 0;
   3784     _flag_k = FK_NARROW(FK_TEST, 24);
   3785     { _st[0] = _st[0]; g_st_i64[0] = g_st_i64[0]; fp_pop(); } /* 0x38028673: fstp st(0) */
   3786     if (TEST_NZ(_flag_a, _flag_b)) goto L_38028682; /* 0x38028675: jne 0x38028682 */
   3787 L_38028677:
   3788     edi = POP32_VAL(esp); /* 0x38028677: pop edi */
   3789     esi = POP32_VAL(esp); /* 0x38028678: pop esi */
   3790     SET_LO8(eax, 1); /* 0x38028679: mov al, 1 */
   3791     ebx = POP32_VAL(esp); /* 0x3802867B: pop ebx */
   3792     esp = ebp; /* 0x3802867C: mov esp, ebp */
   3793     ebp = POP32_VAL(esp); /* 0x3802867E: pop ebp */
   3794     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x3802867F: ret 0x14 */
   3795 L_38028682:
   3796     edx = MEM32(ebp + (-0x14)); /* 0x38028682: mov edx, dword ptr [ebp - 0x14] */
   3797     eax = MEM32(ebp + (-0x10)); /* 0x38028685: mov eax, dword ptr [ebp - 0x10] */
   3798     ecx = MEM32(ebp + (-0xC)); /* 0x38028688: mov ecx, dword ptr [ebp - 0xc] */
   3799     MEM32(esi) = edx; /* 0x3802868B: mov dword ptr [esi], edx */
   3800     edx = MEM32(ebp + (-0x20)); /* 0x3802868D: mov edx, dword ptr [ebp - 0x20] */
   3801     MEM32(esi + 0x4) = eax; /* 0x38028690: mov dword ptr [esi + 4], eax */
   3802     eax = MEM32(ebp + (-0x1C)); /* 0x38028693: mov eax, dword ptr [ebp - 0x1c] */
   3803     MEM32(esi + 0x8) = ecx; /* 0x38028696: mov dword ptr [esi + 8], ecx */
   3804     ecx = MEM32(ebp + (-0x18)); /* 0x38028699: mov ecx, dword ptr [ebp - 0x18] */
   3805     MEM32(ebx) = edx; /* 0x3802869C: mov dword ptr [ebx], edx */
   3806     edx = MEM32(ebp + (-0x4)); /* 0x3802869E: mov edx, dword ptr [ebp - 4] */
   3807     MEM32(ebx + 0x4) = eax; /* 0x380286A1: mov dword ptr [ebx + 4], eax */
   3808     eax = MEM32(ebp + 0x18); /* 0x380286A4: mov eax, dword ptr [ebp + 0x18] */
   3809     edi = POP32_VAL(esp); /* 0x380286A7: pop edi */
   3810     MEM32(ebx + 0x8) = ecx; /* 0x380286A8: mov dword ptr [ebx + 8], ecx */
   3811     esi = POP32_VAL(esp); /* 0x380286AB: pop esi */
   3812     MEM32(eax) = edx; /* 0x380286AC: mov dword ptr [eax], edx */
   3813     SET_LO8(eax, 1); /* 0x380286AE: mov al, 1 */
   3814     ebx = POP32_VAL(esp); /* 0x380286B0: pop ebx */
   3815     esp = ebp; /* 0x380286B1: mov esp, ebp */
   3816     ebp = POP32_VAL(esp); /* 0x380286B3: pop ebp */
   3817     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x380286B4: ret 0x14 */
   3818 L_380286B7:
   3819     ecx = MEM32(ebp + (-0x14)); /* 0x380286B7: mov ecx, dword ptr [ebp - 0x14] */
   3820     edx = MEM32(ebp + (-0x10)); /* 0x380286BA: mov edx, dword ptr [ebp - 0x10] */
   3821     eax = MEM32(ebp + (-0xC)); /* 0x380286BD: mov eax, dword ptr [ebp - 0xc] */
   3822     MEM32(esi) = ecx; /* 0x380286C0: mov dword ptr [esi], ecx */
   3823     ecx = MEM32(ebp + (-0x20)); /* 0x380286C2: mov ecx, dword ptr [ebp - 0x20] */
   3824     MEM32(esi + 0x4) = edx; /* 0x380286C5: mov dword ptr [esi + 4], edx */
   3825     edx = MEM32(ebp + (-0x1C)); /* 0x380286C8: mov edx, dword ptr [ebp - 0x1c] */
   3826     MEM32(esi + 0x8) = eax; /* 0x380286CB: mov dword ptr [esi + 8], eax */
   3827     eax = MEM32(ebp + (-0x18)); /* 0x380286CE: mov eax, dword ptr [ebp - 0x18] */
   3828     MEM32(ebx) = ecx; /* 0x380286D1: mov dword ptr [ebx], ecx */
   3829     ecx = MEM32(ebp + (-0x4)); /* 0x380286D3: mov ecx, dword ptr [ebp - 4] */
   3830     MEM32(ebx + 0x4) = edx; /* 0x380286D6: mov dword ptr [ebx + 4], edx */
   3831     edx = MEM32(ebp + 0x18); /* 0x380286D9: mov edx, dword ptr [ebp + 0x18] */
   3832     edi = POP32_VAL(esp); /* 0x380286DC: pop edi */
   3833     MEM32(ebx + 0x8) = eax; /* 0x380286DD: mov dword ptr [ebx + 8], eax */
   3834     esi = POP32_VAL(esp); /* 0x380286E0: pop esi */
   3835     MEM32(edx) = ecx; /* 0x380286E1: mov dword ptr [edx], ecx */
   3836     SET_LO8(eax, 1); /* 0x380286E3: mov al, 1 */
   3837     ebx = POP32_VAL(esp); /* 0x380286E5: pop ebx */
   3838     esp = ebp; /* 0x380286E6: mov esp, ebp */
   3839     ebp = POP32_VAL(esp); /* 0x380286E8: pop ebp */
   3840     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x380286E9: ret 0x14 */
   3841 L_38028707:
   3842     edi = POP32_VAL(esp); /* 0x38028707: pop edi */
   3843     esi = POP32_VAL(esp); /* 0x38028708: pop esi */
   3844     ebx = POP32_VAL(esp); /* 0x38028709: pop ebx */
   3845     esp = ebp; /* 0x3802870A: mov esp, ebp */
   3846     ebp = POP32_VAL(esp); /* 0x3802870C: pop ebp */
   3847     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x3802870D: ret 0x14 */
   3848     RECOMP_REGS_OUT();
   3849 }
   3850 
   3851 void sub_38028710(void) {
   3852     int _fpu_cmp = 0;
   3853     uint32_t _cf = 0;
   3854     int _df = 1;
   3855     uint32_t _flag_k = FK_NONE;
   3856     uint32_t _flag_a = 0, _flag_b = 0;
   3857     uint32_t _itail_tgt = 0;
   3858     RECOMP_REGS_LOCALS
   3859     RECOMP_ENTER(0x38028710u);
   3860 
   3861 L_38028710:
   3862     PUSH32(esp, ebp); /* 0x38028710: push ebp */
   3863     ebp = esp; /* 0x38028711: mov ebp, esp */
   3864     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3865     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3866     esp = esp - 0xCu; /* 0x38028713: sub esp, 0xc */
   3867     _flag_k = FK_CMP;
   3868     eax = MEM32(ecx); /* 0x38028716: mov eax, dword ptr [ecx] */
   3869     edx = ebp + 0x10; /* 0x38028718: lea edx, [ebp + 0x10] */
   3870     PUSH32(esp, edx); /* 0x3802871B: push edx */
   3871     edx = ebp + (-0xC); /* 0x3802871C: lea edx, [ebp - 0xc] */
   3872     PUSH32(esp, edx); /* 0x3802871F: push edx */
   3873     edx = MEM32(ebp + 0x10); /* 0x38028720: mov edx, dword ptr [ebp + 0x10] */
   3874     PUSH32(esp, edx); /* 0x38028723: push edx */
   3875     edx = MEM32(ebp + 0xC); /* 0x38028724: mov edx, dword ptr [ebp + 0xc] */
   3876     PUSH32(esp, edx); /* 0x38028727: push edx */
   3877     edx = MEM32(ebp + 0x8); /* 0x38028728: mov edx, dword ptr [ebp + 8] */
   3878     PUSH32(esp, edx); /* 0x3802872B: push edx */
   3879     MEM32(ebp + (-0xC)) = 0; /* 0x3802872C: mov dword ptr [ebp - 0xc], 0 */
   3880     MEM32(ebp + (-0x8)) = 0; /* 0x38028733: mov dword ptr [ebp - 8], 0 */
   3881     MEM32(ebp + (-0x4)) = 0; /* 0x3802873A: mov dword ptr [ebp - 4], 0 */
   3882     RECOMP_ICALL(MEM32(eax + 0x18)); /* 0x38028741: call dword ptr [eax + 0x18] */
   3883     RECOMP_FLAGS_IN();
   3884     esp = ebp; /* 0x38028744: mov esp, ebp */
   3885     ebp = POP32_VAL(esp); /* 0x38028746: pop ebp */
   3886     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x38028747: ret 0xc */
   3887     RECOMP_REGS_OUT();
   3888 }
   3889 
   3890 void sub_38028750(void) {
   3891     int _fpu_cmp = 0;
   3892     uint32_t _cf = 0;
   3893     int _df = 1;
   3894     uint32_t _flag_k = FK_NONE;
   3895     uint32_t _flag_a = 0, _flag_b = 0;
   3896     uint32_t _itail_tgt = 0;
   3897     RECOMP_REGS_LOCALS
   3898     RECOMP_ENTER(0x38028750u);
   3899 
   3900     goto L_38028750;
   3901 L_38027E80:
   3902     PUSH32(esp, ebp); /* 0x38027E80: push ebp */
   3903     ebp = esp; /* 0x38027E81: mov ebp, esp */
   3904     PUSH32(esp, ebx); /* 0x38027E83: push ebx */
   3905     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x38027E84: mov bl, byte ptr [ebp + 8] */
   3906     /* test LO8(ebx), 2 */ /* 0x38027E87: test bl, 2 */
   3907     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   3908     _cf = 0;
   3909     _flag_k = FK_NARROW(FK_TEST, 24);
   3910     PUSH32(esp, esi); /* 0x38027E8A: push esi */
   3911     esi = ecx; /* 0x38027E8B: mov esi, ecx */
   3912     if (TEST_Z(_flag_a, _flag_b)) goto L_38027EBB; /* 0x38027E8D: je 0x38027ebb */
   3913 L_38027E8F:
   3914     eax = MEM32(esi + (-0x4)); /* 0x38027E8F: mov eax, dword ptr [esi - 4] */
   3915     PUSH32(esp, edi); /* 0x38027E92: push edi */
   3916     PUSH32(esp, 0x38027EE0u); /* 0x38027E93: push 0x38027ee0 */
   3917     edi = esi + (-0x4); /* 0x38027E98: lea edi, [esi - 4] */
   3918     PUSH32(esp, eax); /* 0x38027E9B: push eax */
   3919     PUSH32(esp, 0x40u); /* 0x38027E9C: push 0x40 */
   3920     PUSH32(esp, esi); /* 0x38027E9E: push esi */
   3921     RECOMP_ICALL(0x3804B582u); /* 0x38027E9F: call 0x3804b582 */ /* not lifted */
   3922     RECOMP_FLAGS_IN();
   3923     /* test LO8(ebx), 1 */ /* 0x38027EA4: test bl, 1 */
   3924     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   3925     _cf = 0;
   3926     _flag_k = FK_NARROW(FK_TEST, 24);
   3927     if (TEST_Z(_flag_a, _flag_b)) goto L_38027EB2; /* 0x38027EA7: je 0x38027eb2 */
   3928 L_38027EA9:
   3929     PUSH32(esp, edi); /* 0x38027EA9: push edi */
   3930     RECOMP_ICALL(0x3804B4F6u); /* 0x38027EAA: call 0x3804b4f6 */ /* not lifted */
   3931     RECOMP_FLAGS_IN();
   3932     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3933     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3934     esp = esp + 4; /* 0x38027EAF: add esp, 4 */
   3935     _flag_k = FK_ADD;
   3936 L_38027EB2:
   3937     eax = edi; /* 0x38027EB2: mov eax, edi */
   3938     edi = POP32_VAL(esp); /* 0x38027EB4: pop edi */
   3939     esi = POP32_VAL(esp); /* 0x38027EB5: pop esi */
   3940     ebx = POP32_VAL(esp); /* 0x38027EB6: pop ebx */
   3941     ebp = POP32_VAL(esp); /* 0x38027EB7: pop ebp */
   3942     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38027EB8: ret 4 */
   3943 L_38027EBB:
   3944     ecx = esi; /* 0x38027EBB: mov ecx, esi */
   3945     RECOMP_ICALL(0x38027EE0u); /* 0x38027EBD: call 0x38027ee0 */ /* not lifted */
   3946     RECOMP_FLAGS_IN();
   3947     /* test LO8(ebx), 1 */ /* 0x38027EC2: test bl, 1 */
   3948     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   3949     _cf = 0;
   3950     _flag_k = FK_NARROW(FK_TEST, 24);
   3951     if (TEST_Z(_flag_a, _flag_b)) goto L_38027ED0; /* 0x38027EC5: je 0x38027ed0 */
   3952 L_38027EC7:
   3953     PUSH32(esp, esi); /* 0x38027EC7: push esi */
   3954     RECOMP_ICALL(0x3804B4F6u); /* 0x38027EC8: call 0x3804b4f6 */ /* not lifted */
   3955     RECOMP_FLAGS_IN();
   3956     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3957     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3958     esp = esp + 4; /* 0x38027ECD: add esp, 4 */
   3959     _flag_k = FK_ADD;
   3960 L_38027ED0:
   3961     eax = esi; /* 0x38027ED0: mov eax, esi */
   3962     esi = POP32_VAL(esp); /* 0x38027ED2: pop esi */
   3963     ebx = POP32_VAL(esp); /* 0x38027ED3: pop ebx */
   3964     ebp = POP32_VAL(esp); /* 0x38027ED4: pop ebp */
   3965     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38027ED5: ret 4 */
   3966 L_38028750:
   3967     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x18u);
   3968     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3969     ecx = ecx - 0x18u; /* 0x38028750: sub ecx, 0x18 */
   3970     _flag_k = FK_CMP;
   3971     RECOMP_BACKEDGE();
   3972     goto L_38027E80; /* 0x38028753: jmp 0x38027e80 */
   3973     { RECOMP_REGS_OUT(); return; } /* end of function */
   3974     RECOMP_REGS_OUT();
   3975 }
   3976 
   3977 void sub_38028760(void) {
   3978     int _fpu_cmp = 0;
   3979     uint32_t _cf = 0;
   3980     int _df = 1;
   3981     uint32_t _flag_k = FK_NONE;
   3982     uint32_t _flag_a = 0, _flag_b = 0;
   3983     uint32_t _itail_tgt = 0;
   3984     RECOMP_REGS_LOCALS
   3985     RECOMP_ENTER(0x38028760u);
   3986 
   3987 L_38028760:
   3988     RECOMP_ICALL(0x38028770u); /* 0x38028760: call 0x38028770 */ /* not lifted */
   3989     RECOMP_FLAGS_IN();
   3990     goto L_38028780; /* 0x38028765: jmp 0x38028780 */
   3991 L_38028780:
   3992     PUSH32(esp, 0x38028790u); /* 0x38028780: push 0x38028790 */
   3993     RECOMP_ICALL(0x3804B54Cu); /* 0x38028785: call 0x3804b54c */ /* not lifted */
   3994     RECOMP_FLAGS_IN();
   3995     ecx = POP32_VAL(esp); /* 0x3802878A: pop ecx */
   3996     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802878B: ret  */
   3997     RECOMP_REGS_OUT();
   3998 }
   3999 
   4000 void sub_38028770(void) {
   4001     int _fpu_cmp = 0;
   4002     uint32_t _cf = 0;
   4003     int _df = 1;
   4004     uint32_t _flag_k = FK_NONE;
   4005     uint32_t _flag_a = 0, _flag_b = 0;
   4006     uint32_t _itail_tgt = 0;
   4007     RECOMP_REGS_LOCALS
   4008     RECOMP_ENTER(0x38028770u);
   4009 
   4010 L_38028770:
   4011     ecx = 0x3806EDD1u; /* 0x38028770: mov ecx, 0x3806edd1 */
   4012 L_38028775:
   4013     { _itail_tgt = (uint32_t)(MEM32(0x3804E060)); goto _ljump; }
   4014     { RECOMP_REGS_OUT(); return; } /* end of function */
   4015   _ljump:
   4016     switch (_itail_tgt) {
   4017       case 0x38028770u: goto L_38028770;
   4018       case 0x38028775u: goto L_38028775;
   4019       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4020     }
   4021     RECOMP_REGS_OUT();
   4022 }
   4023 
   4024 void sub_38028780(void) {
   4025     int _fpu_cmp = 0;
   4026     uint32_t _cf = 0;
   4027     int _df = 1;
   4028     uint32_t _flag_k = FK_NONE;
   4029     uint32_t _flag_a = 0, _flag_b = 0;
   4030     uint32_t _itail_tgt = 0;
   4031     RECOMP_REGS_LOCALS
   4032     RECOMP_ENTER(0x38028780u);
   4033 
   4034 L_38028780:
   4035     PUSH32(esp, 0x38028790u); /* 0x38028780: push 0x38028790 */
   4036     RECOMP_ICALL(0x3804B54Cu); /* 0x38028785: call 0x3804b54c */ /* not lifted */
   4037     RECOMP_FLAGS_IN();
   4038     ecx = POP32_VAL(esp); /* 0x3802878A: pop ecx */
   4039     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3802878B: ret  */
   4040     RECOMP_REGS_OUT();
   4041 }
   4042 
   4043 void sub_38028790(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(0x38028790u);
   4052 
   4053 L_38028790:
   4054     ecx = 0x3806EDD1u; /* 0x38028790: mov ecx, 0x3806edd1 */
   4055 L_38028795:
   4056     { _itail_tgt = (uint32_t)(MEM32(0x3804E064)); goto _ljump; }
   4057     { RECOMP_REGS_OUT(); return; } /* end of function */
   4058   _ljump:
   4059     switch (_itail_tgt) {
   4060       case 0x38028790u: goto L_38028790;
   4061       case 0x38028795u: goto L_38028795;
   4062       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4063     }
   4064     RECOMP_REGS_OUT();
   4065 }
   4066 
   4067 void sub_380287A0(void) {
   4068     int _fpu_cmp = 0;
   4069     uint32_t _cf = 0;
   4070     int _df = 1;
   4071     uint32_t _flag_k = FK_NONE;
   4072     uint32_t _flag_a = 0, _flag_b = 0;
   4073     uint32_t _itail_tgt = 0;
   4074     RECOMP_REGS_LOCALS
   4075     RECOMP_ENTER(0x380287A0u);
   4076 
   4077 L_380287A0:
   4078     RECOMP_ICALL(0x380287B0u); /* 0x380287A0: call 0x380287b0 */ /* not lifted */
   4079     RECOMP_FLAGS_IN();
   4080     goto L_380287C0; /* 0x380287A5: jmp 0x380287c0 */
   4081 L_380287C0:
   4082     PUSH32(esp, 0x380287D0u); /* 0x380287C0: push 0x380287d0 */
   4083     RECOMP_ICALL(0x3804B54Cu); /* 0x380287C5: call 0x3804b54c */ /* not lifted */
   4084     RECOMP_FLAGS_IN();
   4085     ecx = POP32_VAL(esp); /* 0x380287CA: pop ecx */
   4086     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380287CB: ret  */
   4087     RECOMP_REGS_OUT();
   4088 }
   4089 
   4090 void sub_380287B0(void) {
   4091     int _fpu_cmp = 0;
   4092     uint32_t _cf = 0;
   4093     int _df = 1;
   4094     uint32_t _flag_k = FK_NONE;
   4095     uint32_t _flag_a = 0, _flag_b = 0;
   4096     uint32_t _itail_tgt = 0;
   4097     RECOMP_REGS_LOCALS
   4098     RECOMP_ENTER(0x380287B0u);
   4099 
   4100 L_380287B0:
   4101     ecx = 0x3806EDD0u; /* 0x380287B0: mov ecx, 0x3806edd0 */
   4102 L_380287B5:
   4103     { _itail_tgt = (uint32_t)(MEM32(0x3804E068)); goto _ljump; }
   4104     { RECOMP_REGS_OUT(); return; } /* end of function */
   4105   _ljump:
   4106     switch (_itail_tgt) {
   4107       case 0x380287B0u: goto L_380287B0;
   4108       case 0x380287B5u: goto L_380287B5;
   4109       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4110     }
   4111     RECOMP_REGS_OUT();
   4112 }
   4113 
   4114 void sub_380287C0(void) {
   4115     int _fpu_cmp = 0;
   4116     uint32_t _cf = 0;
   4117     int _df = 1;
   4118     uint32_t _flag_k = FK_NONE;
   4119     uint32_t _flag_a = 0, _flag_b = 0;
   4120     uint32_t _itail_tgt = 0;
   4121     RECOMP_REGS_LOCALS
   4122     RECOMP_ENTER(0x380287C0u);
   4123 
   4124 L_380287C0:
   4125     PUSH32(esp, 0x380287D0u); /* 0x380287C0: push 0x380287d0 */
   4126     RECOMP_ICALL(0x3804B54Cu); /* 0x380287C5: call 0x3804b54c */ /* not lifted */
   4127     RECOMP_FLAGS_IN();
   4128     ecx = POP32_VAL(esp); /* 0x380287CA: pop ecx */
   4129     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380287CB: ret  */
   4130     RECOMP_REGS_OUT();
   4131 }
   4132 
   4133 void sub_380287D0(void) {
   4134     int _fpu_cmp = 0;
   4135     uint32_t _cf = 0;
   4136     int _df = 1;
   4137     uint32_t _flag_k = FK_NONE;
   4138     uint32_t _flag_a = 0, _flag_b = 0;
   4139     uint32_t _itail_tgt = 0;
   4140     RECOMP_REGS_LOCALS
   4141     RECOMP_ENTER(0x380287D0u);
   4142 
   4143 L_380287D0:
   4144     ecx = 0x3806EDD0u; /* 0x380287D0: mov ecx, 0x3806edd0 */
   4145 L_380287D5:
   4146     { _itail_tgt = (uint32_t)(MEM32(0x3804E06C)); goto _ljump; }
   4147     { RECOMP_REGS_OUT(); return; } /* end of function */
   4148   _ljump:
   4149     switch (_itail_tgt) {
   4150       case 0x380287D0u: goto L_380287D0;
   4151       case 0x380287D5u: goto L_380287D5;
   4152       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4153     }
   4154     RECOMP_REGS_OUT();
   4155 }
   4156 
   4157 void sub_380287E0(void) {
   4158     int _fpu_cmp = 0;
   4159     uint32_t _cf = 0;
   4160     int _df = 1;
   4161     uint32_t _flag_k = FK_NONE;
   4162     uint32_t _flag_a = 0, _flag_b = 0;
   4163     uint32_t _itail_tgt = 0;
   4164     RECOMP_REGS_LOCALS
   4165     RECOMP_ENTER(0x380287E0u);
   4166 
   4167 L_380287E0:
   4168     eax = ecx; /* 0x380287E0: mov eax, ecx */
   4169     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4170     ecx = 0; /* 0x380287E2: xor ecx, ecx */
   4171     _cf = 0;
   4172     _flag_k = FK_TEST;
   4173     MEM32(eax + 0x4) = ecx; /* 0x380287E4: mov dword ptr [eax + 4], ecx */
   4174     MEM32(eax + 0x8) = ecx; /* 0x380287E7: mov dword ptr [eax + 8], ecx */
   4175     MEM32(eax) = 0x3804F494u; /* 0x380287EA: mov dword ptr [eax], 0x3804f494 */
   4176     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x380287F0: ret  */
   4177     RECOMP_REGS_OUT();
   4178 }
   4179 
   4180 void sub_38028800(void) {
   4181     int _fpu_cmp = 0;
   4182     uint32_t _cf = 0;
   4183     int _df = 1;
   4184     uint32_t _flag_k = FK_NONE;
   4185     uint32_t _flag_a = 0, _flag_b = 0;
   4186     uint32_t _itail_tgt = 0;
   4187     RECOMP_REGS_LOCALS
   4188     RECOMP_ENTER(0x38028800u);
   4189 
   4190 L_38028800:
   4191     MEM32(ecx) = 0x3804F494u; /* 0x38028800: mov dword ptr [ecx], 0x3804f494 */
   4192     MEM32(ecx + 0x4) = 0; /* 0x38028806: mov dword ptr [ecx + 4], 0 */
   4193     eax = MEM32(0x3804E7AC); /* 0x3802880D: mov eax, dword ptr [0x3804e7ac] */
   4194     MEM32(ecx) = eax; /* 0x38028812: mov dword ptr [ecx], eax */
   4195     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38028814: ret  */
   4196     RECOMP_REGS_OUT();
   4197 }
   4198 
   4199 void sub_38028820(void) {
   4200     int _fpu_cmp = 0;
   4201     uint32_t _cf = 0;
   4202     int _df = 1;
   4203     uint32_t _flag_k = FK_NONE;
   4204     uint32_t _flag_a = 0, _flag_b = 0;
   4205     uint32_t _itail_tgt = 0;
   4206     RECOMP_REGS_LOCALS
   4207     RECOMP_ENTER(0x38028820u);
   4208 
   4209 L_38028820:
   4210     PUSH32(esp, ebp); /* 0x38028820: push ebp */
   4211     ebp = esp; /* 0x38028821: mov ebp, esp */
   4212     eax = MEM32(ebp + 0x8); /* 0x38028823: mov eax, dword ptr [ebp + 8] */
   4213     MEM32(ecx + 0x8) = eax; /* 0x38028826: mov dword ptr [ecx + 8], eax */
   4214     ebp = POP32_VAL(esp); /* 0x38028829: pop ebp */
   4215     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3802882A: ret 4 */
   4216     RECOMP_REGS_OUT();
   4217 }
   4218 
   4219 void sub_38028830(void) {
   4220     int _fpu_cmp = 0;
   4221     uint32_t _cf = 0;
   4222     int _df = 1;
   4223     uint32_t _flag_k = FK_NONE;
   4224     uint32_t _flag_a = 0, _flag_b = 0;
   4225     uint32_t _itail_tgt = 0;
   4226     RECOMP_REGS_LOCALS
   4227     RECOMP_ENTER(0x38028830u);
   4228 
   4229 L_38028830:
   4230     PUSH32(esp, ebp); /* 0x38028830: push ebp */
   4231     ebp = esp; /* 0x38028831: mov ebp, esp */
   4232     eax = ecx; /* 0x38028833: mov eax, ecx */
   4233     ecx = MEM32(0x3804E7AC); /* 0x38028835: mov ecx, dword ptr [0x3804e7ac] */
   4234     MEM32(eax) = ecx; /* 0x3802883B: mov dword ptr [eax], ecx */
   4235     ecx = MEM32(ebp + 0x8); /* 0x3802883D: mov ecx, dword ptr [ebp + 8] */
   4236     edx = MEM32(ecx + 0x4); /* 0x38028840: mov edx, dword ptr [ecx + 4] */
   4237     MEM32(eax + 0x4) = edx; /* 0x38028843: mov dword ptr [eax + 4], edx */
   4238     ecx = MEM32(ecx + 0x8); /* 0x38028846: mov ecx, dword ptr [ecx + 8] */
   4239     MEM32(eax + 0x8) = ecx; /* 0x38028849: mov dword ptr [eax + 8], ecx */
   4240     MEM32(eax) = 0x3804F494u; /* 0x3802884C: mov dword ptr [eax], 0x3804f494 */
   4241     ebp = POP32_VAL(esp); /* 0x38028852: pop ebp */
   4242     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38028853: ret 4 */
   4243     RECOMP_REGS_OUT();
   4244 }
   4245 
   4246 void sub_38028860(void) {
   4247     int _fpu_cmp = 0;
   4248     uint32_t _cf = 0;
   4249     int _df = 1;
   4250     uint32_t _flag_k = FK_NONE;
   4251     uint32_t _flag_a = 0, _flag_b = 0;
   4252     uint32_t _itail_tgt = 0;
   4253     RECOMP_REGS_LOCALS
   4254     RECOMP_ENTER(0x38028860u);
   4255 
   4256 L_38028860:
   4257     PUSH32(esp, ebp); /* 0x38028860: push ebp */
   4258     ebp = esp; /* 0x38028861: mov ebp, esp */
   4259     eax = ecx; /* 0x38028863: mov eax, ecx */
   4260     ecx = MEM32(ebp + 0x8); /* 0x38028865: mov ecx, dword ptr [ebp + 8] */
   4261     edx = MEM32(ecx + 0x4); /* 0x38028868: mov edx, dword ptr [ecx + 4] */
   4262     MEM32(eax + 0x4) = edx; /* 0x3802886B: mov dword ptr [eax + 4], edx */
   4263     ecx = MEM32(ecx + 0x8); /* 0x3802886E: mov ecx, dword ptr [ecx + 8] */
   4264     MEM32(eax + 0x8) = ecx; /* 0x38028871: mov dword ptr [eax + 8], ecx */
   4265     ebp = POP32_VAL(esp); /* 0x38028874: pop ebp */
   4266     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38028875: ret 4 */
   4267     RECOMP_REGS_OUT();
   4268 }
   4269 
   4270 void sub_38028880(void) {
   4271     int _fpu_cmp = 0;
   4272     uint32_t _cf = 0;
   4273     int _df = 1;
   4274     uint32_t _flag_k = FK_NONE;
   4275     uint32_t _flag_a = 0, _flag_b = 0;
   4276     uint32_t _itail_tgt = 0;
   4277     RECOMP_REGS_LOCALS
   4278     RECOMP_ENTER(0x38028880u);
   4279 
   4280 L_38028880:
   4281     PUSH32(esp, ebp); /* 0x38028880: push ebp */
   4282     ebp = esp; /* 0x38028881: mov ebp, esp */
   4283     PUSH32(esp, ebx); /* 0x38028883: push ebx */
   4284     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x38028884: mov bl, byte ptr [ebp + 8] */
   4285     /* test LO8(ebx), 2 */ /* 0x38028887: test bl, 2 */
   4286     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   4287     _cf = 0;
   4288     _flag_k = FK_NARROW(FK_TEST, 24);
   4289     PUSH32(esp, esi); /* 0x3802888A: push esi */
   4290     esi = ecx; /* 0x3802888B: mov esi, ecx */
   4291     if (TEST_Z(_flag_a, _flag_b)) goto L_380288BB; /* 0x3802888D: je 0x380288bb */
   4292 L_3802888F:
   4293     eax = MEM32(esi + (-0x4)); /* 0x3802888F: mov eax, dword ptr [esi - 4] */
   4294     PUSH32(esp, edi); /* 0x38028892: push edi */
   4295     PUSH32(esp, 0x38028800u); /* 0x38028893: push 0x38028800 */
   4296     edi = esi + (-0x4); /* 0x38028898: lea edi, [esi - 4] */
   4297     PUSH32(esp, eax); /* 0x3802889B: push eax */
   4298     PUSH32(esp, 0xCu); /* 0x3802889C: push 0xc */
   4299     PUSH32(esp, esi); /* 0x3802889E: push esi */
   4300     RECOMP_ICALL(0x3804B582u); /* 0x3802889F: call 0x3804b582 */ /* not lifted */
   4301     RECOMP_FLAGS_IN();
   4302     /* test LO8(ebx), 1 */ /* 0x380288A4: test bl, 1 */
   4303     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   4304     _cf = 0;
   4305     _flag_k = FK_NARROW(FK_TEST, 24);
   4306     if (TEST_Z(_flag_a, _flag_b)) goto L_380288B2; /* 0x380288A7: je 0x380288b2 */
   4307 L_380288A9:
   4308     PUSH32(esp, edi); /* 0x380288A9: push edi */
   4309     RECOMP_ICALL(0x3804B4F6u); /* 0x380288AA: call 0x3804b4f6 */ /* not lifted */
   4310     RECOMP_FLAGS_IN();
   4311     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4312     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4313     esp = esp + 4; /* 0x380288AF: add esp, 4 */
   4314     _flag_k = FK_ADD;
   4315 L_380288B2:
   4316     eax = edi; /* 0x380288B2: mov eax, edi */
   4317     edi = POP32_VAL(esp); /* 0x380288B4: pop edi */
   4318     esi = POP32_VAL(esp); /* 0x380288B5: pop esi */
   4319     ebx = POP32_VAL(esp); /* 0x380288B6: pop ebx */
   4320     ebp = POP32_VAL(esp); /* 0x380288B7: pop ebp */
   4321     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x380288B8: ret 4 */
   4322 L_380288BB:
   4323     ecx = esi; /* 0x380288BB: mov ecx, esi */
   4324     RECOMP_ICALL(0x38028800u); /* 0x380288BD: call 0x38028800 */ /* not lifted */
   4325     RECOMP_FLAGS_IN();
   4326     /* test LO8(ebx), 1 */ /* 0x380288C2: test bl, 1 */
   4327     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   4328     _cf = 0;
   4329     _flag_k = FK_NARROW(FK_TEST, 24);
   4330     if (TEST_Z(_flag_a, _flag_b)) goto L_380288D0; /* 0x380288C5: je 0x380288d0 */
   4331 L_380288C7:
   4332     PUSH32(esp, esi); /* 0x380288C7: push esi */
   4333     RECOMP_ICALL(0x3804B4F6u); /* 0x380288C8: call 0x3804b4f6 */ /* not lifted */
   4334     RECOMP_FLAGS_IN();
   4335     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4336     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4337     esp = esp + 4; /* 0x380288CD: add esp, 4 */
   4338     _flag_k = FK_ADD;
   4339 L_380288D0:
   4340     eax = esi; /* 0x380288D0: mov eax, esi */
   4341     esi = POP32_VAL(esp); /* 0x380288D2: pop esi */
   4342     ebx = POP32_VAL(esp); /* 0x380288D3: pop ebx */
   4343     ebp = POP32_VAL(esp); /* 0x380288D4: pop ebp */
   4344     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x380288D5: ret 4 */
   4345     RECOMP_REGS_OUT();
   4346 }
   4347 
   4348 void sub_380288E0(void) {
   4349     int _fpu_cmp = 0;
   4350     uint32_t _cf = 0;
   4351     int _df = 1;
   4352     uint32_t _flag_k = FK_NONE;
   4353     uint32_t _flag_a = 0, _flag_b = 0;
   4354     uint32_t _itail_tgt = 0;
   4355     RECOMP_REGS_LOCALS
   4356     RECOMP_ENTER(0x380288E0u);
   4357 
   4358 L_380288E0:
   4359     PUSH32(esp, ebp); /* 0x380288E0: push ebp */
   4360     ebp = esp; /* 0x380288E1: mov ebp, esp */
   4361     eax = MEM32(ebp + 0x10); /* 0x380288E3: mov eax, dword ptr [ebp + 0x10] */
   4362     edx = MEM32(ebp + 0x8); /* 0x380288E6: mov edx, dword ptr [ebp + 8] */
   4363     PUSH32(esp, esi); /* 0x380288E9: push esi */
   4364     PUSH32(esp, 0); /* 0x380288EA: push 0 */
   4365     esi = ecx; /* 0x380288EC: mov esi, ecx */
   4366     ecx = MEM32(ebp + 0xC); /* 0x380288EE: mov ecx, dword ptr [ebp + 0xc] */
   4367     PUSH32(esp, eax); /* 0x380288F1: push eax */
   4368     PUSH32(esp, ecx); /* 0x380288F2: push ecx */
   4369     PUSH32(esp, edx); /* 0x380288F3: push edx */
   4370     ecx = esi; /* 0x380288F4: mov ecx, esi */
   4371     RECOMP_ICALL(MEM32(0x3804E574)); /* 0x380288F6: call dword ptr [0x3804e574] */
   4372     RECOMP_FLAGS_IN();
   4373     MEM32(esi + 0x50) = 0; /* 0x380288FC: mov dword ptr [esi + 0x50], 0 */
   4374     MEM32(esi + 0x54) = 0; /* 0x38028903: mov dword ptr [esi + 0x54], 0 */
   4375     MEM32(esi) = 0x3804F4C4u; /* 0x3802890A: mov dword ptr [esi], 0x3804f4c4 */
   4376     MEM32(esi + 0x4) = 0x3804F4BCu; /* 0x38028910: mov dword ptr [esi + 4], 0x3804f4bc */
   4377     eax = esi; /* 0x38028917: mov eax, esi */
   4378     esi = POP32_VAL(esp); /* 0x38028919: pop esi */
   4379     ebp = POP32_VAL(esp); /* 0x3802891A: pop ebp */
   4380     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x3802891B: ret 0xc */
   4381     RECOMP_REGS_OUT();
   4382 }
   4383 
   4384 void sub_38028920(void) {
   4385     int _fpu_cmp = 0;
   4386     uint32_t _cf = 0;
   4387     int _df = 1;
   4388     uint32_t _flag_k = FK_NONE;
   4389     uint32_t _flag_a = 0, _flag_b = 0;
   4390     uint32_t _itail_tgt = 0;
   4391     RECOMP_REGS_LOCALS
   4392     RECOMP_ENTER(0x38028920u);
   4393 
   4394 L_38028920:
   4395     MEM32(ecx) = 0x3804F4C4u; /* 0x38028920: mov dword ptr [ecx], 0x3804f4c4 */
   4396 L_38028926:
   4397     MEM32(ecx + 0x4) = 0x3804F4BCu; /* 0x38028926: mov dword ptr [ecx + 4], 0x3804f4bc */
   4398 L_3802892D:
   4399     MEM32(ecx + 0x50) = 0; /* 0x3802892D: mov dword ptr [ecx + 0x50], 0 */
   4400 L_38028934:
   4401     { _itail_tgt = (uint32_t)(MEM32(0x3804E570)); goto _ljump; }
   4402     { RECOMP_REGS_OUT(); return; } /* end of function */
   4403   _ljump:
   4404     switch (_itail_tgt) {
   4405       case 0x38028920u: goto L_38028920;
   4406       case 0x38028926u: goto L_38028926;
   4407       case 0x3802892Du: goto L_3802892D;
   4408       case 0x38028934u: goto L_38028934;
   4409       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   4410     }
   4411     RECOMP_REGS_OUT();
   4412 }
   4413 
   4414 void sub_38028940(void) {
   4415     int _fpu_cmp = 0;
   4416     uint32_t _cf = 0;
   4417     int _df = 1;
   4418     uint32_t _flag_k = FK_NONE;
   4419     uint32_t _flag_a = 0, _flag_b = 0;
   4420     uint32_t _itail_tgt = 0;
   4421     RECOMP_REGS_LOCALS
   4422     RECOMP_ENTER(0x38028940u);
   4423 
   4424 L_38028940:
   4425     PUSH32(esp, ebp); /* 0x38028940: push ebp */
   4426     ebp = esp; /* 0x38028941: mov ebp, esp */
   4427     eax = MEM32(ebp + 0x8); /* 0x38028943: mov eax, dword ptr [ebp + 8] */
   4428     MEM32(ecx + 0x50) = eax; /* 0x38028946: mov dword ptr [ecx + 0x50], eax */
   4429     ebp = POP32_VAL(esp); /* 0x38028949: pop ebp */
   4430     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3802894A: ret 4 */
   4431     RECOMP_REGS_OUT();
   4432 }
   4433 
   4434 void sub_38028950(void) {
   4435     int _fpu_cmp = 0;
   4436     uint32_t _cf = 0;
   4437     int _df = 1;
   4438     uint32_t _flag_k = FK_NONE;
   4439     uint32_t _flag_a = 0, _flag_b = 0;
   4440     uint32_t _itail_tgt = 0;
   4441     RECOMP_REGS_LOCALS
   4442     RECOMP_ENTER(0x38028950u);
   4443 
   4444 L_38028950:
   4445     PUSH32(esp, ebp); /* 0x38028950: push ebp */
   4446     ebp = esp; /* 0x38028951: mov ebp, esp */
   4447     eax = MEM32(ebp + 0x8); /* 0x38028953: mov eax, dword ptr [ebp + 8] */
   4448     MEM32(ecx + 0x54) = eax; /* 0x38028956: mov dword ptr [ecx + 0x54], eax */
   4449     ebp = POP32_VAL(esp); /* 0x38028959: pop ebp */
   4450     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x3802895A: ret 4 */
   4451     RECOMP_REGS_OUT();
   4452 }
   4453 
   4454 void sub_38028960(void) {
   4455     int _fpu_cmp = 0;
   4456     uint32_t _cf = 0;
   4457     int _df = 1;
   4458     uint32_t _flag_k = FK_NONE;
   4459     uint32_t _flag_a = 0, _flag_b = 0;
   4460     uint32_t _itail_tgt = 0;
   4461     RECOMP_REGS_LOCALS
   4462     RECOMP_ENTER(0x38028960u);
   4463 
   4464 L_38028960:
   4465     PUSH32(esp, ebp); /* 0x38028960: push ebp */
   4466     ebp = esp; /* 0x38028961: mov ebp, esp */
   4467     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   4468     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4469     esp = esp - 0x14u; /* 0x38028963: sub esp, 0x14 */
   4470     _flag_k = FK_CMP;
   4471     PUSH32(esp, ebx); /* 0x38028966: push ebx */
   4472     PUSH32(esp, esi); /* 0x38028967: push esi */
   4473     esi = MEM32(ebp + 0x8); /* 0x38028968: mov esi, dword ptr [ebp + 8] */
   4474     SET_LO8(eax, MEM8(esi + 0x8)); /* 0x3802896B: mov al, byte ptr [esi + 8] */
   4475     ebx = ecx; /* 0x3802896E: mov ebx, ecx */
   4476     PUSH32(esp, edi); /* 0x38028970: push edi */
   4477     MEM8(ebx + 0x8) = (uint8_t)(LO8(eax)); /* 0x38028971: mov byte ptr [ebx + 8], al */
   4478     eax = esi + 0xC; /* 0x38028974: lea eax, [esi + 0xc] */
   4479     edi = ebx + 0xC; /* 0x38028977: lea edi, [ebx + 0xc] */
   4480     /* cmp edi, eax */ /* 0x3802897A: cmp edi, eax */
   4481     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4482     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4483     _flag_k = FK_CMP;
   4484     MEM32(ebp + (-0x8)) = ebx; /* 0x3802897C: mov dword ptr [ebp - 8], ebx */
   4485     MEM32(ebp + (-0xC)) = eax; /* 0x3802897F: mov dword ptr [ebp - 0xc], eax */
   4486     if (CMP_EQ(_flag_a, _flag_b)) goto L_380289F5; /* 0x38028982: je 0x380289f5 */
   4487 L_38028984:
   4488     ecx = ebp + (-0x10); /* 0x38028984: lea ecx, [ebp - 0x10] */
   4489     PUSH32(esp, ecx); /* 0x38028987: push ecx */
   4490     ecx = edi; /* 0x38028988: mov ecx, edi */
   4491     RECOMP_ICALL(0x380354C0u); /* 0x3802898A: call 0x380354c0 */ /* not lifted */
   4492     RECOMP_FLAGS_IN();
   4493     esi = MEM32(eax); /* 0x3802898F: mov esi, dword ptr [eax] */
   4494     edx = MEM32(edi + 0x4); /* 0x38028991: mov edx, dword ptr [edi + 4] */
   4495     ecx = MEM32(ebp + (-0xC)); /* 0x38028994: mov ecx, dword ptr [ebp - 0xc] */
   4496     eax = ebp + (-0x14); /* 0x38028997: lea eax, [ebp - 0x14] */
   4497     PUSH32(esp, eax); /* 0x3802899A: push eax */
   4498     MEM32(ebp + (-0x4)) = edx; /* 0x3802899B: mov dword ptr [ebp - 4], edx */
   4499     RECOMP_ICALL(0x380354C0u); /* 0x3802899E: call 0x380354c0 */ /* not lifted */
   4500     RECOMP_FLAGS_IN();
   4501     edx = MEM32(ebp + 0x8); /* 0x380289A3: mov edx, dword ptr [ebp + 8] */
   4502     edi = MEM32(eax); /* 0x380289A6: mov edi, dword ptr [eax] */
   4503     ecx = ebp + (-0xC); /* 0x380289A8: lea ecx, [ebp - 0xc] */
   4504     PUSH32(esp, ecx); /* 0x380289AB: push ecx */
   4505     ecx = edx + 0xC; /* 0x380289AC: lea ecx, [edx + 0xc] */
   4506     RECOMP_ICALL(0x3800A4D0u); /* 0x380289AF: call 0x3800a4d0 */ /* not lifted */
   4507     RECOMP_FLAGS_IN();
   4508     ecx = MEM32(ebp + (-0x4)); /* 0x380289B4: mov ecx, dword ptr [ebp - 4] */
   4509     /* cmp esi, ecx */ /* 0x380289B7: cmp esi, ecx */
   4510     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   4511     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4512     _flag_k = FK_CMP;
   4513     eax = MEM32(eax); /* 0x380289B9: mov eax, dword ptr [eax] */
   4514     MEM32(ebp + (-0xC)) = eax; /* 0x380289BB: mov dword ptr [ebp - 0xc], eax */
   4515     if (CMP_EQ(_flag_a, _flag_b)) goto L_380289D2; /* 0x380289BE: je 0x380289d2 */
   4516 L_380289C0:
   4517     /* cmp edi, eax */ /* 0x380289C0: cmp edi, eax */
   4518     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4519     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4520     _flag_k = FK_CMP;
   4521     if (CMP_EQ(_flag_a, _flag_b)) goto L_380289D2; /* 0x380289C2: je 0x380289d2 */
   4522 L_380289C4:
   4523     edx = MEM32(edi + 0x8); /* 0x380289C4: mov edx, dword ptr [edi + 8] */
   4524     MEM32(esi + 0x8) = edx; /* 0x380289C7: mov dword ptr [esi + 8], edx */
   4525     esi = MEM32(esi); /* 0x380289CA: mov esi, dword ptr [esi] */
   4526     /* cmp esi, ecx */ /* 0x380289CC: cmp esi, ecx */
   4527     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(ecx);
   4528     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4529     _flag_k = FK_CMP;
   4530     edi = MEM32(edi); /* 0x380289CE: mov edi, dword ptr [edi] */
   4531     RECOMP_BACKEDGE();
   4532     if (CMP_NE(_flag_a, _flag_b)) goto L_380289C0; /* 0x380289D0: jne 0x380289c0 */
   4533 L_380289D2:
   4534     PUSH32(esp, ecx); /* 0x380289D2: push ecx */
   4535     PUSH32(esp, esi); /* 0x380289D3: push esi */
   4536     eax = ebp + (-0x14); /* 0x380289D4: lea eax, [ebp - 0x14] */
   4537     esi = ebx + 0xC; /* 0x380289D7: lea esi, [ebx + 0xc] */
   4538     PUSH32(esp, eax); /* 0x380289DA: push eax */
   4539     ecx = esi; /* 0x380289DB: mov ecx, esi */
   4540     RECOMP_ICALL(0x3802D5D0u); /* 0x380289DD: call 0x3802d5d0 */ /* not lifted */
   4541     RECOMP_FLAGS_IN();
   4542     ecx = MEM32(ebp + (-0xC)); /* 0x380289E2: mov ecx, dword ptr [ebp - 0xc] */
   4543     edx = MEM32(ebp + (-0x4)); /* 0x380289E5: mov edx, dword ptr [ebp - 4] */
   4544     PUSH32(esp, ecx); /* 0x380289E8: push ecx */
   4545     PUSH32(esp, edi); /* 0x380289E9: push edi */
   4546     PUSH32(esp, edx); /* 0x380289EA: push edx */
   4547     ecx = esi; /* 0x380289EB: mov ecx, esi */
   4548     RECOMP_ICALL(0x3802D560u); /* 0x380289ED: call 0x3802d560 */ /* not lifted */
   4549     RECOMP_FLAGS_IN();
   4550     esi = MEM32(ebp + 0x8); /* 0x380289F2: mov esi, dword ptr [ebp + 8] */
   4551 L_380289F5:
   4552     eax = MEM32(esi + 0x18); /* 0x380289F5: mov eax, dword ptr [esi + 0x18] */
   4553     MEM32(ebx + 0x18) = eax; /* 0x380289F8: mov dword ptr [ebx + 0x18], eax */
   4554     ecx = MEM32(esi + 0x1C); /* 0x380289FB: mov ecx, dword ptr [esi + 0x1c] */
   4555     MEM32(ebx + 0x1C) = ecx; /* 0x380289FE: mov dword ptr [ebx + 0x1c], ecx */
   4556     edx = MEM32(esi + 0x20); /* 0x38028A01: mov edx, dword ptr [esi + 0x20] */
   4557     MEM32(ebx + 0x20) = edx; /* 0x38028A04: mov dword ptr [ebx + 0x20], edx */
   4558     eax = MEM32(esi + 0x24); /* 0x38028A07: mov eax, dword ptr [esi + 0x24] */
   4559     MEM32(ebx + 0x24) = eax; /* 0x38028A0A: mov dword ptr [ebx + 0x24], eax */
   4560     eax = esi + 0x28; /* 0x38028A0D: lea eax, [esi + 0x28] */
   4561     edi = ebx + 0x28; /* 0x38028A10: lea edi, [ebx + 0x28] */
   4562     /* cmp edi, eax */ /* 0x38028A13: cmp edi, eax */
   4563     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4564     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4565     _flag_k = FK_CMP;
   4566     if (CMP_EQ(_flag_a, _flag_b)) goto L_38028A3A; /* 0x38028A15: je 0x38028a3a */
   4567 L_38028A17:
   4568     eax = MEM32(edi + 0x4); /* 0x38028A17: mov eax, dword ptr [edi + 4] */
   4569     ecx = MEM32(eax); /* 0x38028A1A: mov ecx, dword ptr [eax] */
   4570     PUSH32(esp, eax); /* 0x38028A1C: push eax */
   4571     PUSH32(esp, ecx); /* 0x38028A1D: push ecx */
   4572     ecx = ebp + (-0x14); /* 0x38028A1E: lea ecx, [ebp - 0x14] */
   4573     PUSH32(esp, ecx); /* 0x38028A21: push ecx */
   4574     ecx = edi; /* 0x38028A22: mov ecx, edi */
   4575     RECOMP_ICALL(0x3802E120u); /* 0x38028A24: call 0x3802e120 */ /* not lifted */
   4576     RECOMP_FLAGS_IN();
   4577     SET_LO8(edx, MEM8(esi + 0x29)); /* 0x38028A29: mov dl, byte ptr [esi + 0x29] */
   4578     eax = esi + 0x28; /* 0x38028A2C: lea eax, [esi + 0x28] */
   4579     PUSH32(esp, eax); /* 0x38028A2F: push eax */
   4580     ecx = edi; /* 0x38028A30: mov ecx, edi */
   4581     MEM8(edi + 0x1) = (uint8_t)(LO8(edx)); /* 0x38028A32: mov byte ptr [edi + 1], dl */
   4582     RECOMP_ICALL(0x3802E1D0u); /* 0x38028A35: call 0x3802e1d0 */ /* not lifted */
   4583     RECOMP_FLAGS_IN();
   4584 L_38028A3A:
   4585     eax = MEM32(esi + 0x3C); /* 0x38028A3A: mov eax, dword ptr [esi + 0x3c] */
   4586     MEM32(ebx + 0x3C) = eax; /* 0x38028A3D: mov dword ptr [ebx + 0x3c], eax */
   4587     ecx = MEM32(esi + 0x40); /* 0x38028A40: mov ecx, dword ptr [esi + 0x40] */
   4588     MEM32(ebx + 0x40) = ecx; /* 0x38028A43: mov dword ptr [ebx + 0x40], ecx */
   4589     ecx = esi + 0x44; /* 0x38028A46: lea ecx, [esi + 0x44] */
   4590     eax = ebx + 0x44; /* 0x38028A49: lea eax, [ebx + 0x44] */
   4591     /* cmp eax, ecx */ /* 0x38028A4C: cmp eax, ecx */
   4592     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   4593     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4594     _flag_k = FK_CMP;
   4595     if (CMP_EQ(_flag_a, _flag_b)) goto L_38028AC1; /* 0x38028A4E: je 0x38028ac1 */
   4596 L_38028A50:
   4597     esi = MEM32(eax + 0x4); /* 0x38028A50: mov esi, dword ptr [eax + 4] */
   4598     eax = MEM32(esi); /* 0x38028A53: mov eax, dword ptr [esi] */
   4599     /* cmp eax, esi */ /* 0x38028A55: cmp eax, esi */
   4600     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   4601     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4602     _flag_k = FK_CMP;
   4603     ecx = MEM32(ecx + 0x4); /* 0x38028A57: mov ecx, dword ptr [ecx + 4] */
   4604     edi = MEM32(ecx); /* 0x38028A5A: mov edi, dword ptr [ecx] */
   4605     MEM32(ebp + (-0x4)) = ecx; /* 0x38028A5C: mov dword ptr [ebp - 4], ecx */
   4606     if (CMP_EQ(_flag_a, _flag_b)) goto L_38028A87; /* 0x38028A5F: je 0x38028a87 */
   4607 L_38028A61:
   4608     /* cmp edi, MEM32(ebp + (-0x4)) */ /* 0x38028A61: cmp edi, dword ptr [ebp - 4] */
   4609     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(ebp + (-0x4)));
   4610     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4611     _flag_k = FK_CMP;
   4612     if (CMP_EQ(_flag_a, _flag_b)) goto L_38028A87; /* 0x38028A64: je 0x38028a87 */
   4613 L_38028A66:
   4614     edx = edi + 0x8; /* 0x38028A66: lea edx, [edi + 8] */
   4615     ebx = MEM32(edx); /* 0x38028A69: mov ebx, dword ptr [edx] */
   4616     ecx = eax + 0x8; /* 0x38028A6B: lea ecx, [eax + 8] */
   4617     MEM32(ecx) = ebx; /* 0x38028A6E: mov dword ptr [ecx], ebx */
   4618     ebx = MEM32(edx + 0x4); /* 0x38028A70: mov ebx, dword ptr [edx + 4] */
   4619     MEM32(ecx + 0x4) = ebx; /* 0x38028A73: mov dword ptr [ecx + 4], ebx */
   4620     edx = MEM32(edx + 0x8); /* 0x38028A76: mov edx, dword ptr [edx + 8] */
   4621     ebx = MEM32(ebp + (-0x8)); /* 0x38028A79: mov ebx, dword ptr [ebp - 8] */
   4622     MEM32(ecx + 0x8) = edx; /* 0x38028A7C: mov dword ptr [ecx + 8], edx */
   4623     eax = MEM32(eax); /* 0x38028A7F: mov eax, dword ptr [eax] */
   4624     /* cmp eax, esi */ /* 0x38028A81: cmp eax, esi */
   4625     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   4626     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4627     _flag_k = FK_CMP;
   4628     edi = MEM32(edi); /* 0x38028A83: mov edi, dword ptr [edi] */
   4629     RECOMP_BACKEDGE();
   4630     if (CMP_NE(_flag_a, _flag_b)) goto L_38028A61; /* 0x38028A85: jne 0x38028a61 */
   4631 L_38028A87:
   4632     /* cmp eax, esi */ /* 0x38028A87: cmp eax, esi */
   4633     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   4634     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4635     _flag_k = FK_CMP;
   4636     MEM32(ebp + (-0x8)) = eax; /* 0x38028A89: mov dword ptr [ebp - 8], eax */
   4637     if (CMP_EQ(_flag_a, _flag_b)) goto L_38028AB0; /* 0x38028A8C: je 0x38028ab0 */
   4638 L_38028A8E:
   4639     PUSH32(esp, 0); /* 0x38028A8E: push 0 */
   4640     eax = ebp + (-0x14); /* 0x38028A90: lea eax, [ebp - 0x14] */
   4641     PUSH32(esp, eax); /* 0x38028A93: push eax */
   4642     ecx = ebp + (-0x8); /* 0x38028A94: lea ecx, [ebp - 8] */
   4643     RECOMP_ICALL(0x380374A0u); /* 0x38028A97: call 0x380374a0 */ /* not lifted */
   4644     RECOMP_FLAGS_IN();
   4645     ecx = MEM32(eax); /* 0x38028A9C: mov ecx, dword ptr [eax] */
   4646     PUSH32(esp, ecx); /* 0x38028A9E: push ecx */
   4647     edx = ebp + (-0x10); /* 0x38028A9F: lea edx, [ebp - 0x10] */
   4648     PUSH32(esp, edx); /* 0x38028AA2: push edx */
   4649     ecx = ebx + 0x44; /* 0x38028AA3: lea ecx, [ebx + 0x44] */
   4650     RECOMP_ICALL(0x3801CBD0u); /* 0x38028AA6: call 0x3801cbd0 */ /* not lifted */
   4651     RECOMP_FLAGS_IN();
   4652     /* cmp MEM32(ebp + (-0x8)), esi */ /* 0x38028AAB: cmp dword ptr [ebp - 8], esi */
   4653     _flag_a = (uint32_t)(MEM32(ebp + (-0x8))); _flag_b = (uint32_t)(esi);
   4654     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4655     _flag_k = FK_CMP;
   4656     RECOMP_BACKEDGE();
   4657     if (CMP_NE(_flag_a, _flag_b)) goto L_38028A8E; /* 0x38028AAE: jne 0x38028a8e */
   4658 L_38028AB0:
   4659     eax = MEM32(ebp + (-0x4)); /* 0x38028AB0: mov eax, dword ptr [ebp - 4] */
   4660     PUSH32(esp, eax); /* 0x38028AB3: push eax */
   4661     PUSH32(esp, edi); /* 0x38028AB4: push edi */
   4662     PUSH32(esp, esi); /* 0x38028AB5: push esi */
   4663     ecx = ebx + 0x44; /* 0x38028AB6: lea ecx, [ebx + 0x44] */
   4664     RECOMP_ICALL(0x3802D620u); /* 0x38028AB9: call 0x3802d620 */ /* not lifted */
   4665     RECOMP_FLAGS_IN();
   4666     esi = MEM32(ebp + 0x8); /* 0x38028ABE: mov esi, dword ptr [ebp + 8] */
   4667 L_38028AC1:
   4668     ecx = MEM32(esi + 0x50); /* 0x38028AC1: mov ecx, dword ptr [esi + 0x50] */
   4669     MEM32(ebx + 0x50) = ecx; /* 0x38028AC4: mov dword ptr [ebx + 0x50], ecx */
   4670     edx = MEM32(esi + 0x54); /* 0x38028AC7: mov edx, dword ptr [esi + 0x54] */
   4671     edi = POP32_VAL(esp); /* 0x38028ACA: pop edi */
   4672     esi = POP32_VAL(esp); /* 0x38028ACB: pop esi */
   4673     MEM32(ebx + 0x54) = edx; /* 0x38028ACC: mov dword ptr [ebx + 0x54], edx */
   4674     eax = ebx; /* 0x38028ACF: mov eax, ebx */
   4675     ebx = POP32_VAL(esp); /* 0x38028AD1: pop ebx */
   4676     esp = ebp; /* 0x38028AD2: mov esp, ebp */
   4677     ebp = POP32_VAL(esp); /* 0x38028AD4: pop ebp */
   4678     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38028AD5: ret 4 */
   4679     RECOMP_REGS_OUT();
   4680 }
   4681 
   4682 void sub_38028AE0(void) {
   4683     int _fpu_cmp = 0;
   4684     uint32_t _cf = 0;
   4685     int _df = 1;
   4686     uint32_t _flag_k = FK_NONE;
   4687     uint32_t _flag_a = 0, _flag_b = 0;
   4688     uint32_t _itail_tgt = 0;
   4689     RECOMP_REGS_LOCALS
   4690     RECOMP_ENTER(0x38028AE0u);
   4691 
   4692 L_38028AE0:
   4693     PUSH32(esp, ebp); /* 0x38028AE0: push ebp */
   4694     ebp = esp; /* 0x38028AE1: mov ebp, esp */
   4695     PUSH32(esp, ebx); /* 0x38028AE3: push ebx */
   4696     SET_LO8(ebx, MEM8(ebp + 0x8)); /* 0x38028AE4: mov bl, byte ptr [ebp + 8] */
   4697     /* test LO8(ebx), 2 */ /* 0x38028AE7: test bl, 2 */
   4698     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   4699     _cf = 0;
   4700     _flag_k = FK_NARROW(FK_TEST, 24);
   4701     PUSH32(esp, esi); /* 0x38028AEA: push esi */
   4702     esi = ecx; /* 0x38028AEB: mov esi, ecx */
   4703     if (TEST_Z(_flag_a, _flag_b)) goto L_38028B1B; /* 0x38028AED: je 0x38028b1b */
   4704 L_38028AEF:
   4705     eax = MEM32(esi + (-0x4)); /* 0x38028AEF: mov eax, dword ptr [esi - 4] */
   4706     PUSH32(esp, edi); /* 0x38028AF2: push edi */
   4707     PUSH32(esp, 0x38028920u); /* 0x38028AF3: push 0x38028920 */
   4708     edi = esi + (-0x4); /* 0x38028AF8: lea edi, [esi - 4] */
   4709     PUSH32(esp, eax); /* 0x38028AFB: push eax */
   4710     PUSH32(esp, 0x58u); /* 0x38028AFC: push 0x58 */
   4711     PUSH32(esp, esi); /* 0x38028AFE: push esi */
   4712     RECOMP_ICALL(0x3804B582u); /* 0x38028AFF: call 0x3804b582 */ /* not lifted */
   4713     RECOMP_FLAGS_IN();
   4714     /* test LO8(ebx), 1 */ /* 0x38028B04: test bl, 1 */
   4715     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   4716     _cf = 0;
   4717     _flag_k = FK_NARROW(FK_TEST, 24);
   4718     if (TEST_Z(_flag_a, _flag_b)) goto L_38028B12; /* 0x38028B07: je 0x38028b12 */
   4719 L_38028B09:
   4720     PUSH32(esp, edi); /* 0x38028B09: push edi */
   4721     RECOMP_ICALL(0x3804B4F6u); /* 0x38028B0A: call 0x3804b4f6 */ /* not lifted */
   4722     RECOMP_FLAGS_IN();
   4723     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4724     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4725     esp = esp + 4; /* 0x38028B0F: add esp, 4 */
   4726     _flag_k = FK_ADD;
   4727 L_38028B12:
   4728     eax = edi; /* 0x38028B12: mov eax, edi */
   4729     edi = POP32_VAL(esp); /* 0x38028B14: pop edi */
   4730     esi = POP32_VAL(esp); /* 0x38028B15: pop esi */
   4731     ebx = POP32_VAL(esp); /* 0x38028B16: pop ebx */
   4732     ebp = POP32_VAL(esp); /* 0x38028B17: pop ebp */
   4733     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38028B18: ret 4 */
   4734 L_38028B1B:
   4735     ecx = esi; /* 0x38028B1B: mov ecx, esi */
   4736     RECOMP_ICALL(0x38028920u); /* 0x38028B1D: call 0x38028920 */ /* not lifted */
   4737     RECOMP_FLAGS_IN();
   4738     /* test LO8(ebx), 1 */ /* 0x38028B22: test bl, 1 */
   4739     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   4740     _cf = 0;
   4741     _flag_k = FK_NARROW(FK_TEST, 24);
   4742     if (TEST_Z(_flag_a, _flag_b)) goto L_38028B30; /* 0x38028B25: je 0x38028b30 */
   4743 L_38028B27:
   4744     PUSH32(esp, esi); /* 0x38028B27: push esi */
   4745     RECOMP_ICALL(0x3804B4F6u); /* 0x38028B28: call 0x3804b4f6 */ /* not lifted */
   4746     RECOMP_FLAGS_IN();
   4747     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4748     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4749     esp = esp + 4; /* 0x38028B2D: add esp, 4 */
   4750     _flag_k = FK_ADD;
   4751 L_38028B30:
   4752     eax = esi; /* 0x38028B30: mov eax, esi */
   4753     esi = POP32_VAL(esp); /* 0x38028B32: pop esi */
   4754     ebx = POP32_VAL(esp); /* 0x38028B33: pop ebx */
   4755     ebp = POP32_VAL(esp); /* 0x38028B34: pop ebp */
   4756     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38028B35: ret 4 */
   4757     RECOMP_REGS_OUT();
   4758 }
   4759 
   4760 void sub_38028B40(void) {
   4761     int _fpu_cmp = 0;
   4762     uint32_t _cf = 0;
   4763     int _df = 1;
   4764     uint32_t _flag_k = FK_NONE;
   4765     uint32_t _flag_a = 0, _flag_b = 0;
   4766     uint32_t _itail_tgt = 0;
   4767     RECOMP_REGS_LOCALS
   4768     RECOMP_ENTER(0x38028B40u);
   4769 
   4770 L_38028B40:
   4771     eax = ecx; /* 0x38028B40: mov eax, ecx */
   4772     MEM32(eax) = 0x3804F550u; /* 0x38028B42: mov dword ptr [eax], 0x3804f550 */
   4773     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38028B48: ret  */
   4774     RECOMP_REGS_OUT();
   4775 }
   4776 
   4777 void sub_38028B50(void) {
   4778     int _fpu_cmp = 0;
   4779     uint32_t _cf = 0;
   4780     int _df = 1;
   4781     uint32_t _flag_k = FK_NONE;
   4782     uint32_t _flag_a = 0, _flag_b = 0;
   4783     uint32_t _itail_tgt = 0;
   4784     RECOMP_REGS_LOCALS
   4785     RECOMP_ENTER(0x38028B50u);
   4786 
   4787 L_38028B50:
   4788     eax = ecx; /* 0x38028B50: mov eax, ecx */
   4789     MEM32(eax) = 0x3804F550u; /* 0x38028B52: mov dword ptr [eax], 0x3804f550 */
   4790     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x38028B58: ret 4 */
   4791     RECOMP_REGS_OUT();
   4792 }
   4793 
   4794 void sub_38028B60(void) {
   4795     int _fpu_cmp = 0;
   4796     uint32_t _cf = 0;
   4797     int _df = 1;
   4798     uint32_t _flag_k = FK_NONE;
   4799     uint32_t _flag_a = 0, _flag_b = 0;
   4800     uint32_t _itail_tgt = 0;
   4801     RECOMP_REGS_LOCALS
   4802     RECOMP_ENTER(0x38028B60u);
   4803 
   4804 L_38028B60:
   4805     goto L_38028B70; /* 0x38028B60: jmp 0x38028b70 */
   4806 L_38028B70:
   4807     MEM32(0x3806ED98) = 0x3806B9CCu; /* 0x38028B70: mov dword ptr [0x3806ed98], 0x3806b9cc */
   4808     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38028B7A: ret  */
   4809     RECOMP_REGS_OUT();
   4810 }
   4811 
   4812 void sub_38028B70(void) {
   4813     int _fpu_cmp = 0;
   4814     uint32_t _cf = 0;
   4815     int _df = 1;
   4816     uint32_t _flag_k = FK_NONE;
   4817     uint32_t _flag_a = 0, _flag_b = 0;
   4818     uint32_t _itail_tgt = 0;
   4819     RECOMP_REGS_LOCALS
   4820     RECOMP_ENTER(0x38028B70u);
   4821 
   4822 L_38028B70:
   4823     MEM32(0x3806ED98) = 0x3806B9CCu; /* 0x38028B70: mov dword ptr [0x3806ed98], 0x3806b9cc */
   4824     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38028B7A: ret  */
   4825     RECOMP_REGS_OUT();
   4826 }
   4827 
   4828 void sub_38028B80(void) {
   4829     int _fpu_cmp = 0;
   4830     uint32_t _cf = 0;
   4831     int _df = 1;
   4832     uint32_t _flag_k = FK_NONE;
   4833     uint32_t _flag_a = 0, _flag_b = 0;
   4834     uint32_t _itail_tgt = 0;
   4835     RECOMP_REGS_LOCALS
   4836     RECOMP_ENTER(0x38028B80u);
   4837 
   4838 L_38028B80:
   4839     goto L_38028B90; /* 0x38028B80: jmp 0x38028b90 */
   4840 L_38028B90:
   4841     MEM32(0x3806EDDC) = 0x3806BA00u; /* 0x38028B90: mov dword ptr [0x3806eddc], 0x3806ba00 */
   4842     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38028B9A: ret  */
   4843     RECOMP_REGS_OUT();
   4844 }
   4845 
   4846 void sub_38028B90(void) {
   4847     int _fpu_cmp = 0;
   4848     uint32_t _cf = 0;
   4849     int _df = 1;
   4850     uint32_t _flag_k = FK_NONE;
   4851     uint32_t _flag_a = 0, _flag_b = 0;
   4852     uint32_t _itail_tgt = 0;
   4853     RECOMP_REGS_LOCALS
   4854     RECOMP_ENTER(0x38028B90u);
   4855 
   4856 L_38028B90:
   4857     MEM32(0x3806EDDC) = 0x3806BA00u; /* 0x38028B90: mov dword ptr [0x3806eddc], 0x3806ba00 */
   4858     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38028B9A: ret  */
   4859     RECOMP_REGS_OUT();
   4860 }
   4861 
   4862 void sub_38028BA0(void) {
   4863     int _fpu_cmp = 0;
   4864     uint32_t _cf = 0;
   4865     int _df = 1;
   4866     uint32_t _flag_k = FK_NONE;
   4867     uint32_t _flag_a = 0, _flag_b = 0;
   4868     uint32_t _itail_tgt = 0;
   4869     RECOMP_REGS_LOCALS
   4870     RECOMP_ENTER(0x38028BA0u);
   4871 
   4872 L_38028BA0:
   4873     goto L_38028BB0; /* 0x38028BA0: jmp 0x38028bb0 */
   4874 L_38028BB0:
   4875     MEM32(0x3806EDD8) = 0x3806BA3Cu; /* 0x38028BB0: mov dword ptr [0x3806edd8], 0x3806ba3c */
   4876     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38028BBA: ret  */
   4877     RECOMP_REGS_OUT();
   4878 }
   4879 
   4880 void sub_38028BB0(void) {
   4881     int _fpu_cmp = 0;
   4882     uint32_t _cf = 0;
   4883     int _df = 1;
   4884     uint32_t _flag_k = FK_NONE;
   4885     uint32_t _flag_a = 0, _flag_b = 0;
   4886     uint32_t _itail_tgt = 0;
   4887     RECOMP_REGS_LOCALS
   4888     RECOMP_ENTER(0x38028BB0u);
   4889 
   4890 L_38028BB0:
   4891     MEM32(0x3806EDD8) = 0x3806BA3Cu; /* 0x38028BB0: mov dword ptr [0x3806edd8], 0x3806ba3c */
   4892     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38028BBA: ret  */
   4893     RECOMP_REGS_OUT();
   4894 }
   4895 
   4896 void sub_38028BC0(void) {
   4897     int _fpu_cmp = 0;
   4898     uint32_t _cf = 0;
   4899     int _df = 1;
   4900     uint32_t _flag_k = FK_NONE;
   4901     uint32_t _flag_a = 0, _flag_b = 0;
   4902     uint32_t _itail_tgt = 0;
   4903     RECOMP_REGS_LOCALS
   4904     RECOMP_ENTER(0x38028BC0u);
   4905 
   4906 L_38028BC0:
   4907     goto L_38028BD0; /* 0x38028BC0: jmp 0x38028bd0 */
   4908 L_38028BD0:
   4909     MEM32(0x3806EE64) = 0x3806BA70u; /* 0x38028BD0: mov dword ptr [0x3806ee64], 0x3806ba70 */
   4910     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38028BDA: ret  */
   4911     RECOMP_REGS_OUT();
   4912 }
   4913 
   4914 void sub_38028BD0(void) {
   4915     int _fpu_cmp = 0;
   4916     uint32_t _cf = 0;
   4917     int _df = 1;
   4918     uint32_t _flag_k = FK_NONE;
   4919     uint32_t _flag_a = 0, _flag_b = 0;
   4920     uint32_t _itail_tgt = 0;
   4921     RECOMP_REGS_LOCALS
   4922     RECOMP_ENTER(0x38028BD0u);
   4923 
   4924 L_38028BD0:
   4925     MEM32(0x3806EE64) = 0x3806BA70u; /* 0x38028BD0: mov dword ptr [0x3806ee64], 0x3806ba70 */
   4926     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38028BDA: ret  */
   4927     RECOMP_REGS_OUT();
   4928 }
   4929 
   4930 void sub_38028BE0(void) {
   4931     int _fpu_cmp = 0;
   4932     uint32_t _cf = 0;
   4933     int _df = 1;
   4934     uint32_t _flag_k = FK_NONE;
   4935     uint32_t _flag_a = 0, _flag_b = 0;
   4936     uint32_t _itail_tgt = 0;
   4937     RECOMP_REGS_LOCALS
   4938     RECOMP_ENTER(0x38028BE0u);
   4939 
   4940 L_38028BE0:
   4941     goto L_38028BF0; /* 0x38028BE0: jmp 0x38028bf0 */
   4942 L_38028BF0:
   4943     MEM32(0x3806EDC4) = 0x3806BAA4u; /* 0x38028BF0: mov dword ptr [0x3806edc4], 0x3806baa4 */
   4944     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38028BFA: ret  */
   4945     RECOMP_REGS_OUT();
   4946 }
   4947 
   4948 void sub_38028BF0(void) {
   4949     int _fpu_cmp = 0;
   4950     uint32_t _cf = 0;
   4951     int _df = 1;
   4952     uint32_t _flag_k = FK_NONE;
   4953     uint32_t _flag_a = 0, _flag_b = 0;
   4954     uint32_t _itail_tgt = 0;
   4955     RECOMP_REGS_LOCALS
   4956     RECOMP_ENTER(0x38028BF0u);
   4957 
   4958 L_38028BF0:
   4959     MEM32(0x3806EDC4) = 0x3806BAA4u; /* 0x38028BF0: mov dword ptr [0x3806edc4], 0x3806baa4 */
   4960     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38028BFA: ret  */
   4961     RECOMP_REGS_OUT();
   4962 }
   4963 
   4964 void sub_38028C00(void) {
   4965     int _fpu_cmp = 0;
   4966     uint32_t _cf = 0;
   4967     int _df = 1;
   4968     uint32_t _flag_k = FK_NONE;
   4969     uint32_t _flag_a = 0, _flag_b = 0;
   4970     uint32_t _itail_tgt = 0;
   4971     RECOMP_REGS_LOCALS
   4972     RECOMP_ENTER(0x38028C00u);
   4973 
   4974 L_38028C00:
   4975     goto L_38028C10; /* 0x38028C00: jmp 0x38028c10 */
   4976 L_38028C10:
   4977     MEM32(0x3806EE40) = 0x3806BAD8u; /* 0x38028C10: mov dword ptr [0x3806ee40], 0x3806bad8 */
   4978     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38028C1A: ret  */
   4979     RECOMP_REGS_OUT();
   4980 }
   4981 
   4982 void sub_38028C10(void) {
   4983     int _fpu_cmp = 0;
   4984     uint32_t _cf = 0;
   4985     int _df = 1;
   4986     uint32_t _flag_k = FK_NONE;
   4987     uint32_t _flag_a = 0, _flag_b = 0;
   4988     uint32_t _itail_tgt = 0;
   4989     RECOMP_REGS_LOCALS
   4990     RECOMP_ENTER(0x38028C10u);
   4991 
   4992 L_38028C10:
   4993     MEM32(0x3806EE40) = 0x3806BAD8u; /* 0x38028C10: mov dword ptr [0x3806ee40], 0x3806bad8 */
   4994     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38028C1A: ret  */
   4995     RECOMP_REGS_OUT();
   4996 }
   4997 
   4998 void sub_38028C20(void) {
   4999     int _fpu_cmp = 0;
   5000     uint32_t _cf = 0;
   5001     int _df = 1;
   5002     uint32_t _flag_k = FK_NONE;
   5003     uint32_t _flag_a = 0, _flag_b = 0;
   5004     uint32_t _itail_tgt = 0;
   5005     RECOMP_REGS_LOCALS
   5006     RECOMP_ENTER(0x38028C20u);
   5007 
   5008 L_38028C20:
   5009     goto L_38028C30; /* 0x38028C20: jmp 0x38028c30 */
   5010 L_38028C30:
   5011     MEM32(0x3806EDE4) = 0x3806BB10u; /* 0x38028C30: mov dword ptr [0x3806ede4], 0x3806bb10 */
   5012     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38028C3A: ret  */
   5013     RECOMP_REGS_OUT();
   5014 }
   5015 
   5016 void sub_38028C30(void) {
   5017     int _fpu_cmp = 0;
   5018     uint32_t _cf = 0;
   5019     int _df = 1;
   5020     uint32_t _flag_k = FK_NONE;
   5021     uint32_t _flag_a = 0, _flag_b = 0;
   5022     uint32_t _itail_tgt = 0;
   5023     RECOMP_REGS_LOCALS
   5024     RECOMP_ENTER(0x38028C30u);
   5025 
   5026 L_38028C30:
   5027     MEM32(0x3806EDE4) = 0x3806BB10u; /* 0x38028C30: mov dword ptr [0x3806ede4], 0x3806bb10 */
   5028     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38028C3A: ret  */
   5029     RECOMP_REGS_OUT();
   5030 }
   5031 
   5032 void sub_38028C40(void) {
   5033     int _fpu_cmp = 0;
   5034     uint32_t _cf = 0;
   5035     int _df = 1;
   5036     uint32_t _flag_k = FK_NONE;
   5037     uint32_t _flag_a = 0, _flag_b = 0;
   5038     uint32_t _itail_tgt = 0;
   5039     RECOMP_REGS_LOCALS
   5040     RECOMP_ENTER(0x38028C40u);
   5041 
   5042 L_38028C40:
   5043     goto L_38028C50; /* 0x38028C40: jmp 0x38028c50 */
   5044 L_38028C50:
   5045     MEM32(0x3806EDFC) = 0x3806BB4Cu; /* 0x38028C50: mov dword ptr [0x3806edfc], 0x3806bb4c */
   5046     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38028C5A: ret  */
   5047     RECOMP_REGS_OUT();
   5048 }
   5049 
   5050 void sub_38028C50(void) {
   5051     int _fpu_cmp = 0;
   5052     uint32_t _cf = 0;
   5053     int _df = 1;
   5054     uint32_t _flag_k = FK_NONE;
   5055     uint32_t _flag_a = 0, _flag_b = 0;
   5056     uint32_t _itail_tgt = 0;
   5057     RECOMP_REGS_LOCALS
   5058     RECOMP_ENTER(0x38028C50u);
   5059 
   5060 L_38028C50:
   5061     MEM32(0x3806EDFC) = 0x3806BB4Cu; /* 0x38028C50: mov dword ptr [0x3806edfc], 0x3806bb4c */
   5062     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x38028C5A: ret  */
   5063     RECOMP_REGS_OUT();
   5064 }