// File: /workspace/github_c_makefile_star2_O3/xiongxu[P]bam2bedGraph2/samtools-0.1.19/bcftools/prob1.c
// Function: call_multiallelic_gt
int call_multiallelic_gt(bcf1_t *b, bcf_p1aux_t *ma, double threshold, int var_only)
{
    int nals = 1;
    char *p;
    for (p=b->alt; *p; p++)
    {
        if ( *p=='X' || p[0]=='.' ) break;
        if ( p[0]==',' ) nals++;
    }
    if ( b->alt[0] && !*p ) nals++;

    if ( nals>4 )
    {
        if ( *b->ref=='N' ) return 0;
        fprintf(stderr,"Not ready for this, more than 4 alleles at %d: %s, %s\n", b->pos+1, b->ref,b->alt); 
        exit(1);
    }

    // find PL, DV and DP FORMAT indexes
    uint8_t *pl = NULL;
    int i, npl = 0, idp = -1, idv = -1;
    for (i = 0; i < b->n_gi; ++i) 
    {
        if (b->gi[i].fmt == bcf_str2int("PL", 2)) 
        {
            pl  = (uint8_t*)b->gi[i].data;
            npl = b->gi[i].len;
        }
        else if (b->gi[i].fmt == bcf_str2int("DP", 2))  idp=i;
        else if (b->gi[i].fmt == bcf_str2int("DV", 2))  idv=i;
    }
    if ( nals==1 ) 
    {
        if ( !var_only ) _bcf1_set_ref(b, idp);
        return 1;
    }
    if ( !pl ) return -1;

    assert(ma->q2p[0] == 1);

    // Init P(D|G)
    int npdg = nals*(nals+1)/2;
    double *pdg,*_pdg;
    _pdg = pdg = malloc(sizeof(double)*ma->n*npdg);
    for (i=0; i<ma->n; i++)
    {
        int j; 
        double sum = 0;
        for (j=0; j<npdg; j++)
        {
            //_pdg[j] = pow(10,-0.1*pl[j]); 
            _pdg[j] = ma->q2p[pl[j]];
            sum += _pdg[j];
        }
        if ( sum )
            for (j=0; j<npdg; j++) _pdg[j] /= sum;
        _pdg += npdg;
        pl += npl;
    }

    if ((p = strstr(b->info, "QS=")) == 0) { fprintf(stderr,"INFO/QS is required with -m, exiting\n"); exit(1); }
    double qsum[4];
    if ( sscanf(p+3,"%lf,%lf,%lf,%lf",&qsum[0],&qsum[1],&qsum[2],&qsum[3])!=4 ) { fprintf(stderr,"Could not parse %s\n",p); exit(1); }


    // Calculate the most likely combination of alleles, remembering the most and second most likely set
    int ia,ib,ic, max_als=0, max_als2=0;
    double ref_lk = 0, max_lk = INT_MIN, max_lk2 = INT_MIN, lk_sum = INT_MIN, lk_sums[3];
    for (ia=0; ia<nals; ia++)
    {
        double lk_tot = 0;
        int iaa = (ia+1)*(ia+2)/2-1;
        int isample;
        for (isample=0; isample<ma->n; isample++)
        {
            double *p = pdg + isample*npdg;
            // assert( log(p[iaa]) <= 0 );
            lk_tot += log(p[iaa]);
        }
        if ( ia==0 ) ref_lk = lk_tot;
        if ( max_lk<lk_tot ) { max_lk2 = max_lk; max_als2 = max_als; max_lk = lk_tot; max_als = 1<<ia; }
        else if ( max_lk2<lk_tot ) { max_lk2 = lk_tot; max_als2 = 1<<ia; }
        lk_sum = lk_tot>lk_sum ? lk_tot + log(1+exp(lk_sum-lk_tot)) : lk_sum + log(1+exp(lk_tot-lk_sum));
    }
    lk_sums[0] = lk_sum;
    if ( nals>1 )
    {
        for (ia=0; ia<nals; ia++)
        {
            if ( qsum[ia]==0 ) continue;
            int iaa = (ia+1)*(ia+2)/2-1;
            for (ib=0; ib<ia; ib++)
            {
                if ( qsum[ib]==0 ) continue;
                double lk_tot = 0;
                double fa  = qsum[ia]/(qsum[ia]+qsum[ib]);
                double fb  = qsum[ib]/(qsum[ia]+qsum[ib]);
                double fab = 2*fa*fb; fa *= fa; fb *= fb;
                int isample, ibb = (ib+1)*(ib+2)/2-1, iab = iaa - ia + ib;
                for (isample=0; isample<ma->n; isample++)
                {
                    double *p = pdg + isample*npdg;
                    //assert( log(fa*p[iaa] + fb*p[ibb] + fab*p[iab]) <= 0 );
                    if ( b->ploidy && b->ploidy[isample]==1 )
                        lk_tot +=  log(fa*p[iaa] + fb*p[ibb]);
                    else 
                        lk_tot +=  log(fa*p[iaa] + fb*p[ibb] + fab*p[iab]);
                }
                if ( max_lk<lk_tot ) { max_lk2 = max_lk; max_als2 = max_als; max_lk = lk_tot; max_als = 1<<ia|1<<ib; }
                else if ( max_lk2<lk_tot ) { max_lk2 = lk_tot; max_als2 = 1<<ia|1<<ib; }
                lk_sum = lk_tot>lk_sum ? lk_tot + log(1+exp(lk_sum-lk_tot)) : lk_sum + log(1+exp(lk_tot-lk_sum));
            }
        }
        lk_sums[1] = lk_sum;
    }
    if ( nals>2 )
    {
        for (ia=0; ia<nals; ia++)
        {
            if ( qsum[ia]==0 ) continue;
            int iaa = (ia+1)*(ia+2)/2-1;
            for (ib=0; ib<ia; ib++)
            {
                if ( qsum[ib]==0 ) continue;
                int ibb = (ib+1)*(ib+2)/2-1; 
                int iab = iaa - ia + ib;
                for (ic=0; ic<ib; ic++)
                {
                    if ( qsum[ic]==0 ) continue;
                    double lk_tot = 0;
                    double fa  = qsum[ia]/(qsum[ia]+qsum[ib]+qsum[ic]);
                    double fb  = qsum[ib]/(qsum[ia]+qsum[ib]+qsum[ic]);
                    double fc  = qsum[ic]/(qsum[ia]+qsum[ib]+qsum[ic]);
                    double fab = 2*fa*fb, fac = 2*fa*fc, fbc = 2*fb*fc; fa *= fa; fb *= fb; fc *= fc;
                    int isample, icc = (ic+1)*(ic+2)/2-1;
                    int iac = iaa - ia + ic, ibc = ibb - ib + ic;
                    for (isample=0; isample<ma->n; isample++)
                    {
                        double *p = pdg + isample*npdg;
                        //assert( log(fa*p[iaa] + fb*p[ibb] + fc*p[icc] + fab*p[iab] + fac*p[iac] + fbc*p[ibc]) <= 0 );
                        if ( b->ploidy && b->ploidy[isample]==1 ) 
                            lk_tot += log(fa*p[iaa] + fb*p[ibb] + fc*p[icc]);
                        else
                            lk_tot += log(fa*p[iaa] + fb*p[ibb] + fc*p[icc] + fab*p[iab] + fac*p[iac] + fbc*p[ibc]);
                    }
                    if ( max_lk<lk_tot ) { max_lk2 = max_lk; max_als2 = max_als; max_lk = lk_tot; max_als = 1<<ia|1<<ib|1<<ic; }
                    else if ( max_lk2<lk_tot ) { max_lk2 = lk_tot; max_als2 = 1<<ia|1<<ib|1<<ic; }
                    lk_sum = lk_tot>lk_sum ? lk_tot + log(1+exp(lk_sum-lk_tot)) : lk_sum + log(1+exp(lk_tot-lk_sum));
                }
            }
        }
        lk_sums[2] = lk_sum;
    }

    // Should we add another allele, does it increase the likelihood significantly?
    int n1=0, n2=0;
    for (i=0; i<nals; i++) if ( max_als&1<<i) n1++;
    for (i=0; i<nals; i++) if ( max_als2&1<<i) n2++;
    if ( n2<n1 && kf_gammap(1,2.0*(max_lk-max_lk2))<threshold )
    {
        // the threshold not exceeded, use the second most likely set with fewer alleles
        max_lk  = max_lk2;
        max_als = max_als2;
        n1 = n2;
    }
    lk_sum = lk_sums[n1-1];

    // Get the BCF record ready for GT and GQ
    kstring_t s;
    int old_n_gi = b->n_gi;
    s.m = b->m_str; s.l = b->l_str - 1; s.s = b->str;
    kputs(":GT:GQ", &s); kputc('\0', &s);
    b->m_str = s.m; b->l_str = s.l; b->str = s.s;
    bcf_sync(b);

    // Call GTs
    int isample, gts=0, ac[4] = {0,0,0,0};
    int nRR = 0, nAA = 0, nRA = 0, max_dv = 0;
    for (isample = 0; isample < b->n_smpl; isample++) 
    {
        int ploidy = b->ploidy ? b->ploidy[isample] : 2;
        double *p = pdg + isample*npdg;
        int ia, als = 0;
        double lk = 0, lk_s = 0;
        for (ia=0; ia<nals; ia++)
        {
            if ( !(max_als&1<<ia) ) continue;
            int iaa = (ia+1)*(ia+2)/2-1;
            double _lk = p[iaa]*qsum[ia]*qsum[ia];
            if ( _lk > lk ) { lk = _lk; als = ia<<3 | ia; }
            lk_s += _lk;
        }
        if ( ploidy==2 ) 
        {
            for (ia=0; ia<nals; ia++)
            {
                if ( !(max_als&1<<ia) ) continue;
                int iaa = (ia+1)*(ia+2)/2-1;
                for (ib=0; ib<ia; ib++)
                {
                    if ( !(max_als&1<<ib) ) continue;
                    int iab = iaa - ia + ib;
                    double _lk = 2*qsum[ia]*qsum[ib]*p[iab];
                    if ( _lk > lk ) { lk = _lk; als = ib<<3 | ia; }
                    lk_s += _lk;
                }
            }
        }
        lk = -log(1-lk/lk_s)/0.2302585;
        int dp = 0;
        if ( idp>=0 && (dp=((uint16_t*)b->gi[idp].data)[isample])==0 )
        {
            // no coverage
            ((uint8_t*)b->gi[old_n_gi].data)[isample]   = 1<<7;
            ((uint8_t*)b->gi[old_n_gi+1].data)[isample] = 0;
            continue;
        }
        if ( lk>99 ) lk = 99;
        ((uint8_t*)b->gi[old_n_gi].data)[isample]   = als;
        ((uint8_t*)b->gi[old_n_gi+1].data)[isample] = (int)lk;

        // For MDV annotation
        int dv;
        if ( als && idv>=0 && (dv=((uint16_t*)b->gi[idv].data)[isample]) )
        {
            if ( max_dv < dv ) max_dv = dv;
        }

        // For HWE annotation; multiple ALT alleles treated as one
        if ( !als ) nRR++;
        else if ( !(als>>3&7) || !(als&7) ) nRA++;
        else nAA++;

        gts |= 1<<(als>>3&7) | 1<<(als&7);
        ac[ als>>3&7 ]++;
        ac[ als&7 ]++;
    }
    free(pdg);
    bcf_fit_alt(b,max_als);

    // The VCF spec is ambiguous about QUAL: is it the probability of anything else
    //  (that is QUAL(non-ref) = P(ref)+P(any non-ref other than ALT)) or is it
    //  QUAL(non-ref)=P(ref) and QUAL(ref)=1-P(ref)? Assuming the latter.
    b->qual = gts>1 ? -4.343*(ref_lk - lk_sum) : -4.343*log(1-exp(ref_lk - lk_sum));
    if ( b->qual>999 ) b->qual = 999;

    // Prepare BCF for output: ref, alt, filter, info, format
    memset(&s, 0, sizeof(kstring_t)); kputc('\0', &s); 
    kputs(b->ref, &s); kputc('\0', &s);
    kputs(b->alt, &s); kputc('\0', &s); kputc('\0', &s);
    {
        int an=0, nalts=0;
        for (i=0; i<nals; i++)
        {
            an += ac[i];
            if ( i>0 && ac[i] ) nalts++;
        }
        ksprintf(&s, "AN=%d;", an);
        if ( nalts )
        {
            kputs("AC=", &s);
            for (i=1; i<nals; i++)
            {
                if ( !(gts&1<<i) ) continue;
                nalts--;
                ksprintf(&s,"%d", ac[i]);
                if ( nalts>0 ) kputc(',', &s);
            }
            kputc(';', &s);
        }
        kputs(b->info, &s); 
        anno16_t a;
        int has_I16 = test16(b, &a) >= 0? 1 : 0;
        if (has_I16 )
        {
            if ( a.is_tested) ksprintf(&s, ";PV4=%.2g,%.2g,%.2g,%.2g", a.p[0], a.p[1], a.p[2], a.p[3]);
            ksprintf(&s, ";DP4=%d,%d,%d,%d;MQ=%d", a.d[0], a.d[1], a.d[2], a.d[3], a.mq);
            ksprintf(&s, ";QBD=%e", b->qual/(a.d[0] + a.d[1] + a.d[2] + a.d[3]));
            if ( max_dv ) ksprintf(&s, ";MDV=%d", max_dv);
        }
        if ( nAA+nRA )
        {
            double hwe = calc_hwe(nAA, nRR, nRA);
            ksprintf(&s, ";HWE=%e", hwe);
        }
        kputc('\0', &s);
        rm_info(&s, "I16=");
        rm_info(&s, "QS=");
    }
    kputs(b->fmt, &s); kputc('\0', &s);
    free(b->str);
    b->m_str = s.m; b->l_str = s.l; b->str = s.s;
    bcf_sync(b);

    return gts;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1e8, %rsp            # imm = 0x1E8
movq %rsi, %r10
movq 0x28(%rdi), %rax
movl $0x1, %r9d
movq %rax, %rcx
movb (%rcx), %sil
movzbl %sil, %r8d
cmpl $0x2d, %r8d
jg 0x10ccf
cmpl $0x2c, %r8d
jne 0x10cdd
incl %r9d
jmp 0x10ce2
cmpl $0x2e, %r8d
je 0x10ce7
cmpl $0x58, %r8d
jne 0x10ce2
jmp 0x10ce7
testl %r8d, %r8d
je 0x10ce7
incq %rcx
jmp 0x10cb7
cmpb $0x0, (%rax)
setne %cl
testb %sil, %sil
sete %sil
andb %cl, %sil
movzbl %sil, %ecx
addl %ecx, %r9d
movq %r9, 0x60(%rsp)
cmpl $0x4, %r9d
movq %rdi, 0x70(%rsp)
jle 0x10d2a
movq 0x20(%rdi), %rsi
xorl %ebp, %ebp
cmpb $0x4e, (%rsi)
je 0x1304a
movq 0x70(%rsp), %rdi
movq %rax, %rdx
callq 0x2af4
movslq 0x48(%rdi), %rbx
testq %rbx, %rbx
jle 0x11a82
movq 0x50(%rdi), %rax
addq $0x8, %rax
movl $0xffffffff, 0x8c(%rsp) # imm = 0xFFFFFFFF
xorl %ecx, %ecx
xorl %r15d, %r15d
xorl %r14d, %r14d
movl $0xffffffff, %edi       # imm = 0xFFFFFFFF
movl -0x8(%rax), %esi
cmpl $0x504c, %esi           # imm = 0x504C
je 0x10d73
cmpl $0x4450, %esi           # imm = 0x4450
jne 0x10d7c
movl %ecx, 0x8c(%rsp)
jmp 0x10d85
movq (%rax), %r15
movl -0x4(%rax), %r14d
jmp 0x10d85
cmpl $0x4456, %esi           # imm = 0x4456
cmovel %ecx, %edi
incq %rcx
addq $0x10, %rax
cmpq %rcx, %rbx
jne 0x10d57
cmpl $0x1, 0x60(%rsp)
je 0x11a9d
testq %r15, %r15
je 0x11b4b
movsd %xmm0, 0x1b0(%rsp)
movl %edi, 0xf8(%rsp)
movq 0x18(%r10), %r12
movsd (%r12), %xmm0
ucomisd 0x82b1(%rip), %xmm0     # 0x19078
jne 0x1305e
jp 0x1305e
movq 0x60(%rsp), %rax
leal 0x1(%rax), %ebp
imull %eax, %ebp
movl %ebp, %ebx
shrl $0x1f, %ebx
addl %ebp, %ebx
sarl %ebx
movq %r10, 0x68(%rsp)
movslq (%r10), %r13
movslq %ebx, %rdi
movq %rdi, 0x118(%rsp)
imulq %r13, %rdi
shlq $0x3, %rdi
callq 0x2360
movq %rax, 0xc0(%rsp)
testq %r13, %r13
jle 0x10e99
movslq %r14d, %rax
movl %ebx, %ecx
movq 0x118(%rsp), %rdx
leaq (,%rdx,8), %rdx
xorl %esi, %esi
xorpd %xmm0, %xmm0
movq 0xc0(%rsp), %rdi
cmpl $0x2, %ebp
jl 0x10e8c
xorpd %xmm1, %xmm1
xorl %r8d, %r8d
movzbl (%r15,%r8), %r9d
movsd (%r12,%r9,8), %xmm2
movsd %xmm2, (%rdi,%r8,8)
addsd %xmm2, %xmm1
incq %r8
cmpq %r8, %rcx
jne 0x10e47
ucomisd %xmm0, %xmm1
jne 0x10e6c
jnp 0x10e8c
cmpl $0x2, %ebp
jl 0x10e8c
xorl %r8d, %r8d
movsd (%rdi,%r8,8), %xmm2
divsd %xmm1, %xmm2
movsd %xmm2, (%rdi,%r8,8)
incq %r8
cmpq %r8, %rcx
jne 0x10e74
addq %rax, %r15
incl %esi
addq %rdx, %rdi
cmpl %r13d, %esi
jne 0x10e3b
movq 0x70(%rsp), %rax
movq 0x38(%rax), %rdi
leaq 0x9be7(%rip), %rsi      # 0x1aa90
callq 0x2550
testq %rax, %rax
je 0x1307d
movq %rax, %r12
leaq 0x3(%rax), %rdi
leaq 0x38(%rsp), %rcx
leaq 0x40(%rsp), %r8
leaq 0x48(%rsp), %r9
leaq 0xa80a(%rip), %rsi      # 0x1b6de
leaq 0x30(%rsp), %rdx
xorl %eax, %eax
callq 0x2390
cmpl $0x4, %eax
jne 0x13082
movq 0x60(%rsp), %rax
movl %eax, %ecx
movq %rcx, 0x90(%rsp)
testl %eax, %eax
movq 0x68(%rsp), %rdx
jle 0x121f7
movl %ebx, %ecx
movq 0xc0(%rsp), %rax
addq $-0x8, %rax
movq %rax, 0x80(%rsp)
movq %rcx, 0xf0(%rsp)
leaq (,%rcx,8), %r15
movsd 0xa585(%rip), %xmm1     # 0x1b4b8
xorpd %xmm0, %xmm0
movsd %xmm0, 0xa0(%rsp)
xorl %r12d, %r12d
movl $0x4, %ebp
movl $0x2, %ebx
movl $0x0, 0x2c(%rsp)
movl $0x0, 0x54(%rsp)
movsd %xmm1, 0x98(%rsp)
movsd %xmm1, 0x78(%rsp)
movsd %xmm1, 0xa8(%rsp)
cmpl $0x0, (%rdx)
xorpd %xmm1, %xmm1
jle 0x10fbe
movl %ebx, %eax
shrl %eax
movq 0x80(%rsp), %rcx
leaq (%rcx,%rax,8), %r14
xorl %r13d, %r13d
movsd %xmm1, 0x58(%rsp)
movsd (%r14), %xmm0
callq 0x2210
movsd 0x58(%rsp), %xmm1
addsd %xmm0, %xmm1
incq %r13
movq 0x68(%rsp), %rax
movslq (%rax), %rax
addq %r15, %r14
cmpq %rax, %r13
jl 0x10f91
movapd %xmm1, %xmm0
testl %r12d, %r12d
je 0x10fd0
movsd 0xa0(%rsp), %xmm0
movsd %xmm0, 0xa0(%rsp)
movsd 0x78(%rsp), %xmm0
ucomisd %xmm0, %xmm1
jbe 0x1100c
movl $0x1, %eax
movl %r12d, %ecx
shll %cl, %eax
movl 0x2c(%rsp), %ecx
movl %ecx, 0x54(%rsp)
movsd %xmm0, 0x98(%rsp)
movsd %xmm1, 0x78(%rsp)
movl %eax, 0x2c(%rsp)
jmp 0x1102e
ucomisd 0x98(%rsp), %xmm1
jbe 0x1102e
movl $0x1, %eax
movl %r12d, %ecx
shll %cl, %eax
movl %eax, 0x54(%rsp)
movsd %xmm1, 0x98(%rsp)
incl %r12d
movapd %xmm1, %xmm4
movsd 0xa8(%rsp), %xmm3
subsd %xmm3, %xmm1
movapd %xmm3, %xmm2
subsd %xmm4, %xmm2
movapd %xmm3, %xmm0
cmpltsd %xmm4, %xmm0
andpd %xmm0, %xmm2
andnpd %xmm1, %xmm0
orpd %xmm2, %xmm0
maxsd %xmm3, %xmm4
movsd %xmm4, 0x58(%rsp)
callq 0x2570
addsd 0x8002(%rip), %xmm0     # 0x19078
callq 0x2210
addsd 0x58(%rsp), %xmm0
movsd %xmm0, 0xa8(%rsp)
addl %ebp, %ebx
addl $0x2, %ebp
cmpl 0x60(%rsp), %r12d
movq 0x68(%rsp), %rdx
jne 0x10f75
movsd 0xa8(%rsp), %xmm0
movsd %xmm0, 0x1d0(%rsp)
shlq $0x3, 0xf0(%rsp)
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
movl $0x4, %ecx
movl $0x2, %edi
xorl %r13d, %r13d
xorpd %xmm1, %xmm1
movsd 0x78(%rsp), %xmm0
movl %ecx, 0xdc(%rsp)
ucomisd 0x30(%rsp,%r13,8), %xmm1
setnp %al
sete %cl
andb %al, %cl
testq %r13, %r13
sete %al
orb %cl, %al
movq %rsi, 0x108(%rsp)
movl %edi, 0xb4(%rsp)
je 0x11112
movq 0x90(%rsp), %rax
jmp 0x1137f
movl %edi, %ebx
shrl %ebx
leal (%rsi,%rbx), %eax
movslq %eax, %r15
movl $0x1, %eax
movl %r13d, %ecx
shll %cl, %eax
movl %eax, 0x110(%rsp)
shlq $0x3, %r15
movl $0x4, %ebp
movl $0x2, %r14d
xorl %r12d, %r12d
movq 0x90(%rsp), %rax
movq %r13, 0xe0(%rsp)
movsd 0x30(%rsp,%r12,8), %xmm3
ucomisd %xmm1, %xmm3
jne 0x11162
jnp 0x11369
movl %ebp, 0xe8(%rsp)
cmpl $0x0, (%rdx)
movsd %xmm0, 0x78(%rsp)
movl %r14d, 0xb8(%rsp)
jle 0x11277
shrl %r14d
movsd 0x30(%rsp,%r13,8), %xmm1
movapd %xmm3, %xmm0
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
divsd %xmm0, %xmm3
movapd %xmm1, %xmm0
addsd %xmm1, %xmm0
mulsd %xmm3, %xmm0
movsd %xmm0, 0xc8(%rsp)
mulsd %xmm1, %xmm1
movsd %xmm1, 0xd0(%rsp)
mulsd %xmm3, %xmm3
xorpd %xmm2, %xmm2
movq 0xc0(%rsp), %r13
xorl %ebp, %ebp
movsd %xmm3, 0x80(%rsp)
movq 0x70(%rsp), %rax
movq 0x60(%rax), %rax
testq %rax, %rax
movsd %xmm2, 0x58(%rsp)
je 0x1120e
cmpb $0x1, (%rax,%rbp)
jne 0x1120e
movsd -0x8(%r13,%r14,8), %xmm1
mulsd %xmm3, %xmm1
movsd -0x8(%r13,%rbx,8), %xmm0
mulsd 0xd0(%rsp), %xmm0
jmp 0x1123d
movsd -0x8(%r13,%r14,8), %xmm0
mulsd %xmm3, %xmm0
movsd -0x8(%r13,%rbx,8), %xmm1
mulsd 0xd0(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd (%r13,%r15), %xmm0
mulsd 0xc8(%rsp), %xmm0
addsd %xmm1, %xmm0
callq 0x2210
movsd 0x58(%rsp), %xmm2
addsd %xmm0, %xmm2
incq %rbp
movq 0x68(%rsp), %rax
movslq (%rax), %rax
addq 0xf0(%rsp), %r13
cmpq %rax, %rbp
movsd 0x80(%rsp), %xmm3
jl 0x111d7
jmp 0x1127b
xorpd %xmm2, %xmm2
movsd 0x78(%rsp), %xmm0
ucomisd %xmm0, %xmm2
movl 0xe8(%rsp), %ebp
jbe 0x112c6
movl 0x2c(%rsp), %eax
movl %eax, 0x54(%rsp)
movl 0x110(%rsp), %eax
btsl %r12d, %eax
movsd %xmm0, 0x98(%rsp)
movsd %xmm2, 0x78(%rsp)
movl %eax, 0x2c(%rsp)
movq 0xe0(%rsp), %r13
movl 0xb8(%rsp), %r14d
jmp 0x112f9
ucomisd 0x98(%rsp), %xmm2
movq 0xe0(%rsp), %r13
movl 0xb8(%rsp), %r14d
jbe 0x112f9
movl 0x110(%rsp), %eax
btsl %r12d, %eax
movl %eax, 0x54(%rsp)
movsd %xmm2, 0x98(%rsp)
movsd 0xa8(%rsp), %xmm3
movapd %xmm3, %xmm1
subsd %xmm2, %xmm1
movapd %xmm2, %xmm4
subsd %xmm3, %xmm2
movapd %xmm3, %xmm0
cmpltsd %xmm4, %xmm0
andpd %xmm0, %xmm1
andnpd %xmm2, %xmm0
orpd %xmm1, %xmm0
maxsd %xmm3, %xmm4
movsd %xmm4, 0x58(%rsp)
callq 0x2570
addsd 0x7d3a(%rip), %xmm0     # 0x19078
callq 0x2210
addsd 0x58(%rsp), %xmm0
movsd %xmm0, 0xa8(%rsp)
movq 0x90(%rsp), %rax
movq 0x68(%rsp), %rdx
movsd 0x78(%rsp), %xmm0
xorpd %xmm1, %xmm1
incq %r12
addq $0x8, %r15
addl %ebp, %r14d
addl $0x2, %ebp
cmpq %r13, %r12
jne 0x1114f
incq %r13
movq 0x108(%rsp), %rsi
decl %esi
movl 0xdc(%rsp), %ecx
movl 0xb4(%rsp), %edi
addl %ecx, %edi
addl $0x2, %ecx
cmpq %rax, %r13
jne 0x110d6
movsd 0xa8(%rsp), %xmm1
movsd %xmm1, 0x1d8(%rsp)
cmpl $0x2, 0x60(%rsp)
movsd %xmm0, 0x78(%rsp)
je 0x118d5
movl $0x4, %eax
movl $0x2, 0xfc(%rsp)
xorl %ebx, %ebx
xorpd %xmm1, %xmm1
movsd 0xa0(%rsp), %xmm0
movl %eax, 0x12c(%rsp)
ucomisd 0x30(%rsp,%rbx,8), %xmm1
setnp %al
sete %cl
andb %al, %cl
testq %rbx, %rbx
sete %al
orb %cl, %al
jne 0x11896
movl 0xfc(%rsp), %eax
shrl %eax
leaq -0x8(,%rax,8), %rcx
movslq %ebx, %rax
shlq $0x3, %rax
movq %rcx, 0x1c0(%rsp)
movq %rcx, %rsi
subq %rax, %rsi
movl $0x1, %eax
movl %ebx, %ecx
shll %cl, %eax
movl %eax, 0x130(%rsp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x120(%rsp)
movl $0x4, %eax
movl $0x2, 0x100(%rsp)
movq %rsi, 0x1b8(%rsp)
movq %rsi, 0x138(%rsp)
xorl %r14d, %r14d
movq %rbx, 0x140(%rsp)
movl %eax, 0x134(%rsp)
ucomisd 0x30(%rsp,%r14,8), %xmm1
setnp %al
sete %cl
andb %al, %cl
testq %r14, %r14
sete %al
orb %cl, %al
jne 0x1185e
movl 0x100(%rsp), %eax
shrl %eax
movq 0x120(%rsp), %rcx
addl %eax, %ecx
movslq %ecx, %r13
shlq $0x3, %r13
leaq -0x8(,%rax,8), %rax
movq %rax, 0x1c8(%rsp)
movl 0x130(%rsp), %eax
btsl %r14d, %eax
movl %eax, 0x104(%rsp)
movl $0x4, %eax
movl $0x2, %ebp
movq 0x1b8(%rsp), %r12
xorl %r15d, %r15d
movq %r14, 0x148(%rsp)
movsd 0x30(%rsp,%r15,8), %xmm3
ucomisd %xmm1, %xmm3
jne 0x1150b
jnp 0x11845
movq %r15, 0x150(%rsp)
movl %eax, 0xdc(%rsp)
cmpl $0x0, (%rdx)
movq %r13, 0x108(%rsp)
movl %ebp, 0xb4(%rsp)
movq %r12, 0x158(%rsp)
jle 0x1171a
movl %ebp, %ecx
shrl %ecx
decl %ecx
shlq $0x3, %rcx
movsd 0x30(%rsp,%rbx,8), %xmm1
movsd 0x30(%rsp,%r14,8), %xmm2
movapd %xmm1, %xmm0
addsd %xmm2, %xmm0
addsd %xmm3, %xmm0
divsd %xmm0, %xmm1
divsd %xmm0, %xmm2
divsd %xmm0, %xmm3
movapd %xmm1, %xmm0
addsd %xmm1, %xmm0
movapd %xmm2, %xmm4
mulsd %xmm0, %xmm4
movsd %xmm4, 0xe0(%rsp)
mulsd %xmm3, %xmm0
movsd %xmm0, 0xb8(%rsp)
movapd %xmm2, %xmm0
addsd %xmm2, %xmm0
mulsd %xmm3, %xmm0
movsd %xmm0, 0x110(%rsp)
mulsd %xmm1, %xmm1
movsd %xmm1, 0xc8(%rsp)
mulsd %xmm2, %xmm2
movsd %xmm2, 0xe8(%rsp)
mulsd %xmm3, %xmm3
xorpd %xmm2, %xmm2
movq 0x1c8(%rsp), %r14
movq 0x1c0(%rsp), %rbp
movq 0x138(%rsp), %rdx
movq %r12, %rsi
movq %r13, %r15
xorl %r10d, %r10d
movsd %xmm3, 0xd0(%rsp)
movsd %xmm2, 0x58(%rsp)
movq 0x70(%rsp), %rax
movq 0x60(%rax), %rax
testq %rax, %rax
movq %r10, 0x80(%rsp)
je 0x1164b
cmpb $0x1, (%rax,%r10)
jne 0x1164b
movq 0xc0(%rsp), %rax
movsd (%rax,%r14), %xmm0
mulsd 0xe8(%rsp), %xmm0
movsd (%rax,%rbp), %xmm1
mulsd 0xc8(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd (%rax,%rcx), %xmm0
mulsd %xmm3, %xmm0
addsd %xmm1, %xmm0
jmp 0x116b8
movq 0xc0(%rsp), %rax
movsd (%rax,%r14), %xmm0
mulsd 0xe8(%rsp), %xmm0
movsd (%rax,%rbp), %xmm1
mulsd 0xc8(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd (%rax,%rcx), %xmm0
mulsd %xmm3, %xmm0
addsd %xmm1, %xmm0
movsd (%rax,%rdx), %xmm1
mulsd 0xe0(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd (%rax,%rsi), %xmm2
mulsd 0xb8(%rsp), %xmm2
addsd %xmm1, %xmm2
movsd (%rax,%r15), %xmm0
mulsd 0x110(%rsp), %xmm0
addsd %xmm2, %xmm0
movq %rcx, %rbx
movq %rdx, %r12
movq %rsi, %r13
callq 0x2210
movsd 0x58(%rsp), %xmm2
addsd %xmm0, %xmm2
movq 0x80(%rsp), %r10
incq %r10
movq 0x68(%rsp), %rax
movslq (%rax), %rax
movq 0xf0(%rsp), %rcx
addq %rcx, %r15
addq %rcx, %r13
addq %rcx, %r12
addq %rcx, %rbp
addq %rcx, %r14
addq %rcx, %rbx
cmpq %rax, %r10
movsd 0xd0(%rsp), %xmm3
movq %rbx, %rcx
movq %r12, %rdx
movq %r13, %rsi
jl 0x115f0
jmp 0x1171e
xorpd %xmm2, %xmm2
movsd 0x78(%rsp), %xmm0
ucomisd %xmm0, %xmm2
jbe 0x11781
movl 0x2c(%rsp), %eax
movl %eax, 0x54(%rsp)
movl 0x104(%rsp), %eax
movq 0x150(%rsp), %r15
btsl %r15d, %eax
movsd %xmm0, 0x98(%rsp)
movsd %xmm2, 0x78(%rsp)
movl %eax, 0x2c(%rsp)
movq 0x140(%rsp), %rbx
movq 0x148(%rsp), %r14
movq 0x108(%rsp), %r13
movl 0xb4(%rsp), %ebp
movq 0x158(%rsp), %r12
jmp 0x117d3
ucomisd 0x98(%rsp), %xmm2
movq 0x140(%rsp), %rbx
movq 0x148(%rsp), %r14
movq 0x108(%rsp), %r13
movl 0xb4(%rsp), %ebp
movq 0x158(%rsp), %r12
movq 0x150(%rsp), %r15
jbe 0x117d3
movl 0x104(%rsp), %eax
btsl %r15d, %eax
movl %eax, 0x54(%rsp)
movsd %xmm2, 0x98(%rsp)
movsd 0xa8(%rsp), %xmm3
movapd %xmm3, %xmm1
subsd %xmm2, %xmm1
movapd %xmm2, %xmm4
subsd %xmm3, %xmm2
movapd %xmm3, %xmm0
cmpltsd %xmm4, %xmm0
andpd %xmm0, %xmm1
andnpd %xmm2, %xmm0
orpd %xmm1, %xmm0
maxsd %xmm3, %xmm4
movsd %xmm4, 0x58(%rsp)
callq 0x2570
addsd 0x7860(%rip), %xmm0     # 0x19078
callq 0x2210
addsd 0x58(%rsp), %xmm0
movsd %xmm0, 0xa8(%rsp)
movsd 0xa0(%rsp), %xmm0
movq 0x68(%rsp), %rdx
xorpd %xmm1, %xmm1
movl 0xdc(%rsp), %eax
incq %r15
addq $0x8, %r13
addq $0x8, %r12
addl %eax, %ebp
addl $0x2, %eax
cmpq %r14, %r15
jne 0x114f8
incq %r14
movq 0x120(%rsp), %rax
decl %eax
movq %rax, 0x120(%rsp)
movl 0x134(%rsp), %eax
addl %eax, 0x100(%rsp)
addl $0x2, %eax
addq $0x8, 0x138(%rsp)
cmpq %rbx, %r14
jne 0x1147b
incq %rbx
movl 0x12c(%rsp), %eax
addl %eax, 0xfc(%rsp)
addl $0x2, %eax
cmpq 0x90(%rsp), %rbx
jne 0x113ea
movsd 0xa8(%rsp), %xmm1
movsd %xmm1, 0x1e0(%rsp)
cmpl $0x0, 0x60(%rsp)
jle 0x12215
movl 0x2c(%rsp), %ebx
movl 0x54(%rsp), %eax
movl %eax, 0x2c(%rsp)
movq 0x60(%rsp), %rdx
leal 0x3(%rdx), %eax
movl %eax, %ecx
andl $-0x4, %ecx
decl %edx
movd %edx, %xmm0
pshufd $0x0, %xmm0, %xmm0      # xmm0 = xmm0[0,0,0,0]
movd %ebx, %xmm1
pshufd $0x0, %xmm1, %xmm3      # xmm3 = xmm1[0,0,0,0]
pxor %xmm6, %xmm6
movdqa 0x9bf2(%rip), %xmm7     # 0x1b500
movaps 0x997b(%rip), %xmm1     # 0x1b290
movdqa 0x9bf3(%rip), %xmm2     # 0x1b510
movdqa %xmm6, %xmm5
movdqa %xmm7, %xmm4
pshuflw $0xfe, %xmm7, %xmm6     # xmm6 = xmm7[2,3,3,3,4,5,6,7]
movdqa %xmm3, %xmm8
psrld %xmm6, %xmm8
pshuflw $0x54, %xmm7, %xmm9     # xmm9 = xmm7[0,1,1,1,4,5,6,7]
movdqa %xmm3, %xmm6
psrld %xmm9, %xmm6
punpcklqdq %xmm8, %xmm6    # xmm6 = xmm6[0],xmm8[0]
pshufd $0xee, %xmm7, %xmm8     # xmm8 = xmm7[2,3,2,3]
pshuflw $0xfe, %xmm8, %xmm9     # xmm9 = xmm8[2,3,3,3,4,5,6,7]
movdqa %xmm3, %xmm10
psrld %xmm9, %xmm10
pshuflw $0x54, %xmm8, %xmm8     # xmm8 = xmm8[0,1,1,1,4,5,6,7]
movdqa %xmm3, %xmm9
psrld %xmm8, %xmm9
punpckhqdq %xmm10, %xmm9   # xmm9 = xmm9[1],xmm10[1]
shufps $0xcc, %xmm9, %xmm6     # xmm6 = xmm6[0,3],xmm9[0,3]
andps %xmm1, %xmm6
paddd %xmm5, %xmm6
paddd %xmm2, %xmm7
addl $-0x4, %ecx
jne 0x1191d
movdqa 0x76a0(%rip), %xmm3     # 0x19030
pxor %xmm3, %xmm0
pxor %xmm3, %xmm4
pcmpgtd %xmm0, %xmm4
pand %xmm4, %xmm5
pandn %xmm6, %xmm4
por %xmm5, %xmm4
pshufd $0xee, %xmm4, %xmm5     # xmm5 = xmm4[2,3,2,3]
paddd %xmm4, %xmm5
pshufd $0x55, %xmm5, %xmm4     # xmm4 = xmm5[1,1,1,1]
paddd %xmm5, %xmm4
movd %xmm4, %ebp
cmpl $0x0, 0x60(%rsp)
jle 0x1221a
andl $-0x4, %eax
movd 0x2c(%rsp), %xmm4
pshufd $0x0, %xmm4, %xmm7      # xmm7 = xmm4[0,0,0,0]
pxor %xmm6, %xmm6
movdqa 0x9b1c(%rip), %xmm8     # 0x1b500
movdqa %xmm6, %xmm5
movdqa %xmm8, %xmm4
pshuflw $0xfe, %xmm8, %xmm6     # xmm6 = xmm8[2,3,3,3,4,5,6,7]
movdqa %xmm7, %xmm9
psrld %xmm6, %xmm9
pshuflw $0x54, %xmm8, %xmm10    # xmm10 = xmm8[0,1,1,1,4,5,6,7]
movdqa %xmm7, %xmm6
psrld %xmm10, %xmm6
punpcklqdq %xmm9, %xmm6    # xmm6 = xmm6[0],xmm9[0]
pshufd $0xee, %xmm8, %xmm9     # xmm9 = xmm8[2,3,2,3]
pshuflw $0xfe, %xmm9, %xmm10    # xmm10 = xmm9[2,3,3,3,4,5,6,7]
movdqa %xmm7, %xmm11
psrld %xmm10, %xmm11
pshuflw $0x54, %xmm9, %xmm9     # xmm9 = xmm9[0,1,1,1,4,5,6,7]
movdqa %xmm7, %xmm10
psrld %xmm9, %xmm10
punpckhqdq %xmm11, %xmm10  # xmm10 = xmm10[1],xmm11[1]
shufps $0xcc, %xmm10, %xmm6    # xmm6 = xmm6[0,3],xmm10[0,3]
andps %xmm1, %xmm6
paddd %xmm5, %xmm6
paddd %xmm2, %xmm8
addl $-0x4, %eax
jne 0x119e4
pxor %xmm3, %xmm4
pcmpgtd %xmm0, %xmm4
pand %xmm4, %xmm5
pandn %xmm6, %xmm4
por %xmm5, %xmm4
pshufd $0xee, %xmm4, %xmm0     # xmm0 = xmm4[2,3,2,3]
paddd %xmm4, %xmm0
pshufd $0x55, %xmm0, %xmm1     # xmm1 = xmm0[1,1,1,1]
paddd %xmm0, %xmm1
movd %xmm1, %r14d
jmp 0x1221d
movl $0xffffffff, 0x8c(%rsp) # imm = 0xFFFFFFFF
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
cmpl $0x1, 0x60(%rsp)
jne 0x1304a
movl $0x1, %ebp
testl %edx, %edx
jne 0x1304a
movq 0x70(%rsp), %rax
movslq 0xc(%rax), %rdx
movq %rdx, 0x38(%rsp)
movslq 0x8(%rax), %rcx
leaq -0x1(%rcx), %r14
movq 0x18(%rax), %rax
movq %rax, 0x40(%rsp)
addq $0x3, %rcx
cmpq %rdx, %rcx
jb 0x11b18
movq %rcx, %rdx
shrq %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x2, %rcx
orq %rdx, %rcx
movq %rcx, %rdx
shrq $0x4, %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x8, %rcx
orq %rdx, %rcx
movq %rcx, %rsi
shrq $0x10, %rsi
orq %rcx, %rsi
incq %rsi
movq %rsi, 0x38(%rsp)
movq %rax, %rdi
callq 0x23d0
movq %rax, 0x40(%rsp)
movb $0x54, 0x2(%rax,%r14)
movw $0x473a, (%rax,%r14)    # imm = 0x473A
leaq 0x3(%r14), %rcx
movq %rcx, 0x30(%rsp)
movb $0x0, 0x3(%rax,%r14)
movq 0x30(%rsp), %r14
leaq 0x1(%r14), %r15
cmpq 0x38(%rsp), %r15
jae 0x11b55
movq 0x40(%rsp), %rax
jmp 0x11b9d
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
jmp 0x1304a
movq %r15, %rax
shrq %rax
orq %r15, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %rsi
shrq $0x10, %rsi
orq %rcx, %rsi
incq %rsi
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x23d0
movq %rax, 0x40(%rsp)
movq %r15, 0x30(%rsp)
xorl %ebp, %ebp
movb %bpl, (%rax,%r14)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
movb %bpl, (%rcx,%rax)
pshufd $0xe8, 0x30(%rsp), %xmm0 # xmm0 = mem[0,2,2,3]
movq 0x70(%rsp), %r15
movq %xmm0, 0x8(%r15)
movq 0x40(%rsp), %rax
movq %rax, 0x18(%r15)
movq %r15, %rdi
callq 0xb8ba
cmpl $0x0, 0x5c(%r15)
movl 0x8c(%rsp), %edi
jle 0x11c49
movl %edi, %eax
xorl %ecx, %ecx
shlq $0x4, %rax
shlq $0x4, %rbx
xorl %ebp, %ebp
movq 0x50(%r15), %rdx
testl %edi, %edi
js 0x11c09
movq 0x8(%rdx,%rax), %rsi
cmpw $0x0, (%rsi,%rcx,2)
je 0x11c2f
movq 0x8(%rdx,%rbx), %rdx
movb $0x0, (%rdx,%rcx)
movq 0x70(%rsp), %rdx
movq 0x60(%rdx), %rdx
testq %rdx, %rdx
je 0x11c26
movzbl (%rdx,%rcx), %edx
jmp 0x11c2b
movl $0x2, %edx
addl %edx, %ebp
jmp 0x11c38
movq 0x8(%rdx,%rbx), %rdx
movb $-0x80, (%rdx,%rcx)
incq %rcx
movq 0x70(%rsp), %r15
movslq 0x5c(%r15), %rdx
cmpq %rdx, %rcx
jl 0x11bf5
movq %r15, %rdi
movl $0x1, %esi
callq 0xe8fb
movl $0x4479c000, 0x10(%r15) # imm = 0x4479C000
movq $0x2, 0x38(%rsp)
movl $0x2, %edi
callq 0x2360
movq %rax, %r14
movq %rax, 0x40(%rsp)
movw $0x0, (%rax)
movq 0x20(%r15), %r12
movq %r12, %rdi
callq 0x2180
movslq %eax, %r15
leaq 0x2(%r15), %rbx
cmpq $-0x2, %r15
jb 0x11cb6
movq %r14, %rdi
incq %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x22e0
movb $0x0, 0x1(%r14,%r15)
incq %r15
jmp 0x11d37
movq %rbx, %rax
shrq %rax
orq %rbx, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %r13
shrq $0x10, %r13
orq %rcx, %r13
incq %r13
movq %r13, 0x38(%rsp)
movq %r14, %rdi
movq %r13, %rsi
callq 0x23d0
movq %rax, %r14
movq %rax, 0x40(%rsp)
leaq 0x1(%rax), %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x22e0
movb $0x0, 0x1(%r14,%r15)
incq %r15
cmpq %r13, %rbx
jb 0x11d37
movq %r13, 0x38(%rsp)
movq %r14, %rdi
movq %r13, %rsi
callq 0x23d0
movq %rax, %r14
movq %rax, 0x40(%rsp)
movq %rbx, 0x30(%rsp)
xorl %eax, %eax
movb %al, (%r14,%r15)
movq 0x40(%rsp), %rcx
movb %al, (%rcx,%rbx)
movq 0x70(%rsp), %rax
movq 0x28(%rax), %r14
movq %r14, %rdi
callq 0x2180
movq 0x30(%rsp), %r12
movslq %eax, %r15
leaq (%r15,%r12), %rbx
leaq (%r15,%r12), %rax
incq %rax
cmpq 0x38(%rsp), %rax
jae 0x11d7c
movq 0x40(%rsp), %r13
jmp 0x11dc7
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x23d0
movq %rax, %r13
movq %rax, 0x40(%rsp)
addq %r13, %r12
movq %r12, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x22e0
movq %rbx, 0x30(%rsp)
movb $0x0, (%r13,%rbx)
movq 0x30(%rsp), %rbx
leaq 0x1(%rbx), %r14
cmpq 0x38(%rsp), %r14
jae 0x11dfa
movq 0x40(%rsp), %rax
jmp 0x11e42
movq %r14, %rax
shrq %rax
orq %r14, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %rsi
shrq $0x10, %rsi
orq %rcx, %rsi
incq %rsi
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x23d0
movq %rax, 0x40(%rsp)
movq %r14, 0x30(%rsp)
xorl %ecx, %ecx
movb %cl, (%rax,%rbx)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rdx
movb %cl, (%rdx,%rax)
movq 0x30(%rsp), %rbx
leaq 0x1(%rbx), %r14
cmpq 0x38(%rsp), %r14
jae 0x11e70
movq 0x40(%rsp), %rax
jmp 0x11eb8
movq %r14, %rax
shrq %rax
orq %r14, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %rsi
shrq $0x10, %rsi
orq %rcx, %rsi
incq %rsi
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x23d0
movq %rax, 0x40(%rsp)
leaq 0x30(%rsp), %r12
movq %r14, (%r12)
xorl %ecx, %ecx
movb %cl, (%rax,%rbx)
movq (%r12), %rax
movq 0x10(%r12), %rdx
movb %cl, (%rdx,%rax)
leaq 0x9829(%rip), %rsi      # 0x1b702
movq %r12, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x7260
movq 0x70(%rsp), %rbx
movq 0x38(%rbx), %r14
movq %r14, %rdi
callq 0x2180
movq (%r12), %rdi
movslq %eax, %r15
leaq (%rdi,%r15), %rax
incq %rax
cmpq 0x8(%r12), %rax
jae 0x11f12
movq 0x40(%rsp), %rax
jmp 0x11f5f
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x23d0
movq %rax, 0x40(%rsp)
movq 0x30(%rsp), %rdi
addq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x22e0
addq 0x30(%rsp), %r15
movq %r15, 0x30(%rsp)
movq 0x40(%rsp), %rax
movb $0x0, (%rax,%r15)
leaq 0x160(%rsp), %rsi
movq %rbx, %rdi
callq 0x2e4c
testl %eax, %eax
js 0x12011
cmpl $0x0, 0x188(%rsp)
je 0x11fd6
movq 0x160(%rsp), %xmm0
movsd 0x168(%rsp), %xmm1
movq 0x170(%rsp), %xmm2
movq 0x178(%rsp), %xmm3
leaq 0x8aad(%rip), %rsi      # 0x1aa77
leaq 0x30(%rsp), %rdi
movb $0x4, %al
callq 0x7260
movl 0x180(%rsp), %eax
movl 0x18c(%rsp), %edx
movl 0x190(%rsp), %ecx
movl 0x194(%rsp), %r8d
movl 0x198(%rsp), %r9d
movl %eax, (%rsp)
leaq 0x8a35(%rip), %rsi      # 0x1aa3a
leaq 0x30(%rsp), %rdi
xorl %eax, %eax
callq 0x7260
movq 0x30(%rsp), %rcx
leaq 0x1(%rcx), %rdx
cmpq 0x38(%rsp), %rdx
jae 0x12028
movq 0x40(%rsp), %rax
jmp 0x12079
movq %rdx, %rax
shrq %rax
orq %rdx, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %rsi
shrq $0x10, %rsi
orq %rcx, %rsi
incq %rsi
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x23d0
movq %rax, 0x40(%rsp)
movq 0x30(%rsp), %rcx
leaq 0x1(%rcx), %rdx
leaq 0x30(%rsp), %r12
movq %rdx, (%r12)
xorl %edx, %edx
movb %dl, (%rax,%rcx)
movq (%r12), %rax
movq 0x10(%r12), %rcx
movb %dl, (%rcx,%rax)
leaq 0x715e(%rip), %rsi      # 0x191f8
movq %r12, %rdi
callq 0xcf62
leaq 0x89e7(%rip), %rsi      # 0x1aa90
movq %r12, %rdi
callq 0xcf62
movq 0x40(%rbx), %r14
movq %r14, %rdi
callq 0x2180
movq (%r12), %rdi
movslq %eax, %r15
leaq (%rdi,%r15), %rax
incq %rax
cmpq 0x8(%r12), %rax
jae 0x120d9
movq 0x40(%rsp), %rax
jmp 0x12126
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x23d0
movq %rax, 0x40(%rsp)
movq 0x30(%rsp), %rdi
addq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x22e0
addq 0x30(%rsp), %r15
movq %r15, 0x30(%rsp)
movq 0x40(%rsp), %rax
movb $0x0, (%rax,%r15)
movq 0x30(%rsp), %rcx
leaq 0x1(%rcx), %rdx
cmpq 0x38(%rsp), %rdx
jae 0x1215f
movq 0x40(%rsp), %rax
jmp 0x121b0
movq %rdx, %rax
shrq %rax
orq %rdx, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %rsi
shrq $0x10, %rsi
orq %rcx, %rsi
incq %rsi
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rdi
callq 0x23d0
movq %rax, 0x40(%rsp)
movq 0x30(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x30(%rsp)
xorl %edx, %edx
movb %dl, (%rax,%rcx)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
movb %dl, (%rcx,%rax)
movq 0x18(%rbx), %rdi
callq 0x2060
pshufd $0xe8, 0x30(%rsp), %xmm0 # xmm0 = mem[0,2,2,3]
movq %xmm0, 0x8(%rbx)
movq 0x40(%rsp), %rax
movq %rax, 0x18(%rbx)
movq %rbx, %rdi
callq 0xb8ba
movl $0x1, %ebp
jmp 0x1304a
movabsq $-0x3e20000000000000, %rax # imm = 0xC1E0000000000000
movq %rax, 0x1d0(%rsp)
movl $0x0, 0x2c(%rsp)
xorpd %xmm0, %xmm0
xorl %r14d, %r14d
jmp 0x12261
xorl %r14d, %r14d
cmpl %ebp, %r14d
movsd 0x78(%rsp), %xmm1
jge 0x12251
subsd 0x98(%rsp), %xmm1
addsd %xmm1, %xmm1
movsd 0x6e3b(%rip), %xmm0     # 0x19078
callq 0x163af
movsd 0x1b0(%rsp), %xmm1
ucomisd %xmm0, %xmm1
ja 0x12258
movl %ebx, 0x2c(%rsp)
movl %ebp, %r14d
movsd 0xa0(%rsp), %xmm0
movslq %r14d, %rax
movsd 0x1c8(%rsp,%rax,8), %xmm1
movsd %xmm1, 0xe0(%rsp)
movq 0x70(%rsp), %rbx
movslq 0x48(%rbx), %rax
movq %rax, 0x58(%rsp)
movslq 0xc(%rbx), %rsi
movq %rsi, 0x18(%rsp)
movslq 0x8(%rbx), %rdx
leaq -0x1(%rdx), %rcx
movq %rcx, 0x10(%rsp)
movq 0x18(%rbx), %rax
movq %rax, 0x20(%rsp)
addq $0x6, %rdx
cmpq %rsi, %rdx
movsd %xmm0, 0xa0(%rsp)
jb 0x12300
movq %rdx, %rcx
shrq %rcx
orq %rdx, %rcx
movq %rcx, %rdx
shrq $0x2, %rdx
orq %rcx, %rdx
movq %rdx, %rcx
shrq $0x4, %rcx
orq %rdx, %rcx
movq %rcx, %rdx
shrq $0x8, %rdx
orq %rcx, %rdx
movq %rdx, %rsi
shrq $0x10, %rsi
orq %rdx, %rsi
incq %rsi
movq %rsi, 0x18(%rsp)
movq %rax, %rdi
callq 0x23d0
movq %rax, 0x20(%rsp)
movq 0x10(%rsp), %rcx
movl 0x8c(%rsp), %r14d
movw $0x5147, 0x4(%rax,%rcx) # imm = 0x5147
movl $0x3a54473a, (%rax,%rcx) # imm = 0x3A54473A
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
leaq 0x6(%rax), %rdx
movq %rdx, 0x10(%rsp)
movb $0x0, 0x6(%rcx,%rax)
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rdx
cmpq 0x18(%rsp), %rdx
jae 0x12345
movq 0x20(%rsp), %rax
jmp 0x12396
movq %rdx, %rax
shrq %rax
orq %rdx, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %rsi
shrq $0x10, %rsi
orq %rcx, %rsi
incq %rsi
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rdi
callq 0x23d0
movq %rax, 0x20(%rsp)
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%rsp)
xorl %edx, %edx
movb %dl, (%rax,%rcx)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movl $0x0, 0x80(%rsp)
movb %dl, (%rcx,%rax)
pshufd $0xe8, 0x10(%rsp), %xmm0 # xmm0 = mem[0,2,2,3]
movq %xmm0, 0x8(%rbx)
movq 0x20(%rsp), %rax
movq %rax, 0x18(%rbx)
movq %rbx, %rdi
callq 0xb8ba
pxor %xmm0, %xmm0
movdqa %xmm0, 0x1a0(%rsp)
cmpl $0x0, 0x5c(%rbx)
movl $0x0, 0xb8(%rsp)
movl $0x0, 0xc8(%rsp)
movl $0x0, 0xd0(%rsp)
movl $0x0, 0x68(%rsp)
jle 0x12716
movl %r14d, %ecx
movl 0xf8(%rsp), %edx
movq 0x118(%rsp), %rax
leaq (,%rax,8), %r13
xorl %r12d, %r12d
shlq $0x4, %rcx
movq %rcx, 0xf0(%rsp)
shlq $0x4, %rdx
movq %rdx, 0xe8(%rsp)
movq 0xc0(%rsp), %r15
movl $0x0, 0x68(%rsp)
movl $0x0, 0xd0(%rsp)
movl $0x0, 0xc8(%rsp)
movl $0x0, 0xb8(%rsp)
movl $0x0, 0x80(%rsp)
movq 0x60(%rbx), %rax
xorl %ebp, %ebp
testq %rax, %rax
je 0x1249b
cmpb $0x2, (%rax,%r12)
setne %al
jmp 0x1249d
xorl %eax, %eax
cmpl $0x0, 0x60(%rsp)
jle 0x125d7
movq %r12, %rcx
imulq 0x118(%rsp), %rcx
movq 0xc0(%rsp), %rdx
leaq (%rdx,%rcx,8), %rcx
addq $-0x8, %rcx
pxor %xmm0, %xmm0
xorl %edx, %edx
xorl %edi, %edi
xorpd %xmm1, %xmm1
xorl %ebp, %ebp
leaq 0x1(%rdi), %rsi
movl 0x2c(%rsp), %r8d
btl %edi, %r8d
jae 0x1251a
leal 0x2(%rdi), %r8d
imull %esi, %r8d
shrl %r8d
movsd 0x30(%rsp,%rdi,8), %xmm2
movsd (%rcx,%r8,8), %xmm3
mulsd %xmm2, %xmm3
mulsd %xmm2, %xmm3
movl %edx, %r8d
orl %edi, %r8d
ucomisd %xmm1, %xmm3
cmoval %r8d, %ebp
addsd %xmm3, %xmm0
maxsd %xmm1, %xmm3
movapd %xmm3, %xmm1
addl $0x8, %edx
movq %rsi, %rdi
cmpq %rsi, 0x90(%rsp)
jne 0x124d2
cmpl $0x0, 0x60(%rsp)
setle %cl
orb %cl, %al
jne 0x125df
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl $0x4, %ecx
movl $0x2, %edx
xorl %esi, %esi
movl 0x2c(%rsp), %edi
btl %esi, %edi
setae %dil
testq %rsi, %rsi
sete %r8b
orb %dil, %r8b
jne 0x125bd
movl %edx, %edi
shrl %edi
addl %eax, %edi
movslq %edi, %rdi
leaq (%r15,%rdi,8), %rdi
xorl %r8d, %r8d
xorl %r9d, %r9d
movl 0x2c(%rsp), %r10d
btl %r9d, %r10d
jae 0x125b1
movsd 0x30(%rsp,%rsi,8), %xmm2
addsd %xmm2, %xmm2
mulsd 0x30(%rsp,%r9,8), %xmm2
mulsd (%rdi,%r9,8), %xmm2
movl %r8d, %r10d
orl %esi, %r10d
ucomisd %xmm1, %xmm2
cmoval %r10d, %ebp
addsd %xmm2, %xmm0
maxsd %xmm1, %xmm2
movapd %xmm2, %xmm1
incq %r9
addl $0x8, %r8d
cmpq %r9, %rsi
jne 0x12575
incq %rsi
decl %eax
addl %ecx, %edx
addl $0x2, %ecx
cmpq 0x90(%rsp), %rsi
jne 0x1254b
jmp 0x125df
xorpd %xmm1, %xmm1
pxor %xmm0, %xmm0
divsd %xmm0, %xmm1
movsd 0x6a8d(%rip), %xmm0     # 0x19078
subsd %xmm1, %xmm0
callq 0x2210
divsd 0x8ec4(%rip), %xmm0     # 0x1b4c0
movq 0x50(%rbx), %rax
testl %r14d, %r14d
js 0x1261e
movq 0xf0(%rsp), %rcx
movq 0x8(%rax,%rcx), %rcx
cmpw $0x0, (%rcx,%r12,2)
je 0x126b0
movsd 0x8ea2(%rip), %xmm1     # 0x1b4c8
minsd %xmm0, %xmm1
movq 0x58(%rsp), %rcx
shlq $0x4, %rcx
movq 0x8(%rax,%rcx), %rax
movb %bpl, (%rax,%r12)
cvttsd2si %xmm1, %eax
movq 0x50(%rbx), %rdx
movq 0x18(%rdx,%rcx), %rcx
movb %al, (%rcx,%r12)
testl %ebp, %ebp
je 0x12687
cmpl $0x0, 0xf8(%rsp)
js 0x12687
movq 0x50(%rbx), %rax
movq 0xe8(%rsp), %rcx
movq 0x8(%rax,%rcx), %rax
movzwl (%rax,%r12,2), %eax
movl 0x68(%rsp), %edx
cmpl %eax, %edx
movl %eax, %ecx
cmovgl %edx, %ecx
testl %eax, %eax
cmovnel %ecx, %edx
movl %edx, 0x68(%rsp)
jmp 0x1268b
testl %ebp, %ebp
je 0x126d3
testb $0x38, %bpl
setne %al
movl %ebp, %ecx
andl $0x7, %ecx
setne %dl
testb %dl, %al
jne 0x126a7
incl 0xd0(%rsp)
jmp 0x126dc
incl 0xc8(%rsp)
jmp 0x126dc
movq 0x58(%rsp), %rcx
shlq $0x4, %rcx
movq 0x8(%rax,%rcx), %rax
movb $-0x80, (%rax,%r12)
movq 0x50(%rbx), %rax
movq 0x18(%rax,%rcx), %rax
movb $0x0, (%rax,%r12)
jmp 0x12703
incl 0xb8(%rsp)
xorl %ecx, %ecx
shrl $0x3, %ebp
andl $0x7, %ebp
movl $0x1, %eax
shll %cl, %eax
btsl %ebp, %eax
orl %eax, 0x80(%rsp)
incl 0x1a0(%rsp,%rbp,4)
movl %ecx, %eax
incl 0x1a0(%rsp,%rax,4)
incq %r12
movslq 0x5c(%rbx), %rax
addq %r13, %r15
cmpq %rax, %r12
jl 0x12486
movq 0xc0(%rsp), %rdi
callq 0x2060
movq %rbx, %rdi
movl 0x2c(%rsp), %esi
callq 0xe8fb
movsd 0xa0(%rsp), %xmm0
subsd 0xe0(%rsp), %xmm0
movl 0x80(%rsp), %r13d
cmpl $0x1, %r13d
jg 0x12769
callq 0x2570
movsd 0x691c(%rip), %xmm1     # 0x19078
subsd %xmm0, %xmm1
movapd %xmm1, %xmm0
callq 0x2210
mulsd 0x693f(%rip), %xmm0     # 0x190b0
cvtsd2ss %xmm0, %xmm0
movss 0x6a77(%rip), %xmm1     # 0x191f4
minss %xmm0, %xmm1
movss %xmm1, 0x10(%rbx)
movq $0x2, 0x18(%rsp)
movl $0x2, %edi
callq 0x2360
movq %rax, %r12
movq %rax, 0x20(%rsp)
movq $0x1, 0x10(%rsp)
movw $0x0, (%rax)
movq 0x20(%rbx), %rbp
movq %rbp, %rdi
callq 0x2180
movslq %eax, %r14
cmpq $-0x3, %r14
ja 0x12811
leaq 0x2(%r14), %rax
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x18(%rsp)
movq %r12, %rdi
callq 0x23d0
movq %rax, %r12
movq %rax, 0x20(%rsp)
incq %r12
movq %r12, %rdi
movq %rbp, %rsi
movq %r14, %rdx
callq 0x22e0
addq 0x10(%rsp), %r14
movq %r14, 0x10(%rsp)
movq 0x20(%rsp), %rax
movb $0x0, (%rax,%r14)
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rdx
cmpq 0x18(%rsp), %rdx
jae 0x1284d
movq 0x20(%rsp), %rax
jmp 0x1289e
movq %rdx, %rax
shrq %rax
orq %rdx, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %rsi
shrq $0x10, %rsi
orq %rcx, %rsi
incq %rsi
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rdi
callq 0x23d0
movq %rax, 0x20(%rsp)
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%rsp)
xorl %edx, %edx
movb %dl, (%rax,%rcx)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movb %dl, (%rcx,%rax)
movq 0x28(%rbx), %r14
movq %r14, %rdi
callq 0x2180
movq 0x10(%rsp), %rdi
movslq %eax, %rbp
leaq (%rdi,%rbp), %rax
incq %rax
cmpq 0x18(%rsp), %rax
jae 0x128de
movq 0x20(%rsp), %rax
jmp 0x1292b
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rdi
callq 0x23d0
movq %rax, 0x20(%rsp)
movq 0x10(%rsp), %rdi
addq %rax, %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0x22e0
addq 0x10(%rsp), %rbp
movq %rbp, 0x10(%rsp)
movq 0x20(%rsp), %rax
movb $0x0, (%rax,%rbp)
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rdx
cmpq 0x18(%rsp), %rdx
jae 0x12963
movq 0x20(%rsp), %rax
jmp 0x129b4
movq %rdx, %rax
shrq %rax
orq %rdx, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %rsi
shrq $0x10, %rsi
orq %rcx, %rsi
incq %rsi
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rdi
callq 0x23d0
movq %rax, 0x20(%rsp)
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%rsp)
xorl %edx, %edx
movb %dl, (%rax,%rcx)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movb %dl, (%rcx,%rax)
movq 0x10(%rsp), %rdx
leaq 0x1(%rdx), %rcx
cmpq 0x18(%rsp), %rcx
jae 0x129e2
movq 0x20(%rsp), %rax
jmp 0x12a33
movq %rcx, %rax
shrq %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %rsi
shrq $0x10, %rsi
orq %rcx, %rsi
incq %rsi
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rdi
callq 0x23d0
movq %rax, 0x20(%rsp)
movq 0x10(%rsp), %rdx
leaq 0x1(%rdx), %rcx
xorl %ebx, %ebx
movq %rcx, 0x10(%rsp)
movb %bl, (%rax,%rdx)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movb %bl, (%rcx,%rax)
cmpl $0x0, 0x60(%rsp)
jle 0x12ab4
xorl %eax, %eax
xorl %edx, %edx
movq 0x90(%rsp), %rdi
movl 0x1a0(%rsp,%rax,4), %ecx
addl %ecx, %edx
testq %rax, %rax
setne %sil
testl %ecx, %ecx
setne %cl
andb %sil, %cl
movzbl %cl, %ecx
addl %ecx, %ebx
incq %rax
cmpq %rax, %rdi
jne 0x12a5d
leaq 0x8c79(%rip), %rsi      # 0x1b702
leaq 0x10(%rsp), %rdi
xorl %eax, %eax
callq 0x7260
testl %ebx, %ebx
je 0x12ca5
movq 0x10(%rsp), %rcx
leaq 0x4(%rcx), %rax
cmpq 0x18(%rsp), %rax
jae 0x12ace
movq 0x20(%rsp), %rax
jmp 0x12b1b
leaq 0x8c47(%rip), %rsi      # 0x1b702
leaq 0x10(%rsp), %rdi
xorl %edx, %edx
xorl %eax, %eax
callq 0x7260
jmp 0x12ca5
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rdi
callq 0x23d0
movq %rax, 0x20(%rsp)
movq 0x10(%rsp), %rcx
movb $0x3d, 0x2(%rax,%rcx)
movw $0x4341, (%rax,%rcx)    # imm = 0x4341
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
leaq 0x3(%rax), %rdx
movq %rdx, 0x10(%rsp)
movb $0x0, 0x3(%rcx,%rax)
cmpl $0x0, 0x60(%rsp)
movq 0x90(%rsp), %rax
jle 0x12c26
movl $0x1, %r15d
leaq 0x90e5(%rip), %r14      # 0x1bc43
leaq 0x10(%rsp), %rbp
btl %r15d, %r13d
jae 0x12ba2
leal -0x1(%rbx), %r12d
movl 0x1a0(%rsp,%r15,4), %edx
movq %rbp, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x7260
cmpl $0x2, %ebx
jl 0x12c0f
movq 0x10(%rsp), %rdx
leaq 0x1(%rdx), %rcx
cmpq 0x18(%rsp), %rcx
jae 0x12ba7
movq 0x20(%rsp), %rax
jmp 0x12bf8
movl %ebx, %r12d
jmp 0x12c17
movq %rcx, %rax
shrq %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %rsi
shrq $0x10, %rsi
orq %rcx, %rsi
incq %rsi
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rdi
callq 0x23d0
movq %rax, 0x20(%rsp)
movq 0x10(%rsp), %rdx
leaq 0x1(%rdx), %rcx
movq %rcx, 0x10(%rsp)
movb $0x2c, (%rax,%rdx)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movb $0x0, (%rcx,%rax)
movq 0x90(%rsp), %rax
incq %r15
movl %r12d, %ebx
cmpq %r15, %rax
jne 0x12b63
movq 0x10(%rsp), %rdx
leaq 0x1(%rdx), %rcx
cmpq 0x18(%rsp), %rcx
jae 0x12c3d
movq 0x20(%rsp), %rax
jmp 0x12c8e
movq %rcx, %rax
shrq %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %rsi
shrq $0x10, %rsi
orq %rcx, %rsi
incq %rsi
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rdi
callq 0x23d0
movq %rax, 0x20(%rsp)
movq 0x10(%rsp), %rdx
leaq 0x1(%rdx), %rcx
movq %rcx, 0x10(%rsp)
movb $0x3b, (%rax,%rdx)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movb $0x0, (%rcx,%rax)
movq 0x70(%rsp), %rbx
movq 0x38(%rbx), %r14
movq %r14, %rdi
callq 0x2180
movq 0x10(%rsp), %rdi
movslq %eax, %rbp
leaq (%rdi,%rbp), %rax
incq %rax
cmpq 0x18(%rsp), %rax
jae 0x12cd3
movq 0x20(%rsp), %rax
jmp 0x12d20
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rdi
callq 0x23d0
movq %rax, 0x20(%rsp)
movq 0x10(%rsp), %rdi
movl 0x68(%rsp), %r15d
addq %rax, %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0x22e0
addq 0x10(%rsp), %rbp
movq %rbp, 0x10(%rsp)
movq 0x20(%rsp), %rax
movb $0x0, (%rax,%rbp)
leaq 0x160(%rsp), %rsi
movq %rbx, %rdi
callq 0x2e4c
testl %eax, %eax
movl 0xd0(%rsp), %ebp
js 0x12e3b
cmpl $0x0, 0x188(%rsp)
je 0x12da6
movsd 0x160(%rsp), %xmm0
movsd 0x168(%rsp), %xmm1
movq 0x170(%rsp), %xmm2
movq 0x178(%rsp), %xmm3
leaq 0x7cdd(%rip), %rsi      # 0x1aa77
leaq 0x10(%rsp), %rdi
movb $0x4, %al
callq 0x7260
movl 0x180(%rsp), %eax
movl 0x18c(%rsp), %edx
movl 0x190(%rsp), %ecx
movl 0x194(%rsp), %r8d
movl 0x198(%rsp), %r9d
movl %eax, (%rsp)
leaq 0x7c65(%rip), %rsi      # 0x1aa3a
leaq 0x10(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x7260
movss 0x10(%rbx), %xmm0
movdqu 0x18c(%rsp), %xmm1
pshufd $0xee, %xmm1, %xmm2     # xmm2 = xmm1[2,3,2,3]
paddd %xmm1, %xmm2
pshufd $0x55, %xmm2, %xmm1     # xmm1 = xmm2[1,1,1,1]
paddd %xmm2, %xmm1
cvtdq2ps %xmm1, %xmm1
divss %xmm1, %xmm0
cvtss2sd %xmm0, %xmm0
leaq 0x88f7(%rip), %rsi      # 0x1b70d
movq %r14, %rdi
movb $0x1, %al
callq 0x7260
testl %r15d, %r15d
je 0x12e3b
leaq 0x88e9(%rip), %rsi      # 0x1b715
leaq 0x10(%rsp), %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0x7260
movl 0xc8(%rsp), %edi
movl %edi, %eax
addl %ebp, %eax
je 0x12e69
movl 0xb8(%rsp), %esi
movl %ebp, %edx
callq 0x10a3a
leaq 0x88c0(%rip), %rsi      # 0x1b71d
leaq 0x10(%rsp), %rdi
movb $0x1, %al
callq 0x7260
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rdx
cmpq 0x18(%rsp), %rdx
jae 0x12e80
movq 0x20(%rsp), %rax
jmp 0x12ed1
movq %rdx, %rax
shrq %rax
orq %rdx, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %rsi
shrq $0x10, %rsi
orq %rcx, %rsi
incq %rsi
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rdi
callq 0x23d0
movq %rax, 0x20(%rsp)
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rdx
leaq 0x10(%rsp), %r13
movq %rdx, (%r13)
xorl %edx, %edx
movb %dl, (%rax,%rcx)
movq (%r13), %rax
movq 0x10(%r13), %rcx
movb %dl, (%rcx,%rax)
leaq 0x6307(%rip), %rsi      # 0x191f8
movq %r13, %rdi
callq 0xcf62
leaq 0x7b90(%rip), %rsi      # 0x1aa90
movq %r13, %rdi
callq 0xcf62
movq 0x40(%rbx), %r14
movq %r14, %rdi
callq 0x2180
movq (%r13), %rdi
movslq %eax, %r12
leaq (%rdi,%r12), %rax
incq %rax
cmpq 0x8(%r13), %rax
jae 0x12f2f
movq 0x20(%rsp), %rax
jmp 0x12f7c
movq %rax, %rcx
shrq %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x2, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x4, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x8, %rax
orq %rcx, %rax
movq %rax, %rsi
shrq $0x10, %rsi
orq %rax, %rsi
incq %rsi
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rdi
callq 0x23d0
movq %rax, 0x20(%rsp)
movq 0x10(%rsp), %rdi
movl 0x80(%rsp), %ebp
addq %rax, %rdi
movq %r14, %rsi
movq %r12, %rdx
callq 0x22e0
addq 0x10(%rsp), %r12
movq %r12, 0x10(%rsp)
movq 0x20(%rsp), %rax
movb $0x0, (%rax,%r12)
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rdx
cmpq 0x18(%rsp), %rdx
jae 0x12fbc
movq 0x20(%rsp), %rax
jmp 0x1300d
movq %rdx, %rax
shrq %rax
orq %rdx, %rax
movq %rax, %rcx
shrq $0x2, %rcx
orq %rax, %rcx
movq %rcx, %rax
shrq $0x4, %rax
orq %rcx, %rax
movq %rax, %rcx
shrq $0x8, %rcx
orq %rax, %rcx
movq %rcx, %rsi
shrq $0x10, %rsi
orq %rcx, %rsi
incq %rsi
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rdi
callq 0x23d0
movq %rax, 0x20(%rsp)
movq 0x10(%rsp), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x10(%rsp)
xorl %edx, %edx
movb %dl, (%rax,%rcx)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movb %dl, (%rcx,%rax)
movq 0x18(%rbx), %rdi
callq 0x2060
pshufd $0xe8, 0x10(%rsp), %xmm0 # xmm0 = mem[0,2,2,3]
movq %xmm0, 0x8(%rbx)
movq 0x20(%rsp), %rax
movq %rax, 0x18(%rbx)
movq %rbx, %rdi
callq 0xb8ba
movl %ebp, %eax
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8604(%rip), %rdi      # 0x1b669
leaq 0x859f(%rip), %rsi      # 0x1b60b
leaq 0x8606(%rip), %rcx      # 0x1b679
movl $0x16e, %edx            # imm = 0x16E
callq 0x21d0
callq 0x2acf
movq %r12, %rdi
callq 0x2aab