aorecomp

Anarchy Online classic in the browser

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


client/game/hhr.dll/lifted-0027.c (146401B)


      1 #define RECOMP_GENERATED_CODE
      2 #include "recomp_types.h"
      3 #include <math.h>
      4 #include <stdio.h>
      5 #include <stdlib.h>
      6 #include <string.h>
      7 
      8 void sub_31047972(void) {
      9     int _fpu_cmp = 0;
     10     uint32_t _cf = 0;
     11     int _df = 1;
     12     uint32_t _flag_k = FK_NONE;
     13     uint32_t _flag_a = 0, _flag_b = 0;
     14     uint32_t _itail_tgt = 0;
     15     RECOMP_REGS_LOCALS
     16     RECOMP_ENTER(0x31047972u);
     17 
     18     goto L_31047972;
     19 L_31046870:
     20     { _itail_tgt = (uint32_t)(MEM32(0x31048200)); goto _ljump; }
     21 L_31047972:
     22     eax = 0x31049D00u; /* 0x31047972: mov eax, 0x31049d00 */
     23 L_31047977:
     24     RECOMP_BACKEDGE();
     25     goto L_31046870; /* 0x31047977: jmp 0x31046870 */
     26     { RECOMP_REGS_OUT(); return; } /* end of function */
     27   _ljump:
     28     switch (_itail_tgt) {
     29       case 0x31046870u: goto L_31046870;
     30       case 0x31047972u: goto L_31047972;
     31       case 0x31047977u: goto L_31047977;
     32       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
     33     }
     34     RECOMP_REGS_OUT();
     35 }
     36 
     37 void sub_31047980(void) {
     38     int _fpu_cmp = 0;
     39     uint32_t _cf = 0;
     40     int _df = 1;
     41     uint32_t _flag_k = FK_NONE;
     42     uint32_t _flag_a = 0, _flag_b = 0;
     43     uint32_t _itail_tgt = 0;
     44     RECOMP_REGS_LOCALS
     45     RECOMP_ENTER(0x31047980u);
     46 
     47 L_31047980:
     48     eax = MEM32(ebp + (-0x14)); /* 0x31047980: mov eax, dword ptr [ebp - 0x14] */
     49 L_31047983:
     50     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
     51     eax = eax & 1; /* 0x31047983: and eax, 1 */
     52     _cf = 0;
     53     _flag_k = FK_TEST;
     54 L_31047986:
     55     /* test eax, eax */ /* 0x31047986: test eax, eax */
     56     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
     57     _cf = 0;
     58     _flag_k = FK_TEST;
     59 L_31047988:
     60     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_31047997; /* 0x31047988: je 0x31047997 */
     61 L_3104798E:
     62     ecx = MEM32(ebp + 0x8); /* 0x3104798E: mov ecx, dword ptr [ebp + 8] */
     63 L_31047991:
     64     { _itail_tgt = (uint32_t)(MEM32(0x310480C8)); goto _ljump; }
     65 L_31047997:
     66     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31047997: ret  */
     67   _ljump:
     68     switch (_itail_tgt) {
     69       case 0x31047980u: goto L_31047980;
     70       case 0x31047983u: goto L_31047983;
     71       case 0x31047986u: goto L_31047986;
     72       case 0x31047988u: goto L_31047988;
     73       case 0x3104798Eu: goto L_3104798E;
     74       case 0x31047991u: goto L_31047991;
     75       case 0x31047997u: goto L_31047997;
     76       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
     77     }
     78     RECOMP_REGS_OUT();
     79 }
     80 
     81 void sub_31047998(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(0x31047998u);
     90 
     91     goto L_31047998;
     92 L_3100B670:
     93     PUSH32(esp, ebp); /* 0x3100B670: push ebp */
     94     ebp = esp; /* 0x3100B671: mov ebp, esp */
     95     PUSH32(esp, 0xFFFFFFFFu); /* 0x3100B673: push -1 */
     96     PUSH32(esp, 0x31047546u); /* 0x3100B675: push 0x31047546 */
     97     eax = MEM32(FS_BASE + (0)); /* 0x3100B67A: mov eax, dword ptr fs:[0] */
     98     PUSH32(esp, eax); /* 0x3100B680: push eax */
     99     MEM32(FS_BASE + (0)) = esp; /* 0x3100B681: mov dword ptr fs:[0], esp */
    100     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    101     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    102     esp = esp - 8; /* 0x3100B688: sub esp, 8 */
    103     _flag_k = FK_CMP;
    104     PUSH32(esp, ebx); /* 0x3100B68B: push ebx */
    105     PUSH32(esp, esi); /* 0x3100B68C: push esi */
    106     esi = ecx; /* 0x3100B68D: mov esi, ecx */
    107     PUSH32(esp, edi); /* 0x3100B68F: push edi */
    108     MEM32(ebp + (-0x10)) = esi; /* 0x3100B690: mov dword ptr [ebp - 0x10], esi */
    109     MEM32(esi) = 0x3104876Cu; /* 0x3100B693: mov dword ptr [esi], 0x3104876c */
    110     MEM32(ebp + (-0x4)) = 1; /* 0x3100B699: mov dword ptr [ebp - 4], 1 */
    111     RECOMP_ICALL(MEM32(0x310482F8)); /* 0x3100B6A0: call dword ptr [0x310482f8] */
    112     RECOMP_FLAGS_IN();
    113     eax = MEM32(esi + 0x34); /* 0x3100B6A6: mov eax, dword ptr [esi + 0x34] */
    114     PUSH32(esp, eax); /* 0x3100B6A9: push eax */
    115     MEM32(ebp + (-0x10)) = eax; /* 0x3100B6AA: mov dword ptr [ebp - 0x10], eax */
    116     RECOMP_ICALL(0x31046858u); /* 0x3100B6AD: call 0x31046858 */ /* not lifted */
    117     RECOMP_FLAGS_IN();
    118     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    119     ebx = 0; /* 0x3100B6B2: xor ebx, ebx */
    120     _cf = 0;
    121     _flag_k = FK_TEST;
    122     MEM32(esi + 0x34) = ebx; /* 0x3100B6B4: mov dword ptr [esi + 0x34], ebx */
    123     MEM32(esi + 0x38) = ebx; /* 0x3100B6B7: mov dword ptr [esi + 0x38], ebx */
    124     MEM32(esi + 0x3C) = ebx; /* 0x3100B6BA: mov dword ptr [esi + 0x3c], ebx */
    125     edi = MEM32(esi + 0x8); /* 0x3100B6BD: mov edi, dword ptr [esi + 8] */
    126     ecx = MEM32(esi + 0x14); /* 0x3100B6C0: mov ecx, dword ptr [esi + 0x14] */
    127     eax = MEM32(edi); /* 0x3100B6C3: mov eax, dword ptr [edi] */
    128     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
    129     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    130     esi = esi + 4; /* 0x3100B6C5: add esi, 4 */
    131     _flag_k = FK_ADD;
    132     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    133     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    134     esp = esp + 4; /* 0x3100B6C8: add esp, 4 */
    135     _flag_k = FK_ADD;
    136     /* cmp ecx, ebx */ /* 0x3100B6CB: cmp ecx, ebx */
    137     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
    138     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    139     _flag_k = FK_CMP;
    140     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3100B6CD: mov dword ptr [ebp - 4], 0xffffffff */
    141     MEM32(ebp + (-0x10)) = eax; /* 0x3100B6D4: mov dword ptr [ebp - 0x10], eax */
    142     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100B707; /* 0x3100B6D7: je 0x3100b707 */
    143 L_3100B6D9:
    144     ecx = eax; /* 0x3100B6D9: mov ecx, eax */
    145     /* cmp eax, ecx */ /* 0x3100B6DB: cmp eax, ecx */
    146     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    147     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    148     _flag_k = FK_CMP;
    149     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B707; /* 0x3100B6DD: jne 0x3100b707 */
    150 L_3100B6DF:
    151     /* cmp edi, edi */ /* 0x3100B6DF: cmp edi, edi */
    152     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    153     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    154     _flag_k = FK_CMP;
    155     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B707; /* 0x3100B6E1: jne 0x3100b707 */
    156 L_3100B6E3:
    157     eax = MEM32(edi + 0x4); /* 0x3100B6E3: mov eax, dword ptr [edi + 4] */
    158     PUSH32(esp, eax); /* 0x3100B6E6: push eax */
    159     ecx = esi; /* 0x3100B6E7: mov ecx, esi */
    160     RECOMP_ICALL(0x3100E8B0u); /* 0x3100B6E9: call 0x3100e8b0 */ /* not lifted */
    161     RECOMP_FLAGS_IN();
    162     ecx = MEM32(esi + 0x4); /* 0x3100B6EE: mov ecx, dword ptr [esi + 4] */
    163     edx = MEM32(esi + 0x8); /* 0x3100B6F1: mov edx, dword ptr [esi + 8] */
    164     MEM32(ecx + 0x4) = edx; /* 0x3100B6F4: mov dword ptr [ecx + 4], edx */
    165     eax = MEM32(esi + 0x4); /* 0x3100B6F7: mov eax, dword ptr [esi + 4] */
    166     MEM32(esi + 0x10) = ebx; /* 0x3100B6FA: mov dword ptr [esi + 0x10], ebx */
    167     MEM32(eax) = eax; /* 0x3100B6FD: mov dword ptr [eax], eax */
    168     eax = MEM32(esi + 0x4); /* 0x3100B6FF: mov eax, dword ptr [esi + 4] */
    169     MEM32(eax + 0x8) = eax; /* 0x3100B702: mov dword ptr [eax + 8], eax */
    170     goto L_3100B72A; /* 0x3100B705: jmp 0x3100b72a */
    171 L_3100B707:
    172     /* cmp eax, edi */ /* 0x3100B707: cmp eax, edi */
    173     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    174     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    175     _flag_k = FK_CMP;
    176     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100B72A; /* 0x3100B709: je 0x3100b72a */
    177 L_3100B70B:
    178     ecx = ebp + (-0x10); /* 0x3100B70B: lea ecx, [ebp - 0x10] */
    179     ebx = eax; /* 0x3100B70E: mov ebx, eax */
    180     RECOMP_ICALL(0x3100EC20u); /* 0x3100B710: call 0x3100ec20 */ /* not lifted */
    181     RECOMP_FLAGS_IN();
    182     PUSH32(esp, ebx); /* 0x3100B715: push ebx */
    183     eax = ebp + (-0x14); /* 0x3100B716: lea eax, [ebp - 0x14] */
    184     PUSH32(esp, eax); /* 0x3100B719: push eax */
    185     ecx = esi; /* 0x3100B71A: mov ecx, esi */
    186     RECOMP_ICALL(0x3100E4E0u); /* 0x3100B71C: call 0x3100e4e0 */ /* not lifted */
    187     RECOMP_FLAGS_IN();
    188     eax = MEM32(ebp + (-0x10)); /* 0x3100B721: mov eax, dword ptr [ebp - 0x10] */
    189     /* cmp eax, edi */ /* 0x3100B724: cmp eax, edi */
    190     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    191     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    192     _flag_k = FK_CMP;
    193     RECOMP_BACKEDGE();
    194     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B70B; /* 0x3100B726: jne 0x3100b70b */
    195 L_3100B728:
    196     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    197     ebx = 0; /* 0x3100B728: xor ebx, ebx */
    198     _cf = 0;
    199     _flag_k = FK_TEST;
    200 L_3100B72A:
    201     ecx = MEM32(esi + 0x4); /* 0x3100B72A: mov ecx, dword ptr [esi + 4] */
    202     PUSH32(esp, ecx); /* 0x3100B72D: push ecx */
    203     RECOMP_ICALL(0x31046858u); /* 0x3100B72E: call 0x31046858 */ /* not lifted */
    204     RECOMP_FLAGS_IN();
    205     edx = MEM32(esi + 0x8); /* 0x3100B733: mov edx, dword ptr [esi + 8] */
    206     PUSH32(esp, edx); /* 0x3100B736: push edx */
    207     MEM32(esi + 0x4) = ebx; /* 0x3100B737: mov dword ptr [esi + 4], ebx */
    208     MEM32(esi + 0x10) = ebx; /* 0x3100B73A: mov dword ptr [esi + 0x10], ebx */
    209     RECOMP_ICALL(0x31046858u); /* 0x3100B73D: call 0x31046858 */ /* not lifted */
    210     RECOMP_FLAGS_IN();
    211     ecx = MEM32(ebp + (-0xC)); /* 0x3100B742: mov ecx, dword ptr [ebp - 0xc] */
    212     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    213     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    214     esp = esp + 8; /* 0x3100B745: add esp, 8 */
    215     _flag_k = FK_ADD;
    216     MEM32(esi + 0x8) = ebx; /* 0x3100B748: mov dword ptr [esi + 8], ebx */
    217     edi = POP32_VAL(esp); /* 0x3100B74B: pop edi */
    218     esi = POP32_VAL(esp); /* 0x3100B74C: pop esi */
    219     ebx = POP32_VAL(esp); /* 0x3100B74D: pop ebx */
    220     MEM32(FS_BASE + (0)) = ecx; /* 0x3100B74E: mov dword ptr fs:[0], ecx */
    221     esp = ebp; /* 0x3100B755: mov esp, ebp */
    222     ebp = POP32_VAL(esp); /* 0x3100B757: pop ebp */
    223     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100B758: ret  */
    224 L_31047998:
    225     ecx = ebp + (-0x74); /* 0x31047998: lea ecx, [ebp - 0x74] */
    226     RECOMP_BACKEDGE();
    227     goto L_3100B670; /* 0x3104799B: jmp 0x3100b670 */
    228     { RECOMP_REGS_OUT(); return; } /* end of function */
    229     RECOMP_REGS_OUT();
    230 }
    231 
    232 void sub_310479A0(void) {
    233     int _fpu_cmp = 0;
    234     uint32_t _cf = 0;
    235     int _df = 1;
    236     uint32_t _flag_k = FK_NONE;
    237     uint32_t _flag_a = 0, _flag_b = 0;
    238     uint32_t _itail_tgt = 0;
    239     RECOMP_REGS_LOCALS
    240     RECOMP_ENTER(0x310479A0u);
    241 
    242 L_310479A0:
    243     ecx = ebp + (-0x34); /* 0x310479A0: lea ecx, [ebp - 0x34] */
    244 L_310479A3:
    245     { _itail_tgt = (uint32_t)(MEM32(0x310480C8)); goto _ljump; }
    246     { RECOMP_REGS_OUT(); return; } /* end of function */
    247   _ljump:
    248     switch (_itail_tgt) {
    249       case 0x310479A0u: goto L_310479A0;
    250       case 0x310479A3u: goto L_310479A3;
    251       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    252     }
    253     RECOMP_REGS_OUT();
    254 }
    255 
    256 void sub_310479A9(void) {
    257     int _fpu_cmp = 0;
    258     uint32_t _cf = 0;
    259     int _df = 1;
    260     uint32_t _flag_k = FK_NONE;
    261     uint32_t _flag_a = 0, _flag_b = 0;
    262     uint32_t _itail_tgt = 0;
    263     RECOMP_REGS_LOCALS
    264     RECOMP_ENTER(0x310479A9u);
    265 
    266 L_310479A9:
    267     ecx = ebp + (-0x24); /* 0x310479A9: lea ecx, [ebp - 0x24] */
    268 L_310479AC:
    269     { _itail_tgt = (uint32_t)(MEM32(0x310480C8)); goto _ljump; }
    270     { RECOMP_REGS_OUT(); return; } /* end of function */
    271   _ljump:
    272     switch (_itail_tgt) {
    273       case 0x310479A9u: goto L_310479A9;
    274       case 0x310479ACu: goto L_310479AC;
    275       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    276     }
    277     RECOMP_REGS_OUT();
    278 }
    279 
    280 void sub_310479B2(void) {
    281     int _fpu_cmp = 0;
    282     uint32_t _cf = 0;
    283     int _df = 1;
    284     uint32_t _flag_k = FK_NONE;
    285     uint32_t _flag_a = 0, _flag_b = 0;
    286     uint32_t _itail_tgt = 0;
    287     RECOMP_REGS_LOCALS
    288     RECOMP_ENTER(0x310479B2u);
    289 
    290     goto L_310479B2;
    291 L_3100B790:
    292     PUSH32(esp, ebp); /* 0x3100B790: push ebp */
    293     ebp = esp; /* 0x3100B791: mov ebp, esp */
    294     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    295     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    296     esp = esp - 8; /* 0x3100B793: sub esp, 8 */
    297     _flag_k = FK_CMP;
    298     PUSH32(esp, ebx); /* 0x3100B796: push ebx */
    299     PUSH32(esp, esi); /* 0x3100B797: push esi */
    300     esi = ecx; /* 0x3100B798: mov esi, ecx */
    301     ecx = MEM32(esi + 0x10); /* 0x3100B79A: mov ecx, dword ptr [esi + 0x10] */
    302     /* test ecx, ecx */ /* 0x3100B79D: test ecx, ecx */
    303     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    304     _cf = 0;
    305     _flag_k = FK_TEST;
    306     PUSH32(esp, edi); /* 0x3100B79F: push edi */
    307     edi = MEM32(esi + 0x4); /* 0x3100B7A0: mov edi, dword ptr [esi + 4] */
    308     eax = MEM32(edi); /* 0x3100B7A3: mov eax, dword ptr [edi] */
    309     MEM32(ebp + (-0x4)) = eax; /* 0x3100B7A5: mov dword ptr [ebp - 4], eax */
    310     if (TEST_Z(_flag_a, _flag_b)) goto L_3100B80F; /* 0x3100B7A8: je 0x3100b80f */
    311 L_3100B7AA:
    312     ecx = eax; /* 0x3100B7AA: mov ecx, eax */
    313     /* cmp eax, ecx */ /* 0x3100B7AC: cmp eax, ecx */
    314     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    315     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    316     _flag_k = FK_CMP;
    317     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B80F; /* 0x3100B7AE: jne 0x3100b80f */
    318 L_3100B7B0:
    319     /* cmp edi, edi */ /* 0x3100B7B0: cmp edi, edi */
    320     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    321     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    322     _flag_k = FK_CMP;
    323     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B80F; /* 0x3100B7B2: jne 0x3100b80f */
    324 L_3100B7B4:
    325     ebx = MEM32(edi + 0x4); /* 0x3100B7B4: mov ebx, dword ptr [edi + 4] */
    326     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3100B7B7: cmp ebx, dword ptr [esi + 8] */
    327     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    328     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    329     _flag_k = FK_CMP;
    330     edi = ebx; /* 0x3100B7BA: mov edi, ebx */
    331     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100B7E7; /* 0x3100B7BC: je 0x3100b7e7 */
    332 L_3100B7BE:
    333     eax = MEM32(edi + 0x8); /* 0x3100B7BE: mov eax, dword ptr [edi + 8] */
    334     PUSH32(esp, eax); /* 0x3100B7C1: push eax */
    335     ecx = esi; /* 0x3100B7C2: mov ecx, esi */
    336     RECOMP_ICALL(0x3100E8B0u); /* 0x3100B7C4: call 0x3100e8b0 */ /* not lifted */
    337     RECOMP_FLAGS_IN();
    338     edi = MEM32(edi); /* 0x3100B7C9: mov edi, dword ptr [edi] */
    339     PUSH32(esp, 0); /* 0x3100B7CB: push 0 */
    340     ecx = ebx + 0xC; /* 0x3100B7CD: lea ecx, [ebx + 0xc] */
    341     RECOMP_ICALL(0x3100EE50u); /* 0x3100B7D0: call 0x3100ee50 */ /* not lifted */
    342     RECOMP_FLAGS_IN();
    343     PUSH32(esp, ebx); /* 0x3100B7D5: push ebx */
    344     RECOMP_ICALL(0x31046858u); /* 0x3100B7D6: call 0x31046858 */ /* not lifted */
    345     RECOMP_FLAGS_IN();
    346     eax = MEM32(esi + 0x8); /* 0x3100B7DB: mov eax, dword ptr [esi + 8] */
    347     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    348     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    349     esp = esp + 4; /* 0x3100B7DE: add esp, 4 */
    350     _flag_k = FK_ADD;
    351     /* cmp edi, eax */ /* 0x3100B7E1: cmp edi, eax */
    352     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    353     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    354     _flag_k = FK_CMP;
    355     ebx = edi; /* 0x3100B7E3: mov ebx, edi */
    356     RECOMP_BACKEDGE();
    357     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B7BE; /* 0x3100B7E5: jne 0x3100b7be */
    358 L_3100B7E7:
    359     ecx = MEM32(esi + 0x4); /* 0x3100B7E7: mov ecx, dword ptr [esi + 4] */
    360     edx = MEM32(esi + 0x8); /* 0x3100B7EA: mov edx, dword ptr [esi + 8] */
    361     MEM32(ecx + 0x4) = edx; /* 0x3100B7ED: mov dword ptr [ecx + 4], edx */
    362     eax = MEM32(esi + 0x4); /* 0x3100B7F0: mov eax, dword ptr [esi + 4] */
    363     MEM32(esi + 0x10) = 0; /* 0x3100B7F3: mov dword ptr [esi + 0x10], 0 */
    364     MEM32(eax) = eax; /* 0x3100B7FA: mov dword ptr [eax], eax */
    365     eax = MEM32(esi + 0x4); /* 0x3100B7FC: mov eax, dword ptr [esi + 4] */
    366     MEM32(eax + 0x8) = eax; /* 0x3100B7FF: mov dword ptr [eax + 8], eax */
    367     eax = ebp + (-0x8); /* 0x3100B802: lea eax, [ebp - 8] */
    368     PUSH32(esp, eax); /* 0x3100B805: push eax */
    369     ecx = esi; /* 0x3100B806: mov ecx, esi */
    370     RECOMP_ICALL(0x3100E400u); /* 0x3100B808: call 0x3100e400 */ /* not lifted */
    371     RECOMP_FLAGS_IN();
    372     goto L_3100B830; /* 0x3100B80D: jmp 0x3100b830 */
    373 L_3100B80F:
    374     /* cmp eax, edi */ /* 0x3100B80F: cmp eax, edi */
    375     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    376     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    377     _flag_k = FK_CMP;
    378     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100B830; /* 0x3100B811: je 0x3100b830 */
    379 L_3100B813:
    380     ecx = ebp + (-0x4); /* 0x3100B813: lea ecx, [ebp - 4] */
    381     ebx = eax; /* 0x3100B816: mov ebx, eax */
    382     RECOMP_ICALL(0x3100EC20u); /* 0x3100B818: call 0x3100ec20 */ /* not lifted */
    383     RECOMP_FLAGS_IN();
    384     PUSH32(esp, ebx); /* 0x3100B81D: push ebx */
    385     ecx = ebp + (-0x8); /* 0x3100B81E: lea ecx, [ebp - 8] */
    386     PUSH32(esp, ecx); /* 0x3100B821: push ecx */
    387     ecx = esi; /* 0x3100B822: mov ecx, esi */
    388     RECOMP_ICALL(0x3100E4E0u); /* 0x3100B824: call 0x3100e4e0 */ /* not lifted */
    389     RECOMP_FLAGS_IN();
    390     eax = MEM32(ebp + (-0x4)); /* 0x3100B829: mov eax, dword ptr [ebp - 4] */
    391     /* cmp eax, edi */ /* 0x3100B82C: cmp eax, edi */
    392     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    393     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    394     _flag_k = FK_CMP;
    395     RECOMP_BACKEDGE();
    396     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B813; /* 0x3100B82E: jne 0x3100b813 */
    397 L_3100B830:
    398     edx = MEM32(esi + 0x4); /* 0x3100B830: mov edx, dword ptr [esi + 4] */
    399     PUSH32(esp, edx); /* 0x3100B833: push edx */
    400     RECOMP_ICALL(0x31046858u); /* 0x3100B834: call 0x31046858 */ /* not lifted */
    401     RECOMP_FLAGS_IN();
    402     eax = MEM32(esi + 0x8); /* 0x3100B839: mov eax, dword ptr [esi + 8] */
    403     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    404     edi = 0; /* 0x3100B83C: xor edi, edi */
    405     _cf = 0;
    406     _flag_k = FK_TEST;
    407     PUSH32(esp, eax); /* 0x3100B83E: push eax */
    408     MEM32(esi + 0x4) = edi; /* 0x3100B83F: mov dword ptr [esi + 4], edi */
    409     MEM32(esi + 0x10) = edi; /* 0x3100B842: mov dword ptr [esi + 0x10], edi */
    410     RECOMP_ICALL(0x31046858u); /* 0x3100B845: call 0x31046858 */ /* not lifted */
    411     RECOMP_FLAGS_IN();
    412     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    413     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    414     esp = esp + 8; /* 0x3100B84A: add esp, 8 */
    415     _flag_k = FK_ADD;
    416     MEM32(esi + 0x8) = edi; /* 0x3100B84D: mov dword ptr [esi + 8], edi */
    417     edi = POP32_VAL(esp); /* 0x3100B850: pop edi */
    418     esi = POP32_VAL(esp); /* 0x3100B851: pop esi */
    419     ebx = POP32_VAL(esp); /* 0x3100B852: pop ebx */
    420     esp = ebp; /* 0x3100B853: mov esp, ebp */
    421     ebp = POP32_VAL(esp); /* 0x3100B855: pop ebp */
    422     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100B856: ret  */
    423 L_310479B2:
    424     ecx = ebp + (-0x70); /* 0x310479B2: lea ecx, [ebp - 0x70] */
    425     RECOMP_BACKEDGE();
    426     goto L_3100B790; /* 0x310479B5: jmp 0x3100b790 */
    427     { RECOMP_REGS_OUT(); return; } /* end of function */
    428     RECOMP_REGS_OUT();
    429 }
    430 
    431 void sub_310479BA(void) {
    432     int _fpu_cmp = 0;
    433     uint32_t _cf = 0;
    434     int _df = 1;
    435     uint32_t _flag_k = FK_NONE;
    436     uint32_t _flag_a = 0, _flag_b = 0;
    437     uint32_t _itail_tgt = 0;
    438     RECOMP_REGS_LOCALS
    439     RECOMP_ENTER(0x310479BAu);
    440 
    441     goto L_310479BA;
    442 L_31004880:
    443     PUSH32(esp, ebp); /* 0x31004880: push ebp */
    444     ebp = esp; /* 0x31004881: mov ebp, esp */
    445     PUSH32(esp, ecx); /* 0x31004883: push ecx */
    446     PUSH32(esp, esi); /* 0x31004884: push esi */
    447     esi = ecx; /* 0x31004885: mov esi, ecx */
    448     eax = MEM32(esi + 0x4); /* 0x31004887: mov eax, dword ptr [esi + 4] */
    449     PUSH32(esp, eax); /* 0x3100488A: push eax */
    450     MEM32(ebp + (-0x4)) = eax; /* 0x3100488B: mov dword ptr [ebp - 4], eax */
    451     RECOMP_ICALL(0x31046858u); /* 0x3100488E: call 0x31046858 */ /* not lifted */
    452     RECOMP_FLAGS_IN();
    453     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    454     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    455     esp = esp + 4; /* 0x31004893: add esp, 4 */
    456     _flag_k = FK_ADD;
    457     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    458     eax = 0; /* 0x31004896: xor eax, eax */
    459     _cf = 0;
    460     _flag_k = FK_TEST;
    461     MEM32(esi + 0x4) = eax; /* 0x31004898: mov dword ptr [esi + 4], eax */
    462     MEM32(esi + 0x8) = eax; /* 0x3100489B: mov dword ptr [esi + 8], eax */
    463     MEM32(esi + 0xC) = eax; /* 0x3100489E: mov dword ptr [esi + 0xc], eax */
    464     esi = POP32_VAL(esp); /* 0x310048A1: pop esi */
    465     esp = ebp; /* 0x310048A2: mov esp, ebp */
    466     ebp = POP32_VAL(esp); /* 0x310048A4: pop ebp */
    467     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x310048A5: ret  */
    468 L_310479BA:
    469     ecx = ebp + (-0x44); /* 0x310479BA: lea ecx, [ebp - 0x44] */
    470     RECOMP_BACKEDGE();
    471     goto L_31004880; /* 0x310479BD: jmp 0x31004880 */
    472     { RECOMP_REGS_OUT(); return; } /* end of function */
    473     RECOMP_REGS_OUT();
    474 }
    475 
    476 void sub_310479C2(void) {
    477     int _fpu_cmp = 0;
    478     uint32_t _cf = 0;
    479     int _df = 1;
    480     uint32_t _flag_k = FK_NONE;
    481     uint32_t _flag_a = 0, _flag_b = 0;
    482     uint32_t _itail_tgt = 0;
    483     RECOMP_REGS_LOCALS
    484     RECOMP_ENTER(0x310479C2u);
    485 
    486     goto L_310479C2;
    487 L_31046870:
    488     { _itail_tgt = (uint32_t)(MEM32(0x31048200)); goto _ljump; }
    489 L_310479C2:
    490     eax = 0x31049D50u; /* 0x310479C2: mov eax, 0x31049d50 */
    491 L_310479C7:
    492     RECOMP_BACKEDGE();
    493     goto L_31046870; /* 0x310479C7: jmp 0x31046870 */
    494     { RECOMP_REGS_OUT(); return; } /* end of function */
    495   _ljump:
    496     switch (_itail_tgt) {
    497       case 0x31046870u: goto L_31046870;
    498       case 0x310479C2u: goto L_310479C2;
    499       case 0x310479C7u: goto L_310479C7;
    500       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    501     }
    502     RECOMP_REGS_OUT();
    503 }
    504 
    505 void sub_310479D0(void) {
    506     int _fpu_cmp = 0;
    507     uint32_t _cf = 0;
    508     int _df = 1;
    509     uint32_t _flag_k = FK_NONE;
    510     uint32_t _flag_a = 0, _flag_b = 0;
    511     uint32_t _itail_tgt = 0;
    512     RECOMP_REGS_LOCALS
    513     RECOMP_ENTER(0x310479D0u);
    514 
    515 L_310479D0:
    516     eax = MEM32(ebp + (-0x14)); /* 0x310479D0: mov eax, dword ptr [ebp - 0x14] */
    517 L_310479D3:
    518     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
    519     eax = eax & 1; /* 0x310479D3: and eax, 1 */
    520     _cf = 0;
    521     _flag_k = FK_TEST;
    522 L_310479D6:
    523     /* test eax, eax */ /* 0x310479D6: test eax, eax */
    524     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
    525     _cf = 0;
    526     _flag_k = FK_TEST;
    527 L_310479D8:
    528     if (recomp_cond_cf(_flag_k, _flag_a, _flag_b, CC_E, _cf)) goto L_310479E7; /* 0x310479D8: je 0x310479e7 */
    529 L_310479DE:
    530     ecx = MEM32(ebp + 0x8); /* 0x310479DE: mov ecx, dword ptr [ebp + 8] */
    531 L_310479E1:
    532     { _itail_tgt = (uint32_t)(MEM32(0x310480C8)); goto _ljump; }
    533 L_310479E7:
    534     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x310479E7: ret  */
    535   _ljump:
    536     switch (_itail_tgt) {
    537       case 0x310479D0u: goto L_310479D0;
    538       case 0x310479D3u: goto L_310479D3;
    539       case 0x310479D6u: goto L_310479D6;
    540       case 0x310479D8u: goto L_310479D8;
    541       case 0x310479DEu: goto L_310479DE;
    542       case 0x310479E1u: goto L_310479E1;
    543       case 0x310479E7u: goto L_310479E7;
    544       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    545     }
    546     RECOMP_REGS_OUT();
    547 }
    548 
    549 void sub_310479E8(void) {
    550     int _fpu_cmp = 0;
    551     uint32_t _cf = 0;
    552     int _df = 1;
    553     uint32_t _flag_k = FK_NONE;
    554     uint32_t _flag_a = 0, _flag_b = 0;
    555     uint32_t _itail_tgt = 0;
    556     RECOMP_REGS_LOCALS
    557     RECOMP_ENTER(0x310479E8u);
    558 
    559     goto L_310479E8;
    560 L_3100B670:
    561     PUSH32(esp, ebp); /* 0x3100B670: push ebp */
    562     ebp = esp; /* 0x3100B671: mov ebp, esp */
    563     PUSH32(esp, 0xFFFFFFFFu); /* 0x3100B673: push -1 */
    564     PUSH32(esp, 0x31047546u); /* 0x3100B675: push 0x31047546 */
    565     eax = MEM32(FS_BASE + (0)); /* 0x3100B67A: mov eax, dword ptr fs:[0] */
    566     PUSH32(esp, eax); /* 0x3100B680: push eax */
    567     MEM32(FS_BASE + (0)) = esp; /* 0x3100B681: mov dword ptr fs:[0], esp */
    568     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    569     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    570     esp = esp - 8; /* 0x3100B688: sub esp, 8 */
    571     _flag_k = FK_CMP;
    572     PUSH32(esp, ebx); /* 0x3100B68B: push ebx */
    573     PUSH32(esp, esi); /* 0x3100B68C: push esi */
    574     esi = ecx; /* 0x3100B68D: mov esi, ecx */
    575     PUSH32(esp, edi); /* 0x3100B68F: push edi */
    576     MEM32(ebp + (-0x10)) = esi; /* 0x3100B690: mov dword ptr [ebp - 0x10], esi */
    577     MEM32(esi) = 0x3104876Cu; /* 0x3100B693: mov dword ptr [esi], 0x3104876c */
    578     MEM32(ebp + (-0x4)) = 1; /* 0x3100B699: mov dword ptr [ebp - 4], 1 */
    579     RECOMP_ICALL(MEM32(0x310482F8)); /* 0x3100B6A0: call dword ptr [0x310482f8] */
    580     RECOMP_FLAGS_IN();
    581     eax = MEM32(esi + 0x34); /* 0x3100B6A6: mov eax, dword ptr [esi + 0x34] */
    582     PUSH32(esp, eax); /* 0x3100B6A9: push eax */
    583     MEM32(ebp + (-0x10)) = eax; /* 0x3100B6AA: mov dword ptr [ebp - 0x10], eax */
    584     RECOMP_ICALL(0x31046858u); /* 0x3100B6AD: call 0x31046858 */ /* not lifted */
    585     RECOMP_FLAGS_IN();
    586     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    587     ebx = 0; /* 0x3100B6B2: xor ebx, ebx */
    588     _cf = 0;
    589     _flag_k = FK_TEST;
    590     MEM32(esi + 0x34) = ebx; /* 0x3100B6B4: mov dword ptr [esi + 0x34], ebx */
    591     MEM32(esi + 0x38) = ebx; /* 0x3100B6B7: mov dword ptr [esi + 0x38], ebx */
    592     MEM32(esi + 0x3C) = ebx; /* 0x3100B6BA: mov dword ptr [esi + 0x3c], ebx */
    593     edi = MEM32(esi + 0x8); /* 0x3100B6BD: mov edi, dword ptr [esi + 8] */
    594     ecx = MEM32(esi + 0x14); /* 0x3100B6C0: mov ecx, dword ptr [esi + 0x14] */
    595     eax = MEM32(edi); /* 0x3100B6C3: mov eax, dword ptr [edi] */
    596     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
    597     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    598     esi = esi + 4; /* 0x3100B6C5: add esi, 4 */
    599     _flag_k = FK_ADD;
    600     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    601     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    602     esp = esp + 4; /* 0x3100B6C8: add esp, 4 */
    603     _flag_k = FK_ADD;
    604     /* cmp ecx, ebx */ /* 0x3100B6CB: cmp ecx, ebx */
    605     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
    606     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    607     _flag_k = FK_CMP;
    608     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3100B6CD: mov dword ptr [ebp - 4], 0xffffffff */
    609     MEM32(ebp + (-0x10)) = eax; /* 0x3100B6D4: mov dword ptr [ebp - 0x10], eax */
    610     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100B707; /* 0x3100B6D7: je 0x3100b707 */
    611 L_3100B6D9:
    612     ecx = eax; /* 0x3100B6D9: mov ecx, eax */
    613     /* cmp eax, ecx */ /* 0x3100B6DB: cmp eax, ecx */
    614     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    615     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    616     _flag_k = FK_CMP;
    617     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B707; /* 0x3100B6DD: jne 0x3100b707 */
    618 L_3100B6DF:
    619     /* cmp edi, edi */ /* 0x3100B6DF: cmp edi, edi */
    620     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    621     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    622     _flag_k = FK_CMP;
    623     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B707; /* 0x3100B6E1: jne 0x3100b707 */
    624 L_3100B6E3:
    625     eax = MEM32(edi + 0x4); /* 0x3100B6E3: mov eax, dword ptr [edi + 4] */
    626     PUSH32(esp, eax); /* 0x3100B6E6: push eax */
    627     ecx = esi; /* 0x3100B6E7: mov ecx, esi */
    628     RECOMP_ICALL(0x3100E8B0u); /* 0x3100B6E9: call 0x3100e8b0 */ /* not lifted */
    629     RECOMP_FLAGS_IN();
    630     ecx = MEM32(esi + 0x4); /* 0x3100B6EE: mov ecx, dword ptr [esi + 4] */
    631     edx = MEM32(esi + 0x8); /* 0x3100B6F1: mov edx, dword ptr [esi + 8] */
    632     MEM32(ecx + 0x4) = edx; /* 0x3100B6F4: mov dword ptr [ecx + 4], edx */
    633     eax = MEM32(esi + 0x4); /* 0x3100B6F7: mov eax, dword ptr [esi + 4] */
    634     MEM32(esi + 0x10) = ebx; /* 0x3100B6FA: mov dword ptr [esi + 0x10], ebx */
    635     MEM32(eax) = eax; /* 0x3100B6FD: mov dword ptr [eax], eax */
    636     eax = MEM32(esi + 0x4); /* 0x3100B6FF: mov eax, dword ptr [esi + 4] */
    637     MEM32(eax + 0x8) = eax; /* 0x3100B702: mov dword ptr [eax + 8], eax */
    638     goto L_3100B72A; /* 0x3100B705: jmp 0x3100b72a */
    639 L_3100B707:
    640     /* cmp eax, edi */ /* 0x3100B707: cmp eax, edi */
    641     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    642     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    643     _flag_k = FK_CMP;
    644     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100B72A; /* 0x3100B709: je 0x3100b72a */
    645 L_3100B70B:
    646     ecx = ebp + (-0x10); /* 0x3100B70B: lea ecx, [ebp - 0x10] */
    647     ebx = eax; /* 0x3100B70E: mov ebx, eax */
    648     RECOMP_ICALL(0x3100EC20u); /* 0x3100B710: call 0x3100ec20 */ /* not lifted */
    649     RECOMP_FLAGS_IN();
    650     PUSH32(esp, ebx); /* 0x3100B715: push ebx */
    651     eax = ebp + (-0x14); /* 0x3100B716: lea eax, [ebp - 0x14] */
    652     PUSH32(esp, eax); /* 0x3100B719: push eax */
    653     ecx = esi; /* 0x3100B71A: mov ecx, esi */
    654     RECOMP_ICALL(0x3100E4E0u); /* 0x3100B71C: call 0x3100e4e0 */ /* not lifted */
    655     RECOMP_FLAGS_IN();
    656     eax = MEM32(ebp + (-0x10)); /* 0x3100B721: mov eax, dword ptr [ebp - 0x10] */
    657     /* cmp eax, edi */ /* 0x3100B724: cmp eax, edi */
    658     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    659     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    660     _flag_k = FK_CMP;
    661     RECOMP_BACKEDGE();
    662     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B70B; /* 0x3100B726: jne 0x3100b70b */
    663 L_3100B728:
    664     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    665     ebx = 0; /* 0x3100B728: xor ebx, ebx */
    666     _cf = 0;
    667     _flag_k = FK_TEST;
    668 L_3100B72A:
    669     ecx = MEM32(esi + 0x4); /* 0x3100B72A: mov ecx, dword ptr [esi + 4] */
    670     PUSH32(esp, ecx); /* 0x3100B72D: push ecx */
    671     RECOMP_ICALL(0x31046858u); /* 0x3100B72E: call 0x31046858 */ /* not lifted */
    672     RECOMP_FLAGS_IN();
    673     edx = MEM32(esi + 0x8); /* 0x3100B733: mov edx, dword ptr [esi + 8] */
    674     PUSH32(esp, edx); /* 0x3100B736: push edx */
    675     MEM32(esi + 0x4) = ebx; /* 0x3100B737: mov dword ptr [esi + 4], ebx */
    676     MEM32(esi + 0x10) = ebx; /* 0x3100B73A: mov dword ptr [esi + 0x10], ebx */
    677     RECOMP_ICALL(0x31046858u); /* 0x3100B73D: call 0x31046858 */ /* not lifted */
    678     RECOMP_FLAGS_IN();
    679     ecx = MEM32(ebp + (-0xC)); /* 0x3100B742: mov ecx, dword ptr [ebp - 0xc] */
    680     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    681     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    682     esp = esp + 8; /* 0x3100B745: add esp, 8 */
    683     _flag_k = FK_ADD;
    684     MEM32(esi + 0x8) = ebx; /* 0x3100B748: mov dword ptr [esi + 8], ebx */
    685     edi = POP32_VAL(esp); /* 0x3100B74B: pop edi */
    686     esi = POP32_VAL(esp); /* 0x3100B74C: pop esi */
    687     ebx = POP32_VAL(esp); /* 0x3100B74D: pop ebx */
    688     MEM32(FS_BASE + (0)) = ecx; /* 0x3100B74E: mov dword ptr fs:[0], ecx */
    689     esp = ebp; /* 0x3100B755: mov esp, ebp */
    690     ebp = POP32_VAL(esp); /* 0x3100B757: pop ebp */
    691     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100B758: ret  */
    692 L_310479E8:
    693     ecx = ebp + (-0x74); /* 0x310479E8: lea ecx, [ebp - 0x74] */
    694     RECOMP_BACKEDGE();
    695     goto L_3100B670; /* 0x310479EB: jmp 0x3100b670 */
    696     { RECOMP_REGS_OUT(); return; } /* end of function */
    697     RECOMP_REGS_OUT();
    698 }
    699 
    700 void sub_310479F0(void) {
    701     int _fpu_cmp = 0;
    702     uint32_t _cf = 0;
    703     int _df = 1;
    704     uint32_t _flag_k = FK_NONE;
    705     uint32_t _flag_a = 0, _flag_b = 0;
    706     uint32_t _itail_tgt = 0;
    707     RECOMP_REGS_LOCALS
    708     RECOMP_ENTER(0x310479F0u);
    709 
    710 L_310479F0:
    711     ecx = ebp + (-0x34); /* 0x310479F0: lea ecx, [ebp - 0x34] */
    712 L_310479F3:
    713     { _itail_tgt = (uint32_t)(MEM32(0x310480C8)); goto _ljump; }
    714     { RECOMP_REGS_OUT(); return; } /* end of function */
    715   _ljump:
    716     switch (_itail_tgt) {
    717       case 0x310479F0u: goto L_310479F0;
    718       case 0x310479F3u: goto L_310479F3;
    719       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    720     }
    721     RECOMP_REGS_OUT();
    722 }
    723 
    724 void sub_310479F9(void) {
    725     int _fpu_cmp = 0;
    726     uint32_t _cf = 0;
    727     int _df = 1;
    728     uint32_t _flag_k = FK_NONE;
    729     uint32_t _flag_a = 0, _flag_b = 0;
    730     uint32_t _itail_tgt = 0;
    731     RECOMP_REGS_LOCALS
    732     RECOMP_ENTER(0x310479F9u);
    733 
    734 L_310479F9:
    735     ecx = ebp + (-0x24); /* 0x310479F9: lea ecx, [ebp - 0x24] */
    736 L_310479FC:
    737     { _itail_tgt = (uint32_t)(MEM32(0x310480C8)); goto _ljump; }
    738     { RECOMP_REGS_OUT(); return; } /* end of function */
    739   _ljump:
    740     switch (_itail_tgt) {
    741       case 0x310479F9u: goto L_310479F9;
    742       case 0x310479FCu: goto L_310479FC;
    743       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    744     }
    745     RECOMP_REGS_OUT();
    746 }
    747 
    748 void sub_31047A02(void) {
    749     int _fpu_cmp = 0;
    750     uint32_t _cf = 0;
    751     int _df = 1;
    752     uint32_t _flag_k = FK_NONE;
    753     uint32_t _flag_a = 0, _flag_b = 0;
    754     uint32_t _itail_tgt = 0;
    755     RECOMP_REGS_LOCALS
    756     RECOMP_ENTER(0x31047A02u);
    757 
    758     goto L_31047A02;
    759 L_3100B790:
    760     PUSH32(esp, ebp); /* 0x3100B790: push ebp */
    761     ebp = esp; /* 0x3100B791: mov ebp, esp */
    762     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    763     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    764     esp = esp - 8; /* 0x3100B793: sub esp, 8 */
    765     _flag_k = FK_CMP;
    766     PUSH32(esp, ebx); /* 0x3100B796: push ebx */
    767     PUSH32(esp, esi); /* 0x3100B797: push esi */
    768     esi = ecx; /* 0x3100B798: mov esi, ecx */
    769     ecx = MEM32(esi + 0x10); /* 0x3100B79A: mov ecx, dword ptr [esi + 0x10] */
    770     /* test ecx, ecx */ /* 0x3100B79D: test ecx, ecx */
    771     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
    772     _cf = 0;
    773     _flag_k = FK_TEST;
    774     PUSH32(esp, edi); /* 0x3100B79F: push edi */
    775     edi = MEM32(esi + 0x4); /* 0x3100B7A0: mov edi, dword ptr [esi + 4] */
    776     eax = MEM32(edi); /* 0x3100B7A3: mov eax, dword ptr [edi] */
    777     MEM32(ebp + (-0x4)) = eax; /* 0x3100B7A5: mov dword ptr [ebp - 4], eax */
    778     if (TEST_Z(_flag_a, _flag_b)) goto L_3100B80F; /* 0x3100B7A8: je 0x3100b80f */
    779 L_3100B7AA:
    780     ecx = eax; /* 0x3100B7AA: mov ecx, eax */
    781     /* cmp eax, ecx */ /* 0x3100B7AC: cmp eax, ecx */
    782     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
    783     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    784     _flag_k = FK_CMP;
    785     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B80F; /* 0x3100B7AE: jne 0x3100b80f */
    786 L_3100B7B0:
    787     /* cmp edi, edi */ /* 0x3100B7B0: cmp edi, edi */
    788     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
    789     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    790     _flag_k = FK_CMP;
    791     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B80F; /* 0x3100B7B2: jne 0x3100b80f */
    792 L_3100B7B4:
    793     ebx = MEM32(edi + 0x4); /* 0x3100B7B4: mov ebx, dword ptr [edi + 4] */
    794     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3100B7B7: cmp ebx, dword ptr [esi + 8] */
    795     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
    796     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    797     _flag_k = FK_CMP;
    798     edi = ebx; /* 0x3100B7BA: mov edi, ebx */
    799     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100B7E7; /* 0x3100B7BC: je 0x3100b7e7 */
    800 L_3100B7BE:
    801     eax = MEM32(edi + 0x8); /* 0x3100B7BE: mov eax, dword ptr [edi + 8] */
    802     PUSH32(esp, eax); /* 0x3100B7C1: push eax */
    803     ecx = esi; /* 0x3100B7C2: mov ecx, esi */
    804     RECOMP_ICALL(0x3100E8B0u); /* 0x3100B7C4: call 0x3100e8b0 */ /* not lifted */
    805     RECOMP_FLAGS_IN();
    806     edi = MEM32(edi); /* 0x3100B7C9: mov edi, dword ptr [edi] */
    807     PUSH32(esp, 0); /* 0x3100B7CB: push 0 */
    808     ecx = ebx + 0xC; /* 0x3100B7CD: lea ecx, [ebx + 0xc] */
    809     RECOMP_ICALL(0x3100EE50u); /* 0x3100B7D0: call 0x3100ee50 */ /* not lifted */
    810     RECOMP_FLAGS_IN();
    811     PUSH32(esp, ebx); /* 0x3100B7D5: push ebx */
    812     RECOMP_ICALL(0x31046858u); /* 0x3100B7D6: call 0x31046858 */ /* not lifted */
    813     RECOMP_FLAGS_IN();
    814     eax = MEM32(esi + 0x8); /* 0x3100B7DB: mov eax, dword ptr [esi + 8] */
    815     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    816     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    817     esp = esp + 4; /* 0x3100B7DE: add esp, 4 */
    818     _flag_k = FK_ADD;
    819     /* cmp edi, eax */ /* 0x3100B7E1: cmp edi, eax */
    820     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
    821     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    822     _flag_k = FK_CMP;
    823     ebx = edi; /* 0x3100B7E3: mov ebx, edi */
    824     RECOMP_BACKEDGE();
    825     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B7BE; /* 0x3100B7E5: jne 0x3100b7be */
    826 L_3100B7E7:
    827     ecx = MEM32(esi + 0x4); /* 0x3100B7E7: mov ecx, dword ptr [esi + 4] */
    828     edx = MEM32(esi + 0x8); /* 0x3100B7EA: mov edx, dword ptr [esi + 8] */
    829     MEM32(ecx + 0x4) = edx; /* 0x3100B7ED: mov dword ptr [ecx + 4], edx */
    830     eax = MEM32(esi + 0x4); /* 0x3100B7F0: mov eax, dword ptr [esi + 4] */
    831     MEM32(esi + 0x10) = 0; /* 0x3100B7F3: mov dword ptr [esi + 0x10], 0 */
    832     MEM32(eax) = eax; /* 0x3100B7FA: mov dword ptr [eax], eax */
    833     eax = MEM32(esi + 0x4); /* 0x3100B7FC: mov eax, dword ptr [esi + 4] */
    834     MEM32(eax + 0x8) = eax; /* 0x3100B7FF: mov dword ptr [eax + 8], eax */
    835     eax = ebp + (-0x8); /* 0x3100B802: lea eax, [ebp - 8] */
    836     PUSH32(esp, eax); /* 0x3100B805: push eax */
    837     ecx = esi; /* 0x3100B806: mov ecx, esi */
    838     RECOMP_ICALL(0x3100E400u); /* 0x3100B808: call 0x3100e400 */ /* not lifted */
    839     RECOMP_FLAGS_IN();
    840     goto L_3100B830; /* 0x3100B80D: jmp 0x3100b830 */
    841 L_3100B80F:
    842     /* cmp eax, edi */ /* 0x3100B80F: cmp eax, edi */
    843     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    844     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    845     _flag_k = FK_CMP;
    846     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100B830; /* 0x3100B811: je 0x3100b830 */
    847 L_3100B813:
    848     ecx = ebp + (-0x4); /* 0x3100B813: lea ecx, [ebp - 4] */
    849     ebx = eax; /* 0x3100B816: mov ebx, eax */
    850     RECOMP_ICALL(0x3100EC20u); /* 0x3100B818: call 0x3100ec20 */ /* not lifted */
    851     RECOMP_FLAGS_IN();
    852     PUSH32(esp, ebx); /* 0x3100B81D: push ebx */
    853     ecx = ebp + (-0x8); /* 0x3100B81E: lea ecx, [ebp - 8] */
    854     PUSH32(esp, ecx); /* 0x3100B821: push ecx */
    855     ecx = esi; /* 0x3100B822: mov ecx, esi */
    856     RECOMP_ICALL(0x3100E4E0u); /* 0x3100B824: call 0x3100e4e0 */ /* not lifted */
    857     RECOMP_FLAGS_IN();
    858     eax = MEM32(ebp + (-0x4)); /* 0x3100B829: mov eax, dword ptr [ebp - 4] */
    859     /* cmp eax, edi */ /* 0x3100B82C: cmp eax, edi */
    860     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
    861     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    862     _flag_k = FK_CMP;
    863     RECOMP_BACKEDGE();
    864     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B813; /* 0x3100B82E: jne 0x3100b813 */
    865 L_3100B830:
    866     edx = MEM32(esi + 0x4); /* 0x3100B830: mov edx, dword ptr [esi + 4] */
    867     PUSH32(esp, edx); /* 0x3100B833: push edx */
    868     RECOMP_ICALL(0x31046858u); /* 0x3100B834: call 0x31046858 */ /* not lifted */
    869     RECOMP_FLAGS_IN();
    870     eax = MEM32(esi + 0x8); /* 0x3100B839: mov eax, dword ptr [esi + 8] */
    871     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    872     edi = 0; /* 0x3100B83C: xor edi, edi */
    873     _cf = 0;
    874     _flag_k = FK_TEST;
    875     PUSH32(esp, eax); /* 0x3100B83E: push eax */
    876     MEM32(esi + 0x4) = edi; /* 0x3100B83F: mov dword ptr [esi + 4], edi */
    877     MEM32(esi + 0x10) = edi; /* 0x3100B842: mov dword ptr [esi + 0x10], edi */
    878     RECOMP_ICALL(0x31046858u); /* 0x3100B845: call 0x31046858 */ /* not lifted */
    879     RECOMP_FLAGS_IN();
    880     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    881     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    882     esp = esp + 8; /* 0x3100B84A: add esp, 8 */
    883     _flag_k = FK_ADD;
    884     MEM32(esi + 0x8) = edi; /* 0x3100B84D: mov dword ptr [esi + 8], edi */
    885     edi = POP32_VAL(esp); /* 0x3100B850: pop edi */
    886     esi = POP32_VAL(esp); /* 0x3100B851: pop esi */
    887     ebx = POP32_VAL(esp); /* 0x3100B852: pop ebx */
    888     esp = ebp; /* 0x3100B853: mov esp, ebp */
    889     ebp = POP32_VAL(esp); /* 0x3100B855: pop ebp */
    890     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100B856: ret  */
    891 L_31047A02:
    892     ecx = ebp + (-0x70); /* 0x31047A02: lea ecx, [ebp - 0x70] */
    893     RECOMP_BACKEDGE();
    894     goto L_3100B790; /* 0x31047A05: jmp 0x3100b790 */
    895     { RECOMP_REGS_OUT(); return; } /* end of function */
    896     RECOMP_REGS_OUT();
    897 }
    898 
    899 void sub_31047A0A(void) {
    900     int _fpu_cmp = 0;
    901     uint32_t _cf = 0;
    902     int _df = 1;
    903     uint32_t _flag_k = FK_NONE;
    904     uint32_t _flag_a = 0, _flag_b = 0;
    905     uint32_t _itail_tgt = 0;
    906     RECOMP_REGS_LOCALS
    907     RECOMP_ENTER(0x31047A0Au);
    908 
    909     goto L_31047A0A;
    910 L_31004880:
    911     PUSH32(esp, ebp); /* 0x31004880: push ebp */
    912     ebp = esp; /* 0x31004881: mov ebp, esp */
    913     PUSH32(esp, ecx); /* 0x31004883: push ecx */
    914     PUSH32(esp, esi); /* 0x31004884: push esi */
    915     esi = ecx; /* 0x31004885: mov esi, ecx */
    916     eax = MEM32(esi + 0x4); /* 0x31004887: mov eax, dword ptr [esi + 4] */
    917     PUSH32(esp, eax); /* 0x3100488A: push eax */
    918     MEM32(ebp + (-0x4)) = eax; /* 0x3100488B: mov dword ptr [ebp - 4], eax */
    919     RECOMP_ICALL(0x31046858u); /* 0x3100488E: call 0x31046858 */ /* not lifted */
    920     RECOMP_FLAGS_IN();
    921     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
    922     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
    923     esp = esp + 4; /* 0x31004893: add esp, 4 */
    924     _flag_k = FK_ADD;
    925     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
    926     eax = 0; /* 0x31004896: xor eax, eax */
    927     _cf = 0;
    928     _flag_k = FK_TEST;
    929     MEM32(esi + 0x4) = eax; /* 0x31004898: mov dword ptr [esi + 4], eax */
    930     MEM32(esi + 0x8) = eax; /* 0x3100489B: mov dword ptr [esi + 8], eax */
    931     MEM32(esi + 0xC) = eax; /* 0x3100489E: mov dword ptr [esi + 0xc], eax */
    932     esi = POP32_VAL(esp); /* 0x310048A1: pop esi */
    933     esp = ebp; /* 0x310048A2: mov esp, ebp */
    934     ebp = POP32_VAL(esp); /* 0x310048A4: pop ebp */
    935     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x310048A5: ret  */
    936 L_31047A0A:
    937     ecx = ebp + (-0x44); /* 0x31047A0A: lea ecx, [ebp - 0x44] */
    938     RECOMP_BACKEDGE();
    939     goto L_31004880; /* 0x31047A0D: jmp 0x31004880 */
    940     { RECOMP_REGS_OUT(); return; } /* end of function */
    941     RECOMP_REGS_OUT();
    942 }
    943 
    944 void sub_31047A12(void) {
    945     int _fpu_cmp = 0;
    946     uint32_t _cf = 0;
    947     int _df = 1;
    948     uint32_t _flag_k = FK_NONE;
    949     uint32_t _flag_a = 0, _flag_b = 0;
    950     uint32_t _itail_tgt = 0;
    951     RECOMP_REGS_LOCALS
    952     RECOMP_ENTER(0x31047A12u);
    953 
    954     goto L_31047A12;
    955 L_31046870:
    956     { _itail_tgt = (uint32_t)(MEM32(0x31048200)); goto _ljump; }
    957 L_31047A12:
    958     eax = 0x31049DA0u; /* 0x31047A12: mov eax, 0x31049da0 */
    959 L_31047A17:
    960     RECOMP_BACKEDGE();
    961     goto L_31046870; /* 0x31047A17: jmp 0x31046870 */
    962     { RECOMP_REGS_OUT(); return; } /* end of function */
    963   _ljump:
    964     switch (_itail_tgt) {
    965       case 0x31046870u: goto L_31046870;
    966       case 0x31047A12u: goto L_31047A12;
    967       case 0x31047A17u: goto L_31047A17;
    968       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
    969     }
    970     RECOMP_REGS_OUT();
    971 }
    972 
    973 void sub_31047A20(void) {
    974     int _fpu_cmp = 0;
    975     uint32_t _cf = 0;
    976     int _df = 1;
    977     uint32_t _flag_k = FK_NONE;
    978     uint32_t _flag_a = 0, _flag_b = 0;
    979     uint32_t _itail_tgt = 0;
    980     RECOMP_REGS_LOCALS
    981     RECOMP_ENTER(0x31047A20u);
    982 
    983     goto L_31047A20;
    984 L_3100B670:
    985     PUSH32(esp, ebp); /* 0x3100B670: push ebp */
    986     ebp = esp; /* 0x3100B671: mov ebp, esp */
    987     PUSH32(esp, 0xFFFFFFFFu); /* 0x3100B673: push -1 */
    988     PUSH32(esp, 0x31047546u); /* 0x3100B675: push 0x31047546 */
    989     eax = MEM32(FS_BASE + (0)); /* 0x3100B67A: mov eax, dword ptr fs:[0] */
    990     PUSH32(esp, eax); /* 0x3100B680: push eax */
    991     MEM32(FS_BASE + (0)) = esp; /* 0x3100B681: mov dword ptr fs:[0], esp */
    992     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
    993     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
    994     esp = esp - 8; /* 0x3100B688: sub esp, 8 */
    995     _flag_k = FK_CMP;
    996     PUSH32(esp, ebx); /* 0x3100B68B: push ebx */
    997     PUSH32(esp, esi); /* 0x3100B68C: push esi */
    998     esi = ecx; /* 0x3100B68D: mov esi, ecx */
    999     PUSH32(esp, edi); /* 0x3100B68F: push edi */
   1000     MEM32(ebp + (-0x10)) = esi; /* 0x3100B690: mov dword ptr [ebp - 0x10], esi */
   1001     MEM32(esi) = 0x3104876Cu; /* 0x3100B693: mov dword ptr [esi], 0x3104876c */
   1002     MEM32(ebp + (-0x4)) = 1; /* 0x3100B699: mov dword ptr [ebp - 4], 1 */
   1003     RECOMP_ICALL(MEM32(0x310482F8)); /* 0x3100B6A0: call dword ptr [0x310482f8] */
   1004     RECOMP_FLAGS_IN();
   1005     eax = MEM32(esi + 0x34); /* 0x3100B6A6: mov eax, dword ptr [esi + 0x34] */
   1006     PUSH32(esp, eax); /* 0x3100B6A9: push eax */
   1007     MEM32(ebp + (-0x10)) = eax; /* 0x3100B6AA: mov dword ptr [ebp - 0x10], eax */
   1008     RECOMP_ICALL(0x31046858u); /* 0x3100B6AD: call 0x31046858 */ /* not lifted */
   1009     RECOMP_FLAGS_IN();
   1010     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1011     ebx = 0; /* 0x3100B6B2: xor ebx, ebx */
   1012     _cf = 0;
   1013     _flag_k = FK_TEST;
   1014     MEM32(esi + 0x34) = ebx; /* 0x3100B6B4: mov dword ptr [esi + 0x34], ebx */
   1015     MEM32(esi + 0x38) = ebx; /* 0x3100B6B7: mov dword ptr [esi + 0x38], ebx */
   1016     MEM32(esi + 0x3C) = ebx; /* 0x3100B6BA: mov dword ptr [esi + 0x3c], ebx */
   1017     edi = MEM32(esi + 0x8); /* 0x3100B6BD: mov edi, dword ptr [esi + 8] */
   1018     ecx = MEM32(esi + 0x14); /* 0x3100B6C0: mov ecx, dword ptr [esi + 0x14] */
   1019     eax = MEM32(edi); /* 0x3100B6C3: mov eax, dword ptr [edi] */
   1020     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   1021     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1022     esi = esi + 4; /* 0x3100B6C5: add esi, 4 */
   1023     _flag_k = FK_ADD;
   1024     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1025     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1026     esp = esp + 4; /* 0x3100B6C8: add esp, 4 */
   1027     _flag_k = FK_ADD;
   1028     /* cmp ecx, ebx */ /* 0x3100B6CB: cmp ecx, ebx */
   1029     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   1030     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1031     _flag_k = FK_CMP;
   1032     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3100B6CD: mov dword ptr [ebp - 4], 0xffffffff */
   1033     MEM32(ebp + (-0x10)) = eax; /* 0x3100B6D4: mov dword ptr [ebp - 0x10], eax */
   1034     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100B707; /* 0x3100B6D7: je 0x3100b707 */
   1035 L_3100B6D9:
   1036     ecx = eax; /* 0x3100B6D9: mov ecx, eax */
   1037     /* cmp eax, ecx */ /* 0x3100B6DB: cmp eax, ecx */
   1038     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1039     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1040     _flag_k = FK_CMP;
   1041     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B707; /* 0x3100B6DD: jne 0x3100b707 */
   1042 L_3100B6DF:
   1043     /* cmp edi, edi */ /* 0x3100B6DF: cmp edi, edi */
   1044     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1045     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1046     _flag_k = FK_CMP;
   1047     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B707; /* 0x3100B6E1: jne 0x3100b707 */
   1048 L_3100B6E3:
   1049     eax = MEM32(edi + 0x4); /* 0x3100B6E3: mov eax, dword ptr [edi + 4] */
   1050     PUSH32(esp, eax); /* 0x3100B6E6: push eax */
   1051     ecx = esi; /* 0x3100B6E7: mov ecx, esi */
   1052     RECOMP_ICALL(0x3100E8B0u); /* 0x3100B6E9: call 0x3100e8b0 */ /* not lifted */
   1053     RECOMP_FLAGS_IN();
   1054     ecx = MEM32(esi + 0x4); /* 0x3100B6EE: mov ecx, dword ptr [esi + 4] */
   1055     edx = MEM32(esi + 0x8); /* 0x3100B6F1: mov edx, dword ptr [esi + 8] */
   1056     MEM32(ecx + 0x4) = edx; /* 0x3100B6F4: mov dword ptr [ecx + 4], edx */
   1057     eax = MEM32(esi + 0x4); /* 0x3100B6F7: mov eax, dword ptr [esi + 4] */
   1058     MEM32(esi + 0x10) = ebx; /* 0x3100B6FA: mov dword ptr [esi + 0x10], ebx */
   1059     MEM32(eax) = eax; /* 0x3100B6FD: mov dword ptr [eax], eax */
   1060     eax = MEM32(esi + 0x4); /* 0x3100B6FF: mov eax, dword ptr [esi + 4] */
   1061     MEM32(eax + 0x8) = eax; /* 0x3100B702: mov dword ptr [eax + 8], eax */
   1062     goto L_3100B72A; /* 0x3100B705: jmp 0x3100b72a */
   1063 L_3100B707:
   1064     /* cmp eax, edi */ /* 0x3100B707: cmp eax, edi */
   1065     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1066     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1067     _flag_k = FK_CMP;
   1068     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100B72A; /* 0x3100B709: je 0x3100b72a */
   1069 L_3100B70B:
   1070     ecx = ebp + (-0x10); /* 0x3100B70B: lea ecx, [ebp - 0x10] */
   1071     ebx = eax; /* 0x3100B70E: mov ebx, eax */
   1072     RECOMP_ICALL(0x3100EC20u); /* 0x3100B710: call 0x3100ec20 */ /* not lifted */
   1073     RECOMP_FLAGS_IN();
   1074     PUSH32(esp, ebx); /* 0x3100B715: push ebx */
   1075     eax = ebp + (-0x14); /* 0x3100B716: lea eax, [ebp - 0x14] */
   1076     PUSH32(esp, eax); /* 0x3100B719: push eax */
   1077     ecx = esi; /* 0x3100B71A: mov ecx, esi */
   1078     RECOMP_ICALL(0x3100E4E0u); /* 0x3100B71C: call 0x3100e4e0 */ /* not lifted */
   1079     RECOMP_FLAGS_IN();
   1080     eax = MEM32(ebp + (-0x10)); /* 0x3100B721: mov eax, dword ptr [ebp - 0x10] */
   1081     /* cmp eax, edi */ /* 0x3100B724: cmp eax, edi */
   1082     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1083     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1084     _flag_k = FK_CMP;
   1085     RECOMP_BACKEDGE();
   1086     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B70B; /* 0x3100B726: jne 0x3100b70b */
   1087 L_3100B728:
   1088     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1089     ebx = 0; /* 0x3100B728: xor ebx, ebx */
   1090     _cf = 0;
   1091     _flag_k = FK_TEST;
   1092 L_3100B72A:
   1093     ecx = MEM32(esi + 0x4); /* 0x3100B72A: mov ecx, dword ptr [esi + 4] */
   1094     PUSH32(esp, ecx); /* 0x3100B72D: push ecx */
   1095     RECOMP_ICALL(0x31046858u); /* 0x3100B72E: call 0x31046858 */ /* not lifted */
   1096     RECOMP_FLAGS_IN();
   1097     edx = MEM32(esi + 0x8); /* 0x3100B733: mov edx, dword ptr [esi + 8] */
   1098     PUSH32(esp, edx); /* 0x3100B736: push edx */
   1099     MEM32(esi + 0x4) = ebx; /* 0x3100B737: mov dword ptr [esi + 4], ebx */
   1100     MEM32(esi + 0x10) = ebx; /* 0x3100B73A: mov dword ptr [esi + 0x10], ebx */
   1101     RECOMP_ICALL(0x31046858u); /* 0x3100B73D: call 0x31046858 */ /* not lifted */
   1102     RECOMP_FLAGS_IN();
   1103     ecx = MEM32(ebp + (-0xC)); /* 0x3100B742: mov ecx, dword ptr [ebp - 0xc] */
   1104     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1105     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1106     esp = esp + 8; /* 0x3100B745: add esp, 8 */
   1107     _flag_k = FK_ADD;
   1108     MEM32(esi + 0x8) = ebx; /* 0x3100B748: mov dword ptr [esi + 8], ebx */
   1109     edi = POP32_VAL(esp); /* 0x3100B74B: pop edi */
   1110     esi = POP32_VAL(esp); /* 0x3100B74C: pop esi */
   1111     ebx = POP32_VAL(esp); /* 0x3100B74D: pop ebx */
   1112     MEM32(FS_BASE + (0)) = ecx; /* 0x3100B74E: mov dword ptr fs:[0], ecx */
   1113     esp = ebp; /* 0x3100B755: mov esp, ebp */
   1114     ebp = POP32_VAL(esp); /* 0x3100B757: pop ebp */
   1115     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100B758: ret  */
   1116 L_31047A20:
   1117     ecx = ebp + (-0x70); /* 0x31047A20: lea ecx, [ebp - 0x70] */
   1118     RECOMP_BACKEDGE();
   1119     goto L_3100B670; /* 0x31047A23: jmp 0x3100b670 */
   1120     { RECOMP_REGS_OUT(); return; } /* end of function */
   1121     RECOMP_REGS_OUT();
   1122 }
   1123 
   1124 void sub_31047A28(void) {
   1125     int _fpu_cmp = 0;
   1126     uint32_t _cf = 0;
   1127     int _df = 1;
   1128     uint32_t _flag_k = FK_NONE;
   1129     uint32_t _flag_a = 0, _flag_b = 0;
   1130     uint32_t _itail_tgt = 0;
   1131     RECOMP_REGS_LOCALS
   1132     RECOMP_ENTER(0x31047A28u);
   1133 
   1134 L_31047A28:
   1135     ecx = ebp + (-0x30); /* 0x31047A28: lea ecx, [ebp - 0x30] */
   1136 L_31047A2B:
   1137     { _itail_tgt = (uint32_t)(MEM32(0x310480C8)); goto _ljump; }
   1138     { RECOMP_REGS_OUT(); return; } /* end of function */
   1139   _ljump:
   1140     switch (_itail_tgt) {
   1141       case 0x31047A28u: goto L_31047A28;
   1142       case 0x31047A2Bu: goto L_31047A2B;
   1143       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1144     }
   1145     RECOMP_REGS_OUT();
   1146 }
   1147 
   1148 void sub_31047A31(void) {
   1149     int _fpu_cmp = 0;
   1150     uint32_t _cf = 0;
   1151     int _df = 1;
   1152     uint32_t _flag_k = FK_NONE;
   1153     uint32_t _flag_a = 0, _flag_b = 0;
   1154     uint32_t _itail_tgt = 0;
   1155     RECOMP_REGS_LOCALS
   1156     RECOMP_ENTER(0x31047A31u);
   1157 
   1158     goto L_31047A31;
   1159 L_31004760:
   1160     PUSH32(esp, esi); /* 0x31004760: push esi */
   1161     esi = ecx; /* 0x31004761: mov esi, ecx */
   1162     eax = MEM32(esi); /* 0x31004763: mov eax, dword ptr [esi] */
   1163     PUSH32(esp, eax); /* 0x31004765: push eax */
   1164     RECOMP_ICALL(0x31004740u); /* 0x31004766: call 0x31004740 */ /* not lifted */
   1165     RECOMP_FLAGS_IN();
   1166     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3FFFFFFFu);
   1167     eax = eax & 0x3FFFFFFFu; /* 0x3100476B: and eax, 0x3fffffff */
   1168     _cf = 0;
   1169     _flag_k = FK_TEST;
   1170     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1171     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1172     esp = esp + 4; /* 0x31004770: add esp, 4 */
   1173     _flag_k = FK_ADD;
   1174     /* cmp eax, 1 */ /* 0x31004773: cmp eax, 1 */
   1175     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1176     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1177     _flag_k = FK_CMP;
   1178     if (CMP_NE(_flag_a, _flag_b)) goto L_31004799; /* 0x31004776: jne 0x31004799 */
   1179 L_31004778:
   1180     eax = MEM32(esi); /* 0x31004778: mov eax, dword ptr [esi] */
   1181     /* cmp MEM32(eax), 0x80000000u */ /* 0x3100477A: cmp dword ptr [eax], 0x80000000 */
   1182     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x80000000u);
   1183     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1184     _flag_k = FK_CMP;
   1185     if (CMP_NE(_flag_a, _flag_b)) goto L_3100478E; /* 0x31004780: jne 0x3100478e */
   1186 L_31004782:
   1187     ecx = MEM32(eax + 0x8); /* 0x31004782: mov ecx, dword ptr [eax + 8] */
   1188     PUSH32(esp, ecx); /* 0x31004785: push ecx */
   1189     RECOMP_ICALL(0x31046858u); /* 0x31004786: call 0x31046858 */ /* not lifted */
   1190     RECOMP_FLAGS_IN();
   1191     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1192     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1193     esp = esp + 4; /* 0x3100478B: add esp, 4 */
   1194     _flag_k = FK_ADD;
   1195 L_3100478E:
   1196     edx = MEM32(esi); /* 0x3100478E: mov edx, dword ptr [esi] */
   1197     PUSH32(esp, edx); /* 0x31004790: push edx */
   1198     RECOMP_ICALL(0x31046858u); /* 0x31004791: call 0x31046858 */ /* not lifted */
   1199     RECOMP_FLAGS_IN();
   1200     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1201     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1202     esp = esp + 4; /* 0x31004796: add esp, 4 */
   1203     _flag_k = FK_ADD;
   1204 L_31004799:
   1205     esi = POP32_VAL(esp); /* 0x31004799: pop esi */
   1206     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100479A: ret  */
   1207 L_31047A31:
   1208     eax = MEM32(ebp + (-0x20)); /* 0x31047A31: mov eax, dword ptr [ebp - 0x20] */
   1209     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   1210     eax = eax & 1; /* 0x31047A34: and eax, 1 */
   1211     _cf = 0;
   1212     _flag_k = FK_TEST;
   1213     /* test eax, eax */ /* 0x31047A37: test eax, eax */
   1214     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   1215     _cf = 0;
   1216     _flag_k = FK_TEST;
   1217     if (TEST_Z(_flag_a, _flag_b)) goto L_31047A47; /* 0x31047A39: je 0x31047a47 */
   1218 L_31047A3F:
   1219     ecx = MEM32(ebp + 0x8); /* 0x31047A3F: mov ecx, dword ptr [ebp + 8] */
   1220     RECOMP_BACKEDGE();
   1221     goto L_31004760; /* 0x31047A42: jmp 0x31004760 */
   1222 L_31047A47:
   1223     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31047A47: ret  */
   1224     RECOMP_REGS_OUT();
   1225 }
   1226 
   1227 void sub_31047A48(void) {
   1228     int _fpu_cmp = 0;
   1229     uint32_t _cf = 0;
   1230     int _df = 1;
   1231     uint32_t _flag_k = FK_NONE;
   1232     uint32_t _flag_a = 0, _flag_b = 0;
   1233     uint32_t _itail_tgt = 0;
   1234     RECOMP_REGS_LOCALS
   1235     RECOMP_ENTER(0x31047A48u);
   1236 
   1237     goto L_31047A48;
   1238 L_3100B790:
   1239     PUSH32(esp, ebp); /* 0x3100B790: push ebp */
   1240     ebp = esp; /* 0x3100B791: mov ebp, esp */
   1241     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1242     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1243     esp = esp - 8; /* 0x3100B793: sub esp, 8 */
   1244     _flag_k = FK_CMP;
   1245     PUSH32(esp, ebx); /* 0x3100B796: push ebx */
   1246     PUSH32(esp, esi); /* 0x3100B797: push esi */
   1247     esi = ecx; /* 0x3100B798: mov esi, ecx */
   1248     ecx = MEM32(esi + 0x10); /* 0x3100B79A: mov ecx, dword ptr [esi + 0x10] */
   1249     /* test ecx, ecx */ /* 0x3100B79D: test ecx, ecx */
   1250     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1251     _cf = 0;
   1252     _flag_k = FK_TEST;
   1253     PUSH32(esp, edi); /* 0x3100B79F: push edi */
   1254     edi = MEM32(esi + 0x4); /* 0x3100B7A0: mov edi, dword ptr [esi + 4] */
   1255     eax = MEM32(edi); /* 0x3100B7A3: mov eax, dword ptr [edi] */
   1256     MEM32(ebp + (-0x4)) = eax; /* 0x3100B7A5: mov dword ptr [ebp - 4], eax */
   1257     if (TEST_Z(_flag_a, _flag_b)) goto L_3100B80F; /* 0x3100B7A8: je 0x3100b80f */
   1258 L_3100B7AA:
   1259     ecx = eax; /* 0x3100B7AA: mov ecx, eax */
   1260     /* cmp eax, ecx */ /* 0x3100B7AC: cmp eax, ecx */
   1261     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1262     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1263     _flag_k = FK_CMP;
   1264     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B80F; /* 0x3100B7AE: jne 0x3100b80f */
   1265 L_3100B7B0:
   1266     /* cmp edi, edi */ /* 0x3100B7B0: cmp edi, edi */
   1267     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1268     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1269     _flag_k = FK_CMP;
   1270     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B80F; /* 0x3100B7B2: jne 0x3100b80f */
   1271 L_3100B7B4:
   1272     ebx = MEM32(edi + 0x4); /* 0x3100B7B4: mov ebx, dword ptr [edi + 4] */
   1273     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3100B7B7: cmp ebx, dword ptr [esi + 8] */
   1274     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1275     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1276     _flag_k = FK_CMP;
   1277     edi = ebx; /* 0x3100B7BA: mov edi, ebx */
   1278     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100B7E7; /* 0x3100B7BC: je 0x3100b7e7 */
   1279 L_3100B7BE:
   1280     eax = MEM32(edi + 0x8); /* 0x3100B7BE: mov eax, dword ptr [edi + 8] */
   1281     PUSH32(esp, eax); /* 0x3100B7C1: push eax */
   1282     ecx = esi; /* 0x3100B7C2: mov ecx, esi */
   1283     RECOMP_ICALL(0x3100E8B0u); /* 0x3100B7C4: call 0x3100e8b0 */ /* not lifted */
   1284     RECOMP_FLAGS_IN();
   1285     edi = MEM32(edi); /* 0x3100B7C9: mov edi, dword ptr [edi] */
   1286     PUSH32(esp, 0); /* 0x3100B7CB: push 0 */
   1287     ecx = ebx + 0xC; /* 0x3100B7CD: lea ecx, [ebx + 0xc] */
   1288     RECOMP_ICALL(0x3100EE50u); /* 0x3100B7D0: call 0x3100ee50 */ /* not lifted */
   1289     RECOMP_FLAGS_IN();
   1290     PUSH32(esp, ebx); /* 0x3100B7D5: push ebx */
   1291     RECOMP_ICALL(0x31046858u); /* 0x3100B7D6: call 0x31046858 */ /* not lifted */
   1292     RECOMP_FLAGS_IN();
   1293     eax = MEM32(esi + 0x8); /* 0x3100B7DB: mov eax, dword ptr [esi + 8] */
   1294     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1295     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1296     esp = esp + 4; /* 0x3100B7DE: add esp, 4 */
   1297     _flag_k = FK_ADD;
   1298     /* cmp edi, eax */ /* 0x3100B7E1: cmp edi, eax */
   1299     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1300     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1301     _flag_k = FK_CMP;
   1302     ebx = edi; /* 0x3100B7E3: mov ebx, edi */
   1303     RECOMP_BACKEDGE();
   1304     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B7BE; /* 0x3100B7E5: jne 0x3100b7be */
   1305 L_3100B7E7:
   1306     ecx = MEM32(esi + 0x4); /* 0x3100B7E7: mov ecx, dword ptr [esi + 4] */
   1307     edx = MEM32(esi + 0x8); /* 0x3100B7EA: mov edx, dword ptr [esi + 8] */
   1308     MEM32(ecx + 0x4) = edx; /* 0x3100B7ED: mov dword ptr [ecx + 4], edx */
   1309     eax = MEM32(esi + 0x4); /* 0x3100B7F0: mov eax, dword ptr [esi + 4] */
   1310     MEM32(esi + 0x10) = 0; /* 0x3100B7F3: mov dword ptr [esi + 0x10], 0 */
   1311     MEM32(eax) = eax; /* 0x3100B7FA: mov dword ptr [eax], eax */
   1312     eax = MEM32(esi + 0x4); /* 0x3100B7FC: mov eax, dword ptr [esi + 4] */
   1313     MEM32(eax + 0x8) = eax; /* 0x3100B7FF: mov dword ptr [eax + 8], eax */
   1314     eax = ebp + (-0x8); /* 0x3100B802: lea eax, [ebp - 8] */
   1315     PUSH32(esp, eax); /* 0x3100B805: push eax */
   1316     ecx = esi; /* 0x3100B806: mov ecx, esi */
   1317     RECOMP_ICALL(0x3100E400u); /* 0x3100B808: call 0x3100e400 */ /* not lifted */
   1318     RECOMP_FLAGS_IN();
   1319     goto L_3100B830; /* 0x3100B80D: jmp 0x3100b830 */
   1320 L_3100B80F:
   1321     /* cmp eax, edi */ /* 0x3100B80F: cmp eax, edi */
   1322     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1323     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1324     _flag_k = FK_CMP;
   1325     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100B830; /* 0x3100B811: je 0x3100b830 */
   1326 L_3100B813:
   1327     ecx = ebp + (-0x4); /* 0x3100B813: lea ecx, [ebp - 4] */
   1328     ebx = eax; /* 0x3100B816: mov ebx, eax */
   1329     RECOMP_ICALL(0x3100EC20u); /* 0x3100B818: call 0x3100ec20 */ /* not lifted */
   1330     RECOMP_FLAGS_IN();
   1331     PUSH32(esp, ebx); /* 0x3100B81D: push ebx */
   1332     ecx = ebp + (-0x8); /* 0x3100B81E: lea ecx, [ebp - 8] */
   1333     PUSH32(esp, ecx); /* 0x3100B821: push ecx */
   1334     ecx = esi; /* 0x3100B822: mov ecx, esi */
   1335     RECOMP_ICALL(0x3100E4E0u); /* 0x3100B824: call 0x3100e4e0 */ /* not lifted */
   1336     RECOMP_FLAGS_IN();
   1337     eax = MEM32(ebp + (-0x4)); /* 0x3100B829: mov eax, dword ptr [ebp - 4] */
   1338     /* cmp eax, edi */ /* 0x3100B82C: cmp eax, edi */
   1339     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1340     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1341     _flag_k = FK_CMP;
   1342     RECOMP_BACKEDGE();
   1343     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B813; /* 0x3100B82E: jne 0x3100b813 */
   1344 L_3100B830:
   1345     edx = MEM32(esi + 0x4); /* 0x3100B830: mov edx, dword ptr [esi + 4] */
   1346     PUSH32(esp, edx); /* 0x3100B833: push edx */
   1347     RECOMP_ICALL(0x31046858u); /* 0x3100B834: call 0x31046858 */ /* not lifted */
   1348     RECOMP_FLAGS_IN();
   1349     eax = MEM32(esi + 0x8); /* 0x3100B839: mov eax, dword ptr [esi + 8] */
   1350     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1351     edi = 0; /* 0x3100B83C: xor edi, edi */
   1352     _cf = 0;
   1353     _flag_k = FK_TEST;
   1354     PUSH32(esp, eax); /* 0x3100B83E: push eax */
   1355     MEM32(esi + 0x4) = edi; /* 0x3100B83F: mov dword ptr [esi + 4], edi */
   1356     MEM32(esi + 0x10) = edi; /* 0x3100B842: mov dword ptr [esi + 0x10], edi */
   1357     RECOMP_ICALL(0x31046858u); /* 0x3100B845: call 0x31046858 */ /* not lifted */
   1358     RECOMP_FLAGS_IN();
   1359     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1360     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1361     esp = esp + 8; /* 0x3100B84A: add esp, 8 */
   1362     _flag_k = FK_ADD;
   1363     MEM32(esi + 0x8) = edi; /* 0x3100B84D: mov dword ptr [esi + 8], edi */
   1364     edi = POP32_VAL(esp); /* 0x3100B850: pop edi */
   1365     esi = POP32_VAL(esp); /* 0x3100B851: pop esi */
   1366     ebx = POP32_VAL(esp); /* 0x3100B852: pop ebx */
   1367     esp = ebp; /* 0x3100B853: mov esp, ebp */
   1368     ebp = POP32_VAL(esp); /* 0x3100B855: pop ebp */
   1369     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100B856: ret  */
   1370 L_31047A48:
   1371     ecx = ebp + (-0x6C); /* 0x31047A48: lea ecx, [ebp - 0x6c] */
   1372     RECOMP_BACKEDGE();
   1373     goto L_3100B790; /* 0x31047A4B: jmp 0x3100b790 */
   1374     { RECOMP_REGS_OUT(); return; } /* end of function */
   1375     RECOMP_REGS_OUT();
   1376 }
   1377 
   1378 void sub_31047A50(void) {
   1379     int _fpu_cmp = 0;
   1380     uint32_t _cf = 0;
   1381     int _df = 1;
   1382     uint32_t _flag_k = FK_NONE;
   1383     uint32_t _flag_a = 0, _flag_b = 0;
   1384     uint32_t _itail_tgt = 0;
   1385     RECOMP_REGS_LOCALS
   1386     RECOMP_ENTER(0x31047A50u);
   1387 
   1388     goto L_31047A50;
   1389 L_31004880:
   1390     PUSH32(esp, ebp); /* 0x31004880: push ebp */
   1391     ebp = esp; /* 0x31004881: mov ebp, esp */
   1392     PUSH32(esp, ecx); /* 0x31004883: push ecx */
   1393     PUSH32(esp, esi); /* 0x31004884: push esi */
   1394     esi = ecx; /* 0x31004885: mov esi, ecx */
   1395     eax = MEM32(esi + 0x4); /* 0x31004887: mov eax, dword ptr [esi + 4] */
   1396     PUSH32(esp, eax); /* 0x3100488A: push eax */
   1397     MEM32(ebp + (-0x4)) = eax; /* 0x3100488B: mov dword ptr [ebp - 4], eax */
   1398     RECOMP_ICALL(0x31046858u); /* 0x3100488E: call 0x31046858 */ /* not lifted */
   1399     RECOMP_FLAGS_IN();
   1400     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1401     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1402     esp = esp + 4; /* 0x31004893: add esp, 4 */
   1403     _flag_k = FK_ADD;
   1404     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1405     eax = 0; /* 0x31004896: xor eax, eax */
   1406     _cf = 0;
   1407     _flag_k = FK_TEST;
   1408     MEM32(esi + 0x4) = eax; /* 0x31004898: mov dword ptr [esi + 4], eax */
   1409     MEM32(esi + 0x8) = eax; /* 0x3100489B: mov dword ptr [esi + 8], eax */
   1410     MEM32(esi + 0xC) = eax; /* 0x3100489E: mov dword ptr [esi + 0xc], eax */
   1411     esi = POP32_VAL(esp); /* 0x310048A1: pop esi */
   1412     esp = ebp; /* 0x310048A2: mov esp, ebp */
   1413     ebp = POP32_VAL(esp); /* 0x310048A4: pop ebp */
   1414     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x310048A5: ret  */
   1415 L_31047A50:
   1416     ecx = ebp + (-0x40); /* 0x31047A50: lea ecx, [ebp - 0x40] */
   1417     RECOMP_BACKEDGE();
   1418     goto L_31004880; /* 0x31047A53: jmp 0x31004880 */
   1419     { RECOMP_REGS_OUT(); return; } /* end of function */
   1420     RECOMP_REGS_OUT();
   1421 }
   1422 
   1423 void sub_31047A58(void) {
   1424     int _fpu_cmp = 0;
   1425     uint32_t _cf = 0;
   1426     int _df = 1;
   1427     uint32_t _flag_k = FK_NONE;
   1428     uint32_t _flag_a = 0, _flag_b = 0;
   1429     uint32_t _itail_tgt = 0;
   1430     RECOMP_REGS_LOCALS
   1431     RECOMP_ENTER(0x31047A58u);
   1432 
   1433     goto L_31047A58;
   1434 L_31046870:
   1435     { _itail_tgt = (uint32_t)(MEM32(0x31048200)); goto _ljump; }
   1436 L_31047A58:
   1437     eax = 0x31049DF0u; /* 0x31047A58: mov eax, 0x31049df0 */
   1438 L_31047A5D:
   1439     RECOMP_BACKEDGE();
   1440     goto L_31046870; /* 0x31047A5D: jmp 0x31046870 */
   1441     { RECOMP_REGS_OUT(); return; } /* end of function */
   1442   _ljump:
   1443     switch (_itail_tgt) {
   1444       case 0x31046870u: goto L_31046870;
   1445       case 0x31047A58u: goto L_31047A58;
   1446       case 0x31047A5Du: goto L_31047A5D;
   1447       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1448     }
   1449     RECOMP_REGS_OUT();
   1450 }
   1451 
   1452 void sub_31047A70(void) {
   1453     int _fpu_cmp = 0;
   1454     uint32_t _cf = 0;
   1455     int _df = 1;
   1456     uint32_t _flag_k = FK_NONE;
   1457     uint32_t _flag_a = 0, _flag_b = 0;
   1458     uint32_t _itail_tgt = 0;
   1459     RECOMP_REGS_LOCALS
   1460     RECOMP_ENTER(0x31047A70u);
   1461 
   1462     goto L_31047A70;
   1463 L_3100B670:
   1464     PUSH32(esp, ebp); /* 0x3100B670: push ebp */
   1465     ebp = esp; /* 0x3100B671: mov ebp, esp */
   1466     PUSH32(esp, 0xFFFFFFFFu); /* 0x3100B673: push -1 */
   1467     PUSH32(esp, 0x31047546u); /* 0x3100B675: push 0x31047546 */
   1468     eax = MEM32(FS_BASE + (0)); /* 0x3100B67A: mov eax, dword ptr fs:[0] */
   1469     PUSH32(esp, eax); /* 0x3100B680: push eax */
   1470     MEM32(FS_BASE + (0)) = esp; /* 0x3100B681: mov dword ptr fs:[0], esp */
   1471     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1472     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1473     esp = esp - 8; /* 0x3100B688: sub esp, 8 */
   1474     _flag_k = FK_CMP;
   1475     PUSH32(esp, ebx); /* 0x3100B68B: push ebx */
   1476     PUSH32(esp, esi); /* 0x3100B68C: push esi */
   1477     esi = ecx; /* 0x3100B68D: mov esi, ecx */
   1478     PUSH32(esp, edi); /* 0x3100B68F: push edi */
   1479     MEM32(ebp + (-0x10)) = esi; /* 0x3100B690: mov dword ptr [ebp - 0x10], esi */
   1480     MEM32(esi) = 0x3104876Cu; /* 0x3100B693: mov dword ptr [esi], 0x3104876c */
   1481     MEM32(ebp + (-0x4)) = 1; /* 0x3100B699: mov dword ptr [ebp - 4], 1 */
   1482     RECOMP_ICALL(MEM32(0x310482F8)); /* 0x3100B6A0: call dword ptr [0x310482f8] */
   1483     RECOMP_FLAGS_IN();
   1484     eax = MEM32(esi + 0x34); /* 0x3100B6A6: mov eax, dword ptr [esi + 0x34] */
   1485     PUSH32(esp, eax); /* 0x3100B6A9: push eax */
   1486     MEM32(ebp + (-0x10)) = eax; /* 0x3100B6AA: mov dword ptr [ebp - 0x10], eax */
   1487     RECOMP_ICALL(0x31046858u); /* 0x3100B6AD: call 0x31046858 */ /* not lifted */
   1488     RECOMP_FLAGS_IN();
   1489     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1490     ebx = 0; /* 0x3100B6B2: xor ebx, ebx */
   1491     _cf = 0;
   1492     _flag_k = FK_TEST;
   1493     MEM32(esi + 0x34) = ebx; /* 0x3100B6B4: mov dword ptr [esi + 0x34], ebx */
   1494     MEM32(esi + 0x38) = ebx; /* 0x3100B6B7: mov dword ptr [esi + 0x38], ebx */
   1495     MEM32(esi + 0x3C) = ebx; /* 0x3100B6BA: mov dword ptr [esi + 0x3c], ebx */
   1496     edi = MEM32(esi + 0x8); /* 0x3100B6BD: mov edi, dword ptr [esi + 8] */
   1497     ecx = MEM32(esi + 0x14); /* 0x3100B6C0: mov ecx, dword ptr [esi + 0x14] */
   1498     eax = MEM32(edi); /* 0x3100B6C3: mov eax, dword ptr [edi] */
   1499     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   1500     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1501     esi = esi + 4; /* 0x3100B6C5: add esi, 4 */
   1502     _flag_k = FK_ADD;
   1503     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1504     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1505     esp = esp + 4; /* 0x3100B6C8: add esp, 4 */
   1506     _flag_k = FK_ADD;
   1507     /* cmp ecx, ebx */ /* 0x3100B6CB: cmp ecx, ebx */
   1508     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   1509     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1510     _flag_k = FK_CMP;
   1511     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3100B6CD: mov dword ptr [ebp - 4], 0xffffffff */
   1512     MEM32(ebp + (-0x10)) = eax; /* 0x3100B6D4: mov dword ptr [ebp - 0x10], eax */
   1513     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100B707; /* 0x3100B6D7: je 0x3100b707 */
   1514 L_3100B6D9:
   1515     ecx = eax; /* 0x3100B6D9: mov ecx, eax */
   1516     /* cmp eax, ecx */ /* 0x3100B6DB: cmp eax, ecx */
   1517     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1518     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1519     _flag_k = FK_CMP;
   1520     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B707; /* 0x3100B6DD: jne 0x3100b707 */
   1521 L_3100B6DF:
   1522     /* cmp edi, edi */ /* 0x3100B6DF: cmp edi, edi */
   1523     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1524     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1525     _flag_k = FK_CMP;
   1526     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B707; /* 0x3100B6E1: jne 0x3100b707 */
   1527 L_3100B6E3:
   1528     eax = MEM32(edi + 0x4); /* 0x3100B6E3: mov eax, dword ptr [edi + 4] */
   1529     PUSH32(esp, eax); /* 0x3100B6E6: push eax */
   1530     ecx = esi; /* 0x3100B6E7: mov ecx, esi */
   1531     RECOMP_ICALL(0x3100E8B0u); /* 0x3100B6E9: call 0x3100e8b0 */ /* not lifted */
   1532     RECOMP_FLAGS_IN();
   1533     ecx = MEM32(esi + 0x4); /* 0x3100B6EE: mov ecx, dword ptr [esi + 4] */
   1534     edx = MEM32(esi + 0x8); /* 0x3100B6F1: mov edx, dword ptr [esi + 8] */
   1535     MEM32(ecx + 0x4) = edx; /* 0x3100B6F4: mov dword ptr [ecx + 4], edx */
   1536     eax = MEM32(esi + 0x4); /* 0x3100B6F7: mov eax, dword ptr [esi + 4] */
   1537     MEM32(esi + 0x10) = ebx; /* 0x3100B6FA: mov dword ptr [esi + 0x10], ebx */
   1538     MEM32(eax) = eax; /* 0x3100B6FD: mov dword ptr [eax], eax */
   1539     eax = MEM32(esi + 0x4); /* 0x3100B6FF: mov eax, dword ptr [esi + 4] */
   1540     MEM32(eax + 0x8) = eax; /* 0x3100B702: mov dword ptr [eax + 8], eax */
   1541     goto L_3100B72A; /* 0x3100B705: jmp 0x3100b72a */
   1542 L_3100B707:
   1543     /* cmp eax, edi */ /* 0x3100B707: cmp eax, edi */
   1544     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1545     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1546     _flag_k = FK_CMP;
   1547     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100B72A; /* 0x3100B709: je 0x3100b72a */
   1548 L_3100B70B:
   1549     ecx = ebp + (-0x10); /* 0x3100B70B: lea ecx, [ebp - 0x10] */
   1550     ebx = eax; /* 0x3100B70E: mov ebx, eax */
   1551     RECOMP_ICALL(0x3100EC20u); /* 0x3100B710: call 0x3100ec20 */ /* not lifted */
   1552     RECOMP_FLAGS_IN();
   1553     PUSH32(esp, ebx); /* 0x3100B715: push ebx */
   1554     eax = ebp + (-0x14); /* 0x3100B716: lea eax, [ebp - 0x14] */
   1555     PUSH32(esp, eax); /* 0x3100B719: push eax */
   1556     ecx = esi; /* 0x3100B71A: mov ecx, esi */
   1557     RECOMP_ICALL(0x3100E4E0u); /* 0x3100B71C: call 0x3100e4e0 */ /* not lifted */
   1558     RECOMP_FLAGS_IN();
   1559     eax = MEM32(ebp + (-0x10)); /* 0x3100B721: mov eax, dword ptr [ebp - 0x10] */
   1560     /* cmp eax, edi */ /* 0x3100B724: cmp eax, edi */
   1561     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1562     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1563     _flag_k = FK_CMP;
   1564     RECOMP_BACKEDGE();
   1565     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B70B; /* 0x3100B726: jne 0x3100b70b */
   1566 L_3100B728:
   1567     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1568     ebx = 0; /* 0x3100B728: xor ebx, ebx */
   1569     _cf = 0;
   1570     _flag_k = FK_TEST;
   1571 L_3100B72A:
   1572     ecx = MEM32(esi + 0x4); /* 0x3100B72A: mov ecx, dword ptr [esi + 4] */
   1573     PUSH32(esp, ecx); /* 0x3100B72D: push ecx */
   1574     RECOMP_ICALL(0x31046858u); /* 0x3100B72E: call 0x31046858 */ /* not lifted */
   1575     RECOMP_FLAGS_IN();
   1576     edx = MEM32(esi + 0x8); /* 0x3100B733: mov edx, dword ptr [esi + 8] */
   1577     PUSH32(esp, edx); /* 0x3100B736: push edx */
   1578     MEM32(esi + 0x4) = ebx; /* 0x3100B737: mov dword ptr [esi + 4], ebx */
   1579     MEM32(esi + 0x10) = ebx; /* 0x3100B73A: mov dword ptr [esi + 0x10], ebx */
   1580     RECOMP_ICALL(0x31046858u); /* 0x3100B73D: call 0x31046858 */ /* not lifted */
   1581     RECOMP_FLAGS_IN();
   1582     ecx = MEM32(ebp + (-0xC)); /* 0x3100B742: mov ecx, dword ptr [ebp - 0xc] */
   1583     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1584     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1585     esp = esp + 8; /* 0x3100B745: add esp, 8 */
   1586     _flag_k = FK_ADD;
   1587     MEM32(esi + 0x8) = ebx; /* 0x3100B748: mov dword ptr [esi + 8], ebx */
   1588     edi = POP32_VAL(esp); /* 0x3100B74B: pop edi */
   1589     esi = POP32_VAL(esp); /* 0x3100B74C: pop esi */
   1590     ebx = POP32_VAL(esp); /* 0x3100B74D: pop ebx */
   1591     MEM32(FS_BASE + (0)) = ecx; /* 0x3100B74E: mov dword ptr fs:[0], ecx */
   1592     esp = ebp; /* 0x3100B755: mov esp, ebp */
   1593     ebp = POP32_VAL(esp); /* 0x3100B757: pop ebp */
   1594     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100B758: ret  */
   1595 L_31047A70:
   1596     ecx = ebp + (-0x6C); /* 0x31047A70: lea ecx, [ebp - 0x6c] */
   1597     RECOMP_BACKEDGE();
   1598     goto L_3100B670; /* 0x31047A73: jmp 0x3100b670 */
   1599     { RECOMP_REGS_OUT(); return; } /* end of function */
   1600     RECOMP_REGS_OUT();
   1601 }
   1602 
   1603 void sub_31047A78(void) {
   1604     int _fpu_cmp = 0;
   1605     uint32_t _cf = 0;
   1606     int _df = 1;
   1607     uint32_t _flag_k = FK_NONE;
   1608     uint32_t _flag_a = 0, _flag_b = 0;
   1609     uint32_t _itail_tgt = 0;
   1610     RECOMP_REGS_LOCALS
   1611     RECOMP_ENTER(0x31047A78u);
   1612 
   1613 L_31047A78:
   1614     ecx = ebp + (-0x2C); /* 0x31047A78: lea ecx, [ebp - 0x2c] */
   1615 L_31047A7B:
   1616     { _itail_tgt = (uint32_t)(MEM32(0x310480C8)); goto _ljump; }
   1617     { RECOMP_REGS_OUT(); return; } /* end of function */
   1618   _ljump:
   1619     switch (_itail_tgt) {
   1620       case 0x31047A78u: goto L_31047A78;
   1621       case 0x31047A7Bu: goto L_31047A7B;
   1622       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1623     }
   1624     RECOMP_REGS_OUT();
   1625 }
   1626 
   1627 void sub_31047A81(void) {
   1628     int _fpu_cmp = 0;
   1629     uint32_t _cf = 0;
   1630     int _df = 1;
   1631     uint32_t _flag_k = FK_NONE;
   1632     uint32_t _flag_a = 0, _flag_b = 0;
   1633     uint32_t _itail_tgt = 0;
   1634     RECOMP_REGS_LOCALS
   1635     RECOMP_ENTER(0x31047A81u);
   1636 
   1637     goto L_31047A81;
   1638 L_3100B790:
   1639     PUSH32(esp, ebp); /* 0x3100B790: push ebp */
   1640     ebp = esp; /* 0x3100B791: mov ebp, esp */
   1641     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1642     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1643     esp = esp - 8; /* 0x3100B793: sub esp, 8 */
   1644     _flag_k = FK_CMP;
   1645     PUSH32(esp, ebx); /* 0x3100B796: push ebx */
   1646     PUSH32(esp, esi); /* 0x3100B797: push esi */
   1647     esi = ecx; /* 0x3100B798: mov esi, ecx */
   1648     ecx = MEM32(esi + 0x10); /* 0x3100B79A: mov ecx, dword ptr [esi + 0x10] */
   1649     /* test ecx, ecx */ /* 0x3100B79D: test ecx, ecx */
   1650     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   1651     _cf = 0;
   1652     _flag_k = FK_TEST;
   1653     PUSH32(esp, edi); /* 0x3100B79F: push edi */
   1654     edi = MEM32(esi + 0x4); /* 0x3100B7A0: mov edi, dword ptr [esi + 4] */
   1655     eax = MEM32(edi); /* 0x3100B7A3: mov eax, dword ptr [edi] */
   1656     MEM32(ebp + (-0x4)) = eax; /* 0x3100B7A5: mov dword ptr [ebp - 4], eax */
   1657     if (TEST_Z(_flag_a, _flag_b)) goto L_3100B80F; /* 0x3100B7A8: je 0x3100b80f */
   1658 L_3100B7AA:
   1659     ecx = eax; /* 0x3100B7AA: mov ecx, eax */
   1660     /* cmp eax, ecx */ /* 0x3100B7AC: cmp eax, ecx */
   1661     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1662     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1663     _flag_k = FK_CMP;
   1664     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B80F; /* 0x3100B7AE: jne 0x3100b80f */
   1665 L_3100B7B0:
   1666     /* cmp edi, edi */ /* 0x3100B7B0: cmp edi, edi */
   1667     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1668     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1669     _flag_k = FK_CMP;
   1670     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B80F; /* 0x3100B7B2: jne 0x3100b80f */
   1671 L_3100B7B4:
   1672     ebx = MEM32(edi + 0x4); /* 0x3100B7B4: mov ebx, dword ptr [edi + 4] */
   1673     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3100B7B7: cmp ebx, dword ptr [esi + 8] */
   1674     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   1675     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1676     _flag_k = FK_CMP;
   1677     edi = ebx; /* 0x3100B7BA: mov edi, ebx */
   1678     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100B7E7; /* 0x3100B7BC: je 0x3100b7e7 */
   1679 L_3100B7BE:
   1680     eax = MEM32(edi + 0x8); /* 0x3100B7BE: mov eax, dword ptr [edi + 8] */
   1681     PUSH32(esp, eax); /* 0x3100B7C1: push eax */
   1682     ecx = esi; /* 0x3100B7C2: mov ecx, esi */
   1683     RECOMP_ICALL(0x3100E8B0u); /* 0x3100B7C4: call 0x3100e8b0 */ /* not lifted */
   1684     RECOMP_FLAGS_IN();
   1685     edi = MEM32(edi); /* 0x3100B7C9: mov edi, dword ptr [edi] */
   1686     PUSH32(esp, 0); /* 0x3100B7CB: push 0 */
   1687     ecx = ebx + 0xC; /* 0x3100B7CD: lea ecx, [ebx + 0xc] */
   1688     RECOMP_ICALL(0x3100EE50u); /* 0x3100B7D0: call 0x3100ee50 */ /* not lifted */
   1689     RECOMP_FLAGS_IN();
   1690     PUSH32(esp, ebx); /* 0x3100B7D5: push ebx */
   1691     RECOMP_ICALL(0x31046858u); /* 0x3100B7D6: call 0x31046858 */ /* not lifted */
   1692     RECOMP_FLAGS_IN();
   1693     eax = MEM32(esi + 0x8); /* 0x3100B7DB: mov eax, dword ptr [esi + 8] */
   1694     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1695     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1696     esp = esp + 4; /* 0x3100B7DE: add esp, 4 */
   1697     _flag_k = FK_ADD;
   1698     /* cmp edi, eax */ /* 0x3100B7E1: cmp edi, eax */
   1699     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   1700     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1701     _flag_k = FK_CMP;
   1702     ebx = edi; /* 0x3100B7E3: mov ebx, edi */
   1703     RECOMP_BACKEDGE();
   1704     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B7BE; /* 0x3100B7E5: jne 0x3100b7be */
   1705 L_3100B7E7:
   1706     ecx = MEM32(esi + 0x4); /* 0x3100B7E7: mov ecx, dword ptr [esi + 4] */
   1707     edx = MEM32(esi + 0x8); /* 0x3100B7EA: mov edx, dword ptr [esi + 8] */
   1708     MEM32(ecx + 0x4) = edx; /* 0x3100B7ED: mov dword ptr [ecx + 4], edx */
   1709     eax = MEM32(esi + 0x4); /* 0x3100B7F0: mov eax, dword ptr [esi + 4] */
   1710     MEM32(esi + 0x10) = 0; /* 0x3100B7F3: mov dword ptr [esi + 0x10], 0 */
   1711     MEM32(eax) = eax; /* 0x3100B7FA: mov dword ptr [eax], eax */
   1712     eax = MEM32(esi + 0x4); /* 0x3100B7FC: mov eax, dword ptr [esi + 4] */
   1713     MEM32(eax + 0x8) = eax; /* 0x3100B7FF: mov dword ptr [eax + 8], eax */
   1714     eax = ebp + (-0x8); /* 0x3100B802: lea eax, [ebp - 8] */
   1715     PUSH32(esp, eax); /* 0x3100B805: push eax */
   1716     ecx = esi; /* 0x3100B806: mov ecx, esi */
   1717     RECOMP_ICALL(0x3100E400u); /* 0x3100B808: call 0x3100e400 */ /* not lifted */
   1718     RECOMP_FLAGS_IN();
   1719     goto L_3100B830; /* 0x3100B80D: jmp 0x3100b830 */
   1720 L_3100B80F:
   1721     /* cmp eax, edi */ /* 0x3100B80F: cmp eax, edi */
   1722     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1723     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1724     _flag_k = FK_CMP;
   1725     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100B830; /* 0x3100B811: je 0x3100b830 */
   1726 L_3100B813:
   1727     ecx = ebp + (-0x4); /* 0x3100B813: lea ecx, [ebp - 4] */
   1728     ebx = eax; /* 0x3100B816: mov ebx, eax */
   1729     RECOMP_ICALL(0x3100EC20u); /* 0x3100B818: call 0x3100ec20 */ /* not lifted */
   1730     RECOMP_FLAGS_IN();
   1731     PUSH32(esp, ebx); /* 0x3100B81D: push ebx */
   1732     ecx = ebp + (-0x8); /* 0x3100B81E: lea ecx, [ebp - 8] */
   1733     PUSH32(esp, ecx); /* 0x3100B821: push ecx */
   1734     ecx = esi; /* 0x3100B822: mov ecx, esi */
   1735     RECOMP_ICALL(0x3100E4E0u); /* 0x3100B824: call 0x3100e4e0 */ /* not lifted */
   1736     RECOMP_FLAGS_IN();
   1737     eax = MEM32(ebp + (-0x4)); /* 0x3100B829: mov eax, dword ptr [ebp - 4] */
   1738     /* cmp eax, edi */ /* 0x3100B82C: cmp eax, edi */
   1739     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1740     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1741     _flag_k = FK_CMP;
   1742     RECOMP_BACKEDGE();
   1743     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B813; /* 0x3100B82E: jne 0x3100b813 */
   1744 L_3100B830:
   1745     edx = MEM32(esi + 0x4); /* 0x3100B830: mov edx, dword ptr [esi + 4] */
   1746     PUSH32(esp, edx); /* 0x3100B833: push edx */
   1747     RECOMP_ICALL(0x31046858u); /* 0x3100B834: call 0x31046858 */ /* not lifted */
   1748     RECOMP_FLAGS_IN();
   1749     eax = MEM32(esi + 0x8); /* 0x3100B839: mov eax, dword ptr [esi + 8] */
   1750     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1751     edi = 0; /* 0x3100B83C: xor edi, edi */
   1752     _cf = 0;
   1753     _flag_k = FK_TEST;
   1754     PUSH32(esp, eax); /* 0x3100B83E: push eax */
   1755     MEM32(esi + 0x4) = edi; /* 0x3100B83F: mov dword ptr [esi + 4], edi */
   1756     MEM32(esi + 0x10) = edi; /* 0x3100B842: mov dword ptr [esi + 0x10], edi */
   1757     RECOMP_ICALL(0x31046858u); /* 0x3100B845: call 0x31046858 */ /* not lifted */
   1758     RECOMP_FLAGS_IN();
   1759     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1760     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1761     esp = esp + 8; /* 0x3100B84A: add esp, 8 */
   1762     _flag_k = FK_ADD;
   1763     MEM32(esi + 0x8) = edi; /* 0x3100B84D: mov dword ptr [esi + 8], edi */
   1764     edi = POP32_VAL(esp); /* 0x3100B850: pop edi */
   1765     esi = POP32_VAL(esp); /* 0x3100B851: pop esi */
   1766     ebx = POP32_VAL(esp); /* 0x3100B852: pop ebx */
   1767     esp = ebp; /* 0x3100B853: mov esp, ebp */
   1768     ebp = POP32_VAL(esp); /* 0x3100B855: pop ebp */
   1769     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100B856: ret  */
   1770 L_31047A81:
   1771     ecx = ebp + (-0x68); /* 0x31047A81: lea ecx, [ebp - 0x68] */
   1772     RECOMP_BACKEDGE();
   1773     goto L_3100B790; /* 0x31047A84: jmp 0x3100b790 */
   1774     { RECOMP_REGS_OUT(); return; } /* end of function */
   1775     RECOMP_REGS_OUT();
   1776 }
   1777 
   1778 void sub_31047A89(void) {
   1779     int _fpu_cmp = 0;
   1780     uint32_t _cf = 0;
   1781     int _df = 1;
   1782     uint32_t _flag_k = FK_NONE;
   1783     uint32_t _flag_a = 0, _flag_b = 0;
   1784     uint32_t _itail_tgt = 0;
   1785     RECOMP_REGS_LOCALS
   1786     RECOMP_ENTER(0x31047A89u);
   1787 
   1788     goto L_31047A89;
   1789 L_31004880:
   1790     PUSH32(esp, ebp); /* 0x31004880: push ebp */
   1791     ebp = esp; /* 0x31004881: mov ebp, esp */
   1792     PUSH32(esp, ecx); /* 0x31004883: push ecx */
   1793     PUSH32(esp, esi); /* 0x31004884: push esi */
   1794     esi = ecx; /* 0x31004885: mov esi, ecx */
   1795     eax = MEM32(esi + 0x4); /* 0x31004887: mov eax, dword ptr [esi + 4] */
   1796     PUSH32(esp, eax); /* 0x3100488A: push eax */
   1797     MEM32(ebp + (-0x4)) = eax; /* 0x3100488B: mov dword ptr [ebp - 4], eax */
   1798     RECOMP_ICALL(0x31046858u); /* 0x3100488E: call 0x31046858 */ /* not lifted */
   1799     RECOMP_FLAGS_IN();
   1800     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1801     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1802     esp = esp + 4; /* 0x31004893: add esp, 4 */
   1803     _flag_k = FK_ADD;
   1804     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1805     eax = 0; /* 0x31004896: xor eax, eax */
   1806     _cf = 0;
   1807     _flag_k = FK_TEST;
   1808     MEM32(esi + 0x4) = eax; /* 0x31004898: mov dword ptr [esi + 4], eax */
   1809     MEM32(esi + 0x8) = eax; /* 0x3100489B: mov dword ptr [esi + 8], eax */
   1810     MEM32(esi + 0xC) = eax; /* 0x3100489E: mov dword ptr [esi + 0xc], eax */
   1811     esi = POP32_VAL(esp); /* 0x310048A1: pop esi */
   1812     esp = ebp; /* 0x310048A2: mov esp, ebp */
   1813     ebp = POP32_VAL(esp); /* 0x310048A4: pop ebp */
   1814     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x310048A5: ret  */
   1815 L_31047A89:
   1816     ecx = ebp + (-0x3C); /* 0x31047A89: lea ecx, [ebp - 0x3c] */
   1817     RECOMP_BACKEDGE();
   1818     goto L_31004880; /* 0x31047A8C: jmp 0x31004880 */
   1819     { RECOMP_REGS_OUT(); return; } /* end of function */
   1820     RECOMP_REGS_OUT();
   1821 }
   1822 
   1823 void sub_31047A91(void) {
   1824     int _fpu_cmp = 0;
   1825     uint32_t _cf = 0;
   1826     int _df = 1;
   1827     uint32_t _flag_k = FK_NONE;
   1828     uint32_t _flag_a = 0, _flag_b = 0;
   1829     uint32_t _itail_tgt = 0;
   1830     RECOMP_REGS_LOCALS
   1831     RECOMP_ENTER(0x31047A91u);
   1832 
   1833     goto L_31047A91;
   1834 L_31046870:
   1835     { _itail_tgt = (uint32_t)(MEM32(0x31048200)); goto _ljump; }
   1836 L_31047A91:
   1837     eax = 0x31049E38u; /* 0x31047A91: mov eax, 0x31049e38 */
   1838 L_31047A96:
   1839     RECOMP_BACKEDGE();
   1840     goto L_31046870; /* 0x31047A96: jmp 0x31046870 */
   1841     { RECOMP_REGS_OUT(); return; } /* end of function */
   1842   _ljump:
   1843     switch (_itail_tgt) {
   1844       case 0x31046870u: goto L_31046870;
   1845       case 0x31047A91u: goto L_31047A91;
   1846       case 0x31047A96u: goto L_31047A96;
   1847       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   1848     }
   1849     RECOMP_REGS_OUT();
   1850 }
   1851 
   1852 void sub_31047AA0(void) {
   1853     int _fpu_cmp = 0;
   1854     uint32_t _cf = 0;
   1855     int _df = 1;
   1856     uint32_t _flag_k = FK_NONE;
   1857     uint32_t _flag_a = 0, _flag_b = 0;
   1858     uint32_t _itail_tgt = 0;
   1859     RECOMP_REGS_LOCALS
   1860     RECOMP_ENTER(0x31047AA0u);
   1861 
   1862     goto L_31047AA0;
   1863 L_3100B670:
   1864     PUSH32(esp, ebp); /* 0x3100B670: push ebp */
   1865     ebp = esp; /* 0x3100B671: mov ebp, esp */
   1866     PUSH32(esp, 0xFFFFFFFFu); /* 0x3100B673: push -1 */
   1867     PUSH32(esp, 0x31047546u); /* 0x3100B675: push 0x31047546 */
   1868     eax = MEM32(FS_BASE + (0)); /* 0x3100B67A: mov eax, dword ptr fs:[0] */
   1869     PUSH32(esp, eax); /* 0x3100B680: push eax */
   1870     MEM32(FS_BASE + (0)) = esp; /* 0x3100B681: mov dword ptr fs:[0], esp */
   1871     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1872     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1873     esp = esp - 8; /* 0x3100B688: sub esp, 8 */
   1874     _flag_k = FK_CMP;
   1875     PUSH32(esp, ebx); /* 0x3100B68B: push ebx */
   1876     PUSH32(esp, esi); /* 0x3100B68C: push esi */
   1877     esi = ecx; /* 0x3100B68D: mov esi, ecx */
   1878     PUSH32(esp, edi); /* 0x3100B68F: push edi */
   1879     MEM32(ebp + (-0x10)) = esi; /* 0x3100B690: mov dword ptr [ebp - 0x10], esi */
   1880     MEM32(esi) = 0x3104876Cu; /* 0x3100B693: mov dword ptr [esi], 0x3104876c */
   1881     MEM32(ebp + (-0x4)) = 1; /* 0x3100B699: mov dword ptr [ebp - 4], 1 */
   1882     RECOMP_ICALL(MEM32(0x310482F8)); /* 0x3100B6A0: call dword ptr [0x310482f8] */
   1883     RECOMP_FLAGS_IN();
   1884     eax = MEM32(esi + 0x34); /* 0x3100B6A6: mov eax, dword ptr [esi + 0x34] */
   1885     PUSH32(esp, eax); /* 0x3100B6A9: push eax */
   1886     MEM32(ebp + (-0x10)) = eax; /* 0x3100B6AA: mov dword ptr [ebp - 0x10], eax */
   1887     RECOMP_ICALL(0x31046858u); /* 0x3100B6AD: call 0x31046858 */ /* not lifted */
   1888     RECOMP_FLAGS_IN();
   1889     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1890     ebx = 0; /* 0x3100B6B2: xor ebx, ebx */
   1891     _cf = 0;
   1892     _flag_k = FK_TEST;
   1893     MEM32(esi + 0x34) = ebx; /* 0x3100B6B4: mov dword ptr [esi + 0x34], ebx */
   1894     MEM32(esi + 0x38) = ebx; /* 0x3100B6B7: mov dword ptr [esi + 0x38], ebx */
   1895     MEM32(esi + 0x3C) = ebx; /* 0x3100B6BA: mov dword ptr [esi + 0x3c], ebx */
   1896     edi = MEM32(esi + 0x8); /* 0x3100B6BD: mov edi, dword ptr [esi + 8] */
   1897     ecx = MEM32(esi + 0x14); /* 0x3100B6C0: mov ecx, dword ptr [esi + 0x14] */
   1898     eax = MEM32(edi); /* 0x3100B6C3: mov eax, dword ptr [edi] */
   1899     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   1900     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1901     esi = esi + 4; /* 0x3100B6C5: add esi, 4 */
   1902     _flag_k = FK_ADD;
   1903     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   1904     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1905     esp = esp + 4; /* 0x3100B6C8: add esp, 4 */
   1906     _flag_k = FK_ADD;
   1907     /* cmp ecx, ebx */ /* 0x3100B6CB: cmp ecx, ebx */
   1908     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   1909     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1910     _flag_k = FK_CMP;
   1911     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3100B6CD: mov dword ptr [ebp - 4], 0xffffffff */
   1912     MEM32(ebp + (-0x10)) = eax; /* 0x3100B6D4: mov dword ptr [ebp - 0x10], eax */
   1913     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100B707; /* 0x3100B6D7: je 0x3100b707 */
   1914 L_3100B6D9:
   1915     ecx = eax; /* 0x3100B6D9: mov ecx, eax */
   1916     /* cmp eax, ecx */ /* 0x3100B6DB: cmp eax, ecx */
   1917     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   1918     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1919     _flag_k = FK_CMP;
   1920     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B707; /* 0x3100B6DD: jne 0x3100b707 */
   1921 L_3100B6DF:
   1922     /* cmp edi, edi */ /* 0x3100B6DF: cmp edi, edi */
   1923     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   1924     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1925     _flag_k = FK_CMP;
   1926     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B707; /* 0x3100B6E1: jne 0x3100b707 */
   1927 L_3100B6E3:
   1928     eax = MEM32(edi + 0x4); /* 0x3100B6E3: mov eax, dword ptr [edi + 4] */
   1929     PUSH32(esp, eax); /* 0x3100B6E6: push eax */
   1930     ecx = esi; /* 0x3100B6E7: mov ecx, esi */
   1931     RECOMP_ICALL(0x3100E8B0u); /* 0x3100B6E9: call 0x3100e8b0 */ /* not lifted */
   1932     RECOMP_FLAGS_IN();
   1933     ecx = MEM32(esi + 0x4); /* 0x3100B6EE: mov ecx, dword ptr [esi + 4] */
   1934     edx = MEM32(esi + 0x8); /* 0x3100B6F1: mov edx, dword ptr [esi + 8] */
   1935     MEM32(ecx + 0x4) = edx; /* 0x3100B6F4: mov dword ptr [ecx + 4], edx */
   1936     eax = MEM32(esi + 0x4); /* 0x3100B6F7: mov eax, dword ptr [esi + 4] */
   1937     MEM32(esi + 0x10) = ebx; /* 0x3100B6FA: mov dword ptr [esi + 0x10], ebx */
   1938     MEM32(eax) = eax; /* 0x3100B6FD: mov dword ptr [eax], eax */
   1939     eax = MEM32(esi + 0x4); /* 0x3100B6FF: mov eax, dword ptr [esi + 4] */
   1940     MEM32(eax + 0x8) = eax; /* 0x3100B702: mov dword ptr [eax + 8], eax */
   1941     goto L_3100B72A; /* 0x3100B705: jmp 0x3100b72a */
   1942 L_3100B707:
   1943     /* cmp eax, edi */ /* 0x3100B707: cmp eax, edi */
   1944     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1945     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1946     _flag_k = FK_CMP;
   1947     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100B72A; /* 0x3100B709: je 0x3100b72a */
   1948 L_3100B70B:
   1949     ecx = ebp + (-0x10); /* 0x3100B70B: lea ecx, [ebp - 0x10] */
   1950     ebx = eax; /* 0x3100B70E: mov ebx, eax */
   1951     RECOMP_ICALL(0x3100EC20u); /* 0x3100B710: call 0x3100ec20 */ /* not lifted */
   1952     RECOMP_FLAGS_IN();
   1953     PUSH32(esp, ebx); /* 0x3100B715: push ebx */
   1954     eax = ebp + (-0x14); /* 0x3100B716: lea eax, [ebp - 0x14] */
   1955     PUSH32(esp, eax); /* 0x3100B719: push eax */
   1956     ecx = esi; /* 0x3100B71A: mov ecx, esi */
   1957     RECOMP_ICALL(0x3100E4E0u); /* 0x3100B71C: call 0x3100e4e0 */ /* not lifted */
   1958     RECOMP_FLAGS_IN();
   1959     eax = MEM32(ebp + (-0x10)); /* 0x3100B721: mov eax, dword ptr [ebp - 0x10] */
   1960     /* cmp eax, edi */ /* 0x3100B724: cmp eax, edi */
   1961     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   1962     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   1963     _flag_k = FK_CMP;
   1964     RECOMP_BACKEDGE();
   1965     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B70B; /* 0x3100B726: jne 0x3100b70b */
   1966 L_3100B728:
   1967     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   1968     ebx = 0; /* 0x3100B728: xor ebx, ebx */
   1969     _cf = 0;
   1970     _flag_k = FK_TEST;
   1971 L_3100B72A:
   1972     ecx = MEM32(esi + 0x4); /* 0x3100B72A: mov ecx, dword ptr [esi + 4] */
   1973     PUSH32(esp, ecx); /* 0x3100B72D: push ecx */
   1974     RECOMP_ICALL(0x31046858u); /* 0x3100B72E: call 0x31046858 */ /* not lifted */
   1975     RECOMP_FLAGS_IN();
   1976     edx = MEM32(esi + 0x8); /* 0x3100B733: mov edx, dword ptr [esi + 8] */
   1977     PUSH32(esp, edx); /* 0x3100B736: push edx */
   1978     MEM32(esi + 0x4) = ebx; /* 0x3100B737: mov dword ptr [esi + 4], ebx */
   1979     MEM32(esi + 0x10) = ebx; /* 0x3100B73A: mov dword ptr [esi + 0x10], ebx */
   1980     RECOMP_ICALL(0x31046858u); /* 0x3100B73D: call 0x31046858 */ /* not lifted */
   1981     RECOMP_FLAGS_IN();
   1982     ecx = MEM32(ebp + (-0xC)); /* 0x3100B742: mov ecx, dword ptr [ebp - 0xc] */
   1983     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   1984     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   1985     esp = esp + 8; /* 0x3100B745: add esp, 8 */
   1986     _flag_k = FK_ADD;
   1987     MEM32(esi + 0x8) = ebx; /* 0x3100B748: mov dword ptr [esi + 8], ebx */
   1988     edi = POP32_VAL(esp); /* 0x3100B74B: pop edi */
   1989     esi = POP32_VAL(esp); /* 0x3100B74C: pop esi */
   1990     ebx = POP32_VAL(esp); /* 0x3100B74D: pop ebx */
   1991     MEM32(FS_BASE + (0)) = ecx; /* 0x3100B74E: mov dword ptr fs:[0], ecx */
   1992     esp = ebp; /* 0x3100B755: mov esp, ebp */
   1993     ebp = POP32_VAL(esp); /* 0x3100B757: pop ebp */
   1994     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100B758: ret  */
   1995 L_31047AA0:
   1996     ecx = ebp + (-0x68); /* 0x31047AA0: lea ecx, [ebp - 0x68] */
   1997     RECOMP_BACKEDGE();
   1998     goto L_3100B670; /* 0x31047AA3: jmp 0x3100b670 */
   1999     { RECOMP_REGS_OUT(); return; } /* end of function */
   2000     RECOMP_REGS_OUT();
   2001 }
   2002 
   2003 void sub_31047AA8(void) {
   2004     int _fpu_cmp = 0;
   2005     uint32_t _cf = 0;
   2006     int _df = 1;
   2007     uint32_t _flag_k = FK_NONE;
   2008     uint32_t _flag_a = 0, _flag_b = 0;
   2009     uint32_t _itail_tgt = 0;
   2010     RECOMP_REGS_LOCALS
   2011     RECOMP_ENTER(0x31047AA8u);
   2012 
   2013 L_31047AA8:
   2014     ecx = ebp + (-0x28); /* 0x31047AA8: lea ecx, [ebp - 0x28] */
   2015 L_31047AAB:
   2016     { _itail_tgt = (uint32_t)(MEM32(0x310480C8)); goto _ljump; }
   2017     { RECOMP_REGS_OUT(); return; } /* end of function */
   2018   _ljump:
   2019     switch (_itail_tgt) {
   2020       case 0x31047AA8u: goto L_31047AA8;
   2021       case 0x31047AABu: goto L_31047AAB;
   2022       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2023     }
   2024     RECOMP_REGS_OUT();
   2025 }
   2026 
   2027 void sub_31047AB1(void) {
   2028     int _fpu_cmp = 0;
   2029     uint32_t _cf = 0;
   2030     int _df = 1;
   2031     uint32_t _flag_k = FK_NONE;
   2032     uint32_t _flag_a = 0, _flag_b = 0;
   2033     uint32_t _itail_tgt = 0;
   2034     RECOMP_REGS_LOCALS
   2035     RECOMP_ENTER(0x31047AB1u);
   2036 
   2037     goto L_31047AB1;
   2038 L_3100B790:
   2039     PUSH32(esp, ebp); /* 0x3100B790: push ebp */
   2040     ebp = esp; /* 0x3100B791: mov ebp, esp */
   2041     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2042     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2043     esp = esp - 8; /* 0x3100B793: sub esp, 8 */
   2044     _flag_k = FK_CMP;
   2045     PUSH32(esp, ebx); /* 0x3100B796: push ebx */
   2046     PUSH32(esp, esi); /* 0x3100B797: push esi */
   2047     esi = ecx; /* 0x3100B798: mov esi, ecx */
   2048     ecx = MEM32(esi + 0x10); /* 0x3100B79A: mov ecx, dword ptr [esi + 0x10] */
   2049     /* test ecx, ecx */ /* 0x3100B79D: test ecx, ecx */
   2050     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   2051     _cf = 0;
   2052     _flag_k = FK_TEST;
   2053     PUSH32(esp, edi); /* 0x3100B79F: push edi */
   2054     edi = MEM32(esi + 0x4); /* 0x3100B7A0: mov edi, dword ptr [esi + 4] */
   2055     eax = MEM32(edi); /* 0x3100B7A3: mov eax, dword ptr [edi] */
   2056     MEM32(ebp + (-0x4)) = eax; /* 0x3100B7A5: mov dword ptr [ebp - 4], eax */
   2057     if (TEST_Z(_flag_a, _flag_b)) goto L_3100B80F; /* 0x3100B7A8: je 0x3100b80f */
   2058 L_3100B7AA:
   2059     ecx = eax; /* 0x3100B7AA: mov ecx, eax */
   2060     /* cmp eax, ecx */ /* 0x3100B7AC: cmp eax, ecx */
   2061     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   2062     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2063     _flag_k = FK_CMP;
   2064     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B80F; /* 0x3100B7AE: jne 0x3100b80f */
   2065 L_3100B7B0:
   2066     /* cmp edi, edi */ /* 0x3100B7B0: cmp edi, edi */
   2067     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   2068     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2069     _flag_k = FK_CMP;
   2070     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B80F; /* 0x3100B7B2: jne 0x3100b80f */
   2071 L_3100B7B4:
   2072     ebx = MEM32(edi + 0x4); /* 0x3100B7B4: mov ebx, dword ptr [edi + 4] */
   2073     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3100B7B7: cmp ebx, dword ptr [esi + 8] */
   2074     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   2075     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2076     _flag_k = FK_CMP;
   2077     edi = ebx; /* 0x3100B7BA: mov edi, ebx */
   2078     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100B7E7; /* 0x3100B7BC: je 0x3100b7e7 */
   2079 L_3100B7BE:
   2080     eax = MEM32(edi + 0x8); /* 0x3100B7BE: mov eax, dword ptr [edi + 8] */
   2081     PUSH32(esp, eax); /* 0x3100B7C1: push eax */
   2082     ecx = esi; /* 0x3100B7C2: mov ecx, esi */
   2083     RECOMP_ICALL(0x3100E8B0u); /* 0x3100B7C4: call 0x3100e8b0 */ /* not lifted */
   2084     RECOMP_FLAGS_IN();
   2085     edi = MEM32(edi); /* 0x3100B7C9: mov edi, dword ptr [edi] */
   2086     PUSH32(esp, 0); /* 0x3100B7CB: push 0 */
   2087     ecx = ebx + 0xC; /* 0x3100B7CD: lea ecx, [ebx + 0xc] */
   2088     RECOMP_ICALL(0x3100EE50u); /* 0x3100B7D0: call 0x3100ee50 */ /* not lifted */
   2089     RECOMP_FLAGS_IN();
   2090     PUSH32(esp, ebx); /* 0x3100B7D5: push ebx */
   2091     RECOMP_ICALL(0x31046858u); /* 0x3100B7D6: call 0x31046858 */ /* not lifted */
   2092     RECOMP_FLAGS_IN();
   2093     eax = MEM32(esi + 0x8); /* 0x3100B7DB: mov eax, dword ptr [esi + 8] */
   2094     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2095     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2096     esp = esp + 4; /* 0x3100B7DE: add esp, 4 */
   2097     _flag_k = FK_ADD;
   2098     /* cmp edi, eax */ /* 0x3100B7E1: cmp edi, eax */
   2099     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   2100     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2101     _flag_k = FK_CMP;
   2102     ebx = edi; /* 0x3100B7E3: mov ebx, edi */
   2103     RECOMP_BACKEDGE();
   2104     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B7BE; /* 0x3100B7E5: jne 0x3100b7be */
   2105 L_3100B7E7:
   2106     ecx = MEM32(esi + 0x4); /* 0x3100B7E7: mov ecx, dword ptr [esi + 4] */
   2107     edx = MEM32(esi + 0x8); /* 0x3100B7EA: mov edx, dword ptr [esi + 8] */
   2108     MEM32(ecx + 0x4) = edx; /* 0x3100B7ED: mov dword ptr [ecx + 4], edx */
   2109     eax = MEM32(esi + 0x4); /* 0x3100B7F0: mov eax, dword ptr [esi + 4] */
   2110     MEM32(esi + 0x10) = 0; /* 0x3100B7F3: mov dword ptr [esi + 0x10], 0 */
   2111     MEM32(eax) = eax; /* 0x3100B7FA: mov dword ptr [eax], eax */
   2112     eax = MEM32(esi + 0x4); /* 0x3100B7FC: mov eax, dword ptr [esi + 4] */
   2113     MEM32(eax + 0x8) = eax; /* 0x3100B7FF: mov dword ptr [eax + 8], eax */
   2114     eax = ebp + (-0x8); /* 0x3100B802: lea eax, [ebp - 8] */
   2115     PUSH32(esp, eax); /* 0x3100B805: push eax */
   2116     ecx = esi; /* 0x3100B806: mov ecx, esi */
   2117     RECOMP_ICALL(0x3100E400u); /* 0x3100B808: call 0x3100e400 */ /* not lifted */
   2118     RECOMP_FLAGS_IN();
   2119     goto L_3100B830; /* 0x3100B80D: jmp 0x3100b830 */
   2120 L_3100B80F:
   2121     /* cmp eax, edi */ /* 0x3100B80F: cmp eax, edi */
   2122     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2123     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2124     _flag_k = FK_CMP;
   2125     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100B830; /* 0x3100B811: je 0x3100b830 */
   2126 L_3100B813:
   2127     ecx = ebp + (-0x4); /* 0x3100B813: lea ecx, [ebp - 4] */
   2128     ebx = eax; /* 0x3100B816: mov ebx, eax */
   2129     RECOMP_ICALL(0x3100EC20u); /* 0x3100B818: call 0x3100ec20 */ /* not lifted */
   2130     RECOMP_FLAGS_IN();
   2131     PUSH32(esp, ebx); /* 0x3100B81D: push ebx */
   2132     ecx = ebp + (-0x8); /* 0x3100B81E: lea ecx, [ebp - 8] */
   2133     PUSH32(esp, ecx); /* 0x3100B821: push ecx */
   2134     ecx = esi; /* 0x3100B822: mov ecx, esi */
   2135     RECOMP_ICALL(0x3100E4E0u); /* 0x3100B824: call 0x3100e4e0 */ /* not lifted */
   2136     RECOMP_FLAGS_IN();
   2137     eax = MEM32(ebp + (-0x4)); /* 0x3100B829: mov eax, dword ptr [ebp - 4] */
   2138     /* cmp eax, edi */ /* 0x3100B82C: cmp eax, edi */
   2139     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   2140     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2141     _flag_k = FK_CMP;
   2142     RECOMP_BACKEDGE();
   2143     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B813; /* 0x3100B82E: jne 0x3100b813 */
   2144 L_3100B830:
   2145     edx = MEM32(esi + 0x4); /* 0x3100B830: mov edx, dword ptr [esi + 4] */
   2146     PUSH32(esp, edx); /* 0x3100B833: push edx */
   2147     RECOMP_ICALL(0x31046858u); /* 0x3100B834: call 0x31046858 */ /* not lifted */
   2148     RECOMP_FLAGS_IN();
   2149     eax = MEM32(esi + 0x8); /* 0x3100B839: mov eax, dword ptr [esi + 8] */
   2150     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2151     edi = 0; /* 0x3100B83C: xor edi, edi */
   2152     _cf = 0;
   2153     _flag_k = FK_TEST;
   2154     PUSH32(esp, eax); /* 0x3100B83E: push eax */
   2155     MEM32(esi + 0x4) = edi; /* 0x3100B83F: mov dword ptr [esi + 4], edi */
   2156     MEM32(esi + 0x10) = edi; /* 0x3100B842: mov dword ptr [esi + 0x10], edi */
   2157     RECOMP_ICALL(0x31046858u); /* 0x3100B845: call 0x31046858 */ /* not lifted */
   2158     RECOMP_FLAGS_IN();
   2159     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2160     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2161     esp = esp + 8; /* 0x3100B84A: add esp, 8 */
   2162     _flag_k = FK_ADD;
   2163     MEM32(esi + 0x8) = edi; /* 0x3100B84D: mov dword ptr [esi + 8], edi */
   2164     edi = POP32_VAL(esp); /* 0x3100B850: pop edi */
   2165     esi = POP32_VAL(esp); /* 0x3100B851: pop esi */
   2166     ebx = POP32_VAL(esp); /* 0x3100B852: pop ebx */
   2167     esp = ebp; /* 0x3100B853: mov esp, ebp */
   2168     ebp = POP32_VAL(esp); /* 0x3100B855: pop ebp */
   2169     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100B856: ret  */
   2170 L_31047AB1:
   2171     ecx = ebp + (-0x64); /* 0x31047AB1: lea ecx, [ebp - 0x64] */
   2172     RECOMP_BACKEDGE();
   2173     goto L_3100B790; /* 0x31047AB4: jmp 0x3100b790 */
   2174     { RECOMP_REGS_OUT(); return; } /* end of function */
   2175     RECOMP_REGS_OUT();
   2176 }
   2177 
   2178 void sub_31047AB9(void) {
   2179     int _fpu_cmp = 0;
   2180     uint32_t _cf = 0;
   2181     int _df = 1;
   2182     uint32_t _flag_k = FK_NONE;
   2183     uint32_t _flag_a = 0, _flag_b = 0;
   2184     uint32_t _itail_tgt = 0;
   2185     RECOMP_REGS_LOCALS
   2186     RECOMP_ENTER(0x31047AB9u);
   2187 
   2188     goto L_31047AB9;
   2189 L_31004880:
   2190     PUSH32(esp, ebp); /* 0x31004880: push ebp */
   2191     ebp = esp; /* 0x31004881: mov ebp, esp */
   2192     PUSH32(esp, ecx); /* 0x31004883: push ecx */
   2193     PUSH32(esp, esi); /* 0x31004884: push esi */
   2194     esi = ecx; /* 0x31004885: mov esi, ecx */
   2195     eax = MEM32(esi + 0x4); /* 0x31004887: mov eax, dword ptr [esi + 4] */
   2196     PUSH32(esp, eax); /* 0x3100488A: push eax */
   2197     MEM32(ebp + (-0x4)) = eax; /* 0x3100488B: mov dword ptr [ebp - 4], eax */
   2198     RECOMP_ICALL(0x31046858u); /* 0x3100488E: call 0x31046858 */ /* not lifted */
   2199     RECOMP_FLAGS_IN();
   2200     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2201     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2202     esp = esp + 4; /* 0x31004893: add esp, 4 */
   2203     _flag_k = FK_ADD;
   2204     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   2205     eax = 0; /* 0x31004896: xor eax, eax */
   2206     _cf = 0;
   2207     _flag_k = FK_TEST;
   2208     MEM32(esi + 0x4) = eax; /* 0x31004898: mov dword ptr [esi + 4], eax */
   2209     MEM32(esi + 0x8) = eax; /* 0x3100489B: mov dword ptr [esi + 8], eax */
   2210     MEM32(esi + 0xC) = eax; /* 0x3100489E: mov dword ptr [esi + 0xc], eax */
   2211     esi = POP32_VAL(esp); /* 0x310048A1: pop esi */
   2212     esp = ebp; /* 0x310048A2: mov esp, ebp */
   2213     ebp = POP32_VAL(esp); /* 0x310048A4: pop ebp */
   2214     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x310048A5: ret  */
   2215 L_31047AB9:
   2216     ecx = ebp + (-0x38); /* 0x31047AB9: lea ecx, [ebp - 0x38] */
   2217     RECOMP_BACKEDGE();
   2218     goto L_31004880; /* 0x31047ABC: jmp 0x31004880 */
   2219     { RECOMP_REGS_OUT(); return; } /* end of function */
   2220     RECOMP_REGS_OUT();
   2221 }
   2222 
   2223 void sub_31047AC1(void) {
   2224     int _fpu_cmp = 0;
   2225     uint32_t _cf = 0;
   2226     int _df = 1;
   2227     uint32_t _flag_k = FK_NONE;
   2228     uint32_t _flag_a = 0, _flag_b = 0;
   2229     uint32_t _itail_tgt = 0;
   2230     RECOMP_REGS_LOCALS
   2231     RECOMP_ENTER(0x31047AC1u);
   2232 
   2233     goto L_31047AC1;
   2234 L_31046870:
   2235     { _itail_tgt = (uint32_t)(MEM32(0x31048200)); goto _ljump; }
   2236 L_31047AC1:
   2237     eax = 0x31049E78u; /* 0x31047AC1: mov eax, 0x31049e78 */
   2238 L_31047AC6:
   2239     RECOMP_BACKEDGE();
   2240     goto L_31046870; /* 0x31047AC6: jmp 0x31046870 */
   2241     { RECOMP_REGS_OUT(); return; } /* end of function */
   2242   _ljump:
   2243     switch (_itail_tgt) {
   2244       case 0x31046870u: goto L_31046870;
   2245       case 0x31047AC1u: goto L_31047AC1;
   2246       case 0x31047AC6u: goto L_31047AC6;
   2247       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2248     }
   2249     RECOMP_REGS_OUT();
   2250 }
   2251 
   2252 void sub_31047AD0(void) {
   2253     int _fpu_cmp = 0;
   2254     uint32_t _cf = 0;
   2255     int _df = 1;
   2256     uint32_t _flag_k = FK_NONE;
   2257     uint32_t _flag_a = 0, _flag_b = 0;
   2258     uint32_t _itail_tgt = 0;
   2259     RECOMP_REGS_LOCALS
   2260     RECOMP_ENTER(0x31047AD0u);
   2261 
   2262 L_31047AD0:
   2263     eax = MEM32(ebp + 0x8); /* 0x31047AD0: mov eax, dword ptr [ebp + 8] */
   2264     PUSH32(esp, eax); /* 0x31047AD3: push eax */
   2265     ecx = MEM32(ebp + (-0x10)); /* 0x31047AD4: mov ecx, dword ptr [ebp - 0x10] */
   2266     PUSH32(esp, ecx); /* 0x31047AD7: push ecx */
   2267     RECOMP_ICALL(0x31004660u); /* 0x31047AD8: call 0x31004660 */ /* not lifted */
   2268     RECOMP_FLAGS_IN();
   2269     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   2270     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2271     esp = esp + 8; /* 0x31047ADD: add esp, 8 */
   2272     _flag_k = FK_ADD;
   2273     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31047AE0: ret  */
   2274     RECOMP_REGS_OUT();
   2275 }
   2276 
   2277 void sub_31047AE1(void) {
   2278     int _fpu_cmp = 0;
   2279     uint32_t _cf = 0;
   2280     int _df = 1;
   2281     uint32_t _flag_k = FK_NONE;
   2282     uint32_t _flag_a = 0, _flag_b = 0;
   2283     uint32_t _itail_tgt = 0;
   2284     RECOMP_REGS_LOCALS
   2285     RECOMP_ENTER(0x31047AE1u);
   2286 
   2287     goto L_31047AE1;
   2288 L_31046870:
   2289     { _itail_tgt = (uint32_t)(MEM32(0x31048200)); goto _ljump; }
   2290 L_31047AE1:
   2291     eax = 0x31049EB8u; /* 0x31047AE1: mov eax, 0x31049eb8 */
   2292 L_31047AE6:
   2293     RECOMP_BACKEDGE();
   2294     goto L_31046870; /* 0x31047AE6: jmp 0x31046870 */
   2295     { RECOMP_REGS_OUT(); return; } /* end of function */
   2296   _ljump:
   2297     switch (_itail_tgt) {
   2298       case 0x31046870u: goto L_31046870;
   2299       case 0x31047AE1u: goto L_31047AE1;
   2300       case 0x31047AE6u: goto L_31047AE6;
   2301       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2302     }
   2303     RECOMP_REGS_OUT();
   2304 }
   2305 
   2306 void sub_31047AF0(void) {
   2307     int _fpu_cmp = 0;
   2308     uint32_t _cf = 0;
   2309     int _df = 1;
   2310     uint32_t _flag_k = FK_NONE;
   2311     uint32_t _flag_a = 0, _flag_b = 0;
   2312     uint32_t _itail_tgt = 0;
   2313     RECOMP_REGS_LOCALS
   2314     RECOMP_ENTER(0x31047AF0u);
   2315 
   2316 L_31047AF0:
   2317     ecx = ebp + (-0x1C); /* 0x31047AF0: lea ecx, [ebp - 0x1c] */
   2318 L_31047AF3:
   2319     { _itail_tgt = (uint32_t)(MEM32(0x310480C8)); goto _ljump; }
   2320     { RECOMP_REGS_OUT(); return; } /* end of function */
   2321   _ljump:
   2322     switch (_itail_tgt) {
   2323       case 0x31047AF0u: goto L_31047AF0;
   2324       case 0x31047AF3u: goto L_31047AF3;
   2325       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2326     }
   2327     RECOMP_REGS_OUT();
   2328 }
   2329 
   2330 void sub_31047AF9(void) {
   2331     int _fpu_cmp = 0;
   2332     uint32_t _cf = 0;
   2333     int _df = 1;
   2334     uint32_t _flag_k = FK_NONE;
   2335     uint32_t _flag_a = 0, _flag_b = 0;
   2336     uint32_t _itail_tgt = 0;
   2337     RECOMP_REGS_LOCALS
   2338     RECOMP_ENTER(0x31047AF9u);
   2339 
   2340 L_31047AF9:
   2341     eax = MEM32(ebp + 0x8); /* 0x31047AF9: mov eax, dword ptr [ebp + 8] */
   2342     PUSH32(esp, eax); /* 0x31047AFC: push eax */
   2343     RECOMP_ICALL(0x31046858u); /* 0x31047AFD: call 0x31046858 */ /* not lifted */
   2344     RECOMP_FLAGS_IN();
   2345     ecx = POP32_VAL(esp); /* 0x31047B02: pop ecx */
   2346     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31047B03: ret  */
   2347     RECOMP_REGS_OUT();
   2348 }
   2349 
   2350 void sub_31047B04(void) {
   2351     int _fpu_cmp = 0;
   2352     uint32_t _cf = 0;
   2353     int _df = 1;
   2354     uint32_t _flag_k = FK_NONE;
   2355     uint32_t _flag_a = 0, _flag_b = 0;
   2356     uint32_t _itail_tgt = 0;
   2357     RECOMP_REGS_LOCALS
   2358     RECOMP_ENTER(0x31047B04u);
   2359 
   2360     goto L_31047B04;
   2361 L_31046870:
   2362     { _itail_tgt = (uint32_t)(MEM32(0x31048200)); goto _ljump; }
   2363 L_31047B04:
   2364     eax = 0x31049EE0u; /* 0x31047B04: mov eax, 0x31049ee0 */
   2365 L_31047B09:
   2366     RECOMP_BACKEDGE();
   2367     goto L_31046870; /* 0x31047B09: jmp 0x31046870 */
   2368     { RECOMP_REGS_OUT(); return; } /* end of function */
   2369   _ljump:
   2370     switch (_itail_tgt) {
   2371       case 0x31046870u: goto L_31046870;
   2372       case 0x31047B04u: goto L_31047B04;
   2373       case 0x31047B09u: goto L_31047B09;
   2374       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2375     }
   2376     RECOMP_REGS_OUT();
   2377 }
   2378 
   2379 void sub_31047B10(void) {
   2380     int _fpu_cmp = 0;
   2381     uint32_t _cf = 0;
   2382     int _df = 1;
   2383     uint32_t _flag_k = FK_NONE;
   2384     uint32_t _flag_a = 0, _flag_b = 0;
   2385     uint32_t _itail_tgt = 0;
   2386     RECOMP_REGS_LOCALS
   2387     RECOMP_ENTER(0x31047B10u);
   2388 
   2389     goto L_31047B10;
   2390 L_3100A2B0:
   2391     PUSH32(esp, ebp); /* 0x3100A2B0: push ebp */
   2392     ebp = esp; /* 0x3100A2B1: mov ebp, esp */
   2393     PUSH32(esp, ecx); /* 0x3100A2B3: push ecx */
   2394     MEM32(ecx) = 0x31048600u; /* 0x3100A2B4: mov dword ptr [ecx], 0x31048600 */
   2395     edx = MEM32(0x31057E4C); /* 0x3100A2BA: mov edx, dword ptr [0x31057e4c] */
   2396 L_3100A2C0:
   2397     /* cmp MEM32(edx), ecx */ /* 0x3100A2C0: cmp dword ptr [edx], ecx */
   2398     _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(ecx);
   2399     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2400     _flag_k = FK_CMP;
   2401     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100A2C9; /* 0x3100A2C2: je 0x3100a2c9 */
   2402 L_3100A2C4:
   2403     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
   2404     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2405     edx = edx + 4; /* 0x3100A2C4: add edx, 4 */
   2406     _flag_k = FK_ADD;
   2407     RECOMP_BACKEDGE();
   2408     goto L_3100A2C0; /* 0x3100A2C7: jmp 0x3100a2c0 */
   2409 L_3100A2C9:
   2410     PUSH32(esp, esi); /* 0x3100A2C9: push esi */
   2411     esi = MEM32(0x31057E50); /* 0x3100A2CA: mov esi, dword ptr [0x31057e50] */
   2412     eax = edx + 0x4; /* 0x3100A2D0: lea eax, [edx + 4] */
   2413     /* cmp eax, esi */ /* 0x3100A2D3: cmp eax, esi */
   2414     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2415     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2416     _flag_k = FK_CMP;
   2417     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100A2E7; /* 0x3100A2D5: je 0x3100a2e7 */
   2418 L_3100A2D7:
   2419     PUSH32(esp, edi); /* 0x3100A2D7: push edi */
   2420     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2421     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2422     edx = edx - eax; /* 0x3100A2D8: sub edx, eax */
   2423     _flag_k = FK_CMP;
   2424 L_3100A2DA:
   2425     edi = MEM32(eax); /* 0x3100A2DA: mov edi, dword ptr [eax] */
   2426     MEM32(edx + eax) = edi; /* 0x3100A2DC: mov dword ptr [edx + eax], edi */
   2427     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   2428     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2429     eax = eax + 4; /* 0x3100A2DF: add eax, 4 */
   2430     _flag_k = FK_ADD;
   2431     /* cmp eax, esi */ /* 0x3100A2E2: cmp eax, esi */
   2432     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2433     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2434     _flag_k = FK_CMP;
   2435     RECOMP_BACKEDGE();
   2436     if (CMP_NE(_flag_a, _flag_b)) goto L_3100A2DA; /* 0x3100A2E4: jne 0x3100a2da */
   2437 L_3100A2E6:
   2438     edi = POP32_VAL(esp); /* 0x3100A2E6: pop edi */
   2439 L_3100A2E7:
   2440     eax = MEM32(0x31057E50); /* 0x3100A2E7: mov eax, dword ptr [0x31057e50] */
   2441     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu);
   2442     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2443     eax = eax + 0xFFFFFFFCu; /* 0x3100A2EC: add eax, -4 */
   2444     _flag_k = FK_ADD;
   2445     MEM32(ebp + (-0x4)) = eax; /* 0x3100A2EF: mov dword ptr [ebp - 4], eax */
   2446     MEM32(0x31057E50) = eax; /* 0x3100A2F2: mov dword ptr [0x31057e50], eax */
   2447     RECOMP_ICALL(0x31008E30u); /* 0x3100A2F7: call 0x31008e30 */ /* not lifted */
   2448     RECOMP_FLAGS_IN();
   2449     esi = POP32_VAL(esp); /* 0x3100A2FC: pop esi */
   2450     esp = ebp; /* 0x3100A2FD: mov esp, ebp */
   2451     ebp = POP32_VAL(esp); /* 0x3100A2FF: pop ebp */
   2452     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100A300: ret  */
   2453 L_31047B10:
   2454     ecx = MEM32(ebp + (-0x14)); /* 0x31047B10: mov ecx, dword ptr [ebp - 0x14] */
   2455     RECOMP_BACKEDGE();
   2456     goto L_3100A2B0; /* 0x31047B13: jmp 0x3100a2b0 */
   2457     { RECOMP_REGS_OUT(); return; } /* end of function */
   2458     RECOMP_REGS_OUT();
   2459 }
   2460 
   2461 void sub_31047B18(void) {
   2462     int _fpu_cmp = 0;
   2463     uint32_t _cf = 0;
   2464     int _df = 1;
   2465     uint32_t _flag_k = FK_NONE;
   2466     uint32_t _flag_a = 0, _flag_b = 0;
   2467     uint32_t _itail_tgt = 0;
   2468     RECOMP_REGS_LOCALS
   2469     RECOMP_ENTER(0x31047B18u);
   2470 
   2471 L_31047B18:
   2472     eax = MEM32(ebp + (-0x18)); /* 0x31047B18: mov eax, dword ptr [ebp - 0x18] */
   2473     PUSH32(esp, eax); /* 0x31047B1B: push eax */
   2474     RECOMP_ICALL(0x31046858u); /* 0x31047B1C: call 0x31046858 */ /* not lifted */
   2475     RECOMP_FLAGS_IN();
   2476     ecx = POP32_VAL(esp); /* 0x31047B21: pop ecx */
   2477     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31047B22: ret  */
   2478     RECOMP_REGS_OUT();
   2479 }
   2480 
   2481 void sub_31047B23(void) {
   2482     int _fpu_cmp = 0;
   2483     uint32_t _cf = 0;
   2484     int _df = 1;
   2485     uint32_t _flag_k = FK_NONE;
   2486     uint32_t _flag_a = 0, _flag_b = 0;
   2487     uint32_t _itail_tgt = 0;
   2488     RECOMP_REGS_LOCALS
   2489     RECOMP_ENTER(0x31047B23u);
   2490 
   2491 L_31047B23:
   2492     eax = MEM32(ebp + 0x8); /* 0x31047B23: mov eax, dword ptr [ebp + 8] */
   2493     PUSH32(esp, eax); /* 0x31047B26: push eax */
   2494     RECOMP_ICALL(0x31046858u); /* 0x31047B27: call 0x31046858 */ /* not lifted */
   2495     RECOMP_FLAGS_IN();
   2496     ecx = POP32_VAL(esp); /* 0x31047B2C: pop ecx */
   2497     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31047B2D: ret  */
   2498     RECOMP_REGS_OUT();
   2499 }
   2500 
   2501 void sub_31047B2E(void) {
   2502     int _fpu_cmp = 0;
   2503     uint32_t _cf = 0;
   2504     int _df = 1;
   2505     uint32_t _flag_k = FK_NONE;
   2506     uint32_t _flag_a = 0, _flag_b = 0;
   2507     uint32_t _itail_tgt = 0;
   2508     RECOMP_REGS_LOCALS
   2509     RECOMP_ENTER(0x31047B2Eu);
   2510 
   2511 L_31047B2E:
   2512     eax = MEM32(ebp + 0x8); /* 0x31047B2E: mov eax, dword ptr [ebp + 8] */
   2513     PUSH32(esp, eax); /* 0x31047B31: push eax */
   2514     RECOMP_ICALL(0x31046858u); /* 0x31047B32: call 0x31046858 */ /* not lifted */
   2515     RECOMP_FLAGS_IN();
   2516     ecx = POP32_VAL(esp); /* 0x31047B37: pop ecx */
   2517     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31047B38: ret  */
   2518     RECOMP_REGS_OUT();
   2519 }
   2520 
   2521 void sub_31047B39(void) {
   2522     int _fpu_cmp = 0;
   2523     uint32_t _cf = 0;
   2524     int _df = 1;
   2525     uint32_t _flag_k = FK_NONE;
   2526     uint32_t _flag_a = 0, _flag_b = 0;
   2527     uint32_t _itail_tgt = 0;
   2528     RECOMP_REGS_LOCALS
   2529     RECOMP_ENTER(0x31047B39u);
   2530 
   2531 L_31047B39:
   2532     eax = MEM32(ebp + 0x8); /* 0x31047B39: mov eax, dword ptr [ebp + 8] */
   2533     PUSH32(esp, eax); /* 0x31047B3C: push eax */
   2534     RECOMP_ICALL(0x31046858u); /* 0x31047B3D: call 0x31046858 */ /* not lifted */
   2535     RECOMP_FLAGS_IN();
   2536     ecx = POP32_VAL(esp); /* 0x31047B42: pop ecx */
   2537     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31047B43: ret  */
   2538     RECOMP_REGS_OUT();
   2539 }
   2540 
   2541 void sub_31047B44(void) {
   2542     int _fpu_cmp = 0;
   2543     uint32_t _cf = 0;
   2544     int _df = 1;
   2545     uint32_t _flag_k = FK_NONE;
   2546     uint32_t _flag_a = 0, _flag_b = 0;
   2547     uint32_t _itail_tgt = 0;
   2548     RECOMP_REGS_LOCALS
   2549     RECOMP_ENTER(0x31047B44u);
   2550 
   2551 L_31047B44:
   2552     eax = MEM32(ebp + 0x8); /* 0x31047B44: mov eax, dword ptr [ebp + 8] */
   2553     PUSH32(esp, eax); /* 0x31047B47: push eax */
   2554     RECOMP_ICALL(0x31046858u); /* 0x31047B48: call 0x31046858 */ /* not lifted */
   2555     RECOMP_FLAGS_IN();
   2556     ecx = POP32_VAL(esp); /* 0x31047B4D: pop ecx */
   2557     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31047B4E: ret  */
   2558     RECOMP_REGS_OUT();
   2559 }
   2560 
   2561 void sub_31047B4F(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(0x31047B4Fu);
   2570 
   2571 L_31047B4F:
   2572     ecx = ebp + (-0x28); /* 0x31047B4F: lea ecx, [ebp - 0x28] */
   2573 L_31047B52:
   2574     { _itail_tgt = (uint32_t)(MEM32(0x310480C8)); goto _ljump; }
   2575     { RECOMP_REGS_OUT(); return; } /* end of function */
   2576   _ljump:
   2577     switch (_itail_tgt) {
   2578       case 0x31047B4Fu: goto L_31047B4F;
   2579       case 0x31047B52u: goto L_31047B52;
   2580       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2581     }
   2582     RECOMP_REGS_OUT();
   2583 }
   2584 
   2585 void sub_31047B58(void) {
   2586     int _fpu_cmp = 0;
   2587     uint32_t _cf = 0;
   2588     int _df = 1;
   2589     uint32_t _flag_k = FK_NONE;
   2590     uint32_t _flag_a = 0, _flag_b = 0;
   2591     uint32_t _itail_tgt = 0;
   2592     RECOMP_REGS_LOCALS
   2593     RECOMP_ENTER(0x31047B58u);
   2594 
   2595 L_31047B58:
   2596     ecx = ebp + (-0x38); /* 0x31047B58: lea ecx, [ebp - 0x38] */
   2597 L_31047B5B:
   2598     { _itail_tgt = (uint32_t)(MEM32(0x310480C8)); goto _ljump; }
   2599     { RECOMP_REGS_OUT(); return; } /* end of function */
   2600   _ljump:
   2601     switch (_itail_tgt) {
   2602       case 0x31047B58u: goto L_31047B58;
   2603       case 0x31047B5Bu: goto L_31047B5B;
   2604       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2605     }
   2606     RECOMP_REGS_OUT();
   2607 }
   2608 
   2609 void sub_31047B61(void) {
   2610     int _fpu_cmp = 0;
   2611     uint32_t _cf = 0;
   2612     int _df = 1;
   2613     uint32_t _flag_k = FK_NONE;
   2614     uint32_t _flag_a = 0, _flag_b = 0;
   2615     uint32_t _itail_tgt = 0;
   2616     RECOMP_REGS_LOCALS
   2617     RECOMP_ENTER(0x31047B61u);
   2618 
   2619 L_31047B61:
   2620     ecx = ebp + (-0x38); /* 0x31047B61: lea ecx, [ebp - 0x38] */
   2621 L_31047B64:
   2622     { _itail_tgt = (uint32_t)(MEM32(0x310480C8)); goto _ljump; }
   2623     { RECOMP_REGS_OUT(); return; } /* end of function */
   2624   _ljump:
   2625     switch (_itail_tgt) {
   2626       case 0x31047B61u: goto L_31047B61;
   2627       case 0x31047B64u: goto L_31047B64;
   2628       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2629     }
   2630     RECOMP_REGS_OUT();
   2631 }
   2632 
   2633 void sub_31047B6A(void) {
   2634     int _fpu_cmp = 0;
   2635     uint32_t _cf = 0;
   2636     int _df = 1;
   2637     uint32_t _flag_k = FK_NONE;
   2638     uint32_t _flag_a = 0, _flag_b = 0;
   2639     uint32_t _itail_tgt = 0;
   2640     RECOMP_REGS_LOCALS
   2641     RECOMP_ENTER(0x31047B6Au);
   2642 
   2643 L_31047B6A:
   2644     ecx = ebp + (-0x38); /* 0x31047B6A: lea ecx, [ebp - 0x38] */
   2645 L_31047B6D:
   2646     { _itail_tgt = (uint32_t)(MEM32(0x310480C8)); goto _ljump; }
   2647     { RECOMP_REGS_OUT(); return; } /* end of function */
   2648   _ljump:
   2649     switch (_itail_tgt) {
   2650       case 0x31047B6Au: goto L_31047B6A;
   2651       case 0x31047B6Du: goto L_31047B6D;
   2652       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2653     }
   2654     RECOMP_REGS_OUT();
   2655 }
   2656 
   2657 void sub_31047B73(void) {
   2658     int _fpu_cmp = 0;
   2659     uint32_t _cf = 0;
   2660     int _df = 1;
   2661     uint32_t _flag_k = FK_NONE;
   2662     uint32_t _flag_a = 0, _flag_b = 0;
   2663     uint32_t _itail_tgt = 0;
   2664     RECOMP_REGS_LOCALS
   2665     RECOMP_ENTER(0x31047B73u);
   2666 
   2667 L_31047B73:
   2668     ecx = ebp + (-0x38); /* 0x31047B73: lea ecx, [ebp - 0x38] */
   2669 L_31047B76:
   2670     { _itail_tgt = (uint32_t)(MEM32(0x310480C8)); goto _ljump; }
   2671     { RECOMP_REGS_OUT(); return; } /* end of function */
   2672   _ljump:
   2673     switch (_itail_tgt) {
   2674       case 0x31047B73u: goto L_31047B73;
   2675       case 0x31047B76u: goto L_31047B76;
   2676       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2677     }
   2678     RECOMP_REGS_OUT();
   2679 }
   2680 
   2681 void sub_31047B7C(void) {
   2682     int _fpu_cmp = 0;
   2683     uint32_t _cf = 0;
   2684     int _df = 1;
   2685     uint32_t _flag_k = FK_NONE;
   2686     uint32_t _flag_a = 0, _flag_b = 0;
   2687     uint32_t _itail_tgt = 0;
   2688     RECOMP_REGS_LOCALS
   2689     RECOMP_ENTER(0x31047B7Cu);
   2690 
   2691     goto L_31047B7C;
   2692 L_31046870:
   2693     { _itail_tgt = (uint32_t)(MEM32(0x31048200)); goto _ljump; }
   2694 L_31047B7C:
   2695     eax = 0x31049F10u; /* 0x31047B7C: mov eax, 0x31049f10 */
   2696 L_31047B81:
   2697     RECOMP_BACKEDGE();
   2698     goto L_31046870; /* 0x31047B81: jmp 0x31046870 */
   2699     { RECOMP_REGS_OUT(); return; } /* end of function */
   2700   _ljump:
   2701     switch (_itail_tgt) {
   2702       case 0x31046870u: goto L_31046870;
   2703       case 0x31047B7Cu: goto L_31047B7C;
   2704       case 0x31047B81u: goto L_31047B81;
   2705       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2706     }
   2707     RECOMP_REGS_OUT();
   2708 }
   2709 
   2710 void sub_31047B90(void) {
   2711     int _fpu_cmp = 0;
   2712     uint32_t _cf = 0;
   2713     int _df = 1;
   2714     uint32_t _flag_k = FK_NONE;
   2715     uint32_t _flag_a = 0, _flag_b = 0;
   2716     uint32_t _itail_tgt = 0;
   2717     RECOMP_REGS_LOCALS
   2718     RECOMP_ENTER(0x31047B90u);
   2719 
   2720     goto L_31047B90;
   2721 L_3100A2B0:
   2722     PUSH32(esp, ebp); /* 0x3100A2B0: push ebp */
   2723     ebp = esp; /* 0x3100A2B1: mov ebp, esp */
   2724     PUSH32(esp, ecx); /* 0x3100A2B3: push ecx */
   2725     MEM32(ecx) = 0x31048600u; /* 0x3100A2B4: mov dword ptr [ecx], 0x31048600 */
   2726     edx = MEM32(0x31057E4C); /* 0x3100A2BA: mov edx, dword ptr [0x31057e4c] */
   2727 L_3100A2C0:
   2728     /* cmp MEM32(edx), ecx */ /* 0x3100A2C0: cmp dword ptr [edx], ecx */
   2729     _flag_a = (uint32_t)(MEM32(edx)); _flag_b = (uint32_t)(ecx);
   2730     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2731     _flag_k = FK_CMP;
   2732     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100A2C9; /* 0x3100A2C2: je 0x3100a2c9 */
   2733 L_3100A2C4:
   2734     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(4);
   2735     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2736     edx = edx + 4; /* 0x3100A2C4: add edx, 4 */
   2737     _flag_k = FK_ADD;
   2738     RECOMP_BACKEDGE();
   2739     goto L_3100A2C0; /* 0x3100A2C7: jmp 0x3100a2c0 */
   2740 L_3100A2C9:
   2741     PUSH32(esp, esi); /* 0x3100A2C9: push esi */
   2742     esi = MEM32(0x31057E50); /* 0x3100A2CA: mov esi, dword ptr [0x31057e50] */
   2743     eax = edx + 0x4; /* 0x3100A2D0: lea eax, [edx + 4] */
   2744     /* cmp eax, esi */ /* 0x3100A2D3: cmp eax, esi */
   2745     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2746     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2747     _flag_k = FK_CMP;
   2748     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100A2E7; /* 0x3100A2D5: je 0x3100a2e7 */
   2749 L_3100A2D7:
   2750     PUSH32(esp, edi); /* 0x3100A2D7: push edi */
   2751     _flag_a = (uint32_t)(edx); _flag_b = (uint32_t)(eax);
   2752     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2753     edx = edx - eax; /* 0x3100A2D8: sub edx, eax */
   2754     _flag_k = FK_CMP;
   2755 L_3100A2DA:
   2756     edi = MEM32(eax); /* 0x3100A2DA: mov edi, dword ptr [eax] */
   2757     MEM32(edx + eax) = edi; /* 0x3100A2DC: mov dword ptr [edx + eax], edi */
   2758     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(4);
   2759     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2760     eax = eax + 4; /* 0x3100A2DF: add eax, 4 */
   2761     _flag_k = FK_ADD;
   2762     /* cmp eax, esi */ /* 0x3100A2E2: cmp eax, esi */
   2763     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(esi);
   2764     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2765     _flag_k = FK_CMP;
   2766     RECOMP_BACKEDGE();
   2767     if (CMP_NE(_flag_a, _flag_b)) goto L_3100A2DA; /* 0x3100A2E4: jne 0x3100a2da */
   2768 L_3100A2E6:
   2769     edi = POP32_VAL(esp); /* 0x3100A2E6: pop edi */
   2770 L_3100A2E7:
   2771     eax = MEM32(0x31057E50); /* 0x3100A2E7: mov eax, dword ptr [0x31057e50] */
   2772     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0xFFFFFFFCu);
   2773     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2774     eax = eax + 0xFFFFFFFCu; /* 0x3100A2EC: add eax, -4 */
   2775     _flag_k = FK_ADD;
   2776     MEM32(ebp + (-0x4)) = eax; /* 0x3100A2EF: mov dword ptr [ebp - 4], eax */
   2777     MEM32(0x31057E50) = eax; /* 0x3100A2F2: mov dword ptr [0x31057e50], eax */
   2778     RECOMP_ICALL(0x31008E30u); /* 0x3100A2F7: call 0x31008e30 */ /* not lifted */
   2779     RECOMP_FLAGS_IN();
   2780     esi = POP32_VAL(esp); /* 0x3100A2FC: pop esi */
   2781     esp = ebp; /* 0x3100A2FD: mov esp, ebp */
   2782     ebp = POP32_VAL(esp); /* 0x3100A2FF: pop ebp */
   2783     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100A300: ret  */
   2784 L_31047B90:
   2785     ecx = MEM32(ebp + (-0x14)); /* 0x31047B90: mov ecx, dword ptr [ebp - 0x14] */
   2786     RECOMP_BACKEDGE();
   2787     goto L_3100A2B0; /* 0x31047B93: jmp 0x3100a2b0 */
   2788     { RECOMP_REGS_OUT(); return; } /* end of function */
   2789     RECOMP_REGS_OUT();
   2790 }
   2791 
   2792 void sub_31047B98(void) {
   2793     int _fpu_cmp = 0;
   2794     uint32_t _cf = 0;
   2795     int _df = 1;
   2796     uint32_t _flag_k = FK_NONE;
   2797     uint32_t _flag_a = 0, _flag_b = 0;
   2798     uint32_t _itail_tgt = 0;
   2799     RECOMP_REGS_LOCALS
   2800     RECOMP_ENTER(0x31047B98u);
   2801 
   2802     goto L_31047B98;
   2803 L_31046870:
   2804     { _itail_tgt = (uint32_t)(MEM32(0x31048200)); goto _ljump; }
   2805 L_31047B98:
   2806     eax = 0x31049F88u; /* 0x31047B98: mov eax, 0x31049f88 */
   2807 L_31047B9D:
   2808     RECOMP_BACKEDGE();
   2809     goto L_31046870; /* 0x31047B9D: jmp 0x31046870 */
   2810     { RECOMP_REGS_OUT(); return; } /* end of function */
   2811   _ljump:
   2812     switch (_itail_tgt) {
   2813       case 0x31046870u: goto L_31046870;
   2814       case 0x31047B98u: goto L_31047B98;
   2815       case 0x31047B9Du: goto L_31047B9D;
   2816       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2817     }
   2818     RECOMP_REGS_OUT();
   2819 }
   2820 
   2821 void sub_31047BB0(void) {
   2822     int _fpu_cmp = 0;
   2823     uint32_t _cf = 0;
   2824     int _df = 1;
   2825     uint32_t _flag_k = FK_NONE;
   2826     uint32_t _flag_a = 0, _flag_b = 0;
   2827     uint32_t _itail_tgt = 0;
   2828     RECOMP_REGS_LOCALS
   2829     RECOMP_ENTER(0x31047BB0u);
   2830 
   2831     goto L_31047BB0;
   2832 L_31004760:
   2833     PUSH32(esp, esi); /* 0x31004760: push esi */
   2834     esi = ecx; /* 0x31004761: mov esi, ecx */
   2835     eax = MEM32(esi); /* 0x31004763: mov eax, dword ptr [esi] */
   2836     PUSH32(esp, eax); /* 0x31004765: push eax */
   2837     RECOMP_ICALL(0x31004740u); /* 0x31004766: call 0x31004740 */ /* not lifted */
   2838     RECOMP_FLAGS_IN();
   2839     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3FFFFFFFu);
   2840     eax = eax & 0x3FFFFFFFu; /* 0x3100476B: and eax, 0x3fffffff */
   2841     _cf = 0;
   2842     _flag_k = FK_TEST;
   2843     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2844     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2845     esp = esp + 4; /* 0x31004770: add esp, 4 */
   2846     _flag_k = FK_ADD;
   2847     /* cmp eax, 1 */ /* 0x31004773: cmp eax, 1 */
   2848     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2849     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2850     _flag_k = FK_CMP;
   2851     if (CMP_NE(_flag_a, _flag_b)) goto L_31004799; /* 0x31004776: jne 0x31004799 */
   2852 L_31004778:
   2853     eax = MEM32(esi); /* 0x31004778: mov eax, dword ptr [esi] */
   2854     /* cmp MEM32(eax), 0x80000000u */ /* 0x3100477A: cmp dword ptr [eax], 0x80000000 */
   2855     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x80000000u);
   2856     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2857     _flag_k = FK_CMP;
   2858     if (CMP_NE(_flag_a, _flag_b)) goto L_3100478E; /* 0x31004780: jne 0x3100478e */
   2859 L_31004782:
   2860     ecx = MEM32(eax + 0x8); /* 0x31004782: mov ecx, dword ptr [eax + 8] */
   2861     PUSH32(esp, ecx); /* 0x31004785: push ecx */
   2862     RECOMP_ICALL(0x31046858u); /* 0x31004786: call 0x31046858 */ /* not lifted */
   2863     RECOMP_FLAGS_IN();
   2864     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2865     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2866     esp = esp + 4; /* 0x3100478B: add esp, 4 */
   2867     _flag_k = FK_ADD;
   2868 L_3100478E:
   2869     edx = MEM32(esi); /* 0x3100478E: mov edx, dword ptr [esi] */
   2870     PUSH32(esp, edx); /* 0x31004790: push edx */
   2871     RECOMP_ICALL(0x31046858u); /* 0x31004791: call 0x31046858 */ /* not lifted */
   2872     RECOMP_FLAGS_IN();
   2873     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2874     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2875     esp = esp + 4; /* 0x31004796: add esp, 4 */
   2876     _flag_k = FK_ADD;
   2877 L_31004799:
   2878     esi = POP32_VAL(esp); /* 0x31004799: pop esi */
   2879     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100479A: ret  */
   2880 L_31047BB0:
   2881     ecx = ebp + 0xC; /* 0x31047BB0: lea ecx, [ebp + 0xc] */
   2882     RECOMP_BACKEDGE();
   2883     goto L_31004760; /* 0x31047BB3: jmp 0x31004760 */
   2884     { RECOMP_REGS_OUT(); return; } /* end of function */
   2885     RECOMP_REGS_OUT();
   2886 }
   2887 
   2888 void sub_31047BB8(void) {
   2889     int _fpu_cmp = 0;
   2890     uint32_t _cf = 0;
   2891     int _df = 1;
   2892     uint32_t _flag_k = FK_NONE;
   2893     uint32_t _flag_a = 0, _flag_b = 0;
   2894     uint32_t _itail_tgt = 0;
   2895     RECOMP_REGS_LOCALS
   2896     RECOMP_ENTER(0x31047BB8u);
   2897 
   2898     goto L_31047BB8;
   2899 L_31004760:
   2900     PUSH32(esp, esi); /* 0x31004760: push esi */
   2901     esi = ecx; /* 0x31004761: mov esi, ecx */
   2902     eax = MEM32(esi); /* 0x31004763: mov eax, dword ptr [esi] */
   2903     PUSH32(esp, eax); /* 0x31004765: push eax */
   2904     RECOMP_ICALL(0x31004740u); /* 0x31004766: call 0x31004740 */ /* not lifted */
   2905     RECOMP_FLAGS_IN();
   2906     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(0x3FFFFFFFu);
   2907     eax = eax & 0x3FFFFFFFu; /* 0x3100476B: and eax, 0x3fffffff */
   2908     _cf = 0;
   2909     _flag_k = FK_TEST;
   2910     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2911     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2912     esp = esp + 4; /* 0x31004770: add esp, 4 */
   2913     _flag_k = FK_ADD;
   2914     /* cmp eax, 1 */ /* 0x31004773: cmp eax, 1 */
   2915     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2916     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2917     _flag_k = FK_CMP;
   2918     if (CMP_NE(_flag_a, _flag_b)) goto L_31004799; /* 0x31004776: jne 0x31004799 */
   2919 L_31004778:
   2920     eax = MEM32(esi); /* 0x31004778: mov eax, dword ptr [esi] */
   2921     /* cmp MEM32(eax), 0x80000000u */ /* 0x3100477A: cmp dword ptr [eax], 0x80000000 */
   2922     _flag_a = (uint32_t)(MEM32(eax)); _flag_b = (uint32_t)(0x80000000u);
   2923     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   2924     _flag_k = FK_CMP;
   2925     if (CMP_NE(_flag_a, _flag_b)) goto L_3100478E; /* 0x31004780: jne 0x3100478e */
   2926 L_31004782:
   2927     ecx = MEM32(eax + 0x8); /* 0x31004782: mov ecx, dword ptr [eax + 8] */
   2928     PUSH32(esp, ecx); /* 0x31004785: push ecx */
   2929     RECOMP_ICALL(0x31046858u); /* 0x31004786: call 0x31046858 */ /* not lifted */
   2930     RECOMP_FLAGS_IN();
   2931     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2932     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2933     esp = esp + 4; /* 0x3100478B: add esp, 4 */
   2934     _flag_k = FK_ADD;
   2935 L_3100478E:
   2936     edx = MEM32(esi); /* 0x3100478E: mov edx, dword ptr [esi] */
   2937     PUSH32(esp, edx); /* 0x31004790: push edx */
   2938     RECOMP_ICALL(0x31046858u); /* 0x31004791: call 0x31046858 */ /* not lifted */
   2939     RECOMP_FLAGS_IN();
   2940     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   2941     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   2942     esp = esp + 4; /* 0x31004796: add esp, 4 */
   2943     _flag_k = FK_ADD;
   2944 L_31004799:
   2945     esi = POP32_VAL(esp); /* 0x31004799: pop esi */
   2946     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100479A: ret  */
   2947 L_31047BB8:
   2948     eax = MEM32(ebp + (-0x10)); /* 0x31047BB8: mov eax, dword ptr [ebp - 0x10] */
   2949     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(1);
   2950     eax = eax & 1; /* 0x31047BBB: and eax, 1 */
   2951     _cf = 0;
   2952     _flag_k = FK_TEST;
   2953     /* test eax, eax */ /* 0x31047BBE: test eax, eax */
   2954     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(eax);
   2955     _cf = 0;
   2956     _flag_k = FK_TEST;
   2957     if (TEST_Z(_flag_a, _flag_b)) goto L_31047BCE; /* 0x31047BC0: je 0x31047bce */
   2958 L_31047BC6:
   2959     ecx = MEM32(ebp + 0x8); /* 0x31047BC6: mov ecx, dword ptr [ebp + 8] */
   2960     RECOMP_BACKEDGE();
   2961     goto L_31004760; /* 0x31047BC9: jmp 0x31004760 */
   2962 L_31047BCE:
   2963     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31047BCE: ret  */
   2964     RECOMP_REGS_OUT();
   2965 }
   2966 
   2967 void sub_31047BCF(void) {
   2968     int _fpu_cmp = 0;
   2969     uint32_t _cf = 0;
   2970     int _df = 1;
   2971     uint32_t _flag_k = FK_NONE;
   2972     uint32_t _flag_a = 0, _flag_b = 0;
   2973     uint32_t _itail_tgt = 0;
   2974     RECOMP_REGS_LOCALS
   2975     RECOMP_ENTER(0x31047BCFu);
   2976 
   2977     goto L_31047BCF;
   2978 L_31046870:
   2979     { _itail_tgt = (uint32_t)(MEM32(0x31048200)); goto _ljump; }
   2980 L_31047BCF:
   2981     eax = 0x31049FB0u; /* 0x31047BCF: mov eax, 0x31049fb0 */
   2982 L_31047BD4:
   2983     RECOMP_BACKEDGE();
   2984     goto L_31046870; /* 0x31047BD4: jmp 0x31046870 */
   2985     { RECOMP_REGS_OUT(); return; } /* end of function */
   2986   _ljump:
   2987     switch (_itail_tgt) {
   2988       case 0x31046870u: goto L_31046870;
   2989       case 0x31047BCFu: goto L_31047BCF;
   2990       case 0x31047BD4u: goto L_31047BD4;
   2991       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   2992     }
   2993     RECOMP_REGS_OUT();
   2994 }
   2995 
   2996 void sub_31047BE0(void) {
   2997     int _fpu_cmp = 0;
   2998     uint32_t _cf = 0;
   2999     int _df = 1;
   3000     uint32_t _flag_k = FK_NONE;
   3001     uint32_t _flag_a = 0, _flag_b = 0;
   3002     uint32_t _itail_tgt = 0;
   3003     RECOMP_REGS_LOCALS
   3004     RECOMP_ENTER(0x31047BE0u);
   3005 
   3006 L_31047BE0:
   3007     eax = MEM32(ebp + (-0x10)); /* 0x31047BE0: mov eax, dword ptr [ebp - 0x10] */
   3008     PUSH32(esp, eax); /* 0x31047BE3: push eax */
   3009     RECOMP_ICALL(0x31046858u); /* 0x31047BE4: call 0x31046858 */ /* not lifted */
   3010     RECOMP_FLAGS_IN();
   3011     ecx = POP32_VAL(esp); /* 0x31047BE9: pop ecx */
   3012     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x31047BEA: ret  */
   3013     RECOMP_REGS_OUT();
   3014 }
   3015 
   3016 void sub_31047BEB(void) {
   3017     int _fpu_cmp = 0;
   3018     uint32_t _cf = 0;
   3019     int _df = 1;
   3020     uint32_t _flag_k = FK_NONE;
   3021     uint32_t _flag_a = 0, _flag_b = 0;
   3022     uint32_t _itail_tgt = 0;
   3023     RECOMP_REGS_LOCALS
   3024     RECOMP_ENTER(0x31047BEBu);
   3025 
   3026     goto L_31047BEB;
   3027 L_31046870:
   3028     { _itail_tgt = (uint32_t)(MEM32(0x31048200)); goto _ljump; }
   3029 L_31047BEB:
   3030     eax = 0x31049FE0u; /* 0x31047BEB: mov eax, 0x31049fe0 */
   3031 L_31047BF0:
   3032     RECOMP_BACKEDGE();
   3033     goto L_31046870; /* 0x31047BF0: jmp 0x31046870 */
   3034     { RECOMP_REGS_OUT(); return; } /* end of function */
   3035   _ljump:
   3036     switch (_itail_tgt) {
   3037       case 0x31046870u: goto L_31046870;
   3038       case 0x31047BEBu: goto L_31047BEB;
   3039       case 0x31047BF0u: goto L_31047BF0;
   3040       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3041     }
   3042     RECOMP_REGS_OUT();
   3043 }
   3044 
   3045 void sub_31047C00(void) {
   3046     int _fpu_cmp = 0;
   3047     uint32_t _cf = 0;
   3048     int _df = 1;
   3049     uint32_t _flag_k = FK_NONE;
   3050     uint32_t _flag_a = 0, _flag_b = 0;
   3051     uint32_t _itail_tgt = 0;
   3052     RECOMP_REGS_LOCALS
   3053     RECOMP_ENTER(0x31047C00u);
   3054 
   3055     goto L_31047C00;
   3056 L_3100B670:
   3057     PUSH32(esp, ebp); /* 0x3100B670: push ebp */
   3058     ebp = esp; /* 0x3100B671: mov ebp, esp */
   3059     PUSH32(esp, 0xFFFFFFFFu); /* 0x3100B673: push -1 */
   3060     PUSH32(esp, 0x31047546u); /* 0x3100B675: push 0x31047546 */
   3061     eax = MEM32(FS_BASE + (0)); /* 0x3100B67A: mov eax, dword ptr fs:[0] */
   3062     PUSH32(esp, eax); /* 0x3100B680: push eax */
   3063     MEM32(FS_BASE + (0)) = esp; /* 0x3100B681: mov dword ptr fs:[0], esp */
   3064     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3065     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3066     esp = esp - 8; /* 0x3100B688: sub esp, 8 */
   3067     _flag_k = FK_CMP;
   3068     PUSH32(esp, ebx); /* 0x3100B68B: push ebx */
   3069     PUSH32(esp, esi); /* 0x3100B68C: push esi */
   3070     esi = ecx; /* 0x3100B68D: mov esi, ecx */
   3071     PUSH32(esp, edi); /* 0x3100B68F: push edi */
   3072     MEM32(ebp + (-0x10)) = esi; /* 0x3100B690: mov dword ptr [ebp - 0x10], esi */
   3073     MEM32(esi) = 0x3104876Cu; /* 0x3100B693: mov dword ptr [esi], 0x3104876c */
   3074     MEM32(ebp + (-0x4)) = 1; /* 0x3100B699: mov dword ptr [ebp - 4], 1 */
   3075     RECOMP_ICALL(MEM32(0x310482F8)); /* 0x3100B6A0: call dword ptr [0x310482f8] */
   3076     RECOMP_FLAGS_IN();
   3077     eax = MEM32(esi + 0x34); /* 0x3100B6A6: mov eax, dword ptr [esi + 0x34] */
   3078     PUSH32(esp, eax); /* 0x3100B6A9: push eax */
   3079     MEM32(ebp + (-0x10)) = eax; /* 0x3100B6AA: mov dword ptr [ebp - 0x10], eax */
   3080     RECOMP_ICALL(0x31046858u); /* 0x3100B6AD: call 0x31046858 */ /* not lifted */
   3081     RECOMP_FLAGS_IN();
   3082     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3083     ebx = 0; /* 0x3100B6B2: xor ebx, ebx */
   3084     _cf = 0;
   3085     _flag_k = FK_TEST;
   3086     MEM32(esi + 0x34) = ebx; /* 0x3100B6B4: mov dword ptr [esi + 0x34], ebx */
   3087     MEM32(esi + 0x38) = ebx; /* 0x3100B6B7: mov dword ptr [esi + 0x38], ebx */
   3088     MEM32(esi + 0x3C) = ebx; /* 0x3100B6BA: mov dword ptr [esi + 0x3c], ebx */
   3089     edi = MEM32(esi + 0x8); /* 0x3100B6BD: mov edi, dword ptr [esi + 8] */
   3090     ecx = MEM32(esi + 0x14); /* 0x3100B6C0: mov ecx, dword ptr [esi + 0x14] */
   3091     eax = MEM32(edi); /* 0x3100B6C3: mov eax, dword ptr [edi] */
   3092     _flag_a = (uint32_t)(esi); _flag_b = (uint32_t)(4);
   3093     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3094     esi = esi + 4; /* 0x3100B6C5: add esi, 4 */
   3095     _flag_k = FK_ADD;
   3096     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3097     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3098     esp = esp + 4; /* 0x3100B6C8: add esp, 4 */
   3099     _flag_k = FK_ADD;
   3100     /* cmp ecx, ebx */ /* 0x3100B6CB: cmp ecx, ebx */
   3101     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ebx);
   3102     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3103     _flag_k = FK_CMP;
   3104     MEM32(ebp + (-0x4)) = 0xFFFFFFFFu; /* 0x3100B6CD: mov dword ptr [ebp - 4], 0xffffffff */
   3105     MEM32(ebp + (-0x10)) = eax; /* 0x3100B6D4: mov dword ptr [ebp - 0x10], eax */
   3106     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100B707; /* 0x3100B6D7: je 0x3100b707 */
   3107 L_3100B6D9:
   3108     ecx = eax; /* 0x3100B6D9: mov ecx, eax */
   3109     /* cmp eax, ecx */ /* 0x3100B6DB: cmp eax, ecx */
   3110     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3111     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3112     _flag_k = FK_CMP;
   3113     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B707; /* 0x3100B6DD: jne 0x3100b707 */
   3114 L_3100B6DF:
   3115     /* cmp edi, edi */ /* 0x3100B6DF: cmp edi, edi */
   3116     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3117     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3118     _flag_k = FK_CMP;
   3119     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B707; /* 0x3100B6E1: jne 0x3100b707 */
   3120 L_3100B6E3:
   3121     eax = MEM32(edi + 0x4); /* 0x3100B6E3: mov eax, dword ptr [edi + 4] */
   3122     PUSH32(esp, eax); /* 0x3100B6E6: push eax */
   3123     ecx = esi; /* 0x3100B6E7: mov ecx, esi */
   3124     RECOMP_ICALL(0x3100E8B0u); /* 0x3100B6E9: call 0x3100e8b0 */ /* not lifted */
   3125     RECOMP_FLAGS_IN();
   3126     ecx = MEM32(esi + 0x4); /* 0x3100B6EE: mov ecx, dword ptr [esi + 4] */
   3127     edx = MEM32(esi + 0x8); /* 0x3100B6F1: mov edx, dword ptr [esi + 8] */
   3128     MEM32(ecx + 0x4) = edx; /* 0x3100B6F4: mov dword ptr [ecx + 4], edx */
   3129     eax = MEM32(esi + 0x4); /* 0x3100B6F7: mov eax, dword ptr [esi + 4] */
   3130     MEM32(esi + 0x10) = ebx; /* 0x3100B6FA: mov dword ptr [esi + 0x10], ebx */
   3131     MEM32(eax) = eax; /* 0x3100B6FD: mov dword ptr [eax], eax */
   3132     eax = MEM32(esi + 0x4); /* 0x3100B6FF: mov eax, dword ptr [esi + 4] */
   3133     MEM32(eax + 0x8) = eax; /* 0x3100B702: mov dword ptr [eax + 8], eax */
   3134     goto L_3100B72A; /* 0x3100B705: jmp 0x3100b72a */
   3135 L_3100B707:
   3136     /* cmp eax, edi */ /* 0x3100B707: cmp eax, edi */
   3137     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3138     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3139     _flag_k = FK_CMP;
   3140     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100B72A; /* 0x3100B709: je 0x3100b72a */
   3141 L_3100B70B:
   3142     ecx = ebp + (-0x10); /* 0x3100B70B: lea ecx, [ebp - 0x10] */
   3143     ebx = eax; /* 0x3100B70E: mov ebx, eax */
   3144     RECOMP_ICALL(0x3100EC20u); /* 0x3100B710: call 0x3100ec20 */ /* not lifted */
   3145     RECOMP_FLAGS_IN();
   3146     PUSH32(esp, ebx); /* 0x3100B715: push ebx */
   3147     eax = ebp + (-0x14); /* 0x3100B716: lea eax, [ebp - 0x14] */
   3148     PUSH32(esp, eax); /* 0x3100B719: push eax */
   3149     ecx = esi; /* 0x3100B71A: mov ecx, esi */
   3150     RECOMP_ICALL(0x3100E4E0u); /* 0x3100B71C: call 0x3100e4e0 */ /* not lifted */
   3151     RECOMP_FLAGS_IN();
   3152     eax = MEM32(ebp + (-0x10)); /* 0x3100B721: mov eax, dword ptr [ebp - 0x10] */
   3153     /* cmp eax, edi */ /* 0x3100B724: cmp eax, edi */
   3154     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3155     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3156     _flag_k = FK_CMP;
   3157     RECOMP_BACKEDGE();
   3158     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B70B; /* 0x3100B726: jne 0x3100b70b */
   3159 L_3100B728:
   3160     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3161     ebx = 0; /* 0x3100B728: xor ebx, ebx */
   3162     _cf = 0;
   3163     _flag_k = FK_TEST;
   3164 L_3100B72A:
   3165     ecx = MEM32(esi + 0x4); /* 0x3100B72A: mov ecx, dword ptr [esi + 4] */
   3166     PUSH32(esp, ecx); /* 0x3100B72D: push ecx */
   3167     RECOMP_ICALL(0x31046858u); /* 0x3100B72E: call 0x31046858 */ /* not lifted */
   3168     RECOMP_FLAGS_IN();
   3169     edx = MEM32(esi + 0x8); /* 0x3100B733: mov edx, dword ptr [esi + 8] */
   3170     PUSH32(esp, edx); /* 0x3100B736: push edx */
   3171     MEM32(esi + 0x4) = ebx; /* 0x3100B737: mov dword ptr [esi + 4], ebx */
   3172     MEM32(esi + 0x10) = ebx; /* 0x3100B73A: mov dword ptr [esi + 0x10], ebx */
   3173     RECOMP_ICALL(0x31046858u); /* 0x3100B73D: call 0x31046858 */ /* not lifted */
   3174     RECOMP_FLAGS_IN();
   3175     ecx = MEM32(ebp + (-0xC)); /* 0x3100B742: mov ecx, dword ptr [ebp - 0xc] */
   3176     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3177     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3178     esp = esp + 8; /* 0x3100B745: add esp, 8 */
   3179     _flag_k = FK_ADD;
   3180     MEM32(esi + 0x8) = ebx; /* 0x3100B748: mov dword ptr [esi + 8], ebx */
   3181     edi = POP32_VAL(esp); /* 0x3100B74B: pop edi */
   3182     esi = POP32_VAL(esp); /* 0x3100B74C: pop esi */
   3183     ebx = POP32_VAL(esp); /* 0x3100B74D: pop ebx */
   3184     MEM32(FS_BASE + (0)) = ecx; /* 0x3100B74E: mov dword ptr fs:[0], ecx */
   3185     esp = ebp; /* 0x3100B755: mov esp, ebp */
   3186     ebp = POP32_VAL(esp); /* 0x3100B757: pop ebp */
   3187     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100B758: ret  */
   3188 L_31047C00:
   3189     ecx = ebp + (-0x60); /* 0x31047C00: lea ecx, [ebp - 0x60] */
   3190     RECOMP_BACKEDGE();
   3191     goto L_3100B670; /* 0x31047C03: jmp 0x3100b670 */
   3192     { RECOMP_REGS_OUT(); return; } /* end of function */
   3193     RECOMP_REGS_OUT();
   3194 }
   3195 
   3196 void sub_31047C08(void) {
   3197     int _fpu_cmp = 0;
   3198     uint32_t _cf = 0;
   3199     int _df = 1;
   3200     uint32_t _flag_k = FK_NONE;
   3201     uint32_t _flag_a = 0, _flag_b = 0;
   3202     uint32_t _itail_tgt = 0;
   3203     RECOMP_REGS_LOCALS
   3204     RECOMP_ENTER(0x31047C08u);
   3205 
   3206 L_31047C08:
   3207     ecx = ebp + (-0x20); /* 0x31047C08: lea ecx, [ebp - 0x20] */
   3208 L_31047C0B:
   3209     { _itail_tgt = (uint32_t)(MEM32(0x310480C8)); goto _ljump; }
   3210     { RECOMP_REGS_OUT(); return; } /* end of function */
   3211   _ljump:
   3212     switch (_itail_tgt) {
   3213       case 0x31047C08u: goto L_31047C08;
   3214       case 0x31047C0Bu: goto L_31047C0B;
   3215       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3216     }
   3217     RECOMP_REGS_OUT();
   3218 }
   3219 
   3220 void sub_31047C11(void) {
   3221     int _fpu_cmp = 0;
   3222     uint32_t _cf = 0;
   3223     int _df = 1;
   3224     uint32_t _flag_k = FK_NONE;
   3225     uint32_t _flag_a = 0, _flag_b = 0;
   3226     uint32_t _itail_tgt = 0;
   3227     RECOMP_REGS_LOCALS
   3228     RECOMP_ENTER(0x31047C11u);
   3229 
   3230     goto L_31047C11;
   3231 L_3100B790:
   3232     PUSH32(esp, ebp); /* 0x3100B790: push ebp */
   3233     ebp = esp; /* 0x3100B791: mov ebp, esp */
   3234     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3235     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3236     esp = esp - 8; /* 0x3100B793: sub esp, 8 */
   3237     _flag_k = FK_CMP;
   3238     PUSH32(esp, ebx); /* 0x3100B796: push ebx */
   3239     PUSH32(esp, esi); /* 0x3100B797: push esi */
   3240     esi = ecx; /* 0x3100B798: mov esi, ecx */
   3241     ecx = MEM32(esi + 0x10); /* 0x3100B79A: mov ecx, dword ptr [esi + 0x10] */
   3242     /* test ecx, ecx */ /* 0x3100B79D: test ecx, ecx */
   3243     _flag_a = (uint32_t)(ecx); _flag_b = (uint32_t)(ecx);
   3244     _cf = 0;
   3245     _flag_k = FK_TEST;
   3246     PUSH32(esp, edi); /* 0x3100B79F: push edi */
   3247     edi = MEM32(esi + 0x4); /* 0x3100B7A0: mov edi, dword ptr [esi + 4] */
   3248     eax = MEM32(edi); /* 0x3100B7A3: mov eax, dword ptr [edi] */
   3249     MEM32(ebp + (-0x4)) = eax; /* 0x3100B7A5: mov dword ptr [ebp - 4], eax */
   3250     if (TEST_Z(_flag_a, _flag_b)) goto L_3100B80F; /* 0x3100B7A8: je 0x3100b80f */
   3251 L_3100B7AA:
   3252     ecx = eax; /* 0x3100B7AA: mov ecx, eax */
   3253     /* cmp eax, ecx */ /* 0x3100B7AC: cmp eax, ecx */
   3254     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(ecx);
   3255     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3256     _flag_k = FK_CMP;
   3257     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B80F; /* 0x3100B7AE: jne 0x3100b80f */
   3258 L_3100B7B0:
   3259     /* cmp edi, edi */ /* 0x3100B7B0: cmp edi, edi */
   3260     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(edi);
   3261     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3262     _flag_k = FK_CMP;
   3263     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B80F; /* 0x3100B7B2: jne 0x3100b80f */
   3264 L_3100B7B4:
   3265     ebx = MEM32(edi + 0x4); /* 0x3100B7B4: mov ebx, dword ptr [edi + 4] */
   3266     /* cmp ebx, MEM32(esi + 0x8) */ /* 0x3100B7B7: cmp ebx, dword ptr [esi + 8] */
   3267     _flag_a = (uint32_t)(ebx); _flag_b = (uint32_t)(MEM32(esi + 0x8));
   3268     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3269     _flag_k = FK_CMP;
   3270     edi = ebx; /* 0x3100B7BA: mov edi, ebx */
   3271     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100B7E7; /* 0x3100B7BC: je 0x3100b7e7 */
   3272 L_3100B7BE:
   3273     eax = MEM32(edi + 0x8); /* 0x3100B7BE: mov eax, dword ptr [edi + 8] */
   3274     PUSH32(esp, eax); /* 0x3100B7C1: push eax */
   3275     ecx = esi; /* 0x3100B7C2: mov ecx, esi */
   3276     RECOMP_ICALL(0x3100E8B0u); /* 0x3100B7C4: call 0x3100e8b0 */ /* not lifted */
   3277     RECOMP_FLAGS_IN();
   3278     edi = MEM32(edi); /* 0x3100B7C9: mov edi, dword ptr [edi] */
   3279     PUSH32(esp, 0); /* 0x3100B7CB: push 0 */
   3280     ecx = ebx + 0xC; /* 0x3100B7CD: lea ecx, [ebx + 0xc] */
   3281     RECOMP_ICALL(0x3100EE50u); /* 0x3100B7D0: call 0x3100ee50 */ /* not lifted */
   3282     RECOMP_FLAGS_IN();
   3283     PUSH32(esp, ebx); /* 0x3100B7D5: push ebx */
   3284     RECOMP_ICALL(0x31046858u); /* 0x3100B7D6: call 0x31046858 */ /* not lifted */
   3285     RECOMP_FLAGS_IN();
   3286     eax = MEM32(esi + 0x8); /* 0x3100B7DB: mov eax, dword ptr [esi + 8] */
   3287     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3288     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3289     esp = esp + 4; /* 0x3100B7DE: add esp, 4 */
   3290     _flag_k = FK_ADD;
   3291     /* cmp edi, eax */ /* 0x3100B7E1: cmp edi, eax */
   3292     _flag_a = (uint32_t)(edi); _flag_b = (uint32_t)(eax);
   3293     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3294     _flag_k = FK_CMP;
   3295     ebx = edi; /* 0x3100B7E3: mov ebx, edi */
   3296     RECOMP_BACKEDGE();
   3297     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B7BE; /* 0x3100B7E5: jne 0x3100b7be */
   3298 L_3100B7E7:
   3299     ecx = MEM32(esi + 0x4); /* 0x3100B7E7: mov ecx, dword ptr [esi + 4] */
   3300     edx = MEM32(esi + 0x8); /* 0x3100B7EA: mov edx, dword ptr [esi + 8] */
   3301     MEM32(ecx + 0x4) = edx; /* 0x3100B7ED: mov dword ptr [ecx + 4], edx */
   3302     eax = MEM32(esi + 0x4); /* 0x3100B7F0: mov eax, dword ptr [esi + 4] */
   3303     MEM32(esi + 0x10) = 0; /* 0x3100B7F3: mov dword ptr [esi + 0x10], 0 */
   3304     MEM32(eax) = eax; /* 0x3100B7FA: mov dword ptr [eax], eax */
   3305     eax = MEM32(esi + 0x4); /* 0x3100B7FC: mov eax, dword ptr [esi + 4] */
   3306     MEM32(eax + 0x8) = eax; /* 0x3100B7FF: mov dword ptr [eax + 8], eax */
   3307     eax = ebp + (-0x8); /* 0x3100B802: lea eax, [ebp - 8] */
   3308     PUSH32(esp, eax); /* 0x3100B805: push eax */
   3309     ecx = esi; /* 0x3100B806: mov ecx, esi */
   3310     RECOMP_ICALL(0x3100E400u); /* 0x3100B808: call 0x3100e400 */ /* not lifted */
   3311     RECOMP_FLAGS_IN();
   3312     goto L_3100B830; /* 0x3100B80D: jmp 0x3100b830 */
   3313 L_3100B80F:
   3314     /* cmp eax, edi */ /* 0x3100B80F: cmp eax, edi */
   3315     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3316     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3317     _flag_k = FK_CMP;
   3318     if (CMP_EQ(_flag_a, _flag_b)) goto L_3100B830; /* 0x3100B811: je 0x3100b830 */
   3319 L_3100B813:
   3320     ecx = ebp + (-0x4); /* 0x3100B813: lea ecx, [ebp - 4] */
   3321     ebx = eax; /* 0x3100B816: mov ebx, eax */
   3322     RECOMP_ICALL(0x3100EC20u); /* 0x3100B818: call 0x3100ec20 */ /* not lifted */
   3323     RECOMP_FLAGS_IN();
   3324     PUSH32(esp, ebx); /* 0x3100B81D: push ebx */
   3325     ecx = ebp + (-0x8); /* 0x3100B81E: lea ecx, [ebp - 8] */
   3326     PUSH32(esp, ecx); /* 0x3100B821: push ecx */
   3327     ecx = esi; /* 0x3100B822: mov ecx, esi */
   3328     RECOMP_ICALL(0x3100E4E0u); /* 0x3100B824: call 0x3100e4e0 */ /* not lifted */
   3329     RECOMP_FLAGS_IN();
   3330     eax = MEM32(ebp + (-0x4)); /* 0x3100B829: mov eax, dword ptr [ebp - 4] */
   3331     /* cmp eax, edi */ /* 0x3100B82C: cmp eax, edi */
   3332     _flag_a = (uint32_t)(eax); _flag_b = (uint32_t)(edi);
   3333     _cf = (uint32_t)CMP_B(_flag_a, _flag_b);
   3334     _flag_k = FK_CMP;
   3335     RECOMP_BACKEDGE();
   3336     if (CMP_NE(_flag_a, _flag_b)) goto L_3100B813; /* 0x3100B82E: jne 0x3100b813 */
   3337 L_3100B830:
   3338     edx = MEM32(esi + 0x4); /* 0x3100B830: mov edx, dword ptr [esi + 4] */
   3339     PUSH32(esp, edx); /* 0x3100B833: push edx */
   3340     RECOMP_ICALL(0x31046858u); /* 0x3100B834: call 0x31046858 */ /* not lifted */
   3341     RECOMP_FLAGS_IN();
   3342     eax = MEM32(esi + 0x8); /* 0x3100B839: mov eax, dword ptr [esi + 8] */
   3343     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3344     edi = 0; /* 0x3100B83C: xor edi, edi */
   3345     _cf = 0;
   3346     _flag_k = FK_TEST;
   3347     PUSH32(esp, eax); /* 0x3100B83E: push eax */
   3348     MEM32(esi + 0x4) = edi; /* 0x3100B83F: mov dword ptr [esi + 4], edi */
   3349     MEM32(esi + 0x10) = edi; /* 0x3100B842: mov dword ptr [esi + 0x10], edi */
   3350     RECOMP_ICALL(0x31046858u); /* 0x3100B845: call 0x31046858 */ /* not lifted */
   3351     RECOMP_FLAGS_IN();
   3352     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(8);
   3353     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3354     esp = esp + 8; /* 0x3100B84A: add esp, 8 */
   3355     _flag_k = FK_ADD;
   3356     MEM32(esi + 0x8) = edi; /* 0x3100B84D: mov dword ptr [esi + 8], edi */
   3357     edi = POP32_VAL(esp); /* 0x3100B850: pop edi */
   3358     esi = POP32_VAL(esp); /* 0x3100B851: pop esi */
   3359     ebx = POP32_VAL(esp); /* 0x3100B852: pop ebx */
   3360     esp = ebp; /* 0x3100B853: mov esp, ebp */
   3361     ebp = POP32_VAL(esp); /* 0x3100B855: pop ebp */
   3362     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x3100B856: ret  */
   3363 L_31047C11:
   3364     ecx = ebp + (-0x5C); /* 0x31047C11: lea ecx, [ebp - 0x5c] */
   3365     RECOMP_BACKEDGE();
   3366     goto L_3100B790; /* 0x31047C14: jmp 0x3100b790 */
   3367     { RECOMP_REGS_OUT(); return; } /* end of function */
   3368     RECOMP_REGS_OUT();
   3369 }
   3370 
   3371 void sub_31047C19(void) {
   3372     int _fpu_cmp = 0;
   3373     uint32_t _cf = 0;
   3374     int _df = 1;
   3375     uint32_t _flag_k = FK_NONE;
   3376     uint32_t _flag_a = 0, _flag_b = 0;
   3377     uint32_t _itail_tgt = 0;
   3378     RECOMP_REGS_LOCALS
   3379     RECOMP_ENTER(0x31047C19u);
   3380 
   3381     goto L_31047C19;
   3382 L_31004880:
   3383     PUSH32(esp, ebp); /* 0x31004880: push ebp */
   3384     ebp = esp; /* 0x31004881: mov ebp, esp */
   3385     PUSH32(esp, ecx); /* 0x31004883: push ecx */
   3386     PUSH32(esp, esi); /* 0x31004884: push esi */
   3387     esi = ecx; /* 0x31004885: mov esi, ecx */
   3388     eax = MEM32(esi + 0x4); /* 0x31004887: mov eax, dword ptr [esi + 4] */
   3389     PUSH32(esp, eax); /* 0x3100488A: push eax */
   3390     MEM32(ebp + (-0x4)) = eax; /* 0x3100488B: mov dword ptr [ebp - 4], eax */
   3391     RECOMP_ICALL(0x31046858u); /* 0x3100488E: call 0x31046858 */ /* not lifted */
   3392     RECOMP_FLAGS_IN();
   3393     _flag_a = (uint32_t)(esp); _flag_b = (uint32_t)(4);
   3394     _cf = (uint32_t)((uint32_t)(_flag_a + _flag_b) < (uint32_t)_flag_a);
   3395     esp = esp + 4; /* 0x31004893: add esp, 4 */
   3396     _flag_k = FK_ADD;
   3397     _flag_a = (uint32_t)(0); _flag_b = (uint32_t)(0);
   3398     eax = 0; /* 0x31004896: xor eax, eax */
   3399     _cf = 0;
   3400     _flag_k = FK_TEST;
   3401     MEM32(esi + 0x4) = eax; /* 0x31004898: mov dword ptr [esi + 4], eax */
   3402     MEM32(esi + 0x8) = eax; /* 0x3100489B: mov dword ptr [esi + 8], eax */
   3403     MEM32(esi + 0xC) = eax; /* 0x3100489E: mov dword ptr [esi + 0xc], eax */
   3404     esi = POP32_VAL(esp); /* 0x310048A1: pop esi */
   3405     esp = ebp; /* 0x310048A2: mov esp, ebp */
   3406     ebp = POP32_VAL(esp); /* 0x310048A4: pop ebp */
   3407     RECOMP_FLAGS_OUT(); esp += 4; { RECOMP_REGS_OUT(); return; } /* 0x310048A5: ret  */
   3408 L_31047C19:
   3409     ecx = ebp + (-0x30); /* 0x31047C19: lea ecx, [ebp - 0x30] */
   3410     RECOMP_BACKEDGE();
   3411     goto L_31004880; /* 0x31047C1C: jmp 0x31004880 */
   3412     { RECOMP_REGS_OUT(); return; } /* end of function */
   3413     RECOMP_REGS_OUT();
   3414 }
   3415 
   3416 void sub_31047C21(void) {
   3417     int _fpu_cmp = 0;
   3418     uint32_t _cf = 0;
   3419     int _df = 1;
   3420     uint32_t _flag_k = FK_NONE;
   3421     uint32_t _flag_a = 0, _flag_b = 0;
   3422     uint32_t _itail_tgt = 0;
   3423     RECOMP_REGS_LOCALS
   3424     RECOMP_ENTER(0x31047C21u);
   3425 
   3426     goto L_31047C21;
   3427 L_31046870:
   3428     { _itail_tgt = (uint32_t)(MEM32(0x31048200)); goto _ljump; }
   3429 L_31047C21:
   3430     eax = 0x3104A008u; /* 0x31047C21: mov eax, 0x3104a008 */
   3431 L_31047C26:
   3432     RECOMP_BACKEDGE();
   3433     goto L_31046870; /* 0x31047C26: jmp 0x31046870 */
   3434     { RECOMP_REGS_OUT(); return; } /* end of function */
   3435   _ljump:
   3436     switch (_itail_tgt) {
   3437       case 0x31046870u: goto L_31046870;
   3438       case 0x31047C21u: goto L_31047C21;
   3439       case 0x31047C26u: goto L_31047C26;
   3440       default: RECOMP_ITAIL(_itail_tgt); { RECOMP_REGS_OUT(); return; }
   3441     }
   3442     RECOMP_REGS_OUT();
   3443 }