aorecomp

Anarchy Online classic in the browser

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


client/vendor/ace/source/lifted-0044.c (369353B)


      1 #define RECOMP_GENERATED_CODE
      2 #include "recomp_types.h"
      3 
      4 void sub_47064890(void) {
      5     int _fpu_cmp = 0;
      6     uint32_t _cf = 0;
      7     int _df = 1;
      8     uint32_t _flag_k = FK_NONE;
      9     uint32_t _flag_a = 0, _flag_b = 0;
     10     uint32_t _itail_tgt = 0;
     11     RECOMP_REGS_LOCALS
     12     RECOMP_ENTER(0x47064890u);
     13 
     14 L_47064890:
     15     eax = MEM32(ecx); /* 0x47064890: mov eax, dword ptr [ecx] */
     16 L_47064892:
     17     RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x47064892: call dword ptr [eax + 0x30] */
     18     RECOMP_FLAGS_IN();
     19 L_47064895:
     20     edx = MEM32(eax); /* 0x47064895: mov edx, dword ptr [eax] */
     21 L_47064897:
     22     ecx = eax; /* 0x47064897: mov ecx, eax */
     23 L_47064899:
     24     { _itail_tgt = (uint32_t)(MEM32(edx + 0x4)); goto _ljump; }
     25     { RECOMP_REGS_OUT(); return; } /* end of function */
     26   _ljump:
     27     switch (_itail_tgt) {
     28       case 0x47064890u: goto L_47064890;
     29       case 0x47064892u: goto L_47064892;
     30       case 0x47064895u: goto L_47064895;
     31       case 0x47064897u: goto L_47064897;
     32       case 0x47064899u: goto L_47064899;
     33       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
     34     }
     35     RECOMP_REGS_OUT();
     36 }
     37 
     38 void sub_470648A0(void) {
     39     int _fpu_cmp = 0;
     40     uint32_t _cf = 0;
     41     int _df = 1;
     42     uint32_t _flag_k = FK_NONE;
     43     uint32_t _flag_a = 0, _flag_b = 0;
     44     uint32_t _itail_tgt = 0;
     45     RECOMP_REGS_LOCALS
     46     RECOMP_ENTER(0x470648A0u);
     47 
     48 L_470648A0:
     49     eax = MEM32(ecx); /* 0x470648A0: mov eax, dword ptr [ecx] */
     50 L_470648A2:
     51     RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x470648A2: call dword ptr [eax + 0x30] */
     52     RECOMP_FLAGS_IN();
     53 L_470648A5:
     54     edx = MEM32(eax); /* 0x470648A5: mov edx, dword ptr [eax] */
     55 L_470648A7:
     56     ecx = eax; /* 0x470648A7: mov ecx, eax */
     57 L_470648A9:
     58     { _itail_tgt = (uint32_t)(MEM32(edx + 0x60)); goto _ljump; }
     59     { RECOMP_REGS_OUT(); return; } /* end of function */
     60   _ljump:
     61     switch (_itail_tgt) {
     62       case 0x470648A0u: goto L_470648A0;
     63       case 0x470648A2u: goto L_470648A2;
     64       case 0x470648A5u: goto L_470648A5;
     65       case 0x470648A7u: goto L_470648A7;
     66       case 0x470648A9u: goto L_470648A9;
     67       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
     68     }
     69     RECOMP_REGS_OUT();
     70 }
     71 
     72 void sub_470648B0(void) {
     73     int _fpu_cmp = 0;
     74     uint32_t _cf = 0;
     75     int _df = 1;
     76     uint32_t _flag_k = FK_NONE;
     77     uint32_t _flag_a = 0, _flag_b = 0;
     78     uint32_t _itail_tgt = 0;
     79     RECOMP_REGS_LOCALS
     80     RECOMP_ENTER(0x470648B0u);
     81 
     82 L_470648B0:
     83     eax = MEM32(ecx); /* 0x470648B0: mov eax, dword ptr [ecx] */
     84 L_470648B2:
     85     RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x470648B2: call dword ptr [eax + 0x30] */
     86     RECOMP_FLAGS_IN();
     87 L_470648B5:
     88     edx = MEM32(eax); /* 0x470648B5: mov edx, dword ptr [eax] */
     89 L_470648B7:
     90     ecx = eax; /* 0x470648B7: mov ecx, eax */
     91 L_470648B9:
     92     { _itail_tgt = (uint32_t)(MEM32(edx + 0x64)); goto _ljump; }
     93     { RECOMP_REGS_OUT(); return; } /* end of function */
     94   _ljump:
     95     switch (_itail_tgt) {
     96       case 0x470648B0u: goto L_470648B0;
     97       case 0x470648B2u: goto L_470648B2;
     98       case 0x470648B5u: goto L_470648B5;
     99       case 0x470648B7u: goto L_470648B7;
    100       case 0x470648B9u: goto L_470648B9;
    101       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    102     }
    103     RECOMP_REGS_OUT();
    104 }
    105 
    106 void sub_470648C0(void) {
    107     int _fpu_cmp = 0;
    108     uint32_t _cf = 0;
    109     int _df = 1;
    110     uint32_t _flag_k = FK_NONE;
    111     uint32_t _flag_a = 0, _flag_b = 0;
    112     uint32_t _itail_tgt = 0;
    113     RECOMP_REGS_LOCALS
    114     RECOMP_ENTER(0x470648C0u);
    115 
    116 L_470648C0:
    117     eax = MEM32(ecx); /* 0x470648C0: mov eax, dword ptr [ecx] */
    118 L_470648C2:
    119     RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x470648C2: call dword ptr [eax + 0x30] */
    120     RECOMP_FLAGS_IN();
    121 L_470648C5:
    122     edx = MEM32(eax); /* 0x470648C5: mov edx, dword ptr [eax] */
    123 L_470648C7:
    124     ecx = eax; /* 0x470648C7: mov ecx, eax */
    125 L_470648C9:
    126     { _itail_tgt = (uint32_t)(MEM32(edx + 0x68)); goto _ljump; }
    127     { RECOMP_REGS_OUT(); return; } /* end of function */
    128   _ljump:
    129     switch (_itail_tgt) {
    130       case 0x470648C0u: goto L_470648C0;
    131       case 0x470648C2u: goto L_470648C2;
    132       case 0x470648C5u: goto L_470648C5;
    133       case 0x470648C7u: goto L_470648C7;
    134       case 0x470648C9u: goto L_470648C9;
    135       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    136     }
    137     RECOMP_REGS_OUT();
    138 }
    139 
    140 void sub_470648D0(void) {
    141     int _fpu_cmp = 0;
    142     uint32_t _cf = 0;
    143     int _df = 1;
    144     uint32_t _flag_k = FK_NONE;
    145     uint32_t _flag_a = 0, _flag_b = 0;
    146     uint32_t _itail_tgt = 0;
    147     RECOMP_REGS_LOCALS
    148     RECOMP_ENTER(0x470648D0u);
    149 
    150 L_470648D0:
    151     eax = MEM32(ecx); /* 0x470648D0: mov eax, dword ptr [ecx] */
    152 L_470648D2:
    153     RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x470648D2: call dword ptr [eax + 0x30] */
    154     RECOMP_FLAGS_IN();
    155 L_470648D5:
    156     edx = MEM32(eax); /* 0x470648D5: mov edx, dword ptr [eax] */
    157 L_470648D7:
    158     ecx = eax; /* 0x470648D7: mov ecx, eax */
    159 L_470648D9:
    160     { _itail_tgt = (uint32_t)(MEM32(edx + 0x6C)); goto _ljump; }
    161     { RECOMP_REGS_OUT(); return; } /* end of function */
    162   _ljump:
    163     switch (_itail_tgt) {
    164       case 0x470648D0u: goto L_470648D0;
    165       case 0x470648D2u: goto L_470648D2;
    166       case 0x470648D5u: goto L_470648D5;
    167       case 0x470648D7u: goto L_470648D7;
    168       case 0x470648D9u: goto L_470648D9;
    169       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    170     }
    171     RECOMP_REGS_OUT();
    172 }
    173 
    174 void sub_470648E0(void) {
    175     int _fpu_cmp = 0;
    176     uint32_t _cf = 0;
    177     int _df = 1;
    178     uint32_t _flag_k = FK_NONE;
    179     uint32_t _flag_a = 0, _flag_b = 0;
    180     uint32_t _itail_tgt = 0;
    181     RECOMP_REGS_LOCALS
    182     RECOMP_ENTER(0x470648E0u);
    183 
    184 L_470648E0:
    185     eax = MEM32(ecx); /* 0x470648E0: mov eax, dword ptr [ecx] */
    186 L_470648E2:
    187     RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x470648E2: call dword ptr [eax + 0x30] */
    188     RECOMP_FLAGS_IN();
    189 L_470648E5:
    190     edx = MEM32(eax); /* 0x470648E5: mov edx, dword ptr [eax] */
    191 L_470648E7:
    192     ecx = eax; /* 0x470648E7: mov ecx, eax */
    193 L_470648E9:
    194     { _itail_tgt = (uint32_t)(MEM32(edx + 0x70)); goto _ljump; }
    195     { RECOMP_REGS_OUT(); return; } /* end of function */
    196   _ljump:
    197     switch (_itail_tgt) {
    198       case 0x470648E0u: goto L_470648E0;
    199       case 0x470648E2u: goto L_470648E2;
    200       case 0x470648E5u: goto L_470648E5;
    201       case 0x470648E7u: goto L_470648E7;
    202       case 0x470648E9u: goto L_470648E9;
    203       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    204     }
    205     RECOMP_REGS_OUT();
    206 }
    207 
    208 void sub_470648F0(void) {
    209     int _fpu_cmp = 0;
    210     uint32_t _cf = 0;
    211     int _df = 1;
    212     uint32_t _flag_k = FK_NONE;
    213     uint32_t _flag_a = 0, _flag_b = 0;
    214     uint32_t _itail_tgt = 0;
    215     RECOMP_REGS_LOCALS
    216     RECOMP_ENTER(0x470648F0u);
    217 
    218 L_470648F0:
    219     eax = MEM32(ecx); /* 0x470648F0: mov eax, dword ptr [ecx] */
    220 L_470648F2:
    221     RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x470648F2: call dword ptr [eax + 0x30] */
    222     RECOMP_FLAGS_IN();
    223 L_470648F5:
    224     edx = MEM32(eax); /* 0x470648F5: mov edx, dword ptr [eax] */
    225 L_470648F7:
    226     ecx = eax; /* 0x470648F7: mov ecx, eax */
    227 L_470648F9:
    228     { _itail_tgt = (uint32_t)(MEM32(edx + 0x74)); goto _ljump; }
    229     { RECOMP_REGS_OUT(); return; } /* end of function */
    230   _ljump:
    231     switch (_itail_tgt) {
    232       case 0x470648F0u: goto L_470648F0;
    233       case 0x470648F2u: goto L_470648F2;
    234       case 0x470648F5u: goto L_470648F5;
    235       case 0x470648F7u: goto L_470648F7;
    236       case 0x470648F9u: goto L_470648F9;
    237       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    238     }
    239     RECOMP_REGS_OUT();
    240 }
    241 
    242 void sub_47064900(void) {
    243     int _fpu_cmp = 0;
    244     uint32_t _cf = 0;
    245     int _df = 1;
    246     uint32_t _flag_k = FK_NONE;
    247     uint32_t _flag_a = 0, _flag_b = 0;
    248     uint32_t _itail_tgt = 0;
    249     RECOMP_REGS_LOCALS
    250     RECOMP_ENTER(0x47064900u);
    251 
    252 L_47064900:
    253     eax = MEM32(ecx); /* 0x47064900: mov eax, dword ptr [ecx] */
    254     RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x47064902: call dword ptr [eax + 0x30] */
    255     RECOMP_FLAGS_IN();
    256     ecx = MEM32(esp + 0x20); /* 0x47064905: mov ecx, dword ptr [esp + 0x20] */
    257     PUSH32(esp, ecx); /* 0x47064909: push ecx */
    258     ecx = MEM32(esp + 0x20); /* 0x4706490A: mov ecx, dword ptr [esp + 0x20] */
    259     edx = MEM32(eax); /* 0x4706490E: mov edx, dword ptr [eax] */
    260     PUSH32(esp, ecx); /* 0x47064910: push ecx */
    261     ecx = MEM32(esp + 0x20); /* 0x47064911: mov ecx, dword ptr [esp + 0x20] */
    262     PUSH32(esp, ecx); /* 0x47064915: push ecx */
    263     ecx = MEM32(esp + 0x20); /* 0x47064916: mov ecx, dword ptr [esp + 0x20] */
    264     PUSH32(esp, ecx); /* 0x4706491A: push ecx */
    265     ecx = MEM32(esp + 0x20); /* 0x4706491B: mov ecx, dword ptr [esp + 0x20] */
    266     PUSH32(esp, ecx); /* 0x4706491F: push ecx */
    267     ecx = MEM32(esp + 0x20); /* 0x47064920: mov ecx, dword ptr [esp + 0x20] */
    268     PUSH32(esp, ecx); /* 0x47064924: push ecx */
    269     ecx = MEM32(esp + 0x20); /* 0x47064925: mov ecx, dword ptr [esp + 0x20] */
    270     PUSH32(esp, ecx); /* 0x47064929: push ecx */
    271     ecx = MEM32(esp + 0x20); /* 0x4706492A: mov ecx, dword ptr [esp + 0x20] */
    272     PUSH32(esp, ecx); /* 0x4706492E: push ecx */
    273     ecx = eax; /* 0x4706492F: mov ecx, eax */
    274     RECOMP_ICALL(MEM32(edx + 0x78)); /* 0x47064931: call dword ptr [edx + 0x78] */
    275     RECOMP_FLAGS_IN();
    276     RECOMP_FLAGS_OUT(); esp += 36; { RECOMP_REGS_OUT(); return; } /* 0x47064934: ret 0x20 */
    277     RECOMP_REGS_OUT();
    278 }
    279 
    280 void sub_47064940(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(0x47064940u);
    289 
    290 L_47064940:
    291     eax = MEM32(ecx); /* 0x47064940: mov eax, dword ptr [ecx] */
    292     RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x47064942: call dword ptr [eax + 0x30] */
    293     RECOMP_FLAGS_IN();
    294     ecx = MEM32(esp + 0x20); /* 0x47064945: mov ecx, dword ptr [esp + 0x20] */
    295     PUSH32(esp, ecx); /* 0x47064949: push ecx */
    296     ecx = MEM32(esp + 0x20); /* 0x4706494A: mov ecx, dword ptr [esp + 0x20] */
    297     edx = MEM32(eax); /* 0x4706494E: mov edx, dword ptr [eax] */
    298     PUSH32(esp, ecx); /* 0x47064950: push ecx */
    299     ecx = MEM32(esp + 0x20); /* 0x47064951: mov ecx, dword ptr [esp + 0x20] */
    300     PUSH32(esp, ecx); /* 0x47064955: push ecx */
    301     ecx = MEM32(esp + 0x20); /* 0x47064956: mov ecx, dword ptr [esp + 0x20] */
    302     PUSH32(esp, ecx); /* 0x4706495A: push ecx */
    303     ecx = MEM32(esp + 0x20); /* 0x4706495B: mov ecx, dword ptr [esp + 0x20] */
    304     PUSH32(esp, ecx); /* 0x4706495F: push ecx */
    305     ecx = MEM32(esp + 0x20); /* 0x47064960: mov ecx, dword ptr [esp + 0x20] */
    306     PUSH32(esp, ecx); /* 0x47064964: push ecx */
    307     ecx = MEM32(esp + 0x20); /* 0x47064965: mov ecx, dword ptr [esp + 0x20] */
    308     PUSH32(esp, ecx); /* 0x47064969: push ecx */
    309     ecx = MEM32(esp + 0x20); /* 0x4706496A: mov ecx, dword ptr [esp + 0x20] */
    310     PUSH32(esp, ecx); /* 0x4706496E: push ecx */
    311     ecx = eax; /* 0x4706496F: mov ecx, eax */
    312     RECOMP_ICALL(MEM32(edx + 0x7C)); /* 0x47064971: call dword ptr [edx + 0x7c] */
    313     RECOMP_FLAGS_IN();
    314     RECOMP_FLAGS_OUT(); esp += 36; { RECOMP_REGS_OUT(); return; } /* 0x47064974: ret 0x20 */
    315     RECOMP_REGS_OUT();
    316 }
    317 
    318 void sub_47064980(void) {
    319     int _fpu_cmp = 0;
    320     uint32_t _cf = 0;
    321     int _df = 1;
    322     uint32_t _flag_k = FK_NONE;
    323     uint32_t _flag_a = 0, _flag_b = 0;
    324     uint32_t _itail_tgt = 0;
    325     RECOMP_REGS_LOCALS
    326     RECOMP_ENTER(0x47064980u);
    327 
    328 L_47064980:
    329     eax = MEM32(ecx); /* 0x47064980: mov eax, dword ptr [ecx] */
    330     RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x47064982: call dword ptr [eax + 0x30] */
    331     RECOMP_FLAGS_IN();
    332     ecx = MEM32(esp + 0x28); /* 0x47064985: mov ecx, dword ptr [esp + 0x28] */
    333     PUSH32(esp, ecx); /* 0x47064989: push ecx */
    334     ecx = MEM32(esp + 0x28); /* 0x4706498A: mov ecx, dword ptr [esp + 0x28] */
    335     PUSH32(esp, ecx); /* 0x4706498E: push ecx */
    336     ecx = MEM32(esp + 0x28); /* 0x4706498F: mov ecx, dword ptr [esp + 0x28] */
    337     PUSH32(esp, ecx); /* 0x47064993: push ecx */
    338     ecx = MEM32(esp + 0x28); /* 0x47064994: mov ecx, dword ptr [esp + 0x28] */
    339     edx = MEM32(eax); /* 0x47064998: mov edx, dword ptr [eax] */
    340     PUSH32(esp, ecx); /* 0x4706499A: push ecx */
    341     ecx = MEM32(esp + 0x28); /* 0x4706499B: mov ecx, dword ptr [esp + 0x28] */
    342     PUSH32(esp, ecx); /* 0x4706499F: push ecx */
    343     ecx = MEM32(esp + 0x28); /* 0x470649A0: mov ecx, dword ptr [esp + 0x28] */
    344     PUSH32(esp, ecx); /* 0x470649A4: push ecx */
    345     ecx = MEM32(esp + 0x28); /* 0x470649A5: mov ecx, dword ptr [esp + 0x28] */
    346     PUSH32(esp, ecx); /* 0x470649A9: push ecx */
    347     ecx = MEM32(esp + 0x28); /* 0x470649AA: mov ecx, dword ptr [esp + 0x28] */
    348     PUSH32(esp, ecx); /* 0x470649AE: push ecx */
    349     ecx = MEM32(esp + 0x28); /* 0x470649AF: mov ecx, dword ptr [esp + 0x28] */
    350     PUSH32(esp, ecx); /* 0x470649B3: push ecx */
    351     ecx = MEM32(esp + 0x28); /* 0x470649B4: mov ecx, dword ptr [esp + 0x28] */
    352     PUSH32(esp, ecx); /* 0x470649B8: push ecx */
    353     ecx = eax; /* 0x470649B9: mov ecx, eax */
    354     RECOMP_ICALL(MEM32(edx + 0x80)); /* 0x470649BB: call dword ptr [edx + 0x80] */
    355     RECOMP_FLAGS_IN();
    356     RECOMP_FLAGS_OUT(); esp += 44; { RECOMP_REGS_OUT(); return; } /* 0x470649C1: ret 0x28 */
    357     RECOMP_REGS_OUT();
    358 }
    359 
    360 void sub_470649D0(void) {
    361     int _fpu_cmp = 0;
    362     uint32_t _cf = 0;
    363     int _df = 1;
    364     uint32_t _flag_k = FK_NONE;
    365     uint32_t _flag_a = 0, _flag_b = 0;
    366     uint32_t _itail_tgt = 0;
    367     RECOMP_REGS_LOCALS
    368     RECOMP_ENTER(0x470649D0u);
    369 
    370 L_470649D0:
    371     eax = MEM32(ecx); /* 0x470649D0: mov eax, dword ptr [ecx] */
    372     RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x470649D2: call dword ptr [eax + 0x30] */
    373     RECOMP_FLAGS_IN();
    374     ecx = MEM32(esp + 0x28); /* 0x470649D5: mov ecx, dword ptr [esp + 0x28] */
    375     PUSH32(esp, ecx); /* 0x470649D9: push ecx */
    376     ecx = MEM32(esp + 0x28); /* 0x470649DA: mov ecx, dword ptr [esp + 0x28] */
    377     PUSH32(esp, ecx); /* 0x470649DE: push ecx */
    378     ecx = MEM32(esp + 0x28); /* 0x470649DF: mov ecx, dword ptr [esp + 0x28] */
    379     PUSH32(esp, ecx); /* 0x470649E3: push ecx */
    380     ecx = MEM32(esp + 0x28); /* 0x470649E4: mov ecx, dword ptr [esp + 0x28] */
    381     edx = MEM32(eax); /* 0x470649E8: mov edx, dword ptr [eax] */
    382     PUSH32(esp, ecx); /* 0x470649EA: push ecx */
    383     ecx = MEM32(esp + 0x28); /* 0x470649EB: mov ecx, dword ptr [esp + 0x28] */
    384     PUSH32(esp, ecx); /* 0x470649EF: push ecx */
    385     ecx = MEM32(esp + 0x28); /* 0x470649F0: mov ecx, dword ptr [esp + 0x28] */
    386     PUSH32(esp, ecx); /* 0x470649F4: push ecx */
    387     ecx = MEM32(esp + 0x28); /* 0x470649F5: mov ecx, dword ptr [esp + 0x28] */
    388     PUSH32(esp, ecx); /* 0x470649F9: push ecx */
    389     ecx = MEM32(esp + 0x28); /* 0x470649FA: mov ecx, dword ptr [esp + 0x28] */
    390     PUSH32(esp, ecx); /* 0x470649FE: push ecx */
    391     ecx = MEM32(esp + 0x28); /* 0x470649FF: mov ecx, dword ptr [esp + 0x28] */
    392     PUSH32(esp, ecx); /* 0x47064A03: push ecx */
    393     ecx = MEM32(esp + 0x28); /* 0x47064A04: mov ecx, dword ptr [esp + 0x28] */
    394     PUSH32(esp, ecx); /* 0x47064A08: push ecx */
    395     ecx = eax; /* 0x47064A09: mov ecx, eax */
    396     RECOMP_ICALL(MEM32(edx + 0x84)); /* 0x47064A0B: call dword ptr [edx + 0x84] */
    397     RECOMP_FLAGS_IN();
    398     RECOMP_FLAGS_OUT(); esp += 44; { RECOMP_REGS_OUT(); return; } /* 0x47064A11: ret 0x28 */
    399     RECOMP_REGS_OUT();
    400 }
    401 
    402 void sub_47064A20(void) {
    403     int _fpu_cmp = 0;
    404     uint32_t _cf = 0;
    405     int _df = 1;
    406     uint32_t _flag_k = FK_NONE;
    407     uint32_t _flag_a = 0, _flag_b = 0;
    408     uint32_t _itail_tgt = 0;
    409     RECOMP_REGS_LOCALS
    410     RECOMP_ENTER(0x47064A20u);
    411 
    412 L_47064A20:
    413     eax = MEM32(ecx); /* 0x47064A20: mov eax, dword ptr [ecx] */
    414     RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x47064A22: call dword ptr [eax + 0x30] */
    415     RECOMP_FLAGS_IN();
    416     ecx = MEM32(esp + 0x24); /* 0x47064A25: mov ecx, dword ptr [esp + 0x24] */
    417     PUSH32(esp, ecx); /* 0x47064A29: push ecx */
    418     ecx = MEM32(esp + 0x24); /* 0x47064A2A: mov ecx, dword ptr [esp + 0x24] */
    419     PUSH32(esp, ecx); /* 0x47064A2E: push ecx */
    420     ecx = MEM32(esp + 0x24); /* 0x47064A2F: mov ecx, dword ptr [esp + 0x24] */
    421     edx = MEM32(eax); /* 0x47064A33: mov edx, dword ptr [eax] */
    422     PUSH32(esp, ecx); /* 0x47064A35: push ecx */
    423     ecx = MEM32(esp + 0x24); /* 0x47064A36: mov ecx, dword ptr [esp + 0x24] */
    424     PUSH32(esp, ecx); /* 0x47064A3A: push ecx */
    425     ecx = MEM32(esp + 0x24); /* 0x47064A3B: mov ecx, dword ptr [esp + 0x24] */
    426     PUSH32(esp, ecx); /* 0x47064A3F: push ecx */
    427     ecx = MEM32(esp + 0x24); /* 0x47064A40: mov ecx, dword ptr [esp + 0x24] */
    428     PUSH32(esp, ecx); /* 0x47064A44: push ecx */
    429     ecx = MEM32(esp + 0x24); /* 0x47064A45: mov ecx, dword ptr [esp + 0x24] */
    430     PUSH32(esp, ecx); /* 0x47064A49: push ecx */
    431     ecx = MEM32(esp + 0x24); /* 0x47064A4A: mov ecx, dword ptr [esp + 0x24] */
    432     PUSH32(esp, ecx); /* 0x47064A4E: push ecx */
    433     ecx = MEM32(esp + 0x24); /* 0x47064A4F: mov ecx, dword ptr [esp + 0x24] */
    434     PUSH32(esp, ecx); /* 0x47064A53: push ecx */
    435     ecx = eax; /* 0x47064A54: mov ecx, eax */
    436     RECOMP_ICALL(MEM32(edx + 0x88)); /* 0x47064A56: call dword ptr [edx + 0x88] */
    437     RECOMP_FLAGS_IN();
    438     RECOMP_FLAGS_OUT(); esp += 40; { RECOMP_REGS_OUT(); return; } /* 0x47064A5C: ret 0x24 */
    439     RECOMP_REGS_OUT();
    440 }
    441 
    442 void sub_47064A60(void) {
    443     int _fpu_cmp = 0;
    444     uint32_t _cf = 0;
    445     int _df = 1;
    446     uint32_t _flag_k = FK_NONE;
    447     uint32_t _flag_a = 0, _flag_b = 0;
    448     uint32_t _itail_tgt = 0;
    449     RECOMP_REGS_LOCALS
    450     RECOMP_ENTER(0x47064A60u);
    451 
    452 L_47064A60:
    453     eax = MEM32(ecx); /* 0x47064A60: mov eax, dword ptr [ecx] */
    454     RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x47064A62: call dword ptr [eax + 0x30] */
    455     RECOMP_FLAGS_IN();
    456     ecx = MEM32(esp + 0x34); /* 0x47064A65: mov ecx, dword ptr [esp + 0x34] */
    457     PUSH32(esp, ecx); /* 0x47064A69: push ecx */
    458     ecx = MEM32(esp + 0x34); /* 0x47064A6A: mov ecx, dword ptr [esp + 0x34] */
    459     PUSH32(esp, ecx); /* 0x47064A6E: push ecx */
    460     ecx = MEM32(esp + 0x34); /* 0x47064A6F: mov ecx, dword ptr [esp + 0x34] */
    461     PUSH32(esp, ecx); /* 0x47064A73: push ecx */
    462     ecx = MEM32(esp + 0x34); /* 0x47064A74: mov ecx, dword ptr [esp + 0x34] */
    463     PUSH32(esp, ecx); /* 0x47064A78: push ecx */
    464     ecx = MEM32(esp + 0x34); /* 0x47064A79: mov ecx, dword ptr [esp + 0x34] */
    465     PUSH32(esp, ecx); /* 0x47064A7D: push ecx */
    466     ecx = MEM32(esp + 0x34); /* 0x47064A7E: mov ecx, dword ptr [esp + 0x34] */
    467     PUSH32(esp, ecx); /* 0x47064A82: push ecx */
    468     ecx = MEM32(esp + 0x34); /* 0x47064A83: mov ecx, dword ptr [esp + 0x34] */
    469     edx = MEM32(eax); /* 0x47064A87: mov edx, dword ptr [eax] */
    470     PUSH32(esp, ecx); /* 0x47064A89: push ecx */
    471     ecx = MEM32(esp + 0x34); /* 0x47064A8A: mov ecx, dword ptr [esp + 0x34] */
    472     PUSH32(esp, ecx); /* 0x47064A8E: push ecx */
    473     ecx = MEM32(esp + 0x34); /* 0x47064A8F: mov ecx, dword ptr [esp + 0x34] */
    474     PUSH32(esp, ecx); /* 0x47064A93: push ecx */
    475     ecx = MEM32(esp + 0x34); /* 0x47064A94: mov ecx, dword ptr [esp + 0x34] */
    476     PUSH32(esp, ecx); /* 0x47064A98: push ecx */
    477     ecx = MEM32(esp + 0x34); /* 0x47064A99: mov ecx, dword ptr [esp + 0x34] */
    478     PUSH32(esp, ecx); /* 0x47064A9D: push ecx */
    479     ecx = MEM32(esp + 0x34); /* 0x47064A9E: mov ecx, dword ptr [esp + 0x34] */
    480     PUSH32(esp, ecx); /* 0x47064AA2: push ecx */
    481     ecx = MEM32(esp + 0x34); /* 0x47064AA3: mov ecx, dword ptr [esp + 0x34] */
    482     PUSH32(esp, ecx); /* 0x47064AA7: push ecx */
    483     ecx = eax; /* 0x47064AA8: mov ecx, eax */
    484     RECOMP_ICALL(MEM32(edx + 0x8C)); /* 0x47064AAA: call dword ptr [edx + 0x8c] */
    485     RECOMP_FLAGS_IN();
    486     RECOMP_FLAGS_OUT(); esp += 56; { RECOMP_REGS_OUT(); return; } /* 0x47064AB0: ret 0x34 */
    487     RECOMP_REGS_OUT();
    488 }
    489 
    490 void sub_47064AC0(void) {
    491     int _fpu_cmp = 0;
    492     uint32_t _cf = 0;
    493     int _df = 1;
    494     uint32_t _flag_k = FK_NONE;
    495     uint32_t _flag_a = 0, _flag_b = 0;
    496     uint32_t _itail_tgt = 0;
    497     RECOMP_REGS_LOCALS
    498     RECOMP_ENTER(0x47064AC0u);
    499 
    500 L_47064AC0:
    501     eax = MEM32(ecx); /* 0x47064AC0: mov eax, dword ptr [ecx] */
    502     RECOMP_ICALL(MEM32(eax + 0x30)); /* 0x47064AC2: call dword ptr [eax + 0x30] */
    503     RECOMP_FLAGS_IN();
    504     ecx = MEM32(esp + 0x18); /* 0x47064AC5: mov ecx, dword ptr [esp + 0x18] */
    505     edx = MEM32(eax); /* 0x47064AC9: mov edx, dword ptr [eax] */
    506     PUSH32(esp, ecx); /* 0x47064ACB: push ecx */
    507     ecx = MEM32(esp + 0x18); /* 0x47064ACC: mov ecx, dword ptr [esp + 0x18] */
    508     PUSH32(esp, ecx); /* 0x47064AD0: push ecx */
    509     ecx = MEM32(esp + 0x18); /* 0x47064AD1: mov ecx, dword ptr [esp + 0x18] */
    510     PUSH32(esp, ecx); /* 0x47064AD5: push ecx */
    511     ecx = MEM32(esp + 0x18); /* 0x47064AD6: mov ecx, dword ptr [esp + 0x18] */
    512     PUSH32(esp, ecx); /* 0x47064ADA: push ecx */
    513     ecx = MEM32(esp + 0x18); /* 0x47064ADB: mov ecx, dword ptr [esp + 0x18] */
    514     PUSH32(esp, ecx); /* 0x47064ADF: push ecx */
    515     ecx = MEM32(esp + 0x18); /* 0x47064AE0: mov ecx, dword ptr [esp + 0x18] */
    516     PUSH32(esp, ecx); /* 0x47064AE4: push ecx */
    517     ecx = eax; /* 0x47064AE5: mov ecx, eax */
    518     RECOMP_ICALL(MEM32(edx + 0x90)); /* 0x47064AE7: call dword ptr [edx + 0x90] */
    519     RECOMP_FLAGS_IN();
    520     RECOMP_FLAGS_OUT(); esp += 28; { RECOMP_REGS_OUT(); return; } /* 0x47064AED: ret 0x18 */
    521     RECOMP_REGS_OUT();
    522 }
    523 
    524 void sub_47064AF0(void) {
    525     int _fpu_cmp = 0;
    526     uint32_t _cf = 0;
    527     int _df = 1;
    528     uint32_t _flag_k = FK_NONE;
    529     uint32_t _flag_a = 0, _flag_b = 0;
    530     uint32_t _itail_tgt = 0;
    531     RECOMP_REGS_LOCALS
    532     RECOMP_ENTER(0x47064AF0u);
    533 
    534 L_47064AF0:
    535     PUSH32(esp, 0); /* 0x47064AF0: push 0 */
    536     RECOMP_ICALL(0x47063F60u); /* 0x47064AF2: call 0x47063f60 */ /* not lifted */
    537     RECOMP_FLAGS_IN();
    538     edx = MEM32(eax); /* 0x47064AF7: mov edx, dword ptr [eax] */
    539     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    540     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    541     esp = esp + 4; /* 0x47064AF9: add esp, 4 */
    542     _flag_k = FK_ADD;
    543     ecx = eax; /* 0x47064AFC: mov ecx, eax */
    544     RECOMP_ICALL(MEM32(edx + 0x30)); /* 0x47064AFE: call dword ptr [edx + 0x30] */
    545     RECOMP_FLAGS_IN();
    546     ecx = MEM32(esp + 0x4); /* 0x47064B01: mov ecx, dword ptr [esp + 4] */
    547     edx = MEM32(eax); /* 0x47064B05: mov edx, dword ptr [eax] */
    548     PUSH32(esp, ecx); /* 0x47064B07: push ecx */
    549     ecx = eax; /* 0x47064B08: mov ecx, eax */
    550     RECOMP_ICALL(MEM32(edx + 0x94)); /* 0x47064B0A: call dword ptr [edx + 0x94] */
    551     RECOMP_FLAGS_IN();
    552     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47064B10: ret  */
    553     RECOMP_REGS_OUT();
    554 }
    555 
    556 void sub_47064B20(void) {
    557     int _fpu_cmp = 0;
    558     uint32_t _cf = 0;
    559     int _df = 1;
    560     uint32_t _flag_k = FK_NONE;
    561     uint32_t _flag_a = 0, _flag_b = 0;
    562     uint32_t _itail_tgt = 0;
    563     RECOMP_REGS_LOCALS
    564     RECOMP_ENTER(0x47064B20u);
    565 
    566 L_47064B20:
    567     PUSH32(esp, 0xFFFFFFFFu); /* 0x47064B20: push -1 */
    568     PUSH32(esp, 0x470A8338u); /* 0x47064B22: push 0x470a8338 */
    569     eax = MEM32(FS_BASE + (0)); /* 0x47064B27: mov eax, dword ptr fs:[0] */
    570     PUSH32(esp, eax); /* 0x47064B2D: push eax */
    571     MEM32(FS_BASE + (0)) = esp; /* 0x47064B2E: mov dword ptr fs:[0], esp */
    572     PUSH32(esp, ecx); /* 0x47064B35: push ecx */
    573     PUSH32(esp, esi); /* 0x47064B36: push esi */
    574     esi = ecx; /* 0x47064B37: mov esi, ecx */
    575     MEM32(esp + 0x4) = esi; /* 0x47064B39: mov dword ptr [esp + 4], esi */
    576     MEM32(esi) = 0x470AE86Cu; /* 0x47064B3D: mov dword ptr [esi], 0x470ae86c */
    577     MEM32(esi + 0xC) = 0x470AE85Cu; /* 0x47064B43: mov dword ptr [esi + 0xc], 0x470ae85c */
    578     eax = MEM32(esi + 0x40); /* 0x47064B4A: mov eax, dword ptr [esi + 0x40] */
    579     /* test eax, eax */ /* 0x47064B4D: test eax, eax */
    580     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    581     _cf = 0;
    582     _flag_k = FK_TEST;
    583     MEM32(esp + 0x10) = 0; /* 0x47064B4F: mov dword ptr [esp + 0x10], 0 */
    584     if (TEST_Z(_flag_a, _flag_b)) goto L_47064B67; /* 0x47064B57: je 0x47064b67 */
    585 L_47064B59:
    586     ecx = MEM32(esi + 0x3C); /* 0x47064B59: mov ecx, dword ptr [esi + 0x3c] */
    587     /* test ecx, ecx */ /* 0x47064B5C: test ecx, ecx */
    588     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    589     _cf = 0;
    590     _flag_k = FK_TEST;
    591     if (TEST_Z(_flag_a, _flag_b)) goto L_47064B67; /* 0x47064B5E: je 0x47064b67 */
    592 L_47064B60:
    593     eax = MEM32(ecx); /* 0x47064B60: mov eax, dword ptr [ecx] */
    594     PUSH32(esp, 1); /* 0x47064B62: push 1 */
    595     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47064B64: call dword ptr [eax + 4] */
    596     RECOMP_FLAGS_IN();
    597 L_47064B67:
    598     ecx = esi; /* 0x47064B67: mov ecx, esi */
    599     MEM32(esi + 0x40) = 0; /* 0x47064B69: mov dword ptr [esi + 0x40], 0 */
    600     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x47064B70: mov dword ptr [esp + 0x10], 0xffffffff */
    601     RECOMP_ICALL(0x47089150u); /* 0x47064B78: call 0x47089150 */ /* not lifted */
    602     RECOMP_FLAGS_IN();
    603     ecx = MEM32(esp + 0x8); /* 0x47064B7D: mov ecx, dword ptr [esp + 8] */
    604     esi = POP32_VAL(esp); /* 0x47064B81: pop esi */
    605     MEM32(FS_BASE + (0)) = ecx; /* 0x47064B82: mov dword ptr fs:[0], ecx */
    606     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    607     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    608     esp = esp + 0x10u; /* 0x47064B89: add esp, 0x10 */
    609     _flag_k = FK_ADD;
    610     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47064B8C: ret  */
    611     RECOMP_REGS_OUT();
    612 }
    613 
    614 void sub_47064B90(void) {
    615     int _fpu_cmp = 0;
    616     uint32_t _cf = 0;
    617     int _df = 1;
    618     uint32_t _flag_k = FK_NONE;
    619     uint32_t _flag_a = 0, _flag_b = 0;
    620     uint32_t _itail_tgt = 0;
    621     RECOMP_REGS_LOCALS
    622     RECOMP_ENTER(0x47064B90u);
    623 
    624 L_47064B90:
    625     PUSH32(esp, 0xFFFFFFFFu); /* 0x47064B90: push -1 */
    626     PUSH32(esp, 0x470A835Bu); /* 0x47064B92: push 0x470a835b */
    627     eax = MEM32(FS_BASE + (0)); /* 0x47064B97: mov eax, dword ptr fs:[0] */
    628     PUSH32(esp, eax); /* 0x47064B9D: push eax */
    629     MEM32(FS_BASE + (0)) = esp; /* 0x47064B9E: mov dword ptr fs:[0], esp */
    630     PUSH32(esp, ecx); /* 0x47064BA5: push ecx */
    631     PUSH32(esp, esi); /* 0x47064BA6: push esi */
    632     esi = ecx; /* 0x47064BA7: mov esi, ecx */
    633     MEM32(esp + 0x4) = esi; /* 0x47064BA9: mov dword ptr [esp + 4], esi */
    634     MEM32(esi) = 0x470AE980u; /* 0x47064BAD: mov dword ptr [esi], 0x470ae980 */
    635     eax = MEM32(esi + 0x2C); /* 0x47064BB3: mov eax, dword ptr [esi + 0x2c] */
    636     /* test eax, eax */ /* 0x47064BB6: test eax, eax */
    637     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    638     _cf = 0;
    639     _flag_k = FK_TEST;
    640     MEM32(esp + 0x10) = 0; /* 0x47064BB8: mov dword ptr [esp + 0x10], 0 */
    641     if (TEST_Z(_flag_a, _flag_b)) goto L_47064BCE; /* 0x47064BC0: je 0x47064bce */
    642 L_47064BC2:
    643     eax = MEM32(esi + 0x28); /* 0x47064BC2: mov eax, dword ptr [esi + 0x28] */
    644     PUSH32(esp, eax); /* 0x47064BC5: push eax */
    645     RECOMP_ICALL(0x470A32A2u); /* 0x47064BC6: call 0x470a32a2 */ /* not lifted */
    646     RECOMP_FLAGS_IN();
    647     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    648     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    649     esp = esp + 4; /* 0x47064BCB: add esp, 4 */
    650     _flag_k = FK_ADD;
    651 L_47064BCE:
    652     eax = MEM32(esi + 0x30); /* 0x47064BCE: mov eax, dword ptr [esi + 0x30] */
    653     /* test eax, eax */ /* 0x47064BD1: test eax, eax */
    654     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    655     _cf = 0;
    656     _flag_k = FK_TEST;
    657     if (TEST_Z(_flag_a, _flag_b)) goto L_47064BE2; /* 0x47064BD3: je 0x47064be2 */
    658 L_47064BD5:
    659     ecx = MEM32(esi + 0x20); /* 0x47064BD5: mov ecx, dword ptr [esi + 0x20] */
    660     /* test ecx, ecx */ /* 0x47064BD8: test ecx, ecx */
    661     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    662     _cf = 0;
    663     _flag_k = FK_TEST;
    664     if (TEST_Z(_flag_a, _flag_b)) goto L_47064BE2; /* 0x47064BDA: je 0x47064be2 */
    665 L_47064BDC:
    666     eax = MEM32(ecx); /* 0x47064BDC: mov eax, dword ptr [ecx] */
    667     PUSH32(esp, 1); /* 0x47064BDE: push 1 */
    668     RECOMP_ICALL(MEM32(eax)); /* 0x47064BE0: call dword ptr [eax] */
    669     RECOMP_FLAGS_IN();
    670 L_47064BE2:
    671     ecx = esi + 0x4; /* 0x47064BE2: lea ecx, [esi + 4] */
    672     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x47064BE5: mov dword ptr [esp + 0x10], 0xffffffff */
    673     RECOMP_ICALL(0x47087E30u); /* 0x47064BED: call 0x47087e30 */ /* not lifted */
    674     RECOMP_FLAGS_IN();
    675     ecx = MEM32(esp + 0x8); /* 0x47064BF2: mov ecx, dword ptr [esp + 8] */
    676     esi = POP32_VAL(esp); /* 0x47064BF6: pop esi */
    677     MEM32(FS_BASE + (0)) = ecx; /* 0x47064BF7: mov dword ptr fs:[0], ecx */
    678     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
    679     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    680     esp = esp + 0x10u; /* 0x47064BFE: add esp, 0x10 */
    681     _flag_k = FK_ADD;
    682     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47064C01: ret  */
    683     RECOMP_REGS_OUT();
    684 }
    685 
    686 void sub_47064C10(void) {
    687     int _fpu_cmp = 0;
    688     uint32_t _cf = 0;
    689     int _df = 1;
    690     uint32_t _flag_k = FK_NONE;
    691     uint32_t _flag_a = 0, _flag_b = 0;
    692     uint32_t _itail_tgt = 0;
    693     RECOMP_REGS_LOCALS
    694     RECOMP_ENTER(0x47064C10u);
    695 
    696 L_47064C10:
    697     PUSH32(esp, 0xFFFFFFFFu); /* 0x47064C10: push -1 */
    698     PUSH32(esp, 0x470A8378u); /* 0x47064C12: push 0x470a8378 */
    699     eax = MEM32(FS_BASE + (0)); /* 0x47064C17: mov eax, dword ptr fs:[0] */
    700     PUSH32(esp, eax); /* 0x47064C1D: push eax */
    701     MEM32(FS_BASE + (0)) = esp; /* 0x47064C1E: mov dword ptr fs:[0], esp */
    702     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
    703     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    704     esp = esp - 0x18u; /* 0x47064C25: sub esp, 0x18 */
    705     _flag_k = FK_CMP;
    706     PUSH32(esp, ebx); /* 0x47064C28: push ebx */
    707     PUSH32(esp, ebp); /* 0x47064C29: push ebp */
    708     PUSH32(esp, esi); /* 0x47064C2A: push esi */
    709     PUSH32(esp, edi); /* 0x47064C2B: push edi */
    710     edi = ecx; /* 0x47064C2C: mov edi, ecx */
    711     esi = edi + 0x4; /* 0x47064C2E: lea esi, [edi + 4] */
    712     ecx = esi; /* 0x47064C31: mov ecx, esi */
    713     MEM32(esp + 0x18) = esi; /* 0x47064C33: mov dword ptr [esp + 0x18], esi */
    714     RECOMP_ICALL(0x470870D0u); /* 0x47064C37: call 0x470870d0 */ /* not lifted */
    715     RECOMP_FLAGS_IN();
    716     MEM32(esp + 0x1C) = eax; /* 0x47064C3C: mov dword ptr [esp + 0x1c], eax */
    717     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    718     ecx = 0; /* 0x47064C40: xor ecx, ecx */
    719     _cf = 0;
    720     _flag_k = FK_TEST;
    721     /* cmp eax, 0xFFFFFFFFu */ /* 0x47064C42: cmp eax, -1 */
    722     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
    723     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    724     _flag_k = FK_CMP;
    725     MEM32(esp + 0x30) = ecx; /* 0x47064C45: mov dword ptr [esp + 0x30], ecx */
    726     if (CMP_NE(_flag_a, _flag_b)) goto L_47064C52; /* 0x47064C49: jne 0x47064c52 */
    727 L_47064C4B:
    728     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
    729     eax = eax | eax; /* 0x47064C4B: or eax, eax */
    730     _cf = 0;
    731     _flag_k = FK_TEST;
    732     goto L_47064D71; /* 0x47064C4D: jmp 0x47064d71 */
    733 L_47064C52:
    734     eax = MEM32(edi); /* 0x47064C52: mov eax, dword ptr [edi] */
    735     MEM32(esp + 0x10) = ecx; /* 0x47064C54: mov dword ptr [esp + 0x10], ecx */
    736     ecx = edi; /* 0x47064C58: mov ecx, edi */
    737     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47064C5A: call dword ptr [eax + 4] */
    738     RECOMP_FLAGS_IN();
    739     /* test eax, eax */ /* 0x47064C5D: test eax, eax */
    740     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    741     _cf = 0;
    742     _flag_k = FK_TEST;
    743     if (TEST_Z(_flag_a, _flag_b)) goto L_47064C77; /* 0x47064C5F: je 0x47064c77 */
    744 L_47064C61:
    745     ecx = esi; /* 0x47064C61: mov ecx, esi */
    746     MEM32(esp + 0x30) = 0xFFFFFFFFu; /* 0x47064C63: mov dword ptr [esp + 0x30], 0xffffffff */
    747     RECOMP_ICALL(0x470870E0u); /* 0x47064C6B: call 0x470870e0 */ /* not lifted */
    748     RECOMP_FLAGS_IN();
    749     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    750     eax = 0; /* 0x47064C70: xor eax, eax */
    751     _cf = 0;
    752     _flag_k = FK_TEST;
    753     goto L_47064D71; /* 0x47064C72: jmp 0x47064d71 */
    754 L_47064C77:
    755     edx = MEM32(edi); /* 0x47064C77: mov edx, dword ptr [edi] */
    756     ecx = edi; /* 0x47064C79: mov ecx, edi */
    757     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x47064C7B: call dword ptr [edx + 8] */
    758     RECOMP_FLAGS_IN();
    759     ebx = MEM32(esp + 0x38); /* 0x47064C7E: mov ebx, dword ptr [esp + 0x38] */
    760     PUSH32(esp, eax); /* 0x47064C82: push eax */
    761     PUSH32(esp, ebx); /* 0x47064C83: push ebx */
    762     RECOMP_ICALL(0x47001400u); /* 0x47064C84: call 0x47001400 */ /* not lifted */
    763     RECOMP_FLAGS_IN();
    764     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    765     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    766     esp = esp + 8; /* 0x47064C89: add esp, 8 */
    767     _flag_k = FK_ADD;
    768     /* test eax, eax */ /* 0x47064C8C: test eax, eax */
    769     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    770     _cf = 0;
    771     _flag_k = FK_TEST;
    772     if (TEST_Z(_flag_a, _flag_b)) goto L_47064D5E; /* 0x47064C8E: je 0x47064d5e */
    773 L_47064C94:
    774     eax = MEM32(edi); /* 0x47064C94: mov eax, dword ptr [edi] */
    775     ecx = edi; /* 0x47064C96: mov ecx, edi */
    776     RECOMP_ICALL(MEM32(eax + 0x2C)); /* 0x47064C98: call dword ptr [eax + 0x2c] */
    777     RECOMP_FLAGS_IN();
    778     esi = eax; /* 0x47064C9B: mov esi, eax */
    779     ecx = MEM32(esi + 0x4); /* 0x47064C9D: mov ecx, dword ptr [esi + 4] */
    780     eax = MEM32(esi + 0x10); /* 0x47064CA0: mov eax, dword ptr [esi + 0x10] */
    781     MEM32(esp + 0x38) = ecx; /* 0x47064CA3: mov dword ptr [esp + 0x38], ecx */
    782     ecx = MEM32(0x4710E9A8); /* 0x47064CA7: mov ecx, dword ptr [0x4710e9a8] */
    783     /* cmp eax, ecx */ /* 0x47064CAD: cmp eax, ecx */
    784     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    785     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    786     _flag_k = FK_CMP;
    787     ebp = 1; /* 0x47064CAF: mov ebp, 1 */
    788     if (CMP_G(_flag_a, _flag_b)) goto L_47064CC3; /* 0x47064CB4: jg 0x47064cc3 */
    789 L_47064CB6:
    790     if (CMP_NE(_flag_a, _flag_b)) goto L_47064D14; /* 0x47064CB6: jne 0x47064d14 */
    791 L_47064CB8:
    792     eax = MEM32(esi + 0x14); /* 0x47064CB8: mov eax, dword ptr [esi + 0x14] */
    793     /* cmp eax, MEM32(0x4710E9AC) */ /* 0x47064CBB: cmp eax, dword ptr [0x4710e9ac] */
    794     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(0x4710E9AC));
    795     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    796     _flag_k = FK_CMP;
    797     if (CMP_LE(_flag_a, _flag_b)) goto L_47064D14; /* 0x47064CC1: jle 0x47064d14 */
    798 L_47064CC3:
    799     ecx = esi; /* 0x47064CC3: mov ecx, esi */
    800     RECOMP_ICALL(0x47066AD0u); /* 0x47064CC5: call 0x47066ad0 */ /* not lifted */
    801     RECOMP_FLAGS_IN();
    802     PUSH32(esp, eax); /* 0x47064CCA: push eax */
    803     ecx = esi; /* 0x47064CCB: mov ecx, esi */
    804     RECOMP_ICALL(0x47078530u); /* 0x47064CCD: call 0x47078530 */ /* not lifted */
    805     RECOMP_FLAGS_IN();
    806     PUSH32(esp, eax); /* 0x47064CD2: push eax */
    807     edx = esp + 0x28; /* 0x47064CD3: lea edx, [esp + 0x28] */
    808     PUSH32(esp, edx); /* 0x47064CD7: push edx */
    809     RECOMP_ICALL(0x470015A0u); /* 0x47064CD8: call 0x470015a0 */ /* not lifted */
    810     RECOMP_FLAGS_IN();
    811     edx = MEM32(eax); /* 0x47064CDD: mov edx, dword ptr [eax] */
    812     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    813     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    814     esp = esp + 4; /* 0x47064CDF: add esp, 4 */
    815     _flag_k = FK_ADD;
    816     ecx = esp; /* 0x47064CE2: mov ecx, esp */
    817     MEM32(ecx) = edx; /* 0x47064CE4: mov dword ptr [ecx], edx */
    818     eax = MEM32(eax + 0x4); /* 0x47064CE6: mov eax, dword ptr [eax + 4] */
    819     MEM32(ecx + 0x4) = eax; /* 0x47064CE9: mov dword ptr [ecx + 4], eax */
    820     ecx = esi; /* 0x47064CEC: mov ecx, esi */
    821     MEM32(esp + 0x1C) = esp; /* 0x47064CEE: mov dword ptr [esp + 0x1c], esp */
    822     RECOMP_ICALL(0x47066AB0u); /* 0x47064CF2: call 0x47066ab0 */ /* not lifted */
    823     RECOMP_FLAGS_IN();
    824     eax = MEM32(ebx); /* 0x47064CF7: mov eax, dword ptr [ebx] */
    825     ecx = MEM32(esi + 0x8); /* 0x47064CF9: mov ecx, dword ptr [esi + 8] */
    826     /* cmp eax, ecx */ /* 0x47064CFC: cmp eax, ecx */
    827     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    828     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    829     _flag_k = FK_CMP;
    830     RECOMP_BACKEDGE();
    831     if (CMP_G(_flag_a, _flag_b)) goto L_47064CC3; /* 0x47064CFE: jg 0x47064cc3 */
    832 L_47064D00:
    833     if (CMP_NE(_flag_a, _flag_b)) goto L_47064D0A; /* 0x47064D00: jne 0x47064d0a */
    834 L_47064D02:
    835     eax = MEM32(ebx + 0x4); /* 0x47064D02: mov eax, dword ptr [ebx + 4] */
    836     /* cmp eax, MEM32(esi + 0xC) */ /* 0x47064D05: cmp eax, dword ptr [esi + 0xc] */
    837     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC));
    838     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    839     _flag_k = FK_CMP;
    840     RECOMP_BACKEDGE();
    841     if (CMP_GE(_flag_a, _flag_b)) goto L_47064CC3; /* 0x47064D08: jge 0x47064cc3 */
    842 L_47064D0A:
    843     edx = MEM32(edi); /* 0x47064D0A: mov edx, dword ptr [edi] */
    844     PUSH32(esp, esi); /* 0x47064D0C: push esi */
    845     ecx = edi; /* 0x47064D0D: mov ecx, edi */
    846     RECOMP_ICALL(MEM32(edx + 0x3C)); /* 0x47064D0F: call dword ptr [edx + 0x3c] */
    847     RECOMP_FLAGS_IN();
    848     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    849     ebp = 0; /* 0x47064D12: xor ebp, ebp */
    850     _cf = 0;
    851     _flag_k = FK_TEST;
    852 L_47064D14:
    853     eax = MEM32(esp + 0x38); /* 0x47064D14: mov eax, dword ptr [esp + 0x38] */
    854     edx = MEM32(esi); /* 0x47064D18: mov edx, dword ptr [esi] */
    855     ecx = MEM32(edi + 0x28); /* 0x47064D1A: mov ecx, dword ptr [edi + 0x28] */
    856     PUSH32(esp, ebx); /* 0x47064D1D: push ebx */
    857     PUSH32(esp, eax); /* 0x47064D1E: push eax */
    858     PUSH32(esp, edx); /* 0x47064D1F: push edx */
    859     PUSH32(esp, edi); /* 0x47064D20: push edi */
    860     RECOMP_ICALL(0x47063AA0u); /* 0x47064D21: call 0x47063aa0 */ /* not lifted */
    861     RECOMP_FLAGS_IN();
    862     /* test ebp, ebp */ /* 0x47064D26: test ebp, ebp */
    863     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp);
    864     _cf = 0;
    865     _flag_k = FK_TEST;
    866     if (TEST_Z(_flag_a, _flag_b)) goto L_47064D32; /* 0x47064D28: je 0x47064d32 */
    867 L_47064D2A:
    868     eax = MEM32(edi); /* 0x47064D2A: mov eax, dword ptr [edi] */
    869     PUSH32(esp, esi); /* 0x47064D2C: push esi */
    870     ecx = edi; /* 0x47064D2D: mov ecx, edi */
    871     RECOMP_ICALL(MEM32(eax + 0x44)); /* 0x47064D2F: call dword ptr [eax + 0x44] */
    872     RECOMP_FLAGS_IN();
    873 L_47064D32:
    874     _flag_a = (uint32_t)(MEM32(esp + 0x10)); _flag_b = (uint32_t)(1);
    875     MEM32(esp + 0x10) = MEM32(esp + 0x10) + 1; /* 0x47064D32: inc dword ptr [esp + 0x10] */
    876     _flag_k = FK_INC;
    877     edx = MEM32(edi); /* 0x47064D36: mov edx, dword ptr [edi] */
    878     ecx = edi; /* 0x47064D38: mov ecx, edi */
    879     RECOMP_ICALL(MEM32(edx + 0x4)); /* 0x47064D3A: call dword ptr [edx + 4] */
    880     RECOMP_FLAGS_IN();
    881     /* test eax, eax */ /* 0x47064D3D: test eax, eax */
    882     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    883     _cf = 0;
    884     _flag_k = FK_TEST;
    885     if (TEST_NZ(_flag_a, _flag_b)) goto L_47064D5A; /* 0x47064D3F: jne 0x47064d5a */
    886 L_47064D41:
    887     eax = MEM32(edi); /* 0x47064D41: mov eax, dword ptr [edi] */
    888     ecx = edi; /* 0x47064D43: mov ecx, edi */
    889     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x47064D45: call dword ptr [eax + 8] */
    890     RECOMP_FLAGS_IN();
    891     PUSH32(esp, eax); /* 0x47064D48: push eax */
    892     PUSH32(esp, ebx); /* 0x47064D49: push ebx */
    893     RECOMP_ICALL(0x47001400u); /* 0x47064D4A: call 0x47001400 */ /* not lifted */
    894     RECOMP_FLAGS_IN();
    895     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    896     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    897     esp = esp + 8; /* 0x47064D4F: add esp, 8 */
    898     _flag_k = FK_ADD;
    899     /* test eax, eax */ /* 0x47064D52: test eax, eax */
    900     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    901     _cf = 0;
    902     _flag_k = FK_TEST;
    903     RECOMP_BACKEDGE();
    904     if (TEST_NZ(_flag_a, _flag_b)) goto L_47064C94; /* 0x47064D54: jne 0x47064c94 */
    905 L_47064D5A:
    906     esi = MEM32(esp + 0x18); /* 0x47064D5A: mov esi, dword ptr [esp + 0x18] */
    907 L_47064D5E:
    908     ecx = esi; /* 0x47064D5E: mov ecx, esi */
    909     MEM32(esp + 0x30) = 0xFFFFFFFFu; /* 0x47064D60: mov dword ptr [esp + 0x30], 0xffffffff */
    910     RECOMP_ICALL(0x470870E0u); /* 0x47064D68: call 0x470870e0 */ /* not lifted */
    911     RECOMP_FLAGS_IN();
    912     eax = MEM32(esp + 0x10); /* 0x47064D6D: mov eax, dword ptr [esp + 0x10] */
    913 L_47064D71:
    914     ecx = MEM32(esp + 0x28); /* 0x47064D71: mov ecx, dword ptr [esp + 0x28] */
    915     edi = POP32_VAL(esp); /* 0x47064D75: pop edi */
    916     esi = POP32_VAL(esp); /* 0x47064D76: pop esi */
    917     ebp = POP32_VAL(esp); /* 0x47064D77: pop ebp */
    918     MEM32(FS_BASE + (0)) = ecx; /* 0x47064D78: mov dword ptr fs:[0], ecx */
    919     ebx = POP32_VAL(esp); /* 0x47064D7F: pop ebx */
    920     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
    921     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    922     esp = esp + 0x24u; /* 0x47064D80: add esp, 0x24 */
    923     _flag_k = FK_ADD;
    924     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47064D83: ret 4 */
    925     RECOMP_REGS_OUT();
    926 }
    927 
    928 void sub_47064D71(void) {
    929     int _fpu_cmp = 0;
    930     uint32_t _cf = 0;
    931     int _df = 1;
    932     uint32_t _flag_k = FK_NONE;
    933     uint32_t _flag_a = 0, _flag_b = 0;
    934     uint32_t _itail_tgt = 0;
    935     RECOMP_REGS_LOCALS
    936     RECOMP_ENTER(0x47064D71u);
    937 
    938 L_47064D71:
    939     ecx = MEM32(esp + 0x28); /* 0x47064D71: mov ecx, dword ptr [esp + 0x28] */
    940     edi = POP32_VAL(esp); /* 0x47064D75: pop edi */
    941     esi = POP32_VAL(esp); /* 0x47064D76: pop esi */
    942     ebp = POP32_VAL(esp); /* 0x47064D77: pop ebp */
    943     MEM32(FS_BASE + (0)) = ecx; /* 0x47064D78: mov dword ptr fs:[0], ecx */
    944     ebx = POP32_VAL(esp); /* 0x47064D7F: pop ebx */
    945     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x24u);
    946     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    947     esp = esp + 0x24u; /* 0x47064D80: add esp, 0x24 */
    948     _flag_k = FK_ADD;
    949     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47064D83: ret 4 */
    950     RECOMP_REGS_OUT();
    951 }
    952 
    953 void sub_47064D90(void) {
    954     int _fpu_cmp = 0;
    955     uint32_t _cf = 0;
    956     int _df = 1;
    957     uint32_t _flag_k = FK_NONE;
    958     uint32_t _flag_a = 0, _flag_b = 0;
    959     uint32_t _itail_tgt = 0;
    960     RECOMP_REGS_LOCALS
    961     RECOMP_ENTER(0x47064D90u);
    962 
    963 L_47064D90:
    964     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    965     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    966     esp = esp - 8; /* 0x47064D90: sub esp, 8 */
    967     _flag_k = FK_CMP;
    968     PUSH32(esp, ebx); /* 0x47064D93: push ebx */
    969     PUSH32(esp, ebp); /* 0x47064D94: push ebp */
    970     PUSH32(esp, esi); /* 0x47064D95: push esi */
    971     PUSH32(esp, edi); /* 0x47064D96: push edi */
    972     edi = MEM32(esp + 0x20); /* 0x47064D97: mov edi, dword ptr [esp + 0x20] */
    973     /* test edi, edi */ /* 0x47064D9B: test edi, edi */
    974     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    975     _cf = 0;
    976     _flag_k = FK_TEST;
    977     esi = ecx; /* 0x47064D9D: mov esi, ecx */
    978     if (TEST_NZ(_flag_a, _flag_b)) goto L_47064DAD; /* 0x47064D9F: jne 0x47064dad */
    979 L_47064DA1:
    980     edi = POP32_VAL(esp); /* 0x47064DA1: pop edi */
    981     esi = POP32_VAL(esp); /* 0x47064DA2: pop esi */
    982     ebp = POP32_VAL(esp); /* 0x47064DA3: pop ebp */
    983     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    984     eax = 0; /* 0x47064DA4: xor eax, eax */
    985     _cf = 0;
    986     _flag_k = FK_TEST;
    987     ebx = POP32_VAL(esp); /* 0x47064DA6: pop ebx */
    988     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    989     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    990     esp = esp + 8; /* 0x47064DA7: add esp, 8 */
    991     _flag_k = FK_ADD;
    992     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47064DAA: ret 8 */
    993 L_47064DAD:
    994     eax = MEM32(esi); /* 0x47064DAD: mov eax, dword ptr [esi] */
    995     ecx = esi; /* 0x47064DAF: mov ecx, esi */
    996     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47064DB1: call dword ptr [eax + 4] */
    997     RECOMP_FLAGS_IN();
    998     /* test eax, eax */ /* 0x47064DB4: test eax, eax */
    999     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1000     _cf = 0;
   1001     _flag_k = FK_TEST;
   1002     if (TEST_Z(_flag_a, _flag_b)) goto L_47064DD6; /* 0x47064DB6: je 0x47064dd6 */
   1003 L_47064DB8:
   1004     eax = MEM32(esp + 0x1C); /* 0x47064DB8: mov eax, dword ptr [esp + 0x1c] */
   1005     /* test eax, eax */ /* 0x47064DBC: test eax, eax */
   1006     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1007     _cf = 0;
   1008     _flag_k = FK_TEST;
   1009     RECOMP_BACKEDGE();
   1010     if (TEST_Z(_flag_a, _flag_b)) goto L_47064DA1; /* 0x47064DBE: je 0x47064da1 */
   1011 L_47064DC0:
   1012     ecx = MEM32(eax); /* 0x47064DC0: mov ecx, dword ptr [eax] */
   1013     MEM32(edi) = ecx; /* 0x47064DC2: mov dword ptr [edi], ecx */
   1014     edx = MEM32(eax + 0x4); /* 0x47064DC4: mov edx, dword ptr [eax + 4] */
   1015     MEM32(edi + 0x4) = edx; /* 0x47064DC7: mov dword ptr [edi + 4], edx */
   1016     eax = edi; /* 0x47064DCA: mov eax, edi */
   1017     edi = POP32_VAL(esp); /* 0x47064DCC: pop edi */
   1018     esi = POP32_VAL(esp); /* 0x47064DCD: pop esi */
   1019     ebp = POP32_VAL(esp); /* 0x47064DCE: pop ebp */
   1020     ebx = POP32_VAL(esp); /* 0x47064DCF: pop ebx */
   1021     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1022     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1023     esp = esp + 8; /* 0x47064DD0: add esp, 8 */
   1024     _flag_k = FK_ADD;
   1025     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47064DD3: ret 8 */
   1026 L_47064DD6:
   1027     eax = esp + 0x10; /* 0x47064DD6: lea eax, [esp + 0x10] */
   1028     PUSH32(esp, eax); /* 0x47064DDA: push eax */
   1029     RECOMP_ICALL(MEM32(esi + 0x24)); /* 0x47064DDB: call dword ptr [esi + 0x24] */
   1030     RECOMP_FLAGS_IN();
   1031     edx = MEM32(esi); /* 0x47064DDE: mov edx, dword ptr [esi] */
   1032     ebx = MEM32(eax); /* 0x47064DE0: mov ebx, dword ptr [eax] */
   1033     ebp = MEM32(eax + 0x4); /* 0x47064DE2: mov ebp, dword ptr [eax + 4] */
   1034     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1035     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1036     esp = esp + 4; /* 0x47064DE5: add esp, 4 */
   1037     _flag_k = FK_ADD;
   1038     ecx = esi; /* 0x47064DE8: mov ecx, esi */
   1039     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x47064DEA: call dword ptr [edx + 8] */
   1040     RECOMP_FLAGS_IN();
   1041     ecx = MEM32(eax); /* 0x47064DED: mov ecx, dword ptr [eax] */
   1042     /* cmp ecx, ebx */ /* 0x47064DEF: cmp ecx, ebx */
   1043     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   1044     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1045     _flag_k = FK_CMP;
   1046     if (CMP_G(_flag_a, _flag_b)) goto L_47064DFA; /* 0x47064DF1: jg 0x47064dfa */
   1047 L_47064DF3:
   1048     if (CMP_NE(_flag_a, _flag_b)) goto L_47064E61; /* 0x47064DF3: jne 0x47064e61 */
   1049 L_47064DF5:
   1050     /* cmp MEM32(eax + 0x4), ebp */ /* 0x47064DF5: cmp dword ptr [eax + 4], ebp */
   1051     _flag_a = (uint32_t)(MEM32(eax + 0x4)); _flag_b = (uint32_t)(ebp);
   1052     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1053     _flag_k = FK_CMP;
   1054     if (CMP_LE(_flag_a, _flag_b)) goto L_47064E61; /* 0x47064DF8: jle 0x47064e61 */
   1055 L_47064DFA:
   1056     eax = MEM32(esi); /* 0x47064DFA: mov eax, dword ptr [esi] */
   1057     ecx = esi; /* 0x47064DFC: mov ecx, esi */
   1058     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x47064DFE: call dword ptr [eax + 8] */
   1059     RECOMP_FLAGS_IN();
   1060     ecx = MEM32(eax); /* 0x47064E01: mov ecx, dword ptr [eax] */
   1061     edx = MEM32(eax + 0x4); /* 0x47064E03: mov edx, dword ptr [eax + 4] */
   1062     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   1063     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1064     ecx = ecx - ebx; /* 0x47064E06: sub ecx, ebx */
   1065     _flag_k = FK_CMP;
   1066     MEM32(esp + 0x10) = ecx; /* 0x47064E08: mov dword ptr [esp + 0x10], ecx */
   1067     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ebp);
   1068     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1069     edx = edx - ebp; /* 0x47064E0C: sub edx, ebp */
   1070     _flag_k = FK_CMP;
   1071     ecx = esp + 0x10; /* 0x47064E0E: lea ecx, [esp + 0x10] */
   1072     MEM32(esp + 0x14) = edx; /* 0x47064E12: mov dword ptr [esp + 0x14], edx */
   1073     RECOMP_ICALL(0x470543C0u); /* 0x47064E16: call 0x470543c0 */ /* not lifted */
   1074     RECOMP_FLAGS_IN();
   1075     ecx = esp + 0x10; /* 0x47064E1B: lea ecx, [esp + 0x10] */
   1076     RECOMP_ICALL(0x470543C0u); /* 0x47064E1F: call 0x470543c0 */ /* not lifted */
   1077     RECOMP_FLAGS_IN();
   1078     eax = MEM32(esp + 0x10); /* 0x47064E24: mov eax, dword ptr [esp + 0x10] */
   1079     ecx = MEM32(esp + 0x14); /* 0x47064E28: mov ecx, dword ptr [esp + 0x14] */
   1080     MEM32(edi) = eax; /* 0x47064E2C: mov dword ptr [edi], eax */
   1081     eax = MEM32(esp + 0x1C); /* 0x47064E2E: mov eax, dword ptr [esp + 0x1c] */
   1082     /* test eax, eax */ /* 0x47064E32: test eax, eax */
   1083     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1084     _cf = 0;
   1085     _flag_k = FK_TEST;
   1086     MEM32(edi + 0x4) = ecx; /* 0x47064E34: mov dword ptr [edi + 4], ecx */
   1087     if (TEST_Z(_flag_a, _flag_b)) goto L_47064E71; /* 0x47064E37: je 0x47064e71 */
   1088 L_47064E39:
   1089     ecx = MEM32(eax); /* 0x47064E39: mov ecx, dword ptr [eax] */
   1090     edx = MEM32(edi); /* 0x47064E3B: mov edx, dword ptr [edi] */
   1091     /* cmp ecx, edx */ /* 0x47064E3D: cmp ecx, edx */
   1092     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   1093     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1094     _flag_k = FK_CMP;
   1095     if (CMP_G(_flag_a, _flag_b)) goto L_47064E71; /* 0x47064E3F: jg 0x47064e71 */
   1096 L_47064E41:
   1097     if (CMP_NE(_flag_a, _flag_b)) goto L_47064E4B; /* 0x47064E41: jne 0x47064e4b */
   1098 L_47064E43:
   1099     edx = MEM32(eax + 0x4); /* 0x47064E43: mov edx, dword ptr [eax + 4] */
   1100     /* cmp edx, MEM32(edi + 0x4) */ /* 0x47064E46: cmp edx, dword ptr [edi + 4] */
   1101     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(edi + 0x4));
   1102     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1103     _flag_k = FK_CMP;
   1104     if (CMP_G(_flag_a, _flag_b)) goto L_47064E71; /* 0x47064E49: jg 0x47064e71 */
   1105 L_47064E4B:
   1106     ecx = MEM32(eax); /* 0x47064E4B: mov ecx, dword ptr [eax] */
   1107     MEM32(edi) = ecx; /* 0x47064E4D: mov dword ptr [edi], ecx */
   1108     edx = MEM32(eax + 0x4); /* 0x47064E4F: mov edx, dword ptr [eax + 4] */
   1109     MEM32(edi + 0x4) = edx; /* 0x47064E52: mov dword ptr [edi + 4], edx */
   1110     eax = edi; /* 0x47064E55: mov eax, edi */
   1111     edi = POP32_VAL(esp); /* 0x47064E57: pop edi */
   1112     esi = POP32_VAL(esp); /* 0x47064E58: pop esi */
   1113     ebp = POP32_VAL(esp); /* 0x47064E59: pop ebp */
   1114     ebx = POP32_VAL(esp); /* 0x47064E5A: pop ebx */
   1115     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1116     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1117     esp = esp + 8; /* 0x47064E5B: add esp, 8 */
   1118     _flag_k = FK_ADD;
   1119     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47064E5E: ret 8 */
   1120 L_47064E61:
   1121     eax = MEM32(0x4710E9A8); /* 0x47064E61: mov eax, dword ptr [0x4710e9a8] */
   1122     MEM32(edi) = eax; /* 0x47064E66: mov dword ptr [edi], eax */
   1123     ecx = MEM32(0x4710E9AC); /* 0x47064E68: mov ecx, dword ptr [0x4710e9ac] */
   1124     MEM32(edi + 0x4) = ecx; /* 0x47064E6E: mov dword ptr [edi + 4], ecx */
   1125 L_47064E71:
   1126     eax = edi; /* 0x47064E71: mov eax, edi */
   1127     edi = POP32_VAL(esp); /* 0x47064E73: pop edi */
   1128     esi = POP32_VAL(esp); /* 0x47064E74: pop esi */
   1129     ebp = POP32_VAL(esp); /* 0x47064E75: pop ebp */
   1130     ebx = POP32_VAL(esp); /* 0x47064E76: pop ebx */
   1131     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1132     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1133     esp = esp + 8; /* 0x47064E77: add esp, 8 */
   1134     _flag_k = FK_ADD;
   1135     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47064E7A: ret 8 */
   1136     RECOMP_REGS_OUT();
   1137 }
   1138 
   1139 void sub_47064E80(void) {
   1140     int _fpu_cmp = 0;
   1141     uint32_t _cf = 0;
   1142     int _df = 1;
   1143     uint32_t _flag_k = FK_NONE;
   1144     uint32_t _flag_a = 0, _flag_b = 0;
   1145     uint32_t _itail_tgt = 0;
   1146     RECOMP_REGS_LOCALS
   1147     RECOMP_ENTER(0x47064E80u);
   1148 
   1149 L_47064E80:
   1150     PUSH32(esp, 0xFFFFFFFFu); /* 0x47064E80: push -1 */
   1151     PUSH32(esp, 0x470A8398u); /* 0x47064E82: push 0x470a8398 */
   1152     eax = MEM32(FS_BASE + (0)); /* 0x47064E87: mov eax, dword ptr fs:[0] */
   1153     PUSH32(esp, eax); /* 0x47064E8D: push eax */
   1154     MEM32(FS_BASE + (0)) = esp; /* 0x47064E8E: mov dword ptr fs:[0], esp */
   1155     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   1156     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1157     esp = esp - 0x10u; /* 0x47064E95: sub esp, 0x10 */
   1158     _flag_k = FK_CMP;
   1159     PUSH32(esp, ebx); /* 0x47064E98: push ebx */
   1160     PUSH32(esp, ebp); /* 0x47064E99: push ebp */
   1161     PUSH32(esp, esi); /* 0x47064E9A: push esi */
   1162     esi = ecx; /* 0x47064E9B: mov esi, ecx */
   1163     ebp = esi + 0x4; /* 0x47064E9D: lea ebp, [esi + 4] */
   1164     PUSH32(esp, edi); /* 0x47064EA0: push edi */
   1165     ecx = ebp; /* 0x47064EA1: mov ecx, ebp */
   1166     MEM32(esp + 0x18) = ebp; /* 0x47064EA3: mov dword ptr [esp + 0x18], ebp */
   1167     RECOMP_ICALL(0x470870D0u); /* 0x47064EA7: call 0x470870d0 */ /* not lifted */
   1168     RECOMP_FLAGS_IN();
   1169     MEM32(esp + 0x1C) = eax; /* 0x47064EAC: mov dword ptr [esp + 0x1c], eax */
   1170     /* cmp eax, 0xFFFFFFFFu */ /* 0x47064EB0: cmp eax, -1 */
   1171     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1172     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1173     _flag_k = FK_CMP;
   1174     MEM32(esp + 0x28) = 0; /* 0x47064EB3: mov dword ptr [esp + 0x28], 0 */
   1175     if (CMP_NE(_flag_a, _flag_b)) goto L_47064EC6; /* 0x47064EBB: jne 0x47064ec6 */
   1176 L_47064EBD:
   1177     eax = MEM32(esp + 0x30); /* 0x47064EBD: mov eax, dword ptr [esp + 0x30] */
   1178     goto L_47064F99; /* 0x47064EC1: jmp 0x47064f99 */
   1179 L_47064EC6:
   1180     eax = MEM32(esi); /* 0x47064EC6: mov eax, dword ptr [esi] */
   1181     ecx = esi; /* 0x47064EC8: mov ecx, esi */
   1182     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47064ECA: call dword ptr [eax + 4] */
   1183     RECOMP_FLAGS_IN();
   1184     /* test eax, eax */ /* 0x47064ECD: test eax, eax */
   1185     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1186     _cf = 0;
   1187     _flag_k = FK_TEST;
   1188     if (TEST_Z(_flag_a, _flag_b)) goto L_47064EE9; /* 0x47064ECF: je 0x47064ee9 */
   1189 L_47064ED1:
   1190     ecx = ebp; /* 0x47064ED1: mov ecx, ebp */
   1191     MEM32(esp + 0x28) = 0xFFFFFFFFu; /* 0x47064ED3: mov dword ptr [esp + 0x28], 0xffffffff */
   1192     RECOMP_ICALL(0x470870E0u); /* 0x47064EDB: call 0x470870e0 */ /* not lifted */
   1193     RECOMP_FLAGS_IN();
   1194     eax = MEM32(esp + 0x30); /* 0x47064EE0: mov eax, dword ptr [esp + 0x30] */
   1195     goto L_47064F99; /* 0x47064EE4: jmp 0x47064f99 */
   1196 L_47064EE9:
   1197     ecx = esp + 0x10; /* 0x47064EE9: lea ecx, [esp + 0x10] */
   1198     PUSH32(esp, ecx); /* 0x47064EED: push ecx */
   1199     RECOMP_ICALL(MEM32(esi + 0x24)); /* 0x47064EEE: call dword ptr [esi + 0x24] */
   1200     RECOMP_FLAGS_IN();
   1201     edx = MEM32(esi); /* 0x47064EF1: mov edx, dword ptr [esi] */
   1202     edi = MEM32(eax); /* 0x47064EF3: mov edi, dword ptr [eax] */
   1203     ebx = MEM32(eax + 0x4); /* 0x47064EF5: mov ebx, dword ptr [eax + 4] */
   1204     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1205     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1206     esp = esp + 4; /* 0x47064EF8: add esp, 4 */
   1207     _flag_k = FK_ADD;
   1208     ecx = esi; /* 0x47064EFB: mov ecx, esi */
   1209     RECOMP_ICALL(MEM32(edx + 0x8)); /* 0x47064EFD: call dword ptr [edx + 8] */
   1210     RECOMP_FLAGS_IN();
   1211     ecx = MEM32(eax); /* 0x47064F00: mov ecx, dword ptr [eax] */
   1212     /* cmp ecx, edi */ /* 0x47064F02: cmp ecx, edi */
   1213     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   1214     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1215     _flag_k = FK_CMP;
   1216     if (CMP_G(_flag_a, _flag_b)) goto L_47064F0D; /* 0x47064F04: jg 0x47064f0d */
   1217 L_47064F06:
   1218     if (CMP_NE(_flag_a, _flag_b)) goto L_47064F75; /* 0x47064F06: jne 0x47064f75 */
   1219 L_47064F08:
   1220     /* cmp MEM32(eax + 0x4), ebx */ /* 0x47064F08: cmp dword ptr [eax + 4], ebx */
   1221     _flag_a = (uint32_t)(MEM32(eax + 0x4)); _flag_b = (uint32_t)(ebx);
   1222     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1223     _flag_k = FK_CMP;
   1224     if (CMP_LE(_flag_a, _flag_b)) goto L_47064F75; /* 0x47064F0B: jle 0x47064f75 */
   1225 L_47064F0D:
   1226     eax = MEM32(esi); /* 0x47064F0D: mov eax, dword ptr [esi] */
   1227     ecx = esi; /* 0x47064F0F: mov ecx, esi */
   1228     RECOMP_ICALL(MEM32(eax + 0x8)); /* 0x47064F11: call dword ptr [eax + 8] */
   1229     RECOMP_FLAGS_IN();
   1230     ecx = MEM32(eax + 0x4); /* 0x47064F14: mov ecx, dword ptr [eax + 4] */
   1231     eax = MEM32(eax); /* 0x47064F17: mov eax, dword ptr [eax] */
   1232     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   1233     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1234     ecx = ecx - ebx; /* 0x47064F19: sub ecx, ebx */
   1235     _flag_k = FK_CMP;
   1236     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1237     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1238     eax = eax - edi; /* 0x47064F1B: sub eax, edi */
   1239     _flag_k = FK_CMP;
   1240     MEM32(esp + 0x14) = ecx; /* 0x47064F1D: mov dword ptr [esp + 0x14], ecx */
   1241     ecx = esp + 0x10; /* 0x47064F21: lea ecx, [esp + 0x10] */
   1242     MEM32(esp + 0x10) = eax; /* 0x47064F25: mov dword ptr [esp + 0x10], eax */
   1243     RECOMP_ICALL(0x470543C0u); /* 0x47064F29: call 0x470543c0 */ /* not lifted */
   1244     RECOMP_FLAGS_IN();
   1245     ecx = esp + 0x10; /* 0x47064F2E: lea ecx, [esp + 0x10] */
   1246     RECOMP_ICALL(0x470543C0u); /* 0x47064F32: call 0x470543c0 */ /* not lifted */
   1247     RECOMP_FLAGS_IN();
   1248     ecx = MEM32(esp + 0x10); /* 0x47064F37: mov ecx, dword ptr [esp + 0x10] */
   1249     edi = MEM32(esp + 0x30); /* 0x47064F3B: mov edi, dword ptr [esp + 0x30] */
   1250     edx = MEM32(esp + 0x14); /* 0x47064F3F: mov edx, dword ptr [esp + 0x14] */
   1251     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u);
   1252     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1253     esi = esi + 0x34u; /* 0x47064F43: add esi, 0x34 */
   1254     _flag_k = FK_ADD;
   1255     /* test edi, edi */ /* 0x47064F46: test edi, edi */
   1256     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1257     _cf = 0;
   1258     _flag_k = FK_TEST;
   1259     MEM32(esi) = ecx; /* 0x47064F48: mov dword ptr [esi], ecx */
   1260     MEM32(esi + 0x4) = edx; /* 0x47064F4A: mov dword ptr [esi + 4], edx */
   1261     if (TEST_Z(_flag_a, _flag_b)) goto L_47064F88; /* 0x47064F4D: je 0x47064f88 */
   1262 L_47064F4F:
   1263     eax = MEM32(edi); /* 0x47064F4F: mov eax, dword ptr [edi] */
   1264     ecx = MEM32(esi); /* 0x47064F51: mov ecx, dword ptr [esi] */
   1265     /* cmp eax, ecx */ /* 0x47064F53: cmp eax, ecx */
   1266     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1267     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1268     _flag_k = FK_CMP;
   1269     if (CMP_G(_flag_a, _flag_b)) goto L_47064F88; /* 0x47064F55: jg 0x47064f88 */
   1270 L_47064F57:
   1271     if (CMP_NE(_flag_a, _flag_b)) goto L_47064F62; /* 0x47064F57: jne 0x47064f62 */
   1272 L_47064F59:
   1273     eax = MEM32(edi + 0x4); /* 0x47064F59: mov eax, dword ptr [edi + 4] */
   1274     ecx = edx; /* 0x47064F5C: mov ecx, edx */
   1275     /* cmp eax, ecx */ /* 0x47064F5E: cmp eax, ecx */
   1276     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1277     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1278     _flag_k = FK_CMP;
   1279     if (CMP_G(_flag_a, _flag_b)) goto L_47064F88; /* 0x47064F60: jg 0x47064f88 */
   1280 L_47064F62:
   1281     ecx = ebp; /* 0x47064F62: mov ecx, ebp */
   1282     MEM32(esp + 0x28) = 0xFFFFFFFFu; /* 0x47064F64: mov dword ptr [esp + 0x28], 0xffffffff */
   1283     RECOMP_ICALL(0x470870E0u); /* 0x47064F6C: call 0x470870e0 */ /* not lifted */
   1284     RECOMP_FLAGS_IN();
   1285     eax = edi; /* 0x47064F71: mov eax, edi */
   1286     goto L_47064F99; /* 0x47064F73: jmp 0x47064f99 */
   1287 L_47064F75:
   1288     eax = MEM32(0x4710E9A8); /* 0x47064F75: mov eax, dword ptr [0x4710e9a8] */
   1289     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0x34u);
   1290     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1291     esi = esi + 0x34u; /* 0x47064F7A: add esi, 0x34 */
   1292     _flag_k = FK_ADD;
   1293     MEM32(esi) = eax; /* 0x47064F7D: mov dword ptr [esi], eax */
   1294     ecx = MEM32(0x4710E9AC); /* 0x47064F7F: mov ecx, dword ptr [0x4710e9ac] */
   1295     MEM32(esi + 0x4) = ecx; /* 0x47064F85: mov dword ptr [esi + 4], ecx */
   1296 L_47064F88:
   1297     ecx = ebp; /* 0x47064F88: mov ecx, ebp */
   1298     MEM32(esp + 0x28) = 0xFFFFFFFFu; /* 0x47064F8A: mov dword ptr [esp + 0x28], 0xffffffff */
   1299     RECOMP_ICALL(0x470870E0u); /* 0x47064F92: call 0x470870e0 */ /* not lifted */
   1300     RECOMP_FLAGS_IN();
   1301     eax = esi; /* 0x47064F97: mov eax, esi */
   1302 L_47064F99:
   1303     ecx = MEM32(esp + 0x20); /* 0x47064F99: mov ecx, dword ptr [esp + 0x20] */
   1304     edi = POP32_VAL(esp); /* 0x47064F9D: pop edi */
   1305     esi = POP32_VAL(esp); /* 0x47064F9E: pop esi */
   1306     ebp = POP32_VAL(esp); /* 0x47064F9F: pop ebp */
   1307     ebx = POP32_VAL(esp); /* 0x47064FA0: pop ebx */
   1308     MEM32(FS_BASE + (0)) = ecx; /* 0x47064FA1: mov dword ptr fs:[0], ecx */
   1309     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   1310     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1311     esp = esp + 0x1Cu; /* 0x47064FA8: add esp, 0x1c */
   1312     _flag_k = FK_ADD;
   1313     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47064FAB: ret 4 */
   1314     RECOMP_REGS_OUT();
   1315 }
   1316 
   1317 void sub_47064F99(void) {
   1318     int _fpu_cmp = 0;
   1319     uint32_t _cf = 0;
   1320     int _df = 1;
   1321     uint32_t _flag_k = FK_NONE;
   1322     uint32_t _flag_a = 0, _flag_b = 0;
   1323     uint32_t _itail_tgt = 0;
   1324     RECOMP_REGS_LOCALS
   1325     RECOMP_ENTER(0x47064F99u);
   1326 
   1327 L_47064F99:
   1328     ecx = MEM32(esp + 0x20); /* 0x47064F99: mov ecx, dword ptr [esp + 0x20] */
   1329     edi = POP32_VAL(esp); /* 0x47064F9D: pop edi */
   1330     esi = POP32_VAL(esp); /* 0x47064F9E: pop esi */
   1331     ebp = POP32_VAL(esp); /* 0x47064F9F: pop ebp */
   1332     ebx = POP32_VAL(esp); /* 0x47064FA0: pop ebx */
   1333     MEM32(FS_BASE + (0)) = ecx; /* 0x47064FA1: mov dword ptr fs:[0], ecx */
   1334     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   1335     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1336     esp = esp + 0x1Cu; /* 0x47064FA8: add esp, 0x1c */
   1337     _flag_k = FK_ADD;
   1338     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47064FAB: ret 4 */
   1339     RECOMP_REGS_OUT();
   1340 }
   1341 
   1342 void sub_47064FB0(void) {
   1343     int _fpu_cmp = 0;
   1344     uint32_t _cf = 0;
   1345     int _df = 1;
   1346     uint32_t _flag_k = FK_NONE;
   1347     uint32_t _flag_a = 0, _flag_b = 0;
   1348     uint32_t _itail_tgt = 0;
   1349     RECOMP_REGS_LOCALS
   1350     RECOMP_ENTER(0x47064FB0u);
   1351 
   1352 L_47064FB0:
   1353     PUSH32(esp, 0xFFFFFFFFu); /* 0x47064FB0: push -1 */
   1354     PUSH32(esp, 0x470A83B8u); /* 0x47064FB2: push 0x470a83b8 */
   1355     eax = MEM32(FS_BASE + (0)); /* 0x47064FB7: mov eax, dword ptr fs:[0] */
   1356     PUSH32(esp, eax); /* 0x47064FBD: push eax */
   1357     MEM32(FS_BASE + (0)) = esp; /* 0x47064FBE: mov dword ptr fs:[0], esp */
   1358     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1359     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1360     esp = esp - 8; /* 0x47064FC5: sub esp, 8 */
   1361     _flag_k = FK_CMP;
   1362     PUSH32(esp, esi); /* 0x47064FC8: push esi */
   1363     esi = ecx; /* 0x47064FC9: mov esi, ecx */
   1364     PUSH32(esp, edi); /* 0x47064FCB: push edi */
   1365     edi = esi + 0x4; /* 0x47064FCC: lea edi, [esi + 4] */
   1366     ecx = edi; /* 0x47064FCF: mov ecx, edi */
   1367     MEM32(esp + 0x8) = edi; /* 0x47064FD1: mov dword ptr [esp + 8], edi */
   1368     RECOMP_ICALL(0x470870D0u); /* 0x47064FD5: call 0x470870d0 */ /* not lifted */
   1369     RECOMP_FLAGS_IN();
   1370     MEM32(esp + 0xC) = eax; /* 0x47064FDA: mov dword ptr [esp + 0xc], eax */
   1371     /* cmp eax, 0xFFFFFFFFu */ /* 0x47064FDE: cmp eax, -1 */
   1372     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1373     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1374     _flag_k = FK_CMP;
   1375     MEM32(esp + 0x18) = 0; /* 0x47064FE1: mov dword ptr [esp + 0x18], 0 */
   1376     if (CMP_EQ(_flag_a, _flag_b)) goto L_47065006; /* 0x47064FE9: je 0x47065006 */
   1377 L_47064FEB:
   1378     ecx = MEM32(esp + 0x20); /* 0x47064FEB: mov ecx, dword ptr [esp + 0x20] */
   1379     eax = MEM32(esi); /* 0x47064FEF: mov eax, dword ptr [esi] */
   1380     PUSH32(esp, ecx); /* 0x47064FF1: push ecx */
   1381     ecx = esi; /* 0x47064FF2: mov ecx, esi */
   1382     RECOMP_ICALL(MEM32(eax + 0x44)); /* 0x47064FF4: call dword ptr [eax + 0x44] */
   1383     RECOMP_FLAGS_IN();
   1384     ecx = edi; /* 0x47064FF7: mov ecx, edi */
   1385     MEM32(esp + 0x18) = 0xFFFFFFFFu; /* 0x47064FF9: mov dword ptr [esp + 0x18], 0xffffffff */
   1386     RECOMP_ICALL(0x470870E0u); /* 0x47065001: call 0x470870e0 */ /* not lifted */
   1387     RECOMP_FLAGS_IN();
   1388 L_47065006:
   1389     ecx = MEM32(esp + 0x10); /* 0x47065006: mov ecx, dword ptr [esp + 0x10] */
   1390     edi = POP32_VAL(esp); /* 0x4706500A: pop edi */
   1391     esi = POP32_VAL(esp); /* 0x4706500B: pop esi */
   1392     MEM32(FS_BASE + (0)) = ecx; /* 0x4706500C: mov dword ptr fs:[0], ecx */
   1393     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1394     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1395     esp = esp + 0x14u; /* 0x47065013: add esp, 0x14 */
   1396     _flag_k = FK_ADD;
   1397     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47065016: ret 4 */
   1398     RECOMP_REGS_OUT();
   1399 }
   1400 
   1401 void sub_47065020(void) {
   1402     int _fpu_cmp = 0;
   1403     uint32_t _cf = 0;
   1404     int _df = 1;
   1405     uint32_t _flag_k = FK_NONE;
   1406     uint32_t _flag_a = 0, _flag_b = 0;
   1407     uint32_t _itail_tgt = 0;
   1408     RECOMP_REGS_LOCALS
   1409     RECOMP_ENTER(0x47065020u);
   1410 
   1411 L_47065020:
   1412     ecx = MEM32(ecx + 0x20); /* 0x47065020: mov ecx, dword ptr [ecx + 0x20] */
   1413 L_47065023:
   1414     eax = MEM32(ecx); /* 0x47065023: mov eax, dword ptr [ecx] */
   1415 L_47065025:
   1416     { _itail_tgt = (uint32_t)(MEM32(eax + 0x8)); goto _ljump; }
   1417     { RECOMP_REGS_OUT(); return; } /* end of function */
   1418   _ljump:
   1419     switch (_itail_tgt) {
   1420       case 0x47065020u: goto L_47065020;
   1421       case 0x47065023u: goto L_47065023;
   1422       case 0x47065025u: goto L_47065025;
   1423       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1424     }
   1425     RECOMP_REGS_OUT();
   1426 }
   1427 
   1428 void sub_47065030(void) {
   1429     int _fpu_cmp = 0;
   1430     uint32_t _cf = 0;
   1431     int _df = 1;
   1432     uint32_t _flag_k = FK_NONE;
   1433     uint32_t _flag_a = 0, _flag_b = 0;
   1434     uint32_t _itail_tgt = 0;
   1435     RECOMP_REGS_LOCALS
   1436     RECOMP_ENTER(0x47065030u);
   1437 
   1438 L_47065030:
   1439     ecx = MEM32(ecx + 0x20); /* 0x47065030: mov ecx, dword ptr [ecx + 0x20] */
   1440     edx = MEM32(esp + 0x4); /* 0x47065033: mov edx, dword ptr [esp + 4] */
   1441     eax = MEM32(ecx); /* 0x47065037: mov eax, dword ptr [ecx] */
   1442     PUSH32(esp, edx); /* 0x47065039: push edx */
   1443     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x4706503A: call dword ptr [eax + 4] */
   1444     RECOMP_FLAGS_IN();
   1445     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706503D: ret 4 */
   1446     RECOMP_REGS_OUT();
   1447 }
   1448 
   1449 void sub_47065040(void) {
   1450     int _fpu_cmp = 0;
   1451     uint32_t _cf = 0;
   1452     int _df = 1;
   1453     uint32_t _flag_k = FK_NONE;
   1454     uint32_t _flag_a = 0, _flag_b = 0;
   1455     uint32_t _itail_tgt = 0;
   1456     RECOMP_REGS_LOCALS
   1457     RECOMP_ENTER(0x47065040u);
   1458 
   1459 L_47065040:
   1460     edx = MEM32(ecx + 0x48); /* 0x47065040: mov edx, dword ptr [ecx + 0x48] */
   1461     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1462     eax = 0; /* 0x47065043: xor eax, eax */
   1463     _cf = 0;
   1464     _flag_k = FK_TEST;
   1465     /* test edx, edx */ /* 0x47065045: test edx, edx */
   1466     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   1467     _cf = 0;
   1468     _flag_k = FK_TEST;
   1469     SET_LO8(eax, (TEST_Z(_flag_a, _flag_b)) ? 1 : 0); /* 0x47065047: sete al */
   1470     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706504A: ret  */
   1471     RECOMP_REGS_OUT();
   1472 }
   1473 
   1474 void sub_47065050(void) {
   1475     int _fpu_cmp = 0;
   1476     uint32_t _cf = 0;
   1477     int _df = 1;
   1478     uint32_t _flag_k = FK_NONE;
   1479     uint32_t _flag_a = 0, _flag_b = 0;
   1480     uint32_t _itail_tgt = 0;
   1481     RECOMP_REGS_LOCALS
   1482     RECOMP_ENTER(0x47065050u);
   1483 
   1484 L_47065050:
   1485     eax = MEM32(ecx + 0x50); /* 0x47065050: mov eax, dword ptr [ecx + 0x50] */
   1486     eax = MEM32(eax); /* 0x47065053: mov eax, dword ptr [eax] */
   1487     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   1488     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1489     eax = eax + 8; /* 0x47065055: add eax, 8 */
   1490     _flag_k = FK_ADD;
   1491     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47065058: ret  */
   1492     RECOMP_REGS_OUT();
   1493 }
   1494 
   1495 void sub_47065060(void) {
   1496     int _fpu_cmp = 0;
   1497     uint32_t _cf = 0;
   1498     int _df = 1;
   1499     uint32_t _flag_k = FK_NONE;
   1500     uint32_t _flag_a = 0, _flag_b = 0;
   1501     uint32_t _itail_tgt = 0;
   1502     RECOMP_REGS_LOCALS
   1503     RECOMP_ENTER(0x47065060u);
   1504 
   1505 L_47065060:
   1506     PUSH32(esp, 0xFFFFFFFFu); /* 0x47065060: push -1 */
   1507     PUSH32(esp, 0x470A83D8u); /* 0x47065062: push 0x470a83d8 */
   1508     eax = MEM32(FS_BASE + (0)); /* 0x47065067: mov eax, dword ptr fs:[0] */
   1509     PUSH32(esp, eax); /* 0x4706506D: push eax */
   1510     MEM32(FS_BASE + (0)) = esp; /* 0x4706506E: mov dword ptr fs:[0], esp */
   1511     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   1512     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1513     esp = esp - 0xCu; /* 0x47065075: sub esp, 0xc */
   1514     _flag_k = FK_CMP;
   1515     PUSH32(esp, ebx); /* 0x47065078: push ebx */
   1516     PUSH32(esp, ebp); /* 0x47065079: push ebp */
   1517     PUSH32(esp, esi); /* 0x4706507A: push esi */
   1518     esi = ecx; /* 0x4706507B: mov esi, ecx */
   1519     PUSH32(esp, edi); /* 0x4706507D: push edi */
   1520     edi = esi + 0x4; /* 0x4706507E: lea edi, [esi + 4] */
   1521     ecx = edi; /* 0x47065081: mov ecx, edi */
   1522     MEM32(esp + 0x14) = edi; /* 0x47065083: mov dword ptr [esp + 0x14], edi */
   1523     RECOMP_ICALL(0x470870D0u); /* 0x47065087: call 0x470870d0 */ /* not lifted */
   1524     RECOMP_FLAGS_IN();
   1525     MEM32(esp + 0x18) = eax; /* 0x4706508C: mov dword ptr [esp + 0x18], eax */
   1526     /* cmp eax, 0xFFFFFFFFu */ /* 0x47065090: cmp eax, -1 */
   1527     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   1528     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1529     _flag_k = FK_CMP;
   1530     MEM32(esp + 0x24) = 0; /* 0x47065093: mov dword ptr [esp + 0x24], 0 */
   1531     if (CMP_EQ(_flag_a, _flag_b)) goto L_470650DF; /* 0x4706509B: je 0x470650df */
   1532 L_4706509D:
   1533     eax = MEM32(esi + 0x48); /* 0x4706509D: mov eax, dword ptr [esi + 0x48] */
   1534     /* cmp eax, MEM32(esi + 0x44) */ /* 0x470650A0: cmp eax, dword ptr [esi + 0x44] */
   1535     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x44));
   1536     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1537     _flag_k = FK_CMP;
   1538     if (CMP_AE(_flag_a, _flag_b)) goto L_470650D0; /* 0x470650A3: jae 0x470650d0 */
   1539 L_470650A5:
   1540     ebp = MEM32(esi + 0x58); /* 0x470650A5: mov ebp, dword ptr [esi + 0x58] */
   1541     ecx = MEM32(esi + 0x54); /* 0x470650A8: mov ecx, dword ptr [esi + 0x54] */
   1542     edx = MEM32(ecx + ebp * 4); /* 0x470650AB: mov edx, dword ptr [ecx + ebp*4] */
   1543     eax = MEM32(esi); /* 0x470650AE: mov eax, dword ptr [esi] */
   1544     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(edx);
   1545     _cf = (edx) != 0;
   1546     edx = (uint32_t)(-(int32_t)edx); /* 0x470650B0: neg edx */
   1547     _flag_k = FK_CMP;
   1548     ecx = esi; /* 0x470650B2: mov ecx, esi */
   1549     MEM32(esp + 0x10) = ebp; /* 0x470650B4: mov dword ptr [esp + 0x10], ebp */
   1550     MEM32(esi + 0x58) = edx; /* 0x470650B8: mov dword ptr [esi + 0x58], edx */
   1551     RECOMP_ICALL(MEM32(eax + 0x40)); /* 0x470650BB: call dword ptr [eax + 0x40] */
   1552     RECOMP_FLAGS_IN();
   1553     ebx = eax; /* 0x470650BE: mov ebx, eax */
   1554     /* test ebx, ebx */ /* 0x470650C0: test ebx, ebx */
   1555     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(ebx);
   1556     _cf = 0;
   1557     _flag_k = FK_TEST;
   1558     if (TEST_NZ(_flag_a, _flag_b)) goto L_470650F7; /* 0x470650C2: jne 0x470650f7 */
   1559 L_470650C4:
   1560     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470650C4: call dword ptr [0x470ac3c8] */
   1561     RECOMP_FLAGS_IN();
   1562     MEM32(eax) = 0xCu; /* 0x470650CA: mov dword ptr [eax], 0xc */
   1563 L_470650D0:
   1564     ecx = edi; /* 0x470650D0: mov ecx, edi */
   1565     MEM32(esp + 0x24) = 0xFFFFFFFFu; /* 0x470650D2: mov dword ptr [esp + 0x24], 0xffffffff */
   1566     RECOMP_ICALL(0x470870E0u); /* 0x470650DA: call 0x470870e0 */ /* not lifted */
   1567     RECOMP_FLAGS_IN();
   1568 L_470650DF:
   1569     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   1570     eax = eax | 0xFFFFFFFFu; /* 0x470650DF: or eax, 0xffffffff */
   1571     _cf = 0;
   1572     _flag_k = FK_TEST;
   1573 L_470650E2:
   1574     ecx = MEM32(esp + 0x1C); /* 0x470650E2: mov ecx, dword ptr [esp + 0x1c] */
   1575     edi = POP32_VAL(esp); /* 0x470650E6: pop edi */
   1576     esi = POP32_VAL(esp); /* 0x470650E7: pop esi */
   1577     ebp = POP32_VAL(esp); /* 0x470650E8: pop ebp */
   1578     ebx = POP32_VAL(esp); /* 0x470650E9: pop ebx */
   1579     MEM32(FS_BASE + (0)) = ecx; /* 0x470650EA: mov dword ptr fs:[0], ecx */
   1580     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   1581     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1582     esp = esp + 0x18u; /* 0x470650F1: add esp, 0x18 */
   1583     _flag_k = FK_ADD;
   1584     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470650F4: ret 0x10 */
   1585 L_470650F7:
   1586     ecx = MEM32(esp + 0x2C); /* 0x470650F7: mov ecx, dword ptr [esp + 0x2c] */
   1587     edx = MEM32(ecx); /* 0x470650FB: mov edx, dword ptr [ecx] */
   1588     eax = MEM32(esp + 0x30); /* 0x470650FD: mov eax, dword ptr [esp + 0x30] */
   1589     MEM32(ebx + 0x4) = eax; /* 0x47065101: mov dword ptr [ebx + 4], eax */
   1590     eax = MEM32(esp + 0x34); /* 0x47065104: mov eax, dword ptr [esp + 0x34] */
   1591     MEM32(ebx) = edx; /* 0x47065108: mov dword ptr [ebx], edx */
   1592     ecx = MEM32(eax); /* 0x4706510A: mov ecx, dword ptr [eax] */
   1593     MEM32(ebx + 0x8) = ecx; /* 0x4706510C: mov dword ptr [ebx + 8], ecx */
   1594     edx = MEM32(eax + 0x4); /* 0x4706510F: mov edx, dword ptr [eax + 4] */
   1595     eax = MEM32(esp + 0x38); /* 0x47065112: mov eax, dword ptr [esp + 0x38] */
   1596     MEM32(ebx + 0xC) = edx; /* 0x47065116: mov dword ptr [ebx + 0xc], edx */
   1597     ecx = MEM32(eax); /* 0x47065119: mov ecx, dword ptr [eax] */
   1598     MEM32(ebx + 0x10) = ecx; /* 0x4706511B: mov dword ptr [ebx + 0x10], ecx */
   1599     edx = MEM32(eax + 0x4); /* 0x4706511E: mov edx, dword ptr [eax + 4] */
   1600     MEM32(ebx + 0x14) = edx; /* 0x47065121: mov dword ptr [ebx + 0x14], edx */
   1601     MEM32(ebx + 0x1C) = 0; /* 0x47065124: mov dword ptr [ebx + 0x1c], 0 */
   1602     MEM32(ebx + 0x20) = ebp; /* 0x4706512B: mov dword ptr [ebx + 0x20], ebp */
   1603     eax = MEM32(esi + 0x48); /* 0x4706512E: mov eax, dword ptr [esi + 0x48] */
   1604     ecx = MEM32(esi + 0x44); /* 0x47065131: mov ecx, dword ptr [esi + 0x44] */
   1605     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(2);
   1606     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1607     eax = eax + 2; /* 0x47065134: add eax, 2 */
   1608     _flag_k = FK_ADD;
   1609     /* cmp eax, ecx */ /* 0x47065137: cmp eax, ecx */
   1610     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1611     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1612     _flag_k = FK_CMP;
   1613     if (CMP_B(_flag_a, _flag_b)) goto L_47065142; /* 0x47065139: jb 0x47065142 */
   1614 L_4706513B:
   1615     ecx = esi; /* 0x4706513B: mov ecx, esi */
   1616     RECOMP_ICALL(0x47066AE0u); /* 0x4706513D: call 0x47066ae0 */ /* not lifted */
   1617     RECOMP_FLAGS_IN();
   1618 L_47065142:
   1619     ebp = MEM32(esi + 0x48); /* 0x47065142: mov ebp, dword ptr [esi + 0x48] */
   1620     /* test ebp, ebp */ /* 0x47065145: test ebp, ebp */
   1621     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp);
   1622     _cf = 0;
   1623     _flag_k = FK_TEST;
   1624     if (TEST_NZ(_flag_a, _flag_b)) goto L_4706514D; /* 0x47065147: jne 0x4706514d */
   1625 L_47065149:
   1626     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1627     edi = 0; /* 0x47065149: xor edi, edi */
   1628     _cf = 0;
   1629     _flag_k = FK_TEST;
   1630     goto L_47065152; /* 0x4706514B: jmp 0x47065152 */
   1631 L_4706514D:
   1632     edi = ebp + (-0x1); /* 0x4706514D: lea edi, [ebp - 1] */
   1633     if (1u) _cf = (((edi) >> 0) & 1u); /* 0x47065150: shr edi, 1 */
   1634     if (1u) { _flag_a = recomp_flags_pack((edi >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1635     edi = edi >> 1u; /* 0x47065150: shr edi, 1 */
   1636 L_47065152:
   1637     /* test ebp, ebp */ /* 0x47065152: test ebp, ebp */
   1638     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp);
   1639     _cf = 0;
   1640     _flag_k = FK_TEST;
   1641     if (TEST_Z(_flag_a, _flag_b)) goto L_4706518C; /* 0x47065154: jbe 0x4706518c */
   1642 L_47065156:
   1643     ecx = MEM32(esi + 0x50); /* 0x47065156: mov ecx, dword ptr [esi + 0x50] */
   1644     eax = MEM32(ecx + edi * 4); /* 0x47065159: mov eax, dword ptr [ecx + edi*4] */
   1645     ecx = ebx + 0x8; /* 0x4706515C: lea ecx, [ebx + 8] */
   1646     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   1647     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1648     eax = eax + 8; /* 0x4706515F: add eax, 8 */
   1649     _flag_k = FK_ADD;
   1650     PUSH32(esp, ecx); /* 0x47065162: push ecx */
   1651     PUSH32(esp, eax); /* 0x47065163: push eax */
   1652     RECOMP_ICALL(0x470013D0u); /* 0x47065164: call 0x470013d0 */ /* not lifted */
   1653     RECOMP_FLAGS_IN();
   1654     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1655     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1656     esp = esp + 8; /* 0x47065169: add esp, 8 */
   1657     _flag_k = FK_ADD;
   1658     /* test eax, eax */ /* 0x4706516C: test eax, eax */
   1659     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1660     _cf = 0;
   1661     _flag_k = FK_TEST;
   1662     if (TEST_Z(_flag_a, _flag_b)) goto L_4706518C; /* 0x4706516E: je 0x4706518c */
   1663 L_47065170:
   1664     edx = MEM32(esi + 0x50); /* 0x47065170: mov edx, dword ptr [esi + 0x50] */
   1665     eax = MEM32(edx + edi * 4); /* 0x47065173: mov eax, dword ptr [edx + edi*4] */
   1666     PUSH32(esp, eax); /* 0x47065176: push eax */
   1667     PUSH32(esp, ebp); /* 0x47065177: push ebp */
   1668     ecx = esi; /* 0x47065178: mov ecx, esi */
   1669     RECOMP_ICALL(0x47061E60u); /* 0x4706517A: call 0x47061e60 */ /* not lifted */
   1670     RECOMP_FLAGS_IN();
   1671     /* test edi, edi */ /* 0x4706517F: test edi, edi */
   1672     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1673     _cf = 0;
   1674     _flag_k = FK_TEST;
   1675     ebp = edi; /* 0x47065181: mov ebp, edi */
   1676     if (TEST_Z(_flag_a, _flag_b)) goto L_4706518C; /* 0x47065183: je 0x4706518c */
   1677 L_47065185:
   1678     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   1679     edi = edi - 1; /* 0x47065185: dec edi */
   1680     _flag_k = FK_DEC;
   1681     if (1u) _cf = (((edi) >> 0) & 1u); /* 0x47065186: shr edi, 1 */
   1682     if (1u) { _flag_a = recomp_flags_pack((edi >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   1683     edi = edi >> 1u; /* 0x47065186: shr edi, 1 */
   1684     /* test ebp, ebp */ /* 0x47065188: test ebp, ebp */
   1685     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp);
   1686     _cf = 0;
   1687     _flag_k = FK_TEST;
   1688     RECOMP_BACKEDGE();
   1689     if (TEST_NZ(_flag_a, _flag_b)) goto L_47065156; /* 0x4706518A: ja 0x47065156 */
   1690 L_4706518C:
   1691     PUSH32(esp, ebx); /* 0x4706518C: push ebx */
   1692     PUSH32(esp, ebp); /* 0x4706518D: push ebp */
   1693     ecx = esi; /* 0x4706518E: mov ecx, esi */
   1694     RECOMP_ICALL(0x47061E60u); /* 0x47065190: call 0x47061e60 */ /* not lifted */
   1695     RECOMP_FLAGS_IN();
   1696     eax = MEM32(esi + 0x48); /* 0x47065195: mov eax, dword ptr [esi + 0x48] */
   1697     ecx = MEM32(esp + 0x14); /* 0x47065198: mov ecx, dword ptr [esp + 0x14] */
   1698     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1699     eax = eax + 1; /* 0x4706519C: inc eax */
   1700     _flag_k = FK_INC;
   1701     MEM32(esi + 0x48) = eax; /* 0x4706519D: mov dword ptr [esi + 0x48], eax */
   1702     MEM32(esp + 0x24) = 0xFFFFFFFFu; /* 0x470651A0: mov dword ptr [esp + 0x24], 0xffffffff */
   1703     RECOMP_ICALL(0x470870E0u); /* 0x470651A8: call 0x470870e0 */ /* not lifted */
   1704     RECOMP_FLAGS_IN();
   1705     eax = MEM32(esp + 0x10); /* 0x470651AD: mov eax, dword ptr [esp + 0x10] */
   1706     RECOMP_BACKEDGE();
   1707     goto L_470650E2; /* 0x470651B1: jmp 0x470650e2 */
   1708     { RECOMP_REGS_OUT(); return; } /* end of function */
   1709     RECOMP_REGS_OUT();
   1710 }
   1711 
   1712 void sub_470650E2(void) {
   1713     int _fpu_cmp = 0;
   1714     uint32_t _cf = 0;
   1715     int _df = 1;
   1716     uint32_t _flag_k = FK_NONE;
   1717     uint32_t _flag_a = 0, _flag_b = 0;
   1718     uint32_t _itail_tgt = 0;
   1719     RECOMP_REGS_LOCALS
   1720     RECOMP_ENTER(0x470650E2u);
   1721 
   1722 L_470650E2:
   1723     ecx = MEM32(esp + 0x1C); /* 0x470650E2: mov ecx, dword ptr [esp + 0x1c] */
   1724     edi = POP32_VAL(esp); /* 0x470650E6: pop edi */
   1725     esi = POP32_VAL(esp); /* 0x470650E7: pop esi */
   1726     ebp = POP32_VAL(esp); /* 0x470650E8: pop ebp */
   1727     ebx = POP32_VAL(esp); /* 0x470650E9: pop ebx */
   1728     MEM32(FS_BASE + (0)) = ecx; /* 0x470650EA: mov dword ptr fs:[0], ecx */
   1729     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x18u);
   1730     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1731     esp = esp + 0x18u; /* 0x470650F1: add esp, 0x18 */
   1732     _flag_k = FK_ADD;
   1733     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470650F4: ret 0x10 */
   1734     RECOMP_REGS_OUT();
   1735 }
   1736 
   1737 void sub_470651C0(void) {
   1738     int _fpu_cmp = 0;
   1739     uint32_t _cf = 0;
   1740     int _df = 1;
   1741     uint32_t _flag_k = FK_NONE;
   1742     uint32_t _flag_a = 0, _flag_b = 0;
   1743     uint32_t _itail_tgt = 0;
   1744     RECOMP_REGS_LOCALS
   1745     RECOMP_ENTER(0x470651C0u);
   1746 
   1747 L_470651C0:
   1748     PUSH32(esp, 0xFFFFFFFFu); /* 0x470651C0: push -1 */
   1749     PUSH32(esp, 0x470A83F8u); /* 0x470651C2: push 0x470a83f8 */
   1750     eax = MEM32(FS_BASE + (0)); /* 0x470651C7: mov eax, dword ptr fs:[0] */
   1751     PUSH32(esp, eax); /* 0x470651CD: push eax */
   1752     MEM32(FS_BASE + (0)) = esp; /* 0x470651CE: mov dword ptr fs:[0], esp */
   1753     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1754     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1755     esp = esp - 8; /* 0x470651D5: sub esp, 8 */
   1756     _flag_k = FK_CMP;
   1757     PUSH32(esp, ebx); /* 0x470651D8: push ebx */
   1758     PUSH32(esp, ebp); /* 0x470651D9: push ebp */
   1759     PUSH32(esp, esi); /* 0x470651DA: push esi */
   1760     esi = ecx; /* 0x470651DB: mov esi, ecx */
   1761     PUSH32(esp, edi); /* 0x470651DD: push edi */
   1762     edi = esi + 0x4; /* 0x470651DE: lea edi, [esi + 4] */
   1763     ecx = edi; /* 0x470651E1: mov ecx, edi */
   1764     MEM32(esp + 0x10) = edi; /* 0x470651E3: mov dword ptr [esp + 0x10], edi */
   1765     RECOMP_ICALL(0x470870D0u); /* 0x470651E7: call 0x470870d0 */ /* not lifted */
   1766     RECOMP_FLAGS_IN();
   1767     MEM32(esp + 0x14) = eax; /* 0x470651EC: mov dword ptr [esp + 0x14], eax */
   1768     _flag_a = (uint32_t)((ebp | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ebp | 0xFFFFFFFFu));
   1769     ebp = ebp | 0xFFFFFFFFu; /* 0x470651F0: or ebp, 0xffffffff */
   1770     _cf = 0;
   1771     _flag_k = FK_TEST;
   1772     /* cmp eax, ebp */ /* 0x470651F3: cmp eax, ebp */
   1773     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
   1774     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1775     _flag_k = FK_CMP;
   1776     MEM32(esp + 0x20) = 0; /* 0x470651F5: mov dword ptr [esp + 0x20], 0 */
   1777     if (CMP_EQ(_flag_a, _flag_b)) goto L_4706529B; /* 0x470651FD: je 0x4706529b */
   1778 L_47065203:
   1779     eax = MEM32(esp + 0x28); /* 0x47065203: mov eax, dword ptr [esp + 0x28] */
   1780     /* test eax, eax */ /* 0x47065207: test eax, eax */
   1781     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1782     _cf = 0;
   1783     _flag_k = FK_TEST;
   1784     if (TEST_S(_flag_a, _flag_b)) goto L_47065290; /* 0x47065209: jl 0x47065290 */
   1785 L_4706520F:
   1786     /* cmp eax, MEM32(esi + 0x44) */ /* 0x4706520F: cmp eax, dword ptr [esi + 0x44] */
   1787     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x44));
   1788     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1789     _flag_k = FK_CMP;
   1790     if (CMP_A(_flag_a, _flag_b)) goto L_47065290; /* 0x47065212: ja 0x47065290 */
   1791 L_47065214:
   1792     ecx = MEM32(esi + 0x54); /* 0x47065214: mov ecx, dword ptr [esi + 0x54] */
   1793     ecx = MEM32(ecx + eax * 4); /* 0x47065217: mov ecx, dword ptr [ecx + eax*4] */
   1794     /* test ecx, ecx */ /* 0x4706521A: test ecx, ecx */
   1795     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1796     _cf = 0;
   1797     _flag_k = FK_TEST;
   1798     if (TEST_S(_flag_a, _flag_b)) goto L_47065290; /* 0x4706521C: jl 0x47065290 */
   1799 L_4706521E:
   1800     edx = MEM32(esi + 0x50); /* 0x4706521E: mov edx, dword ptr [esi + 0x50] */
   1801     edx = MEM32(edx + ecx * 4); /* 0x47065221: mov edx, dword ptr [edx + ecx*4] */
   1802     edx = MEM32(edx + 0x20); /* 0x47065224: mov edx, dword ptr [edx + 0x20] */
   1803     /* cmp eax, edx */ /* 0x47065227: cmp eax, edx */
   1804     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   1805     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1806     _flag_k = FK_CMP;
   1807     if (CMP_EQ(_flag_a, _flag_b)) goto L_470652B2; /* 0x47065229: je 0x470652b2 */
   1808 L_4706522F:
   1809     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4706522F: call dword ptr [0x470ac150] */
   1810     RECOMP_FLAGS_IN();
   1811     ebx = eax; /* 0x47065235: mov ebx, eax */
   1812     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47065237: call dword ptr [0x470ac3c8] */
   1813     RECOMP_FLAGS_IN();
   1814     eax = MEM32(eax); /* 0x4706523D: mov eax, dword ptr [eax] */
   1815     /* test eax, eax */ /* 0x4706523F: test eax, eax */
   1816     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1817     _cf = 0;
   1818     _flag_k = FK_TEST;
   1819     if (TEST_Z(_flag_a, _flag_b)) goto L_47065245; /* 0x47065241: je 0x47065245 */
   1820 L_47065243:
   1821     ebx = eax; /* 0x47065243: mov ebx, eax */
   1822 L_47065245:
   1823     RECOMP_ICALL(0x47039020u); /* 0x47065245: call 0x47039020 */ /* not lifted */
   1824     RECOMP_FLAGS_IN();
   1825     esi = eax; /* 0x4706524A: mov esi, eax */
   1826     ecx = esi; /* 0x4706524C: mov ecx, esi */
   1827     RECOMP_ICALL(0x4703B210u); /* 0x4706524E: call 0x4703b210 */ /* not lifted */
   1828     RECOMP_FLAGS_IN();
   1829     PUSH32(esp, eax); /* 0x47065253: push eax */
   1830     ecx = esi; /* 0x47065254: mov ecx, esi */
   1831     RECOMP_ICALL(0x4703B240u); /* 0x47065256: call 0x4703b240 */ /* not lifted */
   1832     RECOMP_FLAGS_IN();
   1833     PUSH32(esp, eax); /* 0x4706525B: push eax */
   1834     ecx = esi; /* 0x4706525C: mov ecx, esi */
   1835     RECOMP_ICALL(0x4703B080u); /* 0x4706525E: call 0x4703b080 */ /* not lifted */
   1836     RECOMP_FLAGS_IN();
   1837     PUSH32(esp, eax); /* 0x47065263: push eax */
   1838     PUSH32(esp, ebx); /* 0x47065264: push ebx */
   1839     PUSH32(esp, ebp); /* 0x47065265: push ebp */
   1840     PUSH32(esp, 0x29Du); /* 0x47065266: push 0x29d */
   1841     PUSH32(esp, 0x47109750u); /* 0x4706526B: push 0x47109750 */
   1842     ecx = esi; /* 0x47065270: mov ecx, esi */
   1843     RECOMP_ICALL(0x4703A340u); /* 0x47065272: call 0x4703a340 */ /* not lifted */
   1844     RECOMP_FLAGS_IN();
   1845     PUSH32(esp, ebp); /* 0x47065277: push ebp */
   1846     PUSH32(esp, 0x47109714u); /* 0x47065278: push 0x47109714 */
   1847     PUSH32(esp, 0x47104AA4u); /* 0x4706527D: push 0x47104aa4 */
   1848     PUSH32(esp, 0x80u); /* 0x47065282: push 0x80 */
   1849     PUSH32(esp, esi); /* 0x47065287: push esi */
   1850     RECOMP_ICALL(0x47039830u); /* 0x47065288: call 0x47039830 */ /* not lifted */
   1851     RECOMP_FLAGS_IN();
   1852     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1853     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1854     esp = esp + 0x14u; /* 0x4706528D: add esp, 0x14 */
   1855     _flag_k = FK_ADD;
   1856 L_47065290:
   1857     ecx = edi; /* 0x47065290: mov ecx, edi */
   1858     MEM32(esp + 0x20) = ebp; /* 0x47065292: mov dword ptr [esp + 0x20], ebp */
   1859     RECOMP_ICALL(0x470870E0u); /* 0x47065296: call 0x470870e0 */ /* not lifted */
   1860     RECOMP_FLAGS_IN();
   1861 L_4706529B:
   1862     eax = ebp; /* 0x4706529B: mov eax, ebp */
   1863 L_4706529D:
   1864     ecx = MEM32(esp + 0x18); /* 0x4706529D: mov ecx, dword ptr [esp + 0x18] */
   1865     edi = POP32_VAL(esp); /* 0x470652A1: pop edi */
   1866     esi = POP32_VAL(esp); /* 0x470652A2: pop esi */
   1867     ebp = POP32_VAL(esp); /* 0x470652A3: pop ebp */
   1868     MEM32(FS_BASE + (0)) = ecx; /* 0x470652A4: mov dword ptr fs:[0], ecx */
   1869     ebx = POP32_VAL(esp); /* 0x470652AB: pop ebx */
   1870     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   1871     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1872     esp = esp + 0x14u; /* 0x470652AC: add esp, 0x14 */
   1873     _flag_k = FK_ADD;
   1874     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470652AF: ret 8 */
   1875 L_470652B2:
   1876     edx = MEM32(esp + 0x2C); /* 0x470652B2: mov edx, dword ptr [esp + 0x2c] */
   1877     ebx = MEM32(edx); /* 0x470652B6: mov ebx, dword ptr [edx] */
   1878     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1879     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1880     esp = esp - 8; /* 0x470652B8: sub esp, 8 */
   1881     _flag_k = FK_CMP;
   1882     eax = esp; /* 0x470652BB: mov eax, esp */
   1883     MEM32(eax) = ebx; /* 0x470652BD: mov dword ptr [eax], ebx */
   1884     edx = MEM32(edx + 0x4); /* 0x470652BF: mov edx, dword ptr [edx + 4] */
   1885     MEM32(eax + 0x4) = edx; /* 0x470652C2: mov dword ptr [eax + 4], edx */
   1886     eax = MEM32(esi + 0x50); /* 0x470652C5: mov eax, dword ptr [esi + 0x50] */
   1887     ecx = MEM32(eax + ecx * 4); /* 0x470652C8: mov ecx, dword ptr [eax + ecx*4] */
   1888     MEM32(esp + 0x30) = esp; /* 0x470652CB: mov dword ptr [esp + 0x30], esp */
   1889     RECOMP_ICALL(0x47061850u); /* 0x470652CF: call 0x47061850 */ /* not lifted */
   1890     RECOMP_FLAGS_IN();
   1891     ecx = edi; /* 0x470652D4: mov ecx, edi */
   1892     MEM32(esp + 0x20) = ebp; /* 0x470652D6: mov dword ptr [esp + 0x20], ebp */
   1893     RECOMP_ICALL(0x470870E0u); /* 0x470652DA: call 0x470870e0 */ /* not lifted */
   1894     RECOMP_FLAGS_IN();
   1895     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1896     eax = 0; /* 0x470652DF: xor eax, eax */
   1897     _cf = 0;
   1898     _flag_k = FK_TEST;
   1899     RECOMP_BACKEDGE();
   1900     goto L_4706529D; /* 0x470652E1: jmp 0x4706529d */
   1901     { RECOMP_REGS_OUT(); return; } /* end of function */
   1902     RECOMP_REGS_OUT();
   1903 }
   1904 
   1905 void sub_470652F0(void) {
   1906     int _fpu_cmp = 0;
   1907     uint32_t _cf = 0;
   1908     int _df = 1;
   1909     uint32_t _flag_k = FK_NONE;
   1910     uint32_t _flag_a = 0, _flag_b = 0;
   1911     uint32_t _itail_tgt = 0;
   1912     RECOMP_REGS_LOCALS
   1913     RECOMP_ENTER(0x470652F0u);
   1914 
   1915 L_470652F0:
   1916     PUSH32(esp, 0xFFFFFFFFu); /* 0x470652F0: push -1 */
   1917     PUSH32(esp, 0x470A8418u); /* 0x470652F2: push 0x470a8418 */
   1918     eax = MEM32(FS_BASE + (0)); /* 0x470652F7: mov eax, dword ptr fs:[0] */
   1919     PUSH32(esp, eax); /* 0x470652FD: push eax */
   1920     MEM32(FS_BASE + (0)) = esp; /* 0x470652FE: mov dword ptr fs:[0], esp */
   1921     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1922     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1923     esp = esp - 8; /* 0x47065305: sub esp, 8 */
   1924     _flag_k = FK_CMP;
   1925     PUSH32(esp, ebx); /* 0x47065308: push ebx */
   1926     PUSH32(esp, ebp); /* 0x47065309: push ebp */
   1927     PUSH32(esp, esi); /* 0x4706530A: push esi */
   1928     esi = ecx; /* 0x4706530B: mov esi, ecx */
   1929     ebp = esi + 0x4; /* 0x4706530D: lea ebp, [esi + 4] */
   1930     PUSH32(esp, edi); /* 0x47065310: push edi */
   1931     ecx = ebp; /* 0x47065311: mov ecx, ebp */
   1932     MEM32(esp + 0x10) = ebp; /* 0x47065313: mov dword ptr [esp + 0x10], ebp */
   1933     RECOMP_ICALL(0x470870D0u); /* 0x47065317: call 0x470870d0 */ /* not lifted */
   1934     RECOMP_FLAGS_IN();
   1935     MEM32(esp + 0x14) = eax; /* 0x4706531C: mov dword ptr [esp + 0x14], eax */
   1936     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   1937     ecx = ecx | 0xFFFFFFFFu; /* 0x47065320: or ecx, 0xffffffff */
   1938     _cf = 0;
   1939     _flag_k = FK_TEST;
   1940     /* cmp eax, ecx */ /* 0x47065323: cmp eax, ecx */
   1941     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1942     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1943     _flag_k = FK_CMP;
   1944     MEM32(esp + 0x20) = 0; /* 0x47065325: mov dword ptr [esp + 0x20], 0 */
   1945     if (CMP_NE(_flag_a, _flag_b)) goto L_47065336; /* 0x4706532D: jne 0x47065336 */
   1946 L_4706532F:
   1947     eax = ecx; /* 0x4706532F: mov eax, ecx */
   1948     goto L_47065485; /* 0x47065331: jmp 0x47065485 */
   1949 L_47065336:
   1950     eax = MEM32(esp + 0x28); /* 0x47065336: mov eax, dword ptr [esp + 0x28] */
   1951     /* test eax, eax */ /* 0x4706533A: test eax, eax */
   1952     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1953     _cf = 0;
   1954     _flag_k = FK_TEST;
   1955     if (TEST_S(_flag_a, _flag_b)) goto L_47065478; /* 0x4706533C: jl 0x47065478 */
   1956 L_47065342:
   1957     /* cmp eax, MEM32(esi + 0x44) */ /* 0x47065342: cmp eax, dword ptr [esi + 0x44] */
   1958     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0x44));
   1959     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1960     _flag_k = FK_CMP;
   1961     if (CMP_A(_flag_a, _flag_b)) goto L_47065478; /* 0x47065345: ja 0x47065478 */
   1962 L_4706534B:
   1963     edx = MEM32(esi + 0x54); /* 0x4706534B: mov edx, dword ptr [esi + 0x54] */
   1964     edi = MEM32(edx + eax * 4); /* 0x4706534E: mov edi, dword ptr [edx + eax*4] */
   1965     /* test edi, edi */ /* 0x47065351: test edi, edi */
   1966     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1967     _cf = 0;
   1968     _flag_k = FK_TEST;
   1969     if (TEST_S(_flag_a, _flag_b)) goto L_47065478; /* 0x47065353: jl 0x47065478 */
   1970 L_47065359:
   1971     ecx = MEM32(esi + 0x50); /* 0x47065359: mov ecx, dword ptr [esi + 0x50] */
   1972     ecx = MEM32(ecx + edi * 4); /* 0x4706535C: mov ecx, dword ptr [ecx + edi*4] */
   1973     ebx = MEM32(ecx + 0x20); /* 0x4706535F: mov ebx, dword ptr [ecx + 0x20] */
   1974     /* cmp eax, ebx */ /* 0x47065362: cmp eax, ebx */
   1975     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   1976     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1977     _flag_k = FK_CMP;
   1978     MEM32(esp + 0x28) = ecx; /* 0x47065364: mov dword ptr [esp + 0x28], ecx */
   1979     if (CMP_EQ(_flag_a, _flag_b)) goto L_470653DA; /* 0x47065368: je 0x470653da */
   1980 L_4706536A:
   1981     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4706536A: call dword ptr [0x470ac150] */
   1982     RECOMP_FLAGS_IN();
   1983     edi = eax; /* 0x47065370: mov edi, eax */
   1984     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47065372: call dword ptr [0x470ac3c8] */
   1985     RECOMP_FLAGS_IN();
   1986     eax = MEM32(eax); /* 0x47065378: mov eax, dword ptr [eax] */
   1987     /* test eax, eax */ /* 0x4706537A: test eax, eax */
   1988     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1989     _cf = 0;
   1990     _flag_k = FK_TEST;
   1991     if (TEST_Z(_flag_a, _flag_b)) goto L_47065380; /* 0x4706537C: je 0x47065380 */
   1992 L_4706537E:
   1993     edi = eax; /* 0x4706537E: mov edi, eax */
   1994 L_47065380:
   1995     RECOMP_ICALL(0x47039020u); /* 0x47065380: call 0x47039020 */ /* not lifted */
   1996     RECOMP_FLAGS_IN();
   1997     esi = eax; /* 0x47065385: mov esi, eax */
   1998     ecx = esi; /* 0x47065387: mov ecx, esi */
   1999     RECOMP_ICALL(0x4703B210u); /* 0x47065389: call 0x4703b210 */ /* not lifted */
   2000     RECOMP_FLAGS_IN();
   2001     PUSH32(esp, eax); /* 0x4706538E: push eax */
   2002     ecx = esi; /* 0x4706538F: mov ecx, esi */
   2003     RECOMP_ICALL(0x4703B240u); /* 0x47065391: call 0x4703b240 */ /* not lifted */
   2004     RECOMP_FLAGS_IN();
   2005     PUSH32(esp, eax); /* 0x47065396: push eax */
   2006     ecx = esi; /* 0x47065397: mov ecx, esi */
   2007     RECOMP_ICALL(0x4703B080u); /* 0x47065399: call 0x4703b080 */ /* not lifted */
   2008     RECOMP_FLAGS_IN();
   2009     PUSH32(esp, eax); /* 0x4706539E: push eax */
   2010     PUSH32(esp, edi); /* 0x4706539F: push edi */
   2011     PUSH32(esp, 0xFFFFFFFFu); /* 0x470653A0: push -1 */
   2012     PUSH32(esp, 0x270u); /* 0x470653A2: push 0x270 */
   2013     PUSH32(esp, 0x47109750u); /* 0x470653A7: push 0x47109750 */
   2014     ecx = esi; /* 0x470653AC: mov ecx, esi */
   2015     RECOMP_ICALL(0x4703A340u); /* 0x470653AE: call 0x4703a340 */ /* not lifted */
   2016     RECOMP_FLAGS_IN();
   2017     PUSH32(esp, 0xFFFFFFFFu); /* 0x470653B3: push -1 */
   2018     PUSH32(esp, 0x47109714u); /* 0x470653B5: push 0x47109714 */
   2019     PUSH32(esp, 0x47104AA4u); /* 0x470653BA: push 0x47104aa4 */
   2020     PUSH32(esp, 0x80u); /* 0x470653BF: push 0x80 */
   2021     PUSH32(esp, esi); /* 0x470653C4: push esi */
   2022     RECOMP_ICALL(0x47039830u); /* 0x470653C5: call 0x47039830 */ /* not lifted */
   2023     RECOMP_FLAGS_IN();
   2024     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2025     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2026     esp = esp + 0x14u; /* 0x470653CA: add esp, 0x14 */
   2027     _flag_k = FK_ADD;
   2028     MEM32(esp + 0x20) = 0xFFFFFFFFu; /* 0x470653CD: mov dword ptr [esp + 0x20], 0xffffffff */
   2029     goto L_4706547C; /* 0x470653D5: jmp 0x4706547c */
   2030 L_470653DA:
   2031     ebx = MEM32(esi + 0x58); /* 0x470653DA: mov ebx, dword ptr [esi + 0x58] */
   2032     eax = MEM32(ecx + 0x20); /* 0x470653DD: mov eax, dword ptr [ecx + 0x20] */
   2033     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(ebx);
   2034     _cf = (ebx) != 0;
   2035     ebx = (uint32_t)(-(int32_t)ebx); /* 0x470653E0: neg ebx */
   2036     _flag_k = FK_CMP;
   2037     MEM32(edx + eax * 4) = ebx; /* 0x470653E2: mov dword ptr [edx + eax*4], ebx */
   2038     ebx = MEM32(esi + 0x48); /* 0x470653E5: mov ebx, dword ptr [esi + 0x48] */
   2039     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   2040     ebx = ebx - 1; /* 0x470653E8: dec ebx */
   2041     _flag_k = FK_DEC;
   2042     MEM32(esi + 0x58) = eax; /* 0x470653E9: mov dword ptr [esi + 0x58], eax */
   2043     eax = ebx; /* 0x470653EC: mov eax, ebx */
   2044     /* cmp edi, eax */ /* 0x470653EE: cmp edi, eax */
   2045     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2046     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2047     _flag_k = FK_CMP;
   2048     MEM32(esi + 0x48) = ebx; /* 0x470653F0: mov dword ptr [esi + 0x48], ebx */
   2049     if (CMP_AE(_flag_a, _flag_b)) goto L_4706544D; /* 0x470653F3: jae 0x4706544d */
   2050 L_470653F5:
   2051     edx = MEM32(esi + 0x50); /* 0x470653F5: mov edx, dword ptr [esi + 0x50] */
   2052     ebx = MEM32(edx + eax * 4); /* 0x470653F8: mov ebx, dword ptr [edx + eax*4] */
   2053     PUSH32(esp, ebx); /* 0x470653FB: push ebx */
   2054     PUSH32(esp, edi); /* 0x470653FC: push edi */
   2055     ecx = esi; /* 0x470653FD: mov ecx, esi */
   2056     RECOMP_ICALL(0x47061E60u); /* 0x470653FF: call 0x47061e60 */ /* not lifted */
   2057     RECOMP_FLAGS_IN();
   2058     /* test edi, edi */ /* 0x47065404: test edi, edi */
   2059     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2060     _cf = 0;
   2061     _flag_k = FK_TEST;
   2062     if (TEST_NZ(_flag_a, _flag_b)) goto L_4706540C; /* 0x47065406: jne 0x4706540c */
   2063 L_47065408:
   2064     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2065     ebp = 0; /* 0x47065408: xor ebp, ebp */
   2066     _cf = 0;
   2067     _flag_k = FK_TEST;
   2068     goto L_47065411; /* 0x4706540A: jmp 0x47065411 */
   2069 L_4706540C:
   2070     ebp = edi + (-0x1); /* 0x4706540C: lea ebp, [edi - 1] */
   2071     if (1u) _cf = (((ebp) >> 0) & 1u); /* 0x4706540F: shr ebp, 1 */
   2072     if (1u) { _flag_a = recomp_flags_pack((ebp >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2073     ebp = ebp >> 1u; /* 0x4706540F: shr ebp, 1 */
   2074 L_47065411:
   2075     eax = MEM32(esi + 0x50); /* 0x47065411: mov eax, dword ptr [esi + 0x50] */
   2076     ecx = MEM32(eax + ebp * 4); /* 0x47065414: mov ecx, dword ptr [eax + ebp*4] */
   2077     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
   2078     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2079     ecx = ecx + 8; /* 0x47065417: add ecx, 8 */
   2080     _flag_k = FK_ADD;
   2081     PUSH32(esp, ecx); /* 0x4706541A: push ecx */
   2082     edx = ebx + 0x8; /* 0x4706541B: lea edx, [ebx + 8] */
   2083     PUSH32(esp, edx); /* 0x4706541E: push edx */
   2084     RECOMP_ICALL(0x47001400u); /* 0x4706541F: call 0x47001400 */ /* not lifted */
   2085     RECOMP_FLAGS_IN();
   2086     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2087     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2088     esp = esp + 8; /* 0x47065424: add esp, 8 */
   2089     _flag_k = FK_ADD;
   2090     /* test eax, eax */ /* 0x47065427: test eax, eax */
   2091     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2092     _cf = 0;
   2093     _flag_k = FK_TEST;
   2094     if (TEST_Z(_flag_a, _flag_b)) goto L_4706543B; /* 0x47065429: je 0x4706543b */
   2095 L_4706542B:
   2096     eax = edi + edi + 0x1; /* 0x4706542B: lea eax, [edi + edi + 1] */
   2097     PUSH32(esp, eax); /* 0x4706542F: push eax */
   2098     PUSH32(esp, edi); /* 0x47065430: push edi */
   2099     PUSH32(esp, ebx); /* 0x47065431: push ebx */
   2100     ecx = esi; /* 0x47065432: mov ecx, esi */
   2101     RECOMP_ICALL(0x47061CC0u); /* 0x47065434: call 0x47061cc0 */ /* not lifted */
   2102     RECOMP_FLAGS_IN();
   2103     goto L_47065445; /* 0x47065439: jmp 0x47065445 */
   2104 L_4706543B:
   2105     PUSH32(esp, ebp); /* 0x4706543B: push ebp */
   2106     PUSH32(esp, edi); /* 0x4706543C: push edi */
   2107     PUSH32(esp, ebx); /* 0x4706543D: push ebx */
   2108     ecx = esi; /* 0x4706543E: mov ecx, esi */
   2109     RECOMP_ICALL(0x47067050u); /* 0x47065440: call 0x47067050 */ /* not lifted */
   2110     RECOMP_FLAGS_IN();
   2111 L_47065445:
   2112     ecx = MEM32(esp + 0x28); /* 0x47065445: mov ecx, dword ptr [esp + 0x28] */
   2113     ebp = MEM32(esp + 0x10); /* 0x47065449: mov ebp, dword ptr [esp + 0x10] */
   2114 L_4706544D:
   2115     edx = MEM32(esp + 0x2C); /* 0x4706544D: mov edx, dword ptr [esp + 0x2c] */
   2116     /* test edx, edx */ /* 0x47065451: test edx, edx */
   2117     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   2118     _cf = 0;
   2119     _flag_k = FK_TEST;
   2120     if (TEST_Z(_flag_a, _flag_b)) goto L_4706545A; /* 0x47065453: je 0x4706545a */
   2121 L_47065455:
   2122     eax = MEM32(ecx + 0x4); /* 0x47065455: mov eax, dword ptr [ecx + 4] */
   2123     MEM32(edx) = eax; /* 0x47065458: mov dword ptr [edx], eax */
   2124 L_4706545A:
   2125     edx = MEM32(esi); /* 0x4706545A: mov edx, dword ptr [esi] */
   2126     PUSH32(esp, ecx); /* 0x4706545C: push ecx */
   2127     ecx = esi; /* 0x4706545D: mov ecx, esi */
   2128     RECOMP_ICALL(MEM32(edx + 0x44)); /* 0x4706545F: call dword ptr [edx + 0x44] */
   2129     RECOMP_FLAGS_IN();
   2130     ecx = ebp; /* 0x47065462: mov ecx, ebp */
   2131     MEM32(esp + 0x20) = 0xFFFFFFFFu; /* 0x47065464: mov dword ptr [esp + 0x20], 0xffffffff */
   2132     RECOMP_ICALL(0x470870E0u); /* 0x4706546C: call 0x470870e0 */ /* not lifted */
   2133     RECOMP_FLAGS_IN();
   2134     eax = 1; /* 0x47065471: mov eax, 1 */
   2135     goto L_47065485; /* 0x47065476: jmp 0x47065485 */
   2136 L_47065478:
   2137     MEM32(esp + 0x20) = ecx; /* 0x47065478: mov dword ptr [esp + 0x20], ecx */
   2138 L_4706547C:
   2139     ecx = ebp; /* 0x4706547C: mov ecx, ebp */
   2140     RECOMP_ICALL(0x470870E0u); /* 0x4706547E: call 0x470870e0 */ /* not lifted */
   2141     RECOMP_FLAGS_IN();
   2142     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2143     eax = 0; /* 0x47065483: xor eax, eax */
   2144     _cf = 0;
   2145     _flag_k = FK_TEST;
   2146 L_47065485:
   2147     ecx = MEM32(esp + 0x18); /* 0x47065485: mov ecx, dword ptr [esp + 0x18] */
   2148     edi = POP32_VAL(esp); /* 0x47065489: pop edi */
   2149     esi = POP32_VAL(esp); /* 0x4706548A: pop esi */
   2150     ebp = POP32_VAL(esp); /* 0x4706548B: pop ebp */
   2151     ebx = POP32_VAL(esp); /* 0x4706548C: pop ebx */
   2152     MEM32(FS_BASE + (0)) = ecx; /* 0x4706548D: mov dword ptr fs:[0], ecx */
   2153     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2154     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2155     esp = esp + 0x14u; /* 0x47065494: add esp, 0x14 */
   2156     _flag_k = FK_ADD;
   2157     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47065497: ret 0xc */
   2158     RECOMP_REGS_OUT();
   2159 }
   2160 
   2161 void sub_4706547C(void) {
   2162     int _fpu_cmp = 0;
   2163     uint32_t _cf = 0;
   2164     int _df = 1;
   2165     uint32_t _flag_k = FK_NONE;
   2166     uint32_t _flag_a = 0, _flag_b = 0;
   2167     uint32_t _itail_tgt = 0;
   2168     RECOMP_REGS_LOCALS
   2169     RECOMP_ENTER(0x4706547Cu);
   2170 
   2171 L_4706547C:
   2172     ecx = ebp; /* 0x4706547C: mov ecx, ebp */
   2173     RECOMP_ICALL(0x470870E0u); /* 0x4706547E: call 0x470870e0 */ /* not lifted */
   2174     RECOMP_FLAGS_IN();
   2175     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2176     eax = 0; /* 0x47065483: xor eax, eax */
   2177     _cf = 0;
   2178     _flag_k = FK_TEST;
   2179     ecx = MEM32(esp + 0x18); /* 0x47065485: mov ecx, dword ptr [esp + 0x18] */
   2180     edi = POP32_VAL(esp); /* 0x47065489: pop edi */
   2181     esi = POP32_VAL(esp); /* 0x4706548A: pop esi */
   2182     ebp = POP32_VAL(esp); /* 0x4706548B: pop ebp */
   2183     ebx = POP32_VAL(esp); /* 0x4706548C: pop ebx */
   2184     MEM32(FS_BASE + (0)) = ecx; /* 0x4706548D: mov dword ptr fs:[0], ecx */
   2185     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2186     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2187     esp = esp + 0x14u; /* 0x47065494: add esp, 0x14 */
   2188     _flag_k = FK_ADD;
   2189     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47065497: ret 0xc */
   2190     RECOMP_REGS_OUT();
   2191 }
   2192 
   2193 void sub_47065485(void) {
   2194     int _fpu_cmp = 0;
   2195     uint32_t _cf = 0;
   2196     int _df = 1;
   2197     uint32_t _flag_k = FK_NONE;
   2198     uint32_t _flag_a = 0, _flag_b = 0;
   2199     uint32_t _itail_tgt = 0;
   2200     RECOMP_REGS_LOCALS
   2201     RECOMP_ENTER(0x47065485u);
   2202 
   2203 L_47065485:
   2204     ecx = MEM32(esp + 0x18); /* 0x47065485: mov ecx, dword ptr [esp + 0x18] */
   2205     edi = POP32_VAL(esp); /* 0x47065489: pop edi */
   2206     esi = POP32_VAL(esp); /* 0x4706548A: pop esi */
   2207     ebp = POP32_VAL(esp); /* 0x4706548B: pop ebp */
   2208     ebx = POP32_VAL(esp); /* 0x4706548C: pop ebx */
   2209     MEM32(FS_BASE + (0)) = ecx; /* 0x4706548D: mov dword ptr fs:[0], ecx */
   2210     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   2211     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2212     esp = esp + 0x14u; /* 0x47065494: add esp, 0x14 */
   2213     _flag_k = FK_ADD;
   2214     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x47065497: ret 0xc */
   2215     RECOMP_REGS_OUT();
   2216 }
   2217 
   2218 void sub_470654A0(void) {
   2219     int _fpu_cmp = 0;
   2220     uint32_t _cf = 0;
   2221     int _df = 1;
   2222     uint32_t _flag_k = FK_NONE;
   2223     uint32_t _flag_a = 0, _flag_b = 0;
   2224     uint32_t _itail_tgt = 0;
   2225     RECOMP_REGS_LOCALS
   2226     RECOMP_ENTER(0x470654A0u);
   2227 
   2228 L_470654A0:
   2229     PUSH32(esp, 0xFFFFFFFFu); /* 0x470654A0: push -1 */
   2230     PUSH32(esp, 0x470A8438u); /* 0x470654A2: push 0x470a8438 */
   2231     eax = MEM32(FS_BASE + (0)); /* 0x470654A7: mov eax, dword ptr fs:[0] */
   2232     PUSH32(esp, eax); /* 0x470654AD: push eax */
   2233     MEM32(FS_BASE + (0)) = esp; /* 0x470654AE: mov dword ptr fs:[0], esp */
   2234     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2235     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2236     esp = esp - 0x10u; /* 0x470654B5: sub esp, 0x10 */
   2237     _flag_k = FK_CMP;
   2238     PUSH32(esp, ebx); /* 0x470654B8: push ebx */
   2239     PUSH32(esp, esi); /* 0x470654B9: push esi */
   2240     esi = ecx; /* 0x470654BA: mov esi, ecx */
   2241     ebx = esi + 0x4; /* 0x470654BC: lea ebx, [esi + 4] */
   2242     PUSH32(esp, edi); /* 0x470654BF: push edi */
   2243     ecx = ebx; /* 0x470654C0: mov ecx, ebx */
   2244     MEM32(esp + 0x14) = ebx; /* 0x470654C2: mov dword ptr [esp + 0x14], ebx */
   2245     RECOMP_ICALL(0x470870D0u); /* 0x470654C6: call 0x470870d0 */ /* not lifted */
   2246     RECOMP_FLAGS_IN();
   2247     MEM32(esp + 0x18) = eax; /* 0x470654CB: mov dword ptr [esp + 0x18], eax */
   2248     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2249     edi = 0; /* 0x470654CF: xor edi, edi */
   2250     _cf = 0;
   2251     _flag_k = FK_TEST;
   2252     /* cmp eax, 0xFFFFFFFFu */ /* 0x470654D1: cmp eax, -1 */
   2253     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   2254     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2255     _flag_k = FK_CMP;
   2256     MEM32(esp + 0x24) = edi; /* 0x470654D4: mov dword ptr [esp + 0x24], edi */
   2257     if (CMP_NE(_flag_a, _flag_b)) goto L_470654F0; /* 0x470654D8: jne 0x470654f0 */
   2258 L_470654DA:
   2259     edi = POP32_VAL(esp); /* 0x470654DA: pop edi */
   2260     esi = POP32_VAL(esp); /* 0x470654DB: pop esi */
   2261     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   2262     eax = eax | eax; /* 0x470654DC: or eax, eax */
   2263     _cf = 0;
   2264     _flag_k = FK_TEST;
   2265     ebx = POP32_VAL(esp); /* 0x470654DE: pop ebx */
   2266     ecx = MEM32(esp + 0x10); /* 0x470654DF: mov ecx, dword ptr [esp + 0x10] */
   2267     MEM32(FS_BASE + (0)) = ecx; /* 0x470654E3: mov dword ptr fs:[0], ecx */
   2268     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   2269     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2270     esp = esp + 0x1Cu; /* 0x470654EA: add esp, 0x1c */
   2271     _flag_k = FK_ADD;
   2272     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470654ED: ret 8 */
   2273 L_470654F0:
   2274     /* cmp MEM32(esi + 0x48), edi */ /* 0x470654F0: cmp dword ptr [esi + 0x48], edi */
   2275     _flag_a = (uint32_t)(MEM32(esi + 0x48)); _flag_b = (uint32_t)(edi);
   2276     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2277     _flag_k = FK_CMP;
   2278     MEM32(esp + 0xC) = edi; /* 0x470654F3: mov dword ptr [esp + 0xc], edi */
   2279     if (CMP_BE(_flag_a, _flag_b)) goto L_470655A8; /* 0x470654F7: jbe 0x470655a8 */
   2280 L_470654FD:
   2281     PUSH32(esp, ebp); /* 0x470654FD: push ebp */
   2282 L_470654FE:
   2283     eax = MEM32(esi + 0x50); /* 0x470654FE: mov eax, dword ptr [esi + 0x50] */
   2284     ecx = MEM32(eax + edi * 4); /* 0x47065501: mov ecx, dword ptr [eax + edi*4] */
   2285     eax = MEM32(esp + 0x30); /* 0x47065504: mov eax, dword ptr [esp + 0x30] */
   2286     edx = MEM32(ecx); /* 0x47065508: mov edx, dword ptr [ecx] */
   2287     /* cmp edx, MEM32(eax) */ /* 0x4706550A: cmp edx, dword ptr [eax] */
   2288     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(eax));
   2289     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2290     _flag_k = FK_CMP;
   2291     MEM32(esp + 0x14) = ecx; /* 0x4706550C: mov dword ptr [esp + 0x14], ecx */
   2292     if (CMP_NE(_flag_a, _flag_b)) goto L_47065599; /* 0x47065510: jne 0x47065599 */
   2293 L_47065516:
   2294     edx = MEM32(esi + 0x58); /* 0x47065516: mov edx, dword ptr [esi + 0x58] */
   2295     eax = MEM32(ecx + 0x20); /* 0x47065519: mov eax, dword ptr [ecx + 0x20] */
   2296     ebx = MEM32(esi + 0x54); /* 0x4706551C: mov ebx, dword ptr [esi + 0x54] */
   2297     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(edx);
   2298     _cf = (edx) != 0;
   2299     edx = (uint32_t)(-(int32_t)edx); /* 0x4706551F: neg edx */
   2300     _flag_k = FK_CMP;
   2301     MEM32(ebx + eax * 4) = edx; /* 0x47065521: mov dword ptr [ebx + eax*4], edx */
   2302     ebx = MEM32(esi + 0x48); /* 0x47065524: mov ebx, dword ptr [esi + 0x48] */
   2303     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(1);
   2304     ebx = ebx - 1; /* 0x47065527: dec ebx */
   2305     _flag_k = FK_DEC;
   2306     MEM32(esi + 0x58) = eax; /* 0x47065528: mov dword ptr [esi + 0x58], eax */
   2307     eax = ebx; /* 0x4706552B: mov eax, ebx */
   2308     /* cmp edi, eax */ /* 0x4706552D: cmp edi, eax */
   2309     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2310     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2311     _flag_k = FK_CMP;
   2312     MEM32(esi + 0x48) = ebx; /* 0x4706552F: mov dword ptr [esi + 0x48], ebx */
   2313     if (CMP_AE(_flag_a, _flag_b)) goto L_4706558B; /* 0x47065532: jae 0x4706558b */
   2314 L_47065534:
   2315     ecx = MEM32(esi + 0x50); /* 0x47065534: mov ecx, dword ptr [esi + 0x50] */
   2316     ebx = MEM32(ecx + eax * 4); /* 0x47065537: mov ebx, dword ptr [ecx + eax*4] */
   2317     PUSH32(esp, ebx); /* 0x4706553A: push ebx */
   2318     PUSH32(esp, edi); /* 0x4706553B: push edi */
   2319     ecx = esi; /* 0x4706553C: mov ecx, esi */
   2320     RECOMP_ICALL(0x47061E60u); /* 0x4706553E: call 0x47061e60 */ /* not lifted */
   2321     RECOMP_FLAGS_IN();
   2322     /* test edi, edi */ /* 0x47065543: test edi, edi */
   2323     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2324     _cf = 0;
   2325     _flag_k = FK_TEST;
   2326     if (TEST_NZ(_flag_a, _flag_b)) goto L_4706554B; /* 0x47065545: jne 0x4706554b */
   2327 L_47065547:
   2328     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2329     ebp = 0; /* 0x47065547: xor ebp, ebp */
   2330     _cf = 0;
   2331     _flag_k = FK_TEST;
   2332     goto L_47065550; /* 0x47065549: jmp 0x47065550 */
   2333 L_4706554B:
   2334     ebp = edi + (-0x1); /* 0x4706554B: lea ebp, [edi - 1] */
   2335     if (1u) _cf = (((ebp) >> 0) & 1u); /* 0x4706554E: shr ebp, 1 */
   2336     if (1u) { _flag_a = recomp_flags_pack((ebp >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   2337     ebp = ebp >> 1u; /* 0x4706554E: shr ebp, 1 */
   2338 L_47065550:
   2339     edx = MEM32(esi + 0x50); /* 0x47065550: mov edx, dword ptr [esi + 0x50] */
   2340     eax = MEM32(edx + ebp * 4); /* 0x47065553: mov eax, dword ptr [edx + ebp*4] */
   2341     ecx = MEM32(ebx + 0x8); /* 0x47065556: mov ecx, dword ptr [ebx + 8] */
   2342     edx = MEM32(eax + 0x8); /* 0x47065559: mov edx, dword ptr [eax + 8] */
   2343     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(8);
   2344     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2345     eax = eax + 8; /* 0x4706555C: add eax, 8 */
   2346     _flag_k = FK_ADD;
   2347     /* cmp ecx, edx */ /* 0x4706555F: cmp ecx, edx */
   2348     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edx);
   2349     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2350     _flag_k = FK_CMP;
   2351     if (CMP_G(_flag_a, _flag_b)) goto L_4706556D; /* 0x47065561: jg 0x4706556d */
   2352 L_47065563:
   2353     if (CMP_NE(_flag_a, _flag_b)) goto L_4706557D; /* 0x47065563: jne 0x4706557d */
   2354 L_47065565:
   2355     ecx = MEM32(ebx + 0xC); /* 0x47065565: mov ecx, dword ptr [ebx + 0xc] */
   2356     /* cmp ecx, MEM32(eax + 0x4) */ /* 0x47065568: cmp ecx, dword ptr [eax + 4] */
   2357     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x4));
   2358     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2359     _flag_k = FK_CMP;
   2360     if (CMP_L(_flag_a, _flag_b)) goto L_4706557D; /* 0x4706556B: jl 0x4706557d */
   2361 L_4706556D:
   2362     eax = edi + edi + 0x1; /* 0x4706556D: lea eax, [edi + edi + 1] */
   2363     PUSH32(esp, eax); /* 0x47065571: push eax */
   2364     PUSH32(esp, edi); /* 0x47065572: push edi */
   2365     PUSH32(esp, ebx); /* 0x47065573: push ebx */
   2366     ecx = esi; /* 0x47065574: mov ecx, esi */
   2367     RECOMP_ICALL(0x47061CC0u); /* 0x47065576: call 0x47061cc0 */ /* not lifted */
   2368     RECOMP_FLAGS_IN();
   2369     goto L_47065587; /* 0x4706557B: jmp 0x47065587 */
   2370 L_4706557D:
   2371     PUSH32(esp, ebp); /* 0x4706557D: push ebp */
   2372     PUSH32(esp, edi); /* 0x4706557E: push edi */
   2373     PUSH32(esp, ebx); /* 0x4706557F: push ebx */
   2374     ecx = esi; /* 0x47065580: mov ecx, esi */
   2375     RECOMP_ICALL(0x47067050u); /* 0x47065582: call 0x47067050 */ /* not lifted */
   2376     RECOMP_FLAGS_IN();
   2377 L_47065587:
   2378     ecx = MEM32(esp + 0x14); /* 0x47065587: mov ecx, dword ptr [esp + 0x14] */
   2379 L_4706558B:
   2380     _flag_a = (uint32_t)(MEM32(esp + 0x10)); _flag_b = (uint32_t)(1);
   2381     MEM32(esp + 0x10) = MEM32(esp + 0x10) + 1; /* 0x4706558B: inc dword ptr [esp + 0x10] */
   2382     _flag_k = FK_INC;
   2383     edx = MEM32(esi); /* 0x4706558F: mov edx, dword ptr [esi] */
   2384     PUSH32(esp, ecx); /* 0x47065591: push ecx */
   2385     ecx = esi; /* 0x47065592: mov ecx, esi */
   2386     RECOMP_ICALL(MEM32(edx + 0x44)); /* 0x47065594: call dword ptr [edx + 0x44] */
   2387     RECOMP_FLAGS_IN();
   2388     goto L_4706559A; /* 0x47065597: jmp 0x4706559a */
   2389 L_47065599:
   2390     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   2391     edi = edi + 1; /* 0x47065599: inc edi */
   2392     _flag_k = FK_INC;
   2393 L_4706559A:
   2394     /* cmp edi, MEM32(esi + 0x48) */ /* 0x4706559A: cmp edi, dword ptr [esi + 0x48] */
   2395     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(MEM32(esi + 0x48));
   2396     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2397     _flag_k = FK_CMP;
   2398     RECOMP_BACKEDGE();
   2399     if (CMP_B(_flag_a, _flag_b)) goto L_470654FE; /* 0x4706559D: jb 0x470654fe */
   2400 L_470655A3:
   2401     ebx = MEM32(esp + 0x18); /* 0x470655A3: mov ebx, dword ptr [esp + 0x18] */
   2402     ebp = POP32_VAL(esp); /* 0x470655A7: pop ebp */
   2403 L_470655A8:
   2404     ecx = ebx; /* 0x470655A8: mov ecx, ebx */
   2405     MEM32(esp + 0x24) = 0xFFFFFFFFu; /* 0x470655AA: mov dword ptr [esp + 0x24], 0xffffffff */
   2406     RECOMP_ICALL(0x470870E0u); /* 0x470655B2: call 0x470870e0 */ /* not lifted */
   2407     RECOMP_FLAGS_IN();
   2408     ecx = MEM32(esp + 0x1C); /* 0x470655B7: mov ecx, dword ptr [esp + 0x1c] */
   2409     eax = MEM32(esp + 0xC); /* 0x470655BB: mov eax, dword ptr [esp + 0xc] */
   2410     edi = POP32_VAL(esp); /* 0x470655BF: pop edi */
   2411     esi = POP32_VAL(esp); /* 0x470655C0: pop esi */
   2412     ebx = POP32_VAL(esp); /* 0x470655C1: pop ebx */
   2413     MEM32(FS_BASE + (0)) = ecx; /* 0x470655C2: mov dword ptr fs:[0], ecx */
   2414     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x1Cu);
   2415     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2416     esp = esp + 0x1Cu; /* 0x470655C9: add esp, 0x1c */
   2417     _flag_k = FK_ADD;
   2418     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470655CC: ret 8 */
   2419     RECOMP_REGS_OUT();
   2420 }
   2421 
   2422 void sub_470655D0(void) {
   2423     int _fpu_cmp = 0;
   2424     uint32_t _cf = 0;
   2425     int _df = 1;
   2426     uint32_t _flag_k = FK_NONE;
   2427     uint32_t _flag_a = 0, _flag_b = 0;
   2428     uint32_t _itail_tgt = 0;
   2429     RECOMP_REGS_LOCALS
   2430     RECOMP_ENTER(0x470655D0u);
   2431 
   2432 L_470655D0:
   2433     PUSH32(esp, esi); /* 0x470655D0: push esi */
   2434     esi = ecx; /* 0x470655D1: mov esi, ecx */
   2435     ecx = MEM32(esi + 0x4C); /* 0x470655D3: mov ecx, dword ptr [esi + 0x4c] */
   2436     eax = MEM32(ecx); /* 0x470655D6: mov eax, dword ptr [ecx] */
   2437     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x470655D8: call dword ptr [eax + 4] */
   2438     RECOMP_FLAGS_IN();
   2439     eax = MEM32(esi + 0x4C); /* 0x470655DB: mov eax, dword ptr [esi + 0x4c] */
   2440     esi = POP32_VAL(esp); /* 0x470655DE: pop esi */
   2441     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470655DF: ret  */
   2442     RECOMP_REGS_OUT();
   2443 }
   2444 
   2445 void sub_470655E0(void) {
   2446     int _fpu_cmp = 0;
   2447     uint32_t _cf = 0;
   2448     int _df = 1;
   2449     uint32_t _flag_k = FK_NONE;
   2450     uint32_t _flag_a = 0, _flag_b = 0;
   2451     uint32_t _itail_tgt = 0;
   2452     RECOMP_REGS_LOCALS
   2453     RECOMP_ENTER(0x470655E0u);
   2454 
   2455 L_470655E0:
   2456     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2457     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2458     esp = esp - 0xCu; /* 0x470655E0: sub esp, 0xc */
   2459     _flag_k = FK_CMP;
   2460     PUSH32(esp, ebx); /* 0x470655E3: push ebx */
   2461     ebx = MEM32(0x470AC150); /* 0x470655E4: mov ebx, dword ptr [0x470ac150] */
   2462     PUSH32(esp, ebp); /* 0x470655EA: push ebp */
   2463     PUSH32(esp, esi); /* 0x470655EB: push esi */
   2464     PUSH32(esp, edi); /* 0x470655EC: push edi */
   2465     edi = ecx; /* 0x470655ED: mov edi, ecx */
   2466     MEM32(esp + 0x14) = edi; /* 0x470655EF: mov dword ptr [esp + 0x14], edi */
   2467     RECOMP_ICALL(ebx); /* 0x470655F3: call ebx */
   2468     RECOMP_FLAGS_IN();
   2469     ebp = MEM32(0x470AC3C8); /* 0x470655F5: mov ebp, dword ptr [0x470ac3c8] */
   2470     esi = eax; /* 0x470655FB: mov esi, eax */
   2471     RECOMP_ICALL(ebp); /* 0x470655FD: call ebp */
   2472     RECOMP_FLAGS_IN();
   2473     eax = MEM32(eax); /* 0x470655FF: mov eax, dword ptr [eax] */
   2474     /* test eax, eax */ /* 0x47065601: test eax, eax */
   2475     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2476     _cf = 0;
   2477     _flag_k = FK_TEST;
   2478     MEM32(esp + 0x10) = esi; /* 0x47065603: mov dword ptr [esp + 0x10], esi */
   2479     if (TEST_Z(_flag_a, _flag_b)) goto L_4706560D; /* 0x47065607: je 0x4706560d */
   2480 L_47065609:
   2481     MEM32(esp + 0x10) = eax; /* 0x47065609: mov dword ptr [esp + 0x10], eax */
   2482 L_4706560D:
   2483     RECOMP_ICALL(0x47039020u); /* 0x4706560D: call 0x47039020 */ /* not lifted */
   2484     RECOMP_FLAGS_IN();
   2485     esi = eax; /* 0x47065612: mov esi, eax */
   2486     ecx = esi; /* 0x47065614: mov ecx, esi */
   2487     RECOMP_ICALL(0x4703B210u); /* 0x47065616: call 0x4703b210 */ /* not lifted */
   2488     RECOMP_FLAGS_IN();
   2489     PUSH32(esp, eax); /* 0x4706561B: push eax */
   2490     ecx = esi; /* 0x4706561C: mov ecx, esi */
   2491     RECOMP_ICALL(0x4703B240u); /* 0x4706561E: call 0x4703b240 */ /* not lifted */
   2492     RECOMP_FLAGS_IN();
   2493     PUSH32(esp, eax); /* 0x47065623: push eax */
   2494     ecx = esi; /* 0x47065624: mov ecx, esi */
   2495     RECOMP_ICALL(0x4703B080u); /* 0x47065626: call 0x4703b080 */ /* not lifted */
   2496     RECOMP_FLAGS_IN();
   2497     PUSH32(esp, eax); /* 0x4706562B: push eax */
   2498     eax = MEM32(esp + 0x1C); /* 0x4706562C: mov eax, dword ptr [esp + 0x1c] */
   2499     PUSH32(esp, eax); /* 0x47065630: push eax */
   2500     PUSH32(esp, 0); /* 0x47065631: push 0 */
   2501     PUSH32(esp, 0x104u); /* 0x47065633: push 0x104 */
   2502     PUSH32(esp, 0x47109750u); /* 0x47065638: push 0x47109750 */
   2503     ecx = esi; /* 0x4706563D: mov ecx, esi */
   2504     RECOMP_ICALL(0x4703A340u); /* 0x4706563F: call 0x4703a340 */ /* not lifted */
   2505     RECOMP_FLAGS_IN();
   2506     PUSH32(esp, edi); /* 0x47065644: push edi */
   2507     PUSH32(esp, 0x471052CCu); /* 0x47065645: push 0x471052cc */
   2508     PUSH32(esp, 4); /* 0x4706564A: push 4 */
   2509     PUSH32(esp, esi); /* 0x4706564C: push esi */
   2510     RECOMP_ICALL(0x47039830u); /* 0x4706564D: call 0x47039830 */ /* not lifted */
   2511     RECOMP_FLAGS_IN();
   2512     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2513     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2514     esp = esp + 0x10u; /* 0x47065652: add esp, 0x10 */
   2515     _flag_k = FK_ADD;
   2516     RECOMP_ICALL(ebx); /* 0x47065655: call ebx */
   2517     RECOMP_FLAGS_IN();
   2518     esi = eax; /* 0x47065657: mov esi, eax */
   2519     RECOMP_ICALL(ebp); /* 0x47065659: call ebp */
   2520     RECOMP_FLAGS_IN();
   2521     eax = MEM32(eax); /* 0x4706565B: mov eax, dword ptr [eax] */
   2522     /* test eax, eax */ /* 0x4706565D: test eax, eax */
   2523     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2524     _cf = 0;
   2525     _flag_k = FK_TEST;
   2526     MEM32(esp + 0x10) = esi; /* 0x4706565F: mov dword ptr [esp + 0x10], esi */
   2527     if (TEST_Z(_flag_a, _flag_b)) goto L_47065669; /* 0x47065663: je 0x47065669 */
   2528 L_47065665:
   2529     MEM32(esp + 0x10) = eax; /* 0x47065665: mov dword ptr [esp + 0x10], eax */
   2530 L_47065669:
   2531     RECOMP_ICALL(0x47039020u); /* 0x47065669: call 0x47039020 */ /* not lifted */
   2532     RECOMP_FLAGS_IN();
   2533     esi = eax; /* 0x4706566E: mov esi, eax */
   2534     ecx = esi; /* 0x47065670: mov ecx, esi */
   2535     RECOMP_ICALL(0x4703B210u); /* 0x47065672: call 0x4703b210 */ /* not lifted */
   2536     RECOMP_FLAGS_IN();
   2537     PUSH32(esp, eax); /* 0x47065677: push eax */
   2538     ecx = esi; /* 0x47065678: mov ecx, esi */
   2539     RECOMP_ICALL(0x4703B240u); /* 0x4706567A: call 0x4703b240 */ /* not lifted */
   2540     RECOMP_FLAGS_IN();
   2541     PUSH32(esp, eax); /* 0x4706567F: push eax */
   2542     ecx = esi; /* 0x47065680: mov ecx, esi */
   2543     RECOMP_ICALL(0x4703B080u); /* 0x47065682: call 0x4703b080 */ /* not lifted */
   2544     RECOMP_FLAGS_IN();
   2545     ecx = MEM32(esp + 0x18); /* 0x47065687: mov ecx, dword ptr [esp + 0x18] */
   2546     PUSH32(esp, eax); /* 0x4706568B: push eax */
   2547     PUSH32(esp, ecx); /* 0x4706568C: push ecx */
   2548     PUSH32(esp, 0); /* 0x4706568D: push 0 */
   2549     PUSH32(esp, 0x106u); /* 0x4706568F: push 0x106 */
   2550     PUSH32(esp, 0x47109750u); /* 0x47065694: push 0x47109750 */
   2551     ecx = esi; /* 0x47065699: mov ecx, esi */
   2552     RECOMP_ICALL(0x4703A340u); /* 0x4706569B: call 0x4703a340 */ /* not lifted */
   2553     RECOMP_FLAGS_IN();
   2554     edx = MEM32(edi + 0x44); /* 0x470656A0: mov edx, dword ptr [edi + 0x44] */
   2555     PUSH32(esp, edx); /* 0x470656A3: push edx */
   2556     PUSH32(esp, 0x47109824u); /* 0x470656A4: push 0x47109824 */
   2557     PUSH32(esp, 4); /* 0x470656A9: push 4 */
   2558     PUSH32(esp, esi); /* 0x470656AB: push esi */
   2559     RECOMP_ICALL(0x47039830u); /* 0x470656AC: call 0x47039830 */ /* not lifted */
   2560     RECOMP_FLAGS_IN();
   2561     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2562     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2563     esp = esp + 0x10u; /* 0x470656B1: add esp, 0x10 */
   2564     _flag_k = FK_ADD;
   2565     RECOMP_ICALL(ebx); /* 0x470656B4: call ebx */
   2566     RECOMP_FLAGS_IN();
   2567     esi = eax; /* 0x470656B6: mov esi, eax */
   2568     RECOMP_ICALL(ebp); /* 0x470656B8: call ebp */
   2569     RECOMP_FLAGS_IN();
   2570     eax = MEM32(eax); /* 0x470656BA: mov eax, dword ptr [eax] */
   2571     /* test eax, eax */ /* 0x470656BC: test eax, eax */
   2572     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2573     _cf = 0;
   2574     _flag_k = FK_TEST;
   2575     MEM32(esp + 0x10) = esi; /* 0x470656BE: mov dword ptr [esp + 0x10], esi */
   2576     if (TEST_Z(_flag_a, _flag_b)) goto L_470656C8; /* 0x470656C2: je 0x470656c8 */
   2577 L_470656C4:
   2578     MEM32(esp + 0x10) = eax; /* 0x470656C4: mov dword ptr [esp + 0x10], eax */
   2579 L_470656C8:
   2580     RECOMP_ICALL(0x47039020u); /* 0x470656C8: call 0x47039020 */ /* not lifted */
   2581     RECOMP_FLAGS_IN();
   2582     esi = eax; /* 0x470656CD: mov esi, eax */
   2583     ecx = esi; /* 0x470656CF: mov ecx, esi */
   2584     RECOMP_ICALL(0x4703B210u); /* 0x470656D1: call 0x4703b210 */ /* not lifted */
   2585     RECOMP_FLAGS_IN();
   2586     PUSH32(esp, eax); /* 0x470656D6: push eax */
   2587     ecx = esi; /* 0x470656D7: mov ecx, esi */
   2588     RECOMP_ICALL(0x4703B240u); /* 0x470656D9: call 0x4703b240 */ /* not lifted */
   2589     RECOMP_FLAGS_IN();
   2590     PUSH32(esp, eax); /* 0x470656DE: push eax */
   2591     ecx = esi; /* 0x470656DF: mov ecx, esi */
   2592     RECOMP_ICALL(0x4703B080u); /* 0x470656E1: call 0x4703b080 */ /* not lifted */
   2593     RECOMP_FLAGS_IN();
   2594     PUSH32(esp, eax); /* 0x470656E6: push eax */
   2595     eax = MEM32(esp + 0x1C); /* 0x470656E7: mov eax, dword ptr [esp + 0x1c] */
   2596     PUSH32(esp, eax); /* 0x470656EB: push eax */
   2597     PUSH32(esp, 0); /* 0x470656EC: push 0 */
   2598     PUSH32(esp, 0x107u); /* 0x470656EE: push 0x107 */
   2599     PUSH32(esp, 0x47109750u); /* 0x470656F3: push 0x47109750 */
   2600     ecx = esi; /* 0x470656F8: mov ecx, esi */
   2601     RECOMP_ICALL(0x4703A340u); /* 0x470656FA: call 0x4703a340 */ /* not lifted */
   2602     RECOMP_FLAGS_IN();
   2603     ecx = MEM32(edi + 0x48); /* 0x470656FF: mov ecx, dword ptr [edi + 0x48] */
   2604     PUSH32(esp, ecx); /* 0x47065702: push ecx */
   2605     PUSH32(esp, 0x47109814u); /* 0x47065703: push 0x47109814 */
   2606     PUSH32(esp, 4); /* 0x47065708: push 4 */
   2607     PUSH32(esp, esi); /* 0x4706570A: push esi */
   2608     RECOMP_ICALL(0x47039830u); /* 0x4706570B: call 0x47039830 */ /* not lifted */
   2609     RECOMP_FLAGS_IN();
   2610     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2611     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2612     esp = esp + 0x10u; /* 0x47065710: add esp, 0x10 */
   2613     _flag_k = FK_ADD;
   2614     RECOMP_ICALL(ebx); /* 0x47065713: call ebx */
   2615     RECOMP_FLAGS_IN();
   2616     esi = eax; /* 0x47065715: mov esi, eax */
   2617     RECOMP_ICALL(ebp); /* 0x47065717: call ebp */
   2618     RECOMP_FLAGS_IN();
   2619     eax = MEM32(eax); /* 0x47065719: mov eax, dword ptr [eax] */
   2620     /* test eax, eax */ /* 0x4706571B: test eax, eax */
   2621     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2622     _cf = 0;
   2623     _flag_k = FK_TEST;
   2624     MEM32(esp + 0x10) = esi; /* 0x4706571D: mov dword ptr [esp + 0x10], esi */
   2625     if (TEST_Z(_flag_a, _flag_b)) goto L_47065727; /* 0x47065721: je 0x47065727 */
   2626 L_47065723:
   2627     MEM32(esp + 0x10) = eax; /* 0x47065723: mov dword ptr [esp + 0x10], eax */
   2628 L_47065727:
   2629     RECOMP_ICALL(0x47039020u); /* 0x47065727: call 0x47039020 */ /* not lifted */
   2630     RECOMP_FLAGS_IN();
   2631     esi = eax; /* 0x4706572C: mov esi, eax */
   2632     ecx = esi; /* 0x4706572E: mov ecx, esi */
   2633     RECOMP_ICALL(0x4703B210u); /* 0x47065730: call 0x4703b210 */ /* not lifted */
   2634     RECOMP_FLAGS_IN();
   2635     PUSH32(esp, eax); /* 0x47065735: push eax */
   2636     ecx = esi; /* 0x47065736: mov ecx, esi */
   2637     RECOMP_ICALL(0x4703B240u); /* 0x47065738: call 0x4703b240 */ /* not lifted */
   2638     RECOMP_FLAGS_IN();
   2639     PUSH32(esp, eax); /* 0x4706573D: push eax */
   2640     ecx = esi; /* 0x4706573E: mov ecx, esi */
   2641     RECOMP_ICALL(0x4703B080u); /* 0x47065740: call 0x4703b080 */ /* not lifted */
   2642     RECOMP_FLAGS_IN();
   2643     edx = MEM32(esp + 0x18); /* 0x47065745: mov edx, dword ptr [esp + 0x18] */
   2644     PUSH32(esp, eax); /* 0x47065749: push eax */
   2645     PUSH32(esp, edx); /* 0x4706574A: push edx */
   2646     PUSH32(esp, 0); /* 0x4706574B: push 0 */
   2647     PUSH32(esp, 0x108u); /* 0x4706574D: push 0x108 */
   2648     PUSH32(esp, 0x47109750u); /* 0x47065752: push 0x47109750 */
   2649     ecx = esi; /* 0x47065757: mov ecx, esi */
   2650     RECOMP_ICALL(0x4703A340u); /* 0x47065759: call 0x4703a340 */ /* not lifted */
   2651     RECOMP_FLAGS_IN();
   2652     PUSH32(esp, 0x47109808u); /* 0x4706575E: push 0x47109808 */
   2653     PUSH32(esp, 4); /* 0x47065763: push 4 */
   2654     PUSH32(esp, esi); /* 0x47065765: push esi */
   2655     RECOMP_ICALL(0x47039830u); /* 0x47065766: call 0x47039830 */ /* not lifted */
   2656     RECOMP_FLAGS_IN();
   2657     eax = MEM32(edi + 0x48); /* 0x4706576B: mov eax, dword ptr [edi + 0x48] */
   2658     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   2659     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2660     esp = esp + 0xCu; /* 0x4706576E: add esp, 0xc */
   2661     _flag_k = FK_ADD;
   2662     /* test eax, eax */ /* 0x47065771: test eax, eax */
   2663     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2664     _cf = 0;
   2665     _flag_k = FK_TEST;
   2666     MEM32(esp + 0x10) = 0; /* 0x47065773: mov dword ptr [esp + 0x10], 0 */
   2667     if (TEST_Z(_flag_a, _flag_b)) goto L_47065A2E; /* 0x4706577B: jbe 0x47065a2e */
   2668 L_47065781:
   2669     RECOMP_ICALL(ebx); /* 0x47065781: call ebx */
   2670     RECOMP_FLAGS_IN();
   2671     esi = eax; /* 0x47065783: mov esi, eax */
   2672     RECOMP_ICALL(ebp); /* 0x47065785: call ebp */
   2673     RECOMP_FLAGS_IN();
   2674     eax = MEM32(eax); /* 0x47065787: mov eax, dword ptr [eax] */
   2675     /* test eax, eax */ /* 0x47065789: test eax, eax */
   2676     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2677     _cf = 0;
   2678     _flag_k = FK_TEST;
   2679     MEM32(esp + 0x18) = esi; /* 0x4706578B: mov dword ptr [esp + 0x18], esi */
   2680     if (TEST_Z(_flag_a, _flag_b)) goto L_47065795; /* 0x4706578F: je 0x47065795 */
   2681 L_47065791:
   2682     MEM32(esp + 0x18) = eax; /* 0x47065791: mov dword ptr [esp + 0x18], eax */
   2683 L_47065795:
   2684     RECOMP_ICALL(0x47039020u); /* 0x47065795: call 0x47039020 */ /* not lifted */
   2685     RECOMP_FLAGS_IN();
   2686     esi = eax; /* 0x4706579A: mov esi, eax */
   2687     ecx = esi; /* 0x4706579C: mov ecx, esi */
   2688     RECOMP_ICALL(0x4703B210u); /* 0x4706579E: call 0x4703b210 */ /* not lifted */
   2689     RECOMP_FLAGS_IN();
   2690     PUSH32(esp, eax); /* 0x470657A3: push eax */
   2691     ecx = esi; /* 0x470657A4: mov ecx, esi */
   2692     RECOMP_ICALL(0x4703B240u); /* 0x470657A6: call 0x4703b240 */ /* not lifted */
   2693     RECOMP_FLAGS_IN();
   2694     PUSH32(esp, eax); /* 0x470657AB: push eax */
   2695     ecx = esi; /* 0x470657AC: mov ecx, esi */
   2696     RECOMP_ICALL(0x4703B080u); /* 0x470657AE: call 0x4703b080 */ /* not lifted */
   2697     RECOMP_FLAGS_IN();
   2698     PUSH32(esp, eax); /* 0x470657B3: push eax */
   2699     eax = MEM32(esp + 0x24); /* 0x470657B4: mov eax, dword ptr [esp + 0x24] */
   2700     PUSH32(esp, eax); /* 0x470657B8: push eax */
   2701     PUSH32(esp, 0); /* 0x470657B9: push 0 */
   2702     PUSH32(esp, 0x10Eu); /* 0x470657BB: push 0x10e */
   2703     PUSH32(esp, 0x47109750u); /* 0x470657C0: push 0x47109750 */
   2704     ecx = esi; /* 0x470657C5: mov ecx, esi */
   2705     RECOMP_ICALL(0x4703A340u); /* 0x470657C7: call 0x4703a340 */ /* not lifted */
   2706     RECOMP_FLAGS_IN();
   2707     ecx = MEM32(esp + 0x10); /* 0x470657CC: mov ecx, dword ptr [esp + 0x10] */
   2708     PUSH32(esp, ecx); /* 0x470657D0: push ecx */
   2709     PUSH32(esp, 0x47109804u); /* 0x470657D1: push 0x47109804 */
   2710     PUSH32(esp, 4); /* 0x470657D6: push 4 */
   2711     PUSH32(esp, esi); /* 0x470657D8: push esi */
   2712     RECOMP_ICALL(0x47039830u); /* 0x470657D9: call 0x47039830 */ /* not lifted */
   2713     RECOMP_FLAGS_IN();
   2714     edx = MEM32(edi + 0x50); /* 0x470657DE: mov edx, dword ptr [edi + 0x50] */
   2715     eax = MEM32(esp + 0x20); /* 0x470657E1: mov eax, dword ptr [esp + 0x20] */
   2716     esi = MEM32(edx + eax * 4); /* 0x470657E5: mov esi, dword ptr [edx + eax*4] */
   2717     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2718     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2719     esp = esp + 0x10u; /* 0x470657E8: add esp, 0x10 */
   2720     _flag_k = FK_ADD;
   2721     RECOMP_ICALL(ebx); /* 0x470657EB: call ebx */
   2722     RECOMP_FLAGS_IN();
   2723     edi = eax; /* 0x470657ED: mov edi, eax */
   2724     RECOMP_ICALL(ebp); /* 0x470657EF: call ebp */
   2725     RECOMP_FLAGS_IN();
   2726     eax = MEM32(eax); /* 0x470657F1: mov eax, dword ptr [eax] */
   2727     /* test eax, eax */ /* 0x470657F3: test eax, eax */
   2728     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2729     _cf = 0;
   2730     _flag_k = FK_TEST;
   2731     MEM32(esp + 0x18) = edi; /* 0x470657F5: mov dword ptr [esp + 0x18], edi */
   2732     if (TEST_Z(_flag_a, _flag_b)) goto L_470657FF; /* 0x470657F9: je 0x470657ff */
   2733 L_470657FB:
   2734     MEM32(esp + 0x18) = eax; /* 0x470657FB: mov dword ptr [esp + 0x18], eax */
   2735 L_470657FF:
   2736     RECOMP_ICALL(0x47039020u); /* 0x470657FF: call 0x47039020 */ /* not lifted */
   2737     RECOMP_FLAGS_IN();
   2738     edi = eax; /* 0x47065804: mov edi, eax */
   2739     ecx = edi; /* 0x47065806: mov ecx, edi */
   2740     RECOMP_ICALL(0x4703B210u); /* 0x47065808: call 0x4703b210 */ /* not lifted */
   2741     RECOMP_FLAGS_IN();
   2742     PUSH32(esp, eax); /* 0x4706580D: push eax */
   2743     ecx = edi; /* 0x4706580E: mov ecx, edi */
   2744     RECOMP_ICALL(0x4703B240u); /* 0x47065810: call 0x4703b240 */ /* not lifted */
   2745     RECOMP_FLAGS_IN();
   2746     PUSH32(esp, eax); /* 0x47065815: push eax */
   2747     ecx = edi; /* 0x47065816: mov ecx, edi */
   2748     RECOMP_ICALL(0x4703B080u); /* 0x47065818: call 0x4703b080 */ /* not lifted */
   2749     RECOMP_FLAGS_IN();
   2750     ecx = MEM32(esp + 0x20); /* 0x4706581D: mov ecx, dword ptr [esp + 0x20] */
   2751     PUSH32(esp, eax); /* 0x47065821: push eax */
   2752     PUSH32(esp, ecx); /* 0x47065822: push ecx */
   2753     PUSH32(esp, 0); /* 0x47065823: push 0 */
   2754     PUSH32(esp, 0x1Au); /* 0x47065825: push 0x1a */
   2755     PUSH32(esp, 0x471096F8u); /* 0x47065827: push 0x471096f8 */
   2756     ecx = edi; /* 0x4706582C: mov ecx, edi */
   2757     RECOMP_ICALL(0x4703A340u); /* 0x4706582E: call 0x4703a340 */ /* not lifted */
   2758     RECOMP_FLAGS_IN();
   2759     PUSH32(esp, esi); /* 0x47065833: push esi */
   2760     PUSH32(esp, 0x471052CCu); /* 0x47065834: push 0x471052cc */
   2761     PUSH32(esp, 4); /* 0x47065839: push 4 */
   2762     PUSH32(esp, edi); /* 0x4706583B: push edi */
   2763     RECOMP_ICALL(0x47039830u); /* 0x4706583C: call 0x47039830 */ /* not lifted */
   2764     RECOMP_FLAGS_IN();
   2765     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2766     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2767     esp = esp + 0x10u; /* 0x47065841: add esp, 0x10 */
   2768     _flag_k = FK_ADD;
   2769     RECOMP_ICALL(ebx); /* 0x47065844: call ebx */
   2770     RECOMP_FLAGS_IN();
   2771     edi = eax; /* 0x47065846: mov edi, eax */
   2772     RECOMP_ICALL(ebp); /* 0x47065848: call ebp */
   2773     RECOMP_FLAGS_IN();
   2774     eax = MEM32(eax); /* 0x4706584A: mov eax, dword ptr [eax] */
   2775     /* test eax, eax */ /* 0x4706584C: test eax, eax */
   2776     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2777     _cf = 0;
   2778     _flag_k = FK_TEST;
   2779     MEM32(esp + 0x18) = edi; /* 0x4706584E: mov dword ptr [esp + 0x18], edi */
   2780     if (TEST_Z(_flag_a, _flag_b)) goto L_47065858; /* 0x47065852: je 0x47065858 */
   2781 L_47065854:
   2782     MEM32(esp + 0x18) = eax; /* 0x47065854: mov dword ptr [esp + 0x18], eax */
   2783 L_47065858:
   2784     RECOMP_ICALL(0x47039020u); /* 0x47065858: call 0x47039020 */ /* not lifted */
   2785     RECOMP_FLAGS_IN();
   2786     edi = eax; /* 0x4706585D: mov edi, eax */
   2787     ecx = edi; /* 0x4706585F: mov ecx, edi */
   2788     RECOMP_ICALL(0x4703B210u); /* 0x47065861: call 0x4703b210 */ /* not lifted */
   2789     RECOMP_FLAGS_IN();
   2790     PUSH32(esp, eax); /* 0x47065866: push eax */
   2791     ecx = edi; /* 0x47065867: mov ecx, edi */
   2792     RECOMP_ICALL(0x4703B240u); /* 0x47065869: call 0x4703b240 */ /* not lifted */
   2793     RECOMP_FLAGS_IN();
   2794     PUSH32(esp, eax); /* 0x4706586E: push eax */
   2795     ecx = edi; /* 0x4706586F: mov ecx, edi */
   2796     RECOMP_ICALL(0x4703B080u); /* 0x47065871: call 0x4703b080 */ /* not lifted */
   2797     RECOMP_FLAGS_IN();
   2798     edx = MEM32(esp + 0x20); /* 0x47065876: mov edx, dword ptr [esp + 0x20] */
   2799     PUSH32(esp, eax); /* 0x4706587A: push eax */
   2800     PUSH32(esp, edx); /* 0x4706587B: push edx */
   2801     PUSH32(esp, 0); /* 0x4706587C: push 0 */
   2802     PUSH32(esp, 0x1Bu); /* 0x4706587E: push 0x1b */
   2803     PUSH32(esp, 0x471096F8u); /* 0x47065880: push 0x471096f8 */
   2804     ecx = edi; /* 0x47065885: mov ecx, edi */
   2805     RECOMP_ICALL(0x4703A340u); /* 0x47065887: call 0x4703a340 */ /* not lifted */
   2806     RECOMP_FLAGS_IN();
   2807     eax = MEM32(esi + 0x4); /* 0x4706588C: mov eax, dword ptr [esi + 4] */
   2808     PUSH32(esp, eax); /* 0x4706588F: push eax */
   2809     PUSH32(esp, 0x471097F8u); /* 0x47065890: push 0x471097f8 */
   2810     PUSH32(esp, 4); /* 0x47065895: push 4 */
   2811     PUSH32(esp, edi); /* 0x47065897: push edi */
   2812     RECOMP_ICALL(0x47039830u); /* 0x47065898: call 0x47039830 */ /* not lifted */
   2813     RECOMP_FLAGS_IN();
   2814     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2815     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2816     esp = esp + 0x10u; /* 0x4706589D: add esp, 0x10 */
   2817     _flag_k = FK_ADD;
   2818     ecx = esi + 0x8; /* 0x470658A0: lea ecx, [esi + 8] */
   2819     RECOMP_ICALL(0x47054230u); /* 0x470658A3: call 0x47054230 */ /* not lifted */
   2820     RECOMP_FLAGS_IN();
   2821     ecx = esi + 0x10; /* 0x470658A8: lea ecx, [esi + 0x10] */
   2822     RECOMP_ICALL(0x47054230u); /* 0x470658AB: call 0x47054230 */ /* not lifted */
   2823     RECOMP_FLAGS_IN();
   2824     RECOMP_ICALL(ebx); /* 0x470658B0: call ebx */
   2825     RECOMP_FLAGS_IN();
   2826     edi = eax; /* 0x470658B2: mov edi, eax */
   2827     RECOMP_ICALL(ebp); /* 0x470658B4: call ebp */
   2828     RECOMP_FLAGS_IN();
   2829     eax = MEM32(eax); /* 0x470658B6: mov eax, dword ptr [eax] */
   2830     /* test eax, eax */ /* 0x470658B8: test eax, eax */
   2831     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2832     _cf = 0;
   2833     _flag_k = FK_TEST;
   2834     MEM32(esp + 0x18) = edi; /* 0x470658BA: mov dword ptr [esp + 0x18], edi */
   2835     if (TEST_Z(_flag_a, _flag_b)) goto L_470658C4; /* 0x470658BE: je 0x470658c4 */
   2836 L_470658C0:
   2837     MEM32(esp + 0x18) = eax; /* 0x470658C0: mov dword ptr [esp + 0x18], eax */
   2838 L_470658C4:
   2839     RECOMP_ICALL(0x47039020u); /* 0x470658C4: call 0x47039020 */ /* not lifted */
   2840     RECOMP_FLAGS_IN();
   2841     edi = eax; /* 0x470658C9: mov edi, eax */
   2842     ecx = edi; /* 0x470658CB: mov ecx, edi */
   2843     RECOMP_ICALL(0x4703B210u); /* 0x470658CD: call 0x4703b210 */ /* not lifted */
   2844     RECOMP_FLAGS_IN();
   2845     PUSH32(esp, eax); /* 0x470658D2: push eax */
   2846     ecx = edi; /* 0x470658D3: mov ecx, edi */
   2847     RECOMP_ICALL(0x4703B240u); /* 0x470658D5: call 0x4703b240 */ /* not lifted */
   2848     RECOMP_FLAGS_IN();
   2849     PUSH32(esp, eax); /* 0x470658DA: push eax */
   2850     ecx = edi; /* 0x470658DB: mov ecx, edi */
   2851     RECOMP_ICALL(0x4703B080u); /* 0x470658DD: call 0x4703b080 */ /* not lifted */
   2852     RECOMP_FLAGS_IN();
   2853     ecx = MEM32(esp + 0x20); /* 0x470658E2: mov ecx, dword ptr [esp + 0x20] */
   2854     PUSH32(esp, eax); /* 0x470658E6: push eax */
   2855     PUSH32(esp, ecx); /* 0x470658E7: push ecx */
   2856     PUSH32(esp, 0); /* 0x470658E8: push 0 */
   2857     PUSH32(esp, 0x1Eu); /* 0x470658EA: push 0x1e */
   2858     PUSH32(esp, 0x471096F8u); /* 0x470658EC: push 0x471096f8 */
   2859     ecx = edi; /* 0x470658F1: mov ecx, edi */
   2860     RECOMP_ICALL(0x4703A340u); /* 0x470658F3: call 0x4703a340 */ /* not lifted */
   2861     RECOMP_FLAGS_IN();
   2862     edx = MEM32(esi + 0x18); /* 0x470658F8: mov edx, dword ptr [esi + 0x18] */
   2863     PUSH32(esp, edx); /* 0x470658FB: push edx */
   2864     PUSH32(esp, 0x471097ECu); /* 0x470658FC: push 0x471097ec */
   2865     PUSH32(esp, 4); /* 0x47065901: push 4 */
   2866     PUSH32(esp, edi); /* 0x47065903: push edi */
   2867     RECOMP_ICALL(0x47039830u); /* 0x47065904: call 0x47039830 */ /* not lifted */
   2868     RECOMP_FLAGS_IN();
   2869     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2870     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2871     esp = esp + 0x10u; /* 0x47065909: add esp, 0x10 */
   2872     _flag_k = FK_ADD;
   2873     RECOMP_ICALL(ebx); /* 0x4706590C: call ebx */
   2874     RECOMP_FLAGS_IN();
   2875     edi = eax; /* 0x4706590E: mov edi, eax */
   2876     RECOMP_ICALL(ebp); /* 0x47065910: call ebp */
   2877     RECOMP_FLAGS_IN();
   2878     eax = MEM32(eax); /* 0x47065912: mov eax, dword ptr [eax] */
   2879     /* test eax, eax */ /* 0x47065914: test eax, eax */
   2880     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2881     _cf = 0;
   2882     _flag_k = FK_TEST;
   2883     MEM32(esp + 0x18) = edi; /* 0x47065916: mov dword ptr [esp + 0x18], edi */
   2884     if (TEST_Z(_flag_a, _flag_b)) goto L_47065920; /* 0x4706591A: je 0x47065920 */
   2885 L_4706591C:
   2886     MEM32(esp + 0x18) = eax; /* 0x4706591C: mov dword ptr [esp + 0x18], eax */
   2887 L_47065920:
   2888     RECOMP_ICALL(0x47039020u); /* 0x47065920: call 0x47039020 */ /* not lifted */
   2889     RECOMP_FLAGS_IN();
   2890     edi = eax; /* 0x47065925: mov edi, eax */
   2891     ecx = edi; /* 0x47065927: mov ecx, edi */
   2892     RECOMP_ICALL(0x4703B210u); /* 0x47065929: call 0x4703b210 */ /* not lifted */
   2893     RECOMP_FLAGS_IN();
   2894     PUSH32(esp, eax); /* 0x4706592E: push eax */
   2895     ecx = edi; /* 0x4706592F: mov ecx, edi */
   2896     RECOMP_ICALL(0x4703B240u); /* 0x47065931: call 0x4703b240 */ /* not lifted */
   2897     RECOMP_FLAGS_IN();
   2898     PUSH32(esp, eax); /* 0x47065936: push eax */
   2899     ecx = edi; /* 0x47065937: mov ecx, edi */
   2900     RECOMP_ICALL(0x4703B080u); /* 0x47065939: call 0x4703b080 */ /* not lifted */
   2901     RECOMP_FLAGS_IN();
   2902     PUSH32(esp, eax); /* 0x4706593E: push eax */
   2903     eax = MEM32(esp + 0x24); /* 0x4706593F: mov eax, dword ptr [esp + 0x24] */
   2904     PUSH32(esp, eax); /* 0x47065943: push eax */
   2905     PUSH32(esp, 0); /* 0x47065944: push 0 */
   2906     PUSH32(esp, 0x1Fu); /* 0x47065946: push 0x1f */
   2907     PUSH32(esp, 0x471096F8u); /* 0x47065948: push 0x471096f8 */
   2908     ecx = edi; /* 0x4706594D: mov ecx, edi */
   2909     RECOMP_ICALL(0x4703A340u); /* 0x4706594F: call 0x4703a340 */ /* not lifted */
   2910     RECOMP_FLAGS_IN();
   2911     ecx = MEM32(esi + 0x1C); /* 0x47065954: mov ecx, dword ptr [esi + 0x1c] */
   2912     PUSH32(esp, ecx); /* 0x47065957: push ecx */
   2913     PUSH32(esp, 0x47107A34u); /* 0x47065958: push 0x47107a34 */
   2914     PUSH32(esp, 4); /* 0x4706595D: push 4 */
   2915     PUSH32(esp, edi); /* 0x4706595F: push edi */
   2916     RECOMP_ICALL(0x47039830u); /* 0x47065960: call 0x47039830 */ /* not lifted */
   2917     RECOMP_FLAGS_IN();
   2918     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2919     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2920     esp = esp + 0x10u; /* 0x47065965: add esp, 0x10 */
   2921     _flag_k = FK_ADD;
   2922     RECOMP_ICALL(ebx); /* 0x47065968: call ebx */
   2923     RECOMP_FLAGS_IN();
   2924     edi = eax; /* 0x4706596A: mov edi, eax */
   2925     RECOMP_ICALL(ebp); /* 0x4706596C: call ebp */
   2926     RECOMP_FLAGS_IN();
   2927     eax = MEM32(eax); /* 0x4706596E: mov eax, dword ptr [eax] */
   2928     /* test eax, eax */ /* 0x47065970: test eax, eax */
   2929     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2930     _cf = 0;
   2931     _flag_k = FK_TEST;
   2932     MEM32(esp + 0x18) = edi; /* 0x47065972: mov dword ptr [esp + 0x18], edi */
   2933     if (TEST_Z(_flag_a, _flag_b)) goto L_4706597C; /* 0x47065976: je 0x4706597c */
   2934 L_47065978:
   2935     MEM32(esp + 0x18) = eax; /* 0x47065978: mov dword ptr [esp + 0x18], eax */
   2936 L_4706597C:
   2937     RECOMP_ICALL(0x47039020u); /* 0x4706597C: call 0x47039020 */ /* not lifted */
   2938     RECOMP_FLAGS_IN();
   2939     edi = eax; /* 0x47065981: mov edi, eax */
   2940     ecx = edi; /* 0x47065983: mov ecx, edi */
   2941     RECOMP_ICALL(0x4703B210u); /* 0x47065985: call 0x4703b210 */ /* not lifted */
   2942     RECOMP_FLAGS_IN();
   2943     PUSH32(esp, eax); /* 0x4706598A: push eax */
   2944     ecx = edi; /* 0x4706598B: mov ecx, edi */
   2945     RECOMP_ICALL(0x4703B240u); /* 0x4706598D: call 0x4703b240 */ /* not lifted */
   2946     RECOMP_FLAGS_IN();
   2947     PUSH32(esp, eax); /* 0x47065992: push eax */
   2948     ecx = edi; /* 0x47065993: mov ecx, edi */
   2949     RECOMP_ICALL(0x4703B080u); /* 0x47065995: call 0x4703b080 */ /* not lifted */
   2950     RECOMP_FLAGS_IN();
   2951     edx = MEM32(esp + 0x20); /* 0x4706599A: mov edx, dword ptr [esp + 0x20] */
   2952     PUSH32(esp, eax); /* 0x4706599E: push eax */
   2953     PUSH32(esp, edx); /* 0x4706599F: push edx */
   2954     PUSH32(esp, 0); /* 0x470659A0: push 0 */
   2955     PUSH32(esp, 0x20u); /* 0x470659A2: push 0x20 */
   2956     PUSH32(esp, 0x471096F8u); /* 0x470659A4: push 0x471096f8 */
   2957     ecx = edi; /* 0x470659A9: mov ecx, edi */
   2958     RECOMP_ICALL(0x4703A340u); /* 0x470659AB: call 0x4703a340 */ /* not lifted */
   2959     RECOMP_FLAGS_IN();
   2960     eax = MEM32(esi + 0x20); /* 0x470659B0: mov eax, dword ptr [esi + 0x20] */
   2961     PUSH32(esp, eax); /* 0x470659B3: push eax */
   2962     PUSH32(esp, 0x471097D8u); /* 0x470659B4: push 0x471097d8 */
   2963     PUSH32(esp, 4); /* 0x470659B9: push 4 */
   2964     PUSH32(esp, edi); /* 0x470659BB: push edi */
   2965     RECOMP_ICALL(0x47039830u); /* 0x470659BC: call 0x47039830 */ /* not lifted */
   2966     RECOMP_FLAGS_IN();
   2967     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   2968     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2969     esp = esp + 0x10u; /* 0x470659C1: add esp, 0x10 */
   2970     _flag_k = FK_ADD;
   2971     RECOMP_ICALL(ebx); /* 0x470659C4: call ebx */
   2972     RECOMP_FLAGS_IN();
   2973     esi = eax; /* 0x470659C6: mov esi, eax */
   2974     RECOMP_ICALL(ebp); /* 0x470659C8: call ebp */
   2975     RECOMP_FLAGS_IN();
   2976     eax = MEM32(eax); /* 0x470659CA: mov eax, dword ptr [eax] */
   2977     /* test eax, eax */ /* 0x470659CC: test eax, eax */
   2978     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2979     _cf = 0;
   2980     _flag_k = FK_TEST;
   2981     edi = esi; /* 0x470659CE: mov edi, esi */
   2982     if (TEST_Z(_flag_a, _flag_b)) goto L_470659D4; /* 0x470659D0: je 0x470659d4 */
   2983 L_470659D2:
   2984     edi = eax; /* 0x470659D2: mov edi, eax */
   2985 L_470659D4:
   2986     RECOMP_ICALL(0x47039020u); /* 0x470659D4: call 0x47039020 */ /* not lifted */
   2987     RECOMP_FLAGS_IN();
   2988     esi = eax; /* 0x470659D9: mov esi, eax */
   2989     ecx = esi; /* 0x470659DB: mov ecx, esi */
   2990     RECOMP_ICALL(0x4703B210u); /* 0x470659DD: call 0x4703b210 */ /* not lifted */
   2991     RECOMP_FLAGS_IN();
   2992     PUSH32(esp, eax); /* 0x470659E2: push eax */
   2993     ecx = esi; /* 0x470659E3: mov ecx, esi */
   2994     RECOMP_ICALL(0x4703B240u); /* 0x470659E5: call 0x4703b240 */ /* not lifted */
   2995     RECOMP_FLAGS_IN();
   2996     PUSH32(esp, eax); /* 0x470659EA: push eax */
   2997     ecx = esi; /* 0x470659EB: mov ecx, esi */
   2998     RECOMP_ICALL(0x4703B080u); /* 0x470659ED: call 0x4703b080 */ /* not lifted */
   2999     RECOMP_FLAGS_IN();
   3000     PUSH32(esp, eax); /* 0x470659F2: push eax */
   3001     PUSH32(esp, edi); /* 0x470659F3: push edi */
   3002     PUSH32(esp, 0); /* 0x470659F4: push 0 */
   3003     PUSH32(esp, 0x21u); /* 0x470659F6: push 0x21 */
   3004     PUSH32(esp, 0x471096F8u); /* 0x470659F8: push 0x471096f8 */
   3005     ecx = esi; /* 0x470659FD: mov ecx, esi */
   3006     RECOMP_ICALL(0x4703A340u); /* 0x470659FF: call 0x4703a340 */ /* not lifted */
   3007     RECOMP_FLAGS_IN();
   3008     PUSH32(esp, 0x4710529Cu); /* 0x47065A04: push 0x4710529c */
   3009     PUSH32(esp, 4); /* 0x47065A09: push 4 */
   3010     PUSH32(esp, esi); /* 0x47065A0B: push esi */
   3011     RECOMP_ICALL(0x47039830u); /* 0x47065A0C: call 0x47039830 */ /* not lifted */
   3012     RECOMP_FLAGS_IN();
   3013     eax = MEM32(esp + 0x1C); /* 0x47065A11: mov eax, dword ptr [esp + 0x1c] */
   3014     ecx = MEM32(esp + 0x20); /* 0x47065A15: mov ecx, dword ptr [esp + 0x20] */
   3015     edx = MEM32(ecx + 0x48); /* 0x47065A19: mov edx, dword ptr [ecx + 0x48] */
   3016     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3017     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3018     esp = esp + 0xCu; /* 0x47065A1C: add esp, 0xc */
   3019     _flag_k = FK_ADD;
   3020     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3021     eax = eax + 1; /* 0x47065A1F: inc eax */
   3022     _flag_k = FK_INC;
   3023     /* cmp eax, edx */ /* 0x47065A20: cmp eax, edx */
   3024     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   3025     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3026     _flag_k = FK_CMP;
   3027     MEM32(esp + 0x10) = eax; /* 0x47065A22: mov dword ptr [esp + 0x10], eax */
   3028     edi = ecx; /* 0x47065A26: mov edi, ecx */
   3029     RECOMP_BACKEDGE();
   3030     if (CMP_B(_flag_a, _flag_b)) goto L_47065781; /* 0x47065A28: jb 0x47065781 */
   3031 L_47065A2E:
   3032     RECOMP_ICALL(ebx); /* 0x47065A2E: call ebx */
   3033     RECOMP_FLAGS_IN();
   3034     esi = eax; /* 0x47065A30: mov esi, eax */
   3035     RECOMP_ICALL(ebp); /* 0x47065A32: call ebp */
   3036     RECOMP_FLAGS_IN();
   3037     eax = MEM32(eax); /* 0x47065A34: mov eax, dword ptr [eax] */
   3038     /* test eax, eax */ /* 0x47065A36: test eax, eax */
   3039     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3040     _cf = 0;
   3041     _flag_k = FK_TEST;
   3042     MEM32(esp + 0x18) = esi; /* 0x47065A38: mov dword ptr [esp + 0x18], esi */
   3043     if (TEST_Z(_flag_a, _flag_b)) goto L_47065A42; /* 0x47065A3C: je 0x47065a42 */
   3044 L_47065A3E:
   3045     MEM32(esp + 0x18) = eax; /* 0x47065A3E: mov dword ptr [esp + 0x18], eax */
   3046 L_47065A42:
   3047     RECOMP_ICALL(0x47039020u); /* 0x47065A42: call 0x47039020 */ /* not lifted */
   3048     RECOMP_FLAGS_IN();
   3049     esi = eax; /* 0x47065A47: mov esi, eax */
   3050     ecx = esi; /* 0x47065A49: mov ecx, esi */
   3051     RECOMP_ICALL(0x4703B210u); /* 0x47065A4B: call 0x4703b210 */ /* not lifted */
   3052     RECOMP_FLAGS_IN();
   3053     PUSH32(esp, eax); /* 0x47065A50: push eax */
   3054     ecx = esi; /* 0x47065A51: mov ecx, esi */
   3055     RECOMP_ICALL(0x4703B240u); /* 0x47065A53: call 0x4703b240 */ /* not lifted */
   3056     RECOMP_FLAGS_IN();
   3057     PUSH32(esp, eax); /* 0x47065A58: push eax */
   3058     ecx = esi; /* 0x47065A59: mov ecx, esi */
   3059     RECOMP_ICALL(0x4703B080u); /* 0x47065A5B: call 0x4703b080 */ /* not lifted */
   3060     RECOMP_FLAGS_IN();
   3061     edx = MEM32(esp + 0x20); /* 0x47065A60: mov edx, dword ptr [esp + 0x20] */
   3062     PUSH32(esp, eax); /* 0x47065A64: push eax */
   3063     PUSH32(esp, edx); /* 0x47065A65: push edx */
   3064     PUSH32(esp, 0); /* 0x47065A66: push 0 */
   3065     PUSH32(esp, 0x112u); /* 0x47065A68: push 0x112 */
   3066     PUSH32(esp, 0x47109750u); /* 0x47065A6D: push 0x47109750 */
   3067     ecx = esi; /* 0x47065A72: mov ecx, esi */
   3068     RECOMP_ICALL(0x4703A340u); /* 0x47065A74: call 0x4703a340 */ /* not lifted */
   3069     RECOMP_FLAGS_IN();
   3070     PUSH32(esp, 0x471097C8u); /* 0x47065A79: push 0x471097c8 */
   3071     PUSH32(esp, 4); /* 0x47065A7E: push 4 */
   3072     PUSH32(esp, esi); /* 0x47065A80: push esi */
   3073     RECOMP_ICALL(0x47039830u); /* 0x47065A81: call 0x47039830 */ /* not lifted */
   3074     RECOMP_FLAGS_IN();
   3075     eax = MEM32(edi + 0x48); /* 0x47065A86: mov eax, dword ptr [edi + 0x48] */
   3076     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3077     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3078     esp = esp + 0xCu; /* 0x47065A89: add esp, 0xc */
   3079     _flag_k = FK_ADD;
   3080     /* test eax, eax */ /* 0x47065A8C: test eax, eax */
   3081     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3082     _cf = 0;
   3083     _flag_k = FK_TEST;
   3084     MEM32(esp + 0x14) = 0; /* 0x47065A8E: mov dword ptr [esp + 0x14], 0 */
   3085     if (TEST_Z(_flag_a, _flag_b)) goto L_47065B0F; /* 0x47065A96: jbe 0x47065b0f */
   3086 L_47065A98:
   3087     RECOMP_ICALL(ebx); /* 0x47065A98: call ebx */
   3088     RECOMP_FLAGS_IN();
   3089     esi = eax; /* 0x47065A9A: mov esi, eax */
   3090     RECOMP_ICALL(ebp); /* 0x47065A9C: call ebp */
   3091     RECOMP_FLAGS_IN();
   3092     eax = MEM32(eax); /* 0x47065A9E: mov eax, dword ptr [eax] */
   3093     /* test eax, eax */ /* 0x47065AA0: test eax, eax */
   3094     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3095     _cf = 0;
   3096     _flag_k = FK_TEST;
   3097     MEM32(esp + 0x18) = esi; /* 0x47065AA2: mov dword ptr [esp + 0x18], esi */
   3098     if (TEST_Z(_flag_a, _flag_b)) goto L_47065AAC; /* 0x47065AA6: je 0x47065aac */
   3099 L_47065AA8:
   3100     MEM32(esp + 0x18) = eax; /* 0x47065AA8: mov dword ptr [esp + 0x18], eax */
   3101 L_47065AAC:
   3102     RECOMP_ICALL(0x47039020u); /* 0x47065AAC: call 0x47039020 */ /* not lifted */
   3103     RECOMP_FLAGS_IN();
   3104     esi = eax; /* 0x47065AB1: mov esi, eax */
   3105     ecx = esi; /* 0x47065AB3: mov ecx, esi */
   3106     RECOMP_ICALL(0x4703B210u); /* 0x47065AB5: call 0x4703b210 */ /* not lifted */
   3107     RECOMP_FLAGS_IN();
   3108     PUSH32(esp, eax); /* 0x47065ABA: push eax */
   3109     ecx = esi; /* 0x47065ABB: mov ecx, esi */
   3110     RECOMP_ICALL(0x4703B240u); /* 0x47065ABD: call 0x4703b240 */ /* not lifted */
   3111     RECOMP_FLAGS_IN();
   3112     PUSH32(esp, eax); /* 0x47065AC2: push eax */
   3113     ecx = esi; /* 0x47065AC3: mov ecx, esi */
   3114     RECOMP_ICALL(0x4703B080u); /* 0x47065AC5: call 0x4703b080 */ /* not lifted */
   3115     RECOMP_FLAGS_IN();
   3116     PUSH32(esp, eax); /* 0x47065ACA: push eax */
   3117     eax = MEM32(esp + 0x24); /* 0x47065ACB: mov eax, dword ptr [esp + 0x24] */
   3118     PUSH32(esp, eax); /* 0x47065ACF: push eax */
   3119     PUSH32(esp, 0); /* 0x47065AD0: push 0 */
   3120     PUSH32(esp, 0x118u); /* 0x47065AD2: push 0x118 */
   3121     PUSH32(esp, 0x47109750u); /* 0x47065AD7: push 0x47109750 */
   3122     ecx = esi; /* 0x47065ADC: mov ecx, esi */
   3123     RECOMP_ICALL(0x4703A340u); /* 0x47065ADE: call 0x4703a340 */ /* not lifted */
   3124     RECOMP_FLAGS_IN();
   3125     eax = MEM32(esp + 0x14); /* 0x47065AE3: mov eax, dword ptr [esp + 0x14] */
   3126     ecx = MEM32(edi + 0x54); /* 0x47065AE7: mov ecx, dword ptr [edi + 0x54] */
   3127     edx = MEM32(ecx + eax * 4); /* 0x47065AEA: mov edx, dword ptr [ecx + eax*4] */
   3128     PUSH32(esp, edx); /* 0x47065AED: push edx */
   3129     PUSH32(esp, eax); /* 0x47065AEE: push eax */
   3130     PUSH32(esp, 0x471097C0u); /* 0x47065AEF: push 0x471097c0 */
   3131     PUSH32(esp, 4); /* 0x47065AF4: push 4 */
   3132     PUSH32(esp, esi); /* 0x47065AF6: push esi */
   3133     RECOMP_ICALL(0x47039830u); /* 0x47065AF7: call 0x47039830 */ /* not lifted */
   3134     RECOMP_FLAGS_IN();
   3135     eax = MEM32(esp + 0x28); /* 0x47065AFC: mov eax, dword ptr [esp + 0x28] */
   3136     ecx = MEM32(edi + 0x48); /* 0x47065B00: mov ecx, dword ptr [edi + 0x48] */
   3137     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3138     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3139     esp = esp + 0x14u; /* 0x47065B03: add esp, 0x14 */
   3140     _flag_k = FK_ADD;
   3141     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3142     eax = eax + 1; /* 0x47065B06: inc eax */
   3143     _flag_k = FK_INC;
   3144     /* cmp eax, ecx */ /* 0x47065B07: cmp eax, ecx */
   3145     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3146     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3147     _flag_k = FK_CMP;
   3148     MEM32(esp + 0x14) = eax; /* 0x47065B09: mov dword ptr [esp + 0x14], eax */
   3149     RECOMP_BACKEDGE();
   3150     if (CMP_B(_flag_a, _flag_b)) goto L_47065A98; /* 0x47065B0D: jb 0x47065a98 */
   3151 L_47065B0F:
   3152     RECOMP_ICALL(ebx); /* 0x47065B0F: call ebx */
   3153     RECOMP_FLAGS_IN();
   3154     edi = eax; /* 0x47065B11: mov edi, eax */
   3155     RECOMP_ICALL(ebp); /* 0x47065B13: call ebp */
   3156     RECOMP_FLAGS_IN();
   3157     eax = MEM32(eax); /* 0x47065B15: mov eax, dword ptr [eax] */
   3158     /* test eax, eax */ /* 0x47065B17: test eax, eax */
   3159     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3160     _cf = 0;
   3161     _flag_k = FK_TEST;
   3162     if (TEST_Z(_flag_a, _flag_b)) goto L_47065B1D; /* 0x47065B19: je 0x47065b1d */
   3163 L_47065B1B:
   3164     edi = eax; /* 0x47065B1B: mov edi, eax */
   3165 L_47065B1D:
   3166     RECOMP_ICALL(0x47039020u); /* 0x47065B1D: call 0x47039020 */ /* not lifted */
   3167     RECOMP_FLAGS_IN();
   3168     esi = eax; /* 0x47065B22: mov esi, eax */
   3169     ecx = esi; /* 0x47065B24: mov ecx, esi */
   3170     RECOMP_ICALL(0x4703B210u); /* 0x47065B26: call 0x4703b210 */ /* not lifted */
   3171     RECOMP_FLAGS_IN();
   3172     PUSH32(esp, eax); /* 0x47065B2B: push eax */
   3173     ecx = esi; /* 0x47065B2C: mov ecx, esi */
   3174     RECOMP_ICALL(0x4703B240u); /* 0x47065B2E: call 0x4703b240 */ /* not lifted */
   3175     RECOMP_FLAGS_IN();
   3176     PUSH32(esp, eax); /* 0x47065B33: push eax */
   3177     ecx = esi; /* 0x47065B34: mov ecx, esi */
   3178     RECOMP_ICALL(0x4703B080u); /* 0x47065B36: call 0x4703b080 */ /* not lifted */
   3179     RECOMP_FLAGS_IN();
   3180     PUSH32(esp, eax); /* 0x47065B3B: push eax */
   3181     PUSH32(esp, edi); /* 0x47065B3C: push edi */
   3182     PUSH32(esp, 0); /* 0x47065B3D: push 0 */
   3183     PUSH32(esp, 0x11Au); /* 0x47065B3F: push 0x11a */
   3184     PUSH32(esp, 0x47109750u); /* 0x47065B44: push 0x47109750 */
   3185     ecx = esi; /* 0x47065B49: mov ecx, esi */
   3186     RECOMP_ICALL(0x4703A340u); /* 0x47065B4B: call 0x4703a340 */ /* not lifted */
   3187     RECOMP_FLAGS_IN();
   3188     PUSH32(esp, 0x4710529Cu); /* 0x47065B50: push 0x4710529c */
   3189     PUSH32(esp, 4); /* 0x47065B55: push 4 */
   3190     PUSH32(esp, esi); /* 0x47065B57: push esi */
   3191     RECOMP_ICALL(0x47039830u); /* 0x47065B58: call 0x47039830 */ /* not lifted */
   3192     RECOMP_FLAGS_IN();
   3193     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3194     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3195     esp = esp + 0xCu; /* 0x47065B5D: add esp, 0xc */
   3196     _flag_k = FK_ADD;
   3197     edi = POP32_VAL(esp); /* 0x47065B60: pop edi */
   3198     esi = POP32_VAL(esp); /* 0x47065B61: pop esi */
   3199     ebp = POP32_VAL(esp); /* 0x47065B62: pop ebp */
   3200     ebx = POP32_VAL(esp); /* 0x47065B63: pop ebx */
   3201     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   3202     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3203     esp = esp + 0xCu; /* 0x47065B64: add esp, 0xc */
   3204     _flag_k = FK_ADD;
   3205     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47065B67: ret  */
   3206     RECOMP_REGS_OUT();
   3207 }
   3208 
   3209 void sub_47065B70(void) {
   3210     int _fpu_cmp = 0;
   3211     uint32_t _cf = 0;
   3212     int _df = 1;
   3213     uint32_t _flag_k = FK_NONE;
   3214     uint32_t _flag_a = 0, _flag_b = 0;
   3215     uint32_t _itail_tgt = 0;
   3216     RECOMP_REGS_LOCALS
   3217     RECOMP_ENTER(0x47065B70u);
   3218 
   3219 L_47065B70:
   3220     eax = MEM32(ecx + 0x48); /* 0x47065B70: mov eax, dword ptr [ecx + 0x48] */
   3221     /* test eax, eax */ /* 0x47065B73: test eax, eax */
   3222     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3223     _cf = 0;
   3224     _flag_k = FK_TEST;
   3225     if (TEST_NZ(_flag_a, _flag_b)) goto L_47065B7A; /* 0x47065B75: jne 0x47065b7a */
   3226 L_47065B77:
   3227     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3228     eax = 0; /* 0x47065B77: xor eax, eax */
   3229     _cf = 0;
   3230     _flag_k = FK_TEST;
   3231     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47065B79: ret  */
   3232 L_47065B7A:
   3233     eax = MEM32(ecx + 0x50); /* 0x47065B7A: mov eax, dword ptr [ecx + 0x50] */
   3234     eax = MEM32(eax); /* 0x47065B7D: mov eax, dword ptr [eax] */
   3235     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47065B7F: ret  */
   3236     RECOMP_REGS_OUT();
   3237 }
   3238 
   3239 void sub_47065B80(void) {
   3240     int _fpu_cmp = 0;
   3241     uint32_t _cf = 0;
   3242     int _df = 1;
   3243     uint32_t _flag_k = FK_NONE;
   3244     uint32_t _flag_a = 0, _flag_b = 0;
   3245     uint32_t _itail_tgt = 0;
   3246     RECOMP_REGS_LOCALS
   3247     RECOMP_ENTER(0x47065B80u);
   3248 
   3249 L_47065B80:
   3250     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3251     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3252     esp = esp - 8; /* 0x47065B80: sub esp, 8 */
   3253     _flag_k = FK_CMP;
   3254     PUSH32(esp, ebx); /* 0x47065B83: push ebx */
   3255     ebx = ecx; /* 0x47065B84: mov ebx, ecx */
   3256     eax = MEM32(ebx + 0x58); /* 0x47065B86: mov eax, dword ptr [ebx + 0x58] */
   3257     ecx = MEM32(ebx + 0x54); /* 0x47065B89: mov ecx, dword ptr [ebx + 0x54] */
   3258     edx = MEM32(ecx + eax * 4); /* 0x47065B8C: mov edx, dword ptr [ecx + eax*4] */
   3259     ecx = MEM32(esp + 0x10); /* 0x47065B8F: mov ecx, dword ptr [esp + 0x10] */
   3260     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(edx);
   3261     _cf = (edx) != 0;
   3262     edx = (uint32_t)(-(int32_t)edx); /* 0x47065B93: neg edx */
   3263     _flag_k = FK_CMP;
   3264     PUSH32(esp, ebp); /* 0x47065B95: push ebp */
   3265     MEM32(ebx + 0x58) = edx; /* 0x47065B96: mov dword ptr [ebx + 0x58], edx */
   3266     /* cmp eax, MEM32(ecx + 0x20) */ /* 0x47065B99: cmp eax, dword ptr [ecx + 0x20] */
   3267     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x20));
   3268     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3269     _flag_k = FK_CMP;
   3270     PUSH32(esp, esi); /* 0x47065B9C: push esi */
   3271     PUSH32(esp, edi); /* 0x47065B9D: push edi */
   3272     if (CMP_EQ(_flag_a, _flag_b)) goto L_47065C03; /* 0x47065B9E: je 0x47065c03 */
   3273 L_47065BA0:
   3274     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47065BA0: call dword ptr [0x470ac150] */
   3275     RECOMP_FLAGS_IN();
   3276     edi = eax; /* 0x47065BA6: mov edi, eax */
   3277     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47065BA8: call dword ptr [0x470ac3c8] */
   3278     RECOMP_FLAGS_IN();
   3279     eax = MEM32(eax); /* 0x47065BAE: mov eax, dword ptr [eax] */
   3280     /* test eax, eax */ /* 0x47065BB0: test eax, eax */
   3281     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3282     _cf = 0;
   3283     _flag_k = FK_TEST;
   3284     if (TEST_Z(_flag_a, _flag_b)) goto L_47065BB6; /* 0x47065BB2: je 0x47065bb6 */
   3285 L_47065BB4:
   3286     edi = eax; /* 0x47065BB4: mov edi, eax */
   3287 L_47065BB6:
   3288     RECOMP_ICALL(0x47039020u); /* 0x47065BB6: call 0x47039020 */ /* not lifted */
   3289     RECOMP_FLAGS_IN();
   3290     esi = eax; /* 0x47065BBB: mov esi, eax */
   3291     ecx = esi; /* 0x47065BBD: mov ecx, esi */
   3292     RECOMP_ICALL(0x4703B210u); /* 0x47065BBF: call 0x4703b210 */ /* not lifted */
   3293     RECOMP_FLAGS_IN();
   3294     PUSH32(esp, eax); /* 0x47065BC4: push eax */
   3295     ecx = esi; /* 0x47065BC5: mov ecx, esi */
   3296     RECOMP_ICALL(0x4703B240u); /* 0x47065BC7: call 0x4703b240 */ /* not lifted */
   3297     RECOMP_FLAGS_IN();
   3298     PUSH32(esp, eax); /* 0x47065BCC: push eax */
   3299     ecx = esi; /* 0x47065BCD: mov ecx, esi */
   3300     RECOMP_ICALL(0x4703B080u); /* 0x47065BCF: call 0x4703b080 */ /* not lifted */
   3301     RECOMP_FLAGS_IN();
   3302     PUSH32(esp, eax); /* 0x47065BD4: push eax */
   3303     PUSH32(esp, edi); /* 0x47065BD5: push edi */
   3304     PUSH32(esp, 0xFFFFFFFFu); /* 0x47065BD6: push -1 */
   3305     PUSH32(esp, 0x204u); /* 0x47065BD8: push 0x204 */
   3306     PUSH32(esp, 0x47109750u); /* 0x47065BDD: push 0x47109750 */
   3307     ecx = esi; /* 0x47065BE2: mov ecx, esi */
   3308     RECOMP_ICALL(0x4703A340u); /* 0x47065BE4: call 0x4703a340 */ /* not lifted */
   3309     RECOMP_FLAGS_IN();
   3310     PUSH32(esp, 0xFFFFFFFFu); /* 0x47065BE9: push -1 */
   3311     PUSH32(esp, 0x47109834u); /* 0x47065BEB: push 0x47109834 */
   3312     PUSH32(esp, 0x47104AA4u); /* 0x47065BF0: push 0x47104aa4 */
   3313     PUSH32(esp, 0x80u); /* 0x47065BF5: push 0x80 */
   3314     PUSH32(esp, esi); /* 0x47065BFA: push esi */
   3315     RECOMP_ICALL(0x47039830u); /* 0x47065BFB: call 0x47039830 */ /* not lifted */
   3316     RECOMP_FLAGS_IN();
   3317     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3318     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3319     esp = esp + 0x14u; /* 0x47065C00: add esp, 0x14 */
   3320     _flag_k = FK_ADD;
   3321 L_47065C03:
   3322     edx = MEM32(ebx + 0x48); /* 0x47065C03: mov edx, dword ptr [ebx + 0x48] */
   3323     eax = MEM32(ebx + 0x44); /* 0x47065C06: mov eax, dword ptr [ebx + 0x44] */
   3324     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(2);
   3325     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3326     edx = edx + 2; /* 0x47065C09: add edx, 2 */
   3327     _flag_k = FK_ADD;
   3328     /* cmp edx, eax */ /* 0x47065C0C: cmp edx, eax */
   3329     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   3330     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3331     _flag_k = FK_CMP;
   3332     if (CMP_B(_flag_a, _flag_b)) goto L_47065C17; /* 0x47065C0E: jb 0x47065c17 */
   3333 L_47065C10:
   3334     ecx = ebx; /* 0x47065C10: mov ecx, ebx */
   3335     RECOMP_ICALL(0x47066AE0u); /* 0x47065C12: call 0x47066ae0 */ /* not lifted */
   3336     RECOMP_FLAGS_IN();
   3337 L_47065C17:
   3338     eax = MEM32(ebx + 0x48); /* 0x47065C17: mov eax, dword ptr [ebx + 0x48] */
   3339     /* test eax, eax */ /* 0x47065C1A: test eax, eax */
   3340     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3341     _cf = 0;
   3342     _flag_k = FK_TEST;
   3343     if (TEST_NZ(_flag_a, _flag_b)) goto L_47065C26; /* 0x47065C1C: jne 0x47065c26 */
   3344 L_47065C1E:
   3345     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3346     esi = 0; /* 0x47065C1E: xor esi, esi */
   3347     _cf = 0;
   3348     _flag_k = FK_TEST;
   3349     MEM32(esp + 0x14) = esi; /* 0x47065C20: mov dword ptr [esp + 0x14], esi */
   3350     goto L_47065C31; /* 0x47065C24: jmp 0x47065c31 */
   3351 L_47065C26:
   3352     ecx = eax + (-0x1); /* 0x47065C26: lea ecx, [eax - 1] */
   3353     if (1u) _cf = (((ecx) >> 0) & 1u); /* 0x47065C29: shr ecx, 1 */
   3354     if (1u) { _flag_a = recomp_flags_pack((ecx >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3355     ecx = ecx >> 1u; /* 0x47065C29: shr ecx, 1 */
   3356     MEM32(esp + 0x14) = ecx; /* 0x47065C2B: mov dword ptr [esp + 0x14], ecx */
   3357     esi = ecx; /* 0x47065C2F: mov esi, ecx */
   3358 L_47065C31:
   3359     ebp = eax; /* 0x47065C31: mov ebp, eax */
   3360     /* test ebp, ebp */ /* 0x47065C33: test ebp, ebp */
   3361     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp);
   3362     _cf = 0;
   3363     _flag_k = FK_TEST;
   3364     MEM32(esp + 0x10) = ebp; /* 0x47065C35: mov dword ptr [esp + 0x10], ebp */
   3365     if (TEST_Z(_flag_a, _flag_b)) goto L_47065D15; /* 0x47065C39: jbe 0x47065d15 */
   3366 L_47065C3F:
   3367     goto L_47065C49; /* 0x47065C3F: jmp 0x47065c49 */
   3368 L_47065C41:
   3369     ebp = MEM32(esp + 0x10); /* 0x47065C41: mov ebp, dword ptr [esp + 0x10] */
   3370     esi = MEM32(esp + 0x14); /* 0x47065C45: mov esi, dword ptr [esp + 0x14] */
   3371 L_47065C49:
   3372     eax = MEM32(ebx + 0x50); /* 0x47065C49: mov eax, dword ptr [ebx + 0x50] */
   3373     edi = MEM32(eax + esi * 4); /* 0x47065C4C: mov edi, dword ptr [eax + esi*4] */
   3374     ecx = MEM32(esp + 0x1C); /* 0x47065C4F: mov ecx, dword ptr [esp + 0x1c] */
   3375     ecx = MEM32(ecx + 0x8); /* 0x47065C53: mov ecx, dword ptr [ecx + 8] */
   3376     edx = MEM32(edi + 0x8); /* 0x47065C56: mov edx, dword ptr [edi + 8] */
   3377     /* cmp edx, ecx */ /* 0x47065C59: cmp edx, ecx */
   3378     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   3379     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3380     _flag_k = FK_CMP;
   3381     if (CMP_G(_flag_a, _flag_b)) goto L_47065C73; /* 0x47065C5B: jg 0x47065c73 */
   3382 L_47065C5D:
   3383     if (CMP_NE(_flag_a, _flag_b)) goto L_47065D15; /* 0x47065C5D: jne 0x47065d15 */
   3384 L_47065C63:
   3385     edx = MEM32(edi + 0xC); /* 0x47065C63: mov edx, dword ptr [edi + 0xc] */
   3386     ecx = MEM32(esp + 0x1C); /* 0x47065C66: mov ecx, dword ptr [esp + 0x1c] */
   3387     /* cmp edx, MEM32(ecx + 0xC) */ /* 0x47065C6A: cmp edx, dword ptr [ecx + 0xc] */
   3388     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(MEM32(ecx + 0xC));
   3389     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3390     _flag_k = FK_CMP;
   3391     if (CMP_LE(_flag_a, _flag_b)) goto L_47065D15; /* 0x47065C6D: jle 0x47065d15 */
   3392 L_47065C73:
   3393     MEM32(eax + ebp * 4) = edi; /* 0x47065C73: mov dword ptr [eax + ebp*4], edi */
   3394     eax = MEM32(edi + 0x20); /* 0x47065C76: mov eax, dword ptr [edi + 0x20] */
   3395     /* test eax, eax */ /* 0x47065C79: test eax, eax */
   3396     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3397     _cf = 0;
   3398     _flag_k = FK_TEST;
   3399     if (TEST_S(_flag_a, _flag_b)) goto L_47065C82; /* 0x47065C7B: jl 0x47065c82 */
   3400 L_47065C7D:
   3401     /* cmp eax, MEM32(ebx + 0x44) */ /* 0x47065C7D: cmp eax, dword ptr [ebx + 0x44] */
   3402     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x44));
   3403     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3404     _flag_k = FK_CMP;
   3405     if (CMP_L(_flag_a, _flag_b)) goto L_47065CED; /* 0x47065C80: jl 0x47065ced */
   3406 L_47065C82:
   3407     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47065C82: call dword ptr [0x470ac150] */
   3408     RECOMP_FLAGS_IN();
   3409     ebp = eax; /* 0x47065C88: mov ebp, eax */
   3410     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47065C8A: call dword ptr [0x470ac3c8] */
   3411     RECOMP_FLAGS_IN();
   3412     eax = MEM32(eax); /* 0x47065C90: mov eax, dword ptr [eax] */
   3413     /* test eax, eax */ /* 0x47065C92: test eax, eax */
   3414     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3415     _cf = 0;
   3416     _flag_k = FK_TEST;
   3417     if (TEST_Z(_flag_a, _flag_b)) goto L_47065C98; /* 0x47065C94: je 0x47065c98 */
   3418 L_47065C96:
   3419     ebp = eax; /* 0x47065C96: mov ebp, eax */
   3420 L_47065C98:
   3421     RECOMP_ICALL(0x47039020u); /* 0x47065C98: call 0x47039020 */ /* not lifted */
   3422     RECOMP_FLAGS_IN();
   3423     esi = eax; /* 0x47065C9D: mov esi, eax */
   3424     ecx = esi; /* 0x47065C9F: mov ecx, esi */
   3425     RECOMP_ICALL(0x4703B210u); /* 0x47065CA1: call 0x4703b210 */ /* not lifted */
   3426     RECOMP_FLAGS_IN();
   3427     PUSH32(esp, eax); /* 0x47065CA6: push eax */
   3428     ecx = esi; /* 0x47065CA7: mov ecx, esi */
   3429     RECOMP_ICALL(0x4703B240u); /* 0x47065CA9: call 0x4703b240 */ /* not lifted */
   3430     RECOMP_FLAGS_IN();
   3431     PUSH32(esp, eax); /* 0x47065CAE: push eax */
   3432     ecx = esi; /* 0x47065CAF: mov ecx, esi */
   3433     RECOMP_ICALL(0x4703B080u); /* 0x47065CB1: call 0x4703b080 */ /* not lifted */
   3434     RECOMP_FLAGS_IN();
   3435     PUSH32(esp, eax); /* 0x47065CB6: push eax */
   3436     PUSH32(esp, ebp); /* 0x47065CB7: push ebp */
   3437     PUSH32(esp, 0xFFFFFFFFu); /* 0x47065CB8: push -1 */
   3438     PUSH32(esp, 0x125u); /* 0x47065CBA: push 0x125 */
   3439     PUSH32(esp, 0x47109750u); /* 0x47065CBF: push 0x47109750 */
   3440     ecx = esi; /* 0x47065CC4: mov ecx, esi */
   3441     RECOMP_ICALL(0x4703A340u); /* 0x47065CC6: call 0x4703a340 */ /* not lifted */
   3442     RECOMP_FLAGS_IN();
   3443     PUSH32(esp, 0xFFFFFFFFu); /* 0x47065CCB: push -1 */
   3444     PUSH32(esp, 0x47109768u); /* 0x47065CCD: push 0x47109768 */
   3445     PUSH32(esp, 0x47104AA4u); /* 0x47065CD2: push 0x47104aa4 */
   3446     PUSH32(esp, 0x80u); /* 0x47065CD7: push 0x80 */
   3447     PUSH32(esp, esi); /* 0x47065CDC: push esi */
   3448     RECOMP_ICALL(0x47039830u); /* 0x47065CDD: call 0x47039830 */ /* not lifted */
   3449     RECOMP_FLAGS_IN();
   3450     ebp = MEM32(esp + 0x24); /* 0x47065CE2: mov ebp, dword ptr [esp + 0x24] */
   3451     esi = MEM32(esp + 0x28); /* 0x47065CE6: mov esi, dword ptr [esp + 0x28] */
   3452     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3453     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3454     esp = esp + 0x14u; /* 0x47065CEA: add esp, 0x14 */
   3455     _flag_k = FK_ADD;
   3456 L_47065CED:
   3457     /* test esi, esi */ /* 0x47065CED: test esi, esi */
   3458     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(esi);
   3459     _cf = 0;
   3460     _flag_k = FK_TEST;
   3461     edx = MEM32(edi + 0x20); /* 0x47065CEF: mov edx, dword ptr [edi + 0x20] */
   3462     eax = MEM32(ebx + 0x54); /* 0x47065CF2: mov eax, dword ptr [ebx + 0x54] */
   3463     MEM32(eax + edx * 4) = ebp; /* 0x47065CF5: mov dword ptr [eax + edx*4], ebp */
   3464     MEM32(esp + 0x10) = esi; /* 0x47065CF8: mov dword ptr [esp + 0x10], esi */
   3465     if (TEST_Z(_flag_a, _flag_b)) goto L_47065D11; /* 0x47065CFC: je 0x47065d11 */
   3466 L_47065CFE:
   3467     eax = MEM32(esp + 0x10); /* 0x47065CFE: mov eax, dword ptr [esp + 0x10] */
   3468     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(1);
   3469     esi = esi - 1; /* 0x47065D02: dec esi */
   3470     _flag_k = FK_DEC;
   3471     if (1u) _cf = (((esi) >> 0) & 1u); /* 0x47065D03: shr esi, 1 */
   3472     if (1u) { _flag_a = recomp_flags_pack((esi >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3473     esi = esi >> 1u; /* 0x47065D03: shr esi, 1 */
   3474     /* test eax, eax */ /* 0x47065D05: test eax, eax */
   3475     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3476     _cf = 0;
   3477     _flag_k = FK_TEST;
   3478     MEM32(esp + 0x14) = esi; /* 0x47065D07: mov dword ptr [esp + 0x14], esi */
   3479     RECOMP_BACKEDGE();
   3480     if (TEST_NZ(_flag_a, _flag_b)) goto L_47065C41; /* 0x47065D0B: ja 0x47065c41 */
   3481 L_47065D11:
   3482     ebp = MEM32(esp + 0x10); /* 0x47065D11: mov ebp, dword ptr [esp + 0x10] */
   3483 L_47065D15:
   3484     eax = MEM32(esp + 0x1C); /* 0x47065D15: mov eax, dword ptr [esp + 0x1c] */
   3485     ecx = MEM32(ebx + 0x50); /* 0x47065D19: mov ecx, dword ptr [ebx + 0x50] */
   3486     MEM32(ecx + ebp * 4) = eax; /* 0x47065D1C: mov dword ptr [ecx + ebp*4], eax */
   3487     eax = MEM32(eax + 0x20); /* 0x47065D1F: mov eax, dword ptr [eax + 0x20] */
   3488     /* test eax, eax */ /* 0x47065D22: test eax, eax */
   3489     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3490     _cf = 0;
   3491     _flag_k = FK_TEST;
   3492     if (TEST_S(_flag_a, _flag_b)) goto L_47065D2B; /* 0x47065D24: jl 0x47065d2b */
   3493 L_47065D26:
   3494     /* cmp eax, MEM32(ebx + 0x44) */ /* 0x47065D26: cmp eax, dword ptr [ebx + 0x44] */
   3495     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x44));
   3496     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3497     _flag_k = FK_CMP;
   3498     if (CMP_L(_flag_a, _flag_b)) goto L_47065D8E; /* 0x47065D29: jl 0x47065d8e */
   3499 L_47065D2B:
   3500     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47065D2B: call dword ptr [0x470ac150] */
   3501     RECOMP_FLAGS_IN();
   3502     edi = eax; /* 0x47065D31: mov edi, eax */
   3503     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47065D33: call dword ptr [0x470ac3c8] */
   3504     RECOMP_FLAGS_IN();
   3505     eax = MEM32(eax); /* 0x47065D39: mov eax, dword ptr [eax] */
   3506     /* test eax, eax */ /* 0x47065D3B: test eax, eax */
   3507     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3508     _cf = 0;
   3509     _flag_k = FK_TEST;
   3510     if (TEST_Z(_flag_a, _flag_b)) goto L_47065D41; /* 0x47065D3D: je 0x47065d41 */
   3511 L_47065D3F:
   3512     edi = eax; /* 0x47065D3F: mov edi, eax */
   3513 L_47065D41:
   3514     RECOMP_ICALL(0x47039020u); /* 0x47065D41: call 0x47039020 */ /* not lifted */
   3515     RECOMP_FLAGS_IN();
   3516     esi = eax; /* 0x47065D46: mov esi, eax */
   3517     ecx = esi; /* 0x47065D48: mov ecx, esi */
   3518     RECOMP_ICALL(0x4703B210u); /* 0x47065D4A: call 0x4703b210 */ /* not lifted */
   3519     RECOMP_FLAGS_IN();
   3520     PUSH32(esp, eax); /* 0x47065D4F: push eax */
   3521     ecx = esi; /* 0x47065D50: mov ecx, esi */
   3522     RECOMP_ICALL(0x4703B240u); /* 0x47065D52: call 0x4703b240 */ /* not lifted */
   3523     RECOMP_FLAGS_IN();
   3524     PUSH32(esp, eax); /* 0x47065D57: push eax */
   3525     ecx = esi; /* 0x47065D58: mov ecx, esi */
   3526     RECOMP_ICALL(0x4703B080u); /* 0x47065D5A: call 0x4703b080 */ /* not lifted */
   3527     RECOMP_FLAGS_IN();
   3528     PUSH32(esp, eax); /* 0x47065D5F: push eax */
   3529     PUSH32(esp, edi); /* 0x47065D60: push edi */
   3530     PUSH32(esp, 0xFFFFFFFFu); /* 0x47065D61: push -1 */
   3531     PUSH32(esp, 0x125u); /* 0x47065D63: push 0x125 */
   3532     PUSH32(esp, 0x47109750u); /* 0x47065D68: push 0x47109750 */
   3533     ecx = esi; /* 0x47065D6D: mov ecx, esi */
   3534     RECOMP_ICALL(0x4703A340u); /* 0x47065D6F: call 0x4703a340 */ /* not lifted */
   3535     RECOMP_FLAGS_IN();
   3536     PUSH32(esp, 0xFFFFFFFFu); /* 0x47065D74: push -1 */
   3537     PUSH32(esp, 0x47109768u); /* 0x47065D76: push 0x47109768 */
   3538     PUSH32(esp, 0x47104AA4u); /* 0x47065D7B: push 0x47104aa4 */
   3539     PUSH32(esp, 0x80u); /* 0x47065D80: push 0x80 */
   3540     PUSH32(esp, esi); /* 0x47065D85: push esi */
   3541     RECOMP_ICALL(0x47039830u); /* 0x47065D86: call 0x47039830 */ /* not lifted */
   3542     RECOMP_FLAGS_IN();
   3543     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3544     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3545     esp = esp + 0x14u; /* 0x47065D8B: add esp, 0x14 */
   3546     _flag_k = FK_ADD;
   3547 L_47065D8E:
   3548     edx = MEM32(esp + 0x1C); /* 0x47065D8E: mov edx, dword ptr [esp + 0x1c] */
   3549     eax = MEM32(edx + 0x20); /* 0x47065D92: mov eax, dword ptr [edx + 0x20] */
   3550     ecx = MEM32(ebx + 0x54); /* 0x47065D95: mov ecx, dword ptr [ebx + 0x54] */
   3551     MEM32(ecx + eax * 4) = ebp; /* 0x47065D98: mov dword ptr [ecx + eax*4], ebp */
   3552     eax = MEM32(ebx + 0x48); /* 0x47065D9B: mov eax, dword ptr [ebx + 0x48] */
   3553     edi = POP32_VAL(esp); /* 0x47065D9E: pop edi */
   3554     esi = POP32_VAL(esp); /* 0x47065D9F: pop esi */
   3555     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3556     eax = eax + 1; /* 0x47065DA0: inc eax */
   3557     _flag_k = FK_INC;
   3558     ebp = POP32_VAL(esp); /* 0x47065DA1: pop ebp */
   3559     MEM32(ebx + 0x48) = eax; /* 0x47065DA2: mov dword ptr [ebx + 0x48], eax */
   3560     ebx = POP32_VAL(esp); /* 0x47065DA5: pop ebx */
   3561     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3562     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3563     esp = esp + 8; /* 0x47065DA6: add esp, 8 */
   3564     _flag_k = FK_ADD;
   3565     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47065DA9: ret 4 */
   3566     RECOMP_REGS_OUT();
   3567 }
   3568 
   3569 void sub_47065DB0(void) {
   3570     int _fpu_cmp = 0;
   3571     uint32_t _cf = 0;
   3572     int _df = 1;
   3573     uint32_t _flag_k = FK_NONE;
   3574     uint32_t _flag_a = 0, _flag_b = 0;
   3575     uint32_t _itail_tgt = 0;
   3576     RECOMP_REGS_LOCALS
   3577     RECOMP_ENTER(0x47065DB0u);
   3578 
   3579 L_47065DB0:
   3580     eax = MEM32(FS_BASE + (0)); /* 0x47065DB0: mov eax, dword ptr fs:[0] */
   3581     PUSH32(esp, 0xFFFFFFFFu); /* 0x47065DB6: push -1 */
   3582     PUSH32(esp, 0x470A845Bu); /* 0x47065DB8: push 0x470a845b */
   3583     PUSH32(esp, eax); /* 0x47065DBD: push eax */
   3584     MEM32(FS_BASE + (0)) = esp; /* 0x47065DBE: mov dword ptr fs:[0], esp */
   3585     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3586     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3587     esp = esp - 8; /* 0x47065DC5: sub esp, 8 */
   3588     _flag_k = FK_CMP;
   3589     PUSH32(esp, ebx); /* 0x47065DC8: push ebx */
   3590     ebx = ecx; /* 0x47065DC9: mov ebx, ecx */
   3591     eax = MEM32(ebx + 0x5C); /* 0x47065DCB: mov eax, dword ptr [ebx + 0x5c] */
   3592     PUSH32(esp, esi); /* 0x47065DCE: push esi */
   3593     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3594     esi = 0; /* 0x47065DCF: xor esi, esi */
   3595     _cf = 0;
   3596     _flag_k = FK_TEST;
   3597     /* cmp eax, esi */ /* 0x47065DD1: cmp eax, esi */
   3598     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   3599     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3600     _flag_k = FK_CMP;
   3601     if (CMP_NE(_flag_a, _flag_b)) goto L_47065E1A; /* 0x47065DD3: jne 0x47065e1a */
   3602 L_47065DD5:
   3603     PUSH32(esp, 0x24u); /* 0x47065DD5: push 0x24 */
   3604     RECOMP_ICALL(0x470A33F2u); /* 0x47065DD7: call 0x470a33f2 */ /* not lifted */
   3605     RECOMP_FLAGS_IN();
   3606     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3607     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3608     esp = esp + 4; /* 0x47065DDC: add esp, 4 */
   3609     _flag_k = FK_ADD;
   3610     /* cmp eax, esi */ /* 0x47065DDF: cmp eax, esi */
   3611     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   3612     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3613     _flag_k = FK_CMP;
   3614     if (CMP_EQ(_flag_a, _flag_b)) goto L_47065DF1; /* 0x47065DE1: je 0x47065df1 */
   3615 L_47065DE3:
   3616     MEM32(eax + 0x8) = esi; /* 0x47065DE3: mov dword ptr [eax + 8], esi */
   3617     MEM32(eax + 0xC) = esi; /* 0x47065DE6: mov dword ptr [eax + 0xc], esi */
   3618     MEM32(eax + 0x10) = esi; /* 0x47065DE9: mov dword ptr [eax + 0x10], esi */
   3619     MEM32(eax + 0x14) = esi; /* 0x47065DEC: mov dword ptr [eax + 0x14], esi */
   3620     goto L_47065DF3; /* 0x47065DEF: jmp 0x47065df3 */
   3621 L_47065DF1:
   3622     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3623     eax = 0; /* 0x47065DF1: xor eax, eax */
   3624     _cf = 0;
   3625     _flag_k = FK_TEST;
   3626 L_47065DF3:
   3627     /* cmp eax, esi */ /* 0x47065DF3: cmp eax, esi */
   3628     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   3629     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3630     _flag_k = FK_CMP;
   3631     if (CMP_NE(_flag_a, _flag_b)) goto L_47065FD2; /* 0x47065DF5: jne 0x47065fd2 */
   3632 L_47065DFB:
   3633     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47065DFB: call dword ptr [0x470ac3c8] */
   3634     RECOMP_FLAGS_IN();
   3635     esi = POP32_VAL(esp); /* 0x47065E01: pop esi */
   3636     MEM32(eax) = 0xCu; /* 0x47065E02: mov dword ptr [eax], 0xc */
   3637     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3638     eax = 0; /* 0x47065E08: xor eax, eax */
   3639     _cf = 0;
   3640     _flag_k = FK_TEST;
   3641     ebx = POP32_VAL(esp); /* 0x47065E0A: pop ebx */
   3642     ecx = MEM32(esp + 0x8); /* 0x47065E0B: mov ecx, dword ptr [esp + 8] */
   3643     MEM32(FS_BASE + (0)) = ecx; /* 0x47065E0F: mov dword ptr fs:[0], ecx */
   3644     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3645     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3646     esp = esp + 0x14u; /* 0x47065E16: add esp, 0x14 */
   3647     _flag_k = FK_ADD;
   3648     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47065E19: ret  */
   3649 L_47065E1A:
   3650     /* cmp MEM32(ebx + 0x60), esi */ /* 0x47065E1A: cmp dword ptr [ebx + 0x60], esi */
   3651     _flag_a = (uint32_t)(MEM32(ebx + 0x60)); _flag_b = (uint32_t)(esi);
   3652     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3653     _flag_k = FK_CMP;
   3654     PUSH32(esp, ebp); /* 0x47065E1D: push ebp */
   3655     PUSH32(esp, edi); /* 0x47065E1E: push edi */
   3656     if (CMP_NE(_flag_a, _flag_b)) goto L_47065FC7; /* 0x47065E1F: jne 0x47065fc7 */
   3657 L_47065E25:
   3658     eax = MEM32(ebx + 0x44); /* 0x47065E25: mov eax, dword ptr [ebx + 0x44] */
   3659     if (1u) _cf = (((eax) >> 31) & 1u); /* 0x47065E28: shl eax, 1 */
   3660     if (1u) { _flag_a = recomp_flags_pack((eax << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3661     eax = eax << 1u; /* 0x47065E28: shl eax, 1 */
   3662     MEM32(esp + 0x10) = eax; /* 0x47065E2A: mov dword ptr [esp + 0x10], eax */
   3663     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x47065E2E: shl eax, 2 */
   3664     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3665     eax = eax << 2u; /* 0x47065E2E: shl eax, 2 */
   3666     PUSH32(esp, eax); /* 0x47065E31: push eax */
   3667     MEM32(esp + 0x18) = eax; /* 0x47065E32: mov dword ptr [esp + 0x18], eax */
   3668     RECOMP_ICALL(0x470A33F2u); /* 0x47065E36: call 0x470a33f2 */ /* not lifted */
   3669     RECOMP_FLAGS_IN();
   3670     ebp = eax; /* 0x47065E3B: mov ebp, eax */
   3671     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3672     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3673     esp = esp + 4; /* 0x47065E3D: add esp, 4 */
   3674     _flag_k = FK_ADD;
   3675     /* cmp ebp, esi */ /* 0x47065E40: cmp ebp, esi */
   3676     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(esi);
   3677     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3678     _flag_k = FK_CMP;
   3679     if (CMP_NE(_flag_a, _flag_b)) goto L_47065E55; /* 0x47065E42: jne 0x47065e55 */
   3680 L_47065E44:
   3681     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47065E44: call dword ptr [0x470ac3c8] */
   3682     RECOMP_FLAGS_IN();
   3683     MEM32(eax) = 0xCu; /* 0x47065E4A: mov dword ptr [eax], 0xc */
   3684     goto L_47065FC7; /* 0x47065E50: jmp 0x47065fc7 */
   3685 L_47065E55:
   3686     ecx = MEM32(ebx + 0x44); /* 0x47065E55: mov ecx, dword ptr [ebx + 0x44] */
   3687     esi = MEM32(ebx + 0x50); /* 0x47065E58: mov esi, dword ptr [ebx + 0x50] */
   3688     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x47065E5B: shl ecx, 2 */
   3689     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3690     ecx = ecx << 2u; /* 0x47065E5B: shl ecx, 2 */
   3691     eax = ecx; /* 0x47065E5E: mov eax, ecx */
   3692     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47065E60: shr ecx, 2 */
   3693     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3694     ecx = ecx >> 2u; /* 0x47065E60: shr ecx, 2 */
   3695     edi = ebp; /* 0x47065E63: mov edi, ebp */
   3696     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47065E65: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   3697     ecx = eax; /* 0x47065E67: mov ecx, eax */
   3698     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3699     ecx = ecx & 3; /* 0x47065E69: and ecx, 3 */
   3700     _cf = 0;
   3701     _flag_k = FK_TEST;
   3702     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47065E6C: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   3703     eax = MEM32(ebx + 0x50); /* 0x47065E6E: mov eax, dword ptr [ebx + 0x50] */
   3704     PUSH32(esp, eax); /* 0x47065E71: push eax */
   3705     RECOMP_ICALL(0x470A32A2u); /* 0x47065E72: call 0x470a32a2 */ /* not lifted */
   3706     RECOMP_FLAGS_IN();
   3707     ecx = MEM32(esp + 0x18); /* 0x47065E77: mov ecx, dword ptr [esp + 0x18] */
   3708     PUSH32(esp, ecx); /* 0x47065E7B: push ecx */
   3709     MEM32(ebx + 0x50) = ebp; /* 0x47065E7C: mov dword ptr [ebx + 0x50], ebp */
   3710     RECOMP_ICALL(0x470A33F2u); /* 0x47065E7F: call 0x470a33f2 */ /* not lifted */
   3711     RECOMP_FLAGS_IN();
   3712     ebp = eax; /* 0x47065E84: mov ebp, eax */
   3713     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3714     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3715     esp = esp + 8; /* 0x47065E86: add esp, 8 */
   3716     _flag_k = FK_ADD;
   3717     /* test ebp, ebp */ /* 0x47065E89: test ebp, ebp */
   3718     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp);
   3719     _cf = 0;
   3720     _flag_k = FK_TEST;
   3721     if (TEST_NZ(_flag_a, _flag_b)) goto L_47065E9E; /* 0x47065E8B: jne 0x47065e9e */
   3722 L_47065E8D:
   3723     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47065E8D: call dword ptr [0x470ac3c8] */
   3724     RECOMP_FLAGS_IN();
   3725     MEM32(eax) = 0xCu; /* 0x47065E93: mov dword ptr [eax], 0xc */
   3726     goto L_47065FC7; /* 0x47065E99: jmp 0x47065fc7 */
   3727 L_47065E9E:
   3728     ecx = MEM32(ebx + 0x44); /* 0x47065E9E: mov ecx, dword ptr [ebx + 0x44] */
   3729     esi = MEM32(ebx + 0x54); /* 0x47065EA1: mov esi, dword ptr [ebx + 0x54] */
   3730     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x47065EA4: shl ecx, 2 */
   3731     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3732     ecx = ecx << 2u; /* 0x47065EA4: shl ecx, 2 */
   3733     edx = ecx; /* 0x47065EA7: mov edx, ecx */
   3734     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47065EA9: shr ecx, 2 */
   3735     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   3736     ecx = ecx >> 2u; /* 0x47065EA9: shr ecx, 2 */
   3737     edi = ebp; /* 0x47065EAC: mov edi, ebp */
   3738     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47065EAE: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   3739     ecx = edx; /* 0x47065EB0: mov ecx, edx */
   3740     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   3741     ecx = ecx & 3; /* 0x47065EB2: and ecx, 3 */
   3742     _cf = 0;
   3743     _flag_k = FK_TEST;
   3744     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47065EB5: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   3745     eax = MEM32(ebx + 0x54); /* 0x47065EB7: mov eax, dword ptr [ebx + 0x54] */
   3746     PUSH32(esp, eax); /* 0x47065EBA: push eax */
   3747     RECOMP_ICALL(0x470A32A2u); /* 0x47065EBB: call 0x470a32a2 */ /* not lifted */
   3748     RECOMP_FLAGS_IN();
   3749     eax = MEM32(ebx + 0x44); /* 0x47065EC0: mov eax, dword ptr [ebx + 0x44] */
   3750     MEM32(ebx + 0x54) = ebp; /* 0x47065EC3: mov dword ptr [ebx + 0x54], ebp */
   3751     ebp = MEM32(esp + 0x14); /* 0x47065EC6: mov ebp, dword ptr [esp + 0x14] */
   3752     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3753     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3754     esp = esp + 4; /* 0x47065ECA: add esp, 4 */
   3755     _flag_k = FK_ADD;
   3756     /* cmp eax, ebp */ /* 0x47065ECD: cmp eax, ebp */
   3757     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
   3758     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3759     _flag_k = FK_CMP;
   3760     if (CMP_AE(_flag_a, _flag_b)) goto L_47065EE2; /* 0x47065ECF: jae 0x47065ee2 */
   3761 L_47065ED1:
   3762     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   3763     ecx = ecx | 0xFFFFFFFFu; /* 0x47065ED1: or ecx, 0xffffffff */
   3764     _cf = 0;
   3765     _flag_k = FK_TEST;
   3766     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3767     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3768     ecx = ecx - eax; /* 0x47065ED4: sub ecx, eax */
   3769     _flag_k = FK_CMP;
   3770 L_47065ED6:
   3771     edx = MEM32(ebx + 0x54); /* 0x47065ED6: mov edx, dword ptr [ebx + 0x54] */
   3772     MEM32(edx + eax * 4) = ecx; /* 0x47065ED9: mov dword ptr [edx + eax*4], ecx */
   3773     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   3774     eax = eax + 1; /* 0x47065EDC: inc eax */
   3775     _flag_k = FK_INC;
   3776     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3777     ecx = ecx - 1; /* 0x47065EDD: dec ecx */
   3778     _flag_k = FK_DEC;
   3779     /* cmp eax, ebp */ /* 0x47065EDE: cmp eax, ebp */
   3780     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
   3781     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3782     _flag_k = FK_CMP;
   3783     RECOMP_BACKEDGE();
   3784     if (CMP_B(_flag_a, _flag_b)) goto L_47065ED6; /* 0x47065EE0: jb 0x47065ed6 */
   3785 L_47065EE2:
   3786     eax = MEM32(ebx + 0x5C); /* 0x47065EE2: mov eax, dword ptr [ebx + 0x5c] */
   3787     /* test eax, eax */ /* 0x47065EE5: test eax, eax */
   3788     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3789     _cf = 0;
   3790     _flag_k = FK_TEST;
   3791     esi = ebx + 0x5C; /* 0x47065EE7: lea esi, [ebx + 0x5c] */
   3792     if (TEST_Z(_flag_a, _flag_b)) goto L_47065FC4; /* 0x47065EEA: je 0x47065fc4 */
   3793 L_47065EF0:
   3794     edi = MEM32(ebx + 0x44); /* 0x47065EF0: mov edi, dword ptr [ebx + 0x44] */
   3795     eax = edi + edi * 8; /* 0x47065EF3: lea eax, [edi + edi*8] */
   3796     ecx = eax * 4 + 0x4; /* 0x47065EF6: lea ecx, [eax*4 + 4] */
   3797     PUSH32(esp, ecx); /* 0x47065EFD: push ecx */
   3798     RECOMP_ICALL(0x470A33F2u); /* 0x47065EFE: call 0x470a33f2 */ /* not lifted */
   3799     RECOMP_FLAGS_IN();
   3800     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3801     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3802     esp = esp + 4; /* 0x47065F03: add esp, 4 */
   3803     _flag_k = FK_ADD;
   3804     MEM32(esp + 0x14) = eax; /* 0x47065F06: mov dword ptr [esp + 0x14], eax */
   3805     /* test eax, eax */ /* 0x47065F0A: test eax, eax */
   3806     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3807     _cf = 0;
   3808     _flag_k = FK_TEST;
   3809     MEM32(esp + 0x20) = 0; /* 0x47065F0C: mov dword ptr [esp + 0x20], 0 */
   3810     if (TEST_Z(_flag_a, _flag_b)) goto L_47065F36; /* 0x47065F14: je 0x47065f36 */
   3811 L_47065F16:
   3812     PUSH32(esp, 0x470041D0u); /* 0x47065F16: push 0x470041d0 */
   3813     PUSH32(esp, 0x47061830u); /* 0x47065F1B: push 0x47061830 */
   3814     PUSH32(esp, edi); /* 0x47065F20: push edi */
   3815     ebp = eax + 0x4; /* 0x47065F21: lea ebp, [eax + 4] */
   3816     PUSH32(esp, 0x24u); /* 0x47065F24: push 0x24 */
   3817     PUSH32(esp, ebp); /* 0x47065F26: push ebp */
   3818     MEM32(eax) = edi; /* 0x47065F27: mov dword ptr [eax], edi */
   3819     RECOMP_ICALL(0x470A342Fu); /* 0x47065F29: call 0x470a342f */ /* not lifted */
   3820     RECOMP_FLAGS_IN();
   3821     eax = ebp; /* 0x47065F2E: mov eax, ebp */
   3822     ebp = MEM32(esp + 0x10); /* 0x47065F30: mov ebp, dword ptr [esp + 0x10] */
   3823     goto L_47065F38; /* 0x47065F34: jmp 0x47065f38 */
   3824 L_47065F36:
   3825     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3826     eax = 0; /* 0x47065F36: xor eax, eax */
   3827     _cf = 0;
   3828     _flag_k = FK_TEST;
   3829 L_47065F38:
   3830     /* test eax, eax */ /* 0x47065F38: test eax, eax */
   3831     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3832     _cf = 0;
   3833     _flag_k = FK_TEST;
   3834     MEM32(esp + 0x20) = 0xFFFFFFFFu; /* 0x47065F3A: mov dword ptr [esp + 0x20], 0xffffffff */
   3835     MEM32(esi) = eax; /* 0x47065F42: mov dword ptr [esi], eax */
   3836     if (TEST_NZ(_flag_a, _flag_b)) goto L_47065F54; /* 0x47065F44: jne 0x47065f54 */
   3837 L_47065F46:
   3838     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47065F46: call dword ptr [0x470ac3c8] */
   3839     RECOMP_FLAGS_IN();
   3840     MEM32(eax) = 0xCu; /* 0x47065F4C: mov dword ptr [eax], 0xc */
   3841     goto L_47065FC7; /* 0x47065F52: jmp 0x47065fc7 */
   3842 L_47065F54:
   3843     edi = ebx + 0x64; /* 0x47065F54: lea edi, [ebx + 0x64] */
   3844     PUSH32(esp, esi); /* 0x47065F57: push esi */
   3845     ecx = edi; /* 0x47065F58: mov ecx, edi */
   3846     RECOMP_ICALL(0x47061F60u); /* 0x47065F5A: call 0x47061f60 */ /* not lifted */
   3847     RECOMP_FLAGS_IN();
   3848     /* test eax, eax */ /* 0x47065F5F: test eax, eax */
   3849     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3850     _cf = 0;
   3851     _flag_k = FK_TEST;
   3852     if (TEST_Z(_flag_a, _flag_b)) goto L_47065F6B; /* 0x47065F61: je 0x47065f6b */
   3853 L_47065F63:
   3854     PUSH32(esp, esi); /* 0x47065F63: push esi */
   3855     ecx = edi; /* 0x47065F64: mov ecx, edi */
   3856     RECOMP_ICALL(0x47067230u); /* 0x47065F66: call 0x47067230 */ /* not lifted */
   3857     RECOMP_FLAGS_IN();
   3858 L_47065F6B:
   3859     eax = MEM32(ebx + 0x44); /* 0x47065F6B: mov eax, dword ptr [ebx + 0x44] */
   3860     ecx = 1; /* 0x47065F6E: mov ecx, 1 */
   3861     /* cmp eax, ecx */ /* 0x47065F73: cmp eax, ecx */
   3862     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3863     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3864     _flag_k = FK_CMP;
   3865     if (CMP_BE(_flag_a, _flag_b)) goto L_47065F8E; /* 0x47065F75: jbe 0x47065f8e */
   3866 L_47065F77:
   3867     edx = 0x24u; /* 0x47065F77: mov edx, 0x24 */
   3868 L_47065F7C:
   3869     eax = MEM32(esi); /* 0x47065F7C: mov eax, dword ptr [esi] */
   3870     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   3871     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3872     eax = eax + edx; /* 0x47065F7E: add eax, edx */
   3873     _flag_k = FK_ADD;
   3874     MEM32(eax + (-0x8)) = eax; /* 0x47065F80: mov dword ptr [eax - 8], eax */
   3875     eax = MEM32(ebx + 0x44); /* 0x47065F83: mov eax, dword ptr [ebx + 0x44] */
   3876     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   3877     ecx = ecx + 1; /* 0x47065F86: inc ecx */
   3878     _flag_k = FK_INC;
   3879     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x24u);
   3880     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3881     edx = edx + 0x24u; /* 0x47065F87: add edx, 0x24 */
   3882     _flag_k = FK_ADD;
   3883     /* cmp ecx, eax */ /* 0x47065F8A: cmp ecx, eax */
   3884     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   3885     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3886     _flag_k = FK_CMP;
   3887     RECOMP_BACKEDGE();
   3888     if (CMP_B(_flag_a, _flag_b)) goto L_47065F7C; /* 0x47065F8C: jb 0x47065f7c */
   3889 L_47065F8E:
   3890     eax = MEM32(ebx + 0x44); /* 0x47065F8E: mov eax, dword ptr [ebx + 0x44] */
   3891     edx = MEM32(esi); /* 0x47065F91: mov edx, dword ptr [esi] */
   3892     ecx = eax + eax * 8; /* 0x47065F93: lea ecx, [eax + eax*8] */
   3893     MEM32(edx + ecx * 4 + (-0x8)) = 0; /* 0x47065F96: mov dword ptr [edx + ecx*4 - 8], 0 */
   3894     eax = MEM32(ebx + 0x60); /* 0x47065F9E: mov eax, dword ptr [ebx + 0x60] */
   3895     /* test eax, eax */ /* 0x47065FA1: test eax, eax */
   3896     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3897     _cf = 0;
   3898     _flag_k = FK_TEST;
   3899     if (TEST_NZ(_flag_a, _flag_b)) goto L_47065FAC; /* 0x47065FA3: jne 0x47065fac */
   3900 L_47065FA5:
   3901     eax = MEM32(esi); /* 0x47065FA5: mov eax, dword ptr [esi] */
   3902     MEM32(ebx + 0x60) = eax; /* 0x47065FA7: mov dword ptr [ebx + 0x60], eax */
   3903     goto L_47065FC4; /* 0x47065FAA: jmp 0x47065fc4 */
   3904 L_47065FAC:
   3905     ecx = eax; /* 0x47065FAC: mov ecx, eax */
   3906     eax = MEM32(eax + 0x1C); /* 0x47065FAE: mov eax, dword ptr [eax + 0x1c] */
   3907     /* test eax, eax */ /* 0x47065FB1: test eax, eax */
   3908     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3909     _cf = 0;
   3910     _flag_k = FK_TEST;
   3911     if (TEST_Z(_flag_a, _flag_b)) goto L_47065FBE; /* 0x47065FB3: je 0x47065fbe */
   3912 L_47065FB5:
   3913     ecx = eax; /* 0x47065FB5: mov ecx, eax */
   3914     eax = MEM32(eax + 0x1C); /* 0x47065FB7: mov eax, dword ptr [eax + 0x1c] */
   3915     /* test eax, eax */ /* 0x47065FBA: test eax, eax */
   3916     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3917     _cf = 0;
   3918     _flag_k = FK_TEST;
   3919     RECOMP_BACKEDGE();
   3920     if (TEST_NZ(_flag_a, _flag_b)) goto L_47065FB5; /* 0x47065FBC: jne 0x47065fb5 */
   3921 L_47065FBE:
   3922     edx = MEM32(ebx + 0x5C); /* 0x47065FBE: mov edx, dword ptr [ebx + 0x5c] */
   3923     MEM32(ecx + 0x1C) = edx; /* 0x47065FC1: mov dword ptr [ecx + 0x1c], edx */
   3924 L_47065FC4:
   3925     MEM32(ebx + 0x44) = ebp; /* 0x47065FC4: mov dword ptr [ebx + 0x44], ebp */
   3926 L_47065FC7:
   3927     eax = MEM32(ebx + 0x60); /* 0x47065FC7: mov eax, dword ptr [ebx + 0x60] */
   3928     ecx = MEM32(eax + 0x1C); /* 0x47065FCA: mov ecx, dword ptr [eax + 0x1c] */
   3929     edi = POP32_VAL(esp); /* 0x47065FCD: pop edi */
   3930     MEM32(ebx + 0x60) = ecx; /* 0x47065FCE: mov dword ptr [ebx + 0x60], ecx */
   3931     ebp = POP32_VAL(esp); /* 0x47065FD1: pop ebp */
   3932 L_47065FD2:
   3933     ecx = MEM32(esp + 0x10); /* 0x47065FD2: mov ecx, dword ptr [esp + 0x10] */
   3934     esi = POP32_VAL(esp); /* 0x47065FD6: pop esi */
   3935     ebx = POP32_VAL(esp); /* 0x47065FD7: pop ebx */
   3936     MEM32(FS_BASE + (0)) = ecx; /* 0x47065FD8: mov dword ptr fs:[0], ecx */
   3937     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3938     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3939     esp = esp + 0x14u; /* 0x47065FDF: add esp, 0x14 */
   3940     _flag_k = FK_ADD;
   3941     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47065FE2: ret  */
   3942     RECOMP_REGS_OUT();
   3943 }
   3944 
   3945 void sub_47065FC7(void) {
   3946     int _fpu_cmp = 0;
   3947     uint32_t _cf = 0;
   3948     int _df = 1;
   3949     uint32_t _flag_k = FK_NONE;
   3950     uint32_t _flag_a = 0, _flag_b = 0;
   3951     uint32_t _itail_tgt = 0;
   3952     RECOMP_REGS_LOCALS
   3953     RECOMP_ENTER(0x47065FC7u);
   3954 
   3955 L_47065FC7:
   3956     eax = MEM32(ebx + 0x60); /* 0x47065FC7: mov eax, dword ptr [ebx + 0x60] */
   3957     ecx = MEM32(eax + 0x1C); /* 0x47065FCA: mov ecx, dword ptr [eax + 0x1c] */
   3958     edi = POP32_VAL(esp); /* 0x47065FCD: pop edi */
   3959     MEM32(ebx + 0x60) = ecx; /* 0x47065FCE: mov dword ptr [ebx + 0x60], ecx */
   3960     ebp = POP32_VAL(esp); /* 0x47065FD1: pop ebp */
   3961     ecx = MEM32(esp + 0x10); /* 0x47065FD2: mov ecx, dword ptr [esp + 0x10] */
   3962     esi = POP32_VAL(esp); /* 0x47065FD6: pop esi */
   3963     ebx = POP32_VAL(esp); /* 0x47065FD7: pop ebx */
   3964     MEM32(FS_BASE + (0)) = ecx; /* 0x47065FD8: mov dword ptr fs:[0], ecx */
   3965     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   3966     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3967     esp = esp + 0x14u; /* 0x47065FDF: add esp, 0x14 */
   3968     _flag_k = FK_ADD;
   3969     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47065FE2: ret  */
   3970     RECOMP_REGS_OUT();
   3971 }
   3972 
   3973 void sub_47065FF0(void) {
   3974     int _fpu_cmp = 0;
   3975     uint32_t _cf = 0;
   3976     int _df = 1;
   3977     uint32_t _flag_k = FK_NONE;
   3978     uint32_t _flag_a = 0, _flag_b = 0;
   3979     uint32_t _itail_tgt = 0;
   3980     RECOMP_REGS_LOCALS
   3981     RECOMP_ENTER(0x47065FF0u);
   3982 
   3983 L_47065FF0:
   3984     PUSH32(esp, esi); /* 0x47065FF0: push esi */
   3985     esi = ecx; /* 0x47065FF1: mov esi, ecx */
   3986     RECOMP_ICALL(0x47064B20u); /* 0x47065FF3: call 0x47064b20 */ /* not lifted */
   3987     RECOMP_FLAGS_IN();
   3988     /* test MEM8(esp + 0x8), 1 */ /* 0x47065FF8: test byte ptr [esp + 8], 1 */
   3989     _flag_a = (uint32_t)(MEM8(esp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   3990     _cf = 0;
   3991     _flag_k = FK_NARROW(FK_TEST, 24);
   3992     if (TEST_Z(_flag_a, _flag_b)) goto L_47066008; /* 0x47065FFD: je 0x47066008 */
   3993 L_47065FFF:
   3994     PUSH32(esp, esi); /* 0x47065FFF: push esi */
   3995     RECOMP_ICALL(0x470A32A2u); /* 0x47066000: call 0x470a32a2 */ /* not lifted */
   3996     RECOMP_FLAGS_IN();
   3997     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3998     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3999     esp = esp + 4; /* 0x47066005: add esp, 4 */
   4000     _flag_k = FK_ADD;
   4001 L_47066008:
   4002     eax = esi; /* 0x47066008: mov eax, esi */
   4003     esi = POP32_VAL(esp); /* 0x4706600A: pop esi */
   4004     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706600B: ret 4 */
   4005     RECOMP_REGS_OUT();
   4006 }
   4007 
   4008 void sub_47066010(void) {
   4009     int _fpu_cmp = 0;
   4010     uint32_t _cf = 0;
   4011     int _df = 1;
   4012     uint32_t _flag_k = FK_NONE;
   4013     uint32_t _flag_a = 0, _flag_b = 0;
   4014     uint32_t _itail_tgt = 0;
   4015     RECOMP_REGS_LOCALS
   4016     RECOMP_ENTER(0x47066010u);
   4017 
   4018 L_47066010:
   4019     PUSH32(esp, esi); /* 0x47066010: push esi */
   4020     esi = ecx; /* 0x47066011: mov esi, ecx */
   4021     RECOMP_ICALL(0x47064B90u); /* 0x47066013: call 0x47064b90 */ /* not lifted */
   4022     RECOMP_FLAGS_IN();
   4023     /* test MEM8(esp + 0x8), 1 */ /* 0x47066018: test byte ptr [esp + 8], 1 */
   4024     _flag_a = (uint32_t)(MEM8(esp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   4025     _cf = 0;
   4026     _flag_k = FK_NARROW(FK_TEST, 24);
   4027     if (TEST_Z(_flag_a, _flag_b)) goto L_47066028; /* 0x4706601D: je 0x47066028 */
   4028 L_4706601F:
   4029     PUSH32(esp, esi); /* 0x4706601F: push esi */
   4030     RECOMP_ICALL(0x470A32A2u); /* 0x47066020: call 0x470a32a2 */ /* not lifted */
   4031     RECOMP_FLAGS_IN();
   4032     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4033     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4034     esp = esp + 4; /* 0x47066025: add esp, 4 */
   4035     _flag_k = FK_ADD;
   4036 L_47066028:
   4037     eax = esi; /* 0x47066028: mov eax, esi */
   4038     esi = POP32_VAL(esp); /* 0x4706602A: pop esi */
   4039     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706602B: ret 4 */
   4040     RECOMP_REGS_OUT();
   4041 }
   4042 
   4043 void sub_47066030(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(0x47066030u);
   4052 
   4053 L_47066030:
   4054     PUSH32(esp, esi); /* 0x47066030: push esi */
   4055     esi = ecx; /* 0x47066031: mov esi, ecx */
   4056     RECOMP_ICALL(0x47066050u); /* 0x47066033: call 0x47066050 */ /* not lifted */
   4057     RECOMP_FLAGS_IN();
   4058     /* test MEM8(esp + 0x8), 1 */ /* 0x47066038: test byte ptr [esp + 8], 1 */
   4059     _flag_a = (uint32_t)(MEM8(esp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   4060     _cf = 0;
   4061     _flag_k = FK_NARROW(FK_TEST, 24);
   4062     if (TEST_Z(_flag_a, _flag_b)) goto L_47066048; /* 0x4706603D: je 0x47066048 */
   4063 L_4706603F:
   4064     PUSH32(esp, esi); /* 0x4706603F: push esi */
   4065     RECOMP_ICALL(0x470A32A2u); /* 0x47066040: call 0x470a32a2 */ /* not lifted */
   4066     RECOMP_FLAGS_IN();
   4067     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4068     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4069     esp = esp + 4; /* 0x47066045: add esp, 4 */
   4070     _flag_k = FK_ADD;
   4071 L_47066048:
   4072     eax = esi; /* 0x47066048: mov eax, esi */
   4073     esi = POP32_VAL(esp); /* 0x4706604A: pop esi */
   4074     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706604B: ret 4 */
   4075     RECOMP_REGS_OUT();
   4076 }
   4077 
   4078 void sub_47066050(void) {
   4079     int _fpu_cmp = 0;
   4080     uint32_t _cf = 0;
   4081     int _df = 1;
   4082     uint32_t _flag_k = FK_NONE;
   4083     uint32_t _flag_a = 0, _flag_b = 0;
   4084     uint32_t _itail_tgt = 0;
   4085     RECOMP_REGS_LOCALS
   4086     RECOMP_ENTER(0x47066050u);
   4087 
   4088 L_47066050:
   4089     PUSH32(esp, 0xFFFFFFFFu); /* 0x47066050: push -1 */
   4090     PUSH32(esp, 0x470A848Eu); /* 0x47066052: push 0x470a848e */
   4091     eax = MEM32(FS_BASE + (0)); /* 0x47066057: mov eax, dword ptr fs:[0] */
   4092     PUSH32(esp, eax); /* 0x4706605D: push eax */
   4093     MEM32(FS_BASE + (0)) = esp; /* 0x4706605E: mov dword ptr fs:[0], esp */
   4094     PUSH32(esp, ecx); /* 0x47066065: push ecx */
   4095     PUSH32(esp, esi); /* 0x47066066: push esi */
   4096     esi = ecx; /* 0x47066067: mov esi, ecx */
   4097     MEM32(esp + 0x4) = esi; /* 0x47066069: mov dword ptr [esp + 4], esi */
   4098     MEM32(esi) = 0x470AE938u; /* 0x4706606D: mov dword ptr [esi], 0x470ae938 */
   4099     ecx = MEM32(esi + 0x4C); /* 0x47066073: mov ecx, dword ptr [esi + 0x4c] */
   4100     /* test ecx, ecx */ /* 0x47066076: test ecx, ecx */
   4101     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4102     _cf = 0;
   4103     _flag_k = FK_TEST;
   4104     MEM32(esp + 0x10) = 1; /* 0x47066078: mov dword ptr [esp + 0x10], 1 */
   4105     if (TEST_Z(_flag_a, _flag_b)) goto L_47066088; /* 0x47066080: je 0x47066088 */
   4106 L_47066082:
   4107     eax = MEM32(ecx); /* 0x47066082: mov eax, dword ptr [ecx] */
   4108     PUSH32(esp, 1); /* 0x47066084: push 1 */
   4109     RECOMP_ICALL(MEM32(eax)); /* 0x47066086: call dword ptr [eax] */
   4110     RECOMP_FLAGS_IN();
   4111 L_47066088:
   4112     eax = MEM32(esi + 0x48); /* 0x47066088: mov eax, dword ptr [esi + 0x48] */
   4113     PUSH32(esp, edi); /* 0x4706608B: push edi */
   4114     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4115     edi = 0; /* 0x4706608C: xor edi, edi */
   4116     _cf = 0;
   4117     _flag_k = FK_TEST;
   4118     /* test eax, eax */ /* 0x4706608E: test eax, eax */
   4119     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4120     _cf = 0;
   4121     _flag_k = FK_TEST;
   4122     if (TEST_Z(_flag_a, _flag_b)) goto L_470660BF; /* 0x47066090: jbe 0x470660bf */
   4123 L_47066092:
   4124     ecx = MEM32(esi + 0x50); /* 0x47066092: mov ecx, dword ptr [esi + 0x50] */
   4125     eax = MEM32(ecx + edi * 4); /* 0x47066095: mov eax, dword ptr [ecx + edi*4] */
   4126     ecx = MEM32(esi + 0x5C); /* 0x47066098: mov ecx, dword ptr [esi + 0x5c] */
   4127     /* test ecx, ecx */ /* 0x4706609B: test ecx, ecx */
   4128     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4129     _cf = 0;
   4130     _flag_k = FK_TEST;
   4131     if (TEST_NZ(_flag_a, _flag_b)) goto L_470660AE; /* 0x4706609D: jne 0x470660ae */
   4132 L_4706609F:
   4133     /* test eax, eax */ /* 0x4706609F: test eax, eax */
   4134     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4135     _cf = 0;
   4136     _flag_k = FK_TEST;
   4137     if (TEST_Z(_flag_a, _flag_b)) goto L_470660B7; /* 0x470660A1: je 0x470660b7 */
   4138 L_470660A3:
   4139     PUSH32(esp, eax); /* 0x470660A3: push eax */
   4140     RECOMP_ICALL(0x470A32A2u); /* 0x470660A4: call 0x470a32a2 */ /* not lifted */
   4141     RECOMP_FLAGS_IN();
   4142     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4143     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4144     esp = esp + 4; /* 0x470660A9: add esp, 4 */
   4145     _flag_k = FK_ADD;
   4146     goto L_470660B7; /* 0x470660AC: jmp 0x470660b7 */
   4147 L_470660AE:
   4148     ecx = MEM32(esi + 0x60); /* 0x470660AE: mov ecx, dword ptr [esi + 0x60] */
   4149     MEM32(eax + 0x1C) = ecx; /* 0x470660B1: mov dword ptr [eax + 0x1c], ecx */
   4150     MEM32(esi + 0x60) = eax; /* 0x470660B4: mov dword ptr [esi + 0x60], eax */
   4151 L_470660B7:
   4152     eax = MEM32(esi + 0x48); /* 0x470660B7: mov eax, dword ptr [esi + 0x48] */
   4153     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   4154     edi = edi + 1; /* 0x470660BA: inc edi */
   4155     _flag_k = FK_INC;
   4156     /* cmp edi, eax */ /* 0x470660BB: cmp edi, eax */
   4157     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4158     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4159     _flag_k = FK_CMP;
   4160     RECOMP_BACKEDGE();
   4161     if (CMP_B(_flag_a, _flag_b)) goto L_47066092; /* 0x470660BD: jb 0x47066092 */
   4162 L_470660BF:
   4163     eax = MEM32(esi + 0x50); /* 0x470660BF: mov eax, dword ptr [esi + 0x50] */
   4164     PUSH32(esp, eax); /* 0x470660C2: push eax */
   4165     RECOMP_ICALL(0x470A32A2u); /* 0x470660C3: call 0x470a32a2 */ /* not lifted */
   4166     RECOMP_FLAGS_IN();
   4167     eax = MEM32(esi + 0x54); /* 0x470660C8: mov eax, dword ptr [esi + 0x54] */
   4168     PUSH32(esp, eax); /* 0x470660CB: push eax */
   4169     RECOMP_ICALL(0x470A32A2u); /* 0x470660CC: call 0x470a32a2 */ /* not lifted */
   4170     RECOMP_FLAGS_IN();
   4171     eax = MEM32(esi + 0x5C); /* 0x470660D1: mov eax, dword ptr [esi + 0x5c] */
   4172     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   4173     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4174     esp = esp + 8; /* 0x470660D4: add esp, 8 */
   4175     _flag_k = FK_ADD;
   4176     /* test eax, eax */ /* 0x470660D7: test eax, eax */
   4177     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4178     _cf = 0;
   4179     _flag_k = FK_TEST;
   4180     if (TEST_Z(_flag_a, _flag_b)) goto L_47066110; /* 0x470660D9: je 0x47066110 */
   4181 L_470660DB:
   4182     edx = MEM32(esi + 0x64); /* 0x470660DB: mov edx, dword ptr [esi + 0x64] */
   4183     PUSH32(esp, ebp); /* 0x470660DE: push ebp */
   4184     ebp = MEM32(edx); /* 0x470660DF: mov ebp, dword ptr [edx] */
   4185 L_470660E1:
   4186     /* cmp ebp, MEM32(esi + 0x64) */ /* 0x470660E1: cmp ebp, dword ptr [esi + 0x64] */
   4187     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(MEM32(esi + 0x64));
   4188     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4189     _flag_k = FK_CMP;
   4190     if (CMP_EQ(_flag_a, _flag_b)) goto L_4706610F; /* 0x470660E4: je 0x4706610f */
   4191 L_470660E6:
   4192     eax = MEM32(ebp + 0x4); /* 0x470660E6: mov eax, dword ptr [ebp + 4] */
   4193     /* test eax, eax */ /* 0x470660E9: test eax, eax */
   4194     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4195     _cf = 0;
   4196     _flag_k = FK_TEST;
   4197     if (TEST_Z(_flag_a, _flag_b)) goto L_4706610A; /* 0x470660EB: je 0x4706610a */
   4198 L_470660ED:
   4199     ecx = MEM32(eax + (-0x4)); /* 0x470660ED: mov ecx, dword ptr [eax - 4] */
   4200     edi = eax + (-0x4); /* 0x470660F0: lea edi, [eax - 4] */
   4201     PUSH32(esp, 0x470041D0u); /* 0x470660F3: push 0x470041d0 */
   4202     PUSH32(esp, ecx); /* 0x470660F8: push ecx */
   4203     PUSH32(esp, 0x24u); /* 0x470660F9: push 0x24 */
   4204     PUSH32(esp, eax); /* 0x470660FB: push eax */
   4205     RECOMP_ICALL(0x470A32EBu); /* 0x470660FC: call 0x470a32eb */ /* not lifted */
   4206     RECOMP_FLAGS_IN();
   4207     PUSH32(esp, edi); /* 0x47066101: push edi */
   4208     RECOMP_ICALL(0x470A32A2u); /* 0x47066102: call 0x470a32a2 */ /* not lifted */
   4209     RECOMP_FLAGS_IN();
   4210     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4211     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4212     esp = esp + 4; /* 0x47066107: add esp, 4 */
   4213     _flag_k = FK_ADD;
   4214 L_4706610A:
   4215     ebp = MEM32(ebp); /* 0x4706610A: mov ebp, dword ptr [ebp] */
   4216     RECOMP_BACKEDGE();
   4217     goto L_470660E1; /* 0x4706610D: jmp 0x470660e1 */
   4218 L_4706610F:
   4219     ebp = POP32_VAL(esp); /* 0x4706610F: pop ebp */
   4220 L_47066110:
   4221     eax = MEM32(esi + 0x64); /* 0x47066110: mov eax, dword ptr [esi + 0x64] */
   4222     edi = MEM32(eax); /* 0x47066113: mov edi, dword ptr [eax] */
   4223     /* cmp edi, eax */ /* 0x47066115: cmp edi, eax */
   4224     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4225     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4226     _flag_k = FK_CMP;
   4227     MEM8(esp + 0x14) = (uint8_t)(0); /* 0x47066117: mov byte ptr [esp + 0x14], 0 */
   4228     if (CMP_EQ(_flag_a, _flag_b)) goto L_4706613D; /* 0x4706611C: je 0x4706613d */
   4229 L_4706611E:
   4230     eax = edi; /* 0x4706611E: mov eax, edi */
   4231     /* test eax, eax */ /* 0x47066120: test eax, eax */
   4232     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4233     _cf = 0;
   4234     _flag_k = FK_TEST;
   4235     edi = MEM32(edi); /* 0x47066122: mov edi, dword ptr [edi] */
   4236     if (TEST_Z(_flag_a, _flag_b)) goto L_4706612F; /* 0x47066124: je 0x4706612f */
   4237 L_47066126:
   4238     ecx = MEM32(esi + 0x6C); /* 0x47066126: mov ecx, dword ptr [esi + 0x6c] */
   4239     edx = MEM32(ecx); /* 0x47066129: mov edx, dword ptr [ecx] */
   4240     PUSH32(esp, eax); /* 0x4706612B: push eax */
   4241     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x4706612C: call dword ptr [edx + 0xc] */
   4242     RECOMP_FLAGS_IN();
   4243 L_4706612F:
   4244     ecx = MEM32(esi + 0x68); /* 0x4706612F: mov ecx, dword ptr [esi + 0x68] */
   4245     eax = MEM32(esi + 0x64); /* 0x47066132: mov eax, dword ptr [esi + 0x64] */
   4246     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   4247     ecx = ecx - 1; /* 0x47066135: dec ecx */
   4248     _flag_k = FK_DEC;
   4249     /* cmp edi, eax */ /* 0x47066136: cmp edi, eax */
   4250     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   4251     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4252     _flag_k = FK_CMP;
   4253     MEM32(esi + 0x68) = ecx; /* 0x47066138: mov dword ptr [esi + 0x68], ecx */
   4254     RECOMP_BACKEDGE();
   4255     if (CMP_NE(_flag_a, _flag_b)) goto L_4706611E; /* 0x4706613B: jne 0x4706611e */
   4256 L_4706613D:
   4257     eax = MEM32(esi + 0x64); /* 0x4706613D: mov eax, dword ptr [esi + 0x64] */
   4258     MEM32(eax) = eax; /* 0x47066140: mov dword ptr [eax], eax */
   4259     eax = MEM32(esi + 0x64); /* 0x47066142: mov eax, dword ptr [esi + 0x64] */
   4260     /* test eax, eax */ /* 0x47066145: test eax, eax */
   4261     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4262     _cf = 0;
   4263     _flag_k = FK_TEST;
   4264     edi = POP32_VAL(esp); /* 0x47066147: pop edi */
   4265     if (TEST_Z(_flag_a, _flag_b)) goto L_47066153; /* 0x47066148: je 0x47066153 */
   4266 L_4706614A:
   4267     ecx = MEM32(esi + 0x6C); /* 0x4706614A: mov ecx, dword ptr [esi + 0x6c] */
   4268     edx = MEM32(ecx); /* 0x4706614D: mov edx, dword ptr [ecx] */
   4269     PUSH32(esp, eax); /* 0x4706614F: push eax */
   4270     RECOMP_ICALL(MEM32(edx + 0xC)); /* 0x47066150: call dword ptr [edx + 0xc] */
   4271     RECOMP_FLAGS_IN();
   4272 L_47066153:
   4273     MEM32(esi + 0x64) = 0; /* 0x47066153: mov dword ptr [esi + 0x64], 0 */
   4274     MEM32(esi) = 0x470AE980u; /* 0x4706615A: mov dword ptr [esi], 0x470ae980 */
   4275     eax = MEM32(esi + 0x2C); /* 0x47066160: mov eax, dword ptr [esi + 0x2c] */
   4276     /* test eax, eax */ /* 0x47066163: test eax, eax */
   4277     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4278     _cf = 0;
   4279     _flag_k = FK_TEST;
   4280     MEM32(esp + 0x10) = 2; /* 0x47066165: mov dword ptr [esp + 0x10], 2 */
   4281     if (TEST_Z(_flag_a, _flag_b)) goto L_4706617B; /* 0x4706616D: je 0x4706617b */
   4282 L_4706616F:
   4283     eax = MEM32(esi + 0x28); /* 0x4706616F: mov eax, dword ptr [esi + 0x28] */
   4284     PUSH32(esp, eax); /* 0x47066172: push eax */
   4285     RECOMP_ICALL(0x470A32A2u); /* 0x47066173: call 0x470a32a2 */ /* not lifted */
   4286     RECOMP_FLAGS_IN();
   4287     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   4288     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4289     esp = esp + 4; /* 0x47066178: add esp, 4 */
   4290     _flag_k = FK_ADD;
   4291 L_4706617B:
   4292     eax = MEM32(esi + 0x30); /* 0x4706617B: mov eax, dword ptr [esi + 0x30] */
   4293     /* test eax, eax */ /* 0x4706617E: test eax, eax */
   4294     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4295     _cf = 0;
   4296     _flag_k = FK_TEST;
   4297     if (TEST_Z(_flag_a, _flag_b)) goto L_4706618F; /* 0x47066180: je 0x4706618f */
   4298 L_47066182:
   4299     ecx = MEM32(esi + 0x20); /* 0x47066182: mov ecx, dword ptr [esi + 0x20] */
   4300     /* test ecx, ecx */ /* 0x47066185: test ecx, ecx */
   4301     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4302     _cf = 0;
   4303     _flag_k = FK_TEST;
   4304     if (TEST_Z(_flag_a, _flag_b)) goto L_4706618F; /* 0x47066187: je 0x4706618f */
   4305 L_47066189:
   4306     eax = MEM32(ecx); /* 0x47066189: mov eax, dword ptr [ecx] */
   4307     PUSH32(esp, 1); /* 0x4706618B: push 1 */
   4308     RECOMP_ICALL(MEM32(eax)); /* 0x4706618D: call dword ptr [eax] */
   4309     RECOMP_FLAGS_IN();
   4310 L_4706618F:
   4311     ecx = esi + 0x4; /* 0x4706618F: lea ecx, [esi + 4] */
   4312     MEM32(esp + 0x10) = 0xFFFFFFFFu; /* 0x47066192: mov dword ptr [esp + 0x10], 0xffffffff */
   4313     RECOMP_ICALL(0x47087E30u); /* 0x4706619A: call 0x47087e30 */ /* not lifted */
   4314     RECOMP_FLAGS_IN();
   4315     ecx = MEM32(esp + 0x8); /* 0x4706619F: mov ecx, dword ptr [esp + 8] */
   4316     esi = POP32_VAL(esp); /* 0x470661A3: pop esi */
   4317     MEM32(FS_BASE + (0)) = ecx; /* 0x470661A4: mov dword ptr fs:[0], ecx */
   4318     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   4319     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4320     esp = esp + 0x10u; /* 0x470661AB: add esp, 0x10 */
   4321     _flag_k = FK_ADD;
   4322     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470661AE: ret  */
   4323     RECOMP_REGS_OUT();
   4324 }
   4325 
   4326 void sub_470661B0(void) {
   4327     int _fpu_cmp = 0;
   4328     uint32_t _cf = 0;
   4329     int _df = 1;
   4330     uint32_t _flag_k = FK_NONE;
   4331     uint32_t _flag_a = 0, _flag_b = 0;
   4332     uint32_t _itail_tgt = 0;
   4333     RECOMP_REGS_LOCALS
   4334     RECOMP_ENTER(0x470661B0u);
   4335 
   4336 L_470661B0:
   4337     eax = MEM32(FS_BASE + (0)); /* 0x470661B0: mov eax, dword ptr fs:[0] */
   4338     PUSH32(esp, 0xFFFFFFFFu); /* 0x470661B6: push -1 */
   4339     PUSH32(esp, 0x470A84C9u); /* 0x470661B8: push 0x470a84c9 */
   4340     PUSH32(esp, eax); /* 0x470661BD: push eax */
   4341     MEM32(FS_BASE + (0)) = esp; /* 0x470661BE: mov dword ptr fs:[0], esp */
   4342     eax = ecx; /* 0x470661C5: mov eax, ecx */
   4343     ecx = eax + 0x28; /* 0x470661C7: lea ecx, [eax + 0x28] */
   4344     MEM32(eax + 0x2C) = ecx; /* 0x470661CA: mov dword ptr [eax + 0x2c], ecx */
   4345     MEM32(eax + 0x30) = ecx; /* 0x470661CD: mov dword ptr [eax + 0x30], ecx */
   4346     ecx = MEM32(esp + 0x10); /* 0x470661D0: mov ecx, dword ptr [esp + 0x10] */
   4347     edx = MEM32(esp + 0x14); /* 0x470661D4: mov edx, dword ptr [esp + 0x14] */
   4348     MEM32(eax + 0x10) = ecx; /* 0x470661D8: mov dword ptr [eax + 0x10], ecx */
   4349     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   4350     ecx = 0; /* 0x470661DB: xor ecx, ecx */
   4351     _cf = 0;
   4352     _flag_k = FK_TEST;
   4353     MEM32(eax + 0x20) = ecx; /* 0x470661DD: mov dword ptr [eax + 0x20], ecx */
   4354     MEM32(eax + 0x14) = ecx; /* 0x470661E0: mov dword ptr [eax + 0x14], ecx */
   4355     MEM32(eax + 0x18) = ecx; /* 0x470661E3: mov dword ptr [eax + 0x18], ecx */
   4356     MEM32(eax + 0x1C) = ecx; /* 0x470661E6: mov dword ptr [eax + 0x1c], ecx */
   4357     MEM32(eax + 0x8) = ecx; /* 0x470661E9: mov dword ptr [eax + 8], ecx */
   4358     MEM32(eax + 0x4) = ecx; /* 0x470661EC: mov dword ptr [eax + 4], ecx */
   4359     ecx = MEM32(esp + 0x18); /* 0x470661EF: mov ecx, dword ptr [esp + 0x18] */
   4360     MEM32(eax + 0x24) = ecx; /* 0x470661F3: mov dword ptr [eax + 0x24], ecx */
   4361     ecx = MEM32(esp); /* 0x470661F6: mov ecx, dword ptr [esp] */
   4362     MEM32(eax) = 0x470AE7BCu; /* 0x470661FA: mov dword ptr [eax], 0x470ae7bc */
   4363     MEM32(eax + 0xC) = edx; /* 0x47066200: mov dword ptr [eax + 0xc], edx */
   4364     MEM32(FS_BASE + (0)) = ecx; /* 0x47066203: mov dword ptr fs:[0], ecx */
   4365     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4366     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4367     esp = esp + 0xCu; /* 0x4706620A: add esp, 0xc */
   4368     _flag_k = FK_ADD;
   4369     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x4706620D: ret 0xc */
   4370     RECOMP_REGS_OUT();
   4371 }
   4372 
   4373 void sub_47066210(void) {
   4374     int _fpu_cmp = 0;
   4375     uint32_t _cf = 0;
   4376     int _df = 1;
   4377     uint32_t _flag_k = FK_NONE;
   4378     uint32_t _flag_a = 0, _flag_b = 0;
   4379     uint32_t _itail_tgt = 0;
   4380     RECOMP_REGS_LOCALS
   4381     RECOMP_ENTER(0x47066210u);
   4382 
   4383 L_47066210:
   4384     eax = MEM32(FS_BASE + (0)); /* 0x47066210: mov eax, dword ptr fs:[0] */
   4385     PUSH32(esp, 0xFFFFFFFFu); /* 0x47066216: push -1 */
   4386     PUSH32(esp, 0x470A84E8u); /* 0x47066218: push 0x470a84e8 */
   4387     PUSH32(esp, eax); /* 0x4706621D: push eax */
   4388     MEM32(FS_BASE + (0)) = esp; /* 0x4706621E: mov dword ptr fs:[0], esp */
   4389     PUSH32(esp, ebx); /* 0x47066225: push ebx */
   4390     PUSH32(esp, esi); /* 0x47066226: push esi */
   4391     esi = ecx; /* 0x47066227: mov esi, ecx */
   4392     eax = MEM32(esi); /* 0x47066229: mov eax, dword ptr [esi] */
   4393     MEM32(esp + 0x10) = 0; /* 0x4706622B: mov dword ptr [esp + 0x10], 0 */
   4394     RECOMP_ICALL(MEM32(eax + 0x88)); /* 0x47066233: call dword ptr [eax + 0x88] */
   4395     RECOMP_FLAGS_IN();
   4396     ecx = MEM32(esi + 0x4); /* 0x47066239: mov ecx, dword ptr [esi + 4] */
   4397     /* test ecx, ecx */ /* 0x4706623C: test ecx, ecx */
   4398     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4399     _cf = 0;
   4400     _flag_k = FK_TEST;
   4401     ebx = eax; /* 0x4706623E: mov ebx, eax */
   4402     MEM32(esi + 0x8) = 0; /* 0x47066240: mov dword ptr [esi + 8], 0 */
   4403     if (TEST_Z(_flag_a, _flag_b)) goto L_47066279; /* 0x47066247: je 0x47066279 */
   4404 L_47066249:
   4405     _flag_a = (uint32_t)(MEM32(esi + 0x1C)); _flag_b = (uint32_t)(1);
   4406     MEM32(esi + 0x1C) = MEM32(esi + 0x1C) - 1; /* 0x47066249: dec dword ptr [esi + 0x1c] */
   4407     _flag_k = FK_DEC;
   4408     RECOMP_ICALL(0x47043FB0u); /* 0x4706624C: call 0x47043fb0 */ /* not lifted */
   4409     RECOMP_FLAGS_IN();
   4410     edx = MEM32(esi + 0x14); /* 0x47066251: mov edx, dword ptr [esi + 0x14] */
   4411     ecx = MEM32(esi + 0x4); /* 0x47066254: mov ecx, dword ptr [esi + 4] */
   4412     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   4413     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4414     edx = edx - eax; /* 0x47066257: sub edx, eax */
   4415     _flag_k = FK_CMP;
   4416     MEM32(esi + 0x14) = edx; /* 0x47066259: mov dword ptr [esi + 0x14], edx */
   4417     RECOMP_ICALL(0x47043FD0u); /* 0x4706625C: call 0x47043fd0 */ /* not lifted */
   4418     RECOMP_FLAGS_IN();
   4419     _flag_a = (uint32_t)(MEM32(esi + 0x18)); _flag_b = (uint32_t)(eax);
   4420     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4421     MEM32(esi + 0x18) = MEM32(esi + 0x18) - eax; /* 0x47066261: sub dword ptr [esi + 0x18], eax */
   4422     _flag_k = FK_CMP;
   4423     ecx = MEM32(esi + 0x4); /* 0x47066264: mov ecx, dword ptr [esi + 4] */
   4424     edx = MEM32(ecx + 0x24); /* 0x47066267: mov edx, dword ptr [ecx + 0x24] */
   4425     MEM32(esi + 0x4) = edx; /* 0x4706626A: mov dword ptr [esi + 4], edx */
   4426     RECOMP_ICALL(0x47044BD0u); /* 0x4706626D: call 0x47044bd0 */ /* not lifted */
   4427     RECOMP_FLAGS_IN();
   4428     ecx = MEM32(esi + 0x4); /* 0x47066272: mov ecx, dword ptr [esi + 4] */
   4429     /* test ecx, ecx */ /* 0x47066275: test ecx, ecx */
   4430     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   4431     _cf = 0;
   4432     _flag_k = FK_TEST;
   4433     RECOMP_BACKEDGE();
   4434     if (TEST_NZ(_flag_a, _flag_b)) goto L_47066249; /* 0x47066277: jne 0x47066249 */
   4435 L_47066279:
   4436     ecx = MEM32(esp + 0x8); /* 0x47066279: mov ecx, dword ptr [esp + 8] */
   4437     esi = POP32_VAL(esp); /* 0x4706627D: pop esi */
   4438     eax = ebx; /* 0x4706627E: mov eax, ebx */
   4439     MEM32(FS_BASE + (0)) = ecx; /* 0x47066280: mov dword ptr fs:[0], ecx */
   4440     ebx = POP32_VAL(esp); /* 0x47066287: pop ebx */
   4441     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4442     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4443     esp = esp + 0xCu; /* 0x47066288: add esp, 0xc */
   4444     _flag_k = FK_ADD;
   4445     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706628B: ret  */
   4446     RECOMP_REGS_OUT();
   4447 }
   4448 
   4449 void sub_47066290(void) {
   4450     int _fpu_cmp = 0;
   4451     uint32_t _cf = 0;
   4452     int _df = 1;
   4453     uint32_t _flag_k = FK_NONE;
   4454     uint32_t _flag_a = 0, _flag_b = 0;
   4455     uint32_t _itail_tgt = 0;
   4456     RECOMP_REGS_LOCALS
   4457     RECOMP_ENTER(0x47066290u);
   4458 
   4459 L_47066290:
   4460     eax = MEM32(FS_BASE + (0)); /* 0x47066290: mov eax, dword ptr fs:[0] */
   4461     PUSH32(esp, 0xFFFFFFFFu); /* 0x47066296: push -1 */
   4462     PUSH32(esp, 0x470A8508u); /* 0x47066298: push 0x470a8508 */
   4463     PUSH32(esp, eax); /* 0x4706629D: push eax */
   4464     MEM32(FS_BASE + (0)) = esp; /* 0x4706629E: mov dword ptr fs:[0], esp */
   4465     PUSH32(esp, esi); /* 0x470662A5: push esi */
   4466     esi = ecx; /* 0x470662A6: mov esi, ecx */
   4467     eax = MEM32(esi + 0x20); /* 0x470662A8: mov eax, dword ptr [esi + 0x20] */
   4468     /* test eax, eax */ /* 0x470662AB: test eax, eax */
   4469     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4470     _cf = 0;
   4471     _flag_k = FK_TEST;
   4472     MEM32(esp + 0xC) = 0; /* 0x470662AD: mov dword ptr [esp + 0xc], 0 */
   4473     if (TEST_Z(_flag_a, _flag_b)) goto L_470662D8; /* 0x470662B5: je 0x470662d8 */
   4474 L_470662B7:
   4475     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470662B7: call dword ptr [0x470ac3c8] */
   4476     RECOMP_FLAGS_IN();
   4477     MEM32(eax) = 0x274Au; /* 0x470662BD: mov dword ptr [eax], 0x274a */
   4478     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4479     eax = eax | 0xFFFFFFFFu; /* 0x470662C3: or eax, 0xffffffff */
   4480     _cf = 0;
   4481     _flag_k = FK_TEST;
   4482     ecx = MEM32(esp + 0x4); /* 0x470662C6: mov ecx, dword ptr [esp + 4] */
   4483     MEM32(FS_BASE + (0)) = ecx; /* 0x470662CA: mov dword ptr fs:[0], ecx */
   4484     esi = POP32_VAL(esp); /* 0x470662D1: pop esi */
   4485     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4486     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4487     esp = esp + 0xCu; /* 0x470662D2: add esp, 0xc */
   4488     _flag_k = FK_ADD;
   4489     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470662D5: ret 8 */
   4490 L_470662D8:
   4491     ecx = MEM32(esp + 0x18); /* 0x470662D8: mov ecx, dword ptr [esp + 0x18] */
   4492     eax = MEM32(esi); /* 0x470662DC: mov eax, dword ptr [esi] */
   4493     PUSH32(esp, ecx); /* 0x470662DE: push ecx */
   4494     edx = esp + 0x1C; /* 0x470662DF: lea edx, [esp + 0x1c] */
   4495     PUSH32(esp, edx); /* 0x470662E3: push edx */
   4496     ecx = esi; /* 0x470662E4: mov ecx, esi */
   4497     RECOMP_ICALL(MEM32(eax + 0x94)); /* 0x470662E6: call dword ptr [eax + 0x94] */
   4498     RECOMP_FLAGS_IN();
   4499     /* cmp eax, 0xFFFFFFFFu */ /* 0x470662EC: cmp eax, -1 */
   4500     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4501     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4502     _flag_k = FK_CMP;
   4503     if (CMP_NE(_flag_a, _flag_b)) goto L_47066305; /* 0x470662EF: jne 0x47066305 */
   4504 L_470662F1:
   4505     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   4506     eax = eax | eax; /* 0x470662F1: or eax, eax */
   4507     _cf = 0;
   4508     _flag_k = FK_TEST;
   4509     ecx = MEM32(esp + 0x4); /* 0x470662F3: mov ecx, dword ptr [esp + 4] */
   4510     MEM32(FS_BASE + (0)) = ecx; /* 0x470662F7: mov dword ptr fs:[0], ecx */
   4511     esi = POP32_VAL(esp); /* 0x470662FE: pop esi */
   4512     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4513     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4514     esp = esp + 0xCu; /* 0x470662FF: add esp, 0xc */
   4515     _flag_k = FK_ADD;
   4516     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47066302: ret 8 */
   4517 L_47066305:
   4518     eax = MEM32(esi + 0x4); /* 0x47066305: mov eax, dword ptr [esi + 4] */
   4519     ecx = MEM32(esp + 0x14); /* 0x47066308: mov ecx, dword ptr [esp + 0x14] */
   4520     MEM32(ecx) = eax; /* 0x4706630C: mov dword ptr [ecx], eax */
   4521     eax = MEM32(esi + 0x1C); /* 0x4706630E: mov eax, dword ptr [esi + 0x1c] */
   4522     ecx = MEM32(esp + 0x4); /* 0x47066311: mov ecx, dword ptr [esp + 4] */
   4523     MEM32(FS_BASE + (0)) = ecx; /* 0x47066315: mov dword ptr fs:[0], ecx */
   4524     esi = POP32_VAL(esp); /* 0x4706631C: pop esi */
   4525     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4526     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4527     esp = esp + 0xCu; /* 0x4706631D: add esp, 0xc */
   4528     _flag_k = FK_ADD;
   4529     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47066320: ret 8 */
   4530     RECOMP_REGS_OUT();
   4531 }
   4532 
   4533 void sub_47066330(void) {
   4534     int _fpu_cmp = 0;
   4535     uint32_t _cf = 0;
   4536     int _df = 1;
   4537     uint32_t _flag_k = FK_NONE;
   4538     uint32_t _flag_a = 0, _flag_b = 0;
   4539     uint32_t _itail_tgt = 0;
   4540     RECOMP_REGS_LOCALS
   4541     RECOMP_ENTER(0x47066330u);
   4542 
   4543 L_47066330:
   4544     eax = MEM32(FS_BASE + (0)); /* 0x47066330: mov eax, dword ptr fs:[0] */
   4545     PUSH32(esp, 0xFFFFFFFFu); /* 0x47066336: push -1 */
   4546     PUSH32(esp, 0x470A8528u); /* 0x47066338: push 0x470a8528 */
   4547     PUSH32(esp, eax); /* 0x4706633D: push eax */
   4548     MEM32(FS_BASE + (0)) = esp; /* 0x4706633E: mov dword ptr fs:[0], esp */
   4549     PUSH32(esp, esi); /* 0x47066345: push esi */
   4550     PUSH32(esp, edi); /* 0x47066346: push edi */
   4551     esi = ecx; /* 0x47066347: mov esi, ecx */
   4552     eax = MEM32(esi + 0x20); /* 0x47066349: mov eax, dword ptr [esi + 0x20] */
   4553     /* test eax, eax */ /* 0x4706634C: test eax, eax */
   4554     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4555     _cf = 0;
   4556     _flag_k = FK_TEST;
   4557     MEM32(esp + 0x10) = 0; /* 0x4706634E: mov dword ptr [esp + 0x10], 0 */
   4558     if (TEST_Z(_flag_a, _flag_b)) goto L_4706637A; /* 0x47066356: je 0x4706637a */
   4559 L_47066358:
   4560     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47066358: call dword ptr [0x470ac3c8] */
   4561     RECOMP_FLAGS_IN();
   4562     MEM32(eax) = 0x274Au; /* 0x4706635E: mov dword ptr [eax], 0x274a */
   4563     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4564     eax = eax | 0xFFFFFFFFu; /* 0x47066364: or eax, 0xffffffff */
   4565     _cf = 0;
   4566     _flag_k = FK_TEST;
   4567     ecx = MEM32(esp + 0x8); /* 0x47066367: mov ecx, dword ptr [esp + 8] */
   4568     MEM32(FS_BASE + (0)) = ecx; /* 0x4706636B: mov dword ptr fs:[0], ecx */
   4569     edi = POP32_VAL(esp); /* 0x47066372: pop edi */
   4570     esi = POP32_VAL(esp); /* 0x47066373: pop esi */
   4571     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4572     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4573     esp = esp + 0xCu; /* 0x47066374: add esp, 0xc */
   4574     _flag_k = FK_ADD;
   4575     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47066377: ret 8 */
   4576 L_4706637A:
   4577     ecx = MEM32(esp + 0x1C); /* 0x4706637A: mov ecx, dword ptr [esp + 0x1c] */
   4578     eax = MEM32(esi); /* 0x4706637E: mov eax, dword ptr [esi] */
   4579     PUSH32(esp, ecx); /* 0x47066380: push ecx */
   4580     edx = esp + 0x20; /* 0x47066381: lea edx, [esp + 0x20] */
   4581     PUSH32(esp, edx); /* 0x47066385: push edx */
   4582     ecx = esi; /* 0x47066386: mov ecx, esi */
   4583     RECOMP_ICALL(MEM32(eax + 0x90)); /* 0x47066388: call dword ptr [eax + 0x90] */
   4584     RECOMP_FLAGS_IN();
   4585     /* cmp eax, 0xFFFFFFFFu */ /* 0x4706638E: cmp eax, -1 */
   4586     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4587     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4588     _flag_k = FK_CMP;
   4589     if (CMP_NE(_flag_a, _flag_b)) goto L_470663A8; /* 0x47066391: jne 0x470663a8 */
   4590 L_47066393:
   4591     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   4592     eax = eax | eax; /* 0x47066393: or eax, eax */
   4593     _cf = 0;
   4594     _flag_k = FK_TEST;
   4595     ecx = MEM32(esp + 0x8); /* 0x47066395: mov ecx, dword ptr [esp + 8] */
   4596     MEM32(FS_BASE + (0)) = ecx; /* 0x47066399: mov dword ptr fs:[0], ecx */
   4597     edi = POP32_VAL(esp); /* 0x470663A0: pop edi */
   4598     esi = POP32_VAL(esp); /* 0x470663A1: pop esi */
   4599     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4600     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4601     esp = esp + 0xCu; /* 0x470663A2: add esp, 0xc */
   4602     _flag_k = FK_ADD;
   4603     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470663A5: ret 8 */
   4604 L_470663A8:
   4605     ecx = MEM32(esp + 0x18); /* 0x470663A8: mov ecx, dword ptr [esp + 0x18] */
   4606     eax = MEM32(esi); /* 0x470663AC: mov eax, dword ptr [esi] */
   4607     PUSH32(esp, ecx); /* 0x470663AE: push ecx */
   4608     ecx = esi; /* 0x470663AF: mov ecx, esi */
   4609     RECOMP_ICALL(MEM32(eax + 0x70)); /* 0x470663B1: call dword ptr [eax + 0x70] */
   4610     RECOMP_FLAGS_IN();
   4611     edi = eax; /* 0x470663B4: mov edi, eax */
   4612     /* cmp edi, 0xFFFFFFFFu */ /* 0x470663B6: cmp edi, -1 */
   4613     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4614     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4615     _flag_k = FK_CMP;
   4616     if (CMP_NE(_flag_a, _flag_b)) goto L_470663D0; /* 0x470663B9: jne 0x470663d0 */
   4617 L_470663BB:
   4618     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   4619     eax = eax | eax; /* 0x470663BB: or eax, eax */
   4620     _cf = 0;
   4621     _flag_k = FK_TEST;
   4622     ecx = MEM32(esp + 0x8); /* 0x470663BD: mov ecx, dword ptr [esp + 8] */
   4623     MEM32(FS_BASE + (0)) = ecx; /* 0x470663C1: mov dword ptr fs:[0], ecx */
   4624     edi = POP32_VAL(esp); /* 0x470663C8: pop edi */
   4625     esi = POP32_VAL(esp); /* 0x470663C9: pop esi */
   4626     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4627     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4628     esp = esp + 0xCu; /* 0x470663CA: add esp, 0xc */
   4629     _flag_k = FK_ADD;
   4630     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470663CD: ret 8 */
   4631 L_470663D0:
   4632     edx = MEM32(esi); /* 0x470663D0: mov edx, dword ptr [esi] */
   4633     ecx = esi; /* 0x470663D2: mov ecx, esi */
   4634     RECOMP_ICALL(MEM32(edx + 0x64)); /* 0x470663D4: call dword ptr [edx + 0x64] */
   4635     RECOMP_FLAGS_IN();
   4636     ecx = MEM32(esp + 0x8); /* 0x470663D7: mov ecx, dword ptr [esp + 8] */
   4637     eax = edi; /* 0x470663DB: mov eax, edi */
   4638     edi = POP32_VAL(esp); /* 0x470663DD: pop edi */
   4639     MEM32(FS_BASE + (0)) = ecx; /* 0x470663DE: mov dword ptr fs:[0], ecx */
   4640     esi = POP32_VAL(esp); /* 0x470663E5: pop esi */
   4641     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4642     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4643     esp = esp + 0xCu; /* 0x470663E6: add esp, 0xc */
   4644     _flag_k = FK_ADD;
   4645     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470663E9: ret 8 */
   4646     RECOMP_REGS_OUT();
   4647 }
   4648 
   4649 void sub_470663F0(void) {
   4650     int _fpu_cmp = 0;
   4651     uint32_t _cf = 0;
   4652     int _df = 1;
   4653     uint32_t _flag_k = FK_NONE;
   4654     uint32_t _flag_a = 0, _flag_b = 0;
   4655     uint32_t _itail_tgt = 0;
   4656     RECOMP_REGS_LOCALS
   4657     RECOMP_ENTER(0x470663F0u);
   4658 
   4659 L_470663F0:
   4660     eax = MEM32(FS_BASE + (0)); /* 0x470663F0: mov eax, dword ptr fs:[0] */
   4661     PUSH32(esp, 0xFFFFFFFFu); /* 0x470663F6: push -1 */
   4662     PUSH32(esp, 0x470A8548u); /* 0x470663F8: push 0x470a8548 */
   4663     PUSH32(esp, eax); /* 0x470663FD: push eax */
   4664     MEM32(FS_BASE + (0)) = esp; /* 0x470663FE: mov dword ptr fs:[0], esp */
   4665     PUSH32(esp, esi); /* 0x47066405: push esi */
   4666     PUSH32(esp, edi); /* 0x47066406: push edi */
   4667     esi = ecx; /* 0x47066407: mov esi, ecx */
   4668     eax = MEM32(esi + 0x20); /* 0x47066409: mov eax, dword ptr [esi + 0x20] */
   4669     /* test eax, eax */ /* 0x4706640C: test eax, eax */
   4670     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4671     _cf = 0;
   4672     _flag_k = FK_TEST;
   4673     MEM32(esp + 0x10) = 0; /* 0x4706640E: mov dword ptr [esp + 0x10], 0 */
   4674     if (TEST_Z(_flag_a, _flag_b)) goto L_4706643A; /* 0x47066416: je 0x4706643a */
   4675 L_47066418:
   4676     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47066418: call dword ptr [0x470ac3c8] */
   4677     RECOMP_FLAGS_IN();
   4678     MEM32(eax) = 0x274Au; /* 0x4706641E: mov dword ptr [eax], 0x274a */
   4679     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4680     eax = eax | 0xFFFFFFFFu; /* 0x47066424: or eax, 0xffffffff */
   4681     _cf = 0;
   4682     _flag_k = FK_TEST;
   4683     ecx = MEM32(esp + 0x8); /* 0x47066427: mov ecx, dword ptr [esp + 8] */
   4684     MEM32(FS_BASE + (0)) = ecx; /* 0x4706642B: mov dword ptr fs:[0], ecx */
   4685     edi = POP32_VAL(esp); /* 0x47066432: pop edi */
   4686     esi = POP32_VAL(esp); /* 0x47066433: pop esi */
   4687     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4688     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4689     esp = esp + 0xCu; /* 0x47066434: add esp, 0xc */
   4690     _flag_k = FK_ADD;
   4691     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47066437: ret 8 */
   4692 L_4706643A:
   4693     ecx = MEM32(esp + 0x1C); /* 0x4706643A: mov ecx, dword ptr [esp + 0x1c] */
   4694     eax = MEM32(esi); /* 0x4706643E: mov eax, dword ptr [esi] */
   4695     PUSH32(esp, ecx); /* 0x47066440: push ecx */
   4696     edx = esp + 0x20; /* 0x47066441: lea edx, [esp + 0x20] */
   4697     PUSH32(esp, edx); /* 0x47066445: push edx */
   4698     ecx = esi; /* 0x47066446: mov ecx, esi */
   4699     RECOMP_ICALL(MEM32(eax + 0x90)); /* 0x47066448: call dword ptr [eax + 0x90] */
   4700     RECOMP_FLAGS_IN();
   4701     /* cmp eax, 0xFFFFFFFFu */ /* 0x4706644E: cmp eax, -1 */
   4702     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4703     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4704     _flag_k = FK_CMP;
   4705     if (CMP_NE(_flag_a, _flag_b)) goto L_47066468; /* 0x47066451: jne 0x47066468 */
   4706 L_47066453:
   4707     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   4708     eax = eax | eax; /* 0x47066453: or eax, eax */
   4709     _cf = 0;
   4710     _flag_k = FK_TEST;
   4711     ecx = MEM32(esp + 0x8); /* 0x47066455: mov ecx, dword ptr [esp + 8] */
   4712     MEM32(FS_BASE + (0)) = ecx; /* 0x47066459: mov dword ptr fs:[0], ecx */
   4713     edi = POP32_VAL(esp); /* 0x47066460: pop edi */
   4714     esi = POP32_VAL(esp); /* 0x47066461: pop esi */
   4715     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4716     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4717     esp = esp + 0xCu; /* 0x47066462: add esp, 0xc */
   4718     _flag_k = FK_ADD;
   4719     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47066465: ret 8 */
   4720 L_47066468:
   4721     ecx = MEM32(esp + 0x18); /* 0x47066468: mov ecx, dword ptr [esp + 0x18] */
   4722     eax = MEM32(esi); /* 0x4706646C: mov eax, dword ptr [esi] */
   4723     PUSH32(esp, ecx); /* 0x4706646E: push ecx */
   4724     ecx = esi; /* 0x4706646F: mov ecx, esi */
   4725     RECOMP_ICALL(MEM32(eax + 0x74)); /* 0x47066471: call dword ptr [eax + 0x74] */
   4726     RECOMP_FLAGS_IN();
   4727     edi = eax; /* 0x47066474: mov edi, eax */
   4728     /* cmp edi, 0xFFFFFFFFu */ /* 0x47066476: cmp edi, -1 */
   4729     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4730     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4731     _flag_k = FK_CMP;
   4732     if (CMP_NE(_flag_a, _flag_b)) goto L_47066490; /* 0x47066479: jne 0x47066490 */
   4733 L_4706647B:
   4734     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   4735     eax = eax | eax; /* 0x4706647B: or eax, eax */
   4736     _cf = 0;
   4737     _flag_k = FK_TEST;
   4738     ecx = MEM32(esp + 0x8); /* 0x4706647D: mov ecx, dword ptr [esp + 8] */
   4739     MEM32(FS_BASE + (0)) = ecx; /* 0x47066481: mov dword ptr fs:[0], ecx */
   4740     edi = POP32_VAL(esp); /* 0x47066488: pop edi */
   4741     esi = POP32_VAL(esp); /* 0x47066489: pop esi */
   4742     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4743     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4744     esp = esp + 0xCu; /* 0x4706648A: add esp, 0xc */
   4745     _flag_k = FK_ADD;
   4746     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706648D: ret 8 */
   4747 L_47066490:
   4748     edx = MEM32(esi); /* 0x47066490: mov edx, dword ptr [esi] */
   4749     ecx = esi; /* 0x47066492: mov ecx, esi */
   4750     RECOMP_ICALL(MEM32(edx + 0x64)); /* 0x47066494: call dword ptr [edx + 0x64] */
   4751     RECOMP_FLAGS_IN();
   4752     ecx = MEM32(esp + 0x8); /* 0x47066497: mov ecx, dword ptr [esp + 8] */
   4753     eax = edi; /* 0x4706649B: mov eax, edi */
   4754     edi = POP32_VAL(esp); /* 0x4706649D: pop edi */
   4755     MEM32(FS_BASE + (0)) = ecx; /* 0x4706649E: mov dword ptr fs:[0], ecx */
   4756     esi = POP32_VAL(esp); /* 0x470664A5: pop esi */
   4757     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4758     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4759     esp = esp + 0xCu; /* 0x470664A6: add esp, 0xc */
   4760     _flag_k = FK_ADD;
   4761     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470664A9: ret 8 */
   4762     RECOMP_REGS_OUT();
   4763 }
   4764 
   4765 void sub_470664B0(void) {
   4766     int _fpu_cmp = 0;
   4767     uint32_t _cf = 0;
   4768     int _df = 1;
   4769     uint32_t _flag_k = FK_NONE;
   4770     uint32_t _flag_a = 0, _flag_b = 0;
   4771     uint32_t _itail_tgt = 0;
   4772     RECOMP_REGS_LOCALS
   4773     RECOMP_ENTER(0x470664B0u);
   4774 
   4775 L_470664B0:
   4776     eax = MEM32(FS_BASE + (0)); /* 0x470664B0: mov eax, dword ptr fs:[0] */
   4777     PUSH32(esp, 0xFFFFFFFFu); /* 0x470664B6: push -1 */
   4778     PUSH32(esp, 0x470A8568u); /* 0x470664B8: push 0x470a8568 */
   4779     PUSH32(esp, eax); /* 0x470664BD: push eax */
   4780     MEM32(FS_BASE + (0)) = esp; /* 0x470664BE: mov dword ptr fs:[0], esp */
   4781     PUSH32(esp, esi); /* 0x470664C5: push esi */
   4782     PUSH32(esp, edi); /* 0x470664C6: push edi */
   4783     esi = ecx; /* 0x470664C7: mov esi, ecx */
   4784     eax = MEM32(esi + 0x20); /* 0x470664C9: mov eax, dword ptr [esi + 0x20] */
   4785     /* test eax, eax */ /* 0x470664CC: test eax, eax */
   4786     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4787     _cf = 0;
   4788     _flag_k = FK_TEST;
   4789     MEM32(esp + 0x10) = 0; /* 0x470664CE: mov dword ptr [esp + 0x10], 0 */
   4790     if (TEST_Z(_flag_a, _flag_b)) goto L_470664FA; /* 0x470664D6: je 0x470664fa */
   4791 L_470664D8:
   4792     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470664D8: call dword ptr [0x470ac3c8] */
   4793     RECOMP_FLAGS_IN();
   4794     MEM32(eax) = 0x274Au; /* 0x470664DE: mov dword ptr [eax], 0x274a */
   4795     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4796     eax = eax | 0xFFFFFFFFu; /* 0x470664E4: or eax, 0xffffffff */
   4797     _cf = 0;
   4798     _flag_k = FK_TEST;
   4799     ecx = MEM32(esp + 0x8); /* 0x470664E7: mov ecx, dword ptr [esp + 8] */
   4800     MEM32(FS_BASE + (0)) = ecx; /* 0x470664EB: mov dword ptr fs:[0], ecx */
   4801     edi = POP32_VAL(esp); /* 0x470664F2: pop edi */
   4802     esi = POP32_VAL(esp); /* 0x470664F3: pop esi */
   4803     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4804     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4805     esp = esp + 0xCu; /* 0x470664F4: add esp, 0xc */
   4806     _flag_k = FK_ADD;
   4807     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470664F7: ret 8 */
   4808 L_470664FA:
   4809     ecx = MEM32(esp + 0x1C); /* 0x470664FA: mov ecx, dword ptr [esp + 0x1c] */
   4810     eax = MEM32(esi); /* 0x470664FE: mov eax, dword ptr [esi] */
   4811     PUSH32(esp, ecx); /* 0x47066500: push ecx */
   4812     edx = esp + 0x20; /* 0x47066501: lea edx, [esp + 0x20] */
   4813     PUSH32(esp, edx); /* 0x47066505: push edx */
   4814     ecx = esi; /* 0x47066506: mov ecx, esi */
   4815     RECOMP_ICALL(MEM32(eax + 0x90)); /* 0x47066508: call dword ptr [eax + 0x90] */
   4816     RECOMP_FLAGS_IN();
   4817     /* cmp eax, 0xFFFFFFFFu */ /* 0x4706650E: cmp eax, -1 */
   4818     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4819     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4820     _flag_k = FK_CMP;
   4821     if (CMP_NE(_flag_a, _flag_b)) goto L_47066528; /* 0x47066511: jne 0x47066528 */
   4822 L_47066513:
   4823     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   4824     eax = eax | eax; /* 0x47066513: or eax, eax */
   4825     _cf = 0;
   4826     _flag_k = FK_TEST;
   4827     ecx = MEM32(esp + 0x8); /* 0x47066515: mov ecx, dword ptr [esp + 8] */
   4828     MEM32(FS_BASE + (0)) = ecx; /* 0x47066519: mov dword ptr fs:[0], ecx */
   4829     edi = POP32_VAL(esp); /* 0x47066520: pop edi */
   4830     esi = POP32_VAL(esp); /* 0x47066521: pop esi */
   4831     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4832     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4833     esp = esp + 0xCu; /* 0x47066522: add esp, 0xc */
   4834     _flag_k = FK_ADD;
   4835     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47066525: ret 8 */
   4836 L_47066528:
   4837     ecx = MEM32(esp + 0x18); /* 0x47066528: mov ecx, dword ptr [esp + 0x18] */
   4838     eax = MEM32(esi); /* 0x4706652C: mov eax, dword ptr [esi] */
   4839     PUSH32(esp, ecx); /* 0x4706652E: push ecx */
   4840     ecx = esi; /* 0x4706652F: mov ecx, esi */
   4841     RECOMP_ICALL(MEM32(eax + 0x78)); /* 0x47066531: call dword ptr [eax + 0x78] */
   4842     RECOMP_FLAGS_IN();
   4843     edi = eax; /* 0x47066534: mov edi, eax */
   4844     /* cmp edi, 0xFFFFFFFFu */ /* 0x47066536: cmp edi, -1 */
   4845     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4846     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4847     _flag_k = FK_CMP;
   4848     if (CMP_NE(_flag_a, _flag_b)) goto L_47066550; /* 0x47066539: jne 0x47066550 */
   4849 L_4706653B:
   4850     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   4851     eax = eax | eax; /* 0x4706653B: or eax, eax */
   4852     _cf = 0;
   4853     _flag_k = FK_TEST;
   4854     ecx = MEM32(esp + 0x8); /* 0x4706653D: mov ecx, dword ptr [esp + 8] */
   4855     MEM32(FS_BASE + (0)) = ecx; /* 0x47066541: mov dword ptr fs:[0], ecx */
   4856     edi = POP32_VAL(esp); /* 0x47066548: pop edi */
   4857     esi = POP32_VAL(esp); /* 0x47066549: pop esi */
   4858     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4859     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4860     esp = esp + 0xCu; /* 0x4706654A: add esp, 0xc */
   4861     _flag_k = FK_ADD;
   4862     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x4706654D: ret 8 */
   4863 L_47066550:
   4864     edx = MEM32(esi); /* 0x47066550: mov edx, dword ptr [esi] */
   4865     ecx = esi; /* 0x47066552: mov ecx, esi */
   4866     RECOMP_ICALL(MEM32(edx + 0x64)); /* 0x47066554: call dword ptr [edx + 0x64] */
   4867     RECOMP_FLAGS_IN();
   4868     ecx = MEM32(esp + 0x8); /* 0x47066557: mov ecx, dword ptr [esp + 8] */
   4869     eax = edi; /* 0x4706655B: mov eax, edi */
   4870     edi = POP32_VAL(esp); /* 0x4706655D: pop edi */
   4871     MEM32(FS_BASE + (0)) = ecx; /* 0x4706655E: mov dword ptr fs:[0], ecx */
   4872     esi = POP32_VAL(esp); /* 0x47066565: pop esi */
   4873     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4874     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4875     esp = esp + 0xCu; /* 0x47066566: add esp, 0xc */
   4876     _flag_k = FK_ADD;
   4877     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47066569: ret 8 */
   4878     RECOMP_REGS_OUT();
   4879 }
   4880 
   4881 void sub_47066570(void) {
   4882     int _fpu_cmp = 0;
   4883     uint32_t _cf = 0;
   4884     int _df = 1;
   4885     uint32_t _flag_k = FK_NONE;
   4886     uint32_t _flag_a = 0, _flag_b = 0;
   4887     uint32_t _itail_tgt = 0;
   4888     RECOMP_REGS_LOCALS
   4889     RECOMP_ENTER(0x47066570u);
   4890 
   4891 L_47066570:
   4892     eax = MEM32(FS_BASE + (0)); /* 0x47066570: mov eax, dword ptr fs:[0] */
   4893     PUSH32(esp, 0xFFFFFFFFu); /* 0x47066576: push -1 */
   4894     PUSH32(esp, 0x470A8588u); /* 0x47066578: push 0x470a8588 */
   4895     PUSH32(esp, eax); /* 0x4706657D: push eax */
   4896     MEM32(FS_BASE + (0)) = esp; /* 0x4706657E: mov dword ptr fs:[0], esp */
   4897     PUSH32(esp, esi); /* 0x47066585: push esi */
   4898     esi = ecx; /* 0x47066586: mov esi, ecx */
   4899     eax = MEM32(esi + 0x20); /* 0x47066588: mov eax, dword ptr [esi + 0x20] */
   4900     /* test eax, eax */ /* 0x4706658B: test eax, eax */
   4901     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   4902     _cf = 0;
   4903     _flag_k = FK_TEST;
   4904     MEM32(esp + 0xC) = 0; /* 0x4706658D: mov dword ptr [esp + 0xc], 0 */
   4905     if (TEST_Z(_flag_a, _flag_b)) goto L_470665B8; /* 0x47066595: je 0x470665b8 */
   4906 L_47066597:
   4907     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47066597: call dword ptr [0x470ac3c8] */
   4908     RECOMP_FLAGS_IN();
   4909     MEM32(eax) = 0x274Au; /* 0x4706659D: mov dword ptr [eax], 0x274a */
   4910     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   4911     eax = eax | 0xFFFFFFFFu; /* 0x470665A3: or eax, 0xffffffff */
   4912     _cf = 0;
   4913     _flag_k = FK_TEST;
   4914     ecx = MEM32(esp + 0x4); /* 0x470665A6: mov ecx, dword ptr [esp + 4] */
   4915     MEM32(FS_BASE + (0)) = ecx; /* 0x470665AA: mov dword ptr fs:[0], ecx */
   4916     esi = POP32_VAL(esp); /* 0x470665B1: pop esi */
   4917     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4918     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4919     esp = esp + 0xCu; /* 0x470665B2: add esp, 0xc */
   4920     _flag_k = FK_ADD;
   4921     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470665B5: ret 8 */
   4922 L_470665B8:
   4923     ecx = MEM32(esp + 0x18); /* 0x470665B8: mov ecx, dword ptr [esp + 0x18] */
   4924     eax = MEM32(esi); /* 0x470665BC: mov eax, dword ptr [esi] */
   4925     PUSH32(esp, ecx); /* 0x470665BE: push ecx */
   4926     edx = esp + 0x1C; /* 0x470665BF: lea edx, [esp + 0x1c] */
   4927     PUSH32(esp, edx); /* 0x470665C3: push edx */
   4928     ecx = esi; /* 0x470665C4: mov ecx, esi */
   4929     RECOMP_ICALL(MEM32(eax + 0x94)); /* 0x470665C6: call dword ptr [eax + 0x94] */
   4930     RECOMP_FLAGS_IN();
   4931     /* cmp eax, 0xFFFFFFFFu */ /* 0x470665CC: cmp eax, -1 */
   4932     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   4933     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   4934     _flag_k = FK_CMP;
   4935     if (CMP_NE(_flag_a, _flag_b)) goto L_470665E5; /* 0x470665CF: jne 0x470665e5 */
   4936 L_470665D1:
   4937     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   4938     eax = eax | eax; /* 0x470665D1: or eax, eax */
   4939     _cf = 0;
   4940     _flag_k = FK_TEST;
   4941     ecx = MEM32(esp + 0x4); /* 0x470665D3: mov ecx, dword ptr [esp + 4] */
   4942     MEM32(FS_BASE + (0)) = ecx; /* 0x470665D7: mov dword ptr fs:[0], ecx */
   4943     esi = POP32_VAL(esp); /* 0x470665DE: pop esi */
   4944     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4945     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4946     esp = esp + 0xCu; /* 0x470665DF: add esp, 0xc */
   4947     _flag_k = FK_ADD;
   4948     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470665E2: ret 8 */
   4949 L_470665E5:
   4950     ecx = MEM32(esp + 0x14); /* 0x470665E5: mov ecx, dword ptr [esp + 0x14] */
   4951     eax = MEM32(esi); /* 0x470665E9: mov eax, dword ptr [esi] */
   4952     PUSH32(esp, ecx); /* 0x470665EB: push ecx */
   4953     ecx = esi; /* 0x470665EC: mov ecx, esi */
   4954     RECOMP_ICALL(MEM32(eax + 0x7C)); /* 0x470665EE: call dword ptr [eax + 0x7c] */
   4955     RECOMP_FLAGS_IN();
   4956     ecx = MEM32(esp + 0x4); /* 0x470665F1: mov ecx, dword ptr [esp + 4] */
   4957     MEM32(FS_BASE + (0)) = ecx; /* 0x470665F5: mov dword ptr fs:[0], ecx */
   4958     esi = POP32_VAL(esp); /* 0x470665FC: pop esi */
   4959     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4960     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4961     esp = esp + 0xCu; /* 0x470665FD: add esp, 0xc */
   4962     _flag_k = FK_ADD;
   4963     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47066600: ret 8 */
   4964     RECOMP_REGS_OUT();
   4965 }
   4966 
   4967 void sub_47066610(void) {
   4968     int _fpu_cmp = 0;
   4969     uint32_t _cf = 0;
   4970     int _df = 1;
   4971     uint32_t _flag_k = FK_NONE;
   4972     uint32_t _flag_a = 0, _flag_b = 0;
   4973     uint32_t _itail_tgt = 0;
   4974     RECOMP_REGS_LOCALS
   4975     RECOMP_ENTER(0x47066610u);
   4976 
   4977 L_47066610:
   4978     eax = MEM32(FS_BASE + (0)); /* 0x47066610: mov eax, dword ptr fs:[0] */
   4979     PUSH32(esp, 0xFFFFFFFFu); /* 0x47066616: push -1 */
   4980     PUSH32(esp, 0x470A85A8u); /* 0x47066618: push 0x470a85a8 */
   4981     PUSH32(esp, eax); /* 0x4706661D: push eax */
   4982     MEM32(FS_BASE + (0)) = esp; /* 0x4706661E: mov dword ptr fs:[0], esp */
   4983     eax = MEM32(ecx); /* 0x47066625: mov eax, dword ptr [ecx] */
   4984     MEM32(esp + 0x8) = 0; /* 0x47066627: mov dword ptr [esp + 8], 0 */
   4985     RECOMP_ICALL(MEM32(eax + 0x80)); /* 0x4706662F: call dword ptr [eax + 0x80] */
   4986     RECOMP_FLAGS_IN();
   4987     ecx = MEM32(esp); /* 0x47066635: mov ecx, dword ptr [esp] */
   4988     MEM32(FS_BASE + (0)) = ecx; /* 0x47066639: mov dword ptr fs:[0], ecx */
   4989     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   4990     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   4991     esp = esp + 0xCu; /* 0x47066640: add esp, 0xc */
   4992     _flag_k = FK_ADD;
   4993     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47066643: ret  */
   4994     RECOMP_REGS_OUT();
   4995 }
   4996 
   4997 void sub_47066650(void) {
   4998     int _fpu_cmp = 0;
   4999     uint32_t _cf = 0;
   5000     int _df = 1;
   5001     uint32_t _flag_k = FK_NONE;
   5002     uint32_t _flag_a = 0, _flag_b = 0;
   5003     uint32_t _itail_tgt = 0;
   5004     RECOMP_REGS_LOCALS
   5005     RECOMP_ENTER(0x47066650u);
   5006 
   5007 L_47066650:
   5008     eax = MEM32(FS_BASE + (0)); /* 0x47066650: mov eax, dword ptr fs:[0] */
   5009     PUSH32(esp, 0xFFFFFFFFu); /* 0x47066656: push -1 */
   5010     PUSH32(esp, 0x470A85C8u); /* 0x47066658: push 0x470a85c8 */
   5011     PUSH32(esp, eax); /* 0x4706665D: push eax */
   5012     MEM32(FS_BASE + (0)) = esp; /* 0x4706665E: mov dword ptr fs:[0], esp */
   5013     eax = MEM32(ecx); /* 0x47066665: mov eax, dword ptr [ecx] */
   5014     MEM32(esp + 0x8) = 0; /* 0x47066667: mov dword ptr [esp + 8], 0 */
   5015     RECOMP_ICALL(MEM32(eax + 0x84)); /* 0x4706666F: call dword ptr [eax + 0x84] */
   5016     RECOMP_FLAGS_IN();
   5017     ecx = MEM32(esp); /* 0x47066675: mov ecx, dword ptr [esp] */
   5018     MEM32(FS_BASE + (0)) = ecx; /* 0x47066679: mov dword ptr fs:[0], ecx */
   5019     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5020     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5021     esp = esp + 0xCu; /* 0x47066680: add esp, 0xc */
   5022     _flag_k = FK_ADD;
   5023     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47066683: ret  */
   5024     RECOMP_REGS_OUT();
   5025 }
   5026 
   5027 void sub_47066690(void) {
   5028     int _fpu_cmp = 0;
   5029     uint32_t _cf = 0;
   5030     int _df = 1;
   5031     uint32_t _flag_k = FK_NONE;
   5032     uint32_t _flag_a = 0, _flag_b = 0;
   5033     uint32_t _itail_tgt = 0;
   5034     RECOMP_REGS_LOCALS
   5035     RECOMP_ENTER(0x47066690u);
   5036 
   5037 L_47066690:
   5038     eax = MEM32(FS_BASE + (0)); /* 0x47066690: mov eax, dword ptr fs:[0] */
   5039     PUSH32(esp, 0xFFFFFFFFu); /* 0x47066696: push -1 */
   5040     PUSH32(esp, 0x470A85E8u); /* 0x47066698: push 0x470a85e8 */
   5041     PUSH32(esp, eax); /* 0x4706669D: push eax */
   5042     MEM32(FS_BASE + (0)) = esp; /* 0x4706669E: mov dword ptr fs:[0], esp */
   5043     eax = MEM32(ecx); /* 0x470666A5: mov eax, dword ptr [ecx] */
   5044     MEM32(esp + 0x8) = 0; /* 0x470666A7: mov dword ptr [esp + 8], 0 */
   5045     RECOMP_ICALL(MEM32(eax + 0x88)); /* 0x470666AF: call dword ptr [eax + 0x88] */
   5046     RECOMP_FLAGS_IN();
   5047     ecx = MEM32(esp); /* 0x470666B5: mov ecx, dword ptr [esp] */
   5048     MEM32(FS_BASE + (0)) = ecx; /* 0x470666B9: mov dword ptr fs:[0], ecx */
   5049     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5050     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5051     esp = esp + 0xCu; /* 0x470666C0: add esp, 0xc */
   5052     _flag_k = FK_ADD;
   5053     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470666C3: ret  */
   5054     RECOMP_REGS_OUT();
   5055 }
   5056 
   5057 void sub_470666D0(void) {
   5058     int _fpu_cmp = 0;
   5059     uint32_t _cf = 0;
   5060     int _df = 1;
   5061     uint32_t _flag_k = FK_NONE;
   5062     uint32_t _flag_a = 0, _flag_b = 0;
   5063     uint32_t _itail_tgt = 0;
   5064     RECOMP_REGS_LOCALS
   5065     RECOMP_ENTER(0x470666D0u);
   5066 
   5067 L_470666D0:
   5068     eax = MEM32(FS_BASE + (0)); /* 0x470666D0: mov eax, dword ptr fs:[0] */
   5069     PUSH32(esp, 0xFFFFFFFFu); /* 0x470666D6: push -1 */
   5070     PUSH32(esp, 0x470A8608u); /* 0x470666D8: push 0x470a8608 */
   5071     PUSH32(esp, eax); /* 0x470666DD: push eax */
   5072     MEM32(FS_BASE + (0)) = esp; /* 0x470666DE: mov dword ptr fs:[0], esp */
   5073     eax = MEM32(ecx); /* 0x470666E5: mov eax, dword ptr [ecx] */
   5074     MEM32(esp + 0x8) = 0; /* 0x470666E7: mov dword ptr [esp + 8], 0 */
   5075     RECOMP_ICALL(MEM32(eax + 0x8C)); /* 0x470666EF: call dword ptr [eax + 0x8c] */
   5076     RECOMP_FLAGS_IN();
   5077     ecx = MEM32(esp); /* 0x470666F5: mov ecx, dword ptr [esp] */
   5078     MEM32(FS_BASE + (0)) = ecx; /* 0x470666F9: mov dword ptr fs:[0], ecx */
   5079     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5080     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5081     esp = esp + 0xCu; /* 0x47066700: add esp, 0xc */
   5082     _flag_k = FK_ADD;
   5083     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47066703: ret  */
   5084     RECOMP_REGS_OUT();
   5085 }
   5086 
   5087 void sub_47066710(void) {
   5088     int _fpu_cmp = 0;
   5089     uint32_t _cf = 0;
   5090     int _df = 1;
   5091     uint32_t _flag_k = FK_NONE;
   5092     uint32_t _flag_a = 0, _flag_b = 0;
   5093     uint32_t _itail_tgt = 0;
   5094     RECOMP_REGS_LOCALS
   5095     RECOMP_ENTER(0x47066710u);
   5096 
   5097 L_47066710:
   5098     PUSH32(esp, ecx); /* 0x47066710: push ecx */
   5099     PUSH32(esp, ebx); /* 0x47066711: push ebx */
   5100     ebx = MEM32(0x470AC150); /* 0x47066712: mov ebx, dword ptr [0x470ac150] */
   5101     PUSH32(esp, ebp); /* 0x47066718: push ebp */
   5102     PUSH32(esp, esi); /* 0x47066719: push esi */
   5103     PUSH32(esp, edi); /* 0x4706671A: push edi */
   5104     esi = ecx; /* 0x4706671B: mov esi, ecx */
   5105     RECOMP_ICALL(ebx); /* 0x4706671D: call ebx */
   5106     RECOMP_FLAGS_IN();
   5107     ebp = MEM32(0x470AC3C8); /* 0x4706671F: mov ebp, dword ptr [0x470ac3c8] */
   5108     edi = eax; /* 0x47066725: mov edi, eax */
   5109     RECOMP_ICALL(ebp); /* 0x47066727: call ebp */
   5110     RECOMP_FLAGS_IN();
   5111     eax = MEM32(eax); /* 0x47066729: mov eax, dword ptr [eax] */
   5112     /* test eax, eax */ /* 0x4706672B: test eax, eax */
   5113     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5114     _cf = 0;
   5115     _flag_k = FK_TEST;
   5116     MEM32(esp + 0x10) = edi; /* 0x4706672D: mov dword ptr [esp + 0x10], edi */
   5117     if (TEST_Z(_flag_a, _flag_b)) goto L_47066737; /* 0x47066731: je 0x47066737 */
   5118 L_47066733:
   5119     MEM32(esp + 0x10) = eax; /* 0x47066733: mov dword ptr [esp + 0x10], eax */
   5120 L_47066737:
   5121     RECOMP_ICALL(0x47039020u); /* 0x47066737: call 0x47039020 */ /* not lifted */
   5122     RECOMP_FLAGS_IN();
   5123     edi = eax; /* 0x4706673C: mov edi, eax */
   5124     ecx = edi; /* 0x4706673E: mov ecx, edi */
   5125     RECOMP_ICALL(0x4703B210u); /* 0x47066740: call 0x4703b210 */ /* not lifted */
   5126     RECOMP_FLAGS_IN();
   5127     PUSH32(esp, eax); /* 0x47066745: push eax */
   5128     ecx = edi; /* 0x47066746: mov ecx, edi */
   5129     RECOMP_ICALL(0x4703B240u); /* 0x47066748: call 0x4703b240 */ /* not lifted */
   5130     RECOMP_FLAGS_IN();
   5131     PUSH32(esp, eax); /* 0x4706674D: push eax */
   5132     ecx = edi; /* 0x4706674E: mov ecx, edi */
   5133     RECOMP_ICALL(0x4703B080u); /* 0x47066750: call 0x4703b080 */ /* not lifted */
   5134     RECOMP_FLAGS_IN();
   5135     PUSH32(esp, eax); /* 0x47066755: push eax */
   5136     eax = MEM32(esp + 0x1C); /* 0x47066756: mov eax, dword ptr [esp + 0x1c] */
   5137     PUSH32(esp, eax); /* 0x4706675A: push eax */
   5138     PUSH32(esp, 0); /* 0x4706675B: push 0 */
   5139     PUSH32(esp, 0x79u); /* 0x4706675D: push 0x79 */
   5140     PUSH32(esp, 0x471051D0u); /* 0x4706675F: push 0x471051d0 */
   5141     ecx = edi; /* 0x47066764: mov ecx, edi */
   5142     RECOMP_ICALL(0x4703A340u); /* 0x47066766: call 0x4703a340 */ /* not lifted */
   5143     RECOMP_FLAGS_IN();
   5144     PUSH32(esp, esi); /* 0x4706676B: push esi */
   5145     PUSH32(esp, 0x471052CCu); /* 0x4706676C: push 0x471052cc */
   5146     PUSH32(esp, 4); /* 0x47066771: push 4 */
   5147     PUSH32(esp, edi); /* 0x47066773: push edi */
   5148     RECOMP_ICALL(0x47039830u); /* 0x47066774: call 0x47039830 */ /* not lifted */
   5149     RECOMP_FLAGS_IN();
   5150     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5151     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5152     esp = esp + 0x10u; /* 0x47066779: add esp, 0x10 */
   5153     _flag_k = FK_ADD;
   5154     RECOMP_ICALL(ebx); /* 0x4706677C: call ebx */
   5155     RECOMP_FLAGS_IN();
   5156     edi = eax; /* 0x4706677E: mov edi, eax */
   5157     RECOMP_ICALL(ebp); /* 0x47066780: call ebp */
   5158     RECOMP_FLAGS_IN();
   5159     eax = MEM32(eax); /* 0x47066782: mov eax, dword ptr [eax] */
   5160     /* test eax, eax */ /* 0x47066784: test eax, eax */
   5161     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5162     _cf = 0;
   5163     _flag_k = FK_TEST;
   5164     MEM32(esp + 0x10) = edi; /* 0x47066786: mov dword ptr [esp + 0x10], edi */
   5165     if (TEST_Z(_flag_a, _flag_b)) goto L_47066790; /* 0x4706678A: je 0x47066790 */
   5166 L_4706678C:
   5167     MEM32(esp + 0x10) = eax; /* 0x4706678C: mov dword ptr [esp + 0x10], eax */
   5168 L_47066790:
   5169     RECOMP_ICALL(0x47039020u); /* 0x47066790: call 0x47039020 */ /* not lifted */
   5170     RECOMP_FLAGS_IN();
   5171     edi = eax; /* 0x47066795: mov edi, eax */
   5172     ecx = edi; /* 0x47066797: mov ecx, edi */
   5173     RECOMP_ICALL(0x4703B210u); /* 0x47066799: call 0x4703b210 */ /* not lifted */
   5174     RECOMP_FLAGS_IN();
   5175     PUSH32(esp, eax); /* 0x4706679E: push eax */
   5176     ecx = edi; /* 0x4706679F: mov ecx, edi */
   5177     RECOMP_ICALL(0x4703B240u); /* 0x470667A1: call 0x4703b240 */ /* not lifted */
   5178     RECOMP_FLAGS_IN();
   5179     PUSH32(esp, eax); /* 0x470667A6: push eax */
   5180     ecx = edi; /* 0x470667A7: mov ecx, edi */
   5181     RECOMP_ICALL(0x4703B080u); /* 0x470667A9: call 0x4703b080 */ /* not lifted */
   5182     RECOMP_FLAGS_IN();
   5183     ecx = MEM32(esp + 0x18); /* 0x470667AE: mov ecx, dword ptr [esp + 0x18] */
   5184     PUSH32(esp, eax); /* 0x470667B2: push eax */
   5185     PUSH32(esp, ecx); /* 0x470667B3: push ecx */
   5186     PUSH32(esp, 0); /* 0x470667B4: push 0 */
   5187     PUSH32(esp, 0x8Au); /* 0x470667B6: push 0x8a */
   5188     PUSH32(esp, 0x471051D0u); /* 0x470667BB: push 0x471051d0 */
   5189     ecx = edi; /* 0x470667C0: mov ecx, edi */
   5190     RECOMP_ICALL(0x4703A340u); /* 0x470667C2: call 0x4703a340 */ /* not lifted */
   5191     RECOMP_FLAGS_IN();
   5192     edx = MEM32(esi + 0x8); /* 0x470667C7: mov edx, dword ptr [esi + 8] */
   5193     eax = MEM32(esi + 0x4); /* 0x470667CA: mov eax, dword ptr [esi + 4] */
   5194     ecx = MEM32(esi + 0x1C); /* 0x470667CD: mov ecx, dword ptr [esi + 0x1c] */
   5195     PUSH32(esp, edx); /* 0x470667D0: push edx */
   5196     edx = MEM32(esi + 0x18); /* 0x470667D1: mov edx, dword ptr [esi + 0x18] */
   5197     PUSH32(esp, eax); /* 0x470667D4: push eax */
   5198     eax = MEM32(esi + 0x14); /* 0x470667D5: mov eax, dword ptr [esi + 0x14] */
   5199     PUSH32(esp, ecx); /* 0x470667D8: push ecx */
   5200     ecx = MEM32(esi + 0x10); /* 0x470667D9: mov ecx, dword ptr [esi + 0x10] */
   5201     PUSH32(esp, edx); /* 0x470667DC: push edx */
   5202     edx = MEM32(esi + 0xC); /* 0x470667DD: mov edx, dword ptr [esi + 0xc] */
   5203     PUSH32(esp, eax); /* 0x470667E0: push eax */
   5204     eax = MEM32(esi + 0x20); /* 0x470667E1: mov eax, dword ptr [esi + 0x20] */
   5205     PUSH32(esp, ecx); /* 0x470667E4: push ecx */
   5206     PUSH32(esp, edx); /* 0x470667E5: push edx */
   5207     PUSH32(esp, eax); /* 0x470667E6: push eax */
   5208     PUSH32(esp, 0x47105348u); /* 0x470667E7: push 0x47105348 */
   5209     PUSH32(esp, 4); /* 0x470667EC: push 4 */
   5210     PUSH32(esp, edi); /* 0x470667EE: push edi */
   5211     RECOMP_ICALL(0x47039830u); /* 0x470667EF: call 0x47039830 */ /* not lifted */
   5212     RECOMP_FLAGS_IN();
   5213     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x2Cu);
   5214     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5215     esp = esp + 0x2Cu; /* 0x470667F4: add esp, 0x2c */
   5216     _flag_k = FK_ADD;
   5217     RECOMP_ICALL(ebx); /* 0x470667F7: call ebx */
   5218     RECOMP_FLAGS_IN();
   5219     edi = eax; /* 0x470667F9: mov edi, eax */
   5220     RECOMP_ICALL(ebp); /* 0x470667FB: call ebp */
   5221     RECOMP_FLAGS_IN();
   5222     eax = MEM32(eax); /* 0x470667FD: mov eax, dword ptr [eax] */
   5223     /* test eax, eax */ /* 0x470667FF: test eax, eax */
   5224     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5225     _cf = 0;
   5226     _flag_k = FK_TEST;
   5227     if (TEST_Z(_flag_a, _flag_b)) goto L_47066805; /* 0x47066801: je 0x47066805 */
   5228 L_47066803:
   5229     edi = eax; /* 0x47066803: mov edi, eax */
   5230 L_47066805:
   5231     RECOMP_ICALL(0x47039020u); /* 0x47066805: call 0x47039020 */ /* not lifted */
   5232     RECOMP_FLAGS_IN();
   5233     esi = eax; /* 0x4706680A: mov esi, eax */
   5234     ecx = esi; /* 0x4706680C: mov ecx, esi */
   5235     RECOMP_ICALL(0x4703B210u); /* 0x4706680E: call 0x4703b210 */ /* not lifted */
   5236     RECOMP_FLAGS_IN();
   5237     PUSH32(esp, eax); /* 0x47066813: push eax */
   5238     ecx = esi; /* 0x47066814: mov ecx, esi */
   5239     RECOMP_ICALL(0x4703B240u); /* 0x47066816: call 0x4703b240 */ /* not lifted */
   5240     RECOMP_FLAGS_IN();
   5241     PUSH32(esp, eax); /* 0x4706681B: push eax */
   5242     ecx = esi; /* 0x4706681C: mov ecx, esi */
   5243     RECOMP_ICALL(0x4703B080u); /* 0x4706681E: call 0x4703b080 */ /* not lifted */
   5244     RECOMP_FLAGS_IN();
   5245     PUSH32(esp, eax); /* 0x47066823: push eax */
   5246     PUSH32(esp, edi); /* 0x47066824: push edi */
   5247     PUSH32(esp, 0); /* 0x47066825: push 0 */
   5248     PUSH32(esp, 0x8Bu); /* 0x47066827: push 0x8b */
   5249     PUSH32(esp, 0x471051D0u); /* 0x4706682C: push 0x471051d0 */
   5250     ecx = esi; /* 0x47066831: mov ecx, esi */
   5251     RECOMP_ICALL(0x4703A340u); /* 0x47066833: call 0x4703a340 */ /* not lifted */
   5252     RECOMP_FLAGS_IN();
   5253     PUSH32(esp, 0x47105334u); /* 0x47066838: push 0x47105334 */
   5254     PUSH32(esp, 4); /* 0x4706683D: push 4 */
   5255     PUSH32(esp, esi); /* 0x4706683F: push esi */
   5256     RECOMP_ICALL(0x47039830u); /* 0x47066840: call 0x47039830 */ /* not lifted */
   5257     RECOMP_FLAGS_IN();
   5258     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5259     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5260     esp = esp + 0xCu; /* 0x47066845: add esp, 0xc */
   5261     _flag_k = FK_ADD;
   5262     RECOMP_ICALL(ebx); /* 0x47066848: call ebx */
   5263     RECOMP_FLAGS_IN();
   5264     edi = eax; /* 0x4706684A: mov edi, eax */
   5265     RECOMP_ICALL(ebp); /* 0x4706684C: call ebp */
   5266     RECOMP_FLAGS_IN();
   5267     eax = MEM32(eax); /* 0x4706684E: mov eax, dword ptr [eax] */
   5268     /* test eax, eax */ /* 0x47066850: test eax, eax */
   5269     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5270     _cf = 0;
   5271     _flag_k = FK_TEST;
   5272     if (TEST_Z(_flag_a, _flag_b)) goto L_47066856; /* 0x47066852: je 0x47066856 */
   5273 L_47066854:
   5274     edi = eax; /* 0x47066854: mov edi, eax */
   5275 L_47066856:
   5276     RECOMP_ICALL(0x47039020u); /* 0x47066856: call 0x47039020 */ /* not lifted */
   5277     RECOMP_FLAGS_IN();
   5278     esi = eax; /* 0x4706685B: mov esi, eax */
   5279     ecx = esi; /* 0x4706685D: mov ecx, esi */
   5280     RECOMP_ICALL(0x4703B210u); /* 0x4706685F: call 0x4703b210 */ /* not lifted */
   5281     RECOMP_FLAGS_IN();
   5282     PUSH32(esp, eax); /* 0x47066864: push eax */
   5283     ecx = esi; /* 0x47066865: mov ecx, esi */
   5284     RECOMP_ICALL(0x4703B240u); /* 0x47066867: call 0x4703b240 */ /* not lifted */
   5285     RECOMP_FLAGS_IN();
   5286     PUSH32(esp, eax); /* 0x4706686C: push eax */
   5287     ecx = esi; /* 0x4706686D: mov ecx, esi */
   5288     RECOMP_ICALL(0x4703B080u); /* 0x4706686F: call 0x4703b080 */ /* not lifted */
   5289     RECOMP_FLAGS_IN();
   5290     PUSH32(esp, eax); /* 0x47066874: push eax */
   5291     PUSH32(esp, edi); /* 0x47066875: push edi */
   5292     PUSH32(esp, 0); /* 0x47066876: push 0 */
   5293     PUSH32(esp, 0x8Du); /* 0x47066878: push 0x8d */
   5294     PUSH32(esp, 0x471051D0u); /* 0x4706687D: push 0x471051d0 */
   5295     ecx = esi; /* 0x47066882: mov ecx, esi */
   5296     RECOMP_ICALL(0x4703A340u); /* 0x47066884: call 0x4703a340 */ /* not lifted */
   5297     RECOMP_FLAGS_IN();
   5298     PUSH32(esp, 0x47105320u); /* 0x47066889: push 0x47105320 */
   5299     PUSH32(esp, 4); /* 0x4706688E: push 4 */
   5300     PUSH32(esp, esi); /* 0x47066890: push esi */
   5301     RECOMP_ICALL(0x47039830u); /* 0x47066891: call 0x47039830 */ /* not lifted */
   5302     RECOMP_FLAGS_IN();
   5303     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5304     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5305     esp = esp + 0xCu; /* 0x47066896: add esp, 0xc */
   5306     _flag_k = FK_ADD;
   5307     RECOMP_ICALL(ebx); /* 0x47066899: call ebx */
   5308     RECOMP_FLAGS_IN();
   5309     esi = eax; /* 0x4706689B: mov esi, eax */
   5310     RECOMP_ICALL(ebp); /* 0x4706689D: call ebp */
   5311     RECOMP_FLAGS_IN();
   5312     eax = MEM32(eax); /* 0x4706689F: mov eax, dword ptr [eax] */
   5313     /* test eax, eax */ /* 0x470668A1: test eax, eax */
   5314     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5315     _cf = 0;
   5316     _flag_k = FK_TEST;
   5317     edi = esi; /* 0x470668A3: mov edi, esi */
   5318     if (TEST_Z(_flag_a, _flag_b)) goto L_470668A9; /* 0x470668A5: je 0x470668a9 */
   5319 L_470668A7:
   5320     edi = eax; /* 0x470668A7: mov edi, eax */
   5321 L_470668A9:
   5322     RECOMP_ICALL(0x47039020u); /* 0x470668A9: call 0x47039020 */ /* not lifted */
   5323     RECOMP_FLAGS_IN();
   5324     esi = eax; /* 0x470668AE: mov esi, eax */
   5325     ecx = esi; /* 0x470668B0: mov ecx, esi */
   5326     RECOMP_ICALL(0x4703B210u); /* 0x470668B2: call 0x4703b210 */ /* not lifted */
   5327     RECOMP_FLAGS_IN();
   5328     PUSH32(esp, eax); /* 0x470668B7: push eax */
   5329     ecx = esi; /* 0x470668B8: mov ecx, esi */
   5330     RECOMP_ICALL(0x4703B240u); /* 0x470668BA: call 0x4703b240 */ /* not lifted */
   5331     RECOMP_FLAGS_IN();
   5332     PUSH32(esp, eax); /* 0x470668BF: push eax */
   5333     ecx = esi; /* 0x470668C0: mov ecx, esi */
   5334     RECOMP_ICALL(0x4703B080u); /* 0x470668C2: call 0x4703b080 */ /* not lifted */
   5335     RECOMP_FLAGS_IN();
   5336     PUSH32(esp, eax); /* 0x470668C7: push eax */
   5337     PUSH32(esp, edi); /* 0x470668C8: push edi */
   5338     PUSH32(esp, 0); /* 0x470668C9: push 0 */
   5339     PUSH32(esp, 0x8Fu); /* 0x470668CB: push 0x8f */
   5340     PUSH32(esp, 0x471051D0u); /* 0x470668D0: push 0x471051d0 */
   5341     ecx = esi; /* 0x470668D5: mov ecx, esi */
   5342     RECOMP_ICALL(0x4703A340u); /* 0x470668D7: call 0x4703a340 */ /* not lifted */
   5343     RECOMP_FLAGS_IN();
   5344     PUSH32(esp, 0x4710529Cu); /* 0x470668DC: push 0x4710529c */
   5345     PUSH32(esp, 4); /* 0x470668E1: push 4 */
   5346     PUSH32(esp, esi); /* 0x470668E3: push esi */
   5347     RECOMP_ICALL(0x47039830u); /* 0x470668E4: call 0x47039830 */ /* not lifted */
   5348     RECOMP_FLAGS_IN();
   5349     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   5350     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5351     esp = esp + 0xCu; /* 0x470668E9: add esp, 0xc */
   5352     _flag_k = FK_ADD;
   5353     edi = POP32_VAL(esp); /* 0x470668EC: pop edi */
   5354     esi = POP32_VAL(esp); /* 0x470668ED: pop esi */
   5355     ebp = POP32_VAL(esp); /* 0x470668EE: pop ebp */
   5356     ebx = POP32_VAL(esp); /* 0x470668EF: pop ebx */
   5357     ecx = POP32_VAL(esp); /* 0x470668F0: pop ecx */
   5358     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470668F1: ret  */
   5359     RECOMP_REGS_OUT();
   5360 }
   5361 
   5362 void sub_47066900(void) {
   5363     int _fpu_cmp = 0;
   5364     uint32_t _cf = 0;
   5365     int _df = 1;
   5366     uint32_t _flag_k = FK_NONE;
   5367     uint32_t _flag_a = 0, _flag_b = 0;
   5368     uint32_t _itail_tgt = 0;
   5369     RECOMP_REGS_LOCALS
   5370     RECOMP_ENTER(0x47066900u);
   5371 
   5372 L_47066900:
   5373     eax = MEM32(ecx + 0x14); /* 0x47066900: mov eax, dword ptr [ecx + 0x14] */
   5374     /* cmp MEM32(ecx + 0x10), eax */ /* 0x47066903: cmp dword ptr [ecx + 0x10], eax */
   5375     _flag_a = (uint32_t)(MEM32(ecx + 0x10)); _flag_b = (uint32_t)(eax);
   5376     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5377     _flag_k = FK_CMP;
   5378     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47066906: sbb eax, eax */
   5379       eax = _sc ? 0xFFFFFFFFu : 0;
   5380       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   5381       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   5382     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   5383     _cf = (eax) != 0;
   5384     eax = (uint32_t)(-(int32_t)eax); /* 0x47066908: neg eax */
   5385     _flag_k = FK_CMP;
   5386     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4706690A: ret  */
   5387     RECOMP_REGS_OUT();
   5388 }
   5389 
   5390 void sub_47066910(void) {
   5391     int _fpu_cmp = 0;
   5392     uint32_t _cf = 0;
   5393     int _df = 1;
   5394     uint32_t _flag_k = FK_NONE;
   5395     uint32_t _flag_a = 0, _flag_b = 0;
   5396     uint32_t _itail_tgt = 0;
   5397     RECOMP_REGS_LOCALS
   5398     RECOMP_ENTER(0x47066910u);
   5399 
   5400 L_47066910:
   5401     edx = MEM32(ecx + 0x20); /* 0x47066910: mov edx, dword ptr [ecx + 0x20] */
   5402     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5403     eax = 0; /* 0x47066913: xor eax, eax */
   5404     _cf = 0;
   5405     _flag_k = FK_TEST;
   5406     /* test edx, edx */ /* 0x47066915: test edx, edx */
   5407     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(edx);
   5408     _cf = 0;
   5409     _flag_k = FK_TEST;
   5410     SET_LO8(eax, (TEST_NZ(_flag_a, _flag_b)) ? 1 : 0); /* 0x47066917: setne al */
   5411     MEM32(ecx + 0x20) = 1; /* 0x4706691A: mov dword ptr [ecx + 0x20], 1 */
   5412     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5413     eax = eax + 1; /* 0x47066921: inc eax */
   5414     _flag_k = FK_INC;
   5415     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47066922: ret  */
   5416     RECOMP_REGS_OUT();
   5417 }
   5418 
   5419 void sub_47066930(void) {
   5420     int _fpu_cmp = 0;
   5421     uint32_t _cf = 0;
   5422     int _df = 1;
   5423     uint32_t _flag_k = FK_NONE;
   5424     uint32_t _flag_a = 0, _flag_b = 0;
   5425     uint32_t _itail_tgt = 0;
   5426     RECOMP_REGS_LOCALS
   5427     RECOMP_ENTER(0x47066930u);
   5428 
   5429 L_47066930:
   5430     eax = MEM32(ecx); /* 0x47066930: mov eax, dword ptr [ecx] */
   5431     PUSH32(esp, esi); /* 0x47066932: push esi */
   5432     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5433     esi = 0; /* 0x47066933: xor esi, esi */
   5434     _cf = 0;
   5435     _flag_k = FK_TEST;
   5436     RECOMP_ICALL(MEM32(eax + 0x80)); /* 0x47066935: call dword ptr [eax + 0x80] */
   5437     RECOMP_FLAGS_IN();
   5438     /* test eax, eax */ /* 0x4706693B: test eax, eax */
   5439     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5440     _cf = 0;
   5441     _flag_k = FK_TEST;
   5442     if (TEST_Z(_flag_a, _flag_b)) goto L_47066963; /* 0x4706693D: je 0x47066963 */
   5443 L_4706693F:
   5444     esi = MEM32(0x470AC3C8); /* 0x4706693F: mov esi, dword ptr [0x470ac3c8] */
   5445     RECOMP_ICALL(esi); /* 0x47066945: call esi */
   5446     RECOMP_FLAGS_IN();
   5447     MEM32(eax) = 0x79u; /* 0x47066947: mov dword ptr [eax], 0x79 */
   5448     RECOMP_ICALL(esi); /* 0x4706694D: call esi */
   5449     RECOMP_FLAGS_IN();
   5450     /* cmp MEM32(eax), 0x79u */ /* 0x4706694F: cmp dword ptr [eax], 0x79 */
   5451     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x79u);
   5452     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5453     _flag_k = FK_CMP;
   5454     if (CMP_NE(_flag_a, _flag_b)) goto L_4706695C; /* 0x47066952: jne 0x4706695c */
   5455 L_47066954:
   5456     RECOMP_ICALL(esi); /* 0x47066954: call esi */
   5457     RECOMP_FLAGS_IN();
   5458     MEM32(eax) = 0x2733u; /* 0x47066956: mov dword ptr [eax], 0x2733 */
   5459 L_4706695C:
   5460     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   5461     eax = eax | 0xFFFFFFFFu; /* 0x4706695C: or eax, 0xffffffff */
   5462     _cf = 0;
   5463     _flag_k = FK_TEST;
   5464     esi = POP32_VAL(esp); /* 0x4706695F: pop esi */
   5465     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47066960: ret 8 */
   5466 L_47066963:
   5467     eax = esi; /* 0x47066963: mov eax, esi */
   5468     esi = POP32_VAL(esp); /* 0x47066965: pop esi */
   5469     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47066966: ret 8 */
   5470     RECOMP_REGS_OUT();
   5471 }
   5472 
   5473 void sub_47066970(void) {
   5474     int _fpu_cmp = 0;
   5475     uint32_t _cf = 0;
   5476     int _df = 1;
   5477     uint32_t _flag_k = FK_NONE;
   5478     uint32_t _flag_a = 0, _flag_b = 0;
   5479     uint32_t _itail_tgt = 0;
   5480     RECOMP_REGS_LOCALS
   5481     RECOMP_ENTER(0x47066970u);
   5482 
   5483 L_47066970:
   5484     eax = MEM32(ecx); /* 0x47066970: mov eax, dword ptr [ecx] */
   5485     PUSH32(esp, esi); /* 0x47066972: push esi */
   5486     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5487     esi = 0; /* 0x47066973: xor esi, esi */
   5488     _cf = 0;
   5489     _flag_k = FK_TEST;
   5490     RECOMP_ICALL(MEM32(eax + 0x84)); /* 0x47066975: call dword ptr [eax + 0x84] */
   5491     RECOMP_FLAGS_IN();
   5492     /* test eax, eax */ /* 0x4706697B: test eax, eax */
   5493     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5494     _cf = 0;
   5495     _flag_k = FK_TEST;
   5496     if (TEST_Z(_flag_a, _flag_b)) goto L_470669A3; /* 0x4706697D: je 0x470669a3 */
   5497 L_4706697F:
   5498     esi = MEM32(0x470AC3C8); /* 0x4706697F: mov esi, dword ptr [0x470ac3c8] */
   5499     RECOMP_ICALL(esi); /* 0x47066985: call esi */
   5500     RECOMP_FLAGS_IN();
   5501     MEM32(eax) = 0x79u; /* 0x47066987: mov dword ptr [eax], 0x79 */
   5502     RECOMP_ICALL(esi); /* 0x4706698D: call esi */
   5503     RECOMP_FLAGS_IN();
   5504     /* cmp MEM32(eax), 0x79u */ /* 0x4706698F: cmp dword ptr [eax], 0x79 */
   5505     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x79u);
   5506     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5507     _flag_k = FK_CMP;
   5508     if (CMP_NE(_flag_a, _flag_b)) goto L_4706699C; /* 0x47066992: jne 0x4706699c */
   5509 L_47066994:
   5510     RECOMP_ICALL(esi); /* 0x47066994: call esi */
   5511     RECOMP_FLAGS_IN();
   5512     MEM32(eax) = 0x2733u; /* 0x47066996: mov dword ptr [eax], 0x2733 */
   5513 L_4706699C:
   5514     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   5515     eax = eax | 0xFFFFFFFFu; /* 0x4706699C: or eax, 0xffffffff */
   5516     _cf = 0;
   5517     _flag_k = FK_TEST;
   5518     esi = POP32_VAL(esp); /* 0x4706699F: pop esi */
   5519     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470669A0: ret 8 */
   5520 L_470669A3:
   5521     eax = esi; /* 0x470669A3: mov eax, esi */
   5522     esi = POP32_VAL(esp); /* 0x470669A5: pop esi */
   5523     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x470669A6: ret 8 */
   5524     RECOMP_REGS_OUT();
   5525 }
   5526 
   5527 void sub_470669B0(void) {
   5528     int _fpu_cmp = 0;
   5529     uint32_t _cf = 0;
   5530     int _df = 1;
   5531     uint32_t _flag_k = FK_NONE;
   5532     uint32_t _flag_a = 0, _flag_b = 0;
   5533     uint32_t _itail_tgt = 0;
   5534     RECOMP_REGS_LOCALS
   5535     RECOMP_ENTER(0x470669B0u);
   5536 
   5537 L_470669B0:
   5538     PUSH32(esp, 0xFFFFFFFFu); /* 0x470669B0: push -1 */
   5539     PUSH32(esp, 0x470A8649u); /* 0x470669B2: push 0x470a8649 */
   5540     eax = MEM32(FS_BASE + (0)); /* 0x470669B7: mov eax, dword ptr fs:[0] */
   5541     PUSH32(esp, eax); /* 0x470669BD: push eax */
   5542     MEM32(FS_BASE + (0)) = esp; /* 0x470669BE: mov dword ptr fs:[0], esp */
   5543     PUSH32(esp, ecx); /* 0x470669C5: push ecx */
   5544     PUSH32(esp, ebx); /* 0x470669C6: push ebx */
   5545     PUSH32(esp, ebp); /* 0x470669C7: push ebp */
   5546     PUSH32(esp, esi); /* 0x470669C8: push esi */
   5547     PUSH32(esp, edi); /* 0x470669C9: push edi */
   5548     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5549     ebx = 0; /* 0x470669CA: xor ebx, ebx */
   5550     _cf = 0;
   5551     _flag_k = FK_TEST;
   5552     esi = ecx; /* 0x470669CC: mov esi, ecx */
   5553     PUSH32(esp, ebx); /* 0x470669CE: push ebx */
   5554     PUSH32(esp, ebx); /* 0x470669CF: push ebx */
   5555     ecx = esi + 0x4; /* 0x470669D0: lea ecx, [esi + 4] */
   5556     MEM32(esp + 0x18) = esi; /* 0x470669D3: mov dword ptr [esp + 0x18], esi */
   5557     RECOMP_ICALL(0x47087E50u); /* 0x470669D7: call 0x47087e50 */ /* not lifted */
   5558     RECOMP_FLAGS_IN();
   5559     ebp = MEM32(esp + 0x28); /* 0x470669DC: mov ebp, dword ptr [esp + 0x28] */
   5560     /* cmp ebp, ebx */ /* 0x470669E0: cmp ebp, ebx */
   5561     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebx);
   5562     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5563     _flag_k = FK_CMP;
   5564     MEM32(esp + 0x1C) = ebx; /* 0x470669E2: mov dword ptr [esp + 0x1c], ebx */
   5565     if (CMP_NE(_flag_a, _flag_b)) goto L_47066A28; /* 0x470669E6: jne 0x47066a28 */
   5566 L_470669E8:
   5567     PUSH32(esp, 0x20u); /* 0x470669E8: push 0x20 */
   5568     RECOMP_ICALL(0x470A33F2u); /* 0x470669EA: call 0x470a33f2 */ /* not lifted */
   5569     RECOMP_FLAGS_IN();
   5570     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5571     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5572     esp = esp + 4; /* 0x470669EF: add esp, 4 */
   5573     _flag_k = FK_ADD;
   5574     /* cmp eax, ebx */ /* 0x470669F2: cmp eax, ebx */
   5575     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   5576     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5577     _flag_k = FK_CMP;
   5578     if (CMP_EQ(_flag_a, _flag_b)) goto L_47066A20; /* 0x470669F4: je 0x47066a20 */
   5579 L_470669F6:
   5580     MEM32(eax + 0x4) = 1; /* 0x470669F6: mov dword ptr [eax + 4], 1 */
   5581     MEM32(eax + 0x8) = ebx; /* 0x470669FD: mov dword ptr [eax + 8], ebx */
   5582     MEM32(eax + 0xC) = ebx; /* 0x47066A00: mov dword ptr [eax + 0xc], ebx */
   5583     MEM32(eax + 0x10) = 0x61A8u; /* 0x47066A03: mov dword ptr [eax + 0x10], 0x61a8 */
   5584     MEM32(eax + 0x14) = 0x64u; /* 0x47066A0A: mov dword ptr [eax + 0x14], 0x64 */
   5585     MEM32(eax + 0x18) = ebx; /* 0x47066A11: mov dword ptr [eax + 0x18], ebx */
   5586     MEM32(eax) = 0x470AE9C8u; /* 0x47066A14: mov dword ptr [eax], 0x470ae9c8 */
   5587     MEM8(esp + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x47066A1A: mov byte ptr [esp + 0x1c], bl */
   5588     goto L_47066A2A; /* 0x47066A1E: jmp 0x47066a2a */
   5589 L_47066A20:
   5590     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5591     eax = 0; /* 0x47066A20: xor eax, eax */
   5592     _cf = 0;
   5593     _flag_k = FK_TEST;
   5594     MEM8(esp + 0x1C) = (uint8_t)(LO8(ebx)); /* 0x47066A22: mov byte ptr [esp + 0x1c], bl */
   5595     goto L_47066A2A; /* 0x47066A26: jmp 0x47066a2a */
   5596 L_47066A28:
   5597     eax = ebp; /* 0x47066A28: mov eax, ebp */
   5598 L_47066A2A:
   5599     edi = MEM32(esp + 0x24); /* 0x47066A2A: mov edi, dword ptr [esp + 0x24] */
   5600     /* cmp edi, ebx */ /* 0x47066A2E: cmp edi, ebx */
   5601     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   5602     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5603     _flag_k = FK_CMP;
   5604     MEM32(esi + 0x20) = eax; /* 0x47066A30: mov dword ptr [esi + 0x20], eax */
   5605     MEM32(esi + 0x24) = 0x47001760u; /* 0x47066A33: mov dword ptr [esi + 0x24], 0x47001760 */
   5606     if (CMP_NE(_flag_a, _flag_b)) goto L_47066A52; /* 0x47066A3A: jne 0x47066a52 */
   5607 L_47066A3C:
   5608     PUSH32(esp, 4); /* 0x47066A3C: push 4 */
   5609     RECOMP_ICALL(0x470A33F2u); /* 0x47066A3E: call 0x470a33f2 */ /* not lifted */
   5610     RECOMP_FLAGS_IN();
   5611     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5612     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5613     esp = esp + 4; /* 0x47066A43: add esp, 4 */
   5614     _flag_k = FK_ADD;
   5615     /* cmp eax, ebx */ /* 0x47066A46: cmp eax, ebx */
   5616     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebx);
   5617     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5618     _flag_k = FK_CMP;
   5619     if (CMP_EQ(_flag_a, _flag_b)) goto L_47066A4E; /* 0x47066A48: je 0x47066a4e */
   5620 L_47066A4A:
   5621     MEM32(eax) = ebx; /* 0x47066A4A: mov dword ptr [eax], ebx */
   5622     goto L_47066A54; /* 0x47066A4C: jmp 0x47066a54 */
   5623 L_47066A4E:
   5624     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5625     eax = 0; /* 0x47066A4E: xor eax, eax */
   5626     _cf = 0;
   5627     _flag_k = FK_TEST;
   5628     goto L_47066A54; /* 0x47066A50: jmp 0x47066a54 */
   5629 L_47066A52:
   5630     eax = edi; /* 0x47066A52: mov eax, edi */
   5631 L_47066A54:
   5632     MEM32(esi + 0x28) = eax; /* 0x47066A54: mov dword ptr [esi + 0x28], eax */
   5633     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5634     eax = 0; /* 0x47066A57: xor eax, eax */
   5635     _cf = 0;
   5636     _flag_k = FK_TEST;
   5637     /* cmp edi, ebx */ /* 0x47066A59: cmp edi, ebx */
   5638     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(ebx);
   5639     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5640     _flag_k = FK_CMP;
   5641     SET_LO8(eax, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x47066A5B: sete al */
   5642     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5643     ecx = 0; /* 0x47066A5E: xor ecx, ecx */
   5644     _cf = 0;
   5645     _flag_k = FK_TEST;
   5646     /* cmp ebp, ebx */ /* 0x47066A60: cmp ebp, ebx */
   5647     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebx);
   5648     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5649     _flag_k = FK_CMP;
   5650     SET_LO8(ecx, (CMP_EQ(_flag_a, _flag_b)) ? 1 : 0); /* 0x47066A62: sete cl */
   5651     MEM32(esi + 0x2C) = eax; /* 0x47066A65: mov dword ptr [esi + 0x2c], eax */
   5652     MEM32(esi + 0x30) = ecx; /* 0x47066A68: mov dword ptr [esi + 0x30], ecx */
   5653     ecx = esi + 0x3C; /* 0x47066A6B: lea ecx, [esi + 0x3c] */
   5654     MEM32(esi + 0x34) = ebx; /* 0x47066A6E: mov dword ptr [esi + 0x34], ebx */
   5655     MEM32(esi + 0x38) = ebx; /* 0x47066A71: mov dword ptr [esi + 0x38], ebx */
   5656     MEM32(ecx) = ebx; /* 0x47066A74: mov dword ptr [ecx], ebx */
   5657     MEM32(ecx + 0x4) = ebx; /* 0x47066A76: mov dword ptr [ecx + 4], ebx */
   5658     RECOMP_ICALL(0x470543C0u); /* 0x47066A79: call 0x470543c0 */ /* not lifted */
   5659     RECOMP_FLAGS_IN();
   5660     ecx = MEM32(esp + 0x14); /* 0x47066A7E: mov ecx, dword ptr [esp + 0x14] */
   5661     edi = POP32_VAL(esp); /* 0x47066A82: pop edi */
   5662     MEM32(esi) = 0x470AE980u; /* 0x47066A83: mov dword ptr [esi], 0x470ae980 */
   5663     eax = esi; /* 0x47066A89: mov eax, esi */
   5664     esi = POP32_VAL(esp); /* 0x47066A8B: pop esi */
   5665     ebp = POP32_VAL(esp); /* 0x47066A8C: pop ebp */
   5666     ebx = POP32_VAL(esp); /* 0x47066A8D: pop ebx */
   5667     MEM32(FS_BASE + (0)) = ecx; /* 0x47066A8E: mov dword ptr fs:[0], ecx */
   5668     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   5669     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5670     esp = esp + 0x10u; /* 0x47066A95: add esp, 0x10 */
   5671     _flag_k = FK_ADD;
   5672     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47066A98: ret 8 */
   5673     RECOMP_REGS_OUT();
   5674 }
   5675 
   5676 void sub_47066AA0(void) {
   5677     int _fpu_cmp = 0;
   5678     uint32_t _cf = 0;
   5679     int _df = 1;
   5680     uint32_t _flag_k = FK_NONE;
   5681     uint32_t _flag_a = 0, _flag_b = 0;
   5682     uint32_t _itail_tgt = 0;
   5683     RECOMP_REGS_LOCALS
   5684     RECOMP_ENTER(0x47066AA0u);
   5685 
   5686 L_47066AA0:
   5687     MEM32(ecx) = 0x470AE9E4u; /* 0x47066AA0: mov dword ptr [ecx], 0x470ae9e4 */
   5688     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47066AA6: ret  */
   5689     RECOMP_REGS_OUT();
   5690 }
   5691 
   5692 void sub_47066AB0(void) {
   5693     int _fpu_cmp = 0;
   5694     uint32_t _cf = 0;
   5695     int _df = 1;
   5696     uint32_t _flag_k = FK_NONE;
   5697     uint32_t _flag_a = 0, _flag_b = 0;
   5698     uint32_t _itail_tgt = 0;
   5699     RECOMP_REGS_LOCALS
   5700     RECOMP_ENTER(0x47066AB0u);
   5701 
   5702 L_47066AB0:
   5703     eax = MEM32(esp + 0x4); /* 0x47066AB0: mov eax, dword ptr [esp + 4] */
   5704     edx = MEM32(esp + 0x8); /* 0x47066AB4: mov edx, dword ptr [esp + 8] */
   5705     MEM32(ecx + 0x8) = eax; /* 0x47066AB8: mov dword ptr [ecx + 8], eax */
   5706     MEM32(ecx + 0xC) = edx; /* 0x47066ABB: mov dword ptr [ecx + 0xc], edx */
   5707     RECOMP_FLAGS_OUT(); esp += 12; { RECOMP_REGS_OUT(); return; } /* 0x47066ABE: ret 8 */
   5708     RECOMP_REGS_OUT();
   5709 }
   5710 
   5711 void sub_47066AD0(void) {
   5712     int _fpu_cmp = 0;
   5713     uint32_t _cf = 0;
   5714     int _df = 1;
   5715     uint32_t _flag_k = FK_NONE;
   5716     uint32_t _flag_a = 0, _flag_b = 0;
   5717     uint32_t _itail_tgt = 0;
   5718     RECOMP_REGS_LOCALS
   5719     RECOMP_ENTER(0x47066AD0u);
   5720 
   5721 L_47066AD0:
   5722     eax = ecx + 0x10; /* 0x47066AD0: lea eax, [ecx + 0x10] */
   5723     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47066AD3: ret  */
   5724     RECOMP_REGS_OUT();
   5725 }
   5726 
   5727 void sub_47066AE0(void) {
   5728     int _fpu_cmp = 0;
   5729     uint32_t _cf = 0;
   5730     int _df = 1;
   5731     uint32_t _flag_k = FK_NONE;
   5732     uint32_t _flag_a = 0, _flag_b = 0;
   5733     uint32_t _itail_tgt = 0;
   5734     RECOMP_REGS_LOCALS
   5735     RECOMP_ENTER(0x47066AE0u);
   5736 
   5737 L_47066AE0:
   5738     PUSH32(esp, 0xFFFFFFFFu); /* 0x47066AE0: push -1 */
   5739     PUSH32(esp, 0x470A866Bu); /* 0x47066AE2: push 0x470a866b */
   5740     eax = MEM32(FS_BASE + (0)); /* 0x47066AE7: mov eax, dword ptr fs:[0] */
   5741     PUSH32(esp, eax); /* 0x47066AED: push eax */
   5742     MEM32(FS_BASE + (0)) = esp; /* 0x47066AEE: mov dword ptr fs:[0], esp */
   5743     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5744     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5745     esp = esp - 8; /* 0x47066AF5: sub esp, 8 */
   5746     _flag_k = FK_CMP;
   5747     PUSH32(esp, ebx); /* 0x47066AF8: push ebx */
   5748     ebx = ecx; /* 0x47066AF9: mov ebx, ecx */
   5749     eax = MEM32(ebx + 0x44); /* 0x47066AFB: mov eax, dword ptr [ebx + 0x44] */
   5750     PUSH32(esp, ebp); /* 0x47066AFE: push ebp */
   5751     if (1u) _cf = (((eax) >> 31) & 1u); /* 0x47066AFF: shl eax, 1 */
   5752     if (1u) { _flag_a = recomp_flags_pack((eax << 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5753     eax = eax << 1u; /* 0x47066AFF: shl eax, 1 */
   5754     PUSH32(esp, esi); /* 0x47066B01: push esi */
   5755     MEM32(esp + 0xC) = eax; /* 0x47066B02: mov dword ptr [esp + 0xc], eax */
   5756     if (2u) _cf = (((eax) >> 30) & 1u); /* 0x47066B06: shl eax, 2 */
   5757     if (2u) { _flag_a = recomp_flags_pack((eax << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5758     eax = eax << 2u; /* 0x47066B06: shl eax, 2 */
   5759     PUSH32(esp, edi); /* 0x47066B09: push edi */
   5760     PUSH32(esp, eax); /* 0x47066B0A: push eax */
   5761     MEM32(esp + 0x18) = eax; /* 0x47066B0B: mov dword ptr [esp + 0x18], eax */
   5762     RECOMP_ICALL(0x470A33F2u); /* 0x47066B0F: call 0x470a33f2 */ /* not lifted */
   5763     RECOMP_FLAGS_IN();
   5764     ebp = eax; /* 0x47066B14: mov ebp, eax */
   5765     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5766     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5767     esp = esp + 4; /* 0x47066B16: add esp, 4 */
   5768     _flag_k = FK_ADD;
   5769     /* test ebp, ebp */ /* 0x47066B19: test ebp, ebp */
   5770     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp);
   5771     _cf = 0;
   5772     _flag_k = FK_TEST;
   5773     if (TEST_NZ(_flag_a, _flag_b)) goto L_47066B3C; /* 0x47066B1B: jne 0x47066b3c */
   5774 L_47066B1D:
   5775     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47066B1D: call dword ptr [0x470ac3c8] */
   5776     RECOMP_FLAGS_IN();
   5777     edi = POP32_VAL(esp); /* 0x47066B23: pop edi */
   5778     esi = POP32_VAL(esp); /* 0x47066B24: pop esi */
   5779     ebp = POP32_VAL(esp); /* 0x47066B25: pop ebp */
   5780     MEM32(eax) = 0xCu; /* 0x47066B26: mov dword ptr [eax], 0xc */
   5781     ebx = POP32_VAL(esp); /* 0x47066B2C: pop ebx */
   5782     ecx = MEM32(esp + 0x8); /* 0x47066B2D: mov ecx, dword ptr [esp + 8] */
   5783     MEM32(FS_BASE + (0)) = ecx; /* 0x47066B31: mov dword ptr fs:[0], ecx */
   5784     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   5785     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5786     esp = esp + 0x14u; /* 0x47066B38: add esp, 0x14 */
   5787     _flag_k = FK_ADD;
   5788     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47066B3B: ret  */
   5789 L_47066B3C:
   5790     ecx = MEM32(ebx + 0x44); /* 0x47066B3C: mov ecx, dword ptr [ebx + 0x44] */
   5791     esi = MEM32(ebx + 0x50); /* 0x47066B3F: mov esi, dword ptr [ebx + 0x50] */
   5792     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x47066B42: shl ecx, 2 */
   5793     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5794     ecx = ecx << 2u; /* 0x47066B42: shl ecx, 2 */
   5795     eax = ecx; /* 0x47066B45: mov eax, ecx */
   5796     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47066B47: shr ecx, 2 */
   5797     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5798     ecx = ecx >> 2u; /* 0x47066B47: shr ecx, 2 */
   5799     edi = ebp; /* 0x47066B4A: mov edi, ebp */
   5800     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47066B4C: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   5801     ecx = eax; /* 0x47066B4E: mov ecx, eax */
   5802     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   5803     ecx = ecx & 3; /* 0x47066B50: and ecx, 3 */
   5804     _cf = 0;
   5805     _flag_k = FK_TEST;
   5806     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47066B53: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   5807     eax = MEM32(ebx + 0x50); /* 0x47066B55: mov eax, dword ptr [ebx + 0x50] */
   5808     PUSH32(esp, eax); /* 0x47066B58: push eax */
   5809     RECOMP_ICALL(0x470A32A2u); /* 0x47066B59: call 0x470a32a2 */ /* not lifted */
   5810     RECOMP_FLAGS_IN();
   5811     ecx = MEM32(esp + 0x18); /* 0x47066B5E: mov ecx, dword ptr [esp + 0x18] */
   5812     PUSH32(esp, ecx); /* 0x47066B62: push ecx */
   5813     MEM32(ebx + 0x50) = ebp; /* 0x47066B63: mov dword ptr [ebx + 0x50], ebp */
   5814     RECOMP_ICALL(0x470A33F2u); /* 0x47066B66: call 0x470a33f2 */ /* not lifted */
   5815     RECOMP_FLAGS_IN();
   5816     ebp = eax; /* 0x47066B6B: mov ebp, eax */
   5817     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   5818     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5819     esp = esp + 8; /* 0x47066B6D: add esp, 8 */
   5820     _flag_k = FK_ADD;
   5821     /* test ebp, ebp */ /* 0x47066B70: test ebp, ebp */
   5822     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp);
   5823     _cf = 0;
   5824     _flag_k = FK_TEST;
   5825     if (TEST_NZ(_flag_a, _flag_b)) goto L_47066B93; /* 0x47066B72: jne 0x47066b93 */
   5826 L_47066B74:
   5827     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47066B74: call dword ptr [0x470ac3c8] */
   5828     RECOMP_FLAGS_IN();
   5829     edi = POP32_VAL(esp); /* 0x47066B7A: pop edi */
   5830     esi = POP32_VAL(esp); /* 0x47066B7B: pop esi */
   5831     ebp = POP32_VAL(esp); /* 0x47066B7C: pop ebp */
   5832     MEM32(eax) = 0xCu; /* 0x47066B7D: mov dword ptr [eax], 0xc */
   5833     ebx = POP32_VAL(esp); /* 0x47066B83: pop ebx */
   5834     ecx = MEM32(esp + 0x8); /* 0x47066B84: mov ecx, dword ptr [esp + 8] */
   5835     MEM32(FS_BASE + (0)) = ecx; /* 0x47066B88: mov dword ptr fs:[0], ecx */
   5836     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   5837     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5838     esp = esp + 0x14u; /* 0x47066B8F: add esp, 0x14 */
   5839     _flag_k = FK_ADD;
   5840     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47066B92: ret  */
   5841 L_47066B93:
   5842     ecx = MEM32(ebx + 0x44); /* 0x47066B93: mov ecx, dword ptr [ebx + 0x44] */
   5843     esi = MEM32(ebx + 0x54); /* 0x47066B96: mov esi, dword ptr [ebx + 0x54] */
   5844     if (2u) _cf = (((ecx) >> 30) & 1u); /* 0x47066B99: shl ecx, 2 */
   5845     if (2u) { _flag_a = recomp_flags_pack((ecx << 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5846     ecx = ecx << 2u; /* 0x47066B99: shl ecx, 2 */
   5847     edx = ecx; /* 0x47066B9C: mov edx, ecx */
   5848     if (2u) _cf = (((ecx) >> 1) & 1u); /* 0x47066B9E: shr ecx, 2 */
   5849     if (2u) { _flag_a = recomp_flags_pack((ecx >> 2u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   5850     ecx = ecx >> 2u; /* 0x47066B9E: shr ecx, 2 */
   5851     edi = ebp; /* 0x47066BA1: mov edi, ebp */
   5852     if (ecx) { uint32_t _n = ecx, _b = _n * 4u; /* 0x47066BA3: rep movsd dword ptr es:[edi], dword ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 4u), (void*)ADDR(esi - _b + 4u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   5853     ecx = edx; /* 0x47066BA5: mov ecx, edx */
   5854     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(3);
   5855     ecx = ecx & 3; /* 0x47066BA7: and ecx, 3 */
   5856     _cf = 0;
   5857     _flag_k = FK_TEST;
   5858     if (ecx) { uint32_t _n = ecx, _b = _n * 1u; /* 0x47066BAA: rep movsb byte ptr es:[edi], byte ptr [esi] */ if (_df > 0) { memmove((void*)ADDR(edi), (void*)ADDR(esi), _b); esi += _b; edi += _b; } else { memmove((void*)ADDR(edi - _b + 1u), (void*)ADDR(esi - _b + 1u), _b); esi -= _b; edi -= _b; } ecx = 0; }
   5859     eax = MEM32(ebx + 0x54); /* 0x47066BAC: mov eax, dword ptr [ebx + 0x54] */
   5860     PUSH32(esp, eax); /* 0x47066BAF: push eax */
   5861     RECOMP_ICALL(0x470A32A2u); /* 0x47066BB0: call 0x470a32a2 */ /* not lifted */
   5862     RECOMP_FLAGS_IN();
   5863     eax = MEM32(ebx + 0x44); /* 0x47066BB5: mov eax, dword ptr [ebx + 0x44] */
   5864     MEM32(ebx + 0x54) = ebp; /* 0x47066BB8: mov dword ptr [ebx + 0x54], ebp */
   5865     ebp = MEM32(esp + 0x14); /* 0x47066BBB: mov ebp, dword ptr [esp + 0x14] */
   5866     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5867     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5868     esp = esp + 4; /* 0x47066BBF: add esp, 4 */
   5869     _flag_k = FK_ADD;
   5870     /* cmp eax, ebp */ /* 0x47066BC2: cmp eax, ebp */
   5871     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
   5872     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5873     _flag_k = FK_CMP;
   5874     if (CMP_AE(_flag_a, _flag_b)) goto L_47066BD7; /* 0x47066BC4: jae 0x47066bd7 */
   5875 L_47066BC6:
   5876     _flag_a = (uint32_t)((ecx | 0xFFFFFFFFu)); _flag_b = (uint32_t)((ecx | 0xFFFFFFFFu));
   5877     ecx = ecx | 0xFFFFFFFFu; /* 0x47066BC6: or ecx, 0xffffffff */
   5878     _cf = 0;
   5879     _flag_k = FK_TEST;
   5880     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   5881     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5882     ecx = ecx - eax; /* 0x47066BC9: sub ecx, eax */
   5883     _flag_k = FK_CMP;
   5884 L_47066BCB:
   5885     edx = MEM32(ebx + 0x54); /* 0x47066BCB: mov edx, dword ptr [ebx + 0x54] */
   5886     MEM32(edx + eax * 4) = ecx; /* 0x47066BCE: mov dword ptr [edx + eax*4], ecx */
   5887     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   5888     eax = eax + 1; /* 0x47066BD1: inc eax */
   5889     _flag_k = FK_INC;
   5890     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   5891     ecx = ecx - 1; /* 0x47066BD2: dec ecx */
   5892     _flag_k = FK_DEC;
   5893     /* cmp eax, ebp */ /* 0x47066BD3: cmp eax, ebp */
   5894     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ebp);
   5895     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5896     _flag_k = FK_CMP;
   5897     RECOMP_BACKEDGE();
   5898     if (CMP_B(_flag_a, _flag_b)) goto L_47066BCB; /* 0x47066BD5: jb 0x47066bcb */
   5899 L_47066BD7:
   5900     eax = MEM32(ebx + 0x5C); /* 0x47066BD7: mov eax, dword ptr [ebx + 0x5c] */
   5901     /* test eax, eax */ /* 0x47066BDA: test eax, eax */
   5902     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5903     _cf = 0;
   5904     _flag_k = FK_TEST;
   5905     esi = ebx + 0x5C; /* 0x47066BDC: lea esi, [ebx + 0x5c] */
   5906     if (TEST_Z(_flag_a, _flag_b)) goto L_47066CD9; /* 0x47066BDF: je 0x47066cd9 */
   5907 L_47066BE5:
   5908     edi = MEM32(ebx + 0x44); /* 0x47066BE5: mov edi, dword ptr [ebx + 0x44] */
   5909     eax = edi + edi * 8; /* 0x47066BE8: lea eax, [edi + edi*8] */
   5910     ecx = eax * 4 + 0x4; /* 0x47066BEB: lea ecx, [eax*4 + 4] */
   5911     PUSH32(esp, ecx); /* 0x47066BF2: push ecx */
   5912     RECOMP_ICALL(0x470A33F2u); /* 0x47066BF3: call 0x470a33f2 */ /* not lifted */
   5913     RECOMP_FLAGS_IN();
   5914     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   5915     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5916     esp = esp + 4; /* 0x47066BF8: add esp, 4 */
   5917     _flag_k = FK_ADD;
   5918     MEM32(esp + 0x14) = eax; /* 0x47066BFB: mov dword ptr [esp + 0x14], eax */
   5919     /* test eax, eax */ /* 0x47066BFF: test eax, eax */
   5920     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5921     _cf = 0;
   5922     _flag_k = FK_TEST;
   5923     MEM32(esp + 0x20) = 0; /* 0x47066C01: mov dword ptr [esp + 0x20], 0 */
   5924     if (TEST_Z(_flag_a, _flag_b)) goto L_47066C2B; /* 0x47066C09: je 0x47066c2b */
   5925 L_47066C0B:
   5926     PUSH32(esp, 0x470041D0u); /* 0x47066C0B: push 0x470041d0 */
   5927     PUSH32(esp, 0x47061830u); /* 0x47066C10: push 0x47061830 */
   5928     PUSH32(esp, edi); /* 0x47066C15: push edi */
   5929     ebp = eax + 0x4; /* 0x47066C16: lea ebp, [eax + 4] */
   5930     PUSH32(esp, 0x24u); /* 0x47066C19: push 0x24 */
   5931     PUSH32(esp, ebp); /* 0x47066C1B: push ebp */
   5932     MEM32(eax) = edi; /* 0x47066C1C: mov dword ptr [eax], edi */
   5933     RECOMP_ICALL(0x470A342Fu); /* 0x47066C1E: call 0x470a342f */ /* not lifted */
   5934     RECOMP_FLAGS_IN();
   5935     eax = ebp; /* 0x47066C23: mov eax, ebp */
   5936     ebp = MEM32(esp + 0x10); /* 0x47066C25: mov ebp, dword ptr [esp + 0x10] */
   5937     goto L_47066C2D; /* 0x47066C29: jmp 0x47066c2d */
   5938 L_47066C2B:
   5939     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   5940     eax = 0; /* 0x47066C2B: xor eax, eax */
   5941     _cf = 0;
   5942     _flag_k = FK_TEST;
   5943 L_47066C2D:
   5944     /* test eax, eax */ /* 0x47066C2D: test eax, eax */
   5945     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   5946     _cf = 0;
   5947     _flag_k = FK_TEST;
   5948     MEM32(esp + 0x20) = 0xFFFFFFFFu; /* 0x47066C2F: mov dword ptr [esp + 0x20], 0xffffffff */
   5949     MEM32(esi) = eax; /* 0x47066C37: mov dword ptr [esi], eax */
   5950     if (TEST_NZ(_flag_a, _flag_b)) goto L_47066C5A; /* 0x47066C39: jne 0x47066c5a */
   5951 L_47066C3B:
   5952     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47066C3B: call dword ptr [0x470ac3c8] */
   5953     RECOMP_FLAGS_IN();
   5954     edi = POP32_VAL(esp); /* 0x47066C41: pop edi */
   5955     esi = POP32_VAL(esp); /* 0x47066C42: pop esi */
   5956     ebp = POP32_VAL(esp); /* 0x47066C43: pop ebp */
   5957     MEM32(eax) = 0xCu; /* 0x47066C44: mov dword ptr [eax], 0xc */
   5958     ebx = POP32_VAL(esp); /* 0x47066C4A: pop ebx */
   5959     ecx = MEM32(esp + 0x8); /* 0x47066C4B: mov ecx, dword ptr [esp + 8] */
   5960     MEM32(FS_BASE + (0)) = ecx; /* 0x47066C4F: mov dword ptr fs:[0], ecx */
   5961     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   5962     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   5963     esp = esp + 0x14u; /* 0x47066C56: add esp, 0x14 */
   5964     _flag_k = FK_ADD;
   5965     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47066C59: ret  */
   5966 L_47066C5A:
   5967     edx = MEM32(ebx + 0x64); /* 0x47066C5A: mov edx, dword ptr [ebx + 0x64] */
   5968     eax = MEM32(esi); /* 0x47066C5D: mov eax, dword ptr [esi] */
   5969     ecx = ebx + 0x64; /* 0x47066C5F: lea ecx, [ebx + 0x64] */
   5970     MEM32(edx + 0x4) = eax; /* 0x47066C62: mov dword ptr [edx + 4], eax */
   5971     edi = MEM32(ecx); /* 0x47066C65: mov edi, dword ptr [ecx] */
   5972     eax = MEM32(edi); /* 0x47066C67: mov eax, dword ptr [edi] */
   5973     edx = MEM32(esi); /* 0x47066C69: mov edx, dword ptr [esi] */
   5974     /* cmp MEM32(eax + 0x4), edx */ /* 0x47066C6B: cmp dword ptr [eax + 4], edx */
   5975     _flag_a = (uint32_t)(MEM32(eax + 0x4)); _flag_b = (uint32_t)(edx);
   5976     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5977     _flag_k = FK_CMP;
   5978     if (CMP_EQ(_flag_a, _flag_b)) goto L_47066C77; /* 0x47066C6E: je 0x47066c77 */
   5979 L_47066C70:
   5980     eax = MEM32(eax); /* 0x47066C70: mov eax, dword ptr [eax] */
   5981     /* cmp MEM32(eax + 0x4), edx */ /* 0x47066C72: cmp dword ptr [eax + 4], edx */
   5982     _flag_a = (uint32_t)(MEM32(eax + 0x4)); _flag_b = (uint32_t)(edx);
   5983     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5984     _flag_k = FK_CMP;
   5985     RECOMP_BACKEDGE();
   5986     if (CMP_NE(_flag_a, _flag_b)) goto L_47066C70; /* 0x47066C75: jne 0x47066c70 */
   5987 L_47066C77:
   5988     /* cmp eax, edi */ /* 0x47066C77: cmp eax, edi */
   5989     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   5990     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   5991     _flag_k = FK_CMP;
   5992     if (CMP_NE(_flag_a, _flag_b)) goto L_47066C81; /* 0x47066C79: jne 0x47066c81 */
   5993 L_47066C7B:
   5994     PUSH32(esp, esi); /* 0x47066C7B: push esi */
   5995     RECOMP_ICALL(0x47067230u); /* 0x47066C7C: call 0x47067230 */ /* not lifted */
   5996     RECOMP_FLAGS_IN();
   5997 L_47066C81:
   5998     eax = MEM32(ebx + 0x44); /* 0x47066C81: mov eax, dword ptr [ebx + 0x44] */
   5999     ecx = 1; /* 0x47066C84: mov ecx, 1 */
   6000     /* cmp eax, ecx */ /* 0x47066C89: cmp eax, ecx */
   6001     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   6002     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6003     _flag_k = FK_CMP;
   6004     if (CMP_BE(_flag_a, _flag_b)) goto L_47066CA4; /* 0x47066C8B: jbe 0x47066ca4 */
   6005 L_47066C8D:
   6006     edx = 0x24u; /* 0x47066C8D: mov edx, 0x24 */
   6007 L_47066C92:
   6008     eax = MEM32(esi); /* 0x47066C92: mov eax, dword ptr [esi] */
   6009     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   6010     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6011     eax = eax + edx; /* 0x47066C94: add eax, edx */
   6012     _flag_k = FK_ADD;
   6013     MEM32(eax + (-0x8)) = eax; /* 0x47066C96: mov dword ptr [eax - 8], eax */
   6014     eax = MEM32(ebx + 0x44); /* 0x47066C99: mov eax, dword ptr [ebx + 0x44] */
   6015     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(1);
   6016     ecx = ecx + 1; /* 0x47066C9C: inc ecx */
   6017     _flag_k = FK_INC;
   6018     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(0x24u);
   6019     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6020     edx = edx + 0x24u; /* 0x47066C9D: add edx, 0x24 */
   6021     _flag_k = FK_ADD;
   6022     /* cmp ecx, eax */ /* 0x47066CA0: cmp ecx, eax */
   6023     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(eax);
   6024     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6025     _flag_k = FK_CMP;
   6026     RECOMP_BACKEDGE();
   6027     if (CMP_B(_flag_a, _flag_b)) goto L_47066C92; /* 0x47066CA2: jb 0x47066c92 */
   6028 L_47066CA4:
   6029     eax = MEM32(ebx + 0x44); /* 0x47066CA4: mov eax, dword ptr [ebx + 0x44] */
   6030     edx = MEM32(esi); /* 0x47066CA7: mov edx, dword ptr [esi] */
   6031     ecx = eax + eax * 8; /* 0x47066CA9: lea ecx, [eax + eax*8] */
   6032     MEM32(edx + ecx * 4 + (-0x8)) = 0; /* 0x47066CAC: mov dword ptr [edx + ecx*4 - 8], 0 */
   6033     eax = MEM32(ebx + 0x60); /* 0x47066CB4: mov eax, dword ptr [ebx + 0x60] */
   6034     /* test eax, eax */ /* 0x47066CB7: test eax, eax */
   6035     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6036     _cf = 0;
   6037     _flag_k = FK_TEST;
   6038     if (TEST_NZ(_flag_a, _flag_b)) goto L_47066CC2; /* 0x47066CB9: jne 0x47066cc2 */
   6039 L_47066CBB:
   6040     eax = MEM32(esi); /* 0x47066CBB: mov eax, dword ptr [esi] */
   6041     MEM32(ebx + 0x60) = eax; /* 0x47066CBD: mov dword ptr [ebx + 0x60], eax */
   6042     goto L_47066CD9; /* 0x47066CC0: jmp 0x47066cd9 */
   6043 L_47066CC2:
   6044     ecx = eax; /* 0x47066CC2: mov ecx, eax */
   6045     eax = MEM32(eax + 0x1C); /* 0x47066CC4: mov eax, dword ptr [eax + 0x1c] */
   6046     /* test eax, eax */ /* 0x47066CC7: test eax, eax */
   6047     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6048     _cf = 0;
   6049     _flag_k = FK_TEST;
   6050     if (TEST_Z(_flag_a, _flag_b)) goto L_47066CD4; /* 0x47066CC9: je 0x47066cd4 */
   6051 L_47066CCB:
   6052     ecx = eax; /* 0x47066CCB: mov ecx, eax */
   6053     eax = MEM32(eax + 0x1C); /* 0x47066CCD: mov eax, dword ptr [eax + 0x1c] */
   6054     /* test eax, eax */ /* 0x47066CD0: test eax, eax */
   6055     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6056     _cf = 0;
   6057     _flag_k = FK_TEST;
   6058     RECOMP_BACKEDGE();
   6059     if (TEST_NZ(_flag_a, _flag_b)) goto L_47066CCB; /* 0x47066CD2: jne 0x47066ccb */
   6060 L_47066CD4:
   6061     edx = MEM32(esi); /* 0x47066CD4: mov edx, dword ptr [esi] */
   6062     MEM32(ecx + 0x1C) = edx; /* 0x47066CD6: mov dword ptr [ecx + 0x1c], edx */
   6063 L_47066CD9:
   6064     ecx = MEM32(esp + 0x18); /* 0x47066CD9: mov ecx, dword ptr [esp + 0x18] */
   6065     edi = POP32_VAL(esp); /* 0x47066CDD: pop edi */
   6066     MEM32(ebx + 0x44) = ebp; /* 0x47066CDE: mov dword ptr [ebx + 0x44], ebp */
   6067     esi = POP32_VAL(esp); /* 0x47066CE1: pop esi */
   6068     ebp = POP32_VAL(esp); /* 0x47066CE2: pop ebp */
   6069     ebx = POP32_VAL(esp); /* 0x47066CE3: pop ebx */
   6070     MEM32(FS_BASE + (0)) = ecx; /* 0x47066CE4: mov dword ptr fs:[0], ecx */
   6071     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6072     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6073     esp = esp + 0x14u; /* 0x47066CEB: add esp, 0x14 */
   6074     _flag_k = FK_ADD;
   6075     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47066CEE: ret  */
   6076     RECOMP_REGS_OUT();
   6077 }
   6078 
   6079 void sub_47066CF0(void) {
   6080     int _fpu_cmp = 0;
   6081     uint32_t _cf = 0;
   6082     int _df = 1;
   6083     uint32_t _flag_k = FK_NONE;
   6084     uint32_t _flag_a = 0, _flag_b = 0;
   6085     uint32_t _itail_tgt = 0;
   6086     RECOMP_REGS_LOCALS
   6087     RECOMP_ENTER(0x47066CF0u);
   6088 
   6089 L_47066CF0:
   6090     eax = ecx; /* 0x47066CF0: mov eax, ecx */
   6091     ecx = MEM32(esp + 0x4); /* 0x47066CF2: mov ecx, dword ptr [esp + 4] */
   6092     MEM32(eax + 0x4) = ecx; /* 0x47066CF6: mov dword ptr [eax + 4], ecx */
   6093     MEM32(eax) = 0x470AE9F8u; /* 0x47066CF9: mov dword ptr [eax], 0x470ae9f8 */
   6094     MEM32(eax + 0x8) = 0; /* 0x47066CFF: mov dword ptr [eax + 8], 0 */
   6095     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47066D06: ret 4 */
   6096     RECOMP_REGS_OUT();
   6097 }
   6098 
   6099 void sub_47066D10(void) {
   6100     int _fpu_cmp = 0;
   6101     uint32_t _cf = 0;
   6102     int _df = 1;
   6103     uint32_t _flag_k = FK_NONE;
   6104     uint32_t _flag_a = 0, _flag_b = 0;
   6105     uint32_t _itail_tgt = 0;
   6106     RECOMP_REGS_LOCALS
   6107     RECOMP_ENTER(0x47066D10u);
   6108 
   6109 L_47066D10:
   6110     MEM32(ecx + 0x8) = 0; /* 0x47066D10: mov dword ptr [ecx + 8], 0 */
   6111     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47066D17: ret  */
   6112     RECOMP_REGS_OUT();
   6113 }
   6114 
   6115 void sub_47066D20(void) {
   6116     int _fpu_cmp = 0;
   6117     uint32_t _cf = 0;
   6118     int _df = 1;
   6119     uint32_t _flag_k = FK_NONE;
   6120     uint32_t _flag_a = 0, _flag_b = 0;
   6121     uint32_t _itail_tgt = 0;
   6122     RECOMP_REGS_LOCALS
   6123     RECOMP_ENTER(0x47066D20u);
   6124 
   6125 L_47066D20:
   6126     edx = MEM32(ecx + 0x4); /* 0x47066D20: mov edx, dword ptr [ecx + 4] */
   6127     eax = MEM32(ecx + 0x8); /* 0x47066D23: mov eax, dword ptr [ecx + 8] */
   6128     /* cmp eax, MEM32(edx + 0x48) */ /* 0x47066D26: cmp eax, dword ptr [edx + 0x48] */
   6129     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x48));
   6130     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6131     _flag_k = FK_CMP;
   6132     if (CMP_EQ(_flag_a, _flag_b)) goto L_47066D2F; /* 0x47066D29: je 0x47066d2f */
   6133 L_47066D2B:
   6134     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6135     eax = eax + 1; /* 0x47066D2B: inc eax */
   6136     _flag_k = FK_INC;
   6137     MEM32(ecx + 0x8) = eax; /* 0x47066D2C: mov dword ptr [ecx + 8], eax */
   6138 L_47066D2F:
   6139     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47066D2F: ret  */
   6140     RECOMP_REGS_OUT();
   6141 }
   6142 
   6143 void sub_47066D30(void) {
   6144     int _fpu_cmp = 0;
   6145     uint32_t _cf = 0;
   6146     int _df = 1;
   6147     uint32_t _flag_k = FK_NONE;
   6148     uint32_t _flag_a = 0, _flag_b = 0;
   6149     uint32_t _itail_tgt = 0;
   6150     RECOMP_REGS_LOCALS
   6151     RECOMP_ENTER(0x47066D30u);
   6152 
   6153 L_47066D30:
   6154     edx = MEM32(ecx + 0x4); /* 0x47066D30: mov edx, dword ptr [ecx + 4] */
   6155     eax = MEM32(ecx + 0x8); /* 0x47066D33: mov eax, dword ptr [ecx + 8] */
   6156     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(edx + 0x48));
   6157     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6158     eax = eax - MEM32(edx + 0x48); /* 0x47066D36: sub eax, dword ptr [edx + 0x48] */
   6159     _flag_k = FK_CMP;
   6160     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   6161     _cf = (eax) != 0;
   6162     eax = (uint32_t)(-(int32_t)eax); /* 0x47066D39: neg eax */
   6163     _flag_k = FK_CMP;
   6164     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x47066D3B: sbb eax, eax */
   6165       eax = _sc ? 0xFFFFFFFFu : 0;
   6166       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   6167       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   6168     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   6169     eax = eax + 1; /* 0x47066D3D: inc eax */
   6170     _flag_k = FK_INC;
   6171     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47066D3E: ret  */
   6172     RECOMP_REGS_OUT();
   6173 }
   6174 
   6175 void sub_47066D40(void) {
   6176     int _fpu_cmp = 0;
   6177     uint32_t _cf = 0;
   6178     int _df = 1;
   6179     uint32_t _flag_k = FK_NONE;
   6180     uint32_t _flag_a = 0, _flag_b = 0;
   6181     uint32_t _itail_tgt = 0;
   6182     RECOMP_REGS_LOCALS
   6183     RECOMP_ENTER(0x47066D40u);
   6184 
   6185 L_47066D40:
   6186     eax = MEM32(ecx + 0x4); /* 0x47066D40: mov eax, dword ptr [ecx + 4] */
   6187     ecx = MEM32(ecx + 0x8); /* 0x47066D43: mov ecx, dword ptr [ecx + 8] */
   6188     /* cmp ecx, MEM32(eax + 0x48) */ /* 0x47066D46: cmp ecx, dword ptr [eax + 0x48] */
   6189     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(eax + 0x48));
   6190     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6191     _flag_k = FK_CMP;
   6192     if (CMP_EQ(_flag_a, _flag_b)) goto L_47066D52; /* 0x47066D49: je 0x47066d52 */
   6193 L_47066D4B:
   6194     eax = MEM32(eax + 0x50); /* 0x47066D4B: mov eax, dword ptr [eax + 0x50] */
   6195     eax = MEM32(eax + ecx * 4); /* 0x47066D4E: mov eax, dword ptr [eax + ecx*4] */
   6196     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47066D51: ret  */
   6197 L_47066D52:
   6198     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   6199     eax = 0; /* 0x47066D52: xor eax, eax */
   6200     _cf = 0;
   6201     _flag_k = FK_TEST;
   6202     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47066D54: ret  */
   6203     RECOMP_REGS_OUT();
   6204 }
   6205 
   6206 void sub_47066D60(void) {
   6207     int _fpu_cmp = 0;
   6208     uint32_t _cf = 0;
   6209     int _df = 1;
   6210     uint32_t _flag_k = FK_NONE;
   6211     uint32_t _flag_a = 0, _flag_b = 0;
   6212     uint32_t _itail_tgt = 0;
   6213     RECOMP_REGS_LOCALS
   6214     RECOMP_ENTER(0x47066D60u);
   6215 
   6216 L_47066D60:
   6217     PUSH32(esp, esi); /* 0x47066D60: push esi */
   6218     esi = ecx; /* 0x47066D61: mov esi, ecx */
   6219     RECOMP_ICALL(0x47066D80u); /* 0x47066D63: call 0x47066d80 */ /* not lifted */
   6220     RECOMP_FLAGS_IN();
   6221     /* test MEM8(esp + 0x8), 1 */ /* 0x47066D68: test byte ptr [esp + 8], 1 */
   6222     _flag_a = (uint32_t)(MEM8(esp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   6223     _cf = 0;
   6224     _flag_k = FK_NARROW(FK_TEST, 24);
   6225     if (TEST_Z(_flag_a, _flag_b)) goto L_47066D78; /* 0x47066D6D: je 0x47066d78 */
   6226 L_47066D6F:
   6227     PUSH32(esp, esi); /* 0x47066D6F: push esi */
   6228     RECOMP_ICALL(0x470A32A2u); /* 0x47066D70: call 0x470a32a2 */ /* not lifted */
   6229     RECOMP_FLAGS_IN();
   6230     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6231     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6232     esp = esp + 4; /* 0x47066D75: add esp, 4 */
   6233     _flag_k = FK_ADD;
   6234 L_47066D78:
   6235     eax = esi; /* 0x47066D78: mov eax, esi */
   6236     esi = POP32_VAL(esp); /* 0x47066D7A: pop esi */
   6237     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47066D7B: ret 4 */
   6238     RECOMP_REGS_OUT();
   6239 }
   6240 
   6241 void sub_47066D80(void) {
   6242     int _fpu_cmp = 0;
   6243     uint32_t _cf = 0;
   6244     int _df = 1;
   6245     uint32_t _flag_k = FK_NONE;
   6246     uint32_t _flag_a = 0, _flag_b = 0;
   6247     uint32_t _itail_tgt = 0;
   6248     RECOMP_REGS_LOCALS
   6249     RECOMP_ENTER(0x47066D80u);
   6250 
   6251 L_47066D80:
   6252     PUSH32(esp, 0xFFFFFFFFu); /* 0x47066D80: push -1 */
   6253     PUSH32(esp, 0x470A86B1u); /* 0x47066D82: push 0x470a86b1 */
   6254     eax = MEM32(FS_BASE + (0)); /* 0x47066D87: mov eax, dword ptr fs:[0] */
   6255     PUSH32(esp, eax); /* 0x47066D8D: push eax */
   6256     MEM32(FS_BASE + (0)) = esp; /* 0x47066D8E: mov dword ptr fs:[0], esp */
   6257     PUSH32(esp, ecx); /* 0x47066D95: push ecx */
   6258     PUSH32(esp, ebx); /* 0x47066D96: push ebx */
   6259     PUSH32(esp, esi); /* 0x47066D97: push esi */
   6260     esi = ecx; /* 0x47066D98: mov esi, ecx */
   6261     PUSH32(esp, edi); /* 0x47066D9A: push edi */
   6262     MEM32(esp + 0xC) = esi; /* 0x47066D9B: mov dword ptr [esp + 0xc], esi */
   6263     MEM32(esi) = 0x470AE7BCu; /* 0x47066D9F: mov dword ptr [esi], 0x470ae7bc */
   6264     eax = MEM32(esi + 0x4); /* 0x47066DA5: mov eax, dword ptr [esi + 4] */
   6265     /* test eax, eax */ /* 0x47066DA8: test eax, eax */
   6266     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6267     _cf = 0;
   6268     _flag_k = FK_TEST;
   6269     ebx = 3; /* 0x47066DAA: mov ebx, 3 */
   6270     MEM32(esp + 0x18) = ebx; /* 0x47066DAF: mov dword ptr [esp + 0x18], ebx */
   6271     if (TEST_Z(_flag_a, _flag_b)) goto L_47066E69; /* 0x47066DB3: je 0x47066e69 */
   6272 L_47066DB9:
   6273     MEM8(esp + 0x18) = (uint8_t)(4); /* 0x47066DB9: mov byte ptr [esp + 0x18], 4 */
   6274     RECOMP_ICALL(MEM32(0x470AE844)); /* 0x47066DBE: call dword ptr [0x470ae844] */
   6275     RECOMP_FLAGS_IN();
   6276     ecx = MEM32(esi + 0x4); /* 0x47066DC4: mov ecx, dword ptr [esi + 4] */
   6277     /* test ecx, ecx */ /* 0x47066DC7: test ecx, ecx */
   6278     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6279     _cf = 0;
   6280     _flag_k = FK_TEST;
   6281     edi = eax; /* 0x47066DC9: mov edi, eax */
   6282     MEM32(esi + 0x8) = 0; /* 0x47066DCB: mov dword ptr [esi + 8], 0 */
   6283     if (TEST_Z(_flag_a, _flag_b)) goto L_47066E04; /* 0x47066DD2: je 0x47066e04 */
   6284 L_47066DD4:
   6285     _flag_a = (uint32_t)(MEM32(esi + 0x1C)); _flag_b = (uint32_t)(1);
   6286     MEM32(esi + 0x1C) = MEM32(esi + 0x1C) - 1; /* 0x47066DD4: dec dword ptr [esi + 0x1c] */
   6287     _flag_k = FK_DEC;
   6288     RECOMP_ICALL(0x47043FB0u); /* 0x47066DD7: call 0x47043fb0 */ /* not lifted */
   6289     RECOMP_FLAGS_IN();
   6290     edx = MEM32(esi + 0x14); /* 0x47066DDC: mov edx, dword ptr [esi + 0x14] */
   6291     ecx = MEM32(esi + 0x4); /* 0x47066DDF: mov ecx, dword ptr [esi + 4] */
   6292     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6293     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6294     edx = edx - eax; /* 0x47066DE2: sub edx, eax */
   6295     _flag_k = FK_CMP;
   6296     MEM32(esi + 0x14) = edx; /* 0x47066DE4: mov dword ptr [esi + 0x14], edx */
   6297     RECOMP_ICALL(0x47043FD0u); /* 0x47066DE7: call 0x47043fd0 */ /* not lifted */
   6298     RECOMP_FLAGS_IN();
   6299     _flag_a = (uint32_t)(MEM32(esi + 0x18)); _flag_b = (uint32_t)(eax);
   6300     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6301     MEM32(esi + 0x18) = MEM32(esi + 0x18) - eax; /* 0x47066DEC: sub dword ptr [esi + 0x18], eax */
   6302     _flag_k = FK_CMP;
   6303     ecx = MEM32(esi + 0x4); /* 0x47066DEF: mov ecx, dword ptr [esi + 4] */
   6304     eax = MEM32(ecx + 0x24); /* 0x47066DF2: mov eax, dword ptr [ecx + 0x24] */
   6305     MEM32(esi + 0x4) = eax; /* 0x47066DF5: mov dword ptr [esi + 4], eax */
   6306     RECOMP_ICALL(0x47044BD0u); /* 0x47066DF8: call 0x47044bd0 */ /* not lifted */
   6307     RECOMP_FLAGS_IN();
   6308     ecx = MEM32(esi + 0x4); /* 0x47066DFD: mov ecx, dword ptr [esi + 4] */
   6309     /* test ecx, ecx */ /* 0x47066E00: test ecx, ecx */
   6310     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   6311     _cf = 0;
   6312     _flag_k = FK_TEST;
   6313     RECOMP_BACKEDGE();
   6314     if (TEST_NZ(_flag_a, _flag_b)) goto L_47066DD4; /* 0x47066E02: jne 0x47066dd4 */
   6315 L_47066E04:
   6316     /* cmp edi, 0xFFFFFFFFu */ /* 0x47066E04: cmp edi, -1 */
   6317     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   6318     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6319     _flag_k = FK_CMP;
   6320     MEM8(esp + 0x18) = (uint8_t)(LO8(ebx)); /* 0x47066E07: mov byte ptr [esp + 0x18], bl */
   6321     if (CMP_NE(_flag_a, _flag_b)) goto L_47066E69; /* 0x47066E0B: jne 0x47066e69 */
   6322 L_47066E0D:
   6323     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x47066E0D: call dword ptr [0x470ac150] */
   6324     RECOMP_FLAGS_IN();
   6325     ebx = eax; /* 0x47066E13: mov ebx, eax */
   6326     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47066E15: call dword ptr [0x470ac3c8] */
   6327     RECOMP_FLAGS_IN();
   6328     eax = MEM32(eax); /* 0x47066E1B: mov eax, dword ptr [eax] */
   6329     /* test eax, eax */ /* 0x47066E1D: test eax, eax */
   6330     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6331     _cf = 0;
   6332     _flag_k = FK_TEST;
   6333     if (TEST_Z(_flag_a, _flag_b)) goto L_47066E23; /* 0x47066E1F: je 0x47066e23 */
   6334 L_47066E21:
   6335     ebx = eax; /* 0x47066E21: mov ebx, eax */
   6336 L_47066E23:
   6337     RECOMP_ICALL(0x47039020u); /* 0x47066E23: call 0x47039020 */ /* not lifted */
   6338     RECOMP_FLAGS_IN();
   6339     edi = eax; /* 0x47066E28: mov edi, eax */
   6340     ecx = edi; /* 0x47066E2A: mov ecx, edi */
   6341     RECOMP_ICALL(0x4703B210u); /* 0x47066E2C: call 0x4703b210 */ /* not lifted */
   6342     RECOMP_FLAGS_IN();
   6343     PUSH32(esp, eax); /* 0x47066E31: push eax */
   6344     ecx = edi; /* 0x47066E32: mov ecx, edi */
   6345     RECOMP_ICALL(0x4703B240u); /* 0x47066E34: call 0x4703b240 */ /* not lifted */
   6346     RECOMP_FLAGS_IN();
   6347     PUSH32(esp, eax); /* 0x47066E39: push eax */
   6348     ecx = edi; /* 0x47066E3A: mov ecx, edi */
   6349     RECOMP_ICALL(0x4703B080u); /* 0x47066E3C: call 0x4703b080 */ /* not lifted */
   6350     RECOMP_FLAGS_IN();
   6351     PUSH32(esp, eax); /* 0x47066E41: push eax */
   6352     PUSH32(esp, ebx); /* 0x47066E42: push ebx */
   6353     PUSH32(esp, 0xFFFFFFFFu); /* 0x47066E43: push -1 */
   6354     PUSH32(esp, 0xBFu); /* 0x47066E45: push 0xbf */
   6355     PUSH32(esp, 0x471051D0u); /* 0x47066E4A: push 0x471051d0 */
   6356     ecx = edi; /* 0x47066E4F: mov ecx, edi */
   6357     RECOMP_ICALL(0x4703A340u); /* 0x47066E51: call 0x4703a340 */ /* not lifted */
   6358     RECOMP_FLAGS_IN();
   6359     PUSH32(esp, 0x471051C8u); /* 0x47066E56: push 0x471051c8 */
   6360     PUSH32(esp, 0x80u); /* 0x47066E5B: push 0x80 */
   6361     PUSH32(esp, edi); /* 0x47066E60: push edi */
   6362     RECOMP_ICALL(0x47039830u); /* 0x47066E61: call 0x47039830 */ /* not lifted */
   6363     RECOMP_FLAGS_IN();
   6364     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6365     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6366     esp = esp + 0xCu; /* 0x47066E66: add esp, 0xc */
   6367     _flag_k = FK_ADD;
   6368 L_47066E69:
   6369     ecx = MEM32(esp + 0x10); /* 0x47066E69: mov ecx, dword ptr [esp + 0x10] */
   6370     edi = POP32_VAL(esp); /* 0x47066E6D: pop edi */
   6371     MEM32(esi) = 0x470ACA84u; /* 0x47066E6E: mov dword ptr [esi], 0x470aca84 */
   6372     esi = POP32_VAL(esp); /* 0x47066E74: pop esi */
   6373     ebx = POP32_VAL(esp); /* 0x47066E75: pop ebx */
   6374     MEM32(FS_BASE + (0)) = ecx; /* 0x47066E76: mov dword ptr fs:[0], ecx */
   6375     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   6376     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6377     esp = esp + 0x10u; /* 0x47066E7D: add esp, 0x10 */
   6378     _flag_k = FK_ADD;
   6379     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47066E80: ret  */
   6380     RECOMP_REGS_OUT();
   6381 }
   6382 
   6383 void sub_47066E90(void) {
   6384     int _fpu_cmp = 0;
   6385     uint32_t _cf = 0;
   6386     int _df = 1;
   6387     uint32_t _flag_k = FK_NONE;
   6388     uint32_t _flag_a = 0, _flag_b = 0;
   6389     uint32_t _itail_tgt = 0;
   6390     RECOMP_REGS_LOCALS
   6391     RECOMP_ENTER(0x47066E90u);
   6392 
   6393 L_47066E90:
   6394     /* test MEM8(esp + 0x4), 1 */ /* 0x47066E90: test byte ptr [esp + 4], 1 */
   6395     _flag_a = (uint32_t)(MEM8(esp + 0x4)) << 24; _flag_b = (uint32_t)(1) << 24;
   6396     _cf = 0;
   6397     _flag_k = FK_NARROW(FK_TEST, 24);
   6398     PUSH32(esp, esi); /* 0x47066E95: push esi */
   6399     esi = ecx; /* 0x47066E96: mov esi, ecx */
   6400     MEM32(esi) = 0x470AE9E4u; /* 0x47066E98: mov dword ptr [esi], 0x470ae9e4 */
   6401     if (TEST_Z(_flag_a, _flag_b)) goto L_47066EA9; /* 0x47066E9E: je 0x47066ea9 */
   6402 L_47066EA0:
   6403     PUSH32(esp, esi); /* 0x47066EA0: push esi */
   6404     RECOMP_ICALL(0x470A32A2u); /* 0x47066EA1: call 0x470a32a2 */ /* not lifted */
   6405     RECOMP_FLAGS_IN();
   6406     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6407     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6408     esp = esp + 4; /* 0x47066EA6: add esp, 4 */
   6409     _flag_k = FK_ADD;
   6410 L_47066EA9:
   6411     eax = esi; /* 0x47066EA9: mov eax, esi */
   6412     esi = POP32_VAL(esp); /* 0x47066EAB: pop esi */
   6413     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47066EAC: ret 4 */
   6414     RECOMP_REGS_OUT();
   6415 }
   6416 
   6417 void sub_47066EB0(void) {
   6418     int _fpu_cmp = 0;
   6419     uint32_t _cf = 0;
   6420     int _df = 1;
   6421     uint32_t _flag_k = FK_NONE;
   6422     uint32_t _flag_a = 0, _flag_b = 0;
   6423     uint32_t _itail_tgt = 0;
   6424     RECOMP_REGS_LOCALS
   6425     RECOMP_ENTER(0x47066EB0u);
   6426 
   6427 L_47066EB0:
   6428     PUSH32(esp, esi); /* 0x47066EB0: push esi */
   6429     esi = ecx; /* 0x47066EB1: mov esi, ecx */
   6430     RECOMP_ICALL(0x47066ED0u); /* 0x47066EB3: call 0x47066ed0 */ /* not lifted */
   6431     RECOMP_FLAGS_IN();
   6432     /* test MEM8(esp + 0x8), 1 */ /* 0x47066EB8: test byte ptr [esp + 8], 1 */
   6433     _flag_a = (uint32_t)(MEM8(esp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   6434     _cf = 0;
   6435     _flag_k = FK_NARROW(FK_TEST, 24);
   6436     if (TEST_Z(_flag_a, _flag_b)) goto L_47066EC8; /* 0x47066EBD: je 0x47066ec8 */
   6437 L_47066EBF:
   6438     PUSH32(esp, esi); /* 0x47066EBF: push esi */
   6439     RECOMP_ICALL(0x470A32A2u); /* 0x47066EC0: call 0x470a32a2 */ /* not lifted */
   6440     RECOMP_FLAGS_IN();
   6441     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6442     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6443     esp = esp + 4; /* 0x47066EC5: add esp, 4 */
   6444     _flag_k = FK_ADD;
   6445 L_47066EC8:
   6446     eax = esi; /* 0x47066EC8: mov eax, esi */
   6447     esi = POP32_VAL(esp); /* 0x47066ECA: pop esi */
   6448     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47066ECB: ret 4 */
   6449     RECOMP_REGS_OUT();
   6450 }
   6451 
   6452 void sub_47066ED0(void) {
   6453     int _fpu_cmp = 0;
   6454     uint32_t _cf = 0;
   6455     int _df = 1;
   6456     uint32_t _flag_k = FK_NONE;
   6457     uint32_t _flag_a = 0, _flag_b = 0;
   6458     uint32_t _itail_tgt = 0;
   6459     RECOMP_REGS_LOCALS
   6460     RECOMP_ENTER(0x47066ED0u);
   6461 
   6462 L_47066ED0:
   6463     MEM32(ecx) = 0x470AEA0Cu; /* 0x47066ED0: mov dword ptr [ecx], 0x470aea0c */
   6464     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47066ED6: ret  */
   6465     RECOMP_REGS_OUT();
   6466 }
   6467 
   6468 void sub_47066EE0(void) {
   6469     int _fpu_cmp = 0;
   6470     uint32_t _cf = 0;
   6471     int _df = 1;
   6472     uint32_t _flag_k = FK_NONE;
   6473     uint32_t _flag_a = 0, _flag_b = 0;
   6474     uint32_t _itail_tgt = 0;
   6475     RECOMP_REGS_LOCALS
   6476     RECOMP_ENTER(0x47066EE0u);
   6477 
   6478 L_47066EE0:
   6479     /* test MEM8(esp + 0x4), 1 */ /* 0x47066EE0: test byte ptr [esp + 4], 1 */
   6480     _flag_a = (uint32_t)(MEM8(esp + 0x4)) << 24; _flag_b = (uint32_t)(1) << 24;
   6481     _cf = 0;
   6482     _flag_k = FK_NARROW(FK_TEST, 24);
   6483     PUSH32(esp, esi); /* 0x47066EE5: push esi */
   6484     esi = ecx; /* 0x47066EE6: mov esi, ecx */
   6485     MEM32(esi) = 0x470AEA0Cu; /* 0x47066EE8: mov dword ptr [esi], 0x470aea0c */
   6486     if (TEST_Z(_flag_a, _flag_b)) goto L_47066EF9; /* 0x47066EEE: je 0x47066ef9 */
   6487 L_47066EF0:
   6488     PUSH32(esp, esi); /* 0x47066EF0: push esi */
   6489     RECOMP_ICALL(0x470A32A2u); /* 0x47066EF1: call 0x470a32a2 */ /* not lifted */
   6490     RECOMP_FLAGS_IN();
   6491     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6492     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6493     esp = esp + 4; /* 0x47066EF6: add esp, 4 */
   6494     _flag_k = FK_ADD;
   6495 L_47066EF9:
   6496     eax = esi; /* 0x47066EF9: mov eax, esi */
   6497     esi = POP32_VAL(esp); /* 0x47066EFB: pop esi */
   6498     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47066EFC: ret 4 */
   6499     RECOMP_REGS_OUT();
   6500 }
   6501 
   6502 void sub_47066F00(void) {
   6503     int _fpu_cmp = 0;
   6504     uint32_t _cf = 0;
   6505     int _df = 1;
   6506     uint32_t _flag_k = FK_NONE;
   6507     uint32_t _flag_a = 0, _flag_b = 0;
   6508     uint32_t _itail_tgt = 0;
   6509     RECOMP_REGS_LOCALS
   6510     RECOMP_ENTER(0x47066F00u);
   6511 
   6512 L_47066F00:
   6513     /* cmp MEM32(ecx + 0x4), 2 */ /* 0x47066F00: cmp dword ptr [ecx + 4], 2 */
   6514     _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(2);
   6515     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6516     _flag_k = FK_CMP;
   6517     if (CMP_EQ(_flag_a, _flag_b)) goto L_47066F22; /* 0x47066F04: je 0x47066f22 */
   6518 L_47066F06:
   6519     eax = MEM32(ecx + 0x18); /* 0x47066F06: mov eax, dword ptr [ecx + 0x18] */
   6520     /* cmp eax, MEM32(ecx + 0x10) */ /* 0x47066F09: cmp eax, dword ptr [ecx + 0x10] */
   6521     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ecx + 0x10));
   6522     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6523     _flag_k = FK_CMP;
   6524     if (CMP_B(_flag_a, _flag_b)) goto L_47066F22; /* 0x47066F0C: jb 0x47066f22 */
   6525 L_47066F0E:
   6526     eax = MEM32(esp + 0x4); /* 0x47066F0E: mov eax, dword ptr [esp + 4] */
   6527     /* test eax, eax */ /* 0x47066F12: test eax, eax */
   6528     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6529     _cf = 0;
   6530     _flag_k = FK_TEST;
   6531     if (TEST_Z(_flag_a, _flag_b)) goto L_47066F32; /* 0x47066F14: je 0x47066f32 */
   6532 L_47066F16:
   6533     PUSH32(esp, eax); /* 0x47066F16: push eax */
   6534     RECOMP_ICALL(0x470A32A2u); /* 0x47066F17: call 0x470a32a2 */ /* not lifted */
   6535     RECOMP_FLAGS_IN();
   6536     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6537     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6538     esp = esp + 4; /* 0x47066F1C: add esp, 4 */
   6539     _flag_k = FK_ADD;
   6540     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47066F1F: ret 4 */
   6541 L_47066F22:
   6542     eax = MEM32(esp + 0x4); /* 0x47066F22: mov eax, dword ptr [esp + 4] */
   6543     edx = MEM32(ecx + 0x8); /* 0x47066F26: mov edx, dword ptr [ecx + 8] */
   6544     MEM32(eax + 0x1C) = edx; /* 0x47066F29: mov dword ptr [eax + 0x1c], edx */
   6545     MEM32(ecx + 0x8) = eax; /* 0x47066F2C: mov dword ptr [ecx + 8], eax */
   6546     _flag_a = (uint32_t)(MEM32(ecx + 0x18)); _flag_b = (uint32_t)(1);
   6547     MEM32(ecx + 0x18) = MEM32(ecx + 0x18) + 1; /* 0x47066F2F: inc dword ptr [ecx + 0x18] */
   6548     _flag_k = FK_INC;
   6549 L_47066F32:
   6550     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47066F32: ret 4 */
   6551     RECOMP_REGS_OUT();
   6552 }
   6553 
   6554 void sub_47066F40(void) {
   6555     int _fpu_cmp = 0;
   6556     uint32_t _cf = 0;
   6557     int _df = 1;
   6558     uint32_t _flag_k = FK_NONE;
   6559     uint32_t _flag_a = 0, _flag_b = 0;
   6560     uint32_t _itail_tgt = 0;
   6561     RECOMP_REGS_LOCALS
   6562     RECOMP_ENTER(0x47066F40u);
   6563 
   6564 L_47066F40:
   6565     eax = MEM32(FS_BASE + (0)); /* 0x47066F40: mov eax, dword ptr fs:[0] */
   6566     PUSH32(esp, 0xFFFFFFFFu); /* 0x47066F46: push -1 */
   6567     PUSH32(esp, 0x470A86C8u); /* 0x47066F48: push 0x470a86c8 */
   6568     PUSH32(esp, eax); /* 0x47066F4D: push eax */
   6569     MEM32(FS_BASE + (0)) = esp; /* 0x47066F4E: mov dword ptr fs:[0], esp */
   6570     PUSH32(esp, esi); /* 0x47066F55: push esi */
   6571     esi = ecx; /* 0x47066F56: mov esi, ecx */
   6572     /* cmp MEM32(esi + 0x4), 2 */ /* 0x47066F58: cmp dword ptr [esi + 4], 2 */
   6573     _flag_a = (uint32_t)(MEM32(esi + 0x4)); _flag_b = (uint32_t)(2);
   6574     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6575     _flag_k = FK_CMP;
   6576     MEM32(esp + 0xC) = 0; /* 0x47066F5C: mov dword ptr [esp + 0xc], 0 */
   6577     if (CMP_EQ(_flag_a, _flag_b)) goto L_47066F79; /* 0x47066F64: je 0x47066f79 */
   6578 L_47066F66:
   6579     eax = MEM32(esi + 0x18); /* 0x47066F66: mov eax, dword ptr [esi + 0x18] */
   6580     /* cmp eax, MEM32(esi + 0xC) */ /* 0x47066F69: cmp eax, dword ptr [esi + 0xc] */
   6581     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(esi + 0xC));
   6582     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6583     _flag_k = FK_CMP;
   6584     if (CMP_A(_flag_a, _flag_b)) goto L_47066F79; /* 0x47066F6C: ja 0x47066f79 */
   6585 L_47066F6E:
   6586     eax = MEM32(esi + 0x14); /* 0x47066F6E: mov eax, dword ptr [esi + 0x14] */
   6587     edx = MEM32(esi); /* 0x47066F71: mov edx, dword ptr [esi] */
   6588     PUSH32(esp, eax); /* 0x47066F73: push eax */
   6589     ecx = esi; /* 0x47066F74: mov ecx, esi */
   6590     RECOMP_ICALL(MEM32(edx + 0x14)); /* 0x47066F76: call dword ptr [edx + 0x14] */
   6591     RECOMP_FLAGS_IN();
   6592 L_47066F79:
   6593     eax = MEM32(esi + 0x8); /* 0x47066F79: mov eax, dword ptr [esi + 8] */
   6594     /* test eax, eax */ /* 0x47066F7C: test eax, eax */
   6595     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6596     _cf = 0;
   6597     _flag_k = FK_TEST;
   6598     if (TEST_Z(_flag_a, _flag_b)) goto L_47066F89; /* 0x47066F7E: je 0x47066f89 */
   6599 L_47066F80:
   6600     ecx = MEM32(eax + 0x1C); /* 0x47066F80: mov ecx, dword ptr [eax + 0x1c] */
   6601     MEM32(esi + 0x8) = ecx; /* 0x47066F83: mov dword ptr [esi + 8], ecx */
   6602     _flag_a = (uint32_t)(MEM32(esi + 0x18)); _flag_b = (uint32_t)(1);
   6603     MEM32(esi + 0x18) = MEM32(esi + 0x18) - 1; /* 0x47066F86: dec dword ptr [esi + 0x18] */
   6604     _flag_k = FK_DEC;
   6605 L_47066F89:
   6606     ecx = MEM32(esp + 0x4); /* 0x47066F89: mov ecx, dword ptr [esp + 4] */
   6607     MEM32(FS_BASE + (0)) = ecx; /* 0x47066F8D: mov dword ptr fs:[0], ecx */
   6608     esi = POP32_VAL(esp); /* 0x47066F94: pop esi */
   6609     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6610     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6611     esp = esp + 0xCu; /* 0x47066F95: add esp, 0xc */
   6612     _flag_k = FK_ADD;
   6613     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47066F98: ret  */
   6614     RECOMP_REGS_OUT();
   6615 }
   6616 
   6617 void sub_47066FA0(void) {
   6618     int _fpu_cmp = 0;
   6619     uint32_t _cf = 0;
   6620     int _df = 1;
   6621     uint32_t _flag_k = FK_NONE;
   6622     uint32_t _flag_a = 0, _flag_b = 0;
   6623     uint32_t _itail_tgt = 0;
   6624     RECOMP_REGS_LOCALS
   6625     RECOMP_ENTER(0x47066FA0u);
   6626 
   6627 L_47066FA0:
   6628     eax = MEM32(FS_BASE + (0)); /* 0x47066FA0: mov eax, dword ptr fs:[0] */
   6629     PUSH32(esp, 0xFFFFFFFFu); /* 0x47066FA6: push -1 */
   6630     PUSH32(esp, 0x470A86E8u); /* 0x47066FA8: push 0x470a86e8 */
   6631     PUSH32(esp, eax); /* 0x47066FAD: push eax */
   6632     MEM32(FS_BASE + (0)) = esp; /* 0x47066FAE: mov dword ptr fs:[0], esp */
   6633     PUSH32(esp, esi); /* 0x47066FB5: push esi */
   6634     /* cmp MEM32(ecx + 0x4), 2 */ /* 0x47066FB6: cmp dword ptr [ecx + 4], 2 */
   6635     _flag_a = (uint32_t)(MEM32(ecx + 0x4)); _flag_b = (uint32_t)(2);
   6636     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6637     _flag_k = FK_CMP;
   6638     MEM32(esp + 0xC) = 0; /* 0x47066FBA: mov dword ptr [esp + 0xc], 0 */
   6639     if (CMP_EQ(_flag_a, _flag_b)) goto L_47066FEF; /* 0x47066FC2: je 0x47066fef */
   6640 L_47066FC4:
   6641     eax = MEM32(ecx + 0x18); /* 0x47066FC4: mov eax, dword ptr [ecx + 0x18] */
   6642     edx = MEM32(esp + 0x14); /* 0x47066FC7: mov edx, dword ptr [esp + 0x14] */
   6643     /* cmp edx, eax */ /* 0x47066FCB: cmp edx, eax */
   6644     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6645     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6646     _flag_k = FK_CMP;
   6647     esi = MEM32(ecx); /* 0x47066FCD: mov esi, dword ptr [ecx] */
   6648     if (CMP_AE(_flag_a, _flag_b)) goto L_47066FE9; /* 0x47066FCF: jae 0x47066fe9 */
   6649 L_47066FD1:
   6650     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   6651     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6652     eax = eax - edx; /* 0x47066FD1: sub eax, edx */
   6653     _flag_k = FK_CMP;
   6654     PUSH32(esp, eax); /* 0x47066FD3: push eax */
   6655     RECOMP_ICALL(MEM32(esi + 0x18)); /* 0x47066FD4: call dword ptr [esi + 0x18] */
   6656     RECOMP_FLAGS_IN();
   6657     ecx = MEM32(esp + 0x4); /* 0x47066FD7: mov ecx, dword ptr [esp + 4] */
   6658     MEM32(FS_BASE + (0)) = ecx; /* 0x47066FDB: mov dword ptr fs:[0], ecx */
   6659     esi = POP32_VAL(esp); /* 0x47066FE2: pop esi */
   6660     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6661     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6662     esp = esp + 0xCu; /* 0x47066FE3: add esp, 0xc */
   6663     _flag_k = FK_ADD;
   6664     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47066FE6: ret 4 */
   6665 L_47066FE9:
   6666     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   6667     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6668     edx = edx - eax; /* 0x47066FE9: sub edx, eax */
   6669     _flag_k = FK_CMP;
   6670     PUSH32(esp, edx); /* 0x47066FEB: push edx */
   6671     RECOMP_ICALL(MEM32(esi + 0x14)); /* 0x47066FEC: call dword ptr [esi + 0x14] */
   6672     RECOMP_FLAGS_IN();
   6673 L_47066FEF:
   6674     ecx = MEM32(esp + 0x4); /* 0x47066FEF: mov ecx, dword ptr [esp + 4] */
   6675     MEM32(FS_BASE + (0)) = ecx; /* 0x47066FF3: mov dword ptr fs:[0], ecx */
   6676     esi = POP32_VAL(esp); /* 0x47066FFA: pop esi */
   6677     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0xCu);
   6678     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6679     esp = esp + 0xCu; /* 0x47066FFB: add esp, 0xc */
   6680     _flag_k = FK_ADD;
   6681     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47066FFE: ret 4 */
   6682     RECOMP_REGS_OUT();
   6683 }
   6684 
   6685 void sub_47067010(void) {
   6686     int _fpu_cmp = 0;
   6687     uint32_t _cf = 0;
   6688     int _df = 1;
   6689     uint32_t _flag_k = FK_NONE;
   6690     uint32_t _flag_a = 0, _flag_b = 0;
   6691     uint32_t _itail_tgt = 0;
   6692     RECOMP_REGS_LOCALS
   6693     RECOMP_ENTER(0x47067010u);
   6694 
   6695 L_47067010:
   6696     PUSH32(esp, esi); /* 0x47067010: push esi */
   6697     esi = ecx; /* 0x47067011: mov esi, ecx */
   6698     eax = MEM32(esi + 0x8); /* 0x47067013: mov eax, dword ptr [esi + 8] */
   6699     /* test eax, eax */ /* 0x47067016: test eax, eax */
   6700     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6701     _cf = 0;
   6702     _flag_k = FK_TEST;
   6703     PUSH32(esp, edi); /* 0x47067018: push edi */
   6704     if (TEST_Z(_flag_a, _flag_b)) goto L_47067041; /* 0x47067019: je 0x47067041 */
   6705 L_4706701B:
   6706     edi = MEM32(esp + 0xC); /* 0x4706701B: mov edi, dword ptr [esp + 0xc] */
   6707 L_4706701F:
   6708     /* test edi, edi */ /* 0x4706701F: test edi, edi */
   6709     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   6710     _cf = 0;
   6711     _flag_k = FK_TEST;
   6712     if (TEST_Z(_flag_a, _flag_b)) goto L_47067041; /* 0x47067021: jbe 0x47067041 */
   6713 L_47067023:
   6714     /* test eax, eax */ /* 0x47067023: test eax, eax */
   6715     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6716     _cf = 0;
   6717     _flag_k = FK_TEST;
   6718     ecx = MEM32(eax + 0x1C); /* 0x47067025: mov ecx, dword ptr [eax + 0x1c] */
   6719     MEM32(esi + 0x8) = ecx; /* 0x47067028: mov dword ptr [esi + 8], ecx */
   6720     if (TEST_Z(_flag_a, _flag_b)) goto L_47067036; /* 0x4706702B: je 0x47067036 */
   6721 L_4706702D:
   6722     PUSH32(esp, eax); /* 0x4706702D: push eax */
   6723     RECOMP_ICALL(0x470A32A2u); /* 0x4706702E: call 0x470a32a2 */ /* not lifted */
   6724     RECOMP_FLAGS_IN();
   6725     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6726     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6727     esp = esp + 4; /* 0x47067033: add esp, 4 */
   6728     _flag_k = FK_ADD;
   6729 L_47067036:
   6730     _flag_a = (uint32_t)(MEM32(esi + 0x18)); _flag_b = (uint32_t)(1);
   6731     MEM32(esi + 0x18) = MEM32(esi + 0x18) - 1; /* 0x47067036: dec dword ptr [esi + 0x18] */
   6732     _flag_k = FK_DEC;
   6733     eax = MEM32(esi + 0x8); /* 0x47067039: mov eax, dword ptr [esi + 8] */
   6734     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(1);
   6735     edi = edi - 1; /* 0x4706703C: dec edi */
   6736     _flag_k = FK_DEC;
   6737     /* test eax, eax */ /* 0x4706703D: test eax, eax */
   6738     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6739     _cf = 0;
   6740     _flag_k = FK_TEST;
   6741     RECOMP_BACKEDGE();
   6742     if (TEST_NZ(_flag_a, _flag_b)) goto L_4706701F; /* 0x4706703F: jne 0x4706701f */
   6743 L_47067041:
   6744     edi = POP32_VAL(esp); /* 0x47067041: pop edi */
   6745     esi = POP32_VAL(esp); /* 0x47067042: pop esi */
   6746     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47067043: ret 4 */
   6747     RECOMP_REGS_OUT();
   6748 }
   6749 
   6750 void sub_47067050(void) {
   6751     int _fpu_cmp = 0;
   6752     uint32_t _cf = 0;
   6753     int _df = 1;
   6754     uint32_t _flag_k = FK_NONE;
   6755     uint32_t _flag_a = 0, _flag_b = 0;
   6756     uint32_t _itail_tgt = 0;
   6757     RECOMP_REGS_LOCALS
   6758     RECOMP_ENTER(0x47067050u);
   6759 
   6760 L_47067050:
   6761     PUSH32(esp, ecx); /* 0x47067050: push ecx */
   6762     eax = MEM32(esp + 0xC); /* 0x47067051: mov eax, dword ptr [esp + 0xc] */
   6763     /* test eax, eax */ /* 0x47067055: test eax, eax */
   6764     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6765     _cf = 0;
   6766     _flag_k = FK_TEST;
   6767     PUSH32(esp, ebx); /* 0x47067057: push ebx */
   6768     PUSH32(esp, ebp); /* 0x47067058: push ebp */
   6769     PUSH32(esp, esi); /* 0x47067059: push esi */
   6770     ebx = ecx; /* 0x4706705A: mov ebx, ecx */
   6771     PUSH32(esp, edi); /* 0x4706705C: push edi */
   6772     MEM32(esp + 0x10) = ebx; /* 0x4706705D: mov dword ptr [esp + 0x10], ebx */
   6773     if (TEST_Z(_flag_a, _flag_b)) goto L_47067135; /* 0x47067061: jbe 0x47067135 */
   6774 L_47067067:
   6775     ebp = MEM32(esp + 0x20); /* 0x47067067: mov ebp, dword ptr [esp + 0x20] */
   6776 L_4706706B:
   6777     eax = MEM32(ebx + 0x50); /* 0x4706706B: mov eax, dword ptr [ebx + 0x50] */
   6778     edi = MEM32(eax + ebp * 4); /* 0x4706706E: mov edi, dword ptr [eax + ebp*4] */
   6779     esi = MEM32(esp + 0x18); /* 0x47067071: mov esi, dword ptr [esp + 0x18] */
   6780     ecx = MEM32(esi + 0x8); /* 0x47067075: mov ecx, dword ptr [esi + 8] */
   6781     edx = MEM32(edi + 0x8); /* 0x47067078: mov edx, dword ptr [edi + 8] */
   6782     /* cmp edx, ecx */ /* 0x4706707B: cmp edx, ecx */
   6783     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(ecx);
   6784     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6785     _flag_k = FK_CMP;
   6786     if (CMP_G(_flag_a, _flag_b)) goto L_47067091; /* 0x4706707D: jg 0x47067091 */
   6787 L_4706707F:
   6788     if (CMP_NE(_flag_a, _flag_b)) goto L_47067139; /* 0x4706707F: jne 0x47067139 */
   6789 L_47067085:
   6790     ecx = MEM32(edi + 0xC); /* 0x47067085: mov ecx, dword ptr [edi + 0xc] */
   6791     /* cmp ecx, MEM32(esi + 0xC) */ /* 0x47067088: cmp ecx, dword ptr [esi + 0xc] */
   6792     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(esi + 0xC));
   6793     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6794     _flag_k = FK_CMP;
   6795     if (CMP_LE(_flag_a, _flag_b)) goto L_47067139; /* 0x4706708B: jle 0x47067139 */
   6796 L_47067091:
   6797     edx = MEM32(esp + 0x1C); /* 0x47067091: mov edx, dword ptr [esp + 0x1c] */
   6798     MEM32(eax + edx * 4) = edi; /* 0x47067095: mov dword ptr [eax + edx*4], edi */
   6799     eax = MEM32(edi + 0x20); /* 0x47067098: mov eax, dword ptr [edi + 0x20] */
   6800     /* test eax, eax */ /* 0x4706709B: test eax, eax */
   6801     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6802     _cf = 0;
   6803     _flag_k = FK_TEST;
   6804     if (TEST_S(_flag_a, _flag_b)) goto L_470670A4; /* 0x4706709D: jl 0x470670a4 */
   6805 L_4706709F:
   6806     /* cmp eax, MEM32(ebx + 0x44) */ /* 0x4706709F: cmp eax, dword ptr [ebx + 0x44] */
   6807     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x44));
   6808     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6809     _flag_k = FK_CMP;
   6810     if (CMP_L(_flag_a, _flag_b)) goto L_4706710F; /* 0x470670A2: jl 0x4706710f */
   6811 L_470670A4:
   6812     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x470670A4: call dword ptr [0x470ac150] */
   6813     RECOMP_FLAGS_IN();
   6814     ebx = eax; /* 0x470670AA: mov ebx, eax */
   6815     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470670AC: call dword ptr [0x470ac3c8] */
   6816     RECOMP_FLAGS_IN();
   6817     eax = MEM32(eax); /* 0x470670B2: mov eax, dword ptr [eax] */
   6818     /* test eax, eax */ /* 0x470670B4: test eax, eax */
   6819     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6820     _cf = 0;
   6821     _flag_k = FK_TEST;
   6822     if (TEST_Z(_flag_a, _flag_b)) goto L_470670BA; /* 0x470670B6: je 0x470670ba */
   6823 L_470670B8:
   6824     ebx = eax; /* 0x470670B8: mov ebx, eax */
   6825 L_470670BA:
   6826     RECOMP_ICALL(0x47039020u); /* 0x470670BA: call 0x47039020 */ /* not lifted */
   6827     RECOMP_FLAGS_IN();
   6828     esi = eax; /* 0x470670BF: mov esi, eax */
   6829     ecx = esi; /* 0x470670C1: mov ecx, esi */
   6830     RECOMP_ICALL(0x4703B210u); /* 0x470670C3: call 0x4703b210 */ /* not lifted */
   6831     RECOMP_FLAGS_IN();
   6832     PUSH32(esp, eax); /* 0x470670C8: push eax */
   6833     ecx = esi; /* 0x470670C9: mov ecx, esi */
   6834     RECOMP_ICALL(0x4703B240u); /* 0x470670CB: call 0x4703b240 */ /* not lifted */
   6835     RECOMP_FLAGS_IN();
   6836     PUSH32(esp, eax); /* 0x470670D0: push eax */
   6837     ecx = esi; /* 0x470670D1: mov ecx, esi */
   6838     RECOMP_ICALL(0x4703B080u); /* 0x470670D3: call 0x4703b080 */ /* not lifted */
   6839     RECOMP_FLAGS_IN();
   6840     PUSH32(esp, eax); /* 0x470670D8: push eax */
   6841     PUSH32(esp, ebx); /* 0x470670D9: push ebx */
   6842     PUSH32(esp, 0xFFFFFFFFu); /* 0x470670DA: push -1 */
   6843     PUSH32(esp, 0x125u); /* 0x470670DC: push 0x125 */
   6844     PUSH32(esp, 0x47109750u); /* 0x470670E1: push 0x47109750 */
   6845     ecx = esi; /* 0x470670E6: mov ecx, esi */
   6846     RECOMP_ICALL(0x4703A340u); /* 0x470670E8: call 0x4703a340 */ /* not lifted */
   6847     RECOMP_FLAGS_IN();
   6848     PUSH32(esp, 0xFFFFFFFFu); /* 0x470670ED: push -1 */
   6849     PUSH32(esp, 0x47109768u); /* 0x470670EF: push 0x47109768 */
   6850     PUSH32(esp, 0x47104AA4u); /* 0x470670F4: push 0x47104aa4 */
   6851     PUSH32(esp, 0x80u); /* 0x470670F9: push 0x80 */
   6852     PUSH32(esp, esi); /* 0x470670FE: push esi */
   6853     RECOMP_ICALL(0x47039830u); /* 0x470670FF: call 0x47039830 */ /* not lifted */
   6854     RECOMP_FLAGS_IN();
   6855     ebx = MEM32(esp + 0x24); /* 0x47067104: mov ebx, dword ptr [esp + 0x24] */
   6856     esi = MEM32(esp + 0x2C); /* 0x47067108: mov esi, dword ptr [esp + 0x2c] */
   6857     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6858     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6859     esp = esp + 0x14u; /* 0x4706710C: add esp, 0x14 */
   6860     _flag_k = FK_ADD;
   6861 L_4706710F:
   6862     /* test ebp, ebp */ /* 0x4706710F: test ebp, ebp */
   6863     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(ebp);
   6864     _cf = 0;
   6865     _flag_k = FK_TEST;
   6866     edx = MEM32(esp + 0x1C); /* 0x47067111: mov edx, dword ptr [esp + 0x1c] */
   6867     eax = MEM32(edi + 0x20); /* 0x47067115: mov eax, dword ptr [edi + 0x20] */
   6868     ecx = MEM32(ebx + 0x54); /* 0x47067118: mov ecx, dword ptr [ebx + 0x54] */
   6869     MEM32(ecx + eax * 4) = edx; /* 0x4706711B: mov dword ptr [ecx + eax*4], edx */
   6870     MEM32(esp + 0x1C) = ebp; /* 0x4706711E: mov dword ptr [esp + 0x1c], ebp */
   6871     if (TEST_Z(_flag_a, _flag_b)) goto L_47067139; /* 0x47067122: je 0x47067139 */
   6872 L_47067124:
   6873     eax = MEM32(esp + 0x1C); /* 0x47067124: mov eax, dword ptr [esp + 0x1c] */
   6874     _flag_a = (uint32_t)(ebp); _flag_b = (uint32_t)(1);
   6875     ebp = ebp - 1; /* 0x47067128: dec ebp */
   6876     _flag_k = FK_DEC;
   6877     if (1u) _cf = (((ebp) >> 0) & 1u); /* 0x47067129: shr ebp, 1 */
   6878     if (1u) { _flag_a = recomp_flags_pack((ebp >> 1u), _cf, 0, 0); _flag_b = 0; _flag_k = FK_EFLAGS; }
   6879     ebp = ebp >> 1u; /* 0x47067129: shr ebp, 1 */
   6880     /* test eax, eax */ /* 0x4706712B: test eax, eax */
   6881     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6882     _cf = 0;
   6883     _flag_k = FK_TEST;
   6884     RECOMP_BACKEDGE();
   6885     if (TEST_NZ(_flag_a, _flag_b)) goto L_4706706B; /* 0x4706712D: ja 0x4706706b */
   6886 L_47067133:
   6887     goto L_47067139; /* 0x47067133: jmp 0x47067139 */
   6888 L_47067135:
   6889     esi = MEM32(esp + 0x18); /* 0x47067135: mov esi, dword ptr [esp + 0x18] */
   6890 L_47067139:
   6891     eax = MEM32(ebx + 0x50); /* 0x47067139: mov eax, dword ptr [ebx + 0x50] */
   6892     ecx = MEM32(esp + 0x1C); /* 0x4706713C: mov ecx, dword ptr [esp + 0x1c] */
   6893     MEM32(eax + ecx * 4) = esi; /* 0x47067140: mov dword ptr [eax + ecx*4], esi */
   6894     eax = MEM32(esi + 0x20); /* 0x47067143: mov eax, dword ptr [esi + 0x20] */
   6895     /* test eax, eax */ /* 0x47067146: test eax, eax */
   6896     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6897     _cf = 0;
   6898     _flag_k = FK_TEST;
   6899     if (TEST_S(_flag_a, _flag_b)) goto L_4706714F; /* 0x47067148: jl 0x4706714f */
   6900 L_4706714A:
   6901     /* cmp eax, MEM32(ebx + 0x44) */ /* 0x4706714A: cmp eax, dword ptr [ebx + 0x44] */
   6902     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(MEM32(ebx + 0x44));
   6903     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   6904     _flag_k = FK_CMP;
   6905     if (CMP_L(_flag_a, _flag_b)) goto L_470671B6; /* 0x4706714D: jl 0x470671b6 */
   6906 L_4706714F:
   6907     RECOMP_ICALL(MEM32(0x470AC150)); /* 0x4706714F: call dword ptr [0x470ac150] */
   6908     RECOMP_FLAGS_IN();
   6909     edi = eax; /* 0x47067155: mov edi, eax */
   6910     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47067157: call dword ptr [0x470ac3c8] */
   6911     RECOMP_FLAGS_IN();
   6912     eax = MEM32(eax); /* 0x4706715D: mov eax, dword ptr [eax] */
   6913     /* test eax, eax */ /* 0x4706715F: test eax, eax */
   6914     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   6915     _cf = 0;
   6916     _flag_k = FK_TEST;
   6917     if (TEST_Z(_flag_a, _flag_b)) goto L_47067165; /* 0x47067161: je 0x47067165 */
   6918 L_47067163:
   6919     edi = eax; /* 0x47067163: mov edi, eax */
   6920 L_47067165:
   6921     RECOMP_ICALL(0x47039020u); /* 0x47067165: call 0x47039020 */ /* not lifted */
   6922     RECOMP_FLAGS_IN();
   6923     esi = eax; /* 0x4706716A: mov esi, eax */
   6924     ecx = esi; /* 0x4706716C: mov ecx, esi */
   6925     RECOMP_ICALL(0x4703B210u); /* 0x4706716E: call 0x4703b210 */ /* not lifted */
   6926     RECOMP_FLAGS_IN();
   6927     PUSH32(esp, eax); /* 0x47067173: push eax */
   6928     ecx = esi; /* 0x47067174: mov ecx, esi */
   6929     RECOMP_ICALL(0x4703B240u); /* 0x47067176: call 0x4703b240 */ /* not lifted */
   6930     RECOMP_FLAGS_IN();
   6931     PUSH32(esp, eax); /* 0x4706717B: push eax */
   6932     ecx = esi; /* 0x4706717C: mov ecx, esi */
   6933     RECOMP_ICALL(0x4703B080u); /* 0x4706717E: call 0x4703b080 */ /* not lifted */
   6934     RECOMP_FLAGS_IN();
   6935     PUSH32(esp, eax); /* 0x47067183: push eax */
   6936     PUSH32(esp, edi); /* 0x47067184: push edi */
   6937     PUSH32(esp, 0xFFFFFFFFu); /* 0x47067185: push -1 */
   6938     PUSH32(esp, 0x125u); /* 0x47067187: push 0x125 */
   6939     PUSH32(esp, 0x47109750u); /* 0x4706718C: push 0x47109750 */
   6940     ecx = esi; /* 0x47067191: mov ecx, esi */
   6941     RECOMP_ICALL(0x4703A340u); /* 0x47067193: call 0x4703a340 */ /* not lifted */
   6942     RECOMP_FLAGS_IN();
   6943     PUSH32(esp, 0xFFFFFFFFu); /* 0x47067198: push -1 */
   6944     PUSH32(esp, 0x47109768u); /* 0x4706719A: push 0x47109768 */
   6945     PUSH32(esp, 0x47104AA4u); /* 0x4706719F: push 0x47104aa4 */
   6946     PUSH32(esp, 0x80u); /* 0x470671A4: push 0x80 */
   6947     PUSH32(esp, esi); /* 0x470671A9: push esi */
   6948     RECOMP_ICALL(0x47039830u); /* 0x470671AA: call 0x47039830 */ /* not lifted */
   6949     RECOMP_FLAGS_IN();
   6950     esi = MEM32(esp + 0x2C); /* 0x470671AF: mov esi, dword ptr [esp + 0x2c] */
   6951     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x14u);
   6952     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6953     esp = esp + 0x14u; /* 0x470671B3: add esp, 0x14 */
   6954     _flag_k = FK_ADD;
   6955 L_470671B6:
   6956     edx = MEM32(esi + 0x20); /* 0x470671B6: mov edx, dword ptr [esi + 0x20] */
   6957     eax = MEM32(ebx + 0x54); /* 0x470671B9: mov eax, dword ptr [ebx + 0x54] */
   6958     ecx = MEM32(esp + 0x1C); /* 0x470671BC: mov ecx, dword ptr [esp + 0x1c] */
   6959     edi = POP32_VAL(esp); /* 0x470671C0: pop edi */
   6960     esi = POP32_VAL(esp); /* 0x470671C1: pop esi */
   6961     ebp = POP32_VAL(esp); /* 0x470671C2: pop ebp */
   6962     MEM32(eax + edx * 4) = ecx; /* 0x470671C3: mov dword ptr [eax + edx*4], ecx */
   6963     ebx = POP32_VAL(esp); /* 0x470671C6: pop ebx */
   6964     ecx = POP32_VAL(esp); /* 0x470671C7: pop ecx */
   6965     RECOMP_FLAGS_OUT(); esp += 16; { RECOMP_REGS_OUT(); return; } /* 0x470671C8: ret 0xc */
   6966     RECOMP_REGS_OUT();
   6967 }
   6968 
   6969 void sub_470671D0(void) {
   6970     int _fpu_cmp = 0;
   6971     uint32_t _cf = 0;
   6972     int _df = 1;
   6973     uint32_t _flag_k = FK_NONE;
   6974     uint32_t _flag_a = 0, _flag_b = 0;
   6975     uint32_t _itail_tgt = 0;
   6976     RECOMP_REGS_LOCALS
   6977     RECOMP_ENTER(0x470671D0u);
   6978 
   6979 L_470671D0:
   6980     PUSH32(esp, esi); /* 0x470671D0: push esi */
   6981     esi = ecx; /* 0x470671D1: mov esi, ecx */
   6982     RECOMP_ICALL(0x470671F0u); /* 0x470671D3: call 0x470671f0 */ /* not lifted */
   6983     RECOMP_FLAGS_IN();
   6984     /* test MEM8(esp + 0x8), 1 */ /* 0x470671D8: test byte ptr [esp + 8], 1 */
   6985     _flag_a = (uint32_t)(MEM8(esp + 0x8)) << 24; _flag_b = (uint32_t)(1) << 24;
   6986     _cf = 0;
   6987     _flag_k = FK_NARROW(FK_TEST, 24);
   6988     if (TEST_Z(_flag_a, _flag_b)) goto L_470671E8; /* 0x470671DD: je 0x470671e8 */
   6989 L_470671DF:
   6990     PUSH32(esp, esi); /* 0x470671DF: push esi */
   6991     RECOMP_ICALL(0x470A32A2u); /* 0x470671E0: call 0x470a32a2 */ /* not lifted */
   6992     RECOMP_FLAGS_IN();
   6993     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   6994     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   6995     esp = esp + 4; /* 0x470671E5: add esp, 4 */
   6996     _flag_k = FK_ADD;
   6997 L_470671E8:
   6998     eax = esi; /* 0x470671E8: mov eax, esi */
   6999     esi = POP32_VAL(esp); /* 0x470671EA: pop esi */
   7000     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470671EB: ret 4 */
   7001     RECOMP_REGS_OUT();
   7002 }
   7003 
   7004 void sub_470671F0(void) {
   7005     int _fpu_cmp = 0;
   7006     uint32_t _cf = 0;
   7007     int _df = 1;
   7008     uint32_t _flag_k = FK_NONE;
   7009     uint32_t _flag_a = 0, _flag_b = 0;
   7010     uint32_t _itail_tgt = 0;
   7011     RECOMP_REGS_LOCALS
   7012     RECOMP_ENTER(0x470671F0u);
   7013 
   7014 L_470671F0:
   7015     PUSH32(esp, esi); /* 0x470671F0: push esi */
   7016     esi = ecx; /* 0x470671F1: mov esi, ecx */
   7017     /* cmp MEM32(esi + 0x4), 2 */ /* 0x470671F3: cmp dword ptr [esi + 4], 2 */
   7018     _flag_a = (uint32_t)(MEM32(esi + 0x4)); _flag_b = (uint32_t)(2);
   7019     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7020     _flag_k = FK_CMP;
   7021     MEM32(esi) = 0x470AE9C8u; /* 0x470671F7: mov dword ptr [esi], 0x470ae9c8 */
   7022     if (CMP_EQ(_flag_a, _flag_b)) goto L_47067220; /* 0x470671FD: je 0x47067220 */
   7023 L_470671FF:
   7024     eax = MEM32(esi + 0x8); /* 0x470671FF: mov eax, dword ptr [esi + 8] */
   7025     /* test eax, eax */ /* 0x47067202: test eax, eax */
   7026     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7027     _cf = 0;
   7028     _flag_k = FK_TEST;
   7029     if (TEST_Z(_flag_a, _flag_b)) goto L_47067220; /* 0x47067204: je 0x47067220 */
   7030 L_47067206:
   7031     /* test eax, eax */ /* 0x47067206: test eax, eax */
   7032     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7033     _cf = 0;
   7034     _flag_k = FK_TEST;
   7035     ecx = MEM32(eax + 0x1C); /* 0x47067208: mov ecx, dword ptr [eax + 0x1c] */
   7036     MEM32(esi + 0x8) = ecx; /* 0x4706720B: mov dword ptr [esi + 8], ecx */
   7037     if (TEST_Z(_flag_a, _flag_b)) goto L_47067219; /* 0x4706720E: je 0x47067219 */
   7038 L_47067210:
   7039     PUSH32(esp, eax); /* 0x47067210: push eax */
   7040     RECOMP_ICALL(0x470A32A2u); /* 0x47067211: call 0x470a32a2 */ /* not lifted */
   7041     RECOMP_FLAGS_IN();
   7042     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7043     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7044     esp = esp + 4; /* 0x47067216: add esp, 4 */
   7045     _flag_k = FK_ADD;
   7046 L_47067219:
   7047     eax = MEM32(esi + 0x8); /* 0x47067219: mov eax, dword ptr [esi + 8] */
   7048     /* test eax, eax */ /* 0x4706721C: test eax, eax */
   7049     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7050     _cf = 0;
   7051     _flag_k = FK_TEST;
   7052     RECOMP_BACKEDGE();
   7053     if (TEST_NZ(_flag_a, _flag_b)) goto L_47067206; /* 0x4706721E: jne 0x47067206 */
   7054 L_47067220:
   7055     MEM32(esi) = 0x470AE9E4u; /* 0x47067220: mov dword ptr [esi], 0x470ae9e4 */
   7056     esi = POP32_VAL(esp); /* 0x47067226: pop esi */
   7057     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x47067227: ret  */
   7058     RECOMP_REGS_OUT();
   7059 }
   7060 
   7061 void sub_47067230(void) {
   7062     int _fpu_cmp = 0;
   7063     uint32_t _cf = 0;
   7064     int _df = 1;
   7065     uint32_t _flag_k = FK_NONE;
   7066     uint32_t _flag_a = 0, _flag_b = 0;
   7067     uint32_t _itail_tgt = 0;
   7068     RECOMP_REGS_LOCALS
   7069     RECOMP_ENTER(0x47067230u);
   7070 
   7071 L_47067230:
   7072     PUSH32(esp, esi); /* 0x47067230: push esi */
   7073     esi = ecx; /* 0x47067231: mov esi, ecx */
   7074     ecx = MEM32(esp + 0x8); /* 0x47067233: mov ecx, dword ptr [esp + 8] */
   7075     eax = MEM32(esi); /* 0x47067237: mov eax, dword ptr [esi] */
   7076     edx = MEM32(ecx); /* 0x47067239: mov edx, dword ptr [ecx] */
   7077     MEM32(eax + 0x4) = edx; /* 0x4706723B: mov dword ptr [eax + 4], edx */
   7078     ecx = MEM32(esi + 0x8); /* 0x4706723E: mov ecx, dword ptr [esi + 8] */
   7079     eax = MEM32(ecx); /* 0x47067241: mov eax, dword ptr [ecx] */
   7080     PUSH32(esp, 8); /* 0x47067243: push 8 */
   7081     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x47067245: call dword ptr [eax + 4] */
   7082     RECOMP_FLAGS_IN();
   7083     /* test eax, eax */ /* 0x47067248: test eax, eax */
   7084     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   7085     _cf = 0;
   7086     _flag_k = FK_TEST;
   7087     if (TEST_Z(_flag_a, _flag_b)) goto L_47067261; /* 0x4706724A: je 0x47067261 */
   7088 L_4706724C:
   7089     ecx = MEM32(esi); /* 0x4706724C: mov ecx, dword ptr [esi] */
   7090     edx = MEM32(ecx); /* 0x4706724E: mov edx, dword ptr [ecx] */
   7091     MEM32(eax) = edx; /* 0x47067250: mov dword ptr [eax], edx */
   7092     ecx = MEM32(esi); /* 0x47067252: mov ecx, dword ptr [esi] */
   7093     MEM32(ecx) = eax; /* 0x47067254: mov dword ptr [ecx], eax */
   7094     MEM32(esi) = eax; /* 0x47067256: mov dword ptr [esi], eax */
   7095     _flag_a = (uint32_t)(MEM32(esi + 0x4)); _flag_b = (uint32_t)(1);
   7096     MEM32(esi + 0x4) = MEM32(esi + 0x4) + 1; /* 0x47067258: inc dword ptr [esi + 4] */
   7097     _flag_k = FK_INC;
   7098     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7099     eax = 0; /* 0x4706725B: xor eax, eax */
   7100     _cf = 0;
   7101     _flag_k = FK_TEST;
   7102     esi = POP32_VAL(esp); /* 0x4706725D: pop esi */
   7103     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x4706725E: ret 4 */
   7104 L_47067261:
   7105     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x47067261: call dword ptr [0x470ac3c8] */
   7106     RECOMP_FLAGS_IN();
   7107     MEM32(eax) = 0xCu; /* 0x47067267: mov dword ptr [eax], 0xc */
   7108     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   7109     eax = eax | 0xFFFFFFFFu; /* 0x4706726D: or eax, 0xffffffff */
   7110     _cf = 0;
   7111     _flag_k = FK_TEST;
   7112     esi = POP32_VAL(esp); /* 0x47067270: pop esi */
   7113     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47067271: ret 4 */
   7114     RECOMP_REGS_OUT();
   7115 }
   7116 
   7117 void sub_47067280(void) {
   7118     int _fpu_cmp = 0;
   7119     uint32_t _cf = 0;
   7120     int _df = 1;
   7121     uint32_t _flag_k = FK_NONE;
   7122     uint32_t _flag_a = 0, _flag_b = 0;
   7123     uint32_t _itail_tgt = 0;
   7124     RECOMP_REGS_LOCALS
   7125     RECOMP_ENTER(0x47067280u);
   7126 
   7127     goto L_47067280;
   7128 L_47062390:
   7129     PUSH32(esp, ebx); /* 0x47062390: push ebx */
   7130     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47062391: mov bl, byte ptr [esp + 8] */
   7131     /* test LO8(ebx), 2 */ /* 0x47062395: test bl, 2 */
   7132     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   7133     _cf = 0;
   7134     _flag_k = FK_NARROW(FK_TEST, 24);
   7135     PUSH32(esp, esi); /* 0x47062398: push esi */
   7136     if (TEST_Z(_flag_a, _flag_b)) goto L_470623C7; /* 0x47062399: je 0x470623c7 */
   7137 L_4706239B:
   7138     eax = MEM32(ecx + (-0x1C)); /* 0x4706239B: mov eax, dword ptr [ecx - 0x1c] */
   7139     esi = ecx + (-0x1C); /* 0x4706239E: lea esi, [ecx - 0x1c] */
   7140     PUSH32(esp, 0x47062370u); /* 0x470623A1: push 0x47062370 */
   7141     PUSH32(esp, eax); /* 0x470623A6: push eax */
   7142     PUSH32(esp, 0x1Cu); /* 0x470623A7: push 0x1c */
   7143     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFE8u);
   7144     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7145     ecx = ecx + 0xFFFFFFE8u; /* 0x470623A9: add ecx, -0x18 */
   7146     _flag_k = FK_ADD;
   7147     PUSH32(esp, ecx); /* 0x470623AC: push ecx */
   7148     RECOMP_ICALL(0x470A32EBu); /* 0x470623AD: call 0x470a32eb */ /* not lifted */
   7149     RECOMP_FLAGS_IN();
   7150     /* test LO8(ebx), 1 */ /* 0x470623B2: test bl, 1 */
   7151     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   7152     _cf = 0;
   7153     _flag_k = FK_NARROW(FK_TEST, 24);
   7154     if (TEST_Z(_flag_a, _flag_b)) goto L_470623C0; /* 0x470623B5: je 0x470623c0 */
   7155 L_470623B7:
   7156     PUSH32(esp, esi); /* 0x470623B7: push esi */
   7157     RECOMP_ICALL(0x470A32A2u); /* 0x470623B8: call 0x470a32a2 */ /* not lifted */
   7158     RECOMP_FLAGS_IN();
   7159     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7160     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7161     esp = esp + 4; /* 0x470623BD: add esp, 4 */
   7162     _flag_k = FK_ADD;
   7163 L_470623C0:
   7164     eax = esi; /* 0x470623C0: mov eax, esi */
   7165     esi = POP32_VAL(esp); /* 0x470623C2: pop esi */
   7166     ebx = POP32_VAL(esp); /* 0x470623C3: pop ebx */
   7167     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470623C4: ret 4 */
   7168 L_470623C7:
   7169     PUSH32(esp, edi); /* 0x470623C7: push edi */
   7170     edi = ecx + (-0x18); /* 0x470623C8: lea edi, [ecx - 0x18] */
   7171     esi = edi + 0x18; /* 0x470623CB: lea esi, [edi + 0x18] */
   7172     ecx = esi; /* 0x470623CE: mov ecx, esi */
   7173     RECOMP_ICALL(0x4709FCF0u); /* 0x470623D0: call 0x4709fcf0 */ /* not lifted */
   7174     RECOMP_FLAGS_IN();
   7175     ecx = esi; /* 0x470623D5: mov ecx, esi */
   7176     RECOMP_ICALL(0x47018750u); /* 0x470623D7: call 0x47018750 */ /* not lifted */
   7177     RECOMP_FLAGS_IN();
   7178     /* test LO8(ebx), 1 */ /* 0x470623DC: test bl, 1 */
   7179     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   7180     _cf = 0;
   7181     _flag_k = FK_NARROW(FK_TEST, 24);
   7182     if (TEST_Z(_flag_a, _flag_b)) goto L_470623EA; /* 0x470623DF: je 0x470623ea */
   7183 L_470623E1:
   7184     PUSH32(esp, edi); /* 0x470623E1: push edi */
   7185     RECOMP_ICALL(0x470A32A2u); /* 0x470623E2: call 0x470a32a2 */ /* not lifted */
   7186     RECOMP_FLAGS_IN();
   7187     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7188     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7189     esp = esp + 4; /* 0x470623E7: add esp, 4 */
   7190     _flag_k = FK_ADD;
   7191 L_470623EA:
   7192     eax = edi; /* 0x470623EA: mov eax, edi */
   7193     edi = POP32_VAL(esp); /* 0x470623EC: pop edi */
   7194     esi = POP32_VAL(esp); /* 0x470623ED: pop esi */
   7195     ebx = POP32_VAL(esp); /* 0x470623EE: pop ebx */
   7196     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470623EF: ret 4 */
   7197 L_47067280:
   7198     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   7199     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7200     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067280: sub ecx, dword ptr [ecx - 4] */
   7201     _flag_k = FK_CMP;
   7202     RECOMP_BACKEDGE();
   7203     goto L_47062390; /* 0x47067283: jmp 0x47062390 */
   7204     { RECOMP_REGS_OUT(); return; } /* end of function */
   7205     RECOMP_REGS_OUT();
   7206 }
   7207 
   7208 void sub_47067290(void) {
   7209     int _fpu_cmp = 0;
   7210     uint32_t _cf = 0;
   7211     int _df = 1;
   7212     uint32_t _flag_k = FK_NONE;
   7213     uint32_t _flag_a = 0, _flag_b = 0;
   7214     uint32_t _itail_tgt = 0;
   7215     RECOMP_REGS_LOCALS
   7216     RECOMP_ENTER(0x47067290u);
   7217 
   7218 L_47067290:
   7219     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   7220     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7221     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067290: sub ecx, dword ptr [ecx - 4] */
   7222     _flag_k = FK_CMP;
   7223     goto L_470A1D90; /* 0x47067293: jmp 0x470a1d90 */
   7224 L_470A1D90:
   7225     eax = MEM32(esp + 0x10); /* 0x470A1D90: mov eax, dword ptr [esp + 0x10] */
   7226     PUSH32(esp, esi); /* 0x470A1D94: push esi */
   7227     esi = ecx; /* 0x470A1D95: mov esi, ecx */
   7228     ecx = MEM32(esp + 0x8); /* 0x470A1D97: mov ecx, dword ptr [esp + 8] */
   7229     MEM32(esi + (-0x10)) = eax; /* 0x470A1D9B: mov dword ptr [esi - 0x10], eax */
   7230     eax = MEM32(esp + 0xC); /* 0x470A1D9E: mov eax, dword ptr [esp + 0xc] */
   7231     /* cmp eax, 0xFFFFFFFFu */ /* 0x470A1DA2: cmp eax, -1 */
   7232     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   7233     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7234     _flag_k = FK_CMP;
   7235     MEM32(esi + (-0xC)) = ecx; /* 0x470A1DA5: mov dword ptr [esi - 0xc], ecx */
   7236     MEM32(esi + (-0x8)) = eax; /* 0x470A1DA8: mov dword ptr [esi - 8], eax */
   7237     if (CMP_NE(_flag_a, _flag_b)) goto L_470A1DB8; /* 0x470A1DAB: jne 0x470a1db8 */
   7238 L_470A1DAD:
   7239     ecx = MEM32(esi + (-0xC)); /* 0x470A1DAD: mov ecx, dword ptr [esi - 0xc] */
   7240     edx = MEM32(ecx); /* 0x470A1DB0: mov edx, dword ptr [ecx] */
   7241     RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x470A1DB2: call dword ptr [edx + 0x24] */
   7242     RECOMP_FLAGS_IN();
   7243     MEM32(esi + (-0x8)) = eax; /* 0x470A1DB5: mov dword ptr [esi - 8], eax */
   7244 L_470A1DB8:
   7245     eax = MEM32(esi + (-0x8)); /* 0x470A1DB8: mov eax, dword ptr [esi - 8] */
   7246     /* cmp eax, 0xFFFFFFFFu */ /* 0x470A1DBB: cmp eax, -1 */
   7247     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   7248     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7249     _flag_k = FK_CMP;
   7250     if (CMP_NE(_flag_a, _flag_b)) goto L_470A1DC6; /* 0x470A1DBE: jne 0x470a1dc6 */
   7251 L_470A1DC0:
   7252     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   7253     eax = eax | eax; /* 0x470A1DC0: or eax, eax */
   7254     _cf = 0;
   7255     _flag_k = FK_TEST;
   7256     esi = POP32_VAL(esp); /* 0x470A1DC2: pop esi */
   7257     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A1DC3: ret 0x10 */
   7258 L_470A1DC6:
   7259     ecx = MEM32(esi + (-0x14)); /* 0x470A1DC6: mov ecx, dword ptr [esi - 0x14] */
   7260     esi = MEM32(esp + 0x10); /* 0x470A1DC9: mov esi, dword ptr [esp + 0x10] */
   7261     edx = MEM32(ecx); /* 0x470A1DCD: mov edx, dword ptr [ecx] */
   7262     PUSH32(esp, esi); /* 0x470A1DCF: push esi */
   7263     PUSH32(esp, eax); /* 0x470A1DD0: push eax */
   7264     RECOMP_ICALL(MEM32(edx + 0x44)); /* 0x470A1DD1: call dword ptr [edx + 0x44] */
   7265     RECOMP_FLAGS_IN();
   7266     esi = POP32_VAL(esp); /* 0x470A1DD4: pop esi */
   7267     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A1DD5: ret 0x10 */
   7268     RECOMP_REGS_OUT();
   7269 }
   7270 
   7271 void sub_470672A0(void) {
   7272     int _fpu_cmp = 0;
   7273     uint32_t _cf = 0;
   7274     int _df = 1;
   7275     uint32_t _flag_k = FK_NONE;
   7276     uint32_t _flag_a = 0, _flag_b = 0;
   7277     uint32_t _itail_tgt = 0;
   7278     RECOMP_REGS_LOCALS
   7279     RECOMP_ENTER(0x470672A0u);
   7280 
   7281     goto L_470672A0;
   7282 L_4700E9B0:
   7283     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4700E9B0: call dword ptr [0x470ac3c8] */
   7284     RECOMP_FLAGS_IN();
   7285     MEM32(eax) = 0x28u; /* 0x4700E9B6: mov dword ptr [eax], 0x28 */
   7286     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   7287     eax = eax | 0xFFFFFFFFu; /* 0x4700E9BC: or eax, 0xffffffff */
   7288     _cf = 0;
   7289     _flag_k = FK_TEST;
   7290     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700E9BF: ret  */
   7291 L_470672A0:
   7292     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   7293     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7294     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470672A0: sub ecx, dword ptr [ecx - 4] */
   7295     _flag_k = FK_CMP;
   7296     RECOMP_BACKEDGE();
   7297     goto L_4700E9B0; /* 0x470672A3: jmp 0x4700e9b0 */
   7298     { RECOMP_REGS_OUT(); return; } /* end of function */
   7299     RECOMP_REGS_OUT();
   7300 }
   7301 
   7302 void sub_470672B0(void) {
   7303     int _fpu_cmp = 0;
   7304     uint32_t _cf = 0;
   7305     int _df = 1;
   7306     uint32_t _flag_k = FK_NONE;
   7307     uint32_t _flag_a = 0, _flag_b = 0;
   7308     uint32_t _itail_tgt = 0;
   7309     RECOMP_REGS_LOCALS
   7310     RECOMP_ENTER(0x470672B0u);
   7311 
   7312     goto L_470672B0;
   7313 L_47062660:
   7314     PUSH32(esp, ebx); /* 0x47062660: push ebx */
   7315     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x47062661: mov bl, byte ptr [esp + 8] */
   7316     /* test LO8(ebx), 2 */ /* 0x47062665: test bl, 2 */
   7317     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   7318     _cf = 0;
   7319     _flag_k = FK_NARROW(FK_TEST, 24);
   7320     PUSH32(esp, esi); /* 0x47062668: push esi */
   7321     if (TEST_Z(_flag_a, _flag_b)) goto L_47062697; /* 0x47062669: je 0x47062697 */
   7322 L_4706266B:
   7323     eax = MEM32(ecx + (-0x1C)); /* 0x4706266B: mov eax, dword ptr [ecx - 0x1c] */
   7324     esi = ecx + (-0x1C); /* 0x4706266E: lea esi, [ecx - 0x1c] */
   7325     PUSH32(esp, 0x47062640u); /* 0x47062671: push 0x47062640 */
   7326     PUSH32(esp, eax); /* 0x47062676: push eax */
   7327     PUSH32(esp, 0x28u); /* 0x47062677: push 0x28 */
   7328     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFE8u);
   7329     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7330     ecx = ecx + 0xFFFFFFE8u; /* 0x47062679: add ecx, -0x18 */
   7331     _flag_k = FK_ADD;
   7332     PUSH32(esp, ecx); /* 0x4706267C: push ecx */
   7333     RECOMP_ICALL(0x470A32EBu); /* 0x4706267D: call 0x470a32eb */ /* not lifted */
   7334     RECOMP_FLAGS_IN();
   7335     /* test LO8(ebx), 1 */ /* 0x47062682: test bl, 1 */
   7336     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   7337     _cf = 0;
   7338     _flag_k = FK_NARROW(FK_TEST, 24);
   7339     if (TEST_Z(_flag_a, _flag_b)) goto L_470626C3; /* 0x47062685: je 0x470626c3 */
   7340 L_47062687:
   7341     PUSH32(esp, esi); /* 0x47062687: push esi */
   7342     RECOMP_ICALL(0x470A32A2u); /* 0x47062688: call 0x470a32a2 */ /* not lifted */
   7343     RECOMP_FLAGS_IN();
   7344     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7345     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7346     esp = esp + 4; /* 0x4706268D: add esp, 4 */
   7347     _flag_k = FK_ADD;
   7348     eax = esi; /* 0x47062690: mov eax, esi */
   7349     esi = POP32_VAL(esp); /* 0x47062692: pop esi */
   7350     ebx = POP32_VAL(esp); /* 0x47062693: pop ebx */
   7351     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062694: ret 4 */
   7352 L_47062697:
   7353     esi = ecx + (-0x18); /* 0x47062697: lea esi, [ecx - 0x18] */
   7354     PUSH32(esp, edi); /* 0x4706269A: push edi */
   7355     edi = esi + 0x18; /* 0x4706269B: lea edi, [esi + 0x18] */
   7356     ecx = edi; /* 0x4706269E: mov ecx, edi */
   7357     RECOMP_ICALL(0x470A0170u); /* 0x470626A0: call 0x470a0170 */ /* not lifted */
   7358     RECOMP_FLAGS_IN();
   7359     ecx = esi + 0x28; /* 0x470626A5: lea ecx, [esi + 0x28] */
   7360     RECOMP_ICALL(0x47018760u); /* 0x470626A8: call 0x47018760 */ /* not lifted */
   7361     RECOMP_FLAGS_IN();
   7362     ecx = edi; /* 0x470626AD: mov ecx, edi */
   7363     RECOMP_ICALL(0x47018750u); /* 0x470626AF: call 0x47018750 */ /* not lifted */
   7364     RECOMP_FLAGS_IN();
   7365     /* test LO8(ebx), 1 */ /* 0x470626B4: test bl, 1 */
   7366     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   7367     _cf = 0;
   7368     _flag_k = FK_NARROW(FK_TEST, 24);
   7369     edi = POP32_VAL(esp); /* 0x470626B7: pop edi */
   7370     if (TEST_Z(_flag_a, _flag_b)) goto L_470626C3; /* 0x470626B8: je 0x470626c3 */
   7371 L_470626BA:
   7372     PUSH32(esp, esi); /* 0x470626BA: push esi */
   7373     RECOMP_ICALL(0x470A32A2u); /* 0x470626BB: call 0x470a32a2 */ /* not lifted */
   7374     RECOMP_FLAGS_IN();
   7375     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7376     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7377     esp = esp + 4; /* 0x470626C0: add esp, 4 */
   7378     _flag_k = FK_ADD;
   7379 L_470626C3:
   7380     eax = esi; /* 0x470626C3: mov eax, esi */
   7381     esi = POP32_VAL(esp); /* 0x470626C5: pop esi */
   7382     ebx = POP32_VAL(esp); /* 0x470626C6: pop ebx */
   7383     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x470626C7: ret 4 */
   7384 L_470672B0:
   7385     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   7386     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7387     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470672B0: sub ecx, dword ptr [ecx - 4] */
   7388     _flag_k = FK_CMP;
   7389     RECOMP_BACKEDGE();
   7390     goto L_47062660; /* 0x470672B3: jmp 0x47062660 */
   7391     { RECOMP_REGS_OUT(); return; } /* end of function */
   7392     RECOMP_REGS_OUT();
   7393 }
   7394 
   7395 void sub_470672C0(void) {
   7396     int _fpu_cmp = 0;
   7397     uint32_t _cf = 0;
   7398     int _df = 1;
   7399     uint32_t _flag_k = FK_NONE;
   7400     uint32_t _flag_a = 0, _flag_b = 0;
   7401     uint32_t _itail_tgt = 0;
   7402     RECOMP_REGS_LOCALS
   7403     RECOMP_ENTER(0x470672C0u);
   7404 
   7405 L_470672C0:
   7406     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   7407     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7408     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470672C0: sub ecx, dword ptr [ecx - 4] */
   7409     _flag_k = FK_CMP;
   7410     goto L_470A1D90; /* 0x470672C3: jmp 0x470a1d90 */
   7411 L_470A1D90:
   7412     eax = MEM32(esp + 0x10); /* 0x470A1D90: mov eax, dword ptr [esp + 0x10] */
   7413     PUSH32(esp, esi); /* 0x470A1D94: push esi */
   7414     esi = ecx; /* 0x470A1D95: mov esi, ecx */
   7415     ecx = MEM32(esp + 0x8); /* 0x470A1D97: mov ecx, dword ptr [esp + 8] */
   7416     MEM32(esi + (-0x10)) = eax; /* 0x470A1D9B: mov dword ptr [esi - 0x10], eax */
   7417     eax = MEM32(esp + 0xC); /* 0x470A1D9E: mov eax, dword ptr [esp + 0xc] */
   7418     /* cmp eax, 0xFFFFFFFFu */ /* 0x470A1DA2: cmp eax, -1 */
   7419     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   7420     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7421     _flag_k = FK_CMP;
   7422     MEM32(esi + (-0xC)) = ecx; /* 0x470A1DA5: mov dword ptr [esi - 0xc], ecx */
   7423     MEM32(esi + (-0x8)) = eax; /* 0x470A1DA8: mov dword ptr [esi - 8], eax */
   7424     if (CMP_NE(_flag_a, _flag_b)) goto L_470A1DB8; /* 0x470A1DAB: jne 0x470a1db8 */
   7425 L_470A1DAD:
   7426     ecx = MEM32(esi + (-0xC)); /* 0x470A1DAD: mov ecx, dword ptr [esi - 0xc] */
   7427     edx = MEM32(ecx); /* 0x470A1DB0: mov edx, dword ptr [ecx] */
   7428     RECOMP_ICALL(MEM32(edx + 0x24)); /* 0x470A1DB2: call dword ptr [edx + 0x24] */
   7429     RECOMP_FLAGS_IN();
   7430     MEM32(esi + (-0x8)) = eax; /* 0x470A1DB5: mov dword ptr [esi - 8], eax */
   7431 L_470A1DB8:
   7432     eax = MEM32(esi + (-0x8)); /* 0x470A1DB8: mov eax, dword ptr [esi - 8] */
   7433     /* cmp eax, 0xFFFFFFFFu */ /* 0x470A1DBB: cmp eax, -1 */
   7434     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFFu);
   7435     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7436     _flag_k = FK_CMP;
   7437     if (CMP_NE(_flag_a, _flag_b)) goto L_470A1DC6; /* 0x470A1DBE: jne 0x470a1dc6 */
   7438 L_470A1DC0:
   7439     _flag_a = (uint32_t)((eax | eax)); _flag_b = (uint32_t)((eax | eax));
   7440     eax = eax | eax; /* 0x470A1DC0: or eax, eax */
   7441     _cf = 0;
   7442     _flag_k = FK_TEST;
   7443     esi = POP32_VAL(esp); /* 0x470A1DC2: pop esi */
   7444     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A1DC3: ret 0x10 */
   7445 L_470A1DC6:
   7446     ecx = MEM32(esi + (-0x14)); /* 0x470A1DC6: mov ecx, dword ptr [esi - 0x14] */
   7447     esi = MEM32(esp + 0x10); /* 0x470A1DC9: mov esi, dword ptr [esp + 0x10] */
   7448     edx = MEM32(ecx); /* 0x470A1DCD: mov edx, dword ptr [ecx] */
   7449     PUSH32(esp, esi); /* 0x470A1DCF: push esi */
   7450     PUSH32(esp, eax); /* 0x470A1DD0: push eax */
   7451     RECOMP_ICALL(MEM32(edx + 0x44)); /* 0x470A1DD1: call dword ptr [edx + 0x44] */
   7452     RECOMP_FLAGS_IN();
   7453     esi = POP32_VAL(esp); /* 0x470A1DD4: pop esi */
   7454     RECOMP_FLAGS_OUT(); esp += 20; { RECOMP_REGS_OUT(); return; } /* 0x470A1DD5: ret 0x10 */
   7455     RECOMP_REGS_OUT();
   7456 }
   7457 
   7458 void sub_470672D0(void) {
   7459     int _fpu_cmp = 0;
   7460     uint32_t _cf = 0;
   7461     int _df = 1;
   7462     uint32_t _flag_k = FK_NONE;
   7463     uint32_t _flag_a = 0, _flag_b = 0;
   7464     uint32_t _itail_tgt = 0;
   7465     RECOMP_REGS_LOCALS
   7466     RECOMP_ENTER(0x470672D0u);
   7467 
   7468     goto L_470672D0;
   7469 L_4700E9B0:
   7470     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x4700E9B0: call dword ptr [0x470ac3c8] */
   7471     RECOMP_FLAGS_IN();
   7472     MEM32(eax) = 0x28u; /* 0x4700E9B6: mov dword ptr [eax], 0x28 */
   7473     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   7474     eax = eax | 0xFFFFFFFFu; /* 0x4700E9BC: or eax, 0xffffffff */
   7475     _cf = 0;
   7476     _flag_k = FK_TEST;
   7477     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4700E9BF: ret  */
   7478 L_470672D0:
   7479     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   7480     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7481     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470672D0: sub ecx, dword ptr [ecx - 4] */
   7482     _flag_k = FK_CMP;
   7483     RECOMP_BACKEDGE();
   7484     goto L_4700E9B0; /* 0x470672D3: jmp 0x4700e9b0 */
   7485     { RECOMP_REGS_OUT(); return; } /* end of function */
   7486     RECOMP_REGS_OUT();
   7487 }
   7488 
   7489 void sub_470672E0(void) {
   7490     int _fpu_cmp = 0;
   7491     uint32_t _cf = 0;
   7492     int _df = 1;
   7493     uint32_t _flag_k = FK_NONE;
   7494     uint32_t _flag_a = 0, _flag_b = 0;
   7495     uint32_t _itail_tgt = 0;
   7496     RECOMP_REGS_LOCALS
   7497     RECOMP_ENTER(0x470672E0u);
   7498 
   7499 L_470672E0:
   7500     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   7501     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7502     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470672E0: sub ecx, dword ptr [ecx - 4] */
   7503     _flag_k = FK_CMP;
   7504     goto L_4709FB30; /* 0x470672E3: jmp 0x4709fb30 */
   7505 L_4709FB30:
   7506     eax = MEM32(ecx + (-0x10)); /* 0x4709FB30: mov eax, dword ptr [ecx - 0x10] */
   7507     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FB33: ret  */
   7508     RECOMP_REGS_OUT();
   7509 }
   7510 
   7511 void sub_470672F0(void) {
   7512     int _fpu_cmp = 0;
   7513     uint32_t _cf = 0;
   7514     int _df = 1;
   7515     uint32_t _flag_k = FK_NONE;
   7516     uint32_t _flag_a = 0, _flag_b = 0;
   7517     uint32_t _itail_tgt = 0;
   7518     RECOMP_REGS_LOCALS
   7519     RECOMP_ENTER(0x470672F0u);
   7520 
   7521 L_470672F0:
   7522     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   7523     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7524     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x470672F0: sub ecx, dword ptr [ecx - 4] */
   7525     _flag_k = FK_CMP;
   7526     goto L_470A00A0; /* 0x470672F3: jmp 0x470a00a0 */
   7527 L_470A00A0:
   7528     PUSH32(esp, 0xFFFFFFFFu); /* 0x470A00A0: push -1 */
   7529     PUSH32(esp, 0x470ABB8Bu); /* 0x470A00A2: push 0x470abb8b */
   7530     eax = MEM32(FS_BASE + (0)); /* 0x470A00A7: mov eax, dword ptr fs:[0] */
   7531     PUSH32(esp, eax); /* 0x470A00AD: push eax */
   7532     MEM32(FS_BASE + (0)) = esp; /* 0x470A00AE: mov dword ptr fs:[0], esp */
   7533     PUSH32(esp, ecx); /* 0x470A00B5: push ecx */
   7534     PUSH32(esp, esi); /* 0x470A00B6: push esi */
   7535     PUSH32(esp, edi); /* 0x470A00B7: push edi */
   7536     PUSH32(esp, 0x54u); /* 0x470A00B8: push 0x54 */
   7537     esi = ecx; /* 0x470A00BA: mov esi, ecx */
   7538     RECOMP_ICALL(0x470A33F2u); /* 0x470A00BC: call 0x470a33f2 */ /* not lifted */
   7539     RECOMP_FLAGS_IN();
   7540     edi = eax; /* 0x470A00C1: mov edi, eax */
   7541     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7542     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7543     esp = esp + 4; /* 0x470A00C3: add esp, 4 */
   7544     _flag_k = FK_ADD;
   7545     MEM32(esp + 0x8) = edi; /* 0x470A00C6: mov dword ptr [esp + 8], edi */
   7546     /* test edi, edi */ /* 0x470A00CA: test edi, edi */
   7547     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   7548     _cf = 0;
   7549     _flag_k = FK_TEST;
   7550     MEM32(esp + 0x14) = 0; /* 0x470A00CC: mov dword ptr [esp + 0x14], 0 */
   7551     if (TEST_Z(_flag_a, _flag_b)) goto L_470A010D; /* 0x470A00D4: je 0x470a010d */
   7552 L_470A00D6:
   7553     eax = MEM32(esp + 0x2C); /* 0x470A00D6: mov eax, dword ptr [esp + 0x2c] */
   7554     ecx = MEM32(esi + (-0x1C)); /* 0x470A00DA: mov ecx, dword ptr [esi - 0x1c] */
   7555     edx = MEM32(esp + 0x28); /* 0x470A00DD: mov edx, dword ptr [esp + 0x28] */
   7556     PUSH32(esp, 1); /* 0x470A00E1: push 1 */
   7557     PUSH32(esp, eax); /* 0x470A00E3: push eax */
   7558     eax = MEM32(ecx); /* 0x470A00E4: mov eax, dword ptr [ecx] */
   7559     PUSH32(esp, edx); /* 0x470A00E6: push edx */
   7560     RECOMP_ICALL(MEM32(eax + 0x4)); /* 0x470A00E7: call dword ptr [eax + 4] */
   7561     RECOMP_FLAGS_IN();
   7562     ecx = MEM32(esp + 0x30); /* 0x470A00EA: mov ecx, dword ptr [esp + 0x30] */
   7563     edx = MEM32(esp + 0x2C); /* 0x470A00EE: mov edx, dword ptr [esp + 0x2c] */
   7564     PUSH32(esp, eax); /* 0x470A00F2: push eax */
   7565     eax = MEM32(esp + 0x2C); /* 0x470A00F3: mov eax, dword ptr [esp + 0x2c] */
   7566     PUSH32(esp, ecx); /* 0x470A00F7: push ecx */
   7567     ecx = MEM32(esi + (-0x10)); /* 0x470A00F8: mov ecx, dword ptr [esi - 0x10] */
   7568     PUSH32(esp, edx); /* 0x470A00FB: push edx */
   7569     edx = MEM32(esi + (-0x14)); /* 0x470A00FC: mov edx, dword ptr [esi - 0x14] */
   7570     PUSH32(esp, eax); /* 0x470A00FF: push eax */
   7571     PUSH32(esp, ecx); /* 0x470A0100: push ecx */
   7572     PUSH32(esp, edx); /* 0x470A0101: push edx */
   7573     ecx = edi; /* 0x470A0102: mov ecx, edi */
   7574     RECOMP_ICALL(0x4709FD30u); /* 0x470A0104: call 0x4709fd30 */ /* not lifted */
   7575     RECOMP_FLAGS_IN();
   7576     edi = eax; /* 0x470A0109: mov edi, eax */
   7577     goto L_470A010F; /* 0x470A010B: jmp 0x470a010f */
   7578 L_470A010D:
   7579     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   7580     edi = 0; /* 0x470A010D: xor edi, edi */
   7581     _cf = 0;
   7582     _flag_k = FK_TEST;
   7583 L_470A010F:
   7584     /* test edi, edi */ /* 0x470A010F: test edi, edi */
   7585     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   7586     _cf = 0;
   7587     _flag_k = FK_TEST;
   7588     MEM32(esp + 0x14) = 0xFFFFFFFFu; /* 0x470A0111: mov dword ptr [esp + 0x14], 0xffffffff */
   7589     if (TEST_NZ(_flag_a, _flag_b)) goto L_470A013D; /* 0x470A0119: jne 0x470a013d */
   7590 L_470A011B:
   7591     RECOMP_ICALL(MEM32(0x470AC3C8)); /* 0x470A011B: call dword ptr [0x470ac3c8] */
   7592     RECOMP_FLAGS_IN();
   7593     edi = POP32_VAL(esp); /* 0x470A0121: pop edi */
   7594     MEM32(eax) = 0xCu; /* 0x470A0122: mov dword ptr [eax], 0xc */
   7595     _flag_a = (uint32_t)((eax | 0xFFFFFFFFu)); _flag_b = (uint32_t)((eax | 0xFFFFFFFFu));
   7596     eax = eax | 0xFFFFFFFFu; /* 0x470A0128: or eax, 0xffffffff */
   7597     _cf = 0;
   7598     _flag_k = FK_TEST;
   7599     esi = POP32_VAL(esp); /* 0x470A012B: pop esi */
   7600     ecx = MEM32(esp + 0x4); /* 0x470A012C: mov ecx, dword ptr [esp + 4] */
   7601     MEM32(FS_BASE + (0)) = ecx; /* 0x470A0130: mov dword ptr fs:[0], ecx */
   7602     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   7603     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7604     esp = esp + 0x10u; /* 0x470A0137: add esp, 0x10 */
   7605     _flag_k = FK_ADD;
   7606     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x470A013A: ret 0x14 */
   7607 L_470A013D:
   7608     PUSH32(esp, edi); /* 0x470A013D: push edi */
   7609     ecx = esi + (-0x20); /* 0x470A013E: lea ecx, [esi - 0x20] */
   7610     RECOMP_ICALL(0x470A01D0u); /* 0x470A0141: call 0x470a01d0 */ /* not lifted */
   7611     RECOMP_FLAGS_IN();
   7612     esi = eax; /* 0x470A0146: mov esi, eax */
   7613     /* cmp esi, 0xFFFFFFFFu */ /* 0x470A0148: cmp esi, -1 */
   7614     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(0xFFFFFFFFu);
   7615     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7616     _flag_k = FK_CMP;
   7617     if (CMP_NE(_flag_a, _flag_b)) goto L_470A015B; /* 0x470A014B: jne 0x470a015b */
   7618 L_470A014D:
   7619     eax = MEM32(edi); /* 0x470A014D: mov eax, dword ptr [edi] */
   7620     ecx = MEM32(eax + 0x4); /* 0x470A014F: mov ecx, dword ptr [eax + 4] */
   7621     edx = MEM32(ecx + edi); /* 0x470A0152: mov edx, dword ptr [ecx + edi] */
   7622     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(edi);
   7623     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7624     ecx = ecx + edi; /* 0x470A0155: add ecx, edi */
   7625     _flag_k = FK_ADD;
   7626     PUSH32(esp, 1); /* 0x470A0157: push 1 */
   7627     RECOMP_ICALL(MEM32(edx)); /* 0x470A0159: call dword ptr [edx] */
   7628     RECOMP_FLAGS_IN();
   7629 L_470A015B:
   7630     ecx = MEM32(esp + 0xC); /* 0x470A015B: mov ecx, dword ptr [esp + 0xc] */
   7631     edi = POP32_VAL(esp); /* 0x470A015F: pop edi */
   7632     eax = esi; /* 0x470A0160: mov eax, esi */
   7633     esi = POP32_VAL(esp); /* 0x470A0162: pop esi */
   7634     MEM32(FS_BASE + (0)) = ecx; /* 0x470A0163: mov dword ptr fs:[0], ecx */
   7635     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(0x10u);
   7636     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7637     esp = esp + 0x10u; /* 0x470A016A: add esp, 0x10 */
   7638     _flag_k = FK_ADD;
   7639     RECOMP_FLAGS_OUT(); esp += 24; { RECOMP_REGS_OUT(); return; } /* 0x470A016D: ret 0x14 */
   7640     RECOMP_REGS_OUT();
   7641 }
   7642 
   7643 void sub_47067300(void) {
   7644     int _fpu_cmp = 0;
   7645     uint32_t _cf = 0;
   7646     int _df = 1;
   7647     uint32_t _flag_k = FK_NONE;
   7648     uint32_t _flag_a = 0, _flag_b = 0;
   7649     uint32_t _itail_tgt = 0;
   7650     RECOMP_REGS_LOCALS
   7651     RECOMP_ENTER(0x47067300u);
   7652 
   7653     goto L_47067300;
   7654 L_470627D0:
   7655     PUSH32(esp, ebx); /* 0x470627D0: push ebx */
   7656     SET_LO8(ebx, MEM8(esp + 0x8)); /* 0x470627D1: mov bl, byte ptr [esp + 8] */
   7657     /* test LO8(ebx), 2 */ /* 0x470627D5: test bl, 2 */
   7658     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(2) << 24;
   7659     _cf = 0;
   7660     _flag_k = FK_NARROW(FK_TEST, 24);
   7661     PUSH32(esp, esi); /* 0x470627D8: push esi */
   7662     if (TEST_Z(_flag_a, _flag_b)) goto L_47062807; /* 0x470627D9: je 0x47062807 */
   7663 L_470627DB:
   7664     eax = MEM32(ecx + (-0x44)); /* 0x470627DB: mov eax, dword ptr [ecx - 0x44] */
   7665     esi = ecx + (-0x44); /* 0x470627DE: lea esi, [ecx - 0x44] */
   7666     PUSH32(esp, 0x470627B0u); /* 0x470627E1: push 0x470627b0 */
   7667     PUSH32(esp, eax); /* 0x470627E6: push eax */
   7668     PUSH32(esp, 0x50u); /* 0x470627E7: push 0x50 */
   7669     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xFFFFFFC0u);
   7670     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7671     ecx = ecx + 0xFFFFFFC0u; /* 0x470627E9: add ecx, -0x40 */
   7672     _flag_k = FK_ADD;
   7673     PUSH32(esp, ecx); /* 0x470627EC: push ecx */
   7674     RECOMP_ICALL(0x470A32EBu); /* 0x470627ED: call 0x470a32eb */ /* not lifted */
   7675     RECOMP_FLAGS_IN();
   7676     /* test LO8(ebx), 1 */ /* 0x470627F2: test bl, 1 */
   7677     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   7678     _cf = 0;
   7679     _flag_k = FK_NARROW(FK_TEST, 24);
   7680     if (TEST_Z(_flag_a, _flag_b)) goto L_47062833; /* 0x470627F5: je 0x47062833 */
   7681 L_470627F7:
   7682     PUSH32(esp, esi); /* 0x470627F7: push esi */
   7683     RECOMP_ICALL(0x470A32A2u); /* 0x470627F8: call 0x470a32a2 */ /* not lifted */
   7684     RECOMP_FLAGS_IN();
   7685     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7686     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7687     esp = esp + 4; /* 0x470627FD: add esp, 4 */
   7688     _flag_k = FK_ADD;
   7689     eax = esi; /* 0x47062800: mov eax, esi */
   7690     esi = POP32_VAL(esp); /* 0x47062802: pop esi */
   7691     ebx = POP32_VAL(esp); /* 0x47062803: pop ebx */
   7692     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062804: ret 4 */
   7693 L_47062807:
   7694     esi = ecx + (-0x40); /* 0x47062807: lea esi, [ecx - 0x40] */
   7695     PUSH32(esp, edi); /* 0x4706280A: push edi */
   7696     edi = esi + 0x40; /* 0x4706280B: lea edi, [esi + 0x40] */
   7697     ecx = edi; /* 0x4706280E: mov ecx, edi */
   7698     RECOMP_ICALL(0x470A0430u); /* 0x47062810: call 0x470a0430 */ /* not lifted */
   7699     RECOMP_FLAGS_IN();
   7700     ecx = esi + 0x50; /* 0x47062815: lea ecx, [esi + 0x50] */
   7701     RECOMP_ICALL(0x470187C0u); /* 0x47062818: call 0x470187c0 */ /* not lifted */
   7702     RECOMP_FLAGS_IN();
   7703     ecx = edi; /* 0x4706281D: mov ecx, edi */
   7704     RECOMP_ICALL(0x47018740u); /* 0x4706281F: call 0x47018740 */ /* not lifted */
   7705     RECOMP_FLAGS_IN();
   7706     /* test LO8(ebx), 1 */ /* 0x47062824: test bl, 1 */
   7707     _flag_a = (uint32_t)(LO8(ebx)) << 24; _flag_b = (uint32_t)(1) << 24;
   7708     _cf = 0;
   7709     _flag_k = FK_NARROW(FK_TEST, 24);
   7710     edi = POP32_VAL(esp); /* 0x47062827: pop edi */
   7711     if (TEST_Z(_flag_a, _flag_b)) goto L_47062833; /* 0x47062828: je 0x47062833 */
   7712 L_4706282A:
   7713     PUSH32(esp, esi); /* 0x4706282A: push esi */
   7714     RECOMP_ICALL(0x470A32A2u); /* 0x4706282B: call 0x470a32a2 */ /* not lifted */
   7715     RECOMP_FLAGS_IN();
   7716     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   7717     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   7718     esp = esp + 4; /* 0x47062830: add esp, 4 */
   7719     _flag_k = FK_ADD;
   7720 L_47062833:
   7721     eax = esi; /* 0x47062833: mov eax, esi */
   7722     esi = POP32_VAL(esp); /* 0x47062835: pop esi */
   7723     ebx = POP32_VAL(esp); /* 0x47062836: pop ebx */
   7724     RECOMP_FLAGS_OUT(); esp += 8; { RECOMP_REGS_OUT(); return; } /* 0x47062837: ret 4 */
   7725 L_47067300:
   7726     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   7727     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7728     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067300: sub ecx, dword ptr [ecx - 4] */
   7729     _flag_k = FK_CMP;
   7730     RECOMP_BACKEDGE();
   7731     goto L_470627D0; /* 0x47067303: jmp 0x470627d0 */
   7732     { RECOMP_REGS_OUT(); return; } /* end of function */
   7733     RECOMP_REGS_OUT();
   7734 }
   7735 
   7736 void sub_47067310(void) {
   7737     int _fpu_cmp = 0;
   7738     uint32_t _cf = 0;
   7739     int _df = 1;
   7740     uint32_t _flag_k = FK_NONE;
   7741     uint32_t _flag_a = 0, _flag_b = 0;
   7742     uint32_t _itail_tgt = 0;
   7743     RECOMP_REGS_LOCALS
   7744     RECOMP_ENTER(0x47067310u);
   7745 
   7746 L_47067310:
   7747     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   7748     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7749     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067310: sub ecx, dword ptr [ecx - 4] */
   7750     _flag_k = FK_CMP;
   7751     goto L_470A0E90; /* 0x47067313: jmp 0x470a0e90 */
   7752 L_470A0E90:
   7753     eax = MEM32(ecx + (-0x20)); /* 0x470A0E90: mov eax, dword ptr [ecx - 0x20] */
   7754     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A0E93: ret  */
   7755     RECOMP_REGS_OUT();
   7756 }
   7757 
   7758 void sub_47067320(void) {
   7759     int _fpu_cmp = 0;
   7760     uint32_t _cf = 0;
   7761     int _df = 1;
   7762     uint32_t _flag_k = FK_NONE;
   7763     uint32_t _flag_a = 0, _flag_b = 0;
   7764     uint32_t _itail_tgt = 0;
   7765     RECOMP_REGS_LOCALS
   7766     RECOMP_ENTER(0x47067320u);
   7767 
   7768 L_47067320:
   7769     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   7770     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7771     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067320: sub ecx, dword ptr [ecx - 4] */
   7772     _flag_k = FK_CMP;
   7773     goto L_470A0EA0; /* 0x47067323: jmp 0x470a0ea0 */
   7774 L_470A0EA0:
   7775     eax = MEM32(ecx + (-0x24)); /* 0x470A0EA0: mov eax, dword ptr [ecx - 0x24] */
   7776     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A0EA3: ret  */
   7777     RECOMP_REGS_OUT();
   7778 }
   7779 
   7780 void sub_47067330(void) {
   7781     int _fpu_cmp = 0;
   7782     uint32_t _cf = 0;
   7783     int _df = 1;
   7784     uint32_t _flag_k = FK_NONE;
   7785     uint32_t _flag_a = 0, _flag_b = 0;
   7786     uint32_t _itail_tgt = 0;
   7787     RECOMP_REGS_LOCALS
   7788     RECOMP_ENTER(0x47067330u);
   7789 
   7790 L_47067330:
   7791     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   7792     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7793     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067330: sub ecx, dword ptr [ecx - 4] */
   7794     _flag_k = FK_CMP;
   7795     goto L_470A0EB0; /* 0x47067333: jmp 0x470a0eb0 */
   7796 L_470A0EB0:
   7797     eax = MEM32(ecx + (-0x1C)); /* 0x470A0EB0: mov eax, dword ptr [ecx - 0x1c] */
   7798     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A0EB3: ret  */
   7799     RECOMP_REGS_OUT();
   7800 }
   7801 
   7802 void sub_47067340(void) {
   7803     int _fpu_cmp = 0;
   7804     uint32_t _cf = 0;
   7805     int _df = 1;
   7806     uint32_t _flag_k = FK_NONE;
   7807     uint32_t _flag_a = 0, _flag_b = 0;
   7808     uint32_t _itail_tgt = 0;
   7809     RECOMP_REGS_LOCALS
   7810     RECOMP_ENTER(0x47067340u);
   7811 
   7812 L_47067340:
   7813     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   7814     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7815     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067340: sub ecx, dword ptr [ecx - 4] */
   7816     _flag_k = FK_CMP;
   7817     goto L_4709FD10; /* 0x47067343: jmp 0x4709fd10 */
   7818 L_4709FD10:
   7819     eax = MEM32(ecx + (-0x18)); /* 0x4709FD10: mov eax, dword ptr [ecx - 0x18] */
   7820     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FD13: ret  */
   7821     RECOMP_REGS_OUT();
   7822 }
   7823 
   7824 void sub_47067350(void) {
   7825     int _fpu_cmp = 0;
   7826     uint32_t _cf = 0;
   7827     int _df = 1;
   7828     uint32_t _flag_k = FK_NONE;
   7829     uint32_t _flag_a = 0, _flag_b = 0;
   7830     uint32_t _itail_tgt = 0;
   7831     RECOMP_REGS_LOCALS
   7832     RECOMP_ENTER(0x47067350u);
   7833 
   7834 L_47067350:
   7835     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   7836     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7837     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067350: sub ecx, dword ptr [ecx - 4] */
   7838     _flag_k = FK_CMP;
   7839     goto L_4709FD20; /* 0x47067353: jmp 0x4709fd20 */
   7840 L_4709FD20:
   7841     eax = MEM32(ecx + (-0x14)); /* 0x4709FD20: mov eax, dword ptr [ecx - 0x14] */
   7842     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4709FD23: ret  */
   7843     RECOMP_REGS_OUT();
   7844 }
   7845 
   7846 void sub_47067360(void) {
   7847     int _fpu_cmp = 0;
   7848     uint32_t _cf = 0;
   7849     int _df = 1;
   7850     uint32_t _flag_k = FK_NONE;
   7851     uint32_t _flag_a = 0, _flag_b = 0;
   7852     uint32_t _itail_tgt = 0;
   7853     RECOMP_REGS_LOCALS
   7854     RECOMP_ENTER(0x47067360u);
   7855 
   7856 L_47067360:
   7857     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   7858     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7859     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067360: sub ecx, dword ptr [ecx - 4] */
   7860     _flag_k = FK_CMP;
   7861     goto L_470A0490; /* 0x47067363: jmp 0x470a0490 */
   7862 L_470A0490:
   7863     eax = MEM32(ecx + (-0x30)); /* 0x470A0490: mov eax, dword ptr [ecx - 0x30] */
   7864     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A0493: ret  */
   7865     RECOMP_REGS_OUT();
   7866 }
   7867 
   7868 void sub_47067370(void) {
   7869     int _fpu_cmp = 0;
   7870     uint32_t _cf = 0;
   7871     int _df = 1;
   7872     uint32_t _flag_k = FK_NONE;
   7873     uint32_t _flag_a = 0, _flag_b = 0;
   7874     uint32_t _itail_tgt = 0;
   7875     RECOMP_REGS_LOCALS
   7876     RECOMP_ENTER(0x47067370u);
   7877 
   7878 L_47067370:
   7879     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(MEM32(ecx + (-0x4)));
   7880     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   7881     ecx = ecx - MEM32(ecx + (-0x4)); /* 0x47067370: sub ecx, dword ptr [ecx - 4] */
   7882     _flag_k = FK_CMP;
   7883     goto L_470A04A0; /* 0x47067373: jmp 0x470a04a0 */
   7884 L_470A04A0:
   7885     eax = MEM32(ecx + (-0x38)); /* 0x470A04A0: mov eax, dword ptr [ecx - 0x38] */
   7886     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x470A04A3: ret  */
   7887     RECOMP_REGS_OUT();
   7888 }