// File: /workspace/github_c_makefile_star2_O1/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 $0x1f8, %rsp            # imm = 0x1F8
movq 0x28(%rdi), %r10
movl $0x1, %r9d
movq %r10, %rcx
movb (%rcx), %al
movzbl %al, %r8d
cmpl $0x2d, %r8d
jg 0x108e8
cmpl $0x2c, %r8d
jne 0x108f6
incl %r9d
jmp 0x108fb
cmpl $0x2e, %r8d
je 0x10900
cmpl $0x58, %r8d
jne 0x108fb
jmp 0x10900
testl %r8d, %r8d
je 0x10900
incq %rcx
jmp 0x108d1
cmpb $0x0, (%r10)
setne %cl
testb %al, %al
sete %al
andb %cl, %al
movzbl %al, %ecx
addl %ecx, %r9d
movq %r9, 0x68(%rsp)
cmpl $0x4, %r9d
jle 0x10936
movq 0x20(%rdi), %rsi
xorl %eax, %eax
cmpb $0x4e, (%rsi)
je 0x12bc6
movq %r10, %rdx
callq 0x2af4
movslq 0x48(%rdi), %rbx
xorl %r15d, %r15d
testq %rbx, %rbx
jle 0x10999
movq 0x50(%rdi), %rax
addq $0x8, %rax
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
xorl %ecx, %ecx
xorl %r12d, %r12d
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
movl -0x8(%rax), %r9d
cmpl $0x504c, %r9d           # imm = 0x504C
jne 0x10970
movq (%rax), %r12
movl -0x4(%rax), %r15d
jmp 0x10988
cmpl $0x4450, %r9d           # imm = 0x4450
jne 0x1097d
movl %ecx, %ebp
jmp 0x10988
cmpl $0x4456, %r9d           # imm = 0x4456
cmovel %ecx, %r8d
incq %rcx
addq $0x10, %rax
cmpq %rcx, %rbx
jne 0x1095a
movslq %r15d, %r15
jmp 0x109a7
movl $0xffffffff, %r8d       # imm = 0xFFFFFFFF
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
xorl %r12d, %r12d
movq 0x68(%rsp), %rax
cmpl $0x1, %eax
movq %rdi, 0x78(%rsp)
jne 0x111aa
movl $0x1, %eax
testl %edx, %edx
jne 0x12bc6
movslq 0xc(%rdi), %rcx
movq %rcx, 0x38(%rsp)
movslq 0x8(%rdi), %rax
leaq -0x1(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq 0x18(%rdi), %rdi
movq %rdi, 0x40(%rsp)
addq $0x3, %rax
cmpq %rcx, %rax
jb 0x10a32
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)
callq 0x23d0
movq %rax, 0x40(%rsp)
movl %ebp, %r15d
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
movb $0x54, 0x2(%rcx,%rax)
movw $0x473a, (%rcx,%rax)    # imm = 0x473A
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
leaq 0x3(%rax), %rdx
movq %rdx, 0x30(%rsp)
movb $0x0, 0x3(%rcx,%rax)
movq 0x30(%rsp), %rax
incq %rax
cmpq 0x38(%rsp), %rax
jb 0x10ab9
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), %rax
movq 0x40(%rsp), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x30(%rsp)
xorl %ebp, %ebp
movb %bpl, (%rcx,%rax)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
movb %bpl, (%rcx,%rax)
movl 0x38(%rsp), %eax
movq 0x78(%rsp), %r14
movl %eax, 0xc(%r14)
movl 0x30(%rsp), %eax
movl %eax, 0x8(%r14)
movq 0x40(%rsp), %rax
movq %rax, 0x18(%r14)
movq %r14, %rdi
callq 0xb77e
cmpl $0x0, 0x5c(%r14)
jle 0x10b7a
movl %r15d, %eax
xorl %ecx, %ecx
shlq $0x4, %rax
shlq $0x4, %rbx
xorl %ebp, %ebp
testl %r15d, %r15d
js 0x10b36
movq 0x78(%rsp), %rdx
movq 0x50(%rdx), %rdx
movq 0x8(%rdx,%rax), %rsi
cmpw $0x0, (%rsi,%rcx,2)
je 0x10b60
movq 0x78(%rsp), %rsi
movq 0x50(%rsi), %rdx
movq 0x8(%rdx,%rbx), %rdx
movb $0x0, (%rdx,%rcx)
movq 0x60(%rsi), %rdx
testq %rdx, %rdx
je 0x10b57
movzbl (%rdx,%rcx), %edx
jmp 0x10b5c
movl $0x2, %edx
addl %edx, %ebp
jmp 0x10b69
movq 0x8(%rdx,%rbx), %rdx
movb $-0x80, (%rdx,%rcx)
incq %rcx
movq 0x78(%rsp), %rdx
movslq 0x5c(%rdx), %rdx
cmpq %rdx, %rcx
jl 0x10b1c
movq 0x78(%rsp), %rbx
movq %rbx, %rdi
movl $0x1, %esi
callq 0xe709
movl $0x4479c000, 0x10(%rbx) # imm = 0x4479C000
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
cmpq $0x1, 0x38(%rsp)
ja 0x10bc9
movq $0x2, 0x38(%rsp)
movq 0x40(%rsp), %rdi
movl $0x2, %esi
callq 0x23d0
movq %rax, 0x40(%rsp)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x30(%rsp)
xorl %edx, %edx
movb %dl, (%rcx,%rax)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
movb %dl, (%rcx,%rax)
movq 0x78(%rsp), %rax
movq 0x20(%rax), %r14
movq %r14, %rdi
callq 0x2180
movq 0x30(%rsp), %rcx
movslq %eax, %r15
leaq (%rcx,%r15), %rax
incq %rax
cmpq 0x38(%rsp), %rax
jb 0x10c5d
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 0x40(%rsp), %rdi
addq 0x30(%rsp), %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), %rax
incq %rax
cmpq 0x38(%rsp), %rax
jb 0x10cdd
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), %rax
movq 0x40(%rsp), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x30(%rsp)
xorl %edx, %edx
movb %dl, (%rcx,%rax)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
movb %dl, (%rcx,%rax)
movq 0x78(%rsp), %rax
movq 0x28(%rax), %r14
movq %r14, %rdi
callq 0x2180
movq 0x30(%rsp), %rcx
movslq %eax, %r15
leaq (%rcx,%r15), %rax
incq %rax
cmpq 0x38(%rsp), %rax
jb 0x10d71
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 0x40(%rsp), %rdi
addq 0x30(%rsp), %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), %rax
incq %rax
cmpq 0x38(%rsp), %rax
jb 0x10df1
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), %rax
movq 0x40(%rsp), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x30(%rsp)
xorl %edx, %edx
movb %dl, (%rcx,%rax)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
movb %dl, (%rcx,%rax)
movq 0x30(%rsp), %rax
incq %rax
cmpq 0x38(%rsp), %rax
jb 0x10e6d
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)
leaq 0x30(%rsp), %r12
movq (%r12), %rax
movq 0x10(%r12), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%r12)
xorl %edx, %edx
movb %dl, (%rcx,%rax)
movq (%r12), %rax
movq 0x10(%r12), %rcx
movb %dl, (%rcx,%rax)
leaq 0xa78f(%rip), %rsi      # 0x1b62a
movq %r12, %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x7328
movq 0x78(%rsp), %rbx
movq 0x38(%rbx), %r14
movq %r14, %rdi
callq 0x2180
movq (%r12), %rcx
movslq %eax, %r15
leaq (%rcx,%r15), %rax
incq %rax
cmpq 0x8(%r12), %rax
jb 0x10f15
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 0x40(%rsp), %rdi
addq 0x30(%rsp), %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 0x148(%rsp), %rsi
movq %rbx, %rdi
callq 0x2e7c
testl %eax, %eax
js 0x10fce
cmpl $0x0, 0x170(%rsp)
je 0x10f93
movsd 0x148(%rsp), %xmm0
movsd 0x150(%rsp), %xmm1
movsd 0x158(%rsp), %xmm2
movsd 0x160(%rsp), %xmm3
leaq 0x9a9a(%rip), %rsi      # 0x1aa21
leaq 0x30(%rsp), %rdi
movb $0x4, %al
callq 0x7328
movl 0x168(%rsp), %eax
movl 0x174(%rsp), %edx
movl 0x178(%rsp), %ecx
movl 0x17c(%rsp), %r8d
movl 0x180(%rsp), %r9d
movl %eax, (%rsp)
leaq 0x9a22(%rip), %rsi      # 0x1a9e4
leaq 0x30(%rsp), %rdi
xorl %eax, %eax
callq 0x7328
movq 0x30(%rsp), %rax
incq %rax
cmpq 0x38(%rsp), %rax
jb 0x11025
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)
leaq 0x30(%rsp), %r12
movq (%r12), %rax
movq 0x10(%r12), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%r12)
xorl %edx, %edx
movb %dl, (%rcx,%rax)
movq (%r12), %rax
movq 0x10(%r12), %rcx
movb %dl, (%rcx,%rax)
leaq 0x814d(%rip), %rsi      # 0x191a0
movq %r12, %rdi
callq 0xcdb9
leaq 0x99d8(%rip), %rsi      # 0x1aa3a
movq %r12, %rdi
callq 0xcdb9
movq 0x40(%rbx), %r14
movq %r14, %rdi
callq 0x2180
movq (%r12), %rcx
movslq %eax, %r15
leaq (%rcx,%r15), %rax
incq %rax
cmpq 0x8(%r12), %rax
jb 0x110d3
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 0x40(%rsp), %rdi
addq 0x30(%rsp), %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), %rax
incq %rax
cmpq 0x38(%rsp), %rax
jb 0x11153
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), %rax
movq 0x40(%rsp), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x30(%rsp)
xorl %edx, %edx
movb %dl, (%rcx,%rax)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rcx
movb %dl, (%rcx,%rax)
movq 0x18(%rbx), %rdi
callq 0x2060
movl 0x38(%rsp), %eax
movl %eax, 0xc(%rbx)
movl 0x30(%rsp), %eax
movl %eax, 0x8(%rbx)
movq 0x40(%rsp), %rax
movq %rax, 0x18(%rbx)
movq %rbx, %rdi
callq 0xb77e
movl $0x1, %eax
jmp 0x12bc6
testq %r12, %r12
je 0x114b6
movsd %xmm0, 0x1b8(%rsp)
movl %r8d, 0xf4(%rsp)
movl %ebp, 0xf8(%rsp)
movq 0x18(%rsi), %rbx
movsd (%rbx), %xmm0
ucomisd 0x7e35(%rip), %xmm0     # 0x19010
jne 0x12bd8
jp 0x12bd8
leal 0x1(%rax), %ebp
imull %eax, %ebp
movl %ebp, %eax
shrl $0x1f, %eax
addl %ebp, %eax
sarl %eax
movq %rsi, 0xc8(%rsp)
movslq (%rsi), %r14
movl %eax, 0xb8(%rsp)
movslq %eax, %rdi
movq %rdi, 0x120(%rsp)
imulq %r14, %rdi
shlq $0x3, %rdi
callq 0x2360
movq %rax, 0xb0(%rsp)
testq %r14, %r14
jle 0x112ab
movl 0xb8(%rsp), %eax
movq 0x120(%rsp), %rcx
leaq (,%rcx,8), %rcx
xorl %edx, %edx
xorpd %xmm0, %xmm0
movq 0xb0(%rsp), %rsi
xorpd %xmm1, %xmm1
cmpl $0x2, %ebp
jl 0x11279
xorl %edi, %edi
movzbl (%r12,%rdi), %r8d
movsd (%rbx,%r8,8), %xmm2
movsd %xmm2, (%rsi,%rdi,8)
addsd %xmm2, %xmm1
incq %rdi
cmpq %rdi, %rax
jne 0x1125d
ucomisd %xmm0, %xmm1
jne 0x11281
jnp 0x1129e
cmpl $0x2, %ebp
jl 0x1129e
xorl %edi, %edi
movsd (%rsi,%rdi,8), %xmm2
divsd %xmm1, %xmm2
movsd %xmm2, (%rsi,%rdi,8)
incq %rdi
cmpq %rdi, %rax
jne 0x11288
addq %r15, %r12
incl %edx
addq %rcx, %rsi
cmpl %r14d, %edx
jne 0x11252
movq 0x78(%rsp), %rax
movq 0x38(%rax), %rdi
leaq 0x977f(%rip), %rsi      # 0x1aa3a
callq 0x2550
testq %rax, %rax
je 0x12bf7
movq %rax, %r12
leaq 0x3(%rax), %rdi
leaq 0x38(%rsp), %rcx
leaq 0x40(%rsp), %r8
leaq 0x48(%rsp), %r9
leaq 0xa320(%rip), %rsi      # 0x1b606
leaq 0x30(%rsp), %rdx
xorl %eax, %eax
callq 0x2390
cmpl $0x4, %eax
jne 0x12bfc
movq 0x68(%rsp), %rax
testl %eax, %eax
jle 0x114c0
movl 0xb8(%rsp), %ebx
movq 0xb0(%rsp), %rax
addq $-0x8, %rax
movq %rax, 0x80(%rsp)
shlq $0x3, %rbx
movsd 0xa0f9(%rip), %xmm1     # 0x1b428
xorpd %xmm0, %xmm0
movsd %xmm0, 0x108(%rsp)
xorl %r12d, %r12d
movl $0x4, %ebp
movl $0x2, 0x98(%rsp)
xorl %r14d, %r14d
movl $0x0, 0x60(%rsp)
movsd %xmm1, 0x88(%rsp)
movsd %xmm1, 0x70(%rsp)
movsd %xmm1, 0x90(%rsp)
movq 0xc8(%rsp), %r13
movl %r14d, 0x64(%rsp)
cmpl $0x0, (%r13)
xorpd %xmm2, %xmm2
jle 0x113cb
movl 0x98(%rsp), %eax
shrl %eax
movq 0x80(%rsp), %rcx
leaq (%rcx,%rax,8), %r14
xorl %r15d, %r15d
movsd %xmm2, 0x58(%rsp)
movsd (%r14), %xmm0
callq 0x2210
movsd 0x58(%rsp), %xmm2
addsd %xmm0, %xmm2
incq %r15
movslq (%r13), %rax
addq %rbx, %r14
cmpq %rax, %r15
jl 0x113a2
movapd %xmm2, %xmm0
testl %r12d, %r12d
je 0x113dd
movsd 0x108(%rsp), %xmm0
movsd 0x70(%rsp), %xmm1
ucomisd %xmm1, %xmm2
movl 0x64(%rsp), %r14d
movsd %xmm0, 0x108(%rsp)
jbe 0x1141a
movl $0x1, %eax
movl %r12d, %ecx
shll %cl, %eax
movl %r14d, 0x60(%rsp)
movsd %xmm1, 0x88(%rsp)
movsd %xmm2, 0x70(%rsp)
movl %eax, %r14d
jmp 0x1143c
ucomisd 0x88(%rsp), %xmm2
jbe 0x1143c
movl $0x1, %eax
movl %r12d, %ecx
shll %cl, %eax
movl %eax, 0x60(%rsp)
movsd %xmm2, 0x88(%rsp)
incl %r12d
movapd %xmm2, %xmm1
movsd 0x90(%rsp), %xmm3
subsd %xmm3, %xmm1
movapd %xmm2, %xmm4
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 0x7b88(%rip), %xmm0     # 0x19010
callq 0x2210
addsd 0x58(%rsp), %xmm0
movsd %xmm0, 0x90(%rsp)
addl %ebp, 0x98(%rsp)
addl $0x2, %ebp
movq 0x68(%rsp), %rax
cmpl %eax, %r12d
jne 0x1137a
jmp 0x114f8
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x12bc6
movl $0x0, 0x60(%rsp)
xorpd %xmm0, %xmm0
movsd %xmm0, 0x108(%rsp)
movsd 0x9f4b(%rip), %xmm0     # 0x1b428
movsd %xmm0, 0x88(%rsp)
movsd %xmm0, 0x90(%rsp)
movsd %xmm0, 0x70(%rsp)
xorl %r14d, %r14d
movsd 0x90(%rsp), %xmm0
movsd %xmm0, 0x1e0(%rsp)
cmpl $0x2, %eax
jl 0x11835
movl 0xb8(%rsp), %ecx
movl %eax, %eax
movq %rax, 0x110(%rsp)
shlq $0x3, %rcx
movq %rcx, 0xe8(%rsp)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
movl $0x4, %ecx
movl $0x2, %esi
xorl %r12d, %r12d
xorpd %xmm0, %xmm0
movsd 0x70(%rsp), %xmm1
movl %ecx, 0x118(%rsp)
ucomisd 0x30(%rsp,%r12,8), %xmm0
setnp %al
sete %cl
andb %al, %cl
testq %r12, %r12
sete %al
orb %cl, %al
movq %rdx, 0x130(%rsp)
movl %esi, 0xd4(%rsp)
je 0x11585
movq 0x68(%rsp), %rax
jmp 0x117f3
movl %esi, %ebx
shrl %ebx
leal (%rdx,%rbx), %eax
movslq %eax, %r15
movl $0x1, %eax
movl %r12d, %ecx
shll %cl, %eax
movl %eax, 0xd8(%rsp)
shlq $0x3, %r15
movl $0x4, %ebp
movl $0x2, 0xa0(%rsp)
xorl %r13d, %r13d
movq 0x68(%rsp), %rax
movq %r12, 0xa8(%rsp)
movsd 0x30(%rsp,%r13,8), %xmm3
ucomisd %xmm0, %xmm3
jne 0x115d7
jnp 0x117d9
movl %ebp, 0xc0(%rsp)
movsd %xmm1, 0x70(%rsp)
movl %r14d, 0x64(%rsp)
movq 0xc8(%rsp), %rax
cmpl $0x0, (%rax)
jle 0x116fd
movl 0xa0(%rsp), %eax
movl %eax, %r14d
shrl %r14d
movsd 0x30(%rsp,%r12,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, 0xe0(%rsp)
mulsd %xmm1, %xmm1
movsd %xmm1, 0x80(%rsp)
mulsd %xmm3, %xmm3
xorpd %xmm2, %xmm2
movq 0xb0(%rsp), %r12
xorl %ebp, %ebp
movsd %xmm3, 0x98(%rsp)
movq 0x78(%rsp), %rax
movq 0x60(%rax), %rax
testq %rax, %rax
movsd %xmm2, 0x58(%rsp)
je 0x11692
cmpb $0x1, (%rax,%rbp)
jne 0x11692
movsd -0x8(%r12,%r14,8), %xmm1
mulsd %xmm3, %xmm1
movsd -0x8(%r12,%rbx,8), %xmm0
mulsd 0x80(%rsp), %xmm0
jmp 0x116c0
movsd -0x8(%r12,%r14,8), %xmm0
mulsd %xmm3, %xmm0
movsd -0x8(%r12,%rbx,8), %xmm1
mulsd 0x80(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd (%r12,%r15), %xmm0
mulsd 0xe0(%rsp), %xmm0
addsd %xmm1, %xmm0
callq 0x2210
movsd 0x58(%rsp), %xmm2
addsd %xmm0, %xmm2
incq %rbp
movq 0xc8(%rsp), %rax
movslq (%rax), %rax
addq 0xe8(%rsp), %r12
cmpq %rax, %rbp
movsd 0x98(%rsp), %xmm3
jl 0x1165b
jmp 0x11701
xorpd %xmm2, %xmm2
movsd 0x70(%rsp), %xmm0
ucomisd %xmm0, %xmm2
movl 0xc0(%rsp), %ebp
jbe 0x11741
movl 0x64(%rsp), %eax
movl %eax, 0x60(%rsp)
movl 0xd8(%rsp), %r14d
btsl %r13d, %r14d
movsd %xmm0, 0x88(%rsp)
movsd %xmm2, 0x70(%rsp)
movq 0xa8(%rsp), %r12
jmp 0x11771
ucomisd 0x88(%rsp), %xmm2
movl 0x64(%rsp), %r14d
movq 0xa8(%rsp), %r12
jbe 0x11771
movl 0xd8(%rsp), %eax
btsl %r13d, %eax
movl %eax, 0x60(%rsp)
movsd %xmm2, 0x88(%rsp)
movsd 0x90(%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 0x785a(%rip), %xmm0     # 0x19010
callq 0x2210
addsd 0x58(%rsp), %xmm0
movsd %xmm0, 0x90(%rsp)
movq 0x68(%rsp), %rax
movsd 0x70(%rsp), %xmm1
xorpd %xmm0, %xmm0
incq %r13
addq $0x8, %r15
addl %ebp, 0xa0(%rsp)
addl $0x2, %ebp
cmpq %r12, %r13
jne 0x115c4
incq %r12
movq 0x130(%rsp), %rdx
decl %edx
movl 0x118(%rsp), %ecx
movl 0xd4(%rsp), %esi
addl %ecx, %esi
addl $0x2, %ecx
cmpq 0x110(%rsp), %r12
jne 0x1154c
movsd 0x90(%rsp), %xmm0
movsd %xmm0, 0x1e8(%rsp)
jmp 0x1183b
movsd 0x70(%rsp), %xmm1
cmpl $0x3, %eax
jl 0x11d69
movl 0xb8(%rsp), %ecx
movl %eax, %eax
movq %rax, 0x1c0(%rsp)
shlq $0x3, %rcx
movq %rcx, 0xc0(%rsp)
movl $0x4, %eax
movl $0x2, 0xfc(%rsp)
xorl %ebx, %ebx
xorpd %xmm0, %xmm0
movl %eax, 0x13c(%rsp)
ucomisd 0x30(%rsp,%rbx,8), %xmm0
setnp %al
sete %cl
andb %al, %cl
testq %rbx, %rbx
sete %al
orb %cl, %al
jne 0x11d30
movl 0xfc(%rsp), %eax
shrl %eax
leaq -0x8(,%rax,8), %rcx
movslq %ebx, %rax
shlq $0x3, %rax
movq %rcx, 0x1d0(%rsp)
movq %rcx, %rdx
subq %rax, %rdx
movl $0x1, %eax
movl %ebx, %ecx
shll %cl, %eax
movl %eax, 0x140(%rsp)
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movq %rax, 0x128(%rsp)
movl $0x4, %eax
movl $0x2, 0x100(%rsp)
movq %rdx, 0x1c8(%rsp)
movq %rdx, 0x188(%rsp)
xorl %r15d, %r15d
movq %rbx, 0x190(%rsp)
movl %eax, 0x144(%rsp)
ucomisd 0x30(%rsp,%r15,8), %xmm0
setnp %al
sete %cl
andb %al, %cl
testq %r15, %r15
sete %al
orb %cl, %al
jne 0x11cf8
movl 0x100(%rsp), %eax
shrl %eax
movq 0x128(%rsp), %rcx
addl %eax, %ecx
movslq %ecx, %r13
shlq $0x3, %r13
leaq -0x8(,%rax,8), %rax
movq %rax, 0x1d8(%rsp)
movl 0x140(%rsp), %eax
btsl %r15d, %eax
movl %eax, 0x104(%rsp)
movl $0x4, %eax
movl $0x2, %ebp
movq 0x1c8(%rsp), %r12
xorl %ecx, %ecx
movq %r15, 0x198(%rsp)
movsd 0x30(%rsp,%rcx,8), %xmm3
ucomisd %xmm0, %xmm3
jne 0x11996
jnp 0x11cdf
movl %eax, 0xd4(%rsp)
movsd %xmm1, 0x70(%rsp)
movl %r14d, 0x64(%rsp)
movq 0xc8(%rsp), %rax
cmpl $0x0, (%rax)
movq %rcx, 0x80(%rsp)
movq %r13, 0x118(%rsp)
movl %ebp, 0x110(%rsp)
movq %r12, 0xb8(%rsp)
jle 0x11bc3
movl %ebp, %edx
shrl %edx
decl %edx
shlq $0x3, %rdx
movsd 0x30(%rsp,%rbx,8), %xmm1
movsd 0x30(%rsp,%r15,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, 0xd8(%rsp)
mulsd %xmm3, %xmm0
movsd %xmm0, 0xa8(%rsp)
movapd %xmm2, %xmm0
addsd %xmm2, %xmm0
mulsd %xmm3, %xmm0
movsd %xmm0, 0x130(%rsp)
mulsd %xmm1, %xmm1
movsd %xmm1, 0xe0(%rsp)
mulsd %xmm2, %xmm2
movsd %xmm2, 0xa0(%rsp)
mulsd %xmm3, %xmm3
xorpd %xmm2, %xmm2
movq 0x1d8(%rsp), %r14
movq 0x1d0(%rsp), %rbp
movq 0x188(%rsp), %rsi
movq %r12, %rdi
movq %r13, %r15
xorl %r11d, %r11d
movsd %xmm3, 0xe8(%rsp)
movsd %xmm2, 0x58(%rsp)
movq 0x78(%rsp), %rax
movq 0x60(%rax), %rax
testq %rax, %rax
movq %r11, 0x98(%rsp)
je 0x11ae9
cmpb $0x1, (%rax,%r11)
jne 0x11ae9
movq 0xb0(%rsp), %rax
movsd (%rax,%r14), %xmm0
mulsd 0xa0(%rsp), %xmm0
movsd (%rax,%rbp), %xmm1
mulsd 0xe0(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd (%rax,%rdx), %xmm0
mulsd %xmm3, %xmm0
addsd %xmm1, %xmm0
jmp 0x11b56
movq 0xb0(%rsp), %rax
movsd (%rax,%r14), %xmm0
mulsd 0xa0(%rsp), %xmm0
movsd (%rax,%rbp), %xmm1
mulsd 0xe0(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd (%rax,%rdx), %xmm0
mulsd %xmm3, %xmm0
addsd %xmm1, %xmm0
movsd (%rax,%rsi), %xmm1
mulsd 0xd8(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd (%rax,%rdi), %xmm2
mulsd 0xa8(%rsp), %xmm2
addsd %xmm1, %xmm2
movsd (%rax,%r15), %xmm0
mulsd 0x130(%rsp), %xmm0
addsd %xmm2, %xmm0
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r13
callq 0x2210
movsd 0x58(%rsp), %xmm2
addsd %xmm0, %xmm2
movq 0x98(%rsp), %r11
incq %r11
movq 0xc8(%rsp), %rax
movslq (%rax), %rax
movq 0xc0(%rsp), %rcx
addq %rcx, %r15
addq %rcx, %r13
addq %rcx, %r12
addq %rcx, %rbp
addq %rcx, %r14
addq %rcx, %rbx
cmpq %rax, %r11
movq 0x80(%rsp), %rcx
movsd 0xe8(%rsp), %xmm3
movq %rbx, %rdx
movq %r12, %rsi
movq %r13, %rdi
jl 0x11a8e
jmp 0x11bc7
xorpd %xmm2, %xmm2
movsd 0x70(%rsp), %xmm0
ucomisd %xmm0, %xmm2
jbe 0x11c1f
movl 0x64(%rsp), %eax
movl %eax, 0x60(%rsp)
movl 0x104(%rsp), %r14d
btsl %ecx, %r14d
movsd %xmm0, 0x88(%rsp)
movsd %xmm2, 0x70(%rsp)
movq 0x190(%rsp), %rbx
movq 0x198(%rsp), %r15
movq 0x118(%rsp), %r13
movl 0x110(%rsp), %ebp
movq 0xb8(%rsp), %r12
jmp 0x11c6d
ucomisd 0x88(%rsp), %xmm2
movl 0x64(%rsp), %r14d
movq 0x190(%rsp), %rbx
movq 0x198(%rsp), %r15
movq 0x118(%rsp), %r13
movl 0x110(%rsp), %ebp
movq 0xb8(%rsp), %r12
jbe 0x11c6d
movl 0x104(%rsp), %eax
btsl %ecx, %eax
movl %eax, 0x60(%rsp)
movsd %xmm2, 0x88(%rsp)
movsd 0x90(%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 0x735e(%rip), %xmm0     # 0x19010
callq 0x2210
addsd 0x58(%rsp), %xmm0
movsd %xmm0, 0x90(%rsp)
movsd 0x70(%rsp), %xmm1
xorpd %xmm0, %xmm0
movl 0xd4(%rsp), %eax
movq 0x80(%rsp), %rcx
incq %rcx
addq $0x8, %r13
addq $0x8, %r12
addl %eax, %ebp
addl $0x2, %eax
cmpq %r15, %rcx
jne 0x11984
incq %r15
movq 0x128(%rsp), %rax
decl %eax
movq %rax, 0x128(%rsp)
movl 0x144(%rsp), %eax
addl %eax, 0x100(%rsp)
addl $0x2, %eax
addq $0x8, 0x188(%rsp)
cmpq %rbx, %r15
jne 0x11908
incq %rbx
movl 0x13c(%rsp), %eax
addl %eax, 0xfc(%rsp)
addl $0x2, %eax
cmpq 0x1c0(%rsp), %rbx
jne 0x11877
movsd 0x90(%rsp), %xmm0
movsd %xmm0, 0x1f0(%rsp)
movq 0x68(%rsp), %rax
xorl %ebp, %ebp
movl $0x0, %ebx
testl %eax, %eax
movq %rax, %rcx
jle 0x11d88
xorl %eax, %eax
xorl %ebx, %ebx
btl %eax, %r14d
adcl $0x0, %ebx
incl %eax
cmpl %eax, %ecx
jne 0x11d7b
testl %ecx, %ecx
movl 0x60(%rsp), %edx
jle 0x11da0
xorl %eax, %eax
xorl %ebp, %ebp
btl %eax, %edx
adcl $0x0, %ebp
incl %eax
cmpl %eax, %ecx
jne 0x11d94
cmpl %ebx, %ebp
jge 0x11dd4
subsd 0x88(%rsp), %xmm1
addsd %xmm1, %xmm1
movsd 0x7257(%rip), %xmm0     # 0x19010
callq 0x1600a
movsd 0x1b8(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x11dd4
movl 0x60(%rsp), %r14d
movl %ebp, %ebx
movslq %ebx, %rax
movsd 0x1d8(%rsp,%rax,8), %xmm0
movsd %xmm0, 0xd8(%rsp)
movq 0x78(%rsp), %rbx
movslq 0x48(%rbx), %rax
movq %rax, 0x98(%rsp)
movslq 0xc(%rbx), %rcx
movq %rcx, 0x18(%rsp)
movslq 0x8(%rbx), %rax
leaq -0x1(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq 0x18(%rbx), %rdi
movq %rdi, 0x20(%rsp)
addq $0x6, %rax
cmpq %rcx, %rax
jb 0x11e65
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)
callq 0x23d0
movq %rax, 0x20(%rsp)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movw $0x5147, 0x4(%rcx,%rax) # imm = 0x5147
movl $0x3a54473a, (%rcx,%rax) # 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), %rax
incq %rax
cmpq 0x18(%rsp), %rax
jb 0x11eec
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), %rax
movq 0x20(%rsp), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x10(%rsp)
xorl %edx, %edx
movb %dl, (%rcx,%rax)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movl $0x0, 0x58(%rsp)
movb %dl, (%rcx,%rax)
movl 0x18(%rsp), %eax
movl %eax, 0xc(%rbx)
movl 0x10(%rsp), %eax
movl %eax, 0x8(%rbx)
movq 0x20(%rsp), %rax
movq %rax, 0x18(%rbx)
movq %rbx, %rdi
callq 0xb77e
xorpd %xmm0, %xmm0
movapd %xmm0, 0x1a0(%rsp)
cmpl $0x0, 0x5c(%rbx)
movl $0x0, 0xa0(%rsp)
movl $0x0, 0xa8(%rsp)
movl $0x0, 0xc0(%rsp)
movl $0x0, 0x80(%rsp)
movl 0xf4(%rsp), %eax
jle 0x12290
movl 0xf8(%rsp), %ecx
movl %eax, %edx
movl 0x68(%rsp), %r15d
movq 0x120(%rsp), %rax
leaq (,%rax,8), %rax
movq %rax, 0xc8(%rsp)
xorl %esi, %esi
shlq $0x4, %rcx
movq %rcx, 0xe8(%rsp)
shlq $0x4, 0x98(%rsp)
shlq $0x4, %rdx
movq %rdx, 0xe0(%rsp)
movq 0xb0(%rsp), %r12
movl $0x0, 0x80(%rsp)
movl $0x0, 0xc0(%rsp)
movl $0x0, 0xa8(%rsp)
movl $0x0, 0xa0(%rsp)
movl $0x0, 0x58(%rsp)
movq 0x60(%rbx), %rax
xorl %r13d, %r13d
testq %rax, %rax
je 0x1201c
cmpb $0x2, (%rax,%rsi)
setne %al
jmp 0x1201e
xorl %eax, %eax
cmpl $0x0, 0x68(%rsp)
jle 0x120a0
movq %rsi, %rbp
movq %rsi, %rcx
imulq 0x120(%rsp), %rcx
movq 0xb0(%rsp), %rdx
leaq (%rdx,%rcx,8), %rcx
addq $-0x8, %rcx
xorpd %xmm0, %xmm0
xorl %edx, %edx
xorl %esi, %esi
xorpd %xmm1, %xmm1
xorl %r13d, %r13d
btl %esi, %r14d
jae 0x12093
leal 0x1(%rsi), %edi
leal 0x2(%rsi), %r8d
imull %edi, %r8d
shrl %r8d
movsd 0x30(%rsp,%rsi,8), %xmm2
movsd (%rcx,%r8,8), %xmm3
mulsd %xmm2, %xmm3
mulsd %xmm2, %xmm3
movl %edx, %edi
orl %esi, %edi
ucomisd %xmm1, %xmm3
cmoval %edi, %r13d
addsd %xmm3, %xmm0
maxsd %xmm1, %xmm3
movapd %xmm3, %xmm1
incq %rsi
addl $0x8, %edx
cmpq %rsi, %r15
jne 0x12053
jmp 0x120ab
movq %rsi, %rbp
xorpd %xmm1, %xmm1
xorpd %xmm0, %xmm0
cmpl $0x0, 0x68(%rsp)
setle %cl
orb %cl, %al
jne 0x12145
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl $0x4, %ecx
movl $0x2, %edx
xorl %esi, %esi
btl %esi, %r14d
setae %dil
testq %rsi, %rsi
sete %r8b
orb %dil, %r8b
jne 0x12136
movl %edx, %edi
shrl %edi
addl %eax, %edi
movslq %edi, %rdi
leaq (%r12,%rdi,8), %rdi
xorl %r8d, %r8d
xorl %r9d, %r9d
btl %r9d, %r14d
jae 0x1212a
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, %r13d
addsd %xmm2, %xmm0
maxsd %xmm1, %xmm2
movapd %xmm2, %xmm1
incq %r9
addl $0x8, %r8d
cmpq %r9, %rsi
jne 0x120f3
incq %rsi
decl %eax
addl %ecx, %edx
addl $0x2, %ecx
cmpq %r15, %rsi
jne 0x120cc
divsd %xmm0, %xmm1
movsd 0x6ebf(%rip), %xmm0     # 0x19010
subsd %xmm1, %xmm0
callq 0x2210
divsd 0x92ce(%rip), %xmm0     # 0x1b430
cmpl $0x0, 0xf8(%rsp)
movq %rbp, %rsi
js 0x1218b
movq 0x50(%rbx), %rax
movq 0xe8(%rsp), %rcx
movq 0x8(%rax,%rcx), %rcx
cmpw $0x0, (%rcx,%rsi,2)
je 0x1225a
movsd 0x92a5(%rip), %xmm1     # 0x1b438
minsd %xmm0, %xmm1
movq 0x50(%rbx), %rax
movq 0x98(%rsp), %rdx
movq 0x8(%rax,%rdx), %rax
movb %r13b, (%rax,%rsi)
cvttsd2si %xmm1, %eax
movq 0x50(%rbx), %rcx
movq 0x18(%rcx,%rdx), %rcx
movb %al, (%rcx,%rsi)
testl %r13d, %r13d
movl 0xf4(%rsp), %eax
je 0x121fb
testl %eax, %eax
js 0x121fb
movq 0x50(%rbx), %rax
movq 0xe0(%rsp), %rcx
movq 0x8(%rax,%rcx), %rax
movzwl (%rax,%rsi,2), %eax
movl 0x80(%rsp), %edx
cmpl %eax, %edx
movl %eax, %ecx
cmovgl %edx, %ecx
testl %eax, %eax
cmovnel %ecx, %edx
movl %edx, 0x80(%rsp)
testl %r13d, %r13d
je 0x1221b
testb $0x38, %r13b
setne %al
testb $0x7, %r13b
setne %cl
testb %cl, %al
jne 0x12224
incl 0xc0(%rsp)
jmp 0x1222b
incl 0xa0(%rsp)
jmp 0x1222b
incl 0xa8(%rsp)
movl %r13d, %eax
shrl $0x3, %eax
andl $0x7, %eax
andl $0x7, %r13d
movl $0x1, %edx
movl %r13d, %ecx
shll %cl, %edx
btsl %eax, %edx
incl 0x1a0(%rsp,%rax,4)
orl %edx, 0x58(%rsp)
incl 0x1a0(%rsp,%r13,4)
jmp 0x12278
movq 0x98(%rsp), %rcx
movq 0x8(%rax,%rcx), %rax
movb $-0x80, (%rax,%rsi)
movq 0x50(%rbx), %rax
movq 0x18(%rax,%rcx), %rax
movb $0x0, (%rax,%rsi)
incq %rsi
movslq 0x5c(%rbx), %rax
addq 0xc8(%rsp), %r12
cmpq %rax, %rsi
jl 0x12007
movq 0xb0(%rsp), %rdi
callq 0x2060
movq %rbx, %rdi
movl %r14d, %esi
callq 0xe709
movsd 0x108(%rsp), %xmm0
subsd 0xd8(%rsp), %xmm0
cmpl $0x1, 0x58(%rsp)
jg 0x122db
callq 0x2570
movsd 0x6d42(%rip), %xmm1     # 0x19010
subsd %xmm0, %xmm1
movapd %xmm1, %xmm0
callq 0x2210
mulsd 0x6d65(%rip), %xmm0     # 0x19048
cvtsd2ss %xmm0, %xmm0
movss 0x6ead(%rip), %xmm1     # 0x1919c
minss %xmm0, %xmm1
movss %xmm1, 0x10(%rbx)
xorps %xmm0, %xmm0
movaps %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
cmpq $0x1, 0x18(%rsp)
ja 0x1232e
movq $0x2, 0x18(%rsp)
movq 0x20(%rsp), %rdi
movl $0x2, %esi
callq 0x23d0
movq %rax, 0x20(%rsp)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x10(%rsp)
xorl %edx, %edx
movb %dl, (%rcx,%rax)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movb %dl, (%rcx,%rax)
movq 0x20(%rbx), %r14
movq %r14, %rdi
callq 0x2180
movq 0x10(%rsp), %rcx
movslq %eax, %r13
leaq (%rcx,%r13), %rax
incq %rax
cmpq 0x18(%rsp), %rax
jb 0x123bd
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 0x20(%rsp), %rdi
addq 0x10(%rsp), %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x22e0
addq 0x10(%rsp), %r13
movq %r13, 0x10(%rsp)
movq 0x20(%rsp), %rax
movb $0x0, (%rax,%r13)
movq 0x10(%rsp), %rax
incq %rax
cmpq 0x18(%rsp), %rax
jb 0x1243d
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), %rax
movq 0x20(%rsp), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x10(%rsp)
xorl %edx, %edx
movb %dl, (%rcx,%rax)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movb %dl, (%rcx,%rax)
movq 0x28(%rbx), %r14
movq %r14, %rdi
callq 0x2180
movq 0x10(%rsp), %rcx
movslq %eax, %r13
leaq (%rcx,%r13), %rax
incq %rax
cmpq 0x18(%rsp), %rax
jb 0x124cc
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 0x20(%rsp), %rdi
addq 0x10(%rsp), %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x22e0
addq 0x10(%rsp), %r13
movq %r13, 0x10(%rsp)
movq 0x20(%rsp), %rax
movb $0x0, (%rax,%r13)
movq 0x10(%rsp), %rax
incq %rax
cmpq 0x18(%rsp), %rax
jb 0x1254c
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), %rax
movq 0x20(%rsp), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x10(%rsp)
xorl %ebp, %ebp
movb %bpl, (%rcx,%rax)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movb %bpl, (%rcx,%rax)
movq 0x10(%rsp), %rax
incq %rax
cmpq 0x18(%rsp), %rax
jb 0x125ca
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), %rax
movq 0x20(%rsp), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x10(%rsp)
movb %bpl, (%rcx,%rax)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movb %bpl, (%rcx,%rax)
movl $0x0, %ebx
cmpl $0x0, 0x68(%rsp)
jle 0x1262a
movl 0x68(%rsp), %eax
xorl %ecx, %ecx
xorl %ebx, %ebx
xorl %ebp, %ebp
movl 0x1a0(%rsp,%rcx,4), %edx
addl %edx, %ebp
testq %rcx, %rcx
setne %sil
testl %edx, %edx
setne %dl
andb %sil, %dl
movzbl %dl, %edx
addl %edx, %ebx
incq %rcx
cmpq %rcx, %rax
jne 0x12605
leaq 0x8ff9(%rip), %rsi      # 0x1b62a
leaq 0x10(%rsp), %rdi
movl %ebp, %edx
xorl %eax, %eax
callq 0x7328
testl %ebx, %ebx
je 0x12828
movq 0x10(%rsp), %rax
addq $0x4, %rax
cmpq 0x18(%rsp), %rax
jb 0x1269f
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), %rax
movq 0x20(%rsp), %rcx
movb $0x3d, 0x2(%rcx,%rax)
movw $0x4341, (%rcx,%rax)    # imm = 0x4341
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
leaq 0x3(%rax), %rdx
movq %rdx, 0x10(%rsp)
movb $0x0, 0x3(%rcx,%rax)
movq 0x68(%rsp), %rax
cmpl $0x2, %eax
movl 0x58(%rsp), %ecx
jl 0x127ac
movl %eax, %r15d
movl $0x1, %r12d
leaq 0x9415(%rip), %r14      # 0x1bb03
leaq 0x10(%rsp), %r13
btl %r12d, %ecx
jae 0x1279c
leal -0x1(%rbx), %ebp
movl 0x1a0(%rsp,%r12,4), %edx
movq %r13, %rdi
movq %r14, %rsi
xorl %eax, %eax
callq 0x7328
cmpl $0x2, %ebx
jl 0x12796
movq 0x10(%rsp), %rax
incq %rax
cmpq 0x18(%rsp), %rax
jb 0x12771
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), %rax
movq 0x20(%rsp), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x10(%rsp)
movb $0x2c, (%rcx,%rax)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movb $0x0, (%rcx,%rax)
movl 0x58(%rsp), %ecx
jmp 0x1279e
movl %ebx, %ebp
incq %r12
movl %ebp, %ebx
cmpq %r12, %r15
jne 0x126f3
movq 0x10(%rsp), %rax
incq %rax
cmpq 0x18(%rsp), %rax
jb 0x12803
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), %rax
movq 0x20(%rsp), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x10(%rsp)
movb $0x3b, (%rcx,%rax)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movb $0x0, (%rcx,%rax)
movq 0x78(%rsp), %rbx
movq 0x38(%rbx), %r14
movq %r14, %rdi
callq 0x2180
movq 0x10(%rsp), %rcx
movslq %eax, %r13
leaq (%rcx,%r13), %rax
incq %rax
cmpq 0x18(%rsp), %rax
movl 0xc0(%rsp), %ebp
jb 0x1289e
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 0x20(%rsp), %rdi
addq 0x10(%rsp), %rdi
movq %r14, %rsi
movq %r13, %rdx
callq 0x22e0
addq 0x10(%rsp), %r13
movq %r13, 0x10(%rsp)
movq 0x20(%rsp), %rax
movb $0x0, (%rax,%r13)
leaq 0x148(%rsp), %rsi
movq %rbx, %rdi
callq 0x2e7c
testl %eax, %eax
movl 0x80(%rsp), %r15d
js 0x129c5
cmpl $0x0, 0x170(%rsp)
je 0x12928
movsd 0x148(%rsp), %xmm0
movsd 0x150(%rsp), %xmm1
movsd 0x158(%rsp), %xmm2
movsd 0x160(%rsp), %xmm3
leaq 0x8105(%rip), %rsi      # 0x1aa21
leaq 0x10(%rsp), %rdi
movb $0x4, %al
callq 0x7328
movl 0x168(%rsp), %eax
movl 0x174(%rsp), %edx
movl 0x178(%rsp), %ecx
movl 0x17c(%rsp), %r8d
movl 0x180(%rsp), %r9d
movl %eax, (%rsp)
leaq 0x808d(%rip), %rsi      # 0x1a9e4
leaq 0x10(%rsp), %r14
movq %r14, %rdi
xorl %eax, %eax
callq 0x7328
movl 0x178(%rsp), %eax
addl 0x174(%rsp), %eax
addl 0x17c(%rsp), %eax
addl 0x180(%rsp), %eax
xorps %xmm0, %xmm0
cvtsi2ss %eax, %xmm0
movss 0x10(%rbx), %xmm1
divss %xmm0, %xmm1
xorps %xmm0, %xmm0
cvtss2sd %xmm1, %xmm0
leaq 0x8c95(%rip), %rsi      # 0x1b635
movq %r14, %rdi
movb $0x1, %al
callq 0x7328
testl %r15d, %r15d
je 0x129c5
leaq 0x8c87(%rip), %rsi      # 0x1b63d
leaq 0x10(%rsp), %rdi
movl %r15d, %edx
xorl %eax, %eax
callq 0x7328
movl 0xa8(%rsp), %edi
movl %edi, %eax
addl %ebp, %eax
je 0x129f3
movl 0xa0(%rsp), %esi
movl %ebp, %edx
callq 0x1064d
leaq 0x8c5e(%rip), %rsi      # 0x1b645
leaq 0x10(%rsp), %rdi
movb $0x1, %al
callq 0x7328
movq 0x10(%rsp), %rax
incq %rax
cmpq 0x18(%rsp), %rax
jb 0x12a4a
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)
leaq 0x10(%rsp), %r13
movq (%r13), %rax
movq 0x10(%r13), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, (%r13)
xorl %edx, %edx
movb %dl, (%rcx,%rax)
movq (%r13), %rax
movq 0x10(%r13), %rcx
movb %dl, (%rcx,%rax)
leaq 0x672a(%rip), %rsi      # 0x191a0
movq %r13, %rdi
callq 0xcdb9
leaq 0x7fb5(%rip), %rsi      # 0x1aa3a
movq %r13, %rdi
callq 0xcdb9
movq 0x40(%rbx), %r14
movq %r14, %rdi
callq 0x2180
movq (%r13), %rcx
movslq %eax, %r12
leaq (%rcx,%r12), %rax
incq %rax
cmpq 0x8(%r13), %rax
jb 0x12af5
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 0x20(%rsp), %rdi
addq 0x10(%rsp), %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), %rax
incq %rax
cmpq 0x18(%rsp), %rax
jb 0x12b75
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), %rax
movq 0x20(%rsp), %rcx
leaq 0x1(%rax), %rdx
movq %rdx, 0x10(%rsp)
xorl %edx, %edx
movb %dl, (%rcx,%rax)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movb %dl, (%rcx,%rax)
movq 0x18(%rbx), %rdi
callq 0x2060
movl 0x18(%rsp), %eax
movl %eax, 0xc(%rbx)
movl 0x10(%rsp), %eax
movl %eax, 0x8(%rbx)
movq 0x20(%rsp), %rax
movq %rax, 0x18(%rbx)
movq %rbx, %rdi
callq 0xb77e
movl 0x58(%rsp), %eax
addq $0x1f8, %rsp            # imm = 0x1F8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x89b2(%rip), %rdi      # 0x1b591
leaq 0x894d(%rip), %rsi      # 0x1b533
leaq 0x89b4(%rip), %rcx      # 0x1b5a1
movl $0x16e, %edx            # imm = 0x16E
callq 0x21d0
callq 0x2acf
movq %r12, %rdi
callq 0x2aab