// File: /workspace/github_cpp_makefile_star2_O3/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x7b8, %rsp            # imm = 0x7B8
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbp
leaq 0x518(%rsp), %rbx
movq %rbx, %rdi
callq 0xcb3a
movq (%rbp), %rsi
movq %rbx, %rdi
movl $0x8, %edx
callq 0x39022
movq 0x518(%rsp), %rax
movq -0x18(%rax), %rax
movl 0x538(%rsp,%rax), %r14d
testl %r14d, %r14d
je 0x1a950
movq 0x316e0(%rip), %rdi     # 0x4bfc8
leaq 0x22580(%rip), %rsi     # 0x3ce6f
movl $0x1f, %edx
callq 0x43a0
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
movq 0x316c0(%rip), %rdi     # 0x4bfc8
callq 0x43a0
movq %rax, %rbx
leaq 0x225d6(%rip), %rsi     # 0x3ceed
movl $0x2, %edx
movq %rax, %rdi
callq 0x43a0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4310
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4220
jmp 0x1cc2c
movq 0x31671(%rip), %rdi     # 0x4bfc8
leaq 0x22531(%rip), %rsi     # 0x3ce8f
movl $0x28, %edx
callq 0x43a0
movl 0x319aa(%rip), %esi     # 0x4c318
movq 0x31653(%rip), %rdi     # 0x4bfc8
callq 0x4580
movq %rax, %rbx
leaq 0x22534(%rip), %rsi     # 0x3ceb8
movl $0x3, %edx
movq %rax, %rdi
callq 0x43a0
movl 0x31985(%rip), %esi     # 0x4c31c
movq %rbx, %rdi
callq 0x4580
movq %rax, %rbx
leaq 0x22513(%rip), %rsi     # 0x3cebc
movl $0x33, %edx
movq %rax, %rdi
callq 0x43a0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4310
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4220
movl %r14d, 0x274(%rsp)
movq 0x518(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x538(%rsp,%rax)
je 0x1aa60
movq $0x0, 0x240(%rsp)
movq $0x0, 0x228(%rsp)
movq $0x0, 0x230(%rsp)
movq $0x0, 0x238(%rsp)
movq $0x0, 0x220(%rsp)
movq $0x0, 0x208(%rsp)
movq $0x0, 0x210(%rsp)
movq $0x0, 0x218(%rsp)
jmp 0x1c8a5
movq %r15, 0x2c8(%rsp)
leaq 0x6a0(%rsp), %r15
movl $0x80, %eax
leaq 0x160(%rsp), %rcx
addq %rax, %rcx
movq %rcx, 0x2c0(%rsp)
leaq 0x390(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0x2b8(%rsp)
movq %r12, 0x200(%rsp)
leaq 0x8(%r12), %rax
movq %rax, 0x388(%rsp)
leaq 0x24053(%rip), %r13     # 0x3eb0a
leaq 0x298(%rsp), %r12
movq $0x0, 0x218(%rsp)
movq $0x0, 0x210(%rsp)
movq $0x0, 0x208(%rsp)
movq $0x0, 0x248(%rsp)
movq $0x0, 0x220(%rsp)
movq $0x0, 0x238(%rsp)
movq $0x0, 0x230(%rsp)
movq $0x0, 0x228(%rsp)
movq $0x0, 0x240(%rsp)
leaq 0x2a8(%rsp), %rax
movq %rax, 0x298(%rsp)
movq %r12, %rdi
movq %r13, %rsi
movq %r13, %rdx
callq 0x5384
movq 0x6a0(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x4310
movsbl %al, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x45c0
cmpq $0x0, 0x2a0(%rsp)
movq 0x298(%rsp), %rdi
je 0x1c86e
movzbl (%rdi), %eax
cmpl $0x23, %eax
je 0x1c86e
cmpl $0x2a, %eax
je 0x1c86e
movq 0x248(%rsp), %rcx
incq %rcx
movq %rcx, %rax
movq %rcx, 0x248(%rsp)
movabsq $0x5d4e8fb00bcbe61d, %rcx # imm = 0x5D4E8FB00BCBE61D
imulq %rcx, %rax
rorq $0x5, %rax
movabsq $0xa7c5ac471b47, %rcx   # imm = 0xA7C5AC471B47
cmpq %rcx, %rax
ja 0x1ac68
movl $0x9, %edx
movq 0x313e5(%rip), %rdi     # 0x4bfc8
leaq 0x202d4(%rip), %rsi     # 0x3aebe
callq 0x43a0
movq 0x313d2(%rip), %rdi     # 0x4bfc8
movq 0x248(%rsp), %rsi
callq 0x4210
movq %rax, %r14
movl $0xa, %edx
movq %rax, %rdi
leaq 0x222db(%rip), %rsi     # 0x3cef0
callq 0x43a0
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
movq %r14, %rdi
callq 0x43a0
movq %rax, %r14
movl $0x3, %edx
movq %rax, %rdi
leaq 0x1f7e7(%rip), %rsi     # 0x3a423
callq 0x43a0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4310
movsbl %al, %esi
movq %r14, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4220
movb $0x9, 0x390(%rsp)
leaq 0x88(%rsp), %rdi
movq %r12, %rsi
leaq 0x390(%rsp), %rdx
callq 0x367c0
movq 0x88(%rsp), %rdi
movq 0x90(%rsp), %rax
subq %rdi, %rax
cmpq $0x13f, %rax            # imm = 0x13F
ja 0x1ad06
movl $0x35, %edx
movq 0x31319(%rip), %rdi     # 0x4bfc8
leaq 0x22245(%rip), %rsi     # 0x3cefb
callq 0x43a0
movq 0x298(%rsp), %rsi
movq 0x2a0(%rsp), %rdx
movq 0x312f6(%rip), %rdi     # 0x4bfc8
callq 0x43a0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4310
movsbl %al, %esi
movq %r14, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4220
jmp 0x1c859
subq $-0x80, %rdi
movl $0x1, %ecx
leaq 0x201a2(%rip), %rsi     # 0x3aeb8
xorl %edx, %edx
callq 0x4590
cmpq $-0x1, %rax
jne 0x1c859
movq 0x88(%rsp), %rdi
movl $0xc0, %eax
addq %rax, %rdi
leaq 0x221f3(%rip), %rsi     # 0x3cf31
callq 0x4100
xorl %eax, %eax
movq %rax, 0x360(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x350(%rsp)
movq %rax, 0x340(%rsp)
movapd %xmm0, 0x330(%rsp)
movq 0x88(%rsp), %rax
leaq 0x320(%rsp), %rcx
movq %rcx, 0x310(%rsp)
movq 0x100(%rax), %rsi
movq 0x108(%rax), %rdx
addq %rsi, %rdx
leaq 0x310(%rsp), %rdi
callq 0xd940
movq 0x88(%rsp), %rax
leaq 0x300(%rsp), %rcx
movq %rcx, 0x2f0(%rsp)
movq 0x120(%rax), %rsi
movq 0x128(%rax), %rdx
addq %rsi, %rdx
leaq 0x2f0(%rsp), %rdi
callq 0xd940
movq 0x88(%rsp), %rax
leaq 0x2e0(%rsp), %rcx
movq %rcx, 0x2d0(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x2d0(%rsp), %rdi
callq 0xd940
movq 0x88(%rsp), %rax
leaq 0x378(%rsp), %rcx
movq %rcx, 0x368(%rsp)
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq 0x368(%rsp), %rbx
movq %rbx, %rdi
callq 0xd940
leaq 0x31520(%rip), %rax     # 0x4c360
movq %rax, (%rsp)
leaq 0x310(%rsp), %rdi
leaq 0x2f0(%rsp), %rsi
leaq 0x350(%rsp), %rdx
leaq 0x330(%rsp), %rcx
leaq 0x2d0(%rsp), %r8
movq %rbx, %r9
callq 0x1ecda
movl %eax, %r14d
movq 0x368(%rsp), %rdi
leaq 0x378(%rsp), %rax
cmpq %rax, %rdi
je 0x1ae9c
movq 0x378(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x2d0(%rsp), %rdi
leaq 0x2e0(%rsp), %rax
cmpq %rax, %rdi
je 0x1aec1
movq 0x2e0(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x2f0(%rsp), %rdi
leaq 0x300(%rsp), %rax
cmpq %rax, %rdi
je 0x1aee6
movq 0x300(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x310(%rsp), %rdi
leaq 0x320(%rsp), %rax
cmpq %rax, %rdi
je 0x1af0b
movq 0x320(%rsp), %rsi
incq %rsi
callq 0x4340
testb %r14b, %r14b
je 0x1b0cd
leaq 0x260(%rsp), %rax
movq %rax, 0x250(%rsp)
movq $0x0, 0x258(%rsp)
movb $0x0, 0x260(%rsp)
leaq 0x288(%rsp), %rax
movq %rax, 0x278(%rsp)
leaq 0x278(%rsp), %rdi
leaq 0x22007(%rip), %rsi     # 0x3cf5e
leaq 0x22003(%rip), %rdx     # 0x3cf61
callq 0x5384
leaq 0x390(%rsp), %rdi
callq 0x4240
leaq 0x170(%rsp), %rax
movq %rax, 0x160(%rsp)
leaq 0x160(%rsp), %rbx
movq %rbx, %rdi
movq %r13, %rsi
movq %r13, %rdx
callq 0x5384
leaq 0x3a8(%rsp), %rdi
movq %rbx, %rsi
callq 0x4490
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x1afcb
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x88(%rsp), %rax
movq 0x68(%rax), %rcx
cmpq $0x1, %rcx
je 0x1b130
cmpq $0x2, %rcx
jne 0x1c7d4
cmpq $0x1, 0x88(%rax)
jne 0x1c7d4
movq 0x20(%rax), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4130
leaq 0x1(%rax), %rsi
leaq 0x3a0(%rsp), %rdi
callq 0x4210
movq 0x88(%rsp), %rax
leaq 0x58(%rsp), %rcx
movq %rcx, 0x48(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rbx
movq %rbx, %rdi
callq 0xd940
movq %rbx, %rdi
leaq 0x23f88(%rip), %rsi     # 0x3efd2
callq 0x45e0
leaq 0xa8(%rsp), %rdi
leaq 0x3a8(%rsp), %rsi
callq 0x44f0
movq 0x48(%rsp), %rcx
movl $0xf, %edi
leaq 0x58(%rsp), %rax
cmpq %rax, %rcx
je 0x1b07d
movq 0x58(%rsp), %rdi
movq 0x50(%rsp), %r8
movq 0xa8(%rsp), %rsi
movq 0xb0(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x1b0be
movl $0xf, %edi
leaq 0xb8(%rsp), %r9
cmpq %r9, %rsi
je 0x1b0b5
movq 0xb8(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x1b2e1
leaq 0x48(%rsp), %rdi
callq 0x4120
jmp 0x1b2f2
movl $0x27, %edx
movq 0x30eef(%rip), %rdi     # 0x4bfc8
leaq 0x21e56(%rip), %rsi     # 0x3cf36
callq 0x43a0
movq 0x298(%rsp), %rsi
movq 0x2a0(%rsp), %rdx
movq 0x30ecc(%rip), %rdi     # 0x4bfc8
callq 0x43a0
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x4310
movsbl %al, %esi
movq %r14, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4220
jmp 0x1c83f
movq 0x88(%rax), %rcx
cmpq $0x1, %rcx
je 0x1b216
cmpq $0x2, %rcx
jne 0x1c7d4
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
leaq 0x3a0(%rsp), %rdi
callq 0x43a0
movq 0x88(%rsp), %rax
leaq 0x58(%rsp), %rcx
movq %rcx, 0x48(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rbx
movq %rbx, %rdi
callq 0xd940
movq %rbx, %rdi
leaq 0x23e3f(%rip), %rsi     # 0x3efd2
callq 0x45e0
leaq 0xa8(%rsp), %rdi
leaq 0x3a8(%rsp), %rsi
callq 0x44f0
movq 0x48(%rsp), %rcx
movl $0xf, %edi
leaq 0x58(%rsp), %rax
cmpq %rax, %rcx
je 0x1b1c6
movq 0x58(%rsp), %rdi
movq 0x50(%rsp), %r8
movq 0xa8(%rsp), %rsi
movq 0xb0(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x1b207
movl $0xf, %edi
leaq 0xb8(%rsp), %r9
cmpq %r9, %rsi
je 0x1b1fe
movq 0xb8(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x1b683
leaq 0x48(%rsp), %rdi
callq 0x4120
jmp 0x1b694
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
leaq 0x3a0(%rsp), %rdi
callq 0x43a0
movq 0x88(%rsp), %rax
leaq 0x58(%rsp), %rcx
movq %rcx, 0x48(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rbx
movq %rbx, %rdi
callq 0xd940
movq %rbx, %rdi
leaq 0x23d74(%rip), %rsi     # 0x3efd2
callq 0x45e0
leaq 0xa8(%rsp), %rdi
leaq 0x3a8(%rsp), %rsi
callq 0x44f0
movq 0x48(%rsp), %rcx
movl $0xf, %edi
leaq 0x58(%rsp), %rax
cmpq %rax, %rcx
je 0x1b291
movq 0x58(%rsp), %rdi
movq 0x50(%rsp), %r8
movq 0xa8(%rsp), %rsi
movq 0xb0(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x1b2d2
movl $0xf, %edi
leaq 0xb8(%rsp), %r9
cmpq %r9, %rsi
je 0x1b2c9
movq 0xb8(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x1b893
leaq 0x48(%rsp), %rdi
callq 0x4120
jmp 0x1b8a4
leaq 0xa8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4380
leaq 0x78(%rsp), %rsi
movq %rsi, 0x68(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x1b317
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x1b31f
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x70(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x68(%rsp), %rdi
leaq 0x23c8a(%rip), %rsi     # 0x3efd2
callq 0x45e0
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1b375
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x1b37d
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x88(%rsp), %rsi
addq $0x60, %rsi
movl $0x1, %edx
movl $0x1, %ecx
leaq 0x140(%rsp), %rdi
callq 0x4360
movq 0x8(%rsp), %rcx
movl $0xf, %edi
leaq 0x18(%rsp), %rax
cmpq %rax, %rcx
je 0x1b3d1
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %r8
movq 0x140(%rsp), %rsi
movq 0x148(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x1b40e
movl $0xf, %edi
leaq 0x150(%rsp), %r9
cmpq %r9, %rsi
je 0x1b409
movq 0x150(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x1b41a
leaq 0x8(%rsp), %rdi
callq 0x4120
jmp 0x1b42b
leaq 0x140(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4380
leaq 0x38(%rsp), %rsi
movq %rsi, 0x28(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x1b450
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x1b458
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x28(%rsp), %rdi
leaq 0x23b51(%rip), %rsi     # 0x3efd2
callq 0x45e0
leaq 0xd8(%rsp), %rsi
movq %rsi, 0xc8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1b4ba
movq %rdx, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
jmp 0x1b4c2
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0xd0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xc8(%rsp), %rdi
leaq 0x1f0c2(%rip), %rsi     # 0x3a5ae
callq 0x45e0
leaq 0x170(%rsp), %r14
movq %r14, 0x160(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1b525
movq %rdx, 0x160(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x170(%rsp)
jmp 0x1b52e
movupd (%rcx), %xmm0
movupd %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x168(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x250(%rsp), %rdi
leaq 0x160(%rsp), %rsi
callq 0x43e0
movq 0x160(%rsp), %rdi
cmpq %r14, %rdi
je 0x1b57b
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x1b5a0
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1b5bc
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rax
cmpq %rax, %rdi
je 0x1b5e1
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1b5fd
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x1b619
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x1b63e
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x1b65a
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x280(%rsp), %rdx
movl $0x3, %r8d
leaq 0x278(%rsp), %rdi
xorl %esi, %esi
leaq 0x218e9(%rip), %rcx     # 0x3cf62
callq 0x44c0
jmp 0x1bd28
leaq 0xa8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4380
leaq 0x78(%rsp), %rsi
movq %rsi, 0x68(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x1b6b9
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x1b6c1
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x70(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x68(%rsp), %rdi
leaq 0x238e8(%rip), %rsi     # 0x3efd2
callq 0x45e0
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1b717
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x1b71f
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x8(%rsp), %rdi
leaq 0x1ee6b(%rip), %rsi     # 0x3a5ae
callq 0x45e0
leaq 0x38(%rsp), %rsi
movq %rsi, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1b770
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x1b778
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x28(%rsp), %rdi
leaq 0x23836(%rip), %rsi     # 0x3efd2
callq 0x45e0
leaq 0xd8(%rsp), %rsi
movq %rsi, 0xc8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1b7d5
movq %rdx, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
jmp 0x1b7dd
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0xd0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x88(%rsp), %rsi
subq $-0x80, %rsi
movl $0x1, %edx
movl $0x1, %ecx
leaq 0x140(%rsp), %rdi
callq 0x4360
movq 0xc8(%rsp), %rcx
movl $0xf, %edi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rcx
je 0x1b83d
movq 0xd8(%rsp), %rdi
movq 0xd0(%rsp), %r8
movq 0x140(%rsp), %rsi
movq 0x148(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x1b881
movl $0xf, %edi
leaq 0x150(%rsp), %r9
cmpq %r9, %rsi
je 0x1b878
movq 0x150(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x1bb81
leaq 0xc8(%rsp), %rdi
callq 0x4120
jmp 0x1bb92
leaq 0xa8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4380
leaq 0x78(%rsp), %rsi
movq %rsi, 0x68(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x1b8c9
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x1b8d1
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x70(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x68(%rsp), %rdi
leaq 0x236d8(%rip), %rsi     # 0x3efd2
callq 0x45e0
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1b927
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x1b92f
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x88(%rsp), %rax
movq 0x60(%rax), %rsi
movq 0x68(%rax), %rdx
leaq 0x8(%rsp), %rdi
callq 0x4120
leaq 0x38(%rsp), %rsi
movq %rsi, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1b989
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x1b991
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x28(%rsp), %rdi
leaq 0x2361d(%rip), %rsi     # 0x3efd2
callq 0x45e0
leaq 0xd8(%rsp), %rsi
movq %rsi, 0xc8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1b9ee
movq %rdx, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
jmp 0x1b9f6
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0xd0(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x88(%rsp), %rax
movq 0x80(%rax), %rsi
movq 0x88(%rax), %rdx
leaq 0xc8(%rsp), %rdi
callq 0x4120
leaq 0x170(%rsp), %r14
movq %r14, 0x160(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1ba68
movq %rdx, 0x160(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x170(%rsp)
jmp 0x1ba71
movupd (%rcx), %xmm0
movupd %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x168(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x250(%rsp), %rdi
leaq 0x160(%rsp), %rsi
callq 0x43e0
movq 0x160(%rsp), %rdi
cmpq %r14, %rdi
je 0x1babe
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x1bae3
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1baff
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1bb1b
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x1bb37
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x1bb5c
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x1bd28
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x1bd28
leaq 0x140(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4380
leaq 0x170(%rsp), %rsi
movq %rsi, 0x160(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x1bbc3
movq %rdx, 0x160(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x170(%rsp)
jmp 0x1bbcb
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x168(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x250(%rsp), %rdi
leaq 0x160(%rsp), %rsi
callq 0x43e0
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x1bc25
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rax
cmpq %rax, %rdi
je 0x1bc4a
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x1bc6f
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1bc8b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1bca7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x1bcc3
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x1bce8
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x1bd04
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x280(%rsp), %rdx
movl $0x3, %r8d
leaq 0x278(%rsp), %rdi
xorl %esi, %esi
leaq 0x21243(%rip), %rcx     # 0x3cf66
callq 0x44c0
leaq 0x278(%rsp), %rbx
movq %rbx, %rdi
leaq 0x21228(%rip), %rsi     # 0x3cf62
callq 0x4100
testl %eax, %eax
je 0x1bd73
movq %rbx, %rdi
leaq 0x21219(%rip), %rsi     # 0x3cf66
callq 0x4100
testl %eax, %eax
je 0x1bd7d
movq %rbx, %rdi
leaq 0x211fe(%rip), %rsi     # 0x3cf5e
callq 0x4100
cmpl $0x1, %eax
adcq $0x0, 0x238(%rsp)
jmp 0x1bd85
incq 0x230(%rsp)
jmp 0x1bd85
incq 0x228(%rsp)
movq 0x200(%rsp), %rdi
leaq 0x250(%rsp), %rsi
callq 0xee9e
incq 0x240(%rsp)
cmpq 0x388(%rsp), %rax
je 0x1c7d4
movq 0x88(%rsp), %rdi
movl $0xe0, %ebx
addq %rbx, %rdi
movl $0x3, %ecx
leaq 0x2119e(%rip), %rsi     # 0x3cf6a
xorl %edx, %edx
callq 0x4590
movq %rax, %r14
movq 0x88(%rsp), %rdi
addq %rbx, %rdi
movl $0x1, %ecx
leaq 0x205ed(%rip), %rsi     # 0x3c3da
movq %rax, %rdx
callq 0x4590
movq 0x88(%rsp), %rsi
addq %rbx, %rsi
subq %r14, %rax
addq $0x3, %r14
leaq -0x3(%rax), %rcx
leaq 0x28(%rsp), %rdi
movq %r14, %rdx
callq 0x4360
movq 0x28(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4130
cmpl %eax, 0x304ec(%rip)     # 0x4c318
jg 0x1c7b8
cmpl %eax, 0x304e4(%rip)     # 0x4c31c
jl 0x1c7b8
movq 0x88(%rsp), %rdi
movl $0xe0, %ebx
addq %rbx, %rdi
movl $0x3, %ecx
leaq 0x21114(%rip), %rsi     # 0x3cf6e
xorl %edx, %edx
callq 0x4590
xorpd %xmm0, %xmm0
movsd %xmm0, 0xa0(%rsp)
cmpq $-0x1, %rax
je 0x1c076
movq 0x88(%rsp), %rdi
addq %rbx, %rdi
movl $0x3, %ecx
leaq 0x210e3(%rip), %rsi     # 0x3cf72
xorl %edx, %edx
callq 0x4590
cmpq $-0x1, %rax
leaq 0xd8(%rsp), %rcx
je 0x1c07e
movq 0x88(%rsp), %rdi
movl $0xe0, %ebx
addq %rbx, %rdi
movl $0x3, %ecx
leaq 0x210aa(%rip), %rsi     # 0x3cf6e
xorl %edx, %edx
callq 0x4590
movq %rax, %r14
movq 0x88(%rsp), %rdi
addq %rbx, %rdi
leaq 0x1(%rax), %rdx
movl $0x1, %ecx
leaq 0x204f1(%rip), %rsi     # 0x3c3da
callq 0x4590
movq 0x88(%rsp), %rsi
cmpq $-0x1, %rax
jne 0x1bf06
movq 0xe8(%rsi), %rax
incq %rax
addq $0xe0, %rsi
subq %r14, %rax
addq $0x3, %r14
addq $-0x3, %rax
leaq 0x160(%rsp), %rdi
movq %r14, %rdx
movq %rax, %rcx
callq 0x4360
movq 0x88(%rsp), %rdi
movl $0xe0, %ebx
addq %rbx, %rdi
movl $0x3, %ecx
leaq 0x2102b(%rip), %rsi     # 0x3cf72
xorl %edx, %edx
callq 0x4590
movq %rax, %r14
movq 0x88(%rsp), %rdi
addq %rbx, %rdi
leaq 0x1(%rax), %rdx
movl $0x1, %ecx
leaq 0x2046e(%rip), %rsi     # 0x3c3da
callq 0x4590
movq 0x88(%rsp), %rsi
cmpq $-0x1, %rax
jne 0x1bf89
movq 0xe8(%rsi), %rax
incq %rax
addq $0xe0, %rsi
subq %r14, %rax
addq $0x3, %r14
addq $-0x3, %rax
leaq 0xc8(%rsp), %rdi
movq %r14, %rdx
movq %rax, %rcx
callq 0x4360
movq 0xc8(%rsp), %rbx
movq %rbx, %rdi
callq 0x43f0
movsd %xmm0, 0xa0(%rsp)
movq 0x160(%rsp), %r14
movq %r14, %rdi
callq 0x43f0
movsd 0xa0(%rsp), %xmm1
addsd %xmm1, %xmm0
divsd %xmm0, %xmm1
mulsd 0x1e018(%rip), %xmm1    # 0x3a008
movapd %xmm1, %xmm0
callq 0x4170
movsd %xmm0, 0xa0(%rsp)
leaq 0xd8(%rsp), %rcx
cmpq %rcx, %rbx
je 0x1c032
movq 0xd8(%rsp), %rsi
incq %rsi
movq %rbx, %rdi
callq 0x4340
leaq 0xd8(%rsp), %rcx
movq 0x160(%rsp), %r14
leaq 0x170(%rsp), %rax
cmpq %rax, %r14
je 0x1c05a
movq 0x170(%rsp), %rsi
incq %rsi
movq %r14, %rdi
callq 0x4340
leaq 0xd8(%rsp), %rcx
movsd 0xa0(%rsp), %xmm0
divsd 0x1df9d(%rip), %xmm0    # 0x3a008
movsd %xmm0, 0xa0(%rsp)
jmp 0x1c07e
leaq 0xd8(%rsp), %rcx
movsd 0x3029a(%rip), %xmm0    # 0x4c320
movsd 0xa0(%rsp), %xmm1
ucomisd %xmm1, %xmm0
leaq 0x38(%rsp), %rax
ja 0x1c7bd
ucomisd 0x30282(%rip), %xmm1    # 0x4c328
ja 0x1c7bd
movq 0x350(%rsp), %r14
movq 0x358(%rsp), %rax
movq %rax, 0x1f8(%rsp)
cmpq %rax, %r14
je 0x1c3e8
movq %rcx, 0xc8(%rsp)
xorl %ecx, %ecx
movq %rcx, 0xd0(%rsp)
movb %cl, 0xd8(%rsp)
leaq 0x100(%rsp), %rax
movq %rax, 0xf0(%rsp)
movq %rcx, 0xf8(%rsp)
movb %cl, 0x100(%rsp)
leaq 0x128(%rsp), %rax
movq %rax, 0x118(%rsp)
movq %rcx, 0x120(%rsp)
movb %cl, 0x128(%rsp)
leaq 0x160(%rsp), %rdi
leaq 0x3a8(%rsp), %rsi
callq 0x44f0
movq 0x160(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4130
movq %rax, 0xe8(%rsp)
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x1c177
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x200(%rsp), %rdi
leaq 0x250(%rsp), %rsi
callq 0x1f95c
leaq 0xf0(%rsp), %rdi
movq %rax, %rsi
callq 0x41c0
movsd 0xa0(%rsp), %xmm0
movsd %xmm0, 0x110(%rsp)
leaq 0x118(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x41c0
movb $0x1, 0x138(%rsp)
movq 0x88(%rsp), %rax
leaq 0x170(%rsp), %rcx
movq %rcx, 0x160(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x160(%rsp), %rbx
movq %rbx, %rdi
callq 0xd940
movq %rbx, %rdi
leaq 0x22dce(%rip), %rsi     # 0x3efd2
callq 0x45e0
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x4120
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1c240
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x1c248
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x1c285
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x4340
leaq 0x160(%rsp), %rbx
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
callq 0x1fce6
movq 0x2c8(%rsp), %rdi
movq %rbx, %rsi
callq 0x22680
movq 0x1d0(%rsp), %rdi
cmpq 0x2c0(%rsp), %rdi
je 0x1c2d4
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x1a8(%rsp), %rdi
leaq 0x1b8(%rsp), %rax
cmpq %rax, %rdi
je 0x1c2f9
movq 0x1b8(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
je 0x1c31e
movq 0x190(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x1c343
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1c35f
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x1c384
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x1c3a9
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x1c3ce
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x4340
addq $0x20, %r14
cmpq 0x1f8(%rsp), %r14
leaq 0xd8(%rsp), %rcx
jne 0x1c0cd
movq 0x330(%rsp), %r14
movq 0x338(%rsp), %rax
movq %rax, 0x1f8(%rsp)
cmpq %rax, %r14
je 0x1c753
leaq 0xd8(%rsp), %rax
movq %rax, 0xc8(%rsp)
xorl %ecx, %ecx
movq %rcx, 0xd0(%rsp)
movb %cl, 0xd8(%rsp)
leaq 0x100(%rsp), %rax
movq %rax, 0xf0(%rsp)
movq %rcx, 0xf8(%rsp)
movb %cl, 0x100(%rsp)
leaq 0x128(%rsp), %rax
movq %rax, 0x118(%rsp)
movq %rcx, 0x120(%rsp)
movb %cl, 0x128(%rsp)
leaq 0x160(%rsp), %rdi
leaq 0x3a8(%rsp), %rsi
callq 0x44f0
movq 0x160(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x4130
movq %rax, 0xe8(%rsp)
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x1c4bb
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x200(%rsp), %rdi
leaq 0x250(%rsp), %rsi
callq 0x1f95c
movq %rax, %rdi
leaq 0x1e167(%rip), %rbx     # 0x3a641
movq %rbx, %rsi
callq 0x4100
testl %eax, %eax
movq 0xf8(%rsp), %rdx
leaq 0x22a0a(%rip), %rax     # 0x3eefd
cmoveq %rax, %rbx
movl $0x1, %r8d
leaq 0xf0(%rsp), %rdi
xorl %esi, %esi
movq %rbx, %rcx
callq 0x44c0
movsd 0xa0(%rsp), %xmm0
movsd %xmm0, 0x110(%rsp)
leaq 0x118(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0x41c0
movb $0x1, 0x138(%rsp)
movq 0x88(%rsp), %rax
leaq 0x170(%rsp), %rcx
movq %rcx, 0x160(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x160(%rsp), %rbx
movq %rbx, %rdi
callq 0xd940
movq %rbx, %rdi
leaq 0x22a5b(%rip), %rsi     # 0x3efd2
callq 0x45e0
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movq %rbx, %rdi
callq 0x4120
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x1c5b3
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x1c5bb
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x1c5f8
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x4340
leaq 0x160(%rsp), %rbx
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
callq 0x1fce6
movq 0x2c8(%rsp), %rdi
movq %rbx, %rsi
callq 0x22680
movq 0x1d0(%rsp), %rdi
cmpq 0x2c0(%rsp), %rdi
je 0x1c647
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x1a8(%rsp), %rdi
leaq 0x1b8(%rsp), %rax
cmpq %rax, %rdi
je 0x1c66c
movq 0x1b8(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x180(%rsp), %rdi
leaq 0x190(%rsp), %rax
cmpq %rax, %rdi
je 0x1c691
movq 0x190(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x1c6b6
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1c6d2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x1c6f7
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0xf0(%rsp), %rdi
leaq 0x100(%rsp), %rax
cmpq %rax, %rdi
je 0x1c71c
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x1c741
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x4340
addq $0x20, %r14
cmpq 0x1f8(%rsp), %r14
jne 0x1c409
leaq 0x278(%rsp), %rbx
movq %rbx, %rdi
leaq 0x207fd(%rip), %rsi     # 0x3cf62
callq 0x4100
testl %eax, %eax
je 0x1c79e
movq %rbx, %rdi
leaq 0x207ee(%rip), %rsi     # 0x3cf66
callq 0x4100
testl %eax, %eax
je 0x1c7a8
movq %rbx, %rdi
leaq 0x207d3(%rip), %rsi     # 0x3cf5e
callq 0x4100
cmpl $0x1, %eax
adcq $0x0, 0x218(%rsp)
jmp 0x1c7b0
incq 0x210(%rsp)
jmp 0x1c7b0
incq 0x208(%rsp)
incq 0x220(%rsp)
leaq 0x38(%rsp), %rax
movq 0x28(%rsp), %rdi
cmpq %rax, %rdi
je 0x1c7d4
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4340
leaq 0x390(%rsp), %rdi
movq 0x2f7b5(%rip), %rsi     # 0x4bf98
callq 0x4260
movq 0x2b8(%rsp), %rdi
callq 0x4140
movq 0x278(%rsp), %rdi
leaq 0x288(%rsp), %rax
cmpq %rax, %rdi
je 0x1c81a
movq 0x288(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x250(%rsp), %rdi
leaq 0x260(%rsp), %rax
cmpq %rax, %rdi
je 0x1c83f
movq 0x260(%rsp), %rsi
incq %rsi
callq 0x4340
leaq 0x330(%rsp), %rdi
callq 0x6aac
leaq 0x350(%rsp), %rdi
callq 0x6aac
leaq 0x88(%rsp), %rdi
callq 0x6aac
movq 0x298(%rsp), %rdi
leaq 0x2a8(%rsp), %rax
cmpq %rax, %rdi
je 0x1c88b
movq 0x2a8(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x518(%rsp), %rax
movq -0x18(%rax), %rax
cmpl $0x0, 0x538(%rsp,%rax)
je 0x1ab2b
movq 0x2f71c(%rip), %rdi     # 0x4bfc8
leaq 0x206c3(%rip), %rsi     # 0x3cf76
movl $0x46, %edx
callq 0x43a0
movl 0x274(%rsp), %r14d
movl 0x2fa4d(%rip), %esi     # 0x4c318
movq 0x2f6f6(%rip), %rdi     # 0x4bfc8
callq 0x4580
movq %rax, %rbx
leaq 0x206dc(%rip), %rsi     # 0x3cfbd
movl $0x3, %edx
movq %rax, %rdi
callq 0x43a0
movq %rbx, %rdi
movq 0x220(%rsp), %rsi
callq 0x4210
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4310
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4220
movq 0x2f699(%rip), %rdi     # 0x4bfc8
leaq 0x1fa4e(%rip), %rsi     # 0x3c384
movl $0x9, %edx
callq 0x43a0
movq 0x2f681(%rip), %rdi     # 0x4bfc8
movq 0x210(%rsp), %rsi
callq 0x4210
movq %rax, %rbx
leaq 0x20663(%rip), %rsi     # 0x3cfc1
movl $0xf, %edx
movq %rax, %rdi
callq 0x43a0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4310
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4220
movq 0x2f62f(%rip), %rdi     # 0x4bfc8
leaq 0x1f9e4(%rip), %rsi     # 0x3c384
movl $0x9, %edx
callq 0x43a0
movq 0x2f617(%rip), %rdi     # 0x4bfc8
movq 0x208(%rsp), %rsi
callq 0x4210
movq %rax, %rbx
leaq 0x20609(%rip), %rsi     # 0x3cfd1
movl $0x10, %edx
movq %rax, %rdi
callq 0x43a0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4310
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4220
movq 0x2f5c5(%rip), %rdi     # 0x4bfc8
leaq 0x1f97a(%rip), %rsi     # 0x3c384
movl $0x9, %edx
callq 0x43a0
movq 0x2f5ad(%rip), %rdi     # 0x4bfc8
movq 0x218(%rsp), %rsi
callq 0x4210
movq %rax, %rbx
leaq 0x205b0(%rip), %rsi     # 0x3cfe2
movl $0xa, %edx
movq %rax, %rdi
callq 0x43a0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4310
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4220
movq 0x2f55b(%rip), %rdi     # 0x4bfc8
leaq 0x20579(%rip), %rsi     # 0x3cfed
movl $0x46, %edx
callq 0x43a0
movl 0x2f894(%rip), %esi     # 0x4c318
movq 0x2f53d(%rip), %rdi     # 0x4bfc8
callq 0x4580
movq %rax, %rbx
leaq 0x20523(%rip), %rsi     # 0x3cfbd
movl $0x3, %edx
movq %rax, %rdi
callq 0x43a0
movq %rbx, %rdi
movq 0x240(%rsp), %rsi
callq 0x4210
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4310
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4220
movq 0x2f4e0(%rip), %rdi     # 0x4bfc8
leaq 0x1f895(%rip), %rsi     # 0x3c384
movl $0x9, %edx
callq 0x43a0
movq 0x2f4c8(%rip), %rdi     # 0x4bfc8
movq 0x230(%rsp), %rsi
callq 0x4210
movq %rax, %rbx
leaq 0x204aa(%rip), %rsi     # 0x3cfc1
movl $0xf, %edx
movq %rax, %rdi
callq 0x43a0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4310
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4220
movq 0x2f476(%rip), %rdi     # 0x4bfc8
leaq 0x1f82b(%rip), %rsi     # 0x3c384
movl $0x9, %edx
callq 0x43a0
movq 0x2f45e(%rip), %rdi     # 0x4bfc8
movq 0x228(%rsp), %rsi
callq 0x4210
movq %rax, %rbx
leaq 0x20450(%rip), %rsi     # 0x3cfd1
movl $0x10, %edx
movq %rax, %rdi
callq 0x43a0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4310
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4220
movq 0x2f40c(%rip), %rdi     # 0x4bfc8
leaq 0x1f7c1(%rip), %rsi     # 0x3c384
movl $0x9, %edx
callq 0x43a0
movq 0x2f3f4(%rip), %rdi     # 0x4bfc8
movq 0x238(%rsp), %rsi
callq 0x4210
movq %rax, %rbx
leaq 0x203f7(%rip), %rsi     # 0x3cfe2
movl $0xa, %edx
movq %rax, %rdi
callq 0x43a0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x4310
movsbl %al, %esi
movq %rbx, %rdi
callq 0x4030
movq %rax, %rdi
callq 0x4220
leaq 0x518(%rsp), %rdi
callq 0x392ca
testl %r14d, %r14d
sete %bl
leaq 0x2f007(%rip), %rax     # 0x4bc40
leaq 0x6b0(%rsp), %r14
movq %rax, -0x10(%r14)
leaq 0x2f01c(%rip), %rax     # 0x4bc68
movq %rax, (%r14)
movq $0x0, -0x8(%r14)
leaq 0x2ef4a(%rip), %rsi     # 0x4bba8
leaq 0x518(%rsp), %rdi
callq 0x38fcc
movq %r14, %rdi
callq 0x4140
movl %ebx, %eax
addq $0x7b8, %rsp            # imm = 0x7B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x1cff9
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x1cff9
movq %rax, %rbx
jmp 0x1cff9
jmp 0x1cd0c
jmp 0x1cd36
jmp 0x1cde9
jmp 0x1ce0a
jmp 0x1ce2b
jmp 0x1ce57
jmp 0x1ce57
jmp 0x1ceaa
movq %rax, %rbx
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rax
cmpq %rax, %rdi
je 0x1cd0f
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x1cd0f
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x1cd39
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x1cd39
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1cdec
movq 0x38(%rsp), %rsi
jmp 0x1cddf
jmp 0x1cde9
jmp 0x1ce0a
jmp 0x1ce2b
jmp 0x1ce57
jmp 0x1ce57
jmp 0x1ceaa
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0x1cda1
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x1cda1
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1cdc2
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x1cdc2
movq %rax, %rbx
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rax
cmpq %rax, %rdi
je 0x1cdec
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x1cdec
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1ce0d
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x1ce0d
movq %rax, %rbx
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x1ce2e
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x1ce2e
movq %rax, %rbx
movq 0xa8(%rsp), %rdi
leaq 0xb8(%rsp), %rax
cmpq %rax, %rdi
je 0x1ce5a
movq 0xb8(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x1ce5a
jmp 0x1ce57
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x1d015
movq 0x58(%rsp), %rsi
jmp 0x1d00d
jmp 0x1ceaa
jmp 0x1ceaa
jmp 0x1ceaa
jmp 0x1ceaa
jmp 0x1ceaa
movq %rax, %rbx
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x1d015
movq 0x170(%rsp), %rsi
jmp 0x1d00d
movq %rax, %rbx
jmp 0x1d015
movq %rax, %rbx
jmp 0x1d036
movq %rax, %rbx
jmp 0x1d05b
jmp 0x1ced4
jmp 0x1cee6
jmp 0x1cf05
jmp 0x1cf05
jmp 0x1cfe9
jmp 0x1cfe9
movq %rax, %rbx
leaq 0x160(%rsp), %rdi
callq 0x1fdf2
jmp 0x1cee9
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1cfec
movq 0x18(%rsp), %rsi
jmp 0x1cf29
jmp 0x1cf05
movq %rax, %rbx
movq 0x160(%rsp), %rdi
leaq 0x170(%rsp), %rax
cmpq %rax, %rdi
je 0x1cfec
movq 0x170(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x1cfec
jmp 0x1cfe9
jmp 0x1cfe9
movq %rax, %rbx
movq 0x368(%rsp), %rdi
leaq 0x378(%rsp), %rax
cmpq %rax, %rdi
je 0x1cf6d
movq 0x378(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x1cf6d
movq %rax, %rbx
movq 0x2d0(%rsp), %rdi
leaq 0x2e0(%rsp), %rax
cmpq %rax, %rdi
je 0x1cf97
movq 0x2e0(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x1cf97
movq %rax, %rbx
movq 0x2f0(%rsp), %rdi
leaq 0x300(%rsp), %rax
cmpq %rax, %rdi
je 0x1cfc1
movq 0x300(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x1cfc1
movq %rax, %rbx
movq 0x310(%rsp), %rdi
leaq 0x320(%rsp), %rax
cmpq %rax, %rdi
je 0x1d085
movq 0x320(%rsp), %rsi
jmp 0x1d078
jmp 0x1cfe9
movq %rax, %rbx
leaq 0xc8(%rsp), %rdi
callq 0x1fbfa
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1d015
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x2ef7c(%rip), %rsi     # 0x4bf98
leaq 0x390(%rsp), %rdi
callq 0x4260
movq 0x2b8(%rsp), %rdi
callq 0x4140
movq 0x278(%rsp), %rdi
leaq 0x288(%rsp), %rax
cmpq %rax, %rdi
je 0x1d05b
movq 0x288(%rsp), %rsi
incq %rsi
callq 0x4340
movq 0x250(%rsp), %rdi
leaq 0x260(%rsp), %rax
cmpq %rax, %rdi
je 0x1d085
movq 0x260(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x1d085
movq %rax, %rbx
leaq 0x330(%rsp), %rdi
callq 0x6aac
leaq 0x350(%rsp), %rdi
callq 0x6aac
jmp 0x1d0a6
jmp 0x1d0b9
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x6aac
jmp 0x1d0bc
jmp 0x1d0e3
jmp 0x1d0e3
movq %rax, %rbx
movq 0x298(%rsp), %rdi
leaq 0x2a8(%rsp), %rax
cmpq %rax, %rdi
je 0x1d0e6
movq 0x2a8(%rsp), %rsi
incq %rsi
callq 0x4340
jmp 0x1d0e6
movq %rax, %rbx
leaq 0x518(%rsp), %rdi
callq 0xcdd6
movq %rbx, %rdi
callq 0x45a0