// File: schneebergerlab[P]DrLink/detect_recombsite.cpp
// Function: read_chr_var(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>, std::multimap<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, iMARKER, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, iMARKER>>>*)
bool read_chr_var(string vcffilename, map<string, string> knownMarker, multimap<string, iMARKER>* moleculeSet)
{
    // this function collects variants specific to chr from subfile_chr_x_longranger_variants.vcf.gz
    igzstream  fp;
    fp.open(vcffilename.c_str());
    if(!fp.good())
    {
        cout << "   Error: cannot open vcf file " 
             << vcffilename 
             << ". " 
             << endl;
        return false;
    }
    //
    unsigned long snpnum        = 0;
    unsigned long delnum        = 0;
    unsigned long insnum        = 0;
    unsigned long lineNum       = 0;
    unsigned long mkrNumChr     = 0;
    unsigned long snpnum_all    = 0;
    unsigned long delnum_all    = 0;
    unsigned long insnum_all    = 0;
    unsigned long mkrNumChr_all = 0;    
    cout << "   Info: only markers with coverage in [" 
         << minVarCov << "x, " << maxVarCov << "x] will be recorded (snps/1-bp indels considered). " 
         << endl;
    while(fp.good())
    {
        string line("");
        getline(fp, line);
        if(line.size()==0 || line[0]=='#' || line[0]=='*') continue;
               
        lineNum ++;
        if(lineNum%100000 == 0) cout << "   Info: " 
                                     << lineNum     << "th var of " 
                                     << vcffilename << "..." 
                                     << endl;
        vector<string> lineinfo = split_string(line, '\t');
        if(lineinfo.size() < 10)
        {
            cout << "   Warning: skip line due to insufficient cell info: " << line << endl; 
            continue;
        }
        //
        if(lineinfo[4].find(",")!=std::string::npos)
        {
            continue; // multiple alternative allele; skip!
        }
        //
        if(lineinfo[6].compare("PASS") != 0)
        {
            // caution: USED: low-quality variation calls - 2018-06-07
            // check: https://support.10xgenomics.com/genome-exome/software/pipelines/latest/output/vcf
            // continue;
        }
        // get barcodes related to marker; especially check het-barcodes before any filtering
        vector<string> varBarcodes;   
        vector<string> refBarcodes;         
        if(!get_var_ref_barcode(lineinfo[8], 
                                lineinfo[9], 
                                &varBarcodes, 
                                &refBarcodes, 
                                lineinfo[0], 
                                lineinfo[1], 
                                &HeteroBarcode))
        {
            cout << "   Warning: unexpected barcode info at " << line << endl;
            continue;
        }
        // key= chr#pos#ref#alt: snp: 1#1000#G#A, del: 1#1000#G#-, ins: 1#1000#-#G
        string key;
        string itype("snp");
        std::stringstream dss;
        dss.str("");        
        if(lineinfo[3].size()==2 && lineinfo[4].size()==1) // 1-bp del
        {
            unsigned long dpos = strtoul(lineinfo[1].c_str(), NULL, 0);
            dpos ++;
            dss << dpos;
            key   = lineinfo[0] + "#" + dss.str() + "#" + lineinfo[3].substr(1,1) + "#" + "-";
            itype = "del";
        }
        else
        if(lineinfo[3].size()==1 && lineinfo[4].size()==2) // 1-bp ins
        {
            dss << lineinfo[1];
            key   = lineinfo[0] + "#" + dss.str() + "#" + "-" + "#" + lineinfo[4].substr(1,1);
            itype = "ins";            
        }
        else
        if(lineinfo[3].size()==1 && lineinfo[4].size()==1) // snp
        {
            dss << lineinfo[1];
            key   = lineinfo[0] + "#" + dss.str() + "#" + lineinfo[3] + "#" + lineinfo[4];
        }
        else
        {
            // skip >=2bp non SNP variations/multiple alleles; // new 2018-06-16
            continue;
        }        
        //
        // all markers checked
        if(itype.compare("del")==0) delnum_all ++;
        else
        if(itype.compare("ins")==0) insnum_all ++;
        else
        if(itype.compare("snp")==0) snpnum_all ++;
        else ;
        mkrNumChr_all ++;        
        //
        bool isGiven = true;
        if(knownMarker.find(key) == knownMarker.end()) 
        {
            isGiven = false; // not in marker list; skip!
            continue;
        }        
        // check raw coverage on marker site - caution - only well-covered snps used as markers.
        size_t posDPsta = lineinfo[7].find("DP=");
        size_t posDPend = lineinfo[7].find(";", posDPsta);
        string posCov   = lineinfo[7].substr(posDPsta+3, posDPend - posDPsta - 3);
        
        // testing on allele coverage: 2018-04-11: sample A: avg 323+-323/4
        int allele_depth = strtoul(posCov.c_str(), NULL, 0);
        if(allele_depth<minVarCov || allele_depth>maxVarCov)
        {
            /*
            cout << "   Check: low-cov marker " << posCov << "x at " 
                 << lineinfo[0] << "\t" 
                 << lineinfo[1] << "\t" 
                 << lineinfo[3] << "\t"
                 << lineinfo[4] << endl;
            */
            continue;
        }
        // check observed allele frequency of markers: from AB <= SRF;SRR;SAF;SAR or RO/AO
        // SRF=55;SRR=62;SAF=43;SAR=53 ==> AB=(43+53)÷(43+53+55+62)
        double maf = 0; // allele frequency
        /*
        if(lineinfo[7].find("AB=") != std::string::npos)
        {
            size_t posABsta = lineinfo[7].find("AB=");
            size_t posABend = lineinfo[7].find(";", posABsta+1); 
            if(posABend == std::string::npos)
            {
                posABend = lineinfo[7].size()+1;
            }
            string ABstr    = lineinfo[7].substr(posABsta+3, posABend - posABsta - 3);
            maf             = atof(ABstr.c_str());           
        }
        else
        if(lineinfo[7].find("SRF=")!=std::string::npos &&
           lineinfo[7].find("SRR=")!=std::string::npos &&
           lineinfo[7].find("SAF=")!=std::string::npos &&
           lineinfo[7].find("SAR=")!=std::string::npos)
        {
            size_t posSRFsta = lineinfo[7].find("SRF=");
            size_t posSRFend = lineinfo[7].find(";", posSRFsta+1);
            if(posSRFend == std::string::npos)
            {
                posSRFend = lineinfo[7].size()+1;
            }
            string SRFCov    = lineinfo[7].substr(posSRFsta+4, posSRFend - posSRFsta - 4);
            double SRFcnt    = atof(SRFCov.c_str());
            //
            size_t posSRRsta = lineinfo[7].find("SRR=");
            size_t posSRRend = lineinfo[7].find(";", posSRRsta+1);
            if(posSRRend == std::string::npos)
            {
                posSRRend = lineinfo[7].size()+1;
            }
            string SRRCov    = lineinfo[7].substr(posSRRsta+4, posSRRend - posSRRsta - 4);  
            double SRRcnt    = atof(SRRCov.c_str());
            //
            size_t posSAFsta = lineinfo[7].find("SAF=");
            size_t posSAFend = lineinfo[7].find(";", posSAFsta+1);
            if(posSAFend == std::string::npos)
            {
                posSAFend = lineinfo[7].size()+1;
            }
            string SAFCov    = lineinfo[7].substr(posSAFsta+4, posSAFend - posSAFsta - 4);
            double SAFcnt    = atof(SAFCov.c_str());
            //
            size_t posSARsta = lineinfo[7].find("SAR=");
            size_t posSARend = lineinfo[7].find(";", posSARsta+1);
            if(posSARend == std::string::npos)
            {
                posSARend = lineinfo[7].size()+1;
            }
            string SARCov    = lineinfo[7].substr(posSARsta+4, posSARend - posSARsta - 4);
            double SARcnt    = atof(SARCov.c_str());
            maf              = (SAFcnt+SARcnt)/(SRFcnt+SRRcnt+SAFcnt+SARcnt);
            maf              = round(maf*1000000)/1000000;
        }
        else
        */ // the above is not used, as sometimes AB is 0 from longranger, but there are observed reads! why 20180629?
        if(lineinfo[7].find("RO=")!=std::string::npos && 
           lineinfo[7].find("AO=")!=std::string::npos)
        {
            size_t posROsta = lineinfo[7].find("RO=");
            size_t posROend = lineinfo[7].find(";", posROsta+1);
            if(posROend == std::string::npos)
            {
                posROend = lineinfo[7].size()+1;
            }
            string ROCov    = lineinfo[7].substr(posROsta+3, posROend - posROsta - 3);        
            size_t posAOsta = lineinfo[7].find("AO=");
            size_t posAOend = lineinfo[7].find(";", posAOsta+1);
            if(posAOend == std::string::npos)
            {
                posAOend = lineinfo[7].size()+1;
            }
            string AOCov    = lineinfo[7].substr(posAOsta+3, posAOend - posAOsta - 3);
            maf             = atof( AOCov.c_str() )/( atof( AOCov.c_str() ) + atof( ROCov.c_str() ) );
            maf             = round(maf*1000000)/1000000;
        }
        if(maf<minVarAF || maf>maxVarAF) // TODO: control with maximum as well! - 2018-03-12
        {
            /*
             cout << "   Check: skipped AF at " 
                  << lineinfo[0] << "\t" 
                  << lineinfo[1] << "\twith RO,AO:"
                  << ROCov       << ","             << AOCov << endl;     
            */
            continue; // caution: only vcf-variations with af>=0.2 used as markers.
        }
        // insert molecule info:
        // cluster barcodes in vcf into molecules
        vector<string>::iterator bcitr;
        vector<string>::iterator bcitr_end;
        // alternative from donor parent
        bcitr     = varBarcodes.begin();
        bcitr_end = varBarcodes.end();            
        while(bcitr != bcitr_end)
        {
            iMARKER tmpmkr;
            //tmpmkr.pos  = strtoul(lineinfo[1].c_str(), NULL, 0);
            tmpmkr.pos    = strtoul(dss.str().c_str(), NULL, 0);
            if(isGiven == true)
            {
                tmpmkr.from   = knownMarker[key];
            }
            else
            {
                tmpmkr.from   = "2";
            }
            tmpmkr.af     = maf;
            tmpmkr.cov    = posCov;
            tmpmkr.isGiven= isGiven;
            string bckey  = lineinfo[0] + "#" + *bcitr; // molecule id at chr: chr#bc
            (*moleculeSet).insert(std::pair<string, iMARKER>(bckey, tmpmkr));
            bcitr++;
        }
        // reference from another
        bcitr     = refBarcodes.begin();
        bcitr_end = refBarcodes.end();
        while(bcitr != bcitr_end)
        {
            iMARKER tmpmkr;
            //tmpmkr.pos  = strtoul(lineinfo[1].c_str(), NULL, 0);
            tmpmkr.pos    = strtoul(dss.str().c_str(), NULL, 0);
            if(isGiven == true && knownMarker[key].compare("1") == 0)
            {
                tmpmkr.from = "2";
            }
            else
            {
                tmpmkr.from = "1";
            }
            tmpmkr.af     = maf;
            tmpmkr.cov    = posCov;
            tmpmkr.isGiven= isGiven;                
            string bckey  = lineinfo[0] + "#" + *bcitr; // molecule id at chr: chr#bc
            (*moleculeSet).insert(std::pair<string, iMARKER>(bckey, tmpmkr));
            bcitr++;
        }
        // number of informative markers of different types intersecting given list
        if(isGiven == true)
        {
            if(itype.compare("del")==0) delnum ++;
            else
            if(itype.compare("ins")==0) insnum ++;
            else
            if(itype.compare("snp")==0) snpnum ++;
            else ;            
            mkrNumChr ++;
        }
    }
    cout << "   Info: number of collected markers    (excluding unknown) with cov>="  << minVarCov << "x: "  
         <<               mkrNumChr                           << endl;
    cout << "         "<< delnum        << " 1-bp deletions"  << endl;
    cout << "         "<< insnum        << " 1-bp insertions" << endl;
    cout << "         "<< snpnum        << "      snps"       << endl;
    cout << "   Info: number of checked   variations (including unknown) with cov>="  << minVarCov << "x: " 
         <<               mkrNumChr_all                       << endl;
    cout << "         "<< delnum_all    << " 1-bp deletions"  << endl;
    cout << "         "<< insnum_all    << " 1-bp insertions" << endl;
    cout << "         "<< snpnum_all    << "      snps"       << endl;    
    // close files
    fp.close();
    return true;
}

// Assembly:
subq $0xf08, %rsp            # imm = 0xF08
movq %rdi, 0x220(%rsp)
movq %rsi, 0x218(%rsp)
movq %rdi, 0xef8(%rsp)
movq %rsi, 0xef0(%rsp)
movq %rdx, 0xee8(%rsp)
leaq 0xc48(%rsp), %rdi
movq %rdi, 0x228(%rsp)
callq 0xf8b0
movq 0x220(%rsp), %rdi
callq 0x51d0
movq 0x228(%rsp), %rdi
movq %rax, %rsi
movl $0x8, %edx
callq 0xf9c0
jmp 0x26ec8
movq 0xc48(%rsp), %rax
movq -0x18(%rax), %rax
leaq 0xc48(%rsp,%rax), %rdi
callq 0x5760
movb %al, 0x217(%rsp)
jmp 0x26eea
movb 0x217(%rsp), %al
testb $0x1, %al
jne 0x26f9c
jmp 0x26efb
movq 0x5e0c6(%rip), %rdi     # 0x84fc8
leaq 0x41ffd(%rip), %rsi     # 0x68f06
callq 0x5460
movq %rax, 0x208(%rsp)
jmp 0x26f18
movq 0x220(%rsp), %rsi
movq 0x208(%rsp), %rdi
callq 0x53e0
movq %rax, 0x200(%rsp)
jmp 0x26f37
movq 0x200(%rsp), %rdi
leaq 0x4203e(%rip), %rsi     # 0x68f84
callq 0x5460
movq %rax, 0x1f8(%rsp)
jmp 0x26f55
movq 0x1f8(%rsp), %rdi
movq 0x5e04c(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0x26f6b
movb $0x0, 0xf07(%rsp)
movl $0x1, 0xc38(%rsp)
jmp 0x29187
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x291a5
movq $0x0, 0xc30(%rsp)
movq $0x0, 0xc28(%rsp)
movq $0x0, 0xc20(%rsp)
movq $0x0, 0xc18(%rsp)
movq $0x0, 0xc10(%rsp)
movq $0x0, 0xc08(%rsp)
movq $0x0, 0xc00(%rsp)
movq $0x0, 0xbf8(%rsp)
movq $0x0, 0xbf0(%rsp)
movq 0x5dfb9(%rip), %rdi     # 0x84fc8
leaq 0x41f10(%rip), %rsi     # 0x68f26
callq 0x5460
movq %rax, 0x1f0(%rsp)
jmp 0x27025
movq 0x1f0(%rsp), %rdi
movl 0x5e43d(%rip), %esi     # 0x85470
callq 0x5790
movq %rax, 0x1e8(%rsp)
jmp 0x27042
movq 0x1e8(%rsp), %rdi
leaq 0x41efe(%rip), %rsi     # 0x68f4f
callq 0x5460
movq %rax, 0x1e0(%rsp)
jmp 0x27060
movq 0x1e0(%rsp), %rdi
movl 0x5e406(%rip), %esi     # 0x85474
callq 0x5790
movq %rax, 0x1d8(%rsp)
jmp 0x2707d
movq 0x1d8(%rsp), %rdi
leaq 0x41ec7(%rip), %rsi     # 0x68f53
callq 0x5460
movq %rax, 0x1d0(%rsp)
jmp 0x2709b
movq 0x1d0(%rsp), %rdi
movq 0x5df06(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0x270b1
jmp 0x270b3
movq 0xc48(%rsp), %rax
movq -0x18(%rax), %rax
leaq 0xc48(%rsp,%rax), %rdi
callq 0x5760
movb %al, 0x1cf(%rsp)
jmp 0x270d5
movb 0x1cf(%rsp), %al
testb $0x1, %al
jne 0x270e5
jmp 0x28e05
leaq 0xbcf(%rsp), %rdi
movq %rdi, 0x1c0(%rsp)
callq 0x57c0
movq 0x1c0(%rsp), %rdx
leaq 0x43a8b(%rip), %rsi     # 0x6ab94
leaq 0xbd0(%rsp), %rdi
callq 0x6880
jmp 0x27118
leaq 0xbcf(%rsp), %rdi
callq 0x54d0
leaq 0xdd0(%rsp), %rdi
leaq 0xbd0(%rsp), %rsi
callq 0x50c0
jmp 0x2713c
leaq 0xbd0(%rsp), %rdi
callq 0x5310
cmpq $0x0, %rax
je 0x271a5
xorl %eax, %eax
movl %eax, %esi
leaq 0xbd0(%rsp), %rdi
callq 0x5880
movq %rax, 0x1b8(%rsp)
jmp 0x2716a
movq 0x1b8(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x23, %eax
je 0x271a5
xorl %eax, %eax
movl %eax, %esi
leaq 0xbd0(%rsp), %rdi
callq 0x5880
movq %rax, 0x1b0(%rsp)
jmp 0x27195
movq 0x1b0(%rsp), %rax
movsbl (%rax), %eax
cmpl $0x2a, %eax
jne 0x271f4
movl $0x2, 0xc38(%rsp)
jmp 0x28d74
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
leaq 0xbcf(%rsp), %rdi
callq 0x54d0
jmp 0x291a5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x28df3
movq 0xc18(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xc18(%rsp)
movq 0xc18(%rsp), %rax
movl $0x186a0, %ecx          # imm = 0x186A0
xorl %edx, %edx
divq %rcx
cmpq $0x0, %rdx
jne 0x272d3
movq 0x5dd9d(%rip), %rdi     # 0x84fc8
leaq 0x3fc74(%rip), %rsi     # 0x66ea6
callq 0x5460
movq %rax, 0x1a8(%rsp)
jmp 0x27241
movq 0x1a8(%rsp), %rdi
movq 0xc18(%rsp), %rsi
callq 0x50f0
movq %rax, 0x1a0(%rsp)
jmp 0x27260
movq 0x1a0(%rsp), %rdi
leaq 0x41d18(%rip), %rsi     # 0x68f87
callq 0x5460
movq %rax, 0x198(%rsp)
jmp 0x2727e
movq 0x220(%rsp), %rsi
movq 0x198(%rsp), %rdi
callq 0x53e0
movq %rax, 0x190(%rsp)
jmp 0x2729d
movq 0x190(%rsp), %rdi
leaq 0x3f177(%rip), %rsi     # 0x66423
callq 0x5460
movq %rax, 0x188(%rsp)
jmp 0x272bb
movq 0x188(%rsp), %rdi
movq 0x5dce6(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0x272d1
jmp 0x272d3
movb $0x9, 0xbaf(%rsp)
leaq 0xbb0(%rsp), %rdi
leaq 0xbd0(%rsp), %rsi
leaq 0xbaf(%rsp), %rdx
callq 0x60790
jmp 0x272fa
leaq 0xbb0(%rsp), %rdi
callq 0xfbb0
cmpq $0xa, %rax
jae 0x27388
movq 0x5dcb4(%rip), %rdi     # 0x84fc8
leaq 0x41c77(%rip), %rsi     # 0x68f92
callq 0x5460
movq %rax, 0x180(%rsp)
jmp 0x2732a
movq 0x180(%rsp), %rdi
leaq 0xbd0(%rsp), %rsi
callq 0x53e0
movq %rax, 0x178(%rsp)
jmp 0x27349
movq 0x178(%rsp), %rdi
movq 0x5dc58(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0x2735f
movl $0x2, 0xc38(%rsp)
jmp 0x28d67
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x28de6
leaq 0xbb0(%rsp), %rdi
movl $0x4, %esi
callq 0x88f0
movq %rax, %rdi
leaq 0x3fafc(%rip), %rsi     # 0x66ea0
xorl %eax, %eax
movl %eax, %edx
callq 0x5870
cmpq $-0x1, %rax
je 0x273c3
movl $0x2, 0xc38(%rsp)
jmp 0x28d67
leaq 0xbb0(%rsp), %rdi
movl $0x6, %esi
callq 0x88f0
movq %rax, %rdi
leaq 0x41be9(%rip), %rsi     # 0x68fc8
callq 0x5140
cmpl $0x0, %eax
je 0x273eb
jmp 0x273eb
leaq 0xb90(%rsp), %rdi
callq 0x2e460
leaq 0xb78(%rsp), %rdi
callq 0x2e460
leaq 0xbb0(%rsp), %rdi
movl $0x8, %esi
callq 0x88f0
movq %rax, %rsi
leaq 0xb58(%rsp), %rdi
callq 0x51f0
jmp 0x27429
leaq 0xbb0(%rsp), %rdi
movl $0x9, %esi
callq 0x88f0
movq %rax, %rsi
leaq 0xb38(%rsp), %rdi
callq 0x51f0
jmp 0x2744d
xorl %eax, %eax
movl %eax, %esi
leaq 0xbb0(%rsp), %rdi
callq 0x88f0
movq %rax, %rsi
leaq 0xb18(%rsp), %rdi
callq 0x51f0
jmp 0x27470
leaq 0xbb0(%rsp), %rdi
movl $0x1, %esi
callq 0x88f0
movq %rax, %rsi
leaq 0xaf8(%rsp), %rdi
callq 0x51f0
jmp 0x27494
leaq 0x5e01d(%rip), %rcx     # 0x854b8
movq %rsp, %rax
movq %rcx, (%rax)
leaq 0xb58(%rsp), %rdi
leaq 0xb38(%rsp), %rsi
leaq 0xb90(%rsp), %rdx
leaq 0xb78(%rsp), %rcx
leaq 0xb18(%rsp), %r8
leaq 0xaf8(%rsp), %r9
callq 0x2bed0
movb %al, 0x177(%rsp)
jmp 0x274df
movb 0x177(%rsp), %al
xorb $-0x1, %al
movb %al, 0x176(%rsp)
leaq 0xaf8(%rsp), %rdi
callq 0x58b8
leaq 0xb18(%rsp), %rdi
callq 0x58b8
leaq 0xb38(%rsp), %rdi
callq 0x58b8
leaq 0xb58(%rsp), %rdi
callq 0x58b8
movb 0x176(%rsp), %al
testb $0x1, %al
jne 0x27533
jmp 0x2763d
movq 0x5da8e(%rip), %rdi     # 0x84fc8
leaq 0x41a8c(%rip), %rsi     # 0x68fcd
callq 0x5460
movq %rax, 0x168(%rsp)
jmp 0x27550
movq 0x168(%rsp), %rdi
leaq 0xbd0(%rsp), %rsi
callq 0x53e0
movq %rax, 0x160(%rsp)
jmp 0x2756f
movq 0x160(%rsp), %rdi
movq 0x5da32(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0x27585
movl $0x2, 0xc38(%rsp)
jmp 0x28d4d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x28dcc
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x2762b
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x2761e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x27611
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
leaq 0xaf8(%rsp), %rdi
callq 0x58b8
leaq 0xb18(%rsp), %rdi
callq 0x58b8
leaq 0xb38(%rsp), %rdi
callq 0x58b8
leaq 0xb58(%rsp), %rdi
callq 0x58b8
jmp 0x28dcc
leaq 0xad8(%rsp), %rdi
callq 0x55e0
leaq 0xab7(%rsp), %rdi
movq %rdi, 0x158(%rsp)
callq 0x57c0
movq 0x158(%rsp), %rdx
leaq 0x41987(%rip), %rsi     # 0x68ff5
leaq 0xab8(%rsp), %rdi
callq 0x6880
jmp 0x2767d
leaq 0xab7(%rsp), %rdi
callq 0x54d0
leaq 0x928(%rsp), %rdi
callq 0x5320
jmp 0x27699
leaq 0x907(%rsp), %rdi
movq %rdi, 0x150(%rsp)
callq 0x57c0
movq 0x150(%rsp), %rdx
leaq 0x434d7(%rip), %rsi     # 0x6ab94
leaq 0x908(%rsp), %rdi
callq 0x6880
jmp 0x276cc
leaq 0x928(%rsp), %rdi
leaq 0x908(%rsp), %rsi
callq 0x5510
jmp 0x276e3
leaq 0x908(%rsp), %rdi
callq 0x58b8
leaq 0x907(%rsp), %rdi
callq 0x54d0
leaq 0xbb0(%rsp), %rdi
movl $0x3, %esi
callq 0x88f0
movq %rax, %rdi
callq 0x5310
cmpq $0x2, %rax
jne 0x27ae4
leaq 0xbb0(%rsp), %rdi
movl $0x4, %esi
callq 0x88f0
movq %rax, %rdi
callq 0x5310
cmpq $0x1, %rax
jne 0x27ae4
leaq 0xbb0(%rsp), %rdi
movl $0x1, %esi
callq 0x88f0
movq %rax, %rdi
callq 0x51d0
movq %rax, %rdi
xorl %edx, %edx
movl %edx, %esi
callq 0x5160
movq %rax, 0x8f8(%rsp)
movq 0x8f8(%rsp), %rax
incq %rax
movq %rax, 0x8f8(%rsp)
leaq 0x938(%rsp), %rdi
movq 0x8f8(%rsp), %rsi
callq 0x50f0
jmp 0x2779d
xorl %eax, %eax
movl %eax, %esi
leaq 0xbb0(%rsp), %rdi
callq 0x88f0
movq %rax, %rsi
leaq 0x438aa(%rip), %rdx     # 0x6b062
leaq 0x838(%rsp), %rdi
callq 0xfae0
jmp 0x277c7
leaq 0x818(%rsp), %rdi
leaq 0x928(%rsp), %rsi
callq 0x5440
jmp 0x277de
leaq 0x858(%rsp), %rdi
leaq 0x838(%rsp), %rsi
leaq 0x818(%rsp), %rdx
callq 0xf9f0
jmp 0x277fd
leaq 0x4385e(%rip), %rdx     # 0x6b062
leaq 0x878(%rsp), %rdi
leaq 0x858(%rsp), %rsi
callq 0x8760
jmp 0x2781b
leaq 0xbb0(%rsp), %rdi
movl $0x3, %esi
callq 0x88f0
movq %rax, %rsi
leaq 0x7f8(%rsp), %rdi
movl $0x1, %ecx
movq %rcx, %rdx
callq 0x5490
jmp 0x27847
leaq 0x898(%rsp), %rdi
leaq 0x878(%rsp), %rsi
leaq 0x7f8(%rsp), %rdx
callq 0xf9f0
jmp 0x27866
leaq 0x437f5(%rip), %rdx     # 0x6b062
leaq 0x8b8(%rsp), %rdi
leaq 0x898(%rsp), %rsi
callq 0x8760
jmp 0x27884
leaq 0x3ed23(%rip), %rdx     # 0x665ae
leaq 0x8d8(%rsp), %rdi
leaq 0x8b8(%rsp), %rsi
callq 0x8760
jmp 0x278a2
leaq 0xad8(%rsp), %rdi
leaq 0x8d8(%rsp), %rsi
movq %rsi, 0x148(%rsp)
callq 0x5550
movq 0x148(%rsp), %rdi
callq 0x58b8
leaq 0x8b8(%rsp), %rdi
callq 0x58b8
leaq 0x898(%rsp), %rdi
callq 0x58b8
leaq 0x7f8(%rsp), %rdi
callq 0x58b8
leaq 0x878(%rsp), %rdi
callq 0x58b8
leaq 0x858(%rsp), %rdi
callq 0x58b8
leaq 0x818(%rsp), %rdi
callq 0x58b8
leaq 0x838(%rsp), %rdi
callq 0x58b8
leaq 0x416cb(%rip), %rsi     # 0x68ff9
leaq 0xab8(%rsp), %rdi
callq 0x55d0
jmp 0x2793d
jmp 0x280da
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
leaq 0xab7(%rsp), %rdi
callq 0x54d0
jmp 0x28dbf
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x28db2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x279b8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
leaq 0x908(%rsp), %rdi
callq 0x58b8
leaq 0x907(%rsp), %rdi
callq 0x54d0
jmp 0x28da5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x28da5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x27ad2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x27ac5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x27ab8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x27aab
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x27a9e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x27a91
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
leaq 0x8b8(%rsp), %rdi
callq 0x58b8
leaq 0x898(%rsp), %rdi
callq 0x58b8
leaq 0x7f8(%rsp), %rdi
callq 0x58b8
leaq 0x878(%rsp), %rdi
callq 0x58b8
leaq 0x858(%rsp), %rdi
callq 0x58b8
leaq 0x818(%rsp), %rdi
callq 0x58b8
leaq 0x838(%rsp), %rdi
callq 0x58b8
jmp 0x28da5
leaq 0xbb0(%rsp), %rdi
movl $0x3, %esi
callq 0x88f0
movq %rax, %rdi
callq 0x5310
cmpq $0x1, %rax
jne 0x27e06
leaq 0xbb0(%rsp), %rdi
movl $0x4, %esi
callq 0x88f0
movq %rax, %rdi
callq 0x5310
cmpq $0x2, %rax
jne 0x27e06
leaq 0x938(%rsp), %rax
movq %rax, 0x140(%rsp)
leaq 0xbb0(%rsp), %rdi
movl $0x1, %esi
callq 0x88f0
movq 0x140(%rsp), %rdi
movq %rax, %rsi
callq 0x53e0
jmp 0x27b60
xorl %eax, %eax
movl %eax, %esi
leaq 0xbb0(%rsp), %rdi
callq 0x88f0
movq %rax, %rsi
leaq 0x434e7(%rip), %rdx     # 0x6b062
leaq 0x738(%rsp), %rdi
callq 0xfae0
jmp 0x27b8a
leaq 0x718(%rsp), %rdi
leaq 0x928(%rsp), %rsi
callq 0x5440
jmp 0x27ba1
leaq 0x758(%rsp), %rdi
leaq 0x738(%rsp), %rsi
leaq 0x718(%rsp), %rdx
callq 0xf9f0
jmp 0x27bc0
leaq 0x4349b(%rip), %rdx     # 0x6b062
leaq 0x778(%rsp), %rdi
leaq 0x758(%rsp), %rsi
callq 0x8760
jmp 0x27bde
leaq 0x3e9c9(%rip), %rdx     # 0x665ae
leaq 0x798(%rsp), %rdi
leaq 0x778(%rsp), %rsi
callq 0x8760
jmp 0x27bfc
leaq 0x4345f(%rip), %rdx     # 0x6b062
leaq 0x7b8(%rsp), %rdi
leaq 0x798(%rsp), %rsi
callq 0x8760
jmp 0x27c1a
leaq 0xbb0(%rsp), %rdi
movl $0x4, %esi
callq 0x88f0
movq %rax, %rsi
leaq 0x6f8(%rsp), %rdi
movl $0x1, %ecx
movq %rcx, %rdx
callq 0x5490
jmp 0x27c46
leaq 0x7d8(%rsp), %rdi
leaq 0x7b8(%rsp), %rsi
leaq 0x6f8(%rsp), %rdx
callq 0xf9f0
jmp 0x27c65
leaq 0xad8(%rsp), %rdi
leaq 0x7d8(%rsp), %rsi
movq %rsi, 0x138(%rsp)
callq 0x5550
movq 0x138(%rsp), %rdi
callq 0x58b8
leaq 0x6f8(%rsp), %rdi
callq 0x58b8
leaq 0x7b8(%rsp), %rdi
callq 0x58b8
leaq 0x798(%rsp), %rdi
callq 0x58b8
leaq 0x778(%rsp), %rdi
callq 0x58b8
leaq 0x758(%rsp), %rdi
callq 0x58b8
leaq 0x718(%rsp), %rdi
callq 0x58b8
leaq 0x738(%rsp), %rdi
callq 0x58b8
leaq 0x4130c(%rip), %rsi     # 0x68ffd
leaq 0xab8(%rsp), %rdi
callq 0x55d0
jmp 0x27d00
jmp 0x280d8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x27df4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x27de7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x27dda
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x27dcd
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x27dc0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x27db3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
leaq 0x6f8(%rsp), %rdi
callq 0x58b8
leaq 0x7b8(%rsp), %rdi
callq 0x58b8
leaq 0x798(%rsp), %rdi
callq 0x58b8
leaq 0x778(%rsp), %rdi
callq 0x58b8
leaq 0x758(%rsp), %rdi
callq 0x58b8
leaq 0x718(%rsp), %rdi
callq 0x58b8
leaq 0x738(%rsp), %rdi
callq 0x58b8
jmp 0x28da5
leaq 0xbb0(%rsp), %rdi
movl $0x3, %esi
callq 0x88f0
movq %rax, %rdi
callq 0x5310
cmpq $0x1, %rax
jne 0x280c6
leaq 0xbb0(%rsp), %rdi
movl $0x4, %esi
callq 0x88f0
movq %rax, %rdi
callq 0x5310
cmpq $0x1, %rax
jne 0x280c6
leaq 0x938(%rsp), %rax
movq %rax, 0x130(%rsp)
leaq 0xbb0(%rsp), %rdi
movl $0x1, %esi
callq 0x88f0
movq 0x130(%rsp), %rdi
movq %rax, %rsi
callq 0x53e0
jmp 0x27e82
xorl %eax, %eax
movl %eax, %esi
leaq 0xbb0(%rsp), %rdi
callq 0x88f0
movq %rax, %rsi
leaq 0x431c5(%rip), %rdx     # 0x6b062
leaq 0x638(%rsp), %rdi
callq 0xfae0
jmp 0x27eac
leaq 0x618(%rsp), %rdi
leaq 0x928(%rsp), %rsi
callq 0x5440
jmp 0x27ec3
leaq 0x658(%rsp), %rdi
leaq 0x638(%rsp), %rsi
leaq 0x618(%rsp), %rdx
callq 0xf9f0
jmp 0x27ee2
leaq 0x43179(%rip), %rdx     # 0x6b062
leaq 0x678(%rsp), %rdi
leaq 0x658(%rsp), %rsi
callq 0x8760
jmp 0x27f00
leaq 0xbb0(%rsp), %rdi
movl $0x3, %esi
callq 0x88f0
movq %rax, %rdx
leaq 0x698(%rsp), %rdi
leaq 0x678(%rsp), %rsi
callq 0xfbf0
jmp 0x27f2c
leaq 0x4312f(%rip), %rdx     # 0x6b062
leaq 0x6b8(%rsp), %rdi
leaq 0x698(%rsp), %rsi
callq 0x8760
jmp 0x27f4a
leaq 0xbb0(%rsp), %rdi
movl $0x4, %esi
callq 0x88f0
movq %rax, %rdx
leaq 0x6d8(%rsp), %rdi
leaq 0x6b8(%rsp), %rsi
callq 0xfbf0
jmp 0x27f76
leaq 0xad8(%rsp), %rdi
leaq 0x6d8(%rsp), %rsi
callq 0x5550
leaq 0x6d8(%rsp), %rdi
callq 0x58b8
leaq 0x6b8(%rsp), %rdi
callq 0x58b8
leaq 0x698(%rsp), %rdi
callq 0x58b8
leaq 0x678(%rsp), %rdi
callq 0x58b8
leaq 0x658(%rsp), %rdi
callq 0x58b8
leaq 0x618(%rsp), %rdi
callq 0x58b8
leaq 0x638(%rsp), %rdi
callq 0x58b8
jmp 0x280d6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x280b4
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x280a7
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x2809a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x2808d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x28080
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
leaq 0x6b8(%rsp), %rdi
callq 0x58b8
leaq 0x698(%rsp), %rdi
callq 0x58b8
leaq 0x678(%rsp), %rdi
callq 0x58b8
leaq 0x658(%rsp), %rdi
callq 0x58b8
leaq 0x618(%rsp), %rdi
callq 0x58b8
leaq 0x638(%rsp), %rdi
callq 0x58b8
jmp 0x28da5
movl $0x2, 0xc38(%rsp)
jmp 0x28d26
jmp 0x280d8
jmp 0x280da
leaq 0xab8(%rsp), %rdi
leaq 0x40f10(%rip), %rsi     # 0x68ff9
callq 0x5140
cmpl $0x0, %eax
jne 0x28109
movq 0xc00(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xc00(%rsp)
jmp 0x2816d
leaq 0xab8(%rsp), %rdi
leaq 0x40ee5(%rip), %rsi     # 0x68ffd
callq 0x5140
cmpl $0x0, %eax
jne 0x28138
movq 0xbf8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xbf8(%rsp)
jmp 0x2816b
leaq 0xab8(%rsp), %rdi
leaq 0x40eae(%rip), %rsi     # 0x68ff5
callq 0x5140
cmpl $0x0, %eax
jne 0x28167
movq 0xc08(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xc08(%rsp)
jmp 0x28169
jmp 0x28169
jmp 0x2816b
jmp 0x2816d
movq 0x218(%rsp), %rdi
movq 0xbf0(%rsp), %rax
incq %rax
movq %rax, 0xbf0(%rsp)
movb $0x1, 0x617(%rsp)
leaq 0xad8(%rsp), %rsi
callq 0x187a0
movq %rax, 0x128(%rsp)
jmp 0x281a7
movq 0x218(%rsp), %rdi
movq 0x128(%rsp), %rax
movq %rax, 0x608(%rsp)
callq 0x187f0
movq %rax, 0x600(%rsp)
leaq 0x608(%rsp), %rdi
leaq 0x600(%rsp), %rsi
callq 0x187d0
testb $0x1, %al
jne 0x281e7
jmp 0x281ff
movb $0x0, 0x617(%rsp)
movl $0x2, 0xc38(%rsp)
jmp 0x28d26
leaq 0xbb0(%rsp), %rdi
movq %rdi, 0x118(%rsp)
movl $0x7, %esi
movq %rsi, 0x120(%rsp)
callq 0x88f0
movq %rax, %rdi
leaq 0x40dd6(%rip), %rsi     # 0x69001
xorl %eax, %eax
movl %eax, %edx
callq 0x5870
movq 0x118(%rsp), %rdi
movq 0x120(%rsp), %rsi
movq %rax, 0x5f8(%rsp)
callq 0x88f0
movq %rax, %rdi
movq 0x5f8(%rsp), %rdx
leaq 0x4020e(%rip), %rsi     # 0x68471
callq 0x5870
movq 0x118(%rsp), %rdi
movq 0x120(%rsp), %rsi
movq %rax, 0x5f0(%rsp)
callq 0x88f0
movq %rax, %rsi
movq 0x5f8(%rsp), %rax
movq %rax, %rdx
addq $0x3, %rdx
movq 0x5f0(%rsp), %rcx
subq %rax, %rcx
addq $-0x3, %rcx
leaq 0x5d0(%rsp), %rdi
callq 0x5490
jmp 0x282b5
leaq 0x5d0(%rsp), %rdi
callq 0x51d0
movq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq 0x5160
movl %eax, 0x5cc(%rsp)
movl 0x5cc(%rsp), %eax
cmpl 0x5d18c(%rip), %eax     # 0x85470
jl 0x282f5
movl 0x5cc(%rsp), %eax
cmpl 0x5d181(%rip), %eax     # 0x85474
jle 0x28305
movl $0x2, 0xc38(%rsp)
jmp 0x28d19
xorps %xmm0, %xmm0
movsd %xmm0, 0x5c0(%rsp)
leaq 0xbb0(%rsp), %rdi
movl $0x7, %esi
callq 0x88f0
movq %rax, %rdi
leaq 0x40cd8(%rip), %rsi     # 0x69005
xorl %eax, %eax
movl %eax, %edx
callq 0x5870
cmpq $-0x1, %rax
je 0x28618
leaq 0xbb0(%rsp), %rdi
movl $0x7, %esi
callq 0x88f0
movq %rax, %rdi
leaq 0x40cad(%rip), %rsi     # 0x69009
xorl %eax, %eax
movl %eax, %edx
callq 0x5870
cmpq $-0x1, %rax
je 0x28618
leaq 0xbb0(%rsp), %rdi
movl $0x7, %esi
callq 0x88f0
movq %rax, %rdi
leaq 0x40c7a(%rip), %rsi     # 0x69005
xorl %eax, %eax
movl %eax, %edx
callq 0x5870
movq %rax, 0x5b8(%rsp)
leaq 0xbb0(%rsp), %rdi
movl $0x7, %esi
callq 0x88f0
movq %rax, %rdi
movq 0x5b8(%rsp), %rdx
addq $0x1, %rdx
leaq 0x400ad(%rip), %rsi     # 0x68471
callq 0x5870
movq %rax, 0x5b0(%rsp)
cmpq $-0x1, 0x5b0(%rsp)
jne 0x28402
leaq 0xbb0(%rsp), %rdi
movl $0x7, %esi
callq 0x88f0
movq %rax, %rdi
callq 0x5310
addq $0x1, %rax
movq %rax, 0x5b0(%rsp)
leaq 0xbb0(%rsp), %rdi
movl $0x7, %esi
callq 0x88f0
movq %rax, %rsi
movq 0x5b8(%rsp), %rax
movq %rax, %rdx
addq $0x3, %rdx
movq 0x5b0(%rsp), %rcx
subq %rax, %rcx
addq $-0x3, %rcx
leaq 0x590(%rsp), %rdi
callq 0x5490
jmp 0x28444
leaq 0xbb0(%rsp), %rdi
movl $0x7, %esi
callq 0x88f0
movq %rax, %rdi
leaq 0x40ba9(%rip), %rsi     # 0x69009
xorl %eax, %eax
movl %eax, %edx
callq 0x5870
movq %rax, 0x588(%rsp)
leaq 0xbb0(%rsp), %rdi
movl $0x7, %esi
callq 0x88f0
movq %rax, %rdi
movq 0x588(%rsp), %rdx
addq $0x1, %rdx
leaq 0x3ffd8(%rip), %rsi     # 0x68471
callq 0x5870
movq %rax, 0x580(%rsp)
cmpq $-0x1, 0x580(%rsp)
jne 0x284f2
leaq 0xbb0(%rsp), %rdi
movl $0x7, %esi
callq 0x88f0
movq %rax, %rdi
callq 0x5310
addq $0x1, %rax
movq %rax, 0x580(%rsp)
jmp 0x284f2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x28d98
leaq 0xbb0(%rsp), %rdi
movl $0x7, %esi
callq 0x88f0
movq %rax, %rsi
movq 0x588(%rsp), %rax
movq %rax, %rdx
addq $0x3, %rdx
movq 0x580(%rsp), %rcx
subq %rax, %rcx
addq $-0x3, %rcx
leaq 0x560(%rsp), %rdi
callq 0x5490
jmp 0x28534
leaq 0x560(%rsp), %rdi
callq 0x51d0
movq %rax, %rdi
callq 0x5570
movsd %xmm0, 0x110(%rsp)
leaq 0x560(%rsp), %rdi
callq 0x51d0
movq %rax, %rdi
callq 0x5570
movsd %xmm0, 0x108(%rsp)
leaq 0x590(%rsp), %rdi
callq 0x51d0
movq %rax, %rdi
callq 0x5570
movsd 0x108(%rsp), %xmm1
movaps %xmm0, %xmm2
movsd 0x110(%rsp), %xmm0
addsd %xmm2, %xmm1
divsd %xmm1, %xmm0
movsd %xmm0, 0x5c0(%rsp)
movsd 0x3da55(%rip), %xmm0    # 0x66008
mulsd 0x5c0(%rsp), %xmm0
callq 0x51e0
movsd 0x3da3f(%rip), %xmm1    # 0x66008
divsd %xmm1, %xmm0
movsd %xmm0, 0x5c0(%rsp)
leaq 0x560(%rsp), %rdi
callq 0x58b8
leaq 0x590(%rsp), %rdi
callq 0x58b8
jmp 0x28618
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
leaq 0x590(%rsp), %rdi
callq 0x58b8
jmp 0x28d98
movsd 0x5c0(%rsp), %xmm1
movsd 0x5ce4f(%rip), %xmm0    # 0x85478
ucomisd %xmm1, %xmm0
ja 0x28642
movsd 0x5c0(%rsp), %xmm0
ucomisd 0x5ce40(%rip), %xmm0    # 0x85480
jbe 0x28652
movl $0x2, 0xc38(%rsp)
jmp 0x28d19
leaq 0x558(%rsp), %rdi
callq 0x2de30
leaq 0x550(%rsp), %rdi
callq 0x2de30
leaq 0xb90(%rsp), %rdi
callq 0x2d110
movq %rax, 0x548(%rsp)
movq 0x548(%rsp), %rax
movq %rax, 0x558(%rsp)
leaq 0xb90(%rsp), %rdi
callq 0x2d140
movq %rax, 0x540(%rsp)
movq 0x540(%rsp), %rax
movq %rax, 0x550(%rsp)
leaq 0x558(%rsp), %rdi
leaq 0x550(%rsp), %rsi
callq 0x2d170
testb $0x1, %al
jne 0x286d4
jmp 0x28953
leaq 0x4c8(%rsp), %rdi
callq 0x2e470
leaq 0x4a8(%rsp), %rdi
leaq 0x928(%rsp), %rsi
callq 0x5440
jmp 0x286f8
leaq 0x4a8(%rsp), %rdi
callq 0x51d0
movq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq 0x5160
movq %rax, 0x4e8(%rsp)
leaq 0x4a8(%rsp), %rdi
callq 0x58b8
movb 0x617(%rsp), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x2878a
movq 0x218(%rsp), %rdi
leaq 0xad8(%rsp), %rsi
callq 0x2cf30
movq %rax, 0x100(%rsp)
jmp 0x28758
movq 0x100(%rsp), %rsi
leaq 0x4f0(%rsp), %rdi
callq 0x5050
jmp 0x2876f
jmp 0x287a2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x28941
leaq 0x4f0(%rsp), %rdi
leaq 0x427f4(%rip), %rsi     # 0x6af8d
callq 0x55d0
jmp 0x287a0
jmp 0x287a2
movsd 0x5c0(%rsp), %xmm0
movsd %xmm0, 0x510(%rsp)
leaq 0x518(%rsp), %rdi
leaq 0x5d0(%rsp), %rsi
callq 0x5050
jmp 0x287cb
movb 0x617(%rsp), %al
andb $0x1, %al
movb %al, 0x538(%rsp)
xorl %eax, %eax
movl %eax, %esi
leaq 0xbb0(%rsp), %rdi
callq 0x88f0
movq %rax, %rsi
leaq 0x4286c(%rip), %rdx     # 0x6b062
leaq 0x468(%rsp), %rdi
callq 0xfae0
jmp 0x28805
leaq 0x558(%rsp), %rdi
callq 0x2d1b0
movq %rax, %rdx
leaq 0x488(%rsp), %rdi
leaq 0x468(%rsp), %rsi
callq 0xfbf0
jmp 0x2882c
leaq 0x468(%rsp), %rdi
callq 0x58b8
movq 0xee8(%rsp), %rax
movq %rax, 0xf8(%rsp)
leaq 0x3d0(%rsp), %rdi
leaq 0x488(%rsp), %rsi
leaq 0x4c8(%rsp), %rdx
callq 0x2e4e0
jmp 0x28868
movq 0xf8(%rsp), %rdi
leaq 0x3d0(%rsp), %rsi
callq 0x2e4b0
movq %rax, 0xf0(%rsp)
jmp 0x28887
movq 0xf0(%rsp), %rax
movq %rax, 0x3c8(%rsp)
leaq 0x3d0(%rsp), %rdi
callq 0x2e550
leaq 0x558(%rsp), %rdi
xorl %esi, %esi
callq 0x2d340
movq %rax, 0x3c0(%rsp)
leaq 0x488(%rsp), %rdi
callq 0x58b8
leaq 0x4c8(%rsp), %rdi
callq 0x2d7b0
jmp 0x286b6
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
leaq 0x468(%rsp), %rdi
callq 0x58b8
jmp 0x28941
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x28934
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
leaq 0x3d0(%rsp), %rdi
callq 0x2e550
leaq 0x488(%rsp), %rdi
callq 0x58b8
leaq 0x4c8(%rsp), %rdi
callq 0x2d7b0
jmp 0x28d98
leaq 0xb78(%rsp), %rdi
callq 0x2d110
movq %rax, 0x3b8(%rsp)
movq 0x3b8(%rsp), %rax
movq %rax, 0x558(%rsp)
leaq 0xb78(%rsp), %rdi
callq 0x2d140
movq %rax, 0x3b0(%rsp)
movq 0x3b0(%rsp), %rax
movq %rax, 0x550(%rsp)
leaq 0x558(%rsp), %rdi
leaq 0x550(%rsp), %rsi
callq 0x2d170
testb $0x1, %al
jne 0x289bb
jmp 0x28c52
leaq 0x338(%rsp), %rdi
callq 0x2e470
leaq 0x318(%rsp), %rdi
leaq 0x928(%rsp), %rsi
callq 0x5440
jmp 0x289df
leaq 0x318(%rsp), %rdi
callq 0x51d0
movq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq 0x5160
movq %rax, 0x358(%rsp)
leaq 0x318(%rsp), %rdi
callq 0x58b8
movb 0x617(%rsp), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x28a89
movq 0x218(%rsp), %rdi
leaq 0xad8(%rsp), %rsi
callq 0x2cf30
movq %rax, 0xe8(%rsp)
jmp 0x28a3f
movq 0xe8(%rsp), %rdi
leaq 0x3dbf3(%rip), %rsi     # 0x66641
callq 0x5140
cmpl $0x0, %eax
jne 0x28a89
leaq 0x360(%rsp), %rdi
leaq 0x42526(%rip), %rsi     # 0x6af8d
callq 0x55d0
jmp 0x28a6e
jmp 0x28aa1
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x28c40
leaq 0x360(%rsp), %rdi
leaq 0x3dba9(%rip), %rsi     # 0x66641
callq 0x55d0
jmp 0x28a9f
jmp 0x28aa1
movsd 0x5c0(%rsp), %xmm0
movsd %xmm0, 0x380(%rsp)
leaq 0x388(%rsp), %rdi
leaq 0x5d0(%rsp), %rsi
callq 0x5050
jmp 0x28aca
movb 0x617(%rsp), %al
andb $0x1, %al
movb %al, 0x3a8(%rsp)
xorl %eax, %eax
movl %eax, %esi
leaq 0xbb0(%rsp), %rdi
callq 0x88f0
movq %rax, %rsi
leaq 0x4256d(%rip), %rdx     # 0x6b062
leaq 0x2d8(%rsp), %rdi
callq 0xfae0
jmp 0x28b04
leaq 0x558(%rsp), %rdi
callq 0x2d1b0
movq %rax, %rdx
leaq 0x2f8(%rsp), %rdi
leaq 0x2d8(%rsp), %rsi
callq 0xfbf0
jmp 0x28b2b
leaq 0x2d8(%rsp), %rdi
callq 0x58b8
movq 0xee8(%rsp), %rax
movq %rax, 0xe0(%rsp)
leaq 0x240(%rsp), %rdi
leaq 0x2f8(%rsp), %rsi
leaq 0x338(%rsp), %rdx
callq 0x2e4e0
jmp 0x28b67
movq 0xe0(%rsp), %rdi
leaq 0x240(%rsp), %rsi
callq 0x2e4b0
movq %rax, 0xd8(%rsp)
jmp 0x28b86
movq 0xd8(%rsp), %rax
movq %rax, 0x238(%rsp)
leaq 0x240(%rsp), %rdi
callq 0x2e550
leaq 0x558(%rsp), %rdi
xorl %esi, %esi
callq 0x2d340
movq %rax, 0x230(%rsp)
leaq 0x2f8(%rsp), %rdi
callq 0x58b8
leaq 0x338(%rsp), %rdi
callq 0x2d7b0
jmp 0x2899d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
leaq 0x2d8(%rsp), %rdi
callq 0x58b8
jmp 0x28c40
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
jmp 0x28c33
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc40(%rsp)
movl %eax, 0xc3c(%rsp)
leaq 0x240(%rsp), %rdi
callq 0x2e550
leaq 0x2f8(%rsp), %rdi
callq 0x58b8
leaq 0x338(%rsp), %rdi
callq 0x2d7b0
jmp 0x28d98
movb 0x617(%rsp), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x28d0e
leaq 0xab8(%rsp), %rdi
leaq 0x40383(%rip), %rsi     # 0x68ff9
callq 0x5140
cmpl $0x0, %eax
jne 0x28c96
movq 0xc28(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xc28(%rsp)
jmp 0x28cfa
leaq 0xab8(%rsp), %rdi
leaq 0x40358(%rip), %rsi     # 0x68ffd
callq 0x5140
cmpl $0x0, %eax
jne 0x28cc5
movq 0xc20(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xc20(%rsp)
jmp 0x28cf8
leaq 0xab8(%rsp), %rdi
leaq 0x40321(%rip), %rsi     # 0x68ff5
callq 0x5140
cmpl $0x0, %eax
jne 0x28cf4
movq 0xc30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xc30(%rsp)
jmp 0x28cf6
jmp 0x28cf6
jmp 0x28cf8
jmp 0x28cfa
movq 0xc10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xc10(%rsp)
movl $0x0, 0xc38(%rsp)
leaq 0x5d0(%rsp), %rdi
callq 0x58b8
leaq 0x928(%rsp), %rdi
callq 0x5350
leaq 0xab8(%rsp), %rdi
callq 0x58b8
leaq 0xad8(%rsp), %rdi
callq 0x58b8
leaq 0xb78(%rsp), %rdi
callq 0x8910
leaq 0xb90(%rsp), %rdi
callq 0x8910
leaq 0xbb0(%rsp), %rdi
callq 0x8910
leaq 0xbd0(%rsp), %rdi
callq 0x58b8
movl 0xc38(%rsp), %eax
testl %eax, %eax
je 0x28d93
jmp 0x28d8e
jmp 0x270b3
jmp 0x270b3
leaq 0x5d0(%rsp), %rdi
callq 0x58b8
leaq 0x928(%rsp), %rdi
callq 0x5350
leaq 0xab8(%rsp), %rdi
callq 0x58b8
leaq 0xad8(%rsp), %rdi
callq 0x58b8
leaq 0xb78(%rsp), %rdi
callq 0x8910
leaq 0xb90(%rsp), %rdi
callq 0x8910
leaq 0xbb0(%rsp), %rdi
callq 0x8910
leaq 0xbd0(%rsp), %rdi
callq 0x58b8
jmp 0x291a5
movq 0x5c1bc(%rip), %rdi     # 0x84fc8
leaq 0x401fa(%rip), %rsi     # 0x6900d
callq 0x5460
movq %rax, 0xd0(%rsp)
jmp 0x28e22
movq 0xd0(%rsp), %rdi
movl 0x5c640(%rip), %esi     # 0x85470
callq 0x5790
movq %rax, 0xc8(%rsp)
jmp 0x28e3f
movq 0xc8(%rsp), %rdi
leaq 0x40206(%rip), %rsi     # 0x69054
callq 0x5460
movq %rax, 0xc0(%rsp)
jmp 0x28e5d
movq 0xc0(%rsp), %rdi
movq 0xc10(%rsp), %rsi
callq 0x50f0
movq %rax, 0xb8(%rsp)
jmp 0x28e7c
movq 0xb8(%rsp), %rdi
movq 0x5c125(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0x28e92
movq 0x5c12f(%rip), %rdi     # 0x84fc8
leaq 0x3f57b(%rip), %rsi     # 0x6841b
callq 0x5460
movq %rax, 0xb0(%rsp)
jmp 0x28eaf
movq 0xb0(%rsp), %rdi
movq 0xc28(%rsp), %rsi
callq 0x50f0
movq %rax, 0xa8(%rsp)
jmp 0x28ece
movq 0xa8(%rsp), %rdi
leaq 0x4017b(%rip), %rsi     # 0x69058
callq 0x5460
movq %rax, 0xa0(%rsp)
jmp 0x28eec
movq 0xa0(%rsp), %rdi
movq 0x5c0b5(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0x28f02
movq 0x5c0bf(%rip), %rdi     # 0x84fc8
leaq 0x3f50b(%rip), %rsi     # 0x6841b
callq 0x5460
movq %rax, 0x98(%rsp)
jmp 0x28f1f
movq 0x98(%rsp), %rdi
movq 0xc20(%rsp), %rsi
callq 0x50f0
movq %rax, 0x90(%rsp)
jmp 0x28f3e
movq 0x90(%rsp), %rdi
leaq 0x4011b(%rip), %rsi     # 0x69068
callq 0x5460
movq %rax, 0x88(%rsp)
jmp 0x28f5c
movq 0x88(%rsp), %rdi
movq 0x5c045(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0x28f72
movq 0x5c04f(%rip), %rdi     # 0x84fc8
leaq 0x3f49b(%rip), %rsi     # 0x6841b
callq 0x5460
movq %rax, 0x80(%rsp)
jmp 0x28f8f
movq 0x80(%rsp), %rdi
movq 0xc30(%rsp), %rsi
callq 0x50f0
movq %rax, 0x78(%rsp)
jmp 0x28fab
movq 0x78(%rsp), %rdi
leaq 0x400c2(%rip), %rsi     # 0x69079
callq 0x5460
movq %rax, 0x70(%rsp)
jmp 0x28fc3
movq 0x70(%rsp), %rdi
movq 0x5bfe1(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0x28fd6
movq 0x5bfeb(%rip), %rdi     # 0x84fc8
leaq 0x400a0(%rip), %rsi     # 0x69084
callq 0x5460
movq %rax, 0x68(%rsp)
jmp 0x28ff0
movq 0x68(%rsp), %rdi
movl 0x5c475(%rip), %esi     # 0x85470
callq 0x5790
movq %rax, 0x60(%rsp)
jmp 0x29007
movq 0x60(%rsp), %rdi
leaq 0x40041(%rip), %rsi     # 0x69054
callq 0x5460
movq %rax, 0x58(%rsp)
jmp 0x2901f
movq 0x58(%rsp), %rdi
movq 0xbf0(%rsp), %rsi
callq 0x50f0
movq %rax, 0x50(%rsp)
jmp 0x29038
movq 0x50(%rsp), %rdi
movq 0x5bf6c(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0x2904b
movq 0x5bf76(%rip), %rdi     # 0x84fc8
leaq 0x3f3c2(%rip), %rsi     # 0x6841b
callq 0x5460
movq %rax, 0x48(%rsp)
jmp 0x29065
movq 0x48(%rsp), %rdi
movq 0xc00(%rsp), %rsi
callq 0x50f0
movq %rax, 0x40(%rsp)
jmp 0x2907e
movq 0x40(%rsp), %rdi
leaq 0x3ffce(%rip), %rsi     # 0x69058
callq 0x5460
movq %rax, 0x38(%rsp)
jmp 0x29096
movq 0x38(%rsp), %rdi
movq 0x5bf0e(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0x290a9
movq 0x5bf18(%rip), %rdi     # 0x84fc8
leaq 0x3f364(%rip), %rsi     # 0x6841b
callq 0x5460
movq %rax, 0x30(%rsp)
jmp 0x290c3
movq 0x30(%rsp), %rdi
movq 0xbf8(%rsp), %rsi
callq 0x50f0
movq %rax, 0x28(%rsp)
jmp 0x290dc
movq 0x28(%rsp), %rdi
leaq 0x3ff80(%rip), %rsi     # 0x69068
callq 0x5460
movq %rax, 0x20(%rsp)
jmp 0x290f4
movq 0x20(%rsp), %rdi
movq 0x5beb0(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0x29107
movq 0x5beba(%rip), %rdi     # 0x84fc8
leaq 0x3f306(%rip), %rsi     # 0x6841b
callq 0x5460
movq %rax, 0x18(%rsp)
jmp 0x29121
movq 0x18(%rsp), %rdi
movq 0xc08(%rsp), %rsi
callq 0x50f0
movq %rax, 0x10(%rsp)
jmp 0x2913a
movq 0x10(%rsp), %rdi
leaq 0x3ff33(%rip), %rsi     # 0x69079
callq 0x5460
movq %rax, 0x8(%rsp)
jmp 0x29152
movq 0x8(%rsp), %rdi
movq 0x5be52(%rip), %rsi     # 0x84fb0
callq 0x54b0
jmp 0x29165
leaq 0xc48(%rsp), %rdi
callq 0x65264
jmp 0x29174
movb $0x1, 0xf07(%rsp)
movl $0x1, 0xc38(%rsp)
leaq 0xc48(%rsp), %rdi
callq 0xfe60
movb 0xf07(%rsp), %al
andb $0x1, %al
addq $0xf08, %rsp            # imm = 0xF08
retq
leaq 0xc48(%rsp), %rdi
callq 0xfe60
movq 0xc40(%rsp), %rdi
callq 0x57b0
nop