aorecomp

Anarchy Online classic in the browser

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


client/vendor/msvcp60/source/lifted-0037.c (156520B)


      1 #define RECOMP_GENERATED_CODE
      2 #include "recomp_types.h"
      3 
      4 void sub_460294D1(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(0x460294D1u);
     13 
     14     goto L_460294D1;
     15 L_46001C9F:
     16     edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */
     17     PUSH32(esp, 1); /* 0x46001CA1: push 1 */
     18     ecx = eax; /* 0x46001CA3: mov ecx, eax */
     19     RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */
     20     RECOMP_FLAGS_IN();
     21     goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */
     22 L_46001CAE:
     23     ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */
     24     /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */
     25     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
     26     _cf = 0;
     27     _flag_k = FK_TEST;
     28     if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */
     29 L_46001CB4:
     30     RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */
     31     RECOMP_FLAGS_IN();
     32     /* test eax, eax */ /* 0x46001CB9: test eax, eax */
     33     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
     34     _cf = 0;
     35     _flag_k = FK_TEST;
     36     RECOMP_BACKEDGE();
     37     if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */
     38 L_46001CBD:
     39     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret  */
     40 L_460294D1:
     41     ecx = MEM32(ebp + (-0x10)); /* 0x460294D1: mov ecx, dword ptr [ebp - 0x10] */
     42     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x4Cu);
     43     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
     44     ecx = ecx + 0x4Cu; /* 0x460294D4: add ecx, 0x4c */
     45     _flag_k = FK_ADD;
     46     RECOMP_BACKEDGE();
     47     goto L_46001CAE; /* 0x460294D7: jmp 0x46001cae */
     48     { RECOMP_REGS_OUT(); return; } /* end of function */
     49     RECOMP_REGS_OUT();
     50 }
     51 
     52 void sub_460294DC(void) {
     53     int _fpu_cmp = 0;
     54     uint32_t _cf = 0;
     55     int _df = 1;
     56     uint32_t _flag_k = FK_NONE;
     57     uint32_t _flag_a = 0, _flag_b = 0;
     58     uint32_t _itail_tgt = 0;
     59     RECOMP_REGS_LOCALS
     60     RECOMP_ENTER(0x460294DCu);
     61 
     62     goto L_460294DC;
     63 L_46028258:
     64     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
     65 L_460294DC:
     66     eax = 0x46030FB0u; /* 0x460294DC: mov eax, 0x46030fb0 */
     67 L_460294E1:
     68     RECOMP_BACKEDGE();
     69     goto L_46028258; /* 0x460294E1: jmp 0x46028258 */
     70     { RECOMP_REGS_OUT(); return; } /* end of function */
     71   _ljump:
     72     switch (_itail_tgt) {
     73       case 0x46028258u: goto L_46028258;
     74       case 0x460294DCu: goto L_460294DC;
     75       case 0x460294E1u: goto L_460294E1;
     76       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
     77     }
     78     RECOMP_REGS_OUT();
     79 }
     80 
     81 void sub_460294E6(void) {
     82     int _fpu_cmp = 0;
     83     uint32_t _cf = 0;
     84     int _df = 1;
     85     uint32_t _flag_k = FK_NONE;
     86     uint32_t _flag_a = 0, _flag_b = 0;
     87     uint32_t _itail_tgt = 0;
     88     RECOMP_REGS_LOCALS
     89     RECOMP_ENTER(0x460294E6u);
     90 
     91     goto L_460294E6;
     92 L_46001C9F:
     93     edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */
     94     PUSH32(esp, 1); /* 0x46001CA1: push 1 */
     95     ecx = eax; /* 0x46001CA3: mov ecx, eax */
     96     RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */
     97     RECOMP_FLAGS_IN();
     98     goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */
     99 L_46001CAE:
    100     ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */
    101     /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */
    102     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    103     _cf = 0;
    104     _flag_k = FK_TEST;
    105     if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */
    106 L_46001CB4:
    107     RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */
    108     RECOMP_FLAGS_IN();
    109     /* test eax, eax */ /* 0x46001CB9: test eax, eax */
    110     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    111     _cf = 0;
    112     _flag_k = FK_TEST;
    113     RECOMP_BACKEDGE();
    114     if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */
    115 L_46001CBD:
    116     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret  */
    117 L_46028629:
    118     MEM32(ecx) = 0x4602B4D0u; /* 0x46028629: mov dword ptr [ecx], 0x4602b4d0 */
    119     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x34u);
    120     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    121     ecx = ecx + 0x34u; /* 0x4602862F: add ecx, 0x34 */
    122     _flag_k = FK_ADD;
    123     RECOMP_BACKEDGE();
    124     goto L_46001CAE; /* 0x46028632: jmp 0x46001cae */
    125 L_460294E6:
    126     ecx = MEM32(ebp + (-0x10)); /* 0x460294E6: mov ecx, dword ptr [ebp - 0x10] */
    127     RECOMP_BACKEDGE();
    128     goto L_46028629; /* 0x460294E9: jmp 0x46028629 */
    129     { RECOMP_REGS_OUT(); return; } /* end of function */
    130     RECOMP_REGS_OUT();
    131 }
    132 
    133 void sub_460294EE(void) {
    134     int _fpu_cmp = 0;
    135     uint32_t _cf = 0;
    136     int _df = 1;
    137     uint32_t _flag_k = FK_NONE;
    138     uint32_t _flag_a = 0, _flag_b = 0;
    139     uint32_t _itail_tgt = 0;
    140     RECOMP_REGS_LOCALS
    141     RECOMP_ENTER(0x460294EEu);
    142 
    143     goto L_460294EE;
    144 L_46001C9F:
    145     edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */
    146     PUSH32(esp, 1); /* 0x46001CA1: push 1 */
    147     ecx = eax; /* 0x46001CA3: mov ecx, eax */
    148     RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */
    149     RECOMP_FLAGS_IN();
    150     goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */
    151 L_46001CAE:
    152     ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */
    153     /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */
    154     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    155     _cf = 0;
    156     _flag_k = FK_TEST;
    157     if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */
    158 L_46001CB4:
    159     RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */
    160     RECOMP_FLAGS_IN();
    161     /* test eax, eax */ /* 0x46001CB9: test eax, eax */
    162     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    163     _cf = 0;
    164     _flag_k = FK_TEST;
    165     RECOMP_BACKEDGE();
    166     if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */
    167 L_46001CBD:
    168     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret  */
    169 L_460294EE:
    170     ecx = MEM32(ebp + (-0x10)); /* 0x460294EE: mov ecx, dword ptr [ebp - 0x10] */
    171     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x4Cu);
    172     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    173     ecx = ecx + 0x4Cu; /* 0x460294F1: add ecx, 0x4c */
    174     _flag_k = FK_ADD;
    175     RECOMP_BACKEDGE();
    176     goto L_46001CAE; /* 0x460294F4: jmp 0x46001cae */
    177     { RECOMP_REGS_OUT(); return; } /* end of function */
    178     RECOMP_REGS_OUT();
    179 }
    180 
    181 void sub_460294F9(void) {
    182     int _fpu_cmp = 0;
    183     uint32_t _cf = 0;
    184     int _df = 1;
    185     uint32_t _flag_k = FK_NONE;
    186     uint32_t _flag_a = 0, _flag_b = 0;
    187     uint32_t _itail_tgt = 0;
    188     RECOMP_REGS_LOCALS
    189     RECOMP_ENTER(0x460294F9u);
    190 
    191     goto L_460294F9;
    192 L_46028258:
    193     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
    194 L_460294F9:
    195     eax = 0x46030FE0u; /* 0x460294F9: mov eax, 0x46030fe0 */
    196 L_460294FE:
    197     RECOMP_BACKEDGE();
    198     goto L_46028258; /* 0x460294FE: jmp 0x46028258 */
    199     { RECOMP_REGS_OUT(); return; } /* end of function */
    200   _ljump:
    201     switch (_itail_tgt) {
    202       case 0x46028258u: goto L_46028258;
    203       case 0x460294F9u: goto L_460294F9;
    204       case 0x460294FEu: goto L_460294FE;
    205       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    206     }
    207     RECOMP_REGS_OUT();
    208 }
    209 
    210 void sub_46029503(void) {
    211     int _fpu_cmp = 0;
    212     uint32_t _cf = 0;
    213     int _df = 1;
    214     uint32_t _flag_k = FK_NONE;
    215     uint32_t _flag_a = 0, _flag_b = 0;
    216     uint32_t _itail_tgt = 0;
    217     RECOMP_REGS_LOCALS
    218     RECOMP_ENTER(0x46029503u);
    219 
    220     goto L_46029503;
    221 L_46001C9F:
    222     edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */
    223     PUSH32(esp, 1); /* 0x46001CA1: push 1 */
    224     ecx = eax; /* 0x46001CA3: mov ecx, eax */
    225     RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */
    226     RECOMP_FLAGS_IN();
    227     goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */
    228 L_46001CAE:
    229     ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */
    230     /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */
    231     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    232     _cf = 0;
    233     _flag_k = FK_TEST;
    234     if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */
    235 L_46001CB4:
    236     RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */
    237     RECOMP_FLAGS_IN();
    238     /* test eax, eax */ /* 0x46001CB9: test eax, eax */
    239     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    240     _cf = 0;
    241     _flag_k = FK_TEST;
    242     RECOMP_BACKEDGE();
    243     if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */
    244 L_46001CBD:
    245     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret  */
    246 L_46029503:
    247     ecx = ebp + (-0x14); /* 0x46029503: lea ecx, [ebp - 0x14] */
    248     RECOMP_BACKEDGE();
    249     goto L_46001CAE; /* 0x46029506: jmp 0x46001cae */
    250     { RECOMP_REGS_OUT(); return; } /* end of function */
    251     RECOMP_REGS_OUT();
    252 }
    253 
    254 void sub_4602950B(void) {
    255     int _fpu_cmp = 0;
    256     uint32_t _cf = 0;
    257     int _df = 1;
    258     uint32_t _flag_k = FK_NONE;
    259     uint32_t _flag_a = 0, _flag_b = 0;
    260     uint32_t _itail_tgt = 0;
    261     RECOMP_REGS_LOCALS
    262     RECOMP_ENTER(0x4602950Bu);
    263 
    264     goto L_4602950B;
    265 L_46028258:
    266     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
    267 L_4602950B:
    268     eax = 0x46031010u; /* 0x4602950B: mov eax, 0x46031010 */
    269 L_46029510:
    270     RECOMP_BACKEDGE();
    271     goto L_46028258; /* 0x46029510: jmp 0x46028258 */
    272     { RECOMP_REGS_OUT(); return; } /* end of function */
    273   _ljump:
    274     switch (_itail_tgt) {
    275       case 0x46028258u: goto L_46028258;
    276       case 0x4602950Bu: goto L_4602950B;
    277       case 0x46029510u: goto L_46029510;
    278       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    279     }
    280     RECOMP_REGS_OUT();
    281 }
    282 
    283 void sub_46029515(void) {
    284     int _fpu_cmp = 0;
    285     uint32_t _cf = 0;
    286     int _df = 1;
    287     uint32_t _flag_k = FK_NONE;
    288     uint32_t _flag_a = 0, _flag_b = 0;
    289     uint32_t _itail_tgt = 0;
    290     RECOMP_REGS_LOCALS
    291     RECOMP_ENTER(0x46029515u);
    292 
    293     goto L_46029515;
    294 L_46002DC1:
    295     MEM32(ecx) = 0x4602B268u; /* 0x46002DC1: mov dword ptr [ecx], 0x4602b268 */
    296     eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */
    297     RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */
    298     RECOMP_FLAGS_IN();
    299     PUSH32(esp, ecx); /* 0x46002DD1: push ecx */
    300     PUSH32(esp, esi); /* 0x46002DD2: push esi */
    301     esi = ecx; /* 0x46002DD3: mov esi, ecx */
    302     MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */
    303     MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */
    304     eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */
    305     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0);
    306     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */
    307     _cf = 0;
    308     _flag_k = FK_TEST;
    309     /* test eax, eax */ /* 0x46002DE5: test eax, eax */
    310     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    311     _cf = 0;
    312     _flag_k = FK_TEST;
    313     if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */
    314 L_46002DE9:
    315     _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24;
    316     MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */
    317     _flag_k = FK_NARROW(FK_DEC, 24);
    318     eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */
    319     /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */
    320     _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24;
    321     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    322     _flag_k = FK_NARROW(FK_CMP, 24);
    323     if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */
    324 L_46002DFB:
    325     ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */
    326     RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */
    327     RECOMP_FLAGS_IN();
    328     ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */
    329     esi = POP32_VAL(esp); /* 0x46002E06: pop esi */
    330     MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */
    331     esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave  */
    332     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret  */
    333 L_46002E10:
    334     ecx = esi; /* 0x46002E10: mov ecx, esi */
    335     RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */
    336     RECOMP_FLAGS_IN();
    337     RECOMP_BACKEDGE();
    338     goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */
    339 L_46029515:
    340     eax = MEM32(ebp + (-0x10)); /* 0x46029515: mov eax, dword ptr [ebp - 0x10] */
    341     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    342     eax = eax & 1; /* 0x46029518: and eax, 1 */
    343     _cf = 0;
    344     _flag_k = FK_TEST;
    345     /* test eax, eax */ /* 0x4602951B: test eax, eax */
    346     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    347     _cf = 0;
    348     _flag_k = FK_TEST;
    349     if (TEST_Z(_flag_a, _flag_b)) goto L_4602952A; /* 0x4602951D: je 0x4602952a */
    350 L_4602951F:
    351     ecx = MEM32(ebp + (-0x14)); /* 0x4602951F: mov ecx, dword ptr [ebp - 0x14] */
    352     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x5Cu);
    353     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    354     ecx = ecx + 0x5Cu; /* 0x46029522: add ecx, 0x5c */
    355     _flag_k = FK_ADD;
    356     RECOMP_BACKEDGE();
    357     goto L_46002DC1; /* 0x46029525: jmp 0x46002dc1 */
    358 L_4602952A:
    359     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4602952A: ret  */
    360     RECOMP_REGS_OUT();
    361 }
    362 
    363 void sub_4602952B(void) {
    364     int _fpu_cmp = 0;
    365     uint32_t _cf = 0;
    366     int _df = 1;
    367     uint32_t _flag_k = FK_NONE;
    368     uint32_t _flag_a = 0, _flag_b = 0;
    369     uint32_t _itail_tgt = 0;
    370     RECOMP_REGS_LOCALS
    371     RECOMP_ENTER(0x4602952Bu);
    372 
    373     goto L_4602952B;
    374 L_46028419:
    375     eax = MEM32(ecx + (-0x8)); /* 0x46028419: mov eax, dword ptr [ecx - 8] */
    376     eax = MEM32(eax + 0x4); /* 0x4602841C: mov eax, dword ptr [eax + 4] */
    377     MEM32(eax + ecx + (-0x8)) = 0x4602B258u; /* 0x4602841F: mov dword ptr [eax + ecx - 8], 0x4602b258 */
    378     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46028427: ret  */
    379 L_4602952B:
    380     ecx = MEM32(ebp + (-0x14)); /* 0x4602952B: mov ecx, dword ptr [ebp - 0x14] */
    381     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
    382     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    383     ecx = ecx + 8; /* 0x4602952E: add ecx, 8 */
    384     _flag_k = FK_ADD;
    385     RECOMP_BACKEDGE();
    386     goto L_46028419; /* 0x46029531: jmp 0x46028419 */
    387     { RECOMP_REGS_OUT(); return; } /* end of function */
    388     RECOMP_REGS_OUT();
    389 }
    390 
    391 void sub_46029536(void) {
    392     int _fpu_cmp = 0;
    393     uint32_t _cf = 0;
    394     int _df = 1;
    395     uint32_t _flag_k = FK_NONE;
    396     uint32_t _flag_a = 0, _flag_b = 0;
    397     uint32_t _itail_tgt = 0;
    398     RECOMP_REGS_LOCALS
    399     RECOMP_ENTER(0x46029536u);
    400 
    401     goto L_46029536;
    402 L_46028258:
    403     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
    404 L_46029536:
    405     eax = 0x46031038u; /* 0x46029536: mov eax, 0x46031038 */
    406 L_4602953B:
    407     RECOMP_BACKEDGE();
    408     goto L_46028258; /* 0x4602953B: jmp 0x46028258 */
    409     { RECOMP_REGS_OUT(); return; } /* end of function */
    410   _ljump:
    411     switch (_itail_tgt) {
    412       case 0x46028258u: goto L_46028258;
    413       case 0x46029536u: goto L_46029536;
    414       case 0x4602953Bu: goto L_4602953B;
    415       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    416     }
    417     RECOMP_REGS_OUT();
    418 }
    419 
    420 void sub_46029540(void) {
    421     int _fpu_cmp = 0;
    422     uint32_t _cf = 0;
    423     int _df = 1;
    424     uint32_t _flag_k = FK_NONE;
    425     uint32_t _flag_a = 0, _flag_b = 0;
    426     uint32_t _itail_tgt = 0;
    427     RECOMP_REGS_LOCALS
    428     RECOMP_ENTER(0x46029540u);
    429 
    430     goto L_46029540;
    431 L_46002DC1:
    432     MEM32(ecx) = 0x4602B268u; /* 0x46002DC1: mov dword ptr [ecx], 0x4602b268 */
    433     eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */
    434     RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */
    435     RECOMP_FLAGS_IN();
    436     PUSH32(esp, ecx); /* 0x46002DD1: push ecx */
    437     PUSH32(esp, esi); /* 0x46002DD2: push esi */
    438     esi = ecx; /* 0x46002DD3: mov esi, ecx */
    439     MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */
    440     MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */
    441     eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */
    442     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0);
    443     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */
    444     _cf = 0;
    445     _flag_k = FK_TEST;
    446     /* test eax, eax */ /* 0x46002DE5: test eax, eax */
    447     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    448     _cf = 0;
    449     _flag_k = FK_TEST;
    450     if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */
    451 L_46002DE9:
    452     _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24;
    453     MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */
    454     _flag_k = FK_NARROW(FK_DEC, 24);
    455     eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */
    456     /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */
    457     _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24;
    458     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    459     _flag_k = FK_NARROW(FK_CMP, 24);
    460     if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */
    461 L_46002DFB:
    462     ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */
    463     RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */
    464     RECOMP_FLAGS_IN();
    465     ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */
    466     esi = POP32_VAL(esp); /* 0x46002E06: pop esi */
    467     MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */
    468     esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave  */
    469     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret  */
    470 L_46002E10:
    471     ecx = esi; /* 0x46002E10: mov ecx, esi */
    472     RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */
    473     RECOMP_FLAGS_IN();
    474     RECOMP_BACKEDGE();
    475     goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */
    476 L_46029540:
    477     eax = MEM32(ebp + (-0x10)); /* 0x46029540: mov eax, dword ptr [ebp - 0x10] */
    478     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    479     eax = eax & 1; /* 0x46029543: and eax, 1 */
    480     _cf = 0;
    481     _flag_k = FK_TEST;
    482     /* test eax, eax */ /* 0x46029546: test eax, eax */
    483     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    484     _cf = 0;
    485     _flag_k = FK_TEST;
    486     if (TEST_Z(_flag_a, _flag_b)) goto L_46029555; /* 0x46029548: je 0x46029555 */
    487 L_4602954A:
    488     ecx = MEM32(ebp + (-0x14)); /* 0x4602954A: mov ecx, dword ptr [ebp - 0x14] */
    489     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x5Cu);
    490     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    491     ecx = ecx + 0x5Cu; /* 0x4602954D: add ecx, 0x5c */
    492     _flag_k = FK_ADD;
    493     RECOMP_BACKEDGE();
    494     goto L_46002DC1; /* 0x46029550: jmp 0x46002dc1 */
    495 L_46029555:
    496     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46029555: ret  */
    497     RECOMP_REGS_OUT();
    498 }
    499 
    500 void sub_46029556(void) {
    501     int _fpu_cmp = 0;
    502     uint32_t _cf = 0;
    503     int _df = 1;
    504     uint32_t _flag_k = FK_NONE;
    505     uint32_t _flag_a = 0, _flag_b = 0;
    506     uint32_t _itail_tgt = 0;
    507     RECOMP_REGS_LOCALS
    508     RECOMP_ENTER(0x46029556u);
    509 
    510     goto L_46029556;
    511 L_46028419:
    512     eax = MEM32(ecx + (-0x8)); /* 0x46028419: mov eax, dword ptr [ecx - 8] */
    513     eax = MEM32(eax + 0x4); /* 0x4602841C: mov eax, dword ptr [eax + 4] */
    514     MEM32(eax + ecx + (-0x8)) = 0x4602B258u; /* 0x4602841F: mov dword ptr [eax + ecx - 8], 0x4602b258 */
    515     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46028427: ret  */
    516 L_46029556:
    517     ecx = MEM32(ebp + (-0x14)); /* 0x46029556: mov ecx, dword ptr [ebp - 0x14] */
    518     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
    519     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    520     ecx = ecx + 8; /* 0x46029559: add ecx, 8 */
    521     _flag_k = FK_ADD;
    522     RECOMP_BACKEDGE();
    523     goto L_46028419; /* 0x4602955C: jmp 0x46028419 */
    524     { RECOMP_REGS_OUT(); return; } /* end of function */
    525     RECOMP_REGS_OUT();
    526 }
    527 
    528 void sub_46029561(void) {
    529     int _fpu_cmp = 0;
    530     uint32_t _cf = 0;
    531     int _df = 1;
    532     uint32_t _flag_k = FK_NONE;
    533     uint32_t _flag_a = 0, _flag_b = 0;
    534     uint32_t _itail_tgt = 0;
    535     RECOMP_REGS_LOCALS
    536     RECOMP_ENTER(0x46029561u);
    537 
    538     goto L_46029561;
    539 L_46002F11:
    540     eax = 0x460294ADu; /* 0x46002F11: mov eax, 0x460294ad */
    541     RECOMP_ICALL(0x46001535u); /* 0x46002F16: call 0x46001535 */ /* not lifted */
    542     RECOMP_FLAGS_IN();
    543     PUSH32(esp, ecx); /* 0x46002F1B: push ecx */
    544     PUSH32(esp, esi); /* 0x46002F1C: push esi */
    545     esi = ecx; /* 0x46002F1D: mov esi, ecx */
    546     PUSH32(esp, edi); /* 0x46002F1F: push edi */
    547     MEM32(ebp + (-0x10)) = esi; /* 0x46002F20: mov dword ptr [ebp - 0x10], esi */
    548     MEM32(esi) = 0x4602B16Cu; /* 0x46002F23: mov dword ptr [esi], 0x4602b16c */
    549     /* cmp MEM8(esi + 0x48), 0 */ /* 0x46002F29: cmp byte ptr [esi + 0x48], 0 */
    550     _flag_a = (uint32_t)(MEM8(esi + 0x48)) << 24; _flag_b = (uint32_t)(0) << 24;
    551     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    552     _flag_k = FK_NARROW(FK_CMP, 24);
    553     MEM32(ebp + (-0x4)) = 1; /* 0x46002F2D: mov dword ptr [ebp - 4], 1 */
    554     if (CMP_NE(_flag_a, _flag_b)) goto L_4601579B; /* 0x46002F34: jne 0x4601579b */
    555 L_46002F3A:
    556     edi = MEM32(esi + 0x44); /* 0x46002F3A: mov edi, dword ptr [esi + 0x44] */
    557     /* test edi, edi */ /* 0x46002F3D: test edi, edi */
    558     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    559     _cf = 0;
    560     _flag_k = FK_TEST;
    561     if (TEST_NZ(_flag_a, _flag_b)) goto L_460157A5; /* 0x46002F3F: jne 0x460157a5 */
    562 L_46002F45:
    563     ecx = esi + 0x4C; /* 0x46002F45: lea ecx, [esi + 0x4c] */
    564     RECOMP_ICALL(0x46001CAEu); /* 0x46002F48: call 0x46001cae */ /* not lifted */
    565     RECOMP_FLAGS_IN();
    566     ecx = esi + 0x34; /* 0x46002F4D: lea ecx, [esi + 0x34] */
    567     MEM32(esi) = 0x4602B3B8u; /* 0x46002F50: mov dword ptr [esi], 0x4602b3b8 */
    568     RECOMP_ICALL(0x46001CAEu); /* 0x46002F56: call 0x46001cae */ /* not lifted */
    569     RECOMP_FLAGS_IN();
    570     ecx = MEM32(ebp + (-0xC)); /* 0x46002F5B: mov ecx, dword ptr [ebp - 0xc] */
    571     edi = POP32_VAL(esp); /* 0x46002F5E: pop edi */
    572     esi = POP32_VAL(esp); /* 0x46002F5F: pop esi */
    573     MEM32(FS_BASE + (0)) = ecx; /* 0x46002F60: mov dword ptr fs:[0], ecx */
    574     esp = ebp; ebp = POP32_VAL(esp); /* 0x46002F67: leave  */
    575     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002F68: ret  */
    576 L_4601579B:
    577     RECOMP_ICALL(0x4601580Cu); /* 0x4601579B: call 0x4601580c */ /* not lifted */
    578     RECOMP_FLAGS_IN();
    579     RECOMP_BACKEDGE();
    580     goto L_46002F3A; /* 0x460157A0: jmp 0x46002f3a */
    581 L_460157A5:
    582     PUSH32(esp, 1); /* 0x460157A5: push 1 */
    583     ecx = edi; /* 0x460157A7: mov ecx, edi */
    584     RECOMP_ICALL(0x46001A60u); /* 0x460157A9: call 0x46001a60 */ /* not lifted */
    585     RECOMP_FLAGS_IN();
    586     PUSH32(esp, edi); /* 0x460157AE: push edi */
    587     RECOMP_ICALL(0x46002CE4u); /* 0x460157AF: call 0x46002ce4 */ /* not lifted */
    588     RECOMP_FLAGS_IN();
    589     ecx = POP32_VAL(esp); /* 0x460157B4: pop ecx */
    590     RECOMP_BACKEDGE();
    591     goto L_46002F45; /* 0x460157B5: jmp 0x46002f45 */
    592 L_46029561:
    593     ecx = MEM32(ebp + (-0x14)); /* 0x46029561: mov ecx, dword ptr [ebp - 0x14] */
    594     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
    595     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    596     ecx = ecx + 8; /* 0x46029564: add ecx, 8 */
    597     _flag_k = FK_ADD;
    598     RECOMP_BACKEDGE();
    599     goto L_46002F11; /* 0x46029567: jmp 0x46002f11 */
    600     { RECOMP_REGS_OUT(); return; } /* end of function */
    601     RECOMP_REGS_OUT();
    602 }
    603 
    604 void sub_4602956C(void) {
    605     int _fpu_cmp = 0;
    606     uint32_t _cf = 0;
    607     int _df = 1;
    608     uint32_t _flag_k = FK_NONE;
    609     uint32_t _flag_a = 0, _flag_b = 0;
    610     uint32_t _itail_tgt = 0;
    611     RECOMP_REGS_LOCALS
    612     RECOMP_ENTER(0x4602956Cu);
    613 
    614     goto L_4602956C;
    615 L_46028258:
    616     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
    617 L_4602956C:
    618     eax = 0x46031068u; /* 0x4602956C: mov eax, 0x46031068 */
    619 L_46029571:
    620     RECOMP_BACKEDGE();
    621     goto L_46028258; /* 0x46029571: jmp 0x46028258 */
    622     { RECOMP_REGS_OUT(); return; } /* end of function */
    623   _ljump:
    624     switch (_itail_tgt) {
    625       case 0x46028258u: goto L_46028258;
    626       case 0x4602956Cu: goto L_4602956C;
    627       case 0x46029571u: goto L_46029571;
    628       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    629     }
    630     RECOMP_REGS_OUT();
    631 }
    632 
    633 void sub_46029576(void) {
    634     int _fpu_cmp = 0;
    635     uint32_t _cf = 0;
    636     int _df = 1;
    637     uint32_t _flag_k = FK_NONE;
    638     uint32_t _flag_a = 0, _flag_b = 0;
    639     uint32_t _itail_tgt = 0;
    640     RECOMP_REGS_LOCALS
    641     RECOMP_ENTER(0x46029576u);
    642 
    643     goto L_46029576;
    644 L_46028419:
    645     eax = MEM32(ecx + (-0x8)); /* 0x46028419: mov eax, dword ptr [ecx - 8] */
    646     eax = MEM32(eax + 0x4); /* 0x4602841C: mov eax, dword ptr [eax + 4] */
    647     MEM32(eax + ecx + (-0x8)) = 0x4602B258u; /* 0x4602841F: mov dword ptr [eax + ecx - 8], 0x4602b258 */
    648     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46028427: ret  */
    649 L_46029576:
    650     ecx = MEM32(ebp + (-0x10)); /* 0x46029576: mov ecx, dword ptr [ebp - 0x10] */
    651     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x54u);
    652     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    653     ecx = ecx - 0x54u; /* 0x46029579: sub ecx, 0x54 */
    654     _flag_k = FK_CMP;
    655     RECOMP_BACKEDGE();
    656     goto L_46028419; /* 0x4602957C: jmp 0x46028419 */
    657     { RECOMP_REGS_OUT(); return; } /* end of function */
    658     RECOMP_REGS_OUT();
    659 }
    660 
    661 void sub_46029581(void) {
    662     int _fpu_cmp = 0;
    663     uint32_t _cf = 0;
    664     int _df = 1;
    665     uint32_t _flag_k = FK_NONE;
    666     uint32_t _flag_a = 0, _flag_b = 0;
    667     uint32_t _itail_tgt = 0;
    668     RECOMP_REGS_LOCALS
    669     RECOMP_ENTER(0x46029581u);
    670 
    671     goto L_46029581;
    672 L_46028258:
    673     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
    674 L_46029581:
    675     eax = 0x460310A0u; /* 0x46029581: mov eax, 0x460310a0 */
    676 L_46029586:
    677     RECOMP_BACKEDGE();
    678     goto L_46028258; /* 0x46029586: jmp 0x46028258 */
    679     { RECOMP_REGS_OUT(); return; } /* end of function */
    680   _ljump:
    681     switch (_itail_tgt) {
    682       case 0x46028258u: goto L_46028258;
    683       case 0x46029581u: goto L_46029581;
    684       case 0x46029586u: goto L_46029586;
    685       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    686     }
    687     RECOMP_REGS_OUT();
    688 }
    689 
    690 void sub_4602958B(void) {
    691     int _fpu_cmp = 0;
    692     uint32_t _cf = 0;
    693     int _df = 1;
    694     uint32_t _flag_k = FK_NONE;
    695     uint32_t _flag_a = 0, _flag_b = 0;
    696     uint32_t _itail_tgt = 0;
    697     RECOMP_REGS_LOCALS
    698     RECOMP_ENTER(0x4602958Bu);
    699 
    700     goto L_4602958B;
    701 L_46002DA4:
    702     MEM32(ecx) = 0x4602B5E8u; /* 0x46002DA4: mov dword ptr [ecx], 0x4602b5e8 */
    703     goto L_46002DC7; /* 0x46002DAA: jmp 0x46002dc7 */
    704 L_46002DC7:
    705     eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */
    706     RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */
    707     RECOMP_FLAGS_IN();
    708     PUSH32(esp, ecx); /* 0x46002DD1: push ecx */
    709     PUSH32(esp, esi); /* 0x46002DD2: push esi */
    710     esi = ecx; /* 0x46002DD3: mov esi, ecx */
    711     MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */
    712     MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */
    713     eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */
    714     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0);
    715     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */
    716     _cf = 0;
    717     _flag_k = FK_TEST;
    718     /* test eax, eax */ /* 0x46002DE5: test eax, eax */
    719     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    720     _cf = 0;
    721     _flag_k = FK_TEST;
    722     if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */
    723 L_46002DE9:
    724     _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24;
    725     MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */
    726     _flag_k = FK_NARROW(FK_DEC, 24);
    727     eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */
    728     /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */
    729     _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24;
    730     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    731     _flag_k = FK_NARROW(FK_CMP, 24);
    732     if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */
    733 L_46002DFB:
    734     ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */
    735     RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */
    736     RECOMP_FLAGS_IN();
    737     ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */
    738     esi = POP32_VAL(esp); /* 0x46002E06: pop esi */
    739     MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */
    740     esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave  */
    741     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret  */
    742 L_46002E10:
    743     ecx = esi; /* 0x46002E10: mov ecx, esi */
    744     RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */
    745     RECOMP_FLAGS_IN();
    746     RECOMP_BACKEDGE();
    747     goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */
    748 L_4602958B:
    749     eax = MEM32(ebp + (-0x10)); /* 0x4602958B: mov eax, dword ptr [ebp - 0x10] */
    750     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    751     eax = eax & 1; /* 0x4602958E: and eax, 1 */
    752     _cf = 0;
    753     _flag_k = FK_TEST;
    754     /* test eax, eax */ /* 0x46029591: test eax, eax */
    755     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    756     _cf = 0;
    757     _flag_k = FK_TEST;
    758     if (TEST_Z(_flag_a, _flag_b)) goto L_460295A0; /* 0x46029593: je 0x460295a0 */
    759 L_46029595:
    760     ecx = MEM32(ebp + (-0x14)); /* 0x46029595: mov ecx, dword ptr [ebp - 0x14] */
    761     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x5Cu);
    762     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    763     ecx = ecx + 0x5Cu; /* 0x46029598: add ecx, 0x5c */
    764     _flag_k = FK_ADD;
    765     RECOMP_BACKEDGE();
    766     goto L_46002DA4; /* 0x4602959B: jmp 0x46002da4 */
    767 L_460295A0:
    768     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460295A0: ret  */
    769     RECOMP_REGS_OUT();
    770 }
    771 
    772 void sub_460295A1(void) {
    773     int _fpu_cmp = 0;
    774     uint32_t _cf = 0;
    775     int _df = 1;
    776     uint32_t _flag_k = FK_NONE;
    777     uint32_t _flag_a = 0, _flag_b = 0;
    778     uint32_t _itail_tgt = 0;
    779     RECOMP_REGS_LOCALS
    780     RECOMP_ENTER(0x460295A1u);
    781 
    782     goto L_460295A1;
    783 L_4602844E:
    784     eax = MEM32(ecx + (-0x8)); /* 0x4602844E: mov eax, dword ptr [ecx - 8] */
    785     eax = MEM32(eax + 0x4); /* 0x46028451: mov eax, dword ptr [eax + 4] */
    786     MEM32(eax + ecx + (-0x8)) = 0x4602B5D8u; /* 0x46028454: mov dword ptr [eax + ecx - 8], 0x4602b5d8 */
    787     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4602845C: ret  */
    788 L_460295A1:
    789     ecx = MEM32(ebp + (-0x14)); /* 0x460295A1: mov ecx, dword ptr [ebp - 0x14] */
    790     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
    791     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    792     ecx = ecx + 8; /* 0x460295A4: add ecx, 8 */
    793     _flag_k = FK_ADD;
    794     RECOMP_BACKEDGE();
    795     goto L_4602844E; /* 0x460295A7: jmp 0x4602844e */
    796     { RECOMP_REGS_OUT(); return; } /* end of function */
    797     RECOMP_REGS_OUT();
    798 }
    799 
    800 void sub_460295AC(void) {
    801     int _fpu_cmp = 0;
    802     uint32_t _cf = 0;
    803     int _df = 1;
    804     uint32_t _flag_k = FK_NONE;
    805     uint32_t _flag_a = 0, _flag_b = 0;
    806     uint32_t _itail_tgt = 0;
    807     RECOMP_REGS_LOCALS
    808     RECOMP_ENTER(0x460295ACu);
    809 
    810     goto L_460295AC;
    811 L_46028258:
    812     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
    813 L_460295AC:
    814     eax = 0x460310C8u; /* 0x460295AC: mov eax, 0x460310c8 */
    815 L_460295B1:
    816     RECOMP_BACKEDGE();
    817     goto L_46028258; /* 0x460295B1: jmp 0x46028258 */
    818     { RECOMP_REGS_OUT(); return; } /* end of function */
    819   _ljump:
    820     switch (_itail_tgt) {
    821       case 0x46028258u: goto L_46028258;
    822       case 0x460295ACu: goto L_460295AC;
    823       case 0x460295B1u: goto L_460295B1;
    824       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    825     }
    826     RECOMP_REGS_OUT();
    827 }
    828 
    829 void sub_460295B6(void) {
    830     int _fpu_cmp = 0;
    831     uint32_t _cf = 0;
    832     int _df = 1;
    833     uint32_t _flag_k = FK_NONE;
    834     uint32_t _flag_a = 0, _flag_b = 0;
    835     uint32_t _itail_tgt = 0;
    836     RECOMP_REGS_LOCALS
    837     RECOMP_ENTER(0x460295B6u);
    838 
    839     goto L_460295B6;
    840 L_46002DA4:
    841     MEM32(ecx) = 0x4602B5E8u; /* 0x46002DA4: mov dword ptr [ecx], 0x4602b5e8 */
    842     goto L_46002DC7; /* 0x46002DAA: jmp 0x46002dc7 */
    843 L_46002DC7:
    844     eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */
    845     RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */
    846     RECOMP_FLAGS_IN();
    847     PUSH32(esp, ecx); /* 0x46002DD1: push ecx */
    848     PUSH32(esp, esi); /* 0x46002DD2: push esi */
    849     esi = ecx; /* 0x46002DD3: mov esi, ecx */
    850     MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */
    851     MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */
    852     eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */
    853     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0);
    854     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */
    855     _cf = 0;
    856     _flag_k = FK_TEST;
    857     /* test eax, eax */ /* 0x46002DE5: test eax, eax */
    858     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    859     _cf = 0;
    860     _flag_k = FK_TEST;
    861     if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */
    862 L_46002DE9:
    863     _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24;
    864     MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */
    865     _flag_k = FK_NARROW(FK_DEC, 24);
    866     eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */
    867     /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */
    868     _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24;
    869     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    870     _flag_k = FK_NARROW(FK_CMP, 24);
    871     if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */
    872 L_46002DFB:
    873     ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */
    874     RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */
    875     RECOMP_FLAGS_IN();
    876     ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */
    877     esi = POP32_VAL(esp); /* 0x46002E06: pop esi */
    878     MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */
    879     esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave  */
    880     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret  */
    881 L_46002E10:
    882     ecx = esi; /* 0x46002E10: mov ecx, esi */
    883     RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */
    884     RECOMP_FLAGS_IN();
    885     RECOMP_BACKEDGE();
    886     goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */
    887 L_460295B6:
    888     eax = MEM32(ebp + (-0x10)); /* 0x460295B6: mov eax, dword ptr [ebp - 0x10] */
    889     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    890     eax = eax & 1; /* 0x460295B9: and eax, 1 */
    891     _cf = 0;
    892     _flag_k = FK_TEST;
    893     /* test eax, eax */ /* 0x460295BC: test eax, eax */
    894     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    895     _cf = 0;
    896     _flag_k = FK_TEST;
    897     if (TEST_Z(_flag_a, _flag_b)) goto L_460295CB; /* 0x460295BE: je 0x460295cb */
    898 L_460295C0:
    899     ecx = MEM32(ebp + (-0x14)); /* 0x460295C0: mov ecx, dword ptr [ebp - 0x14] */
    900     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x5Cu);
    901     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    902     ecx = ecx + 0x5Cu; /* 0x460295C3: add ecx, 0x5c */
    903     _flag_k = FK_ADD;
    904     RECOMP_BACKEDGE();
    905     goto L_46002DA4; /* 0x460295C6: jmp 0x46002da4 */
    906 L_460295CB:
    907     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460295CB: ret  */
    908     RECOMP_REGS_OUT();
    909 }
    910 
    911 void sub_460295CC(void) {
    912     int _fpu_cmp = 0;
    913     uint32_t _cf = 0;
    914     int _df = 1;
    915     uint32_t _flag_k = FK_NONE;
    916     uint32_t _flag_a = 0, _flag_b = 0;
    917     uint32_t _itail_tgt = 0;
    918     RECOMP_REGS_LOCALS
    919     RECOMP_ENTER(0x460295CCu);
    920 
    921     goto L_460295CC;
    922 L_4602844E:
    923     eax = MEM32(ecx + (-0x8)); /* 0x4602844E: mov eax, dword ptr [ecx - 8] */
    924     eax = MEM32(eax + 0x4); /* 0x46028451: mov eax, dword ptr [eax + 4] */
    925     MEM32(eax + ecx + (-0x8)) = 0x4602B5D8u; /* 0x46028454: mov dword ptr [eax + ecx - 8], 0x4602b5d8 */
    926     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4602845C: ret  */
    927 L_460295CC:
    928     ecx = MEM32(ebp + (-0x14)); /* 0x460295CC: mov ecx, dword ptr [ebp - 0x14] */
    929     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
    930     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    931     ecx = ecx + 8; /* 0x460295CF: add ecx, 8 */
    932     _flag_k = FK_ADD;
    933     RECOMP_BACKEDGE();
    934     goto L_4602844E; /* 0x460295D2: jmp 0x4602844e */
    935     { RECOMP_REGS_OUT(); return; } /* end of function */
    936     RECOMP_REGS_OUT();
    937 }
    938 
    939 void sub_460295D7(void) {
    940     int _fpu_cmp = 0;
    941     uint32_t _cf = 0;
    942     int _df = 1;
    943     uint32_t _flag_k = FK_NONE;
    944     uint32_t _flag_a = 0, _flag_b = 0;
    945     uint32_t _itail_tgt = 0;
    946     RECOMP_REGS_LOCALS
    947     RECOMP_ENTER(0x460295D7u);
    948 
    949     goto L_460295D7;
    950 L_46002E49:
    951     eax = 0x460294F9u; /* 0x46002E49: mov eax, 0x460294f9 */
    952     RECOMP_ICALL(0x46001535u); /* 0x46002E4E: call 0x46001535 */ /* not lifted */
    953     RECOMP_FLAGS_IN();
    954     PUSH32(esp, ecx); /* 0x46002E53: push ecx */
    955     PUSH32(esp, esi); /* 0x46002E54: push esi */
    956     esi = ecx; /* 0x46002E55: mov esi, ecx */
    957     PUSH32(esp, edi); /* 0x46002E57: push edi */
    958     MEM32(ebp + (-0x10)) = esi; /* 0x46002E58: mov dword ptr [ebp - 0x10], esi */
    959     MEM32(esi) = 0x4602B508u; /* 0x46002E5B: mov dword ptr [esi], 0x4602b508 */
    960     /* cmp MEM8(esi + 0x48), 0 */ /* 0x46002E61: cmp byte ptr [esi + 0x48], 0 */
    961     _flag_a = (uint32_t)(MEM8(esi + 0x48)) << 24; _flag_b = (uint32_t)(0) << 24;
    962     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    963     _flag_k = FK_NARROW(FK_CMP, 24);
    964     MEM32(ebp + (-0x4)) = 1; /* 0x46002E65: mov dword ptr [ebp - 4], 1 */
    965     if (CMP_NE(_flag_a, _flag_b)) goto L_46015D05; /* 0x46002E6C: jne 0x46015d05 */
    966 L_46002E72:
    967     edi = MEM32(esi + 0x44); /* 0x46002E72: mov edi, dword ptr [esi + 0x44] */
    968     /* test edi, edi */ /* 0x46002E75: test edi, edi */
    969     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    970     _cf = 0;
    971     _flag_k = FK_TEST;
    972     if (TEST_NZ(_flag_a, _flag_b)) goto L_46015D0F; /* 0x46002E77: jne 0x46015d0f */
    973 L_46002E7D:
    974     ecx = esi + 0x4C; /* 0x46002E7D: lea ecx, [esi + 0x4c] */
    975     RECOMP_ICALL(0x46001CAEu); /* 0x46002E80: call 0x46001cae */ /* not lifted */
    976     RECOMP_FLAGS_IN();
    977     ecx = esi + 0x34; /* 0x46002E85: lea ecx, [esi + 0x34] */
    978     MEM32(esi) = 0x4602B4D0u; /* 0x46002E88: mov dword ptr [esi], 0x4602b4d0 */
    979     RECOMP_ICALL(0x46001CAEu); /* 0x46002E8E: call 0x46001cae */ /* not lifted */
    980     RECOMP_FLAGS_IN();
    981     ecx = MEM32(ebp + (-0xC)); /* 0x46002E93: mov ecx, dword ptr [ebp - 0xc] */
    982     edi = POP32_VAL(esp); /* 0x46002E96: pop edi */
    983     esi = POP32_VAL(esp); /* 0x46002E97: pop esi */
    984     MEM32(FS_BASE + (0)) = ecx; /* 0x46002E98: mov dword ptr fs:[0], ecx */
    985     esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E9F: leave  */
    986     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002EA0: ret  */
    987 L_46015D05:
    988     RECOMP_ICALL(0x46015D76u); /* 0x46015D05: call 0x46015d76 */ /* not lifted */
    989     RECOMP_FLAGS_IN();
    990     RECOMP_BACKEDGE();
    991     goto L_46002E72; /* 0x46015D0A: jmp 0x46002e72 */
    992 L_46015D0F:
    993     PUSH32(esp, 1); /* 0x46015D0F: push 1 */
    994     ecx = edi; /* 0x46015D11: mov ecx, edi */
    995     RECOMP_ICALL(0x46001A60u); /* 0x46015D13: call 0x46001a60 */ /* not lifted */
    996     RECOMP_FLAGS_IN();
    997     PUSH32(esp, edi); /* 0x46015D18: push edi */
    998     RECOMP_ICALL(0x46002CE4u); /* 0x46015D19: call 0x46002ce4 */ /* not lifted */
    999     RECOMP_FLAGS_IN();
   1000     ecx = POP32_VAL(esp); /* 0x46015D1E: pop ecx */
   1001     RECOMP_BACKEDGE();
   1002     goto L_46002E7D; /* 0x46015D1F: jmp 0x46002e7d */
   1003 L_460295D7:
   1004     ecx = MEM32(ebp + (-0x14)); /* 0x460295D7: mov ecx, dword ptr [ebp - 0x14] */
   1005     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(8);
   1006     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1007     ecx = ecx + 8; /* 0x460295DA: add ecx, 8 */
   1008     _flag_k = FK_ADD;
   1009     RECOMP_BACKEDGE();
   1010     goto L_46002E49; /* 0x460295DD: jmp 0x46002e49 */
   1011     { RECOMP_REGS_OUT(); return; } /* end of function */
   1012     RECOMP_REGS_OUT();
   1013 }
   1014 
   1015 void sub_460295E2(void) {
   1016     int _fpu_cmp = 0;
   1017     uint32_t _cf = 0;
   1018     int _df = 1;
   1019     uint32_t _flag_k = FK_NONE;
   1020     uint32_t _flag_a = 0, _flag_b = 0;
   1021     uint32_t _itail_tgt = 0;
   1022     RECOMP_REGS_LOCALS
   1023     RECOMP_ENTER(0x460295E2u);
   1024 
   1025     goto L_460295E2;
   1026 L_46028258:
   1027     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
   1028 L_460295E2:
   1029     eax = 0x460310F8u; /* 0x460295E2: mov eax, 0x460310f8 */
   1030 L_460295E7:
   1031     RECOMP_BACKEDGE();
   1032     goto L_46028258; /* 0x460295E7: jmp 0x46028258 */
   1033     { RECOMP_REGS_OUT(); return; } /* end of function */
   1034   _ljump:
   1035     switch (_itail_tgt) {
   1036       case 0x46028258u: goto L_46028258;
   1037       case 0x460295E2u: goto L_460295E2;
   1038       case 0x460295E7u: goto L_460295E7;
   1039       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1040     }
   1041     RECOMP_REGS_OUT();
   1042 }
   1043 
   1044 void sub_460295EC(void) {
   1045     int _fpu_cmp = 0;
   1046     uint32_t _cf = 0;
   1047     int _df = 1;
   1048     uint32_t _flag_k = FK_NONE;
   1049     uint32_t _flag_a = 0, _flag_b = 0;
   1050     uint32_t _itail_tgt = 0;
   1051     RECOMP_REGS_LOCALS
   1052     RECOMP_ENTER(0x460295ECu);
   1053 
   1054     goto L_460295EC;
   1055 L_4602844E:
   1056     eax = MEM32(ecx + (-0x8)); /* 0x4602844E: mov eax, dword ptr [ecx - 8] */
   1057     eax = MEM32(eax + 0x4); /* 0x46028451: mov eax, dword ptr [eax + 4] */
   1058     MEM32(eax + ecx + (-0x8)) = 0x4602B5D8u; /* 0x46028454: mov dword ptr [eax + ecx - 8], 0x4602b5d8 */
   1059     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4602845C: ret  */
   1060 L_460295EC:
   1061     ecx = MEM32(ebp + (-0x10)); /* 0x460295EC: mov ecx, dword ptr [ebp - 0x10] */
   1062     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x54u);
   1063     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1064     ecx = ecx - 0x54u; /* 0x460295EF: sub ecx, 0x54 */
   1065     _flag_k = FK_CMP;
   1066     RECOMP_BACKEDGE();
   1067     goto L_4602844E; /* 0x460295F2: jmp 0x4602844e */
   1068     { RECOMP_REGS_OUT(); return; } /* end of function */
   1069     RECOMP_REGS_OUT();
   1070 }
   1071 
   1072 void sub_460295F7(void) {
   1073     int _fpu_cmp = 0;
   1074     uint32_t _cf = 0;
   1075     int _df = 1;
   1076     uint32_t _flag_k = FK_NONE;
   1077     uint32_t _flag_a = 0, _flag_b = 0;
   1078     uint32_t _itail_tgt = 0;
   1079     RECOMP_REGS_LOCALS
   1080     RECOMP_ENTER(0x460295F7u);
   1081 
   1082     goto L_460295F7;
   1083 L_46028258:
   1084     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
   1085 L_460295F7:
   1086     eax = 0x46031130u; /* 0x460295F7: mov eax, 0x46031130 */
   1087 L_460295FC:
   1088     RECOMP_BACKEDGE();
   1089     goto L_46028258; /* 0x460295FC: jmp 0x46028258 */
   1090     { RECOMP_REGS_OUT(); return; } /* end of function */
   1091   _ljump:
   1092     switch (_itail_tgt) {
   1093       case 0x46028258u: goto L_46028258;
   1094       case 0x460295F7u: goto L_460295F7;
   1095       case 0x460295FCu: goto L_460295FC;
   1096       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1097     }
   1098     RECOMP_REGS_OUT();
   1099 }
   1100 
   1101 void sub_46029601(void) {
   1102     int _fpu_cmp = 0;
   1103     uint32_t _cf = 0;
   1104     int _df = 1;
   1105     uint32_t _flag_k = FK_NONE;
   1106     uint32_t _flag_a = 0, _flag_b = 0;
   1107     uint32_t _itail_tgt = 0;
   1108     RECOMP_REGS_LOCALS
   1109     RECOMP_ENTER(0x46029601u);
   1110 
   1111     goto L_46029601;
   1112 L_46002DC1:
   1113     MEM32(ecx) = 0x4602B268u; /* 0x46002DC1: mov dword ptr [ecx], 0x4602b268 */
   1114     eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */
   1115     RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */
   1116     RECOMP_FLAGS_IN();
   1117     PUSH32(esp, ecx); /* 0x46002DD1: push ecx */
   1118     PUSH32(esp, esi); /* 0x46002DD2: push esi */
   1119     esi = ecx; /* 0x46002DD3: mov esi, ecx */
   1120     MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */
   1121     MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */
   1122     eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */
   1123     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0);
   1124     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */
   1125     _cf = 0;
   1126     _flag_k = FK_TEST;
   1127     /* test eax, eax */ /* 0x46002DE5: test eax, eax */
   1128     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1129     _cf = 0;
   1130     _flag_k = FK_TEST;
   1131     if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */
   1132 L_46002DE9:
   1133     _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24;
   1134     MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */
   1135     _flag_k = FK_NARROW(FK_DEC, 24);
   1136     eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */
   1137     /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */
   1138     _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24;
   1139     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1140     _flag_k = FK_NARROW(FK_CMP, 24);
   1141     if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */
   1142 L_46002DFB:
   1143     ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */
   1144     RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */
   1145     RECOMP_FLAGS_IN();
   1146     ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */
   1147     esi = POP32_VAL(esp); /* 0x46002E06: pop esi */
   1148     MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */
   1149     esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave  */
   1150     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret  */
   1151 L_46002E10:
   1152     ecx = esi; /* 0x46002E10: mov ecx, esi */
   1153     RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */
   1154     RECOMP_FLAGS_IN();
   1155     RECOMP_BACKEDGE();
   1156     goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */
   1157 L_46029601:
   1158     eax = MEM32(ebp + (-0x10)); /* 0x46029601: mov eax, dword ptr [ebp - 0x10] */
   1159     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1160     eax = eax & 1; /* 0x46029604: and eax, 1 */
   1161     _cf = 0;
   1162     _flag_k = FK_TEST;
   1163     /* test eax, eax */ /* 0x46029607: test eax, eax */
   1164     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1165     _cf = 0;
   1166     _flag_k = FK_TEST;
   1167     if (TEST_Z(_flag_a, _flag_b)) goto L_46029616; /* 0x46029609: je 0x46029616 */
   1168 L_4602960B:
   1169     ecx = MEM32(ebp + (-0x14)); /* 0x4602960B: mov ecx, dword ptr [ebp - 0x14] */
   1170     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x58u);
   1171     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1172     ecx = ecx + 0x58u; /* 0x4602960E: add ecx, 0x58 */
   1173     _flag_k = FK_ADD;
   1174     RECOMP_BACKEDGE();
   1175     goto L_46002DC1; /* 0x46029611: jmp 0x46002dc1 */
   1176 L_46029616:
   1177     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46029616: ret  */
   1178     RECOMP_REGS_OUT();
   1179 }
   1180 
   1181 void sub_46029617(void) {
   1182     int _fpu_cmp = 0;
   1183     uint32_t _cf = 0;
   1184     int _df = 1;
   1185     uint32_t _flag_k = FK_NONE;
   1186     uint32_t _flag_a = 0, _flag_b = 0;
   1187     uint32_t _itail_tgt = 0;
   1188     RECOMP_REGS_LOCALS
   1189     RECOMP_ENTER(0x46029617u);
   1190 
   1191     goto L_46029617;
   1192 L_460284FD:
   1193     eax = MEM32(ecx + (-0x4)); /* 0x460284FD: mov eax, dword ptr [ecx - 4] */
   1194     eax = MEM32(eax + 0x4); /* 0x46028500: mov eax, dword ptr [eax + 4] */
   1195     MEM32(eax + ecx + (-0x4)) = 0x4602B358u; /* 0x46028503: mov dword ptr [eax + ecx - 4], 0x4602b358 */
   1196     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4602850B: ret  */
   1197 L_46029617:
   1198     ecx = MEM32(ebp + (-0x14)); /* 0x46029617: mov ecx, dword ptr [ebp - 0x14] */
   1199     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   1200     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1201     ecx = ecx + 4; /* 0x4602961A: add ecx, 4 */
   1202     _flag_k = FK_ADD;
   1203     RECOMP_BACKEDGE();
   1204     goto L_460284FD; /* 0x4602961D: jmp 0x460284fd */
   1205     { RECOMP_REGS_OUT(); return; } /* end of function */
   1206     RECOMP_REGS_OUT();
   1207 }
   1208 
   1209 void sub_46029622(void) {
   1210     int _fpu_cmp = 0;
   1211     uint32_t _cf = 0;
   1212     int _df = 1;
   1213     uint32_t _flag_k = FK_NONE;
   1214     uint32_t _flag_a = 0, _flag_b = 0;
   1215     uint32_t _itail_tgt = 0;
   1216     RECOMP_REGS_LOCALS
   1217     RECOMP_ENTER(0x46029622u);
   1218 
   1219     goto L_46029622;
   1220 L_46028258:
   1221     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
   1222 L_46029622:
   1223     eax = 0x46031158u; /* 0x46029622: mov eax, 0x46031158 */
   1224 L_46029627:
   1225     RECOMP_BACKEDGE();
   1226     goto L_46028258; /* 0x46029627: jmp 0x46028258 */
   1227     { RECOMP_REGS_OUT(); return; } /* end of function */
   1228   _ljump:
   1229     switch (_itail_tgt) {
   1230       case 0x46028258u: goto L_46028258;
   1231       case 0x46029622u: goto L_46029622;
   1232       case 0x46029627u: goto L_46029627;
   1233       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1234     }
   1235     RECOMP_REGS_OUT();
   1236 }
   1237 
   1238 void sub_4602962C(void) {
   1239     int _fpu_cmp = 0;
   1240     uint32_t _cf = 0;
   1241     int _df = 1;
   1242     uint32_t _flag_k = FK_NONE;
   1243     uint32_t _flag_a = 0, _flag_b = 0;
   1244     uint32_t _itail_tgt = 0;
   1245     RECOMP_REGS_LOCALS
   1246     RECOMP_ENTER(0x4602962Cu);
   1247 
   1248     goto L_4602962C;
   1249 L_46002DC1:
   1250     MEM32(ecx) = 0x4602B268u; /* 0x46002DC1: mov dword ptr [ecx], 0x4602b268 */
   1251     eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */
   1252     RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */
   1253     RECOMP_FLAGS_IN();
   1254     PUSH32(esp, ecx); /* 0x46002DD1: push ecx */
   1255     PUSH32(esp, esi); /* 0x46002DD2: push esi */
   1256     esi = ecx; /* 0x46002DD3: mov esi, ecx */
   1257     MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */
   1258     MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */
   1259     eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */
   1260     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0);
   1261     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */
   1262     _cf = 0;
   1263     _flag_k = FK_TEST;
   1264     /* test eax, eax */ /* 0x46002DE5: test eax, eax */
   1265     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1266     _cf = 0;
   1267     _flag_k = FK_TEST;
   1268     if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */
   1269 L_46002DE9:
   1270     _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24;
   1271     MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */
   1272     _flag_k = FK_NARROW(FK_DEC, 24);
   1273     eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */
   1274     /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */
   1275     _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24;
   1276     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1277     _flag_k = FK_NARROW(FK_CMP, 24);
   1278     if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */
   1279 L_46002DFB:
   1280     ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */
   1281     RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */
   1282     RECOMP_FLAGS_IN();
   1283     ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */
   1284     esi = POP32_VAL(esp); /* 0x46002E06: pop esi */
   1285     MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */
   1286     esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave  */
   1287     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret  */
   1288 L_46002E10:
   1289     ecx = esi; /* 0x46002E10: mov ecx, esi */
   1290     RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */
   1291     RECOMP_FLAGS_IN();
   1292     RECOMP_BACKEDGE();
   1293     goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */
   1294 L_4602962C:
   1295     eax = MEM32(ebp + (-0x10)); /* 0x4602962C: mov eax, dword ptr [ebp - 0x10] */
   1296     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1297     eax = eax & 1; /* 0x4602962F: and eax, 1 */
   1298     _cf = 0;
   1299     _flag_k = FK_TEST;
   1300     /* test eax, eax */ /* 0x46029632: test eax, eax */
   1301     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1302     _cf = 0;
   1303     _flag_k = FK_TEST;
   1304     if (TEST_Z(_flag_a, _flag_b)) goto L_46029641; /* 0x46029634: je 0x46029641 */
   1305 L_46029636:
   1306     ecx = MEM32(ebp + (-0x14)); /* 0x46029636: mov ecx, dword ptr [ebp - 0x14] */
   1307     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x58u);
   1308     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1309     ecx = ecx + 0x58u; /* 0x46029639: add ecx, 0x58 */
   1310     _flag_k = FK_ADD;
   1311     RECOMP_BACKEDGE();
   1312     goto L_46002DC1; /* 0x4602963C: jmp 0x46002dc1 */
   1313 L_46029641:
   1314     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46029641: ret  */
   1315     RECOMP_REGS_OUT();
   1316 }
   1317 
   1318 void sub_46029642(void) {
   1319     int _fpu_cmp = 0;
   1320     uint32_t _cf = 0;
   1321     int _df = 1;
   1322     uint32_t _flag_k = FK_NONE;
   1323     uint32_t _flag_a = 0, _flag_b = 0;
   1324     uint32_t _itail_tgt = 0;
   1325     RECOMP_REGS_LOCALS
   1326     RECOMP_ENTER(0x46029642u);
   1327 
   1328     goto L_46029642;
   1329 L_460284FD:
   1330     eax = MEM32(ecx + (-0x4)); /* 0x460284FD: mov eax, dword ptr [ecx - 4] */
   1331     eax = MEM32(eax + 0x4); /* 0x46028500: mov eax, dword ptr [eax + 4] */
   1332     MEM32(eax + ecx + (-0x4)) = 0x4602B358u; /* 0x46028503: mov dword ptr [eax + ecx - 4], 0x4602b358 */
   1333     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4602850B: ret  */
   1334 L_46029642:
   1335     ecx = MEM32(ebp + (-0x14)); /* 0x46029642: mov ecx, dword ptr [ebp - 0x14] */
   1336     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   1337     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1338     ecx = ecx + 4; /* 0x46029645: add ecx, 4 */
   1339     _flag_k = FK_ADD;
   1340     RECOMP_BACKEDGE();
   1341     goto L_460284FD; /* 0x46029648: jmp 0x460284fd */
   1342     { RECOMP_REGS_OUT(); return; } /* end of function */
   1343     RECOMP_REGS_OUT();
   1344 }
   1345 
   1346 void sub_4602964D(void) {
   1347     int _fpu_cmp = 0;
   1348     uint32_t _cf = 0;
   1349     int _df = 1;
   1350     uint32_t _flag_k = FK_NONE;
   1351     uint32_t _flag_a = 0, _flag_b = 0;
   1352     uint32_t _itail_tgt = 0;
   1353     RECOMP_REGS_LOCALS
   1354     RECOMP_ENTER(0x4602964Du);
   1355 
   1356     goto L_4602964D;
   1357 L_46002F11:
   1358     eax = 0x460294ADu; /* 0x46002F11: mov eax, 0x460294ad */
   1359     RECOMP_ICALL(0x46001535u); /* 0x46002F16: call 0x46001535 */ /* not lifted */
   1360     RECOMP_FLAGS_IN();
   1361     PUSH32(esp, ecx); /* 0x46002F1B: push ecx */
   1362     PUSH32(esp, esi); /* 0x46002F1C: push esi */
   1363     esi = ecx; /* 0x46002F1D: mov esi, ecx */
   1364     PUSH32(esp, edi); /* 0x46002F1F: push edi */
   1365     MEM32(ebp + (-0x10)) = esi; /* 0x46002F20: mov dword ptr [ebp - 0x10], esi */
   1366     MEM32(esi) = 0x4602B16Cu; /* 0x46002F23: mov dword ptr [esi], 0x4602b16c */
   1367     /* cmp MEM8(esi + 0x48), 0 */ /* 0x46002F29: cmp byte ptr [esi + 0x48], 0 */
   1368     _flag_a = (uint32_t)(MEM8(esi + 0x48)) << 24; _flag_b = (uint32_t)(0) << 24;
   1369     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1370     _flag_k = FK_NARROW(FK_CMP, 24);
   1371     MEM32(ebp + (-0x4)) = 1; /* 0x46002F2D: mov dword ptr [ebp - 4], 1 */
   1372     if (CMP_NE(_flag_a, _flag_b)) goto L_4601579B; /* 0x46002F34: jne 0x4601579b */
   1373 L_46002F3A:
   1374     edi = MEM32(esi + 0x44); /* 0x46002F3A: mov edi, dword ptr [esi + 0x44] */
   1375     /* test edi, edi */ /* 0x46002F3D: test edi, edi */
   1376     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1377     _cf = 0;
   1378     _flag_k = FK_TEST;
   1379     if (TEST_NZ(_flag_a, _flag_b)) goto L_460157A5; /* 0x46002F3F: jne 0x460157a5 */
   1380 L_46002F45:
   1381     ecx = esi + 0x4C; /* 0x46002F45: lea ecx, [esi + 0x4c] */
   1382     RECOMP_ICALL(0x46001CAEu); /* 0x46002F48: call 0x46001cae */ /* not lifted */
   1383     RECOMP_FLAGS_IN();
   1384     ecx = esi + 0x34; /* 0x46002F4D: lea ecx, [esi + 0x34] */
   1385     MEM32(esi) = 0x4602B3B8u; /* 0x46002F50: mov dword ptr [esi], 0x4602b3b8 */
   1386     RECOMP_ICALL(0x46001CAEu); /* 0x46002F56: call 0x46001cae */ /* not lifted */
   1387     RECOMP_FLAGS_IN();
   1388     ecx = MEM32(ebp + (-0xC)); /* 0x46002F5B: mov ecx, dword ptr [ebp - 0xc] */
   1389     edi = POP32_VAL(esp); /* 0x46002F5E: pop edi */
   1390     esi = POP32_VAL(esp); /* 0x46002F5F: pop esi */
   1391     MEM32(FS_BASE + (0)) = ecx; /* 0x46002F60: mov dword ptr fs:[0], ecx */
   1392     esp = ebp; ebp = POP32_VAL(esp); /* 0x46002F67: leave  */
   1393     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002F68: ret  */
   1394 L_4601579B:
   1395     RECOMP_ICALL(0x4601580Cu); /* 0x4601579B: call 0x4601580c */ /* not lifted */
   1396     RECOMP_FLAGS_IN();
   1397     RECOMP_BACKEDGE();
   1398     goto L_46002F3A; /* 0x460157A0: jmp 0x46002f3a */
   1399 L_460157A5:
   1400     PUSH32(esp, 1); /* 0x460157A5: push 1 */
   1401     ecx = edi; /* 0x460157A7: mov ecx, edi */
   1402     RECOMP_ICALL(0x46001A60u); /* 0x460157A9: call 0x46001a60 */ /* not lifted */
   1403     RECOMP_FLAGS_IN();
   1404     PUSH32(esp, edi); /* 0x460157AE: push edi */
   1405     RECOMP_ICALL(0x46002CE4u); /* 0x460157AF: call 0x46002ce4 */ /* not lifted */
   1406     RECOMP_FLAGS_IN();
   1407     ecx = POP32_VAL(esp); /* 0x460157B4: pop ecx */
   1408     RECOMP_BACKEDGE();
   1409     goto L_46002F45; /* 0x460157B5: jmp 0x46002f45 */
   1410 L_4602964D:
   1411     ecx = MEM32(ebp + (-0x14)); /* 0x4602964D: mov ecx, dword ptr [ebp - 0x14] */
   1412     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   1413     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1414     ecx = ecx + 4; /* 0x46029650: add ecx, 4 */
   1415     _flag_k = FK_ADD;
   1416     RECOMP_BACKEDGE();
   1417     goto L_46002F11; /* 0x46029653: jmp 0x46002f11 */
   1418     { RECOMP_REGS_OUT(); return; } /* end of function */
   1419     RECOMP_REGS_OUT();
   1420 }
   1421 
   1422 void sub_46029658(void) {
   1423     int _fpu_cmp = 0;
   1424     uint32_t _cf = 0;
   1425     int _df = 1;
   1426     uint32_t _flag_k = FK_NONE;
   1427     uint32_t _flag_a = 0, _flag_b = 0;
   1428     uint32_t _itail_tgt = 0;
   1429     RECOMP_REGS_LOCALS
   1430     RECOMP_ENTER(0x46029658u);
   1431 
   1432     goto L_46029658;
   1433 L_46028258:
   1434     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
   1435 L_46029658:
   1436     eax = 0x46031188u; /* 0x46029658: mov eax, 0x46031188 */
   1437 L_4602965D:
   1438     RECOMP_BACKEDGE();
   1439     goto L_46028258; /* 0x4602965D: jmp 0x46028258 */
   1440     { RECOMP_REGS_OUT(); return; } /* end of function */
   1441   _ljump:
   1442     switch (_itail_tgt) {
   1443       case 0x46028258u: goto L_46028258;
   1444       case 0x46029658u: goto L_46029658;
   1445       case 0x4602965Du: goto L_4602965D;
   1446       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1447     }
   1448     RECOMP_REGS_OUT();
   1449 }
   1450 
   1451 void sub_46029662(void) {
   1452     int _fpu_cmp = 0;
   1453     uint32_t _cf = 0;
   1454     int _df = 1;
   1455     uint32_t _flag_k = FK_NONE;
   1456     uint32_t _flag_a = 0, _flag_b = 0;
   1457     uint32_t _itail_tgt = 0;
   1458     RECOMP_REGS_LOCALS
   1459     RECOMP_ENTER(0x46029662u);
   1460 
   1461     goto L_46029662;
   1462 L_460284FD:
   1463     eax = MEM32(ecx + (-0x4)); /* 0x460284FD: mov eax, dword ptr [ecx - 4] */
   1464     eax = MEM32(eax + 0x4); /* 0x46028500: mov eax, dword ptr [eax + 4] */
   1465     MEM32(eax + ecx + (-0x4)) = 0x4602B358u; /* 0x46028503: mov dword ptr [eax + ecx - 4], 0x4602b358 */
   1466     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4602850B: ret  */
   1467 L_46029662:
   1468     ecx = MEM32(ebp + (-0x10)); /* 0x46029662: mov ecx, dword ptr [ebp - 0x10] */
   1469     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x54u);
   1470     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1471     ecx = ecx - 0x54u; /* 0x46029665: sub ecx, 0x54 */
   1472     _flag_k = FK_CMP;
   1473     RECOMP_BACKEDGE();
   1474     goto L_460284FD; /* 0x46029668: jmp 0x460284fd */
   1475     { RECOMP_REGS_OUT(); return; } /* end of function */
   1476     RECOMP_REGS_OUT();
   1477 }
   1478 
   1479 void sub_4602966D(void) {
   1480     int _fpu_cmp = 0;
   1481     uint32_t _cf = 0;
   1482     int _df = 1;
   1483     uint32_t _flag_k = FK_NONE;
   1484     uint32_t _flag_a = 0, _flag_b = 0;
   1485     uint32_t _itail_tgt = 0;
   1486     RECOMP_REGS_LOCALS
   1487     RECOMP_ENTER(0x4602966Du);
   1488 
   1489     goto L_4602966D;
   1490 L_46028258:
   1491     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
   1492 L_4602966D:
   1493     eax = 0x460311C0u; /* 0x4602966D: mov eax, 0x460311c0 */
   1494 L_46029672:
   1495     RECOMP_BACKEDGE();
   1496     goto L_46028258; /* 0x46029672: jmp 0x46028258 */
   1497     { RECOMP_REGS_OUT(); return; } /* end of function */
   1498   _ljump:
   1499     switch (_itail_tgt) {
   1500       case 0x46028258u: goto L_46028258;
   1501       case 0x4602966Du: goto L_4602966D;
   1502       case 0x46029672u: goto L_46029672;
   1503       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1504     }
   1505     RECOMP_REGS_OUT();
   1506 }
   1507 
   1508 void sub_46029677(void) {
   1509     int _fpu_cmp = 0;
   1510     uint32_t _cf = 0;
   1511     int _df = 1;
   1512     uint32_t _flag_k = FK_NONE;
   1513     uint32_t _flag_a = 0, _flag_b = 0;
   1514     uint32_t _itail_tgt = 0;
   1515     RECOMP_REGS_LOCALS
   1516     RECOMP_ENTER(0x46029677u);
   1517 
   1518     goto L_46029677;
   1519 L_46002DA4:
   1520     MEM32(ecx) = 0x4602B5E8u; /* 0x46002DA4: mov dword ptr [ecx], 0x4602b5e8 */
   1521     goto L_46002DC7; /* 0x46002DAA: jmp 0x46002dc7 */
   1522 L_46002DC7:
   1523     eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */
   1524     RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */
   1525     RECOMP_FLAGS_IN();
   1526     PUSH32(esp, ecx); /* 0x46002DD1: push ecx */
   1527     PUSH32(esp, esi); /* 0x46002DD2: push esi */
   1528     esi = ecx; /* 0x46002DD3: mov esi, ecx */
   1529     MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */
   1530     MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */
   1531     eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */
   1532     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0);
   1533     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */
   1534     _cf = 0;
   1535     _flag_k = FK_TEST;
   1536     /* test eax, eax */ /* 0x46002DE5: test eax, eax */
   1537     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1538     _cf = 0;
   1539     _flag_k = FK_TEST;
   1540     if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */
   1541 L_46002DE9:
   1542     _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24;
   1543     MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */
   1544     _flag_k = FK_NARROW(FK_DEC, 24);
   1545     eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */
   1546     /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */
   1547     _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24;
   1548     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1549     _flag_k = FK_NARROW(FK_CMP, 24);
   1550     if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */
   1551 L_46002DFB:
   1552     ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */
   1553     RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */
   1554     RECOMP_FLAGS_IN();
   1555     ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */
   1556     esi = POP32_VAL(esp); /* 0x46002E06: pop esi */
   1557     MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */
   1558     esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave  */
   1559     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret  */
   1560 L_46002E10:
   1561     ecx = esi; /* 0x46002E10: mov ecx, esi */
   1562     RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */
   1563     RECOMP_FLAGS_IN();
   1564     RECOMP_BACKEDGE();
   1565     goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */
   1566 L_46029677:
   1567     eax = MEM32(ebp + (-0x10)); /* 0x46029677: mov eax, dword ptr [ebp - 0x10] */
   1568     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1569     eax = eax & 1; /* 0x4602967A: and eax, 1 */
   1570     _cf = 0;
   1571     _flag_k = FK_TEST;
   1572     /* test eax, eax */ /* 0x4602967D: test eax, eax */
   1573     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1574     _cf = 0;
   1575     _flag_k = FK_TEST;
   1576     if (TEST_Z(_flag_a, _flag_b)) goto L_4602968C; /* 0x4602967F: je 0x4602968c */
   1577 L_46029681:
   1578     ecx = MEM32(ebp + (-0x14)); /* 0x46029681: mov ecx, dword ptr [ebp - 0x14] */
   1579     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x58u);
   1580     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1581     ecx = ecx + 0x58u; /* 0x46029684: add ecx, 0x58 */
   1582     _flag_k = FK_ADD;
   1583     RECOMP_BACKEDGE();
   1584     goto L_46002DA4; /* 0x46029687: jmp 0x46002da4 */
   1585 L_4602968C:
   1586     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4602968C: ret  */
   1587     RECOMP_REGS_OUT();
   1588 }
   1589 
   1590 void sub_4602968D(void) {
   1591     int _fpu_cmp = 0;
   1592     uint32_t _cf = 0;
   1593     int _df = 1;
   1594     uint32_t _flag_k = FK_NONE;
   1595     uint32_t _flag_a = 0, _flag_b = 0;
   1596     uint32_t _itail_tgt = 0;
   1597     RECOMP_REGS_LOCALS
   1598     RECOMP_ENTER(0x4602968Du);
   1599 
   1600     goto L_4602968D;
   1601 L_46028532:
   1602     eax = MEM32(ecx + (-0x4)); /* 0x46028532: mov eax, dword ptr [ecx - 4] */
   1603     eax = MEM32(eax + 0x4); /* 0x46028535: mov eax, dword ptr [eax + 4] */
   1604     MEM32(eax + ecx + (-0x4)) = 0x4602B6A8u; /* 0x46028538: mov dword ptr [eax + ecx - 4], 0x4602b6a8 */
   1605     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46028540: ret  */
   1606 L_4602968D:
   1607     ecx = MEM32(ebp + (-0x14)); /* 0x4602968D: mov ecx, dword ptr [ebp - 0x14] */
   1608     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   1609     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1610     ecx = ecx + 4; /* 0x46029690: add ecx, 4 */
   1611     _flag_k = FK_ADD;
   1612     RECOMP_BACKEDGE();
   1613     goto L_46028532; /* 0x46029693: jmp 0x46028532 */
   1614     { RECOMP_REGS_OUT(); return; } /* end of function */
   1615     RECOMP_REGS_OUT();
   1616 }
   1617 
   1618 void sub_46029698(void) {
   1619     int _fpu_cmp = 0;
   1620     uint32_t _cf = 0;
   1621     int _df = 1;
   1622     uint32_t _flag_k = FK_NONE;
   1623     uint32_t _flag_a = 0, _flag_b = 0;
   1624     uint32_t _itail_tgt = 0;
   1625     RECOMP_REGS_LOCALS
   1626     RECOMP_ENTER(0x46029698u);
   1627 
   1628     goto L_46029698;
   1629 L_46028258:
   1630     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
   1631 L_46029698:
   1632     eax = 0x460311E8u; /* 0x46029698: mov eax, 0x460311e8 */
   1633 L_4602969D:
   1634     RECOMP_BACKEDGE();
   1635     goto L_46028258; /* 0x4602969D: jmp 0x46028258 */
   1636     { RECOMP_REGS_OUT(); return; } /* end of function */
   1637   _ljump:
   1638     switch (_itail_tgt) {
   1639       case 0x46028258u: goto L_46028258;
   1640       case 0x46029698u: goto L_46029698;
   1641       case 0x4602969Du: goto L_4602969D;
   1642       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1643     }
   1644     RECOMP_REGS_OUT();
   1645 }
   1646 
   1647 void sub_460296A2(void) {
   1648     int _fpu_cmp = 0;
   1649     uint32_t _cf = 0;
   1650     int _df = 1;
   1651     uint32_t _flag_k = FK_NONE;
   1652     uint32_t _flag_a = 0, _flag_b = 0;
   1653     uint32_t _itail_tgt = 0;
   1654     RECOMP_REGS_LOCALS
   1655     RECOMP_ENTER(0x460296A2u);
   1656 
   1657     goto L_460296A2;
   1658 L_46002DA4:
   1659     MEM32(ecx) = 0x4602B5E8u; /* 0x46002DA4: mov dword ptr [ecx], 0x4602b5e8 */
   1660     goto L_46002DC7; /* 0x46002DAA: jmp 0x46002dc7 */
   1661 L_46002DC7:
   1662     eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */
   1663     RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */
   1664     RECOMP_FLAGS_IN();
   1665     PUSH32(esp, ecx); /* 0x46002DD1: push ecx */
   1666     PUSH32(esp, esi); /* 0x46002DD2: push esi */
   1667     esi = ecx; /* 0x46002DD3: mov esi, ecx */
   1668     MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */
   1669     MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */
   1670     eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */
   1671     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0);
   1672     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */
   1673     _cf = 0;
   1674     _flag_k = FK_TEST;
   1675     /* test eax, eax */ /* 0x46002DE5: test eax, eax */
   1676     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1677     _cf = 0;
   1678     _flag_k = FK_TEST;
   1679     if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */
   1680 L_46002DE9:
   1681     _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24;
   1682     MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */
   1683     _flag_k = FK_NARROW(FK_DEC, 24);
   1684     eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */
   1685     /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */
   1686     _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24;
   1687     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1688     _flag_k = FK_NARROW(FK_CMP, 24);
   1689     if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */
   1690 L_46002DFB:
   1691     ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */
   1692     RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */
   1693     RECOMP_FLAGS_IN();
   1694     ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */
   1695     esi = POP32_VAL(esp); /* 0x46002E06: pop esi */
   1696     MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */
   1697     esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave  */
   1698     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret  */
   1699 L_46002E10:
   1700     ecx = esi; /* 0x46002E10: mov ecx, esi */
   1701     RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */
   1702     RECOMP_FLAGS_IN();
   1703     RECOMP_BACKEDGE();
   1704     goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */
   1705 L_460296A2:
   1706     eax = MEM32(ebp + (-0x10)); /* 0x460296A2: mov eax, dword ptr [ebp - 0x10] */
   1707     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1708     eax = eax & 1; /* 0x460296A5: and eax, 1 */
   1709     _cf = 0;
   1710     _flag_k = FK_TEST;
   1711     /* test eax, eax */ /* 0x460296A8: test eax, eax */
   1712     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1713     _cf = 0;
   1714     _flag_k = FK_TEST;
   1715     if (TEST_Z(_flag_a, _flag_b)) goto L_460296B7; /* 0x460296AA: je 0x460296b7 */
   1716 L_460296AC:
   1717     ecx = MEM32(ebp + (-0x14)); /* 0x460296AC: mov ecx, dword ptr [ebp - 0x14] */
   1718     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x58u);
   1719     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1720     ecx = ecx + 0x58u; /* 0x460296AF: add ecx, 0x58 */
   1721     _flag_k = FK_ADD;
   1722     RECOMP_BACKEDGE();
   1723     goto L_46002DA4; /* 0x460296B2: jmp 0x46002da4 */
   1724 L_460296B7:
   1725     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460296B7: ret  */
   1726     RECOMP_REGS_OUT();
   1727 }
   1728 
   1729 void sub_460296B8(void) {
   1730     int _fpu_cmp = 0;
   1731     uint32_t _cf = 0;
   1732     int _df = 1;
   1733     uint32_t _flag_k = FK_NONE;
   1734     uint32_t _flag_a = 0, _flag_b = 0;
   1735     uint32_t _itail_tgt = 0;
   1736     RECOMP_REGS_LOCALS
   1737     RECOMP_ENTER(0x460296B8u);
   1738 
   1739     goto L_460296B8;
   1740 L_46028532:
   1741     eax = MEM32(ecx + (-0x4)); /* 0x46028532: mov eax, dword ptr [ecx - 4] */
   1742     eax = MEM32(eax + 0x4); /* 0x46028535: mov eax, dword ptr [eax + 4] */
   1743     MEM32(eax + ecx + (-0x4)) = 0x4602B6A8u; /* 0x46028538: mov dword ptr [eax + ecx - 4], 0x4602b6a8 */
   1744     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46028540: ret  */
   1745 L_460296B8:
   1746     ecx = MEM32(ebp + (-0x14)); /* 0x460296B8: mov ecx, dword ptr [ebp - 0x14] */
   1747     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   1748     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1749     ecx = ecx + 4; /* 0x460296BB: add ecx, 4 */
   1750     _flag_k = FK_ADD;
   1751     RECOMP_BACKEDGE();
   1752     goto L_46028532; /* 0x460296BE: jmp 0x46028532 */
   1753     { RECOMP_REGS_OUT(); return; } /* end of function */
   1754     RECOMP_REGS_OUT();
   1755 }
   1756 
   1757 void sub_460296C3(void) {
   1758     int _fpu_cmp = 0;
   1759     uint32_t _cf = 0;
   1760     int _df = 1;
   1761     uint32_t _flag_k = FK_NONE;
   1762     uint32_t _flag_a = 0, _flag_b = 0;
   1763     uint32_t _itail_tgt = 0;
   1764     RECOMP_REGS_LOCALS
   1765     RECOMP_ENTER(0x460296C3u);
   1766 
   1767     goto L_460296C3;
   1768 L_46002E49:
   1769     eax = 0x460294F9u; /* 0x46002E49: mov eax, 0x460294f9 */
   1770     RECOMP_ICALL(0x46001535u); /* 0x46002E4E: call 0x46001535 */ /* not lifted */
   1771     RECOMP_FLAGS_IN();
   1772     PUSH32(esp, ecx); /* 0x46002E53: push ecx */
   1773     PUSH32(esp, esi); /* 0x46002E54: push esi */
   1774     esi = ecx; /* 0x46002E55: mov esi, ecx */
   1775     PUSH32(esp, edi); /* 0x46002E57: push edi */
   1776     MEM32(ebp + (-0x10)) = esi; /* 0x46002E58: mov dword ptr [ebp - 0x10], esi */
   1777     MEM32(esi) = 0x4602B508u; /* 0x46002E5B: mov dword ptr [esi], 0x4602b508 */
   1778     /* cmp MEM8(esi + 0x48), 0 */ /* 0x46002E61: cmp byte ptr [esi + 0x48], 0 */
   1779     _flag_a = (uint32_t)(MEM8(esi + 0x48)) << 24; _flag_b = (uint32_t)(0) << 24;
   1780     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1781     _flag_k = FK_NARROW(FK_CMP, 24);
   1782     MEM32(ebp + (-0x4)) = 1; /* 0x46002E65: mov dword ptr [ebp - 4], 1 */
   1783     if (CMP_NE(_flag_a, _flag_b)) goto L_46015D05; /* 0x46002E6C: jne 0x46015d05 */
   1784 L_46002E72:
   1785     edi = MEM32(esi + 0x44); /* 0x46002E72: mov edi, dword ptr [esi + 0x44] */
   1786     /* test edi, edi */ /* 0x46002E75: test edi, edi */
   1787     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1788     _cf = 0;
   1789     _flag_k = FK_TEST;
   1790     if (TEST_NZ(_flag_a, _flag_b)) goto L_46015D0F; /* 0x46002E77: jne 0x46015d0f */
   1791 L_46002E7D:
   1792     ecx = esi + 0x4C; /* 0x46002E7D: lea ecx, [esi + 0x4c] */
   1793     RECOMP_ICALL(0x46001CAEu); /* 0x46002E80: call 0x46001cae */ /* not lifted */
   1794     RECOMP_FLAGS_IN();
   1795     ecx = esi + 0x34; /* 0x46002E85: lea ecx, [esi + 0x34] */
   1796     MEM32(esi) = 0x4602B4D0u; /* 0x46002E88: mov dword ptr [esi], 0x4602b4d0 */
   1797     RECOMP_ICALL(0x46001CAEu); /* 0x46002E8E: call 0x46001cae */ /* not lifted */
   1798     RECOMP_FLAGS_IN();
   1799     ecx = MEM32(ebp + (-0xC)); /* 0x46002E93: mov ecx, dword ptr [ebp - 0xc] */
   1800     edi = POP32_VAL(esp); /* 0x46002E96: pop edi */
   1801     esi = POP32_VAL(esp); /* 0x46002E97: pop esi */
   1802     MEM32(FS_BASE + (0)) = ecx; /* 0x46002E98: mov dword ptr fs:[0], ecx */
   1803     esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E9F: leave  */
   1804     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002EA0: ret  */
   1805 L_46015D05:
   1806     RECOMP_ICALL(0x46015D76u); /* 0x46015D05: call 0x46015d76 */ /* not lifted */
   1807     RECOMP_FLAGS_IN();
   1808     RECOMP_BACKEDGE();
   1809     goto L_46002E72; /* 0x46015D0A: jmp 0x46002e72 */
   1810 L_46015D0F:
   1811     PUSH32(esp, 1); /* 0x46015D0F: push 1 */
   1812     ecx = edi; /* 0x46015D11: mov ecx, edi */
   1813     RECOMP_ICALL(0x46001A60u); /* 0x46015D13: call 0x46001a60 */ /* not lifted */
   1814     RECOMP_FLAGS_IN();
   1815     PUSH32(esp, edi); /* 0x46015D18: push edi */
   1816     RECOMP_ICALL(0x46002CE4u); /* 0x46015D19: call 0x46002ce4 */ /* not lifted */
   1817     RECOMP_FLAGS_IN();
   1818     ecx = POP32_VAL(esp); /* 0x46015D1E: pop ecx */
   1819     RECOMP_BACKEDGE();
   1820     goto L_46002E7D; /* 0x46015D1F: jmp 0x46002e7d */
   1821 L_460296C3:
   1822     ecx = MEM32(ebp + (-0x14)); /* 0x460296C3: mov ecx, dword ptr [ebp - 0x14] */
   1823     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(4);
   1824     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1825     ecx = ecx + 4; /* 0x460296C6: add ecx, 4 */
   1826     _flag_k = FK_ADD;
   1827     RECOMP_BACKEDGE();
   1828     goto L_46002E49; /* 0x460296C9: jmp 0x46002e49 */
   1829     { RECOMP_REGS_OUT(); return; } /* end of function */
   1830     RECOMP_REGS_OUT();
   1831 }
   1832 
   1833 void sub_460296CE(void) {
   1834     int _fpu_cmp = 0;
   1835     uint32_t _cf = 0;
   1836     int _df = 1;
   1837     uint32_t _flag_k = FK_NONE;
   1838     uint32_t _flag_a = 0, _flag_b = 0;
   1839     uint32_t _itail_tgt = 0;
   1840     RECOMP_REGS_LOCALS
   1841     RECOMP_ENTER(0x460296CEu);
   1842 
   1843     goto L_460296CE;
   1844 L_46028258:
   1845     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
   1846 L_460296CE:
   1847     eax = 0x46031218u; /* 0x460296CE: mov eax, 0x46031218 */
   1848 L_460296D3:
   1849     RECOMP_BACKEDGE();
   1850     goto L_46028258; /* 0x460296D3: jmp 0x46028258 */
   1851     { RECOMP_REGS_OUT(); return; } /* end of function */
   1852   _ljump:
   1853     switch (_itail_tgt) {
   1854       case 0x46028258u: goto L_46028258;
   1855       case 0x460296CEu: goto L_460296CE;
   1856       case 0x460296D3u: goto L_460296D3;
   1857       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1858     }
   1859     RECOMP_REGS_OUT();
   1860 }
   1861 
   1862 void sub_460296D8(void) {
   1863     int _fpu_cmp = 0;
   1864     uint32_t _cf = 0;
   1865     int _df = 1;
   1866     uint32_t _flag_k = FK_NONE;
   1867     uint32_t _flag_a = 0, _flag_b = 0;
   1868     uint32_t _itail_tgt = 0;
   1869     RECOMP_REGS_LOCALS
   1870     RECOMP_ENTER(0x460296D8u);
   1871 
   1872     goto L_460296D8;
   1873 L_46028532:
   1874     eax = MEM32(ecx + (-0x4)); /* 0x46028532: mov eax, dword ptr [ecx - 4] */
   1875     eax = MEM32(eax + 0x4); /* 0x46028535: mov eax, dword ptr [eax + 4] */
   1876     MEM32(eax + ecx + (-0x4)) = 0x4602B6A8u; /* 0x46028538: mov dword ptr [eax + ecx - 4], 0x4602b6a8 */
   1877     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46028540: ret  */
   1878 L_460296D8:
   1879     ecx = MEM32(ebp + (-0x10)); /* 0x460296D8: mov ecx, dword ptr [ebp - 0x10] */
   1880     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x54u);
   1881     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1882     ecx = ecx - 0x54u; /* 0x460296DB: sub ecx, 0x54 */
   1883     _flag_k = FK_CMP;
   1884     RECOMP_BACKEDGE();
   1885     goto L_46028532; /* 0x460296DE: jmp 0x46028532 */
   1886     { RECOMP_REGS_OUT(); return; } /* end of function */
   1887     RECOMP_REGS_OUT();
   1888 }
   1889 
   1890 void sub_460296E3(void) {
   1891     int _fpu_cmp = 0;
   1892     uint32_t _cf = 0;
   1893     int _df = 1;
   1894     uint32_t _flag_k = FK_NONE;
   1895     uint32_t _flag_a = 0, _flag_b = 0;
   1896     uint32_t _itail_tgt = 0;
   1897     RECOMP_REGS_LOCALS
   1898     RECOMP_ENTER(0x460296E3u);
   1899 
   1900     goto L_460296E3;
   1901 L_46028258:
   1902     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
   1903 L_460296E3:
   1904     eax = 0x46031250u; /* 0x460296E3: mov eax, 0x46031250 */
   1905 L_460296E8:
   1906     RECOMP_BACKEDGE();
   1907     goto L_46028258; /* 0x460296E8: jmp 0x46028258 */
   1908     { RECOMP_REGS_OUT(); return; } /* end of function */
   1909   _ljump:
   1910     switch (_itail_tgt) {
   1911       case 0x46028258u: goto L_46028258;
   1912       case 0x460296E3u: goto L_460296E3;
   1913       case 0x460296E8u: goto L_460296E8;
   1914       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1915     }
   1916     RECOMP_REGS_OUT();
   1917 }
   1918 
   1919 void sub_460296ED(void) {
   1920     int _fpu_cmp = 0;
   1921     uint32_t _cf = 0;
   1922     int _df = 1;
   1923     uint32_t _flag_k = FK_NONE;
   1924     uint32_t _flag_a = 0, _flag_b = 0;
   1925     uint32_t _itail_tgt = 0;
   1926     RECOMP_REGS_LOCALS
   1927     RECOMP_ENTER(0x460296EDu);
   1928 
   1929     goto L_460296ED;
   1930 L_46002DC1:
   1931     MEM32(ecx) = 0x4602B268u; /* 0x46002DC1: mov dword ptr [ecx], 0x4602b268 */
   1932     eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */
   1933     RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */
   1934     RECOMP_FLAGS_IN();
   1935     PUSH32(esp, ecx); /* 0x46002DD1: push ecx */
   1936     PUSH32(esp, esi); /* 0x46002DD2: push esi */
   1937     esi = ecx; /* 0x46002DD3: mov esi, ecx */
   1938     MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */
   1939     MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */
   1940     eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */
   1941     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0);
   1942     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */
   1943     _cf = 0;
   1944     _flag_k = FK_TEST;
   1945     /* test eax, eax */ /* 0x46002DE5: test eax, eax */
   1946     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1947     _cf = 0;
   1948     _flag_k = FK_TEST;
   1949     if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */
   1950 L_46002DE9:
   1951     _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24;
   1952     MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */
   1953     _flag_k = FK_NARROW(FK_DEC, 24);
   1954     eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */
   1955     /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */
   1956     _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24;
   1957     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1958     _flag_k = FK_NARROW(FK_CMP, 24);
   1959     if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */
   1960 L_46002DFB:
   1961     ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */
   1962     RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */
   1963     RECOMP_FLAGS_IN();
   1964     ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */
   1965     esi = POP32_VAL(esp); /* 0x46002E06: pop esi */
   1966     MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */
   1967     esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave  */
   1968     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret  */
   1969 L_46002E10:
   1970     ecx = esi; /* 0x46002E10: mov ecx, esi */
   1971     RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */
   1972     RECOMP_FLAGS_IN();
   1973     RECOMP_BACKEDGE();
   1974     goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */
   1975 L_460296ED:
   1976     eax = MEM32(ebp + (-0x10)); /* 0x460296ED: mov eax, dword ptr [ebp - 0x10] */
   1977     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1978     eax = eax & 1; /* 0x460296F0: and eax, 1 */
   1979     _cf = 0;
   1980     _flag_k = FK_TEST;
   1981     /* test eax, eax */ /* 0x460296F3: test eax, eax */
   1982     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1983     _cf = 0;
   1984     _flag_k = FK_TEST;
   1985     if (TEST_Z(_flag_a, _flag_b)) goto L_46029702; /* 0x460296F5: je 0x46029702 */
   1986 L_460296F7:
   1987     ecx = MEM32(ebp + (-0x14)); /* 0x460296F7: mov ecx, dword ptr [ebp - 0x14] */
   1988     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x60u);
   1989     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1990     ecx = ecx + 0x60u; /* 0x460296FA: add ecx, 0x60 */
   1991     _flag_k = FK_ADD;
   1992     RECOMP_BACKEDGE();
   1993     goto L_46002DC1; /* 0x460296FD: jmp 0x46002dc1 */
   1994 L_46029702:
   1995     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46029702: ret  */
   1996     RECOMP_REGS_OUT();
   1997 }
   1998 
   1999 void sub_46029703(void) {
   2000     int _fpu_cmp = 0;
   2001     uint32_t _cf = 0;
   2002     int _df = 1;
   2003     uint32_t _flag_k = FK_NONE;
   2004     uint32_t _flag_a = 0, _flag_b = 0;
   2005     uint32_t _itail_tgt = 0;
   2006     RECOMP_REGS_LOCALS
   2007     RECOMP_ENTER(0x46029703u);
   2008 
   2009     goto L_46029703;
   2010 L_46028567:
   2011     eax = MEM32(ecx + (-0xC)); /* 0x46028567: mov eax, dword ptr [ecx - 0xc] */
   2012     edx = ecx + (-0x4); /* 0x4602856A: lea edx, [ecx - 4] */
   2013     eax = MEM32(eax + 0x4); /* 0x4602856D: mov eax, dword ptr [eax + 4] */
   2014     MEM32(eax + ecx + (-0xC)) = 0x4602B9D4u; /* 0x46028570: mov dword ptr [eax + ecx - 0xc], 0x4602b9d4 */
   2015     eax = ecx + (-0xC); /* 0x46028578: lea eax, [ecx - 0xc] */
   2016     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2017     _cf = (eax) != 0;
   2018     eax = (uint32_t)(-(int32_t)eax); /* 0x4602857B: neg eax */
   2019     _flag_k = FK_CMP;
   2020     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4602857D: sbb eax, eax */
   2021       eax = _sc ? 0xFFFFFFFFu : 0;
   2022       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2023       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2024     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2025     eax = eax & edx; /* 0x4602857F: and eax, edx */
   2026     _cf = 0;
   2027     _flag_k = FK_TEST;
   2028     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   2029     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2030     eax = eax + 4; /* 0x46028581: add eax, 4 */
   2031     _flag_k = FK_ADD;
   2032     ecx = MEM32(eax + (-0x4)); /* 0x46028584: mov ecx, dword ptr [eax - 4] */
   2033     ecx = MEM32(ecx + 0x4); /* 0x46028587: mov ecx, dword ptr [ecx + 4] */
   2034     MEM32(ecx + eax + (-0x4)) = 0x4602B358u; /* 0x4602858A: mov dword ptr [ecx + eax - 4], 0x4602b358 */
   2035     eax = MEM32(edx + (-0x8)); /* 0x46028592: mov eax, dword ptr [edx - 8] */
   2036     eax = MEM32(eax + 0x4); /* 0x46028595: mov eax, dword ptr [eax + 4] */
   2037     MEM32(eax + edx + (-0x8)) = 0x4602B258u; /* 0x46028598: mov dword ptr [eax + edx - 8], 0x4602b258 */
   2038     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460285A0: ret  */
   2039 L_46029703:
   2040     ecx = MEM32(ebp + (-0x14)); /* 0x46029703: mov ecx, dword ptr [ebp - 0x14] */
   2041     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   2042     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2043     ecx = ecx + 0xCu; /* 0x46029706: add ecx, 0xc */
   2044     _flag_k = FK_ADD;
   2045     RECOMP_BACKEDGE();
   2046     goto L_46028567; /* 0x46029709: jmp 0x46028567 */
   2047     { RECOMP_REGS_OUT(); return; } /* end of function */
   2048     RECOMP_REGS_OUT();
   2049 }
   2050 
   2051 void sub_4602970E(void) {
   2052     int _fpu_cmp = 0;
   2053     uint32_t _cf = 0;
   2054     int _df = 1;
   2055     uint32_t _flag_k = FK_NONE;
   2056     uint32_t _flag_a = 0, _flag_b = 0;
   2057     uint32_t _itail_tgt = 0;
   2058     RECOMP_REGS_LOCALS
   2059     RECOMP_ENTER(0x4602970Eu);
   2060 
   2061     goto L_4602970E;
   2062 L_46028258:
   2063     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
   2064 L_4602970E:
   2065     eax = 0x46031278u; /* 0x4602970E: mov eax, 0x46031278 */
   2066 L_46029713:
   2067     RECOMP_BACKEDGE();
   2068     goto L_46028258; /* 0x46029713: jmp 0x46028258 */
   2069     { RECOMP_REGS_OUT(); return; } /* end of function */
   2070   _ljump:
   2071     switch (_itail_tgt) {
   2072       case 0x46028258u: goto L_46028258;
   2073       case 0x4602970Eu: goto L_4602970E;
   2074       case 0x46029713u: goto L_46029713;
   2075       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2076     }
   2077     RECOMP_REGS_OUT();
   2078 }
   2079 
   2080 void sub_46029718(void) {
   2081     int _fpu_cmp = 0;
   2082     uint32_t _cf = 0;
   2083     int _df = 1;
   2084     uint32_t _flag_k = FK_NONE;
   2085     uint32_t _flag_a = 0, _flag_b = 0;
   2086     uint32_t _itail_tgt = 0;
   2087     RECOMP_REGS_LOCALS
   2088     RECOMP_ENTER(0x46029718u);
   2089 
   2090     goto L_46029718;
   2091 L_46002DC1:
   2092     MEM32(ecx) = 0x4602B268u; /* 0x46002DC1: mov dword ptr [ecx], 0x4602b268 */
   2093     eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */
   2094     RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */
   2095     RECOMP_FLAGS_IN();
   2096     PUSH32(esp, ecx); /* 0x46002DD1: push ecx */
   2097     PUSH32(esp, esi); /* 0x46002DD2: push esi */
   2098     esi = ecx; /* 0x46002DD3: mov esi, ecx */
   2099     MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */
   2100     MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */
   2101     eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */
   2102     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0);
   2103     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */
   2104     _cf = 0;
   2105     _flag_k = FK_TEST;
   2106     /* test eax, eax */ /* 0x46002DE5: test eax, eax */
   2107     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2108     _cf = 0;
   2109     _flag_k = FK_TEST;
   2110     if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */
   2111 L_46002DE9:
   2112     _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24;
   2113     MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */
   2114     _flag_k = FK_NARROW(FK_DEC, 24);
   2115     eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */
   2116     /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */
   2117     _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24;
   2118     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2119     _flag_k = FK_NARROW(FK_CMP, 24);
   2120     if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */
   2121 L_46002DFB:
   2122     ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */
   2123     RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */
   2124     RECOMP_FLAGS_IN();
   2125     ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */
   2126     esi = POP32_VAL(esp); /* 0x46002E06: pop esi */
   2127     MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */
   2128     esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave  */
   2129     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret  */
   2130 L_46002E10:
   2131     ecx = esi; /* 0x46002E10: mov ecx, esi */
   2132     RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */
   2133     RECOMP_FLAGS_IN();
   2134     RECOMP_BACKEDGE();
   2135     goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */
   2136 L_46029718:
   2137     eax = MEM32(ebp + (-0x10)); /* 0x46029718: mov eax, dword ptr [ebp - 0x10] */
   2138     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2139     eax = eax & 1; /* 0x4602971B: and eax, 1 */
   2140     _cf = 0;
   2141     _flag_k = FK_TEST;
   2142     /* test eax, eax */ /* 0x4602971E: test eax, eax */
   2143     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2144     _cf = 0;
   2145     _flag_k = FK_TEST;
   2146     if (TEST_Z(_flag_a, _flag_b)) goto L_4602972D; /* 0x46029720: je 0x4602972d */
   2147 L_46029722:
   2148     ecx = MEM32(ebp + (-0x14)); /* 0x46029722: mov ecx, dword ptr [ebp - 0x14] */
   2149     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x60u);
   2150     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2151     ecx = ecx + 0x60u; /* 0x46029725: add ecx, 0x60 */
   2152     _flag_k = FK_ADD;
   2153     RECOMP_BACKEDGE();
   2154     goto L_46002DC1; /* 0x46029728: jmp 0x46002dc1 */
   2155 L_4602972D:
   2156     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x4602972D: ret  */
   2157     RECOMP_REGS_OUT();
   2158 }
   2159 
   2160 void sub_4602972E(void) {
   2161     int _fpu_cmp = 0;
   2162     uint32_t _cf = 0;
   2163     int _df = 1;
   2164     uint32_t _flag_k = FK_NONE;
   2165     uint32_t _flag_a = 0, _flag_b = 0;
   2166     uint32_t _itail_tgt = 0;
   2167     RECOMP_REGS_LOCALS
   2168     RECOMP_ENTER(0x4602972Eu);
   2169 
   2170     goto L_4602972E;
   2171 L_46028567:
   2172     eax = MEM32(ecx + (-0xC)); /* 0x46028567: mov eax, dword ptr [ecx - 0xc] */
   2173     edx = ecx + (-0x4); /* 0x4602856A: lea edx, [ecx - 4] */
   2174     eax = MEM32(eax + 0x4); /* 0x4602856D: mov eax, dword ptr [eax + 4] */
   2175     MEM32(eax + ecx + (-0xC)) = 0x4602B9D4u; /* 0x46028570: mov dword ptr [eax + ecx - 0xc], 0x4602b9d4 */
   2176     eax = ecx + (-0xC); /* 0x46028578: lea eax, [ecx - 0xc] */
   2177     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2178     _cf = (eax) != 0;
   2179     eax = (uint32_t)(-(int32_t)eax); /* 0x4602857B: neg eax */
   2180     _flag_k = FK_CMP;
   2181     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4602857D: sbb eax, eax */
   2182       eax = _sc ? 0xFFFFFFFFu : 0;
   2183       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2184       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2185     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2186     eax = eax & edx; /* 0x4602857F: and eax, edx */
   2187     _cf = 0;
   2188     _flag_k = FK_TEST;
   2189     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   2190     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2191     eax = eax + 4; /* 0x46028581: add eax, 4 */
   2192     _flag_k = FK_ADD;
   2193     ecx = MEM32(eax + (-0x4)); /* 0x46028584: mov ecx, dword ptr [eax - 4] */
   2194     ecx = MEM32(ecx + 0x4); /* 0x46028587: mov ecx, dword ptr [ecx + 4] */
   2195     MEM32(ecx + eax + (-0x4)) = 0x4602B358u; /* 0x4602858A: mov dword ptr [ecx + eax - 4], 0x4602b358 */
   2196     eax = MEM32(edx + (-0x8)); /* 0x46028592: mov eax, dword ptr [edx - 8] */
   2197     eax = MEM32(eax + 0x4); /* 0x46028595: mov eax, dword ptr [eax + 4] */
   2198     MEM32(eax + edx + (-0x8)) = 0x4602B258u; /* 0x46028598: mov dword ptr [eax + edx - 8], 0x4602b258 */
   2199     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460285A0: ret  */
   2200 L_4602972E:
   2201     ecx = MEM32(ebp + (-0x14)); /* 0x4602972E: mov ecx, dword ptr [ebp - 0x14] */
   2202     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   2203     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2204     ecx = ecx + 0xCu; /* 0x46029731: add ecx, 0xc */
   2205     _flag_k = FK_ADD;
   2206     RECOMP_BACKEDGE();
   2207     goto L_46028567; /* 0x46029734: jmp 0x46028567 */
   2208     { RECOMP_REGS_OUT(); return; } /* end of function */
   2209     RECOMP_REGS_OUT();
   2210 }
   2211 
   2212 void sub_46029739(void) {
   2213     int _fpu_cmp = 0;
   2214     uint32_t _cf = 0;
   2215     int _df = 1;
   2216     uint32_t _flag_k = FK_NONE;
   2217     uint32_t _flag_a = 0, _flag_b = 0;
   2218     uint32_t _itail_tgt = 0;
   2219     RECOMP_REGS_LOCALS
   2220     RECOMP_ENTER(0x46029739u);
   2221 
   2222     goto L_46029739;
   2223 L_46002F11:
   2224     eax = 0x460294ADu; /* 0x46002F11: mov eax, 0x460294ad */
   2225     RECOMP_ICALL(0x46001535u); /* 0x46002F16: call 0x46001535 */ /* not lifted */
   2226     RECOMP_FLAGS_IN();
   2227     PUSH32(esp, ecx); /* 0x46002F1B: push ecx */
   2228     PUSH32(esp, esi); /* 0x46002F1C: push esi */
   2229     esi = ecx; /* 0x46002F1D: mov esi, ecx */
   2230     PUSH32(esp, edi); /* 0x46002F1F: push edi */
   2231     MEM32(ebp + (-0x10)) = esi; /* 0x46002F20: mov dword ptr [ebp - 0x10], esi */
   2232     MEM32(esi) = 0x4602B16Cu; /* 0x46002F23: mov dword ptr [esi], 0x4602b16c */
   2233     /* cmp MEM8(esi + 0x48), 0 */ /* 0x46002F29: cmp byte ptr [esi + 0x48], 0 */
   2234     _flag_a = (uint32_t)(MEM8(esi + 0x48)) << 24; _flag_b = (uint32_t)(0) << 24;
   2235     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2236     _flag_k = FK_NARROW(FK_CMP, 24);
   2237     MEM32(ebp + (-0x4)) = 1; /* 0x46002F2D: mov dword ptr [ebp - 4], 1 */
   2238     if (CMP_NE(_flag_a, _flag_b)) goto L_4601579B; /* 0x46002F34: jne 0x4601579b */
   2239 L_46002F3A:
   2240     edi = MEM32(esi + 0x44); /* 0x46002F3A: mov edi, dword ptr [esi + 0x44] */
   2241     /* test edi, edi */ /* 0x46002F3D: test edi, edi */
   2242     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2243     _cf = 0;
   2244     _flag_k = FK_TEST;
   2245     if (TEST_NZ(_flag_a, _flag_b)) goto L_460157A5; /* 0x46002F3F: jne 0x460157a5 */
   2246 L_46002F45:
   2247     ecx = esi + 0x4C; /* 0x46002F45: lea ecx, [esi + 0x4c] */
   2248     RECOMP_ICALL(0x46001CAEu); /* 0x46002F48: call 0x46001cae */ /* not lifted */
   2249     RECOMP_FLAGS_IN();
   2250     ecx = esi + 0x34; /* 0x46002F4D: lea ecx, [esi + 0x34] */
   2251     MEM32(esi) = 0x4602B3B8u; /* 0x46002F50: mov dword ptr [esi], 0x4602b3b8 */
   2252     RECOMP_ICALL(0x46001CAEu); /* 0x46002F56: call 0x46001cae */ /* not lifted */
   2253     RECOMP_FLAGS_IN();
   2254     ecx = MEM32(ebp + (-0xC)); /* 0x46002F5B: mov ecx, dword ptr [ebp - 0xc] */
   2255     edi = POP32_VAL(esp); /* 0x46002F5E: pop edi */
   2256     esi = POP32_VAL(esp); /* 0x46002F5F: pop esi */
   2257     MEM32(FS_BASE + (0)) = ecx; /* 0x46002F60: mov dword ptr fs:[0], ecx */
   2258     esp = ebp; ebp = POP32_VAL(esp); /* 0x46002F67: leave  */
   2259     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002F68: ret  */
   2260 L_4601579B:
   2261     RECOMP_ICALL(0x4601580Cu); /* 0x4601579B: call 0x4601580c */ /* not lifted */
   2262     RECOMP_FLAGS_IN();
   2263     RECOMP_BACKEDGE();
   2264     goto L_46002F3A; /* 0x460157A0: jmp 0x46002f3a */
   2265 L_460157A5:
   2266     PUSH32(esp, 1); /* 0x460157A5: push 1 */
   2267     ecx = edi; /* 0x460157A7: mov ecx, edi */
   2268     RECOMP_ICALL(0x46001A60u); /* 0x460157A9: call 0x46001a60 */ /* not lifted */
   2269     RECOMP_FLAGS_IN();
   2270     PUSH32(esp, edi); /* 0x460157AE: push edi */
   2271     RECOMP_ICALL(0x46002CE4u); /* 0x460157AF: call 0x46002ce4 */ /* not lifted */
   2272     RECOMP_FLAGS_IN();
   2273     ecx = POP32_VAL(esp); /* 0x460157B4: pop ecx */
   2274     RECOMP_BACKEDGE();
   2275     goto L_46002F45; /* 0x460157B5: jmp 0x46002f45 */
   2276 L_46029739:
   2277     ecx = MEM32(ebp + (-0x14)); /* 0x46029739: mov ecx, dword ptr [ebp - 0x14] */
   2278     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   2279     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2280     ecx = ecx + 0xCu; /* 0x4602973C: add ecx, 0xc */
   2281     _flag_k = FK_ADD;
   2282     RECOMP_BACKEDGE();
   2283     goto L_46002F11; /* 0x4602973F: jmp 0x46002f11 */
   2284     { RECOMP_REGS_OUT(); return; } /* end of function */
   2285     RECOMP_REGS_OUT();
   2286 }
   2287 
   2288 void sub_46029744(void) {
   2289     int _fpu_cmp = 0;
   2290     uint32_t _cf = 0;
   2291     int _df = 1;
   2292     uint32_t _flag_k = FK_NONE;
   2293     uint32_t _flag_a = 0, _flag_b = 0;
   2294     uint32_t _itail_tgt = 0;
   2295     RECOMP_REGS_LOCALS
   2296     RECOMP_ENTER(0x46029744u);
   2297 
   2298     goto L_46029744;
   2299 L_46028258:
   2300     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
   2301 L_46029744:
   2302     eax = 0x460312A8u; /* 0x46029744: mov eax, 0x460312a8 */
   2303 L_46029749:
   2304     RECOMP_BACKEDGE();
   2305     goto L_46028258; /* 0x46029749: jmp 0x46028258 */
   2306     { RECOMP_REGS_OUT(); return; } /* end of function */
   2307   _ljump:
   2308     switch (_itail_tgt) {
   2309       case 0x46028258u: goto L_46028258;
   2310       case 0x46029744u: goto L_46029744;
   2311       case 0x46029749u: goto L_46029749;
   2312       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2313     }
   2314     RECOMP_REGS_OUT();
   2315 }
   2316 
   2317 void sub_4602974E(void) {
   2318     int _fpu_cmp = 0;
   2319     uint32_t _cf = 0;
   2320     int _df = 1;
   2321     uint32_t _flag_k = FK_NONE;
   2322     uint32_t _flag_a = 0, _flag_b = 0;
   2323     uint32_t _itail_tgt = 0;
   2324     RECOMP_REGS_LOCALS
   2325     RECOMP_ENTER(0x4602974Eu);
   2326 
   2327     goto L_4602974E;
   2328 L_46028567:
   2329     eax = MEM32(ecx + (-0xC)); /* 0x46028567: mov eax, dword ptr [ecx - 0xc] */
   2330     edx = ecx + (-0x4); /* 0x4602856A: lea edx, [ecx - 4] */
   2331     eax = MEM32(eax + 0x4); /* 0x4602856D: mov eax, dword ptr [eax + 4] */
   2332     MEM32(eax + ecx + (-0xC)) = 0x4602B9D4u; /* 0x46028570: mov dword ptr [eax + ecx - 0xc], 0x4602b9d4 */
   2333     eax = ecx + (-0xC); /* 0x46028578: lea eax, [ecx - 0xc] */
   2334     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2335     _cf = (eax) != 0;
   2336     eax = (uint32_t)(-(int32_t)eax); /* 0x4602857B: neg eax */
   2337     _flag_k = FK_CMP;
   2338     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x4602857D: sbb eax, eax */
   2339       eax = _sc ? 0xFFFFFFFFu : 0;
   2340       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2341       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2342     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2343     eax = eax & edx; /* 0x4602857F: and eax, edx */
   2344     _cf = 0;
   2345     _flag_k = FK_TEST;
   2346     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   2347     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2348     eax = eax + 4; /* 0x46028581: add eax, 4 */
   2349     _flag_k = FK_ADD;
   2350     ecx = MEM32(eax + (-0x4)); /* 0x46028584: mov ecx, dword ptr [eax - 4] */
   2351     ecx = MEM32(ecx + 0x4); /* 0x46028587: mov ecx, dword ptr [ecx + 4] */
   2352     MEM32(ecx + eax + (-0x4)) = 0x4602B358u; /* 0x4602858A: mov dword ptr [ecx + eax - 4], 0x4602b358 */
   2353     eax = MEM32(edx + (-0x8)); /* 0x46028592: mov eax, dword ptr [edx - 8] */
   2354     eax = MEM32(eax + 0x4); /* 0x46028595: mov eax, dword ptr [eax + 4] */
   2355     MEM32(eax + edx + (-0x8)) = 0x4602B258u; /* 0x46028598: mov dword ptr [eax + edx - 8], 0x4602b258 */
   2356     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460285A0: ret  */
   2357 L_4602974E:
   2358     ecx = MEM32(ebp + (-0x10)); /* 0x4602974E: mov ecx, dword ptr [ebp - 0x10] */
   2359     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x54u);
   2360     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2361     ecx = ecx - 0x54u; /* 0x46029751: sub ecx, 0x54 */
   2362     _flag_k = FK_CMP;
   2363     RECOMP_BACKEDGE();
   2364     goto L_46028567; /* 0x46029754: jmp 0x46028567 */
   2365     { RECOMP_REGS_OUT(); return; } /* end of function */
   2366     RECOMP_REGS_OUT();
   2367 }
   2368 
   2369 void sub_46029759(void) {
   2370     int _fpu_cmp = 0;
   2371     uint32_t _cf = 0;
   2372     int _df = 1;
   2373     uint32_t _flag_k = FK_NONE;
   2374     uint32_t _flag_a = 0, _flag_b = 0;
   2375     uint32_t _itail_tgt = 0;
   2376     RECOMP_REGS_LOCALS
   2377     RECOMP_ENTER(0x46029759u);
   2378 
   2379     goto L_46029759;
   2380 L_46028258:
   2381     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
   2382 L_46029759:
   2383     eax = 0x460312E0u; /* 0x46029759: mov eax, 0x460312e0 */
   2384 L_4602975E:
   2385     RECOMP_BACKEDGE();
   2386     goto L_46028258; /* 0x4602975E: jmp 0x46028258 */
   2387     { RECOMP_REGS_OUT(); return; } /* end of function */
   2388   _ljump:
   2389     switch (_itail_tgt) {
   2390       case 0x46028258u: goto L_46028258;
   2391       case 0x46029759u: goto L_46029759;
   2392       case 0x4602975Eu: goto L_4602975E;
   2393       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2394     }
   2395     RECOMP_REGS_OUT();
   2396 }
   2397 
   2398 void sub_46029763(void) {
   2399     int _fpu_cmp = 0;
   2400     uint32_t _cf = 0;
   2401     int _df = 1;
   2402     uint32_t _flag_k = FK_NONE;
   2403     uint32_t _flag_a = 0, _flag_b = 0;
   2404     uint32_t _itail_tgt = 0;
   2405     RECOMP_REGS_LOCALS
   2406     RECOMP_ENTER(0x46029763u);
   2407 
   2408     goto L_46029763;
   2409 L_46002DA4:
   2410     MEM32(ecx) = 0x4602B5E8u; /* 0x46002DA4: mov dword ptr [ecx], 0x4602b5e8 */
   2411     goto L_46002DC7; /* 0x46002DAA: jmp 0x46002dc7 */
   2412 L_46002DC7:
   2413     eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */
   2414     RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */
   2415     RECOMP_FLAGS_IN();
   2416     PUSH32(esp, ecx); /* 0x46002DD1: push ecx */
   2417     PUSH32(esp, esi); /* 0x46002DD2: push esi */
   2418     esi = ecx; /* 0x46002DD3: mov esi, ecx */
   2419     MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */
   2420     MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */
   2421     eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */
   2422     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0);
   2423     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */
   2424     _cf = 0;
   2425     _flag_k = FK_TEST;
   2426     /* test eax, eax */ /* 0x46002DE5: test eax, eax */
   2427     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2428     _cf = 0;
   2429     _flag_k = FK_TEST;
   2430     if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */
   2431 L_46002DE9:
   2432     _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24;
   2433     MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */
   2434     _flag_k = FK_NARROW(FK_DEC, 24);
   2435     eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */
   2436     /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */
   2437     _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24;
   2438     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2439     _flag_k = FK_NARROW(FK_CMP, 24);
   2440     if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */
   2441 L_46002DFB:
   2442     ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */
   2443     RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */
   2444     RECOMP_FLAGS_IN();
   2445     ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */
   2446     esi = POP32_VAL(esp); /* 0x46002E06: pop esi */
   2447     MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */
   2448     esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave  */
   2449     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret  */
   2450 L_46002E10:
   2451     ecx = esi; /* 0x46002E10: mov ecx, esi */
   2452     RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */
   2453     RECOMP_FLAGS_IN();
   2454     RECOMP_BACKEDGE();
   2455     goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */
   2456 L_46029763:
   2457     eax = MEM32(ebp + (-0x10)); /* 0x46029763: mov eax, dword ptr [ebp - 0x10] */
   2458     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2459     eax = eax & 1; /* 0x46029766: and eax, 1 */
   2460     _cf = 0;
   2461     _flag_k = FK_TEST;
   2462     /* test eax, eax */ /* 0x46029769: test eax, eax */
   2463     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2464     _cf = 0;
   2465     _flag_k = FK_TEST;
   2466     if (TEST_Z(_flag_a, _flag_b)) goto L_46029778; /* 0x4602976B: je 0x46029778 */
   2467 L_4602976D:
   2468     ecx = MEM32(ebp + (-0x14)); /* 0x4602976D: mov ecx, dword ptr [ebp - 0x14] */
   2469     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x60u);
   2470     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2471     ecx = ecx + 0x60u; /* 0x46029770: add ecx, 0x60 */
   2472     _flag_k = FK_ADD;
   2473     RECOMP_BACKEDGE();
   2474     goto L_46002DA4; /* 0x46029773: jmp 0x46002da4 */
   2475 L_46029778:
   2476     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46029778: ret  */
   2477     RECOMP_REGS_OUT();
   2478 }
   2479 
   2480 void sub_46029779(void) {
   2481     int _fpu_cmp = 0;
   2482     uint32_t _cf = 0;
   2483     int _df = 1;
   2484     uint32_t _flag_k = FK_NONE;
   2485     uint32_t _flag_a = 0, _flag_b = 0;
   2486     uint32_t _itail_tgt = 0;
   2487     RECOMP_REGS_LOCALS
   2488     RECOMP_ENTER(0x46029779u);
   2489 
   2490     goto L_46029779;
   2491 L_460285C7:
   2492     eax = MEM32(ecx + (-0xC)); /* 0x460285C7: mov eax, dword ptr [ecx - 0xc] */
   2493     edx = ecx + (-0x4); /* 0x460285CA: lea edx, [ecx - 4] */
   2494     eax = MEM32(eax + 0x4); /* 0x460285CD: mov eax, dword ptr [eax + 4] */
   2495     MEM32(eax + ecx + (-0xC)) = 0x4602B9ECu; /* 0x460285D0: mov dword ptr [eax + ecx - 0xc], 0x4602b9ec */
   2496     eax = ecx + (-0xC); /* 0x460285D8: lea eax, [ecx - 0xc] */
   2497     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2498     _cf = (eax) != 0;
   2499     eax = (uint32_t)(-(int32_t)eax); /* 0x460285DB: neg eax */
   2500     _flag_k = FK_CMP;
   2501     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x460285DD: sbb eax, eax */
   2502       eax = _sc ? 0xFFFFFFFFu : 0;
   2503       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2504       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2505     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2506     eax = eax & edx; /* 0x460285DF: and eax, edx */
   2507     _cf = 0;
   2508     _flag_k = FK_TEST;
   2509     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   2510     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2511     eax = eax + 4; /* 0x460285E1: add eax, 4 */
   2512     _flag_k = FK_ADD;
   2513     ecx = MEM32(eax + (-0x4)); /* 0x460285E4: mov ecx, dword ptr [eax - 4] */
   2514     ecx = MEM32(ecx + 0x4); /* 0x460285E7: mov ecx, dword ptr [ecx + 4] */
   2515     MEM32(ecx + eax + (-0x4)) = 0x4602B6A8u; /* 0x460285EA: mov dword ptr [ecx + eax - 4], 0x4602b6a8 */
   2516     eax = MEM32(edx + (-0x8)); /* 0x460285F2: mov eax, dword ptr [edx - 8] */
   2517     eax = MEM32(eax + 0x4); /* 0x460285F5: mov eax, dword ptr [eax + 4] */
   2518     MEM32(eax + edx + (-0x8)) = 0x4602B5D8u; /* 0x460285F8: mov dword ptr [eax + edx - 8], 0x4602b5d8 */
   2519     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46028600: ret  */
   2520 L_46029779:
   2521     ecx = MEM32(ebp + (-0x14)); /* 0x46029779: mov ecx, dword ptr [ebp - 0x14] */
   2522     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   2523     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2524     ecx = ecx + 0xCu; /* 0x4602977C: add ecx, 0xc */
   2525     _flag_k = FK_ADD;
   2526     RECOMP_BACKEDGE();
   2527     goto L_460285C7; /* 0x4602977F: jmp 0x460285c7 */
   2528     { RECOMP_REGS_OUT(); return; } /* end of function */
   2529     RECOMP_REGS_OUT();
   2530 }
   2531 
   2532 void sub_46029784(void) {
   2533     int _fpu_cmp = 0;
   2534     uint32_t _cf = 0;
   2535     int _df = 1;
   2536     uint32_t _flag_k = FK_NONE;
   2537     uint32_t _flag_a = 0, _flag_b = 0;
   2538     uint32_t _itail_tgt = 0;
   2539     RECOMP_REGS_LOCALS
   2540     RECOMP_ENTER(0x46029784u);
   2541 
   2542     goto L_46029784;
   2543 L_46028258:
   2544     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
   2545 L_46029784:
   2546     eax = 0x46031308u; /* 0x46029784: mov eax, 0x46031308 */
   2547 L_46029789:
   2548     RECOMP_BACKEDGE();
   2549     goto L_46028258; /* 0x46029789: jmp 0x46028258 */
   2550     { RECOMP_REGS_OUT(); return; } /* end of function */
   2551   _ljump:
   2552     switch (_itail_tgt) {
   2553       case 0x46028258u: goto L_46028258;
   2554       case 0x46029784u: goto L_46029784;
   2555       case 0x46029789u: goto L_46029789;
   2556       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2557     }
   2558     RECOMP_REGS_OUT();
   2559 }
   2560 
   2561 void sub_4602978E(void) {
   2562     int _fpu_cmp = 0;
   2563     uint32_t _cf = 0;
   2564     int _df = 1;
   2565     uint32_t _flag_k = FK_NONE;
   2566     uint32_t _flag_a = 0, _flag_b = 0;
   2567     uint32_t _itail_tgt = 0;
   2568     RECOMP_REGS_LOCALS
   2569     RECOMP_ENTER(0x4602978Eu);
   2570 
   2571     goto L_4602978E;
   2572 L_46002DA4:
   2573     MEM32(ecx) = 0x4602B5E8u; /* 0x46002DA4: mov dword ptr [ecx], 0x4602b5e8 */
   2574     goto L_46002DC7; /* 0x46002DAA: jmp 0x46002dc7 */
   2575 L_46002DC7:
   2576     eax = 0x4602A7C7u; /* 0x46002DC7: mov eax, 0x4602a7c7 */
   2577     RECOMP_ICALL(0x46001535u); /* 0x46002DCC: call 0x46001535 */ /* not lifted */
   2578     RECOMP_FLAGS_IN();
   2579     PUSH32(esp, ecx); /* 0x46002DD1: push ecx */
   2580     PUSH32(esp, esi); /* 0x46002DD2: push esi */
   2581     esi = ecx; /* 0x46002DD3: mov esi, ecx */
   2582     MEM32(ebp + (-0x10)) = esi; /* 0x46002DD5: mov dword ptr [ebp - 0x10], esi */
   2583     MEM32(esi) = 0x4602B708u; /* 0x46002DD8: mov dword ptr [esi], 0x4602b708 */
   2584     eax = MEM32(esi + 0x24); /* 0x46002DDE: mov eax, dword ptr [esi + 0x24] */
   2585     _flag_a = (uint32_t)(MEM32(ebp + (-0x4))); _flag_b = (uint32_t)(0);
   2586     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) & 0; /* 0x46002DE1: and dword ptr [ebp - 4], 0 */
   2587     _cf = 0;
   2588     _flag_k = FK_TEST;
   2589     /* test eax, eax */ /* 0x46002DE5: test eax, eax */
   2590     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2591     _cf = 0;
   2592     _flag_k = FK_TEST;
   2593     if (TEST_Z(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DE7: jbe 0x46002e10 */
   2594 L_46002DE9:
   2595     _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(1) << 24;
   2596     MEM8(eax + 0x4605B2C0) = (uint8_t)(MEM8(eax + 0x4605B2C0) - 1); /* 0x46002DE9: dec byte ptr [eax + 0x4605b2c0] */
   2597     _flag_k = FK_NARROW(FK_DEC, 24);
   2598     eax = MEM32(esi + 0x24); /* 0x46002DEF: mov eax, dword ptr [esi + 0x24] */
   2599     /* cmp MEM8(eax + 0x4605B2C0), 0 */ /* 0x46002DF2: cmp byte ptr [eax + 0x4605b2c0], 0 */
   2600     _flag_a = (uint32_t)(MEM8(eax + 0x4605B2C0)) << 24; _flag_b = (uint32_t)(0) << 24;
   2601     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2602     _flag_k = FK_NARROW(FK_CMP, 24);
   2603     if (CMP_LE(_flag_a, _flag_b)) goto L_46002E10; /* 0x46002DF9: jle 0x46002e10 */
   2604 L_46002DFB:
   2605     ecx = esi + 0x20; /* 0x46002DFB: lea ecx, [esi + 0x20] */
   2606     RECOMP_ICALL(0x46001CAEu); /* 0x46002DFE: call 0x46001cae */ /* not lifted */
   2607     RECOMP_FLAGS_IN();
   2608     ecx = MEM32(ebp + (-0xC)); /* 0x46002E03: mov ecx, dword ptr [ebp - 0xc] */
   2609     esi = POP32_VAL(esp); /* 0x46002E06: pop esi */
   2610     MEM32(FS_BASE + (0)) = ecx; /* 0x46002E07: mov dword ptr fs:[0], ecx */
   2611     esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E0E: leave  */
   2612     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002E0F: ret  */
   2613 L_46002E10:
   2614     ecx = esi; /* 0x46002E10: mov ecx, esi */
   2615     RECOMP_ICALL(0x46002F83u); /* 0x46002E12: call 0x46002f83 */ /* not lifted */
   2616     RECOMP_FLAGS_IN();
   2617     RECOMP_BACKEDGE();
   2618     goto L_46002DFB; /* 0x46002E17: jmp 0x46002dfb */
   2619 L_4602978E:
   2620     eax = MEM32(ebp + (-0x10)); /* 0x4602978E: mov eax, dword ptr [ebp - 0x10] */
   2621     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2622     eax = eax & 1; /* 0x46029791: and eax, 1 */
   2623     _cf = 0;
   2624     _flag_k = FK_TEST;
   2625     /* test eax, eax */ /* 0x46029794: test eax, eax */
   2626     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2627     _cf = 0;
   2628     _flag_k = FK_TEST;
   2629     if (TEST_Z(_flag_a, _flag_b)) goto L_460297A3; /* 0x46029796: je 0x460297a3 */
   2630 L_46029798:
   2631     ecx = MEM32(ebp + (-0x14)); /* 0x46029798: mov ecx, dword ptr [ebp - 0x14] */
   2632     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x60u);
   2633     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2634     ecx = ecx + 0x60u; /* 0x4602979B: add ecx, 0x60 */
   2635     _flag_k = FK_ADD;
   2636     RECOMP_BACKEDGE();
   2637     goto L_46002DA4; /* 0x4602979E: jmp 0x46002da4 */
   2638 L_460297A3:
   2639     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460297A3: ret  */
   2640     RECOMP_REGS_OUT();
   2641 }
   2642 
   2643 void sub_460297A4(void) {
   2644     int _fpu_cmp = 0;
   2645     uint32_t _cf = 0;
   2646     int _df = 1;
   2647     uint32_t _flag_k = FK_NONE;
   2648     uint32_t _flag_a = 0, _flag_b = 0;
   2649     uint32_t _itail_tgt = 0;
   2650     RECOMP_REGS_LOCALS
   2651     RECOMP_ENTER(0x460297A4u);
   2652 
   2653     goto L_460297A4;
   2654 L_460285C7:
   2655     eax = MEM32(ecx + (-0xC)); /* 0x460285C7: mov eax, dword ptr [ecx - 0xc] */
   2656     edx = ecx + (-0x4); /* 0x460285CA: lea edx, [ecx - 4] */
   2657     eax = MEM32(eax + 0x4); /* 0x460285CD: mov eax, dword ptr [eax + 4] */
   2658     MEM32(eax + ecx + (-0xC)) = 0x4602B9ECu; /* 0x460285D0: mov dword ptr [eax + ecx - 0xc], 0x4602b9ec */
   2659     eax = ecx + (-0xC); /* 0x460285D8: lea eax, [ecx - 0xc] */
   2660     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2661     _cf = (eax) != 0;
   2662     eax = (uint32_t)(-(int32_t)eax); /* 0x460285DB: neg eax */
   2663     _flag_k = FK_CMP;
   2664     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x460285DD: sbb eax, eax */
   2665       eax = _sc ? 0xFFFFFFFFu : 0;
   2666       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2667       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2668     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2669     eax = eax & edx; /* 0x460285DF: and eax, edx */
   2670     _cf = 0;
   2671     _flag_k = FK_TEST;
   2672     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   2673     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2674     eax = eax + 4; /* 0x460285E1: add eax, 4 */
   2675     _flag_k = FK_ADD;
   2676     ecx = MEM32(eax + (-0x4)); /* 0x460285E4: mov ecx, dword ptr [eax - 4] */
   2677     ecx = MEM32(ecx + 0x4); /* 0x460285E7: mov ecx, dword ptr [ecx + 4] */
   2678     MEM32(ecx + eax + (-0x4)) = 0x4602B6A8u; /* 0x460285EA: mov dword ptr [ecx + eax - 4], 0x4602b6a8 */
   2679     eax = MEM32(edx + (-0x8)); /* 0x460285F2: mov eax, dword ptr [edx - 8] */
   2680     eax = MEM32(eax + 0x4); /* 0x460285F5: mov eax, dword ptr [eax + 4] */
   2681     MEM32(eax + edx + (-0x8)) = 0x4602B5D8u; /* 0x460285F8: mov dword ptr [eax + edx - 8], 0x4602b5d8 */
   2682     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46028600: ret  */
   2683 L_460297A4:
   2684     ecx = MEM32(ebp + (-0x14)); /* 0x460297A4: mov ecx, dword ptr [ebp - 0x14] */
   2685     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   2686     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2687     ecx = ecx + 0xCu; /* 0x460297A7: add ecx, 0xc */
   2688     _flag_k = FK_ADD;
   2689     RECOMP_BACKEDGE();
   2690     goto L_460285C7; /* 0x460297AA: jmp 0x460285c7 */
   2691     { RECOMP_REGS_OUT(); return; } /* end of function */
   2692     RECOMP_REGS_OUT();
   2693 }
   2694 
   2695 void sub_460297AF(void) {
   2696     int _fpu_cmp = 0;
   2697     uint32_t _cf = 0;
   2698     int _df = 1;
   2699     uint32_t _flag_k = FK_NONE;
   2700     uint32_t _flag_a = 0, _flag_b = 0;
   2701     uint32_t _itail_tgt = 0;
   2702     RECOMP_REGS_LOCALS
   2703     RECOMP_ENTER(0x460297AFu);
   2704 
   2705     goto L_460297AF;
   2706 L_46002E49:
   2707     eax = 0x460294F9u; /* 0x46002E49: mov eax, 0x460294f9 */
   2708     RECOMP_ICALL(0x46001535u); /* 0x46002E4E: call 0x46001535 */ /* not lifted */
   2709     RECOMP_FLAGS_IN();
   2710     PUSH32(esp, ecx); /* 0x46002E53: push ecx */
   2711     PUSH32(esp, esi); /* 0x46002E54: push esi */
   2712     esi = ecx; /* 0x46002E55: mov esi, ecx */
   2713     PUSH32(esp, edi); /* 0x46002E57: push edi */
   2714     MEM32(ebp + (-0x10)) = esi; /* 0x46002E58: mov dword ptr [ebp - 0x10], esi */
   2715     MEM32(esi) = 0x4602B508u; /* 0x46002E5B: mov dword ptr [esi], 0x4602b508 */
   2716     /* cmp MEM8(esi + 0x48), 0 */ /* 0x46002E61: cmp byte ptr [esi + 0x48], 0 */
   2717     _flag_a = (uint32_t)(MEM8(esi + 0x48)) << 24; _flag_b = (uint32_t)(0) << 24;
   2718     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2719     _flag_k = FK_NARROW(FK_CMP, 24);
   2720     MEM32(ebp + (-0x4)) = 1; /* 0x46002E65: mov dword ptr [ebp - 4], 1 */
   2721     if (CMP_NE(_flag_a, _flag_b)) goto L_46015D05; /* 0x46002E6C: jne 0x46015d05 */
   2722 L_46002E72:
   2723     edi = MEM32(esi + 0x44); /* 0x46002E72: mov edi, dword ptr [esi + 0x44] */
   2724     /* test edi, edi */ /* 0x46002E75: test edi, edi */
   2725     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2726     _cf = 0;
   2727     _flag_k = FK_TEST;
   2728     if (TEST_NZ(_flag_a, _flag_b)) goto L_46015D0F; /* 0x46002E77: jne 0x46015d0f */
   2729 L_46002E7D:
   2730     ecx = esi + 0x4C; /* 0x46002E7D: lea ecx, [esi + 0x4c] */
   2731     RECOMP_ICALL(0x46001CAEu); /* 0x46002E80: call 0x46001cae */ /* not lifted */
   2732     RECOMP_FLAGS_IN();
   2733     ecx = esi + 0x34; /* 0x46002E85: lea ecx, [esi + 0x34] */
   2734     MEM32(esi) = 0x4602B4D0u; /* 0x46002E88: mov dword ptr [esi], 0x4602b4d0 */
   2735     RECOMP_ICALL(0x46001CAEu); /* 0x46002E8E: call 0x46001cae */ /* not lifted */
   2736     RECOMP_FLAGS_IN();
   2737     ecx = MEM32(ebp + (-0xC)); /* 0x46002E93: mov ecx, dword ptr [ebp - 0xc] */
   2738     edi = POP32_VAL(esp); /* 0x46002E96: pop edi */
   2739     esi = POP32_VAL(esp); /* 0x46002E97: pop esi */
   2740     MEM32(FS_BASE + (0)) = ecx; /* 0x46002E98: mov dword ptr fs:[0], ecx */
   2741     esp = ebp; ebp = POP32_VAL(esp); /* 0x46002E9F: leave  */
   2742     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002EA0: ret  */
   2743 L_46015D05:
   2744     RECOMP_ICALL(0x46015D76u); /* 0x46015D05: call 0x46015d76 */ /* not lifted */
   2745     RECOMP_FLAGS_IN();
   2746     RECOMP_BACKEDGE();
   2747     goto L_46002E72; /* 0x46015D0A: jmp 0x46002e72 */
   2748 L_46015D0F:
   2749     PUSH32(esp, 1); /* 0x46015D0F: push 1 */
   2750     ecx = edi; /* 0x46015D11: mov ecx, edi */
   2751     RECOMP_ICALL(0x46001A60u); /* 0x46015D13: call 0x46001a60 */ /* not lifted */
   2752     RECOMP_FLAGS_IN();
   2753     PUSH32(esp, edi); /* 0x46015D18: push edi */
   2754     RECOMP_ICALL(0x46002CE4u); /* 0x46015D19: call 0x46002ce4 */ /* not lifted */
   2755     RECOMP_FLAGS_IN();
   2756     ecx = POP32_VAL(esp); /* 0x46015D1E: pop ecx */
   2757     RECOMP_BACKEDGE();
   2758     goto L_46002E7D; /* 0x46015D1F: jmp 0x46002e7d */
   2759 L_460297AF:
   2760     ecx = MEM32(ebp + (-0x14)); /* 0x460297AF: mov ecx, dword ptr [ebp - 0x14] */
   2761     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0xCu);
   2762     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2763     ecx = ecx + 0xCu; /* 0x460297B2: add ecx, 0xc */
   2764     _flag_k = FK_ADD;
   2765     RECOMP_BACKEDGE();
   2766     goto L_46002E49; /* 0x460297B5: jmp 0x46002e49 */
   2767     { RECOMP_REGS_OUT(); return; } /* end of function */
   2768     RECOMP_REGS_OUT();
   2769 }
   2770 
   2771 void sub_460297BA(void) {
   2772     int _fpu_cmp = 0;
   2773     uint32_t _cf = 0;
   2774     int _df = 1;
   2775     uint32_t _flag_k = FK_NONE;
   2776     uint32_t _flag_a = 0, _flag_b = 0;
   2777     uint32_t _itail_tgt = 0;
   2778     RECOMP_REGS_LOCALS
   2779     RECOMP_ENTER(0x460297BAu);
   2780 
   2781     goto L_460297BA;
   2782 L_46028258:
   2783     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
   2784 L_460297BA:
   2785     eax = 0x46031338u; /* 0x460297BA: mov eax, 0x46031338 */
   2786 L_460297BF:
   2787     RECOMP_BACKEDGE();
   2788     goto L_46028258; /* 0x460297BF: jmp 0x46028258 */
   2789     { RECOMP_REGS_OUT(); return; } /* end of function */
   2790   _ljump:
   2791     switch (_itail_tgt) {
   2792       case 0x46028258u: goto L_46028258;
   2793       case 0x460297BAu: goto L_460297BA;
   2794       case 0x460297BFu: goto L_460297BF;
   2795       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2796     }
   2797     RECOMP_REGS_OUT();
   2798 }
   2799 
   2800 void sub_460297C4(void) {
   2801     int _fpu_cmp = 0;
   2802     uint32_t _cf = 0;
   2803     int _df = 1;
   2804     uint32_t _flag_k = FK_NONE;
   2805     uint32_t _flag_a = 0, _flag_b = 0;
   2806     uint32_t _itail_tgt = 0;
   2807     RECOMP_REGS_LOCALS
   2808     RECOMP_ENTER(0x460297C4u);
   2809 
   2810     goto L_460297C4;
   2811 L_460285C7:
   2812     eax = MEM32(ecx + (-0xC)); /* 0x460285C7: mov eax, dword ptr [ecx - 0xc] */
   2813     edx = ecx + (-0x4); /* 0x460285CA: lea edx, [ecx - 4] */
   2814     eax = MEM32(eax + 0x4); /* 0x460285CD: mov eax, dword ptr [eax + 4] */
   2815     MEM32(eax + ecx + (-0xC)) = 0x4602B9ECu; /* 0x460285D0: mov dword ptr [eax + ecx - 0xc], 0x4602b9ec */
   2816     eax = ecx + (-0xC); /* 0x460285D8: lea eax, [ecx - 0xc] */
   2817     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(eax);
   2818     _cf = (eax) != 0;
   2819     eax = (uint32_t)(-(int32_t)eax); /* 0x460285DB: neg eax */
   2820     _flag_k = FK_CMP;
   2821     { uint32_t _sa = eax, _sb = eax, _sc = _cf; /* 0x460285DD: sbb eax, eax */
   2822       eax = _sc ? 0xFFFFFFFFu : 0;
   2823       _flag_a = recomp_flags_sbb(_sa, _sb, _sc); _flag_b = 0;
   2824       _flag_k = FK_EFLAGS; _cf = _flag_a & 1u; }
   2825     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edx);
   2826     eax = eax & edx; /* 0x460285DF: and eax, edx */
   2827     _cf = 0;
   2828     _flag_k = FK_TEST;
   2829     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   2830     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2831     eax = eax + 4; /* 0x460285E1: add eax, 4 */
   2832     _flag_k = FK_ADD;
   2833     ecx = MEM32(eax + (-0x4)); /* 0x460285E4: mov ecx, dword ptr [eax - 4] */
   2834     ecx = MEM32(ecx + 0x4); /* 0x460285E7: mov ecx, dword ptr [ecx + 4] */
   2835     MEM32(ecx + eax + (-0x4)) = 0x4602B6A8u; /* 0x460285EA: mov dword ptr [ecx + eax - 4], 0x4602b6a8 */
   2836     eax = MEM32(edx + (-0x8)); /* 0x460285F2: mov eax, dword ptr [edx - 8] */
   2837     eax = MEM32(eax + 0x4); /* 0x460285F5: mov eax, dword ptr [eax + 4] */
   2838     MEM32(eax + edx + (-0x8)) = 0x4602B5D8u; /* 0x460285F8: mov dword ptr [eax + edx - 8], 0x4602b5d8 */
   2839     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46028600: ret  */
   2840 L_460297C4:
   2841     ecx = MEM32(ebp + (-0x10)); /* 0x460297C4: mov ecx, dword ptr [ebp - 0x10] */
   2842     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(0x54u);
   2843     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2844     ecx = ecx - 0x54u; /* 0x460297C7: sub ecx, 0x54 */
   2845     _flag_k = FK_CMP;
   2846     RECOMP_BACKEDGE();
   2847     goto L_460285C7; /* 0x460297CA: jmp 0x460285c7 */
   2848     { RECOMP_REGS_OUT(); return; } /* end of function */
   2849     RECOMP_REGS_OUT();
   2850 }
   2851 
   2852 void sub_460297CF(void) {
   2853     int _fpu_cmp = 0;
   2854     uint32_t _cf = 0;
   2855     int _df = 1;
   2856     uint32_t _flag_k = FK_NONE;
   2857     uint32_t _flag_a = 0, _flag_b = 0;
   2858     uint32_t _itail_tgt = 0;
   2859     RECOMP_REGS_LOCALS
   2860     RECOMP_ENTER(0x460297CFu);
   2861 
   2862     goto L_460297CF;
   2863 L_46028258:
   2864     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
   2865 L_460297CF:
   2866     eax = 0x46031370u; /* 0x460297CF: mov eax, 0x46031370 */
   2867 L_460297D4:
   2868     RECOMP_BACKEDGE();
   2869     goto L_46028258; /* 0x460297D4: jmp 0x46028258 */
   2870     { RECOMP_REGS_OUT(); return; } /* end of function */
   2871   _ljump:
   2872     switch (_itail_tgt) {
   2873       case 0x46028258u: goto L_46028258;
   2874       case 0x460297CFu: goto L_460297CF;
   2875       case 0x460297D4u: goto L_460297D4;
   2876       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2877     }
   2878     RECOMP_REGS_OUT();
   2879 }
   2880 
   2881 void sub_460297D9(void) {
   2882     int _fpu_cmp = 0;
   2883     uint32_t _cf = 0;
   2884     int _df = 1;
   2885     uint32_t _flag_k = FK_NONE;
   2886     uint32_t _flag_a = 0, _flag_b = 0;
   2887     uint32_t _itail_tgt = 0;
   2888     RECOMP_REGS_LOCALS
   2889     RECOMP_ENTER(0x460297D9u);
   2890 
   2891 L_460297D9:
   2892     ecx = MEM32(ebp + (-0x10)); /* 0x460297D9: mov ecx, dword ptr [ebp - 0x10] */
   2893     MEM32(ecx) = 0x4602B424u; /* 0x460297DC: mov dword ptr [ecx], 0x4602b424 */
   2894     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460297E2: ret  */
   2895     RECOMP_REGS_OUT();
   2896 }
   2897 
   2898 void sub_460297DC(void) {
   2899     int _fpu_cmp = 0;
   2900     uint32_t _cf = 0;
   2901     int _df = 1;
   2902     uint32_t _flag_k = FK_NONE;
   2903     uint32_t _flag_a = 0, _flag_b = 0;
   2904     uint32_t _itail_tgt = 0;
   2905     RECOMP_REGS_LOCALS
   2906     RECOMP_ENTER(0x460297DCu);
   2907 
   2908 L_460297DC:
   2909     MEM32(ecx) = 0x4602B424u; /* 0x460297DC: mov dword ptr [ecx], 0x4602b424 */
   2910     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460297E2: ret  */
   2911     RECOMP_REGS_OUT();
   2912 }
   2913 
   2914 void sub_460297E3(void) {
   2915     int _fpu_cmp = 0;
   2916     uint32_t _cf = 0;
   2917     int _df = 1;
   2918     uint32_t _flag_k = FK_NONE;
   2919     uint32_t _flag_a = 0, _flag_b = 0;
   2920     uint32_t _itail_tgt = 0;
   2921     RECOMP_REGS_LOCALS
   2922     RECOMP_ENTER(0x460297E3u);
   2923 
   2924     goto L_460297E3;
   2925 L_4602836B:
   2926     eax = 0x4602A575u; /* 0x4602836B: mov eax, 0x4602a575 */
   2927     RECOMP_ICALL(0x46001535u); /* 0x46028370: call 0x46001535 */ /* not lifted */
   2928     RECOMP_FLAGS_IN();
   2929     PUSH32(esp, ecx); /* 0x46028375: push ecx */
   2930     PUSH32(esp, esi); /* 0x46028376: push esi */
   2931     esi = ecx; /* 0x46028377: mov esi, ecx */
   2932     MEM32(ebp + (-0x10)) = esi; /* 0x46028379: mov dword ptr [ebp - 0x10], esi */
   2933     eax = MEM32(esi + 0x28); /* 0x4602837C: mov eax, dword ptr [esi + 0x28] */
   2934     MEM32(ebp + (-0x4)) = 2; /* 0x4602837F: mov dword ptr [ebp - 4], 2 */
   2935     /* test eax, eax */ /* 0x46028386: test eax, eax */
   2936     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2937     _cf = 0;
   2938     _flag_k = FK_TEST;
   2939     if (TEST_Z(_flag_a, _flag_b)) goto L_460283A1; /* 0x46028388: jbe 0x460283a1 */
   2940 L_4602838A:
   2941     eax = MEM32(esi + 0x24); /* 0x4602838A: mov eax, dword ptr [esi + 0x24] */
   2942     /* test eax, eax */ /* 0x4602838D: test eax, eax */
   2943     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2944     _cf = 0;
   2945     _flag_k = FK_TEST;
   2946     if (TEST_NZ(_flag_a, _flag_b)) goto L_46028396; /* 0x4602838F: jne 0x46028396 */
   2947 L_46028391:
   2948     eax = 0x4602B7C9u; /* 0x46028391: mov eax, 0x4602b7c9 */
   2949 L_46028396:
   2950     PUSH32(esp, eax); /* 0x46028396: push eax */
   2951     PUSH32(esp, 0); /* 0x46028397: push 0 */
   2952     RECOMP_ICALL(MEM32(0x4602B09C)); /* 0x46028399: call dword ptr [0x4602b09c] */
   2953     RECOMP_FLAGS_IN();
   2954     ecx = POP32_VAL(esp); /* 0x4602839F: pop ecx */
   2955     ecx = POP32_VAL(esp); /* 0x460283A0: pop ecx */
   2956 L_460283A1:
   2957     PUSH32(esp, 1); /* 0x460283A1: push 1 */
   2958     ecx = esi + 0x30; /* 0x460283A3: lea ecx, [esi + 0x30] */
   2959     RECOMP_ICALL(0x46001A60u); /* 0x460283A6: call 0x46001a60 */ /* not lifted */
   2960     RECOMP_FLAGS_IN();
   2961     PUSH32(esp, 1); /* 0x460283AB: push 1 */
   2962     ecx = esi + 0x20; /* 0x460283AD: lea ecx, [esi + 0x20] */
   2963     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x460283B0: mov byte ptr [ebp - 4], 1 */
   2964     RECOMP_ICALL(0x46001A60u); /* 0x460283B4: call 0x46001a60 */ /* not lifted */
   2965     RECOMP_FLAGS_IN();
   2966     _flag_a = (uint32_t)(MEM8(ebp + (-0x4))) << 24; _flag_b = (uint32_t)(0) << 24;
   2967     MEM8(ebp + (-0x4)) = (uint8_t)(MEM8(ebp + (-0x4)) & 0); /* 0x460283B9: and byte ptr [ebp - 4], 0 */
   2968     _cf = 0;
   2969     _flag_k = FK_NARROW(FK_TEST, 24);
   2970     PUSH32(esp, 1); /* 0x460283BD: push 1 */
   2971     ecx = esi + 0x10; /* 0x460283BF: lea ecx, [esi + 0x10] */
   2972     RECOMP_ICALL(0x46001A60u); /* 0x460283C2: call 0x46001a60 */ /* not lifted */
   2973     RECOMP_FLAGS_IN();
   2974     _flag_a = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); _flag_b = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu));
   2975     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) | 0xFFFFFFFFu; /* 0x460283C7: or dword ptr [ebp - 4], 0xffffffff */
   2976     _cf = 0;
   2977     _flag_k = FK_TEST;
   2978     PUSH32(esp, 1); /* 0x460283CB: push 1 */
   2979     ecx = esi; /* 0x460283CD: mov ecx, esi */
   2980     RECOMP_ICALL(0x46001A60u); /* 0x460283CF: call 0x46001a60 */ /* not lifted */
   2981     RECOMP_FLAGS_IN();
   2982     ecx = MEM32(ebp + (-0xC)); /* 0x460283D4: mov ecx, dword ptr [ebp - 0xc] */
   2983     esi = POP32_VAL(esp); /* 0x460283D7: pop esi */
   2984     MEM32(FS_BASE + (0)) = ecx; /* 0x460283D8: mov dword ptr fs:[0], ecx */
   2985     esp = ebp; ebp = POP32_VAL(esp); /* 0x460283DF: leave  */
   2986     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460283E0: ret  */
   2987 L_460297E3:
   2988     ecx = ebp + (-0x50); /* 0x460297E3: lea ecx, [ebp - 0x50] */
   2989     RECOMP_BACKEDGE();
   2990     goto L_4602836B; /* 0x460297E6: jmp 0x4602836b */
   2991     { RECOMP_REGS_OUT(); return; } /* end of function */
   2992     RECOMP_REGS_OUT();
   2993 }
   2994 
   2995 void sub_460297EB(void) {
   2996     int _fpu_cmp = 0;
   2997     uint32_t _cf = 0;
   2998     int _df = 1;
   2999     uint32_t _flag_k = FK_NONE;
   3000     uint32_t _flag_a = 0, _flag_b = 0;
   3001     uint32_t _itail_tgt = 0;
   3002     RECOMP_REGS_LOCALS
   3003     RECOMP_ENTER(0x460297EBu);
   3004 
   3005     goto L_460297EB;
   3006 L_46028258:
   3007     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
   3008 L_460297EB:
   3009     eax = 0x46031398u; /* 0x460297EB: mov eax, 0x46031398 */
   3010 L_460297F0:
   3011     RECOMP_BACKEDGE();
   3012     goto L_46028258; /* 0x460297F0: jmp 0x46028258 */
   3013     { RECOMP_REGS_OUT(); return; } /* end of function */
   3014   _ljump:
   3015     switch (_itail_tgt) {
   3016       case 0x46028258u: goto L_46028258;
   3017       case 0x460297EBu: goto L_460297EB;
   3018       case 0x460297F0u: goto L_460297F0;
   3019       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3020     }
   3021     RECOMP_REGS_OUT();
   3022 }
   3023 
   3024 void sub_460297F5(void) {
   3025     int _fpu_cmp = 0;
   3026     uint32_t _cf = 0;
   3027     int _df = 1;
   3028     uint32_t _flag_k = FK_NONE;
   3029     uint32_t _flag_a = 0, _flag_b = 0;
   3030     uint32_t _itail_tgt = 0;
   3031     RECOMP_REGS_LOCALS
   3032     RECOMP_ENTER(0x460297F5u);
   3033 
   3034     goto L_460297F5;
   3035 L_460297DC:
   3036     MEM32(ecx) = 0x4602B424u; /* 0x460297DC: mov dword ptr [ecx], 0x4602b424 */
   3037     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460297E2: ret  */
   3038 L_460297F5:
   3039     ecx = MEM32(ebp + (-0x10)); /* 0x460297F5: mov ecx, dword ptr [ebp - 0x10] */
   3040     RECOMP_BACKEDGE();
   3041     goto L_460297DC; /* 0x460297F8: jmp 0x460297dc */
   3042     { RECOMP_REGS_OUT(); return; } /* end of function */
   3043     RECOMP_REGS_OUT();
   3044 }
   3045 
   3046 void sub_460297FA(void) {
   3047     int _fpu_cmp = 0;
   3048     uint32_t _cf = 0;
   3049     int _df = 1;
   3050     uint32_t _flag_k = FK_NONE;
   3051     uint32_t _flag_a = 0, _flag_b = 0;
   3052     uint32_t _itail_tgt = 0;
   3053     RECOMP_REGS_LOCALS
   3054     RECOMP_ENTER(0x460297FAu);
   3055 
   3056     goto L_460297FA;
   3057 L_46028258:
   3058     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
   3059 L_460297FA:
   3060     eax = 0x460313C8u; /* 0x460297FA: mov eax, 0x460313c8 */
   3061 L_460297FF:
   3062     RECOMP_BACKEDGE();
   3063     goto L_46028258; /* 0x460297FF: jmp 0x46028258 */
   3064     { RECOMP_REGS_OUT(); return; } /* end of function */
   3065   _ljump:
   3066     switch (_itail_tgt) {
   3067       case 0x46028258u: goto L_46028258;
   3068       case 0x460297FAu: goto L_460297FA;
   3069       case 0x460297FFu: goto L_460297FF;
   3070       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3071     }
   3072     RECOMP_REGS_OUT();
   3073 }
   3074 
   3075 void sub_46029804(void) {
   3076     int _fpu_cmp = 0;
   3077     uint32_t _cf = 0;
   3078     int _df = 1;
   3079     uint32_t _flag_k = FK_NONE;
   3080     uint32_t _flag_a = 0, _flag_b = 0;
   3081     uint32_t _itail_tgt = 0;
   3082     RECOMP_REGS_LOCALS
   3083     RECOMP_ENTER(0x46029804u);
   3084 
   3085     goto L_46029804;
   3086 L_460297DC:
   3087     MEM32(ecx) = 0x4602B424u; /* 0x460297DC: mov dword ptr [ecx], 0x4602b424 */
   3088     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460297E2: ret  */
   3089 L_46029804:
   3090     ecx = MEM32(ebp + (-0x10)); /* 0x46029804: mov ecx, dword ptr [ebp - 0x10] */
   3091     RECOMP_BACKEDGE();
   3092     goto L_460297DC; /* 0x46029807: jmp 0x460297dc */
   3093     { RECOMP_REGS_OUT(); return; } /* end of function */
   3094     RECOMP_REGS_OUT();
   3095 }
   3096 
   3097 void sub_46029809(void) {
   3098     int _fpu_cmp = 0;
   3099     uint32_t _cf = 0;
   3100     int _df = 1;
   3101     uint32_t _flag_k = FK_NONE;
   3102     uint32_t _flag_a = 0, _flag_b = 0;
   3103     uint32_t _itail_tgt = 0;
   3104     RECOMP_REGS_LOCALS
   3105     RECOMP_ENTER(0x46029809u);
   3106 
   3107     goto L_46029809;
   3108 L_4602836B:
   3109     eax = 0x4602A575u; /* 0x4602836B: mov eax, 0x4602a575 */
   3110     RECOMP_ICALL(0x46001535u); /* 0x46028370: call 0x46001535 */ /* not lifted */
   3111     RECOMP_FLAGS_IN();
   3112     PUSH32(esp, ecx); /* 0x46028375: push ecx */
   3113     PUSH32(esp, esi); /* 0x46028376: push esi */
   3114     esi = ecx; /* 0x46028377: mov esi, ecx */
   3115     MEM32(ebp + (-0x10)) = esi; /* 0x46028379: mov dword ptr [ebp - 0x10], esi */
   3116     eax = MEM32(esi + 0x28); /* 0x4602837C: mov eax, dword ptr [esi + 0x28] */
   3117     MEM32(ebp + (-0x4)) = 2; /* 0x4602837F: mov dword ptr [ebp - 4], 2 */
   3118     /* test eax, eax */ /* 0x46028386: test eax, eax */
   3119     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3120     _cf = 0;
   3121     _flag_k = FK_TEST;
   3122     if (TEST_Z(_flag_a, _flag_b)) goto L_460283A1; /* 0x46028388: jbe 0x460283a1 */
   3123 L_4602838A:
   3124     eax = MEM32(esi + 0x24); /* 0x4602838A: mov eax, dword ptr [esi + 0x24] */
   3125     /* test eax, eax */ /* 0x4602838D: test eax, eax */
   3126     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3127     _cf = 0;
   3128     _flag_k = FK_TEST;
   3129     if (TEST_NZ(_flag_a, _flag_b)) goto L_46028396; /* 0x4602838F: jne 0x46028396 */
   3130 L_46028391:
   3131     eax = 0x4602B7C9u; /* 0x46028391: mov eax, 0x4602b7c9 */
   3132 L_46028396:
   3133     PUSH32(esp, eax); /* 0x46028396: push eax */
   3134     PUSH32(esp, 0); /* 0x46028397: push 0 */
   3135     RECOMP_ICALL(MEM32(0x4602B09C)); /* 0x46028399: call dword ptr [0x4602b09c] */
   3136     RECOMP_FLAGS_IN();
   3137     ecx = POP32_VAL(esp); /* 0x4602839F: pop ecx */
   3138     ecx = POP32_VAL(esp); /* 0x460283A0: pop ecx */
   3139 L_460283A1:
   3140     PUSH32(esp, 1); /* 0x460283A1: push 1 */
   3141     ecx = esi + 0x30; /* 0x460283A3: lea ecx, [esi + 0x30] */
   3142     RECOMP_ICALL(0x46001A60u); /* 0x460283A6: call 0x46001a60 */ /* not lifted */
   3143     RECOMP_FLAGS_IN();
   3144     PUSH32(esp, 1); /* 0x460283AB: push 1 */
   3145     ecx = esi + 0x20; /* 0x460283AD: lea ecx, [esi + 0x20] */
   3146     MEM8(ebp + (-0x4)) = (uint8_t)(1); /* 0x460283B0: mov byte ptr [ebp - 4], 1 */
   3147     RECOMP_ICALL(0x46001A60u); /* 0x460283B4: call 0x46001a60 */ /* not lifted */
   3148     RECOMP_FLAGS_IN();
   3149     _flag_a = (uint32_t)(MEM8(ebp + (-0x4))) << 24; _flag_b = (uint32_t)(0) << 24;
   3150     MEM8(ebp + (-0x4)) = (uint8_t)(MEM8(ebp + (-0x4)) & 0); /* 0x460283B9: and byte ptr [ebp - 4], 0 */
   3151     _cf = 0;
   3152     _flag_k = FK_NARROW(FK_TEST, 24);
   3153     PUSH32(esp, 1); /* 0x460283BD: push 1 */
   3154     ecx = esi + 0x10; /* 0x460283BF: lea ecx, [esi + 0x10] */
   3155     RECOMP_ICALL(0x46001A60u); /* 0x460283C2: call 0x46001a60 */ /* not lifted */
   3156     RECOMP_FLAGS_IN();
   3157     _flag_a = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu)); _flag_b = (uint32_t)((MEM32(ebp + (-0x4)) | 0xFFFFFFFFu));
   3158     MEM32(ebp + (-0x4)) = MEM32(ebp + (-0x4)) | 0xFFFFFFFFu; /* 0x460283C7: or dword ptr [ebp - 4], 0xffffffff */
   3159     _cf = 0;
   3160     _flag_k = FK_TEST;
   3161     PUSH32(esp, 1); /* 0x460283CB: push 1 */
   3162     ecx = esi; /* 0x460283CD: mov ecx, esi */
   3163     RECOMP_ICALL(0x46001A60u); /* 0x460283CF: call 0x46001a60 */ /* not lifted */
   3164     RECOMP_FLAGS_IN();
   3165     ecx = MEM32(ebp + (-0xC)); /* 0x460283D4: mov ecx, dword ptr [ebp - 0xc] */
   3166     esi = POP32_VAL(esp); /* 0x460283D7: pop esi */
   3167     MEM32(FS_BASE + (0)) = ecx; /* 0x460283D8: mov dword ptr fs:[0], ecx */
   3168     esp = ebp; ebp = POP32_VAL(esp); /* 0x460283DF: leave  */
   3169     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460283E0: ret  */
   3170 L_46029809:
   3171     ecx = ebp + (-0x50); /* 0x46029809: lea ecx, [ebp - 0x50] */
   3172     RECOMP_BACKEDGE();
   3173     goto L_4602836B; /* 0x4602980C: jmp 0x4602836b */
   3174     { RECOMP_REGS_OUT(); return; } /* end of function */
   3175     RECOMP_REGS_OUT();
   3176 }
   3177 
   3178 void sub_46029811(void) {
   3179     int _fpu_cmp = 0;
   3180     uint32_t _cf = 0;
   3181     int _df = 1;
   3182     uint32_t _flag_k = FK_NONE;
   3183     uint32_t _flag_a = 0, _flag_b = 0;
   3184     uint32_t _itail_tgt = 0;
   3185     RECOMP_REGS_LOCALS
   3186     RECOMP_ENTER(0x46029811u);
   3187 
   3188     goto L_46029811;
   3189 L_46028258:
   3190     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
   3191 L_46029811:
   3192     eax = 0x460313F0u; /* 0x46029811: mov eax, 0x460313f0 */
   3193 L_46029816:
   3194     RECOMP_BACKEDGE();
   3195     goto L_46028258; /* 0x46029816: jmp 0x46028258 */
   3196     { RECOMP_REGS_OUT(); return; } /* end of function */
   3197   _ljump:
   3198     switch (_itail_tgt) {
   3199       case 0x46028258u: goto L_46028258;
   3200       case 0x46029811u: goto L_46029811;
   3201       case 0x46029816u: goto L_46029816;
   3202       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3203     }
   3204     RECOMP_REGS_OUT();
   3205 }
   3206 
   3207 void sub_4602981B(void) {
   3208     int _fpu_cmp = 0;
   3209     uint32_t _cf = 0;
   3210     int _df = 1;
   3211     uint32_t _flag_k = FK_NONE;
   3212     uint32_t _flag_a = 0, _flag_b = 0;
   3213     uint32_t _itail_tgt = 0;
   3214     RECOMP_REGS_LOCALS
   3215     RECOMP_ENTER(0x4602981Bu);
   3216 
   3217     goto L_4602981B;
   3218 L_460297DC:
   3219     MEM32(ecx) = 0x4602B424u; /* 0x460297DC: mov dword ptr [ecx], 0x4602b424 */
   3220     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460297E2: ret  */
   3221 L_4602981B:
   3222     ecx = MEM32(ebp + (-0x10)); /* 0x4602981B: mov ecx, dword ptr [ebp - 0x10] */
   3223     RECOMP_BACKEDGE();
   3224     goto L_460297DC; /* 0x4602981E: jmp 0x460297dc */
   3225     { RECOMP_REGS_OUT(); return; } /* end of function */
   3226     RECOMP_REGS_OUT();
   3227 }
   3228 
   3229 void sub_46029820(void) {
   3230     int _fpu_cmp = 0;
   3231     uint32_t _cf = 0;
   3232     int _df = 1;
   3233     uint32_t _flag_k = FK_NONE;
   3234     uint32_t _flag_a = 0, _flag_b = 0;
   3235     uint32_t _itail_tgt = 0;
   3236     RECOMP_REGS_LOCALS
   3237     RECOMP_ENTER(0x46029820u);
   3238 
   3239     goto L_46029820;
   3240 L_46028258:
   3241     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
   3242 L_46029820:
   3243     eax = 0x46031420u; /* 0x46029820: mov eax, 0x46031420 */
   3244 L_46029825:
   3245     RECOMP_BACKEDGE();
   3246     goto L_46028258; /* 0x46029825: jmp 0x46028258 */
   3247     { RECOMP_REGS_OUT(); return; } /* end of function */
   3248   _ljump:
   3249     switch (_itail_tgt) {
   3250       case 0x46028258u: goto L_46028258;
   3251       case 0x46029820u: goto L_46029820;
   3252       case 0x46029825u: goto L_46029825;
   3253       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3254     }
   3255     RECOMP_REGS_OUT();
   3256 }
   3257 
   3258 void sub_4602982A(void) {
   3259     int _fpu_cmp = 0;
   3260     uint32_t _cf = 0;
   3261     int _df = 1;
   3262     uint32_t _flag_k = FK_NONE;
   3263     uint32_t _flag_a = 0, _flag_b = 0;
   3264     uint32_t _itail_tgt = 0;
   3265     RECOMP_REGS_LOCALS
   3266     RECOMP_ENTER(0x4602982Au);
   3267 
   3268     goto L_4602982A;
   3269 L_460297DC:
   3270     MEM32(ecx) = 0x4602B424u; /* 0x460297DC: mov dword ptr [ecx], 0x4602b424 */
   3271     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460297E2: ret  */
   3272 L_4602982A:
   3273     ecx = MEM32(ebp + (-0x10)); /* 0x4602982A: mov ecx, dword ptr [ebp - 0x10] */
   3274     RECOMP_BACKEDGE();
   3275     goto L_460297DC; /* 0x4602982D: jmp 0x460297dc */
   3276     { RECOMP_REGS_OUT(); return; } /* end of function */
   3277     RECOMP_REGS_OUT();
   3278 }
   3279 
   3280 void sub_4602982F(void) {
   3281     int _fpu_cmp = 0;
   3282     uint32_t _cf = 0;
   3283     int _df = 1;
   3284     uint32_t _flag_k = FK_NONE;
   3285     uint32_t _flag_a = 0, _flag_b = 0;
   3286     uint32_t _itail_tgt = 0;
   3287     RECOMP_REGS_LOCALS
   3288     RECOMP_ENTER(0x4602982Fu);
   3289 
   3290     goto L_4602982F;
   3291 L_46028258:
   3292     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
   3293 L_4602982F:
   3294     eax = 0x46031448u; /* 0x4602982F: mov eax, 0x46031448 */
   3295 L_46029834:
   3296     RECOMP_BACKEDGE();
   3297     goto L_46028258; /* 0x46029834: jmp 0x46028258 */
   3298     { RECOMP_REGS_OUT(); return; } /* end of function */
   3299   _ljump:
   3300     switch (_itail_tgt) {
   3301       case 0x46028258u: goto L_46028258;
   3302       case 0x4602982Fu: goto L_4602982F;
   3303       case 0x46029834u: goto L_46029834;
   3304       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3305     }
   3306     RECOMP_REGS_OUT();
   3307 }
   3308 
   3309 void sub_46029839(void) {
   3310     int _fpu_cmp = 0;
   3311     uint32_t _cf = 0;
   3312     int _df = 1;
   3313     uint32_t _flag_k = FK_NONE;
   3314     uint32_t _flag_a = 0, _flag_b = 0;
   3315     uint32_t _itail_tgt = 0;
   3316     RECOMP_REGS_LOCALS
   3317     RECOMP_ENTER(0x46029839u);
   3318 
   3319     goto L_46029839;
   3320 L_460297DC:
   3321     MEM32(ecx) = 0x4602B424u; /* 0x460297DC: mov dword ptr [ecx], 0x4602b424 */
   3322     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460297E2: ret  */
   3323 L_46029839:
   3324     ecx = MEM32(ebp + (-0x10)); /* 0x46029839: mov ecx, dword ptr [ebp - 0x10] */
   3325     RECOMP_BACKEDGE();
   3326     goto L_460297DC; /* 0x4602983C: jmp 0x460297dc */
   3327     { RECOMP_REGS_OUT(); return; } /* end of function */
   3328     RECOMP_REGS_OUT();
   3329 }
   3330 
   3331 void sub_4602983E(void) {
   3332     int _fpu_cmp = 0;
   3333     uint32_t _cf = 0;
   3334     int _df = 1;
   3335     uint32_t _flag_k = FK_NONE;
   3336     uint32_t _flag_a = 0, _flag_b = 0;
   3337     uint32_t _itail_tgt = 0;
   3338     RECOMP_REGS_LOCALS
   3339     RECOMP_ENTER(0x4602983Eu);
   3340 
   3341     goto L_4602983E;
   3342 L_46028258:
   3343     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
   3344 L_4602983E:
   3345     eax = 0x46031470u; /* 0x4602983E: mov eax, 0x46031470 */
   3346 L_46029843:
   3347     RECOMP_BACKEDGE();
   3348     goto L_46028258; /* 0x46029843: jmp 0x46028258 */
   3349     { RECOMP_REGS_OUT(); return; } /* end of function */
   3350   _ljump:
   3351     switch (_itail_tgt) {
   3352       case 0x46028258u: goto L_46028258;
   3353       case 0x4602983Eu: goto L_4602983E;
   3354       case 0x46029843u: goto L_46029843;
   3355       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3356     }
   3357     RECOMP_REGS_OUT();
   3358 }
   3359 
   3360 void sub_46029848(void) {
   3361     int _fpu_cmp = 0;
   3362     uint32_t _cf = 0;
   3363     int _df = 1;
   3364     uint32_t _flag_k = FK_NONE;
   3365     uint32_t _flag_a = 0, _flag_b = 0;
   3366     uint32_t _itail_tgt = 0;
   3367     RECOMP_REGS_LOCALS
   3368     RECOMP_ENTER(0x46029848u);
   3369 
   3370     goto L_46029848;
   3371 L_460297DC:
   3372     MEM32(ecx) = 0x4602B424u; /* 0x460297DC: mov dword ptr [ecx], 0x4602b424 */
   3373     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460297E2: ret  */
   3374 L_46029848:
   3375     ecx = MEM32(ebp + (-0x10)); /* 0x46029848: mov ecx, dword ptr [ebp - 0x10] */
   3376     RECOMP_BACKEDGE();
   3377     goto L_460297DC; /* 0x4602984B: jmp 0x460297dc */
   3378     { RECOMP_REGS_OUT(); return; } /* end of function */
   3379     RECOMP_REGS_OUT();
   3380 }
   3381 
   3382 void sub_4602984D(void) {
   3383     int _fpu_cmp = 0;
   3384     uint32_t _cf = 0;
   3385     int _df = 1;
   3386     uint32_t _flag_k = FK_NONE;
   3387     uint32_t _flag_a = 0, _flag_b = 0;
   3388     uint32_t _itail_tgt = 0;
   3389     RECOMP_REGS_LOCALS
   3390     RECOMP_ENTER(0x4602984Du);
   3391 
   3392     goto L_4602984D;
   3393 L_46028258:
   3394     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
   3395 L_4602984D:
   3396     eax = 0x46031498u; /* 0x4602984D: mov eax, 0x46031498 */
   3397 L_46029852:
   3398     RECOMP_BACKEDGE();
   3399     goto L_46028258; /* 0x46029852: jmp 0x46028258 */
   3400     { RECOMP_REGS_OUT(); return; } /* end of function */
   3401   _ljump:
   3402     switch (_itail_tgt) {
   3403       case 0x46028258u: goto L_46028258;
   3404       case 0x4602984Du: goto L_4602984D;
   3405       case 0x46029852u: goto L_46029852;
   3406       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3407     }
   3408     RECOMP_REGS_OUT();
   3409 }
   3410 
   3411 void sub_46029857(void) {
   3412     int _fpu_cmp = 0;
   3413     uint32_t _cf = 0;
   3414     int _df = 1;
   3415     uint32_t _flag_k = FK_NONE;
   3416     uint32_t _flag_a = 0, _flag_b = 0;
   3417     uint32_t _itail_tgt = 0;
   3418     RECOMP_REGS_LOCALS
   3419     RECOMP_ENTER(0x46029857u);
   3420 
   3421     goto L_46029857;
   3422 L_460297DC:
   3423     MEM32(ecx) = 0x4602B424u; /* 0x460297DC: mov dword ptr [ecx], 0x4602b424 */
   3424     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x460297E2: ret  */
   3425 L_46029857:
   3426     ecx = MEM32(ebp + (-0x10)); /* 0x46029857: mov ecx, dword ptr [ebp - 0x10] */
   3427     RECOMP_BACKEDGE();
   3428     goto L_460297DC; /* 0x4602985A: jmp 0x460297dc */
   3429     { RECOMP_REGS_OUT(); return; } /* end of function */
   3430     RECOMP_REGS_OUT();
   3431 }
   3432 
   3433 void sub_4602985C(void) {
   3434     int _fpu_cmp = 0;
   3435     uint32_t _cf = 0;
   3436     int _df = 1;
   3437     uint32_t _flag_k = FK_NONE;
   3438     uint32_t _flag_a = 0, _flag_b = 0;
   3439     uint32_t _itail_tgt = 0;
   3440     RECOMP_REGS_LOCALS
   3441     RECOMP_ENTER(0x4602985Cu);
   3442 
   3443     goto L_4602985C;
   3444 L_46028258:
   3445     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
   3446 L_4602985C:
   3447     eax = 0x460314C0u; /* 0x4602985C: mov eax, 0x460314c0 */
   3448 L_46029861:
   3449     RECOMP_BACKEDGE();
   3450     goto L_46028258; /* 0x46029861: jmp 0x46028258 */
   3451     { RECOMP_REGS_OUT(); return; } /* end of function */
   3452   _ljump:
   3453     switch (_itail_tgt) {
   3454       case 0x46028258u: goto L_46028258;
   3455       case 0x4602985Cu: goto L_4602985C;
   3456       case 0x46029861u: goto L_46029861;
   3457       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3458     }
   3459     RECOMP_REGS_OUT();
   3460 }
   3461 
   3462 void sub_46029866(void) {
   3463     int _fpu_cmp = 0;
   3464     uint32_t _cf = 0;
   3465     int _df = 1;
   3466     uint32_t _flag_k = FK_NONE;
   3467     uint32_t _flag_a = 0, _flag_b = 0;
   3468     uint32_t _itail_tgt = 0;
   3469     RECOMP_REGS_LOCALS
   3470     RECOMP_ENTER(0x46029866u);
   3471 
   3472     goto L_46029866;
   3473 L_4602877E:
   3474     MEM32(ecx) = 0x4602B424u; /* 0x4602877E: mov dword ptr [ecx], 0x4602b424 */
   3475     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46028784: ret  */
   3476 L_46029866:
   3477     ecx = MEM32(ebp + (-0x10)); /* 0x46029866: mov ecx, dword ptr [ebp - 0x10] */
   3478     RECOMP_BACKEDGE();
   3479     goto L_4602877E; /* 0x46029869: jmp 0x4602877e */
   3480     { RECOMP_REGS_OUT(); return; } /* end of function */
   3481     RECOMP_REGS_OUT();
   3482 }
   3483 
   3484 void sub_4602986E(void) {
   3485     int _fpu_cmp = 0;
   3486     uint32_t _cf = 0;
   3487     int _df = 1;
   3488     uint32_t _flag_k = FK_NONE;
   3489     uint32_t _flag_a = 0, _flag_b = 0;
   3490     uint32_t _itail_tgt = 0;
   3491     RECOMP_REGS_LOCALS
   3492     RECOMP_ENTER(0x4602986Eu);
   3493 
   3494     goto L_4602986E;
   3495 L_46028258:
   3496     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
   3497 L_4602986E:
   3498     eax = 0x460314E8u; /* 0x4602986E: mov eax, 0x460314e8 */
   3499 L_46029873:
   3500     RECOMP_BACKEDGE();
   3501     goto L_46028258; /* 0x46029873: jmp 0x46028258 */
   3502     { RECOMP_REGS_OUT(); return; } /* end of function */
   3503   _ljump:
   3504     switch (_itail_tgt) {
   3505       case 0x46028258u: goto L_46028258;
   3506       case 0x4602986Eu: goto L_4602986E;
   3507       case 0x46029873u: goto L_46029873;
   3508       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3509     }
   3510     RECOMP_REGS_OUT();
   3511 }
   3512 
   3513 void sub_46029878(void) {
   3514     int _fpu_cmp = 0;
   3515     uint32_t _cf = 0;
   3516     int _df = 1;
   3517     uint32_t _flag_k = FK_NONE;
   3518     uint32_t _flag_a = 0, _flag_b = 0;
   3519     uint32_t _itail_tgt = 0;
   3520     RECOMP_REGS_LOCALS
   3521     RECOMP_ENTER(0x46029878u);
   3522 
   3523     goto L_46029878;
   3524 L_46002CF0:
   3525     PUSH32(esp, 1); /* 0x46002CF0: push 1 */
   3526     RECOMP_ICALL(0x46001A60u); /* 0x46002CF2: call 0x46001a60 */ /* not lifted */
   3527     RECOMP_FLAGS_IN();
   3528     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002CF7: ret  */
   3529 L_46029878:
   3530     ecx = ebp + (-0x24); /* 0x46029878: lea ecx, [ebp - 0x24] */
   3531     RECOMP_BACKEDGE();
   3532     goto L_46002CF0; /* 0x4602987B: jmp 0x46002cf0 */
   3533     { RECOMP_REGS_OUT(); return; } /* end of function */
   3534     RECOMP_REGS_OUT();
   3535 }
   3536 
   3537 void sub_46029880(void) {
   3538     int _fpu_cmp = 0;
   3539     uint32_t _cf = 0;
   3540     int _df = 1;
   3541     uint32_t _flag_k = FK_NONE;
   3542     uint32_t _flag_a = 0, _flag_b = 0;
   3543     uint32_t _itail_tgt = 0;
   3544     RECOMP_REGS_LOCALS
   3545     RECOMP_ENTER(0x46029880u);
   3546 
   3547     goto L_46029880;
   3548 L_46002CF0:
   3549     PUSH32(esp, 1); /* 0x46002CF0: push 1 */
   3550     RECOMP_ICALL(0x46001A60u); /* 0x46002CF2: call 0x46001a60 */ /* not lifted */
   3551     RECOMP_FLAGS_IN();
   3552     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002CF7: ret  */
   3553 L_46029880:
   3554     ecx = ebp + (-0x34); /* 0x46029880: lea ecx, [ebp - 0x34] */
   3555     RECOMP_BACKEDGE();
   3556     goto L_46002CF0; /* 0x46029883: jmp 0x46002cf0 */
   3557     { RECOMP_REGS_OUT(); return; } /* end of function */
   3558     RECOMP_REGS_OUT();
   3559 }
   3560 
   3561 void sub_46029888(void) {
   3562     int _fpu_cmp = 0;
   3563     uint32_t _cf = 0;
   3564     int _df = 1;
   3565     uint32_t _flag_k = FK_NONE;
   3566     uint32_t _flag_a = 0, _flag_b = 0;
   3567     uint32_t _itail_tgt = 0;
   3568     RECOMP_REGS_LOCALS
   3569     RECOMP_ENTER(0x46029888u);
   3570 
   3571     goto L_46029888;
   3572 L_46028258:
   3573     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
   3574 L_46029888:
   3575     eax = 0x46031510u; /* 0x46029888: mov eax, 0x46031510 */
   3576 L_4602988D:
   3577     RECOMP_BACKEDGE();
   3578     goto L_46028258; /* 0x4602988D: jmp 0x46028258 */
   3579     { RECOMP_REGS_OUT(); return; } /* end of function */
   3580   _ljump:
   3581     switch (_itail_tgt) {
   3582       case 0x46028258u: goto L_46028258;
   3583       case 0x46029888u: goto L_46029888;
   3584       case 0x4602988Du: goto L_4602988D;
   3585       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3586     }
   3587     RECOMP_REGS_OUT();
   3588 }
   3589 
   3590 void sub_46029892(void) {
   3591     int _fpu_cmp = 0;
   3592     uint32_t _cf = 0;
   3593     int _df = 1;
   3594     uint32_t _flag_k = FK_NONE;
   3595     uint32_t _flag_a = 0, _flag_b = 0;
   3596     uint32_t _itail_tgt = 0;
   3597     RECOMP_REGS_LOCALS
   3598     RECOMP_ENTER(0x46029892u);
   3599 
   3600     goto L_46029892;
   3601 L_46002CF0:
   3602     PUSH32(esp, 1); /* 0x46002CF0: push 1 */
   3603     RECOMP_ICALL(0x46001A60u); /* 0x46002CF2: call 0x46001a60 */ /* not lifted */
   3604     RECOMP_FLAGS_IN();
   3605     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002CF7: ret  */
   3606 L_46029892:
   3607     ecx = ebp + (-0x1C); /* 0x46029892: lea ecx, [ebp - 0x1c] */
   3608     RECOMP_BACKEDGE();
   3609     goto L_46002CF0; /* 0x46029895: jmp 0x46002cf0 */
   3610     { RECOMP_REGS_OUT(); return; } /* end of function */
   3611     RECOMP_REGS_OUT();
   3612 }
   3613 
   3614 void sub_4602989A(void) {
   3615     int _fpu_cmp = 0;
   3616     uint32_t _cf = 0;
   3617     int _df = 1;
   3618     uint32_t _flag_k = FK_NONE;
   3619     uint32_t _flag_a = 0, _flag_b = 0;
   3620     uint32_t _itail_tgt = 0;
   3621     RECOMP_REGS_LOCALS
   3622     RECOMP_ENTER(0x4602989Au);
   3623 
   3624     goto L_4602989A;
   3625 L_46028258:
   3626     { _itail_tgt = (uint32_t)(MEM32(0x4602B004)); goto _ljump; }
   3627 L_4602989A:
   3628     eax = 0x46031540u; /* 0x4602989A: mov eax, 0x46031540 */
   3629 L_4602989F:
   3630     RECOMP_BACKEDGE();
   3631     goto L_46028258; /* 0x4602989F: jmp 0x46028258 */
   3632     { RECOMP_REGS_OUT(); return; } /* end of function */
   3633   _ljump:
   3634     switch (_itail_tgt) {
   3635       case 0x46028258u: goto L_46028258;
   3636       case 0x4602989Au: goto L_4602989A;
   3637       case 0x4602989Fu: goto L_4602989F;
   3638       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3639     }
   3640     RECOMP_REGS_OUT();
   3641 }
   3642 
   3643 void sub_460298A4(void) {
   3644     int _fpu_cmp = 0;
   3645     uint32_t _cf = 0;
   3646     int _df = 1;
   3647     uint32_t _flag_k = FK_NONE;
   3648     uint32_t _flag_a = 0, _flag_b = 0;
   3649     uint32_t _itail_tgt = 0;
   3650     RECOMP_REGS_LOCALS
   3651     RECOMP_ENTER(0x460298A4u);
   3652 
   3653     goto L_460298A4;
   3654 L_46001C9F:
   3655     edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */
   3656     PUSH32(esp, 1); /* 0x46001CA1: push 1 */
   3657     ecx = eax; /* 0x46001CA3: mov ecx, eax */
   3658     RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */
   3659     RECOMP_FLAGS_IN();
   3660     goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */
   3661 L_46001CAE:
   3662     ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */
   3663     /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */
   3664     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3665     _cf = 0;
   3666     _flag_k = FK_TEST;
   3667     if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */
   3668 L_46001CB4:
   3669     RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */
   3670     RECOMP_FLAGS_IN();
   3671     /* test eax, eax */ /* 0x46001CB9: test eax, eax */
   3672     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3673     _cf = 0;
   3674     _flag_k = FK_TEST;
   3675     RECOMP_BACKEDGE();
   3676     if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */
   3677 L_46001CBD:
   3678     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret  */
   3679 L_460298A4:
   3680     ecx = ebp + (-0x48); /* 0x460298A4: lea ecx, [ebp - 0x48] */
   3681     RECOMP_BACKEDGE();
   3682     goto L_46001CAE; /* 0x460298A7: jmp 0x46001cae */
   3683     { RECOMP_REGS_OUT(); return; } /* end of function */
   3684     RECOMP_REGS_OUT();
   3685 }
   3686 
   3687 void sub_460298AC(void) {
   3688     int _fpu_cmp = 0;
   3689     uint32_t _cf = 0;
   3690     int _df = 1;
   3691     uint32_t _flag_k = FK_NONE;
   3692     uint32_t _flag_a = 0, _flag_b = 0;
   3693     uint32_t _itail_tgt = 0;
   3694     RECOMP_REGS_LOCALS
   3695     RECOMP_ENTER(0x460298ACu);
   3696 
   3697     goto L_460298AC;
   3698 L_46001C9F:
   3699     edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */
   3700     PUSH32(esp, 1); /* 0x46001CA1: push 1 */
   3701     ecx = eax; /* 0x46001CA3: mov ecx, eax */
   3702     RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */
   3703     RECOMP_FLAGS_IN();
   3704     goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */
   3705 L_46001CAE:
   3706     ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */
   3707     /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */
   3708     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3709     _cf = 0;
   3710     _flag_k = FK_TEST;
   3711     if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */
   3712 L_46001CB4:
   3713     RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */
   3714     RECOMP_FLAGS_IN();
   3715     /* test eax, eax */ /* 0x46001CB9: test eax, eax */
   3716     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3717     _cf = 0;
   3718     _flag_k = FK_TEST;
   3719     RECOMP_BACKEDGE();
   3720     if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */
   3721 L_46001CBD:
   3722     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret  */
   3723 L_460298AC:
   3724     ecx = ebp + (-0x48); /* 0x460298AC: lea ecx, [ebp - 0x48] */
   3725     RECOMP_BACKEDGE();
   3726     goto L_46001CAE; /* 0x460298AF: jmp 0x46001cae */
   3727     { RECOMP_REGS_OUT(); return; } /* end of function */
   3728     RECOMP_REGS_OUT();
   3729 }
   3730 
   3731 void sub_460298B4(void) {
   3732     int _fpu_cmp = 0;
   3733     uint32_t _cf = 0;
   3734     int _df = 1;
   3735     uint32_t _flag_k = FK_NONE;
   3736     uint32_t _flag_a = 0, _flag_b = 0;
   3737     uint32_t _itail_tgt = 0;
   3738     RECOMP_REGS_LOCALS
   3739     RECOMP_ENTER(0x460298B4u);
   3740 
   3741     goto L_460298B4;
   3742 L_46001C9F:
   3743     edx = MEM32(eax); /* 0x46001C9F: mov edx, dword ptr [eax] */
   3744     PUSH32(esp, 1); /* 0x46001CA1: push 1 */
   3745     ecx = eax; /* 0x46001CA3: mov ecx, eax */
   3746     RECOMP_ICALL(MEM32(edx)); /* 0x46001CA5: call dword ptr [edx] */
   3747     RECOMP_FLAGS_IN();
   3748     goto L_46001CBD; /* 0x46001CA7: jmp 0x46001cbd */
   3749 L_46001CAE:
   3750     ecx = MEM32(ecx); /* 0x46001CAE: mov ecx, dword ptr [ecx] */
   3751     /* test ecx, ecx */ /* 0x46001CB0: test ecx, ecx */
   3752     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3753     _cf = 0;
   3754     _flag_k = FK_TEST;
   3755     if (TEST_Z(_flag_a, _flag_b)) goto L_46001CBD; /* 0x46001CB2: je 0x46001cbd */
   3756 L_46001CB4:
   3757     RECOMP_ICALL(0x46001CBEu); /* 0x46001CB4: call 0x46001cbe */ /* not lifted */
   3758     RECOMP_FLAGS_IN();
   3759     /* test eax, eax */ /* 0x46001CB9: test eax, eax */
   3760     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   3761     _cf = 0;
   3762     _flag_k = FK_TEST;
   3763     RECOMP_BACKEDGE();
   3764     if (TEST_NZ(_flag_a, _flag_b)) goto L_46001C9F; /* 0x46001CBB: jne 0x46001c9f */
   3765 L_46001CBD:
   3766     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46001CBD: ret  */
   3767 L_460298B4:
   3768     ecx = ebp + (-0x70); /* 0x460298B4: lea ecx, [ebp - 0x70] */
   3769     RECOMP_BACKEDGE();
   3770     goto L_46001CAE; /* 0x460298B7: jmp 0x46001cae */
   3771     { RECOMP_REGS_OUT(); return; } /* end of function */
   3772     RECOMP_REGS_OUT();
   3773 }
   3774 
   3775 void sub_460298BC(void) {
   3776     int _fpu_cmp = 0;
   3777     uint32_t _cf = 0;
   3778     int _df = 1;
   3779     uint32_t _flag_k = FK_NONE;
   3780     uint32_t _flag_a = 0, _flag_b = 0;
   3781     uint32_t _itail_tgt = 0;
   3782     RECOMP_REGS_LOCALS
   3783     RECOMP_ENTER(0x460298BCu);
   3784 
   3785     goto L_460298BC;
   3786 L_46002CF0:
   3787     PUSH32(esp, 1); /* 0x46002CF0: push 1 */
   3788     RECOMP_ICALL(0x46001A60u); /* 0x46002CF2: call 0x46001a60 */ /* not lifted */
   3789     RECOMP_FLAGS_IN();
   3790     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002CF7: ret  */
   3791 L_460298BC:
   3792     ecx = ebp + (-0x40); /* 0x460298BC: lea ecx, [ebp - 0x40] */
   3793     RECOMP_BACKEDGE();
   3794     goto L_46002CF0; /* 0x460298BF: jmp 0x46002cf0 */
   3795     { RECOMP_REGS_OUT(); return; } /* end of function */
   3796     RECOMP_REGS_OUT();
   3797 }
   3798 
   3799 void sub_460298C4(void) {
   3800     int _fpu_cmp = 0;
   3801     uint32_t _cf = 0;
   3802     int _df = 1;
   3803     uint32_t _flag_k = FK_NONE;
   3804     uint32_t _flag_a = 0, _flag_b = 0;
   3805     uint32_t _itail_tgt = 0;
   3806     RECOMP_REGS_LOCALS
   3807     RECOMP_ENTER(0x460298C4u);
   3808 
   3809     goto L_460298C4;
   3810 L_46002CF0:
   3811     PUSH32(esp, 1); /* 0x46002CF0: push 1 */
   3812     RECOMP_ICALL(0x46001A60u); /* 0x46002CF2: call 0x46001a60 */ /* not lifted */
   3813     RECOMP_FLAGS_IN();
   3814     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002CF7: ret  */
   3815 L_460298C4:
   3816     ecx = ebp + (-0x6C); /* 0x460298C4: lea ecx, [ebp - 0x6c] */
   3817     RECOMP_BACKEDGE();
   3818     goto L_46002CF0; /* 0x460298C7: jmp 0x46002cf0 */
   3819     { RECOMP_REGS_OUT(); return; } /* end of function */
   3820     RECOMP_REGS_OUT();
   3821 }
   3822 
   3823 void sub_460298CC(void) {
   3824     int _fpu_cmp = 0;
   3825     uint32_t _cf = 0;
   3826     int _df = 1;
   3827     uint32_t _flag_k = FK_NONE;
   3828     uint32_t _flag_a = 0, _flag_b = 0;
   3829     uint32_t _itail_tgt = 0;
   3830     RECOMP_REGS_LOCALS
   3831     RECOMP_ENTER(0x460298CCu);
   3832 
   3833     goto L_460298CC;
   3834 L_46002CF0:
   3835     PUSH32(esp, 1); /* 0x46002CF0: push 1 */
   3836     RECOMP_ICALL(0x46001A60u); /* 0x46002CF2: call 0x46001a60 */ /* not lifted */
   3837     RECOMP_FLAGS_IN();
   3838     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002CF7: ret  */
   3839 L_460298CC:
   3840     ecx = ebp + (-0x94); /* 0x460298CC: lea ecx, [ebp - 0x94] */
   3841     RECOMP_BACKEDGE();
   3842     goto L_46002CF0; /* 0x460298D2: jmp 0x46002cf0 */
   3843     { RECOMP_REGS_OUT(); return; } /* end of function */
   3844     RECOMP_REGS_OUT();
   3845 }
   3846 
   3847 void sub_460298D7(void) {
   3848     int _fpu_cmp = 0;
   3849     uint32_t _cf = 0;
   3850     int _df = 1;
   3851     uint32_t _flag_k = FK_NONE;
   3852     uint32_t _flag_a = 0, _flag_b = 0;
   3853     uint32_t _itail_tgt = 0;
   3854     RECOMP_REGS_LOCALS
   3855     RECOMP_ENTER(0x460298D7u);
   3856 
   3857     goto L_460298D7;
   3858 L_46002CF0:
   3859     PUSH32(esp, 1); /* 0x46002CF0: push 1 */
   3860     RECOMP_ICALL(0x46001A60u); /* 0x46002CF2: call 0x46001a60 */ /* not lifted */
   3861     RECOMP_FLAGS_IN();
   3862     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002CF7: ret  */
   3863 L_460298D7:
   3864     ecx = ebp + (-0x20); /* 0x460298D7: lea ecx, [ebp - 0x20] */
   3865     RECOMP_BACKEDGE();
   3866     goto L_46002CF0; /* 0x460298DA: jmp 0x46002cf0 */
   3867     { RECOMP_REGS_OUT(); return; } /* end of function */
   3868     RECOMP_REGS_OUT();
   3869 }
   3870 
   3871 void sub_460298DF(void) {
   3872     int _fpu_cmp = 0;
   3873     uint32_t _cf = 0;
   3874     int _df = 1;
   3875     uint32_t _flag_k = FK_NONE;
   3876     uint32_t _flag_a = 0, _flag_b = 0;
   3877     uint32_t _itail_tgt = 0;
   3878     RECOMP_REGS_LOCALS
   3879     RECOMP_ENTER(0x460298DFu);
   3880 
   3881     goto L_460298DF;
   3882 L_46002CF0:
   3883     PUSH32(esp, 1); /* 0x46002CF0: push 1 */
   3884     RECOMP_ICALL(0x46001A60u); /* 0x46002CF2: call 0x46001a60 */ /* not lifted */
   3885     RECOMP_FLAGS_IN();
   3886     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002CF7: ret  */
   3887 L_460298DF:
   3888     ecx = ebp + (-0xC4); /* 0x460298DF: lea ecx, [ebp - 0xc4] */
   3889     RECOMP_BACKEDGE();
   3890     goto L_46002CF0; /* 0x460298E5: jmp 0x46002cf0 */
   3891     { RECOMP_REGS_OUT(); return; } /* end of function */
   3892     RECOMP_REGS_OUT();
   3893 }
   3894 
   3895 void sub_460298EA(void) {
   3896     int _fpu_cmp = 0;
   3897     uint32_t _cf = 0;
   3898     int _df = 1;
   3899     uint32_t _flag_k = FK_NONE;
   3900     uint32_t _flag_a = 0, _flag_b = 0;
   3901     uint32_t _itail_tgt = 0;
   3902     RECOMP_REGS_LOCALS
   3903     RECOMP_ENTER(0x460298EAu);
   3904 
   3905     goto L_460298EA;
   3906 L_46002CF0:
   3907     PUSH32(esp, 1); /* 0x46002CF0: push 1 */
   3908     RECOMP_ICALL(0x46001A60u); /* 0x46002CF2: call 0x46001a60 */ /* not lifted */
   3909     RECOMP_FLAGS_IN();
   3910     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002CF7: ret  */
   3911 L_460298EA:
   3912     ecx = ebp + (-0xE4); /* 0x460298EA: lea ecx, [ebp - 0xe4] */
   3913     RECOMP_BACKEDGE();
   3914     goto L_46002CF0; /* 0x460298F0: jmp 0x46002cf0 */
   3915     { RECOMP_REGS_OUT(); return; } /* end of function */
   3916     RECOMP_REGS_OUT();
   3917 }
   3918 
   3919 void sub_460298F5(void) {
   3920     int _fpu_cmp = 0;
   3921     uint32_t _cf = 0;
   3922     int _df = 1;
   3923     uint32_t _flag_k = FK_NONE;
   3924     uint32_t _flag_a = 0, _flag_b = 0;
   3925     uint32_t _itail_tgt = 0;
   3926     RECOMP_REGS_LOCALS
   3927     RECOMP_ENTER(0x460298F5u);
   3928 
   3929     goto L_460298F5;
   3930 L_46002CF0:
   3931     PUSH32(esp, 1); /* 0x46002CF0: push 1 */
   3932     RECOMP_ICALL(0x46001A60u); /* 0x46002CF2: call 0x46001a60 */ /* not lifted */
   3933     RECOMP_FLAGS_IN();
   3934     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002CF7: ret  */
   3935 L_460298F5:
   3936     ecx = ebp + (-0xA4); /* 0x460298F5: lea ecx, [ebp - 0xa4] */
   3937     RECOMP_BACKEDGE();
   3938     goto L_46002CF0; /* 0x460298FB: jmp 0x46002cf0 */
   3939     { RECOMP_REGS_OUT(); return; } /* end of function */
   3940     RECOMP_REGS_OUT();
   3941 }
   3942 
   3943 void sub_46029900(void) {
   3944     int _fpu_cmp = 0;
   3945     uint32_t _cf = 0;
   3946     int _df = 1;
   3947     uint32_t _flag_k = FK_NONE;
   3948     uint32_t _flag_a = 0, _flag_b = 0;
   3949     uint32_t _itail_tgt = 0;
   3950     RECOMP_REGS_LOCALS
   3951     RECOMP_ENTER(0x46029900u);
   3952 
   3953     goto L_46029900;
   3954 L_46002CF0:
   3955     PUSH32(esp, 1); /* 0x46002CF0: push 1 */
   3956     RECOMP_ICALL(0x46001A60u); /* 0x46002CF2: call 0x46001a60 */ /* not lifted */
   3957     RECOMP_FLAGS_IN();
   3958     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002CF7: ret  */
   3959 L_46029900:
   3960     ecx = ebp + (-0xD4); /* 0x46029900: lea ecx, [ebp - 0xd4] */
   3961     RECOMP_BACKEDGE();
   3962     goto L_46002CF0; /* 0x46029906: jmp 0x46002cf0 */
   3963     { RECOMP_REGS_OUT(); return; } /* end of function */
   3964     RECOMP_REGS_OUT();
   3965 }
   3966 
   3967 void sub_4602990B(void) {
   3968     int _fpu_cmp = 0;
   3969     uint32_t _cf = 0;
   3970     int _df = 1;
   3971     uint32_t _flag_k = FK_NONE;
   3972     uint32_t _flag_a = 0, _flag_b = 0;
   3973     uint32_t _itail_tgt = 0;
   3974     RECOMP_REGS_LOCALS
   3975     RECOMP_ENTER(0x4602990Bu);
   3976 
   3977     goto L_4602990B;
   3978 L_46002CF0:
   3979     PUSH32(esp, 1); /* 0x46002CF0: push 1 */
   3980     RECOMP_ICALL(0x46001A60u); /* 0x46002CF2: call 0x46001a60 */ /* not lifted */
   3981     RECOMP_FLAGS_IN();
   3982     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002CF7: ret  */
   3983 L_4602990B:
   3984     ecx = ebp + (-0xB4); /* 0x4602990B: lea ecx, [ebp - 0xb4] */
   3985     RECOMP_BACKEDGE();
   3986     goto L_46002CF0; /* 0x46029911: jmp 0x46002cf0 */
   3987     { RECOMP_REGS_OUT(); return; } /* end of function */
   3988     RECOMP_REGS_OUT();
   3989 }
   3990 
   3991 void sub_46029916(void) {
   3992     int _fpu_cmp = 0;
   3993     uint32_t _cf = 0;
   3994     int _df = 1;
   3995     uint32_t _flag_k = FK_NONE;
   3996     uint32_t _flag_a = 0, _flag_b = 0;
   3997     uint32_t _itail_tgt = 0;
   3998     RECOMP_REGS_LOCALS
   3999     RECOMP_ENTER(0x46029916u);
   4000 
   4001     goto L_46029916;
   4002 L_46002CF0:
   4003     PUSH32(esp, 1); /* 0x46002CF0: push 1 */
   4004     RECOMP_ICALL(0x46001A60u); /* 0x46002CF2: call 0x46001a60 */ /* not lifted */
   4005     RECOMP_FLAGS_IN();
   4006     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x46002CF7: ret  */
   4007 L_46029916:
   4008     ecx = ebp + (-0xF4); /* 0x46029916: lea ecx, [ebp - 0xf4] */
   4009     RECOMP_BACKEDGE();
   4010     goto L_46002CF0; /* 0x4602991C: jmp 0x46002cf0 */
   4011     { RECOMP_REGS_OUT(); return; } /* end of function */
   4012     RECOMP_REGS_OUT();
   4013 }