// File: /workspace/github_cpp_makefile_star2_O3/millanek[P]evo/evo_FstAgainstAll.cpp
// Function: FstGlobalMain(int, char**)
int FstGlobalMain(int argc, char** argv) {
    parseFstGlobaloptions(argc, argv);
    string line; // for reading the input files
    
    // Load up the annotation file
    Annotation wgAnnotation; std::ifstream* annotFile;
    if (!opt::annotFile.empty()) {
        annotFile = new std::ifstream(opt::annotFile.c_str());
        Annotation Annot(annotFile, false); // Does not use transcripts annotated as 5' or 3' partial
        wgAnnotation = Annot;
    }
    
    std::istream* vcfFile = createReader(opt::vcfFile.c_str());
    std::ifstream* setsFile = new std::ifstream(opt::setsFile.c_str());
    
    std::map<string, std::vector<string>> popToIDsMap;
    std::map<string, string> IDsToPopMap;
    std::map<string, std::vector<size_t>> popToPosMap;
    std::map<size_t, string> posToPopMap;
    
    // Get the sample sets
    while (getline(*setsFile, line)) {
        // std::cerr << line << std::endl;
        std::vector<string> ID_Pop = split(line, '\t');
        popToIDsMap[ID_Pop[1]].push_back(ID_Pop[0]);
        IDsToPopMap[ID_Pop[0]] = ID_Pop[1];
        //std::cerr << ID_Species[1] << "\t" << ID_Species[0] << std::endl;
    }
    // Get a vector of set names (usually populations/species)
    std::vector<string> populations; std::vector<string> populationsToUse;
    for(std::map<string,std::vector<string>>::iterator it = popToIDsMap.begin(); it != popToIDsMap.end(); ++it) {
        populations.push_back(it->first);
        if (it->first != "Outgroup" && it->first != "xxx") {
            populationsToUse.push_back(it->first);
        }
        // std::cerr << it->first << std::endl;
    } std::cerr << "There are " << populations.size() << " populations " << std::endl;
    
    std::ofstream* outFile = new std::ofstream(opt::runName + "_FstGlobal_" + numToString(opt::windowSize) + "_" + numToString(opt::windowStep) + ".txt");
    *outFile << "chr\tpos1\tpos2\tFstGlobal"; for (int i = 0; i < populationsToUse.size(); i++) { *outFile << "\t" << populationsToUse[i];}
    *outFile << std::endl;
    std::ofstream* outFileFixedWindow = new std::ofstream(opt::runName + "_FstGlobal_FW" + numToString(opt::fixedWindowSize) + ".txt");
    *outFileFixedWindow << "chr\tpos1\tpos2\tnSNPs"; for (int i = 0; i < populationsToUse.size(); i++) { *outFile << "\t" << populationsToUse[i];}
    *outFileFixedWindow << std::endl;
    
    std::ofstream* outFileGenes; if (!opt::annotFile.empty()) {
        outFileGenes = new std::ofstream(opt::runName + "_FstGlobalGenes_" + opt::runName + "_" + numToString(opt::windowSize) + "_" + numToString(opt::windowStep) + ".txt");
        // *outFileGenes << "gene\t" << "numSNPsExons\t" << "numSNPsWithIntrons\t" << "numSNPsWith3kbUpstr\t" << threePops[0] << "_exons\t" << threePops[1] << "_exons\t" << threePops[2] << "_exons\t" << threePops[0] << "_wIntrons\t" << threePops[1] << "_wIntrons\t" << threePops[2] << "_wIntrons\t" << threePops[0] << "_w3kbUpstr\t" << threePops[1] << "_w3kbUpstr\t" << threePops[2] << "_w3kbUpstr" << std::endl;
        *outFileGenes << "gene\t" << "numSNPsExons\tnumSNPsIntrons\tnumSNPs3kbPromoter";
        for (int i = 0; i < populationsToUse.size(); i++) {
            *outFileGenes << "\t" << populationsToUse[i] << "_exons";
            *outFileGenes << "\t" << populationsToUse[i] << "_wIntrons";
            *outFileGenes << "\t" << populationsToUse[i] << "_promoter";
        } *outFileGenes << std::endl;
    }
    
    // And need to prepare the vectors to hold the Fst values and the coordinates:
    std::deque<double> initFst(opt::windowSize,0.0); // deque to initialise per-site PBS values
    std::vector<std::deque<double>> FstNumDeques(populationsToUse.size()+1,initFst); // Fst numerators for each population, and one for the global Fst
    std::vector<std::deque<double>> FstDenomDeques(populationsToUse.size()+1,initFst); // Fst denominators for each population, and one for the global Fst
    std::deque<string> coordDeque(opt::windowSize,"0");
    // Fixed window size vectors:

    std::vector<std::vector<double>> FstFixedWindowNums(populationsToUse.size());
    std::vector<std::vector<double>> FstFixedWindowDenoms(populationsToUse.size());
    int currentWindowStart = 0; int currentWindowEnd = currentWindowStart + opt::fixedWindowSize;
    
    // if (!opt::annotFile.empty()) {
    std::vector<std::vector<double>> initFstVectors(3);
    std::vector<std::vector<std::vector<double>>> FstGeneNumVectors(populationsToUse.size(),initFstVectors); // For the nine PBS columns in the _PBSGenes_ files
    std::vector<std::vector<std::vector<double>>> FstGeneDenumVectors(populationsToUse.size(),initFstVectors); // For the nine PBS columns in the _PBSGenes_ files
    std::string currentGene = ""; std::string previousGene = "";
    //}
    //std::deque<std::vector<double>> regionPBSnums; regionPBSnums.assign(opt::windowSize,init);
    //std::deque<std::vector<double>> regionPBSdenoms; regionPBSdenoms.assign(opt::windowSize,init);
    //std::vector<double> allPs(populations.size(),0.0);
    int totalVariantNumber = 0; int usedVariantNumber = 0; double coordDouble = 0;
    //std::vector<int> usedVars(PBStrios.size(),0); // Will count the number of used variants for each trio
    std::vector<string> sampleNames; std::vector<std::string> fields;
    int reportProgressEvery = 10000; string chr; string coord;
    std::clock_t start; std::clock_t startGettingCounts; std::clock_t startCalculation;
    double durationOverall; double durationGettingCounts; double durationCalculation;
    
    while (getline(*vcfFile, line)) {
        line.erase(std::remove(line.begin(), line.end(), '\r'), line.end()); // Deal with any left over \r from files prepared on Windows
        if (line[0] == '#' && line[1] == '#')
            continue;
        else if (line[0] == '#' && line[1] == 'C') {
            fields = split(line, '\t');
            std::vector<std::string> sampleNames(fields.begin()+NUM_NON_GENOTYPE_COLUMNS,fields.end());
            // print_vector_stream(sampleNames, std::cerr);
            for (std::vector<std::string>::size_type i = 0; i != sampleNames.size(); i++) {
                posToPopMap[i] = IDsToPopMap[sampleNames[i]];
            }
            // Iterate over all the keys in the map to find the samples in the VCF:
            // Give an error if no sample is found for a species:
            for(std::map<string, std::vector<string>>::iterator it = popToIDsMap.begin(); it != popToIDsMap.end(); ++it) {
                string sp =  it->first;
                //std::cerr << "sp " << sp << std::endl;
                std::vector<string> IDs = it->second;
                std::vector<size_t> spPos = locateSet(sampleNames, IDs);
                if (spPos.empty()) {
                    std::cerr << "Did not find any samples in the VCF for \"" << sp << "\"" << std::endl;
                    assert(!spPos.empty());
                }
                popToPosMap[sp] = spPos;
            }
            start = std::clock();
            //  std::cerr << " " << std::endl;
            //  std::cerr << "Outgroup at pos: "; print_vector_stream(speciesToPosMap["Outgroup"], std::cerr);
            //  std::cerr << "telvit at pos: "; print_vector_stream(speciesToPosMap["telvit"], std::cerr);
        } else {
            totalVariantNumber++;
            if (totalVariantNumber % reportProgressEvery == 0) {
                durationOverall = ( std::clock() - start ) / (double) CLOCKS_PER_SEC;
                std::cerr << "Processed " << totalVariantNumber << " variants in " << durationOverall << "secs" << std::endl;
                std::cerr << "GettingCounts " << durationGettingCounts << " calculation " << durationCalculation << "secs" << std::endl;
            }
            fields = split(line, '\t'); chr = fields[0]; coord = fields[1]; coordDouble = stringToDouble(coord);
            std::vector<std::string> genotypes(fields.begin()+NUM_NON_GENOTYPE_COLUMNS,fields.end());
            //std::vector<std::string> info = split(fields[7], ';');
            // Only consider biallelic SNPs
            string refAllele = fields[3]; string altAllele = fields[4];
            if (refAllele.length() > 1 || altAllele.length() > 1 || altAllele == "*") {
                refAllele.clear(); refAllele.shrink_to_fit(); altAllele.clear(); altAllele.shrink_to_fit();
                genotypes.clear(); genotypes.shrink_to_fit(); continue;
            }
            usedVariantNumber++;
            startGettingCounts = std::clock();
            GeneralSetCountsWithComplements* c = new GeneralSetCountsWithComplements(popToPosMap, (int)genotypes.size());
            c->getSetVariantCountsSimple(genotypes, posToPopMap);
            c->getComplementCounts(populationsToUse);
            genotypes.clear(); genotypes.shrink_to_fit();
            durationGettingCounts = ( std::clock() - startGettingCounts ) / (double) CLOCKS_PER_SEC;
            
            // if this site is not variable in the populations of interest then just move to the next one
            if (c->setAAFs.at(populationsToUse[0]) == 0 && c->setAAFsComplement.at(populationsToUse[0]) == 0) {
                delete c; continue;
            }
            if (c->setAAFs.at(populationsToUse[0]) == 1 && c->setAAFsComplement.at(populationsToUse[0]) == 1) {
                delete c; continue;
            }
            // std::cerr << "Here:" << totalVariantNumber << std::endl;
            
            startCalculation = std::clock();
            
            
            // for (std::vector<std::string>::size_type i = 0; i != populations.size(); i++) {
            //     allPs[i] = c->setAAFs.at(populations[i]);
            // }
            // durationFirstLoop = ( std::clock() - startCalculation ) / (double) CLOCKS_PER_SEC;
            
            // find if we are in a gene:
            std::vector<string> SNPgeneDetails = wgAnnotation.getSNPgeneDetails(chr, atoi(coord.c_str()));
            if (SNPgeneDetails[0] != "") {
                currentGene = SNPgeneDetails[0];
                if (previousGene == "") previousGene = currentGene;
            }
            
            // Check if we are still in the same physical window...
            if (coordDouble > currentWindowEnd || coordDouble < currentWindowStart) {
                int wSNP1 = (int)FstFixedWindowNums[0].size();
                *outFileFixedWindow << chr << "\t" << currentWindowStart << "\t" << currentWindowEnd << "\t" << wSNP1;
                for (int i = 0; i != populationsToUse.size(); i++) {
                    double FstFW = 0; if (wSNP1 > 0) { FstFW = vector_average(FstFixedWindowNums[i])/vector_average(FstFixedWindowDenoms[i]); }
                    *outFileFixedWindow << "\t" << FstFW;
                    FstFixedWindowNums[i].clear(); FstFixedWindowDenoms[i].clear();
                } *outFileFixedWindow << std::endl;
                if (coordDouble > currentWindowEnd) {
                    currentWindowStart = currentWindowStart + opt::fixedWindowSize; currentWindowEnd = currentWindowEnd + opt::fixedWindowSize;
                } else if (coordDouble < currentWindowStart) {
                    currentWindowStart = 0; currentWindowEnd = 0 + opt::fixedWindowSize;
                }
            }
            
            coordDeque.push_back(coord); coordDeque.pop_front();
            if ((usedVariantNumber > opt::windowSize || opt::windowSize == opt::windowStep) && (usedVariantNumber % opt::windowStep == 0)) {
                *outFile << chr << "\t" << coordDeque[0] << "\t" << coord << "\t" << "N";
            }
            
            // Now calculate the Fst stats:
            double p1; double p2; int n1; int n2; double Fst;
            for (int i = 0; i != populationsToUse.size(); i++) {
                p1 = c->setAAFs.at(populationsToUse[i]); //assert(p_S1 == pS1test);
                p2 = c->setAAFsComplement.at(populationsToUse[i]);
                n1 = c->setAlleleCounts.at(populationsToUse[i]);
                n2 = c->setAlleleCountsComplement.at(populationsToUse[i]);
                // std::cerr << p1 << "\t" << p2 << "\t" << n1 << "\t" << n2 << std::endl;
                
                // Maximum missing data in the population is 20%, otherwise Fst is set to 0
                double FstNum; double FstDenom;
                if (n1 >= c->setSizes[i]*0.8) {
                    FstNum = calculateFstNumerator(p1, p2, n1, n2);
                    FstNumDeques[i].push_back(FstNum); FstNumDeques[i].pop_front();
                    FstDenom = calculateFstDenominator(p1, p2);
                    FstDenomDeques[i].push_back(FstDenom); FstDenomDeques[i].pop_front();
                } else {
                    FstNum = 0; FstNumDeques[i].push_back(FstNum); FstNumDeques[i].pop_front();
                    FstDenom = 0; FstDenomDeques[i].push_back(FstDenom); FstDenomDeques[i].pop_front();
                }
                    
               /* if (calculateFstNumerator(p1, p2, n1, n2)/calculateFstDenominator(p1, p2) > 1) {
                    std::cerr << chr << "\t" << coord << "\t" << p1 << "\t" << p2 << "\t" << n1 << "\t" << n2 << std::endl;
                } */
                
                if (!opt::annotFile.empty()) { if (SNPgeneDetails[0] != "") {
                    if (SNPgeneDetails[1] == "exon") {
                        FstGeneNumVectors[i][0].push_back(FstNum); FstGeneDenumVectors[i][0].push_back(FstDenom);
                    } else if (SNPgeneDetails[1] == "intron") {
                        FstGeneNumVectors[i][1].push_back(FstNum); FstGeneDenumVectors[i][1].push_back(FstDenom);
                    } else if (SNPgeneDetails[1] == "promoter") {
                        FstGeneNumVectors[i][2].push_back(FstNum); FstGeneDenumVectors[i][2].push_back(FstDenom);
                    }
                }}
                if ((usedVariantNumber > opt::windowSize || opt::windowSize == opt::windowStep) && (usedVariantNumber % opt::windowStep == 0)) {
                    // std::cerr << PBSresults[i][0][0] << std::endl;
                    Fst = vector_average(FstNumDeques[i])/vector_average(FstDenomDeques[i]); if (Fst < 0 || vector_average(FstDenomDeques[i]) == 0) { Fst = 0; }
                    *outFile << "\t" << Fst;
                }
                // }
            }
            if (!opt::annotFile.empty()) { if (previousGene != "" && currentGene != previousGene) {
                int nExonSNPs = (int)FstGeneNumVectors[0][0].size(); int nIntronSNPs = (int)FstGeneNumVectors[0][1].size(); int nPromoterSNPs = (int)FstGeneNumVectors[0][2].size();
                *outFileGenes << previousGene << "\t" << nExonSNPs << "\t" << nIntronSNPs << "\t" << nPromoterSNPs;
                double FstExons; double FstIntrons; double FstPromoters;
                for (int i = 0; i < populationsToUse.size(); i++) {
                    if (nExonSNPs > 0) { FstExons = vector_average(FstGeneNumVectors[i][0])/vector_average(FstGeneDenumVectors[i][0]); } else { FstExons = 0; }
                    if (nIntronSNPs > 0) { FstIntrons = vector_average(FstGeneNumVectors[i][1])/vector_average(FstGeneDenumVectors[i][1]); } else { FstIntrons = 0; }
                    if (nPromoterSNPs > 0) { FstPromoters = vector_average(FstGeneNumVectors[i][2])/vector_average(FstGeneDenumVectors[i][2]); } else { FstPromoters = 0; }
                    if (FstExons < 0) FstExons = 0; if (FstIntrons < 0) FstIntrons = 0; if (FstPromoters < 0) FstPromoters = 0;
                    *outFileGenes << "\t" << FstExons << "\t" << FstIntrons << "\t" << FstPromoters;
                    FstGeneNumVectors[i][0].clear(); FstGeneNumVectors[i][1].clear(); FstGeneNumVectors[i][2].clear();
                    FstGeneDenumVectors[i][0].clear(); FstGeneDenumVectors[i][1].clear(); FstGeneDenumVectors[i][2].clear();
                } *outFileGenes << std::endl;
                previousGene = currentGene;
            }}
            if ((usedVariantNumber > opt::windowSize || opt::windowSize == opt::windowStep) && (usedVariantNumber % opt::windowStep == 0)) {
                *outFile << std::endl;
            }
            durationCalculation = ( std::clock() - startCalculation ) / (double) CLOCKS_PER_SEC;
            delete c;
        }
    }
    
    return 0;
    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x768, %rsp            # imm = 0x768
callq 0xb2550
leaq 0x68(%rsp), %r13
movq %r13, -0x10(%r13)
xorl %eax, %eax
movq %rax, -0x8(%r13)
movb $0x0, (%r13)
leaq 0x5c0(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x5f0(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x620(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x650(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
cmpq %rax, 0x553e7(%rip)     # 0x103ec0
je 0xaeba0
movl $0x208, %edi            # imm = 0x208
callq 0x8470
movq %rax, %r14
movq 0x553c5(%rip), %rsi     # 0x103eb8
movq %rax, %rdi
movl $0x8, %edx
callq 0x8860
leaq 0x520(%rsp), %rsi
movq %r14, (%rsi)
leaq 0x330(%rsp), %rdi
xorl %edx, %edx
callq 0x3b332
leaq 0x5b8(%rsp), %r15
leaq 0x330(%rsp), %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x989b4
leaq 0x5e8(%rsp), %rdi
leaq 0x360(%rsp), %r14
movq %r14, %rsi
callq 0x98d16
leaq 0x618(%rsp), %rdi
leaq 0x390(%rsp), %r12
movq %r12, %rsi
callq 0x5901c
movl $0x90, %eax
addq %rax, %r15
addq %rax, %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x99044
movq %rbx, %rdi
callq 0x3c57e
movq %r12, %rdi
callq 0x3c602
movq %r14, %rdi
callq 0x3c686
leaq 0x330(%rsp), %rdi
callq 0x30870
movq 0x552b1(%rip), %rsi     # 0x103e58
leaq 0x330(%rsp), %rdi
leaq 0x1d0(%rsp), %rdx
callq 0x287de
leaq 0x330(%rsp), %rdi
movl $0x8, %esi
callq 0x500af
movq %rax, %rbx
leaq 0x340(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xaebf2
movq 0x340(%rsp), %rsi
incq %rsi
callq 0x8480
movl $0x208, %edi            # imm = 0x208
callq 0x8470
movq %rax, %r14
movq %rbx, 0x438(%rsp)
movq 0x5526a(%rip), %rsi     # 0x103e78
movq %rax, %rdi
movl $0x8, %edx
callq 0x8860
leaq 0x478(%rsp), %rcx
xorl %eax, %eax
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x590(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x560(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x530(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x58(%rsp), %r15
leaq 0x330(%rsp), %r12
leaq 0x470(%rsp), %r13
leaq 0x588(%rsp), %rbp
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x8870
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xaed35
movq %r12, %rdi
movq %r15, %rsi
movl $0x9, %edx
callq 0x4d650
movq 0x330(%rsp), %rsi
addq $0x20, %rsi
movq %r13, %rdi
callq 0x46fb4
movq 0x330(%rsp), %rsi
movq %rax, %rdi
callq 0x3133c
movq 0x330(%rsp), %rbx
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x3b46e
addq $0x20, %rbx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x8270
movq %r12, %rdi
callq 0x2e784
jmp 0xaeca2
xorpd %xmm0, %xmm0
movapd %xmm0, 0x2b0(%rsp)
xorl %eax, %eax
movq %rax, 0x2c0(%rsp)
movq %rax, 0x40(%rsp)
movapd %xmm0, 0x30(%rsp)
movq 0x488(%rsp), %r14
leaq 0x478(%rsp), %rax
cmpq %rax, %r14
je 0xaedd7
leaq 0x2b0(%rsp), %r15
leaq 0x2171b(%rip), %r12     # 0xd0496
leaq 0x2300e(%rip), %r13     # 0xd1d90
leaq 0x30(%rsp), %rbp
leaq 0x20(%r14), %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x3133c
movq %rbx, %rdi
movq %r12, %rsi
callq 0x8160
testl %eax, %eax
je 0xaedbf
movq %rbx, %rdi
movq %r13, %rsi
callq 0x8160
testl %eax, %eax
je 0xaedbf
movq %rbp, %rdi
movq %rbx, %rsi
callq 0x3133c
movq %r14, %rdi
callq 0x8310
movq %rax, %r14
leaq 0x478(%rsp), %rax
cmpq %rax, %r14
jne 0xaed87
movq 0x5320a(%rip), %rdi     # 0x101fe8
leaq 0x32184(%rip), %rsi     # 0xe0f69
movl $0xa, %edx
callq 0x84e0
movq 0x2b8(%rsp), %rsi
subq 0x2b0(%rsp), %rsi
sarq $0x5, %rsi
movq 0x531de(%rip), %rdi     # 0x101fe8
callq 0x82f0
movq %rax, %r14
leaq 0x22f7b(%rip), %rsi     # 0xd1d94
movl $0xd, %edx
movq %rax, %rdi
callq 0x84e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %r14, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
movl $0x200, %edi            # imm = 0x200
callq 0x8470
movq %rax, 0xc0(%rsp)
leaq 0xd8(%rsp), %rax
movq %rax, -0x10(%rax)
movq 0x55066(%rip), %rsi     # 0x103ed8
movq 0x55067(%rip), %rdx     # 0x103ee0
addq %rsi, %rdx
leaq 0xc8(%rsp), %rdi
callq 0x2ba06
leaq 0x2fae3(%rip), %rsi     # 0xde973
leaq 0xc8(%rsp), %rdi
callq 0x88c0
movl 0x53729(%rip), %esi     # 0x1025cc
leaq 0x140(%rsp), %rdi
callq 0x2e7e2
movq 0xc8(%rsp), %rcx
movq 0xd0(%rsp), %r8
movq 0x148(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
leaq 0xd8(%rsp), %rsi
cmpq %rsi, %rcx
je 0xaeee6
movq 0xd8(%rsp), %rdi
movq 0x140(%rsp), %rsi
cmpq %rdi, %rax
jbe 0xaef12
leaq 0x150(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0xaef0d
movq 0x150(%rsp), %rdi
cmpq %rdi, %rax
jbe 0xaef21
leaq 0xc8(%rsp), %rdi
callq 0x8180
jmp 0xaef32
leaq 0x140(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x84d0
leaq 0x88(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0xaef5c
movq %rsi, 0x78(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x88(%rsp)
jmp 0xaef64
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x80(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x260f1(%rip), %rsi     # 0xd507c
leaq 0x78(%rsp), %rdi
callq 0x88c0
leaq 0x20(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xaefbc
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0xaefc4
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x535ee(%rip), %esi     # 0x1025d0
leaq 0xa0(%rsp), %rdi
callq 0x2e7e2
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %r8
movq 0xa8(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
leaq 0x20(%rsp), %rsi
cmpq %rsi, %rcx
je 0xaf019
movq 0x20(%rsp), %rdi
movq 0xa0(%rsp), %rsi
cmpq %rdi, %rax
jbe 0xaf045
leaq 0xb0(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0xaf040
movq 0xb0(%rsp), %rdi
cmpq %rdi, %rax
jbe 0xaf051
leaq 0x10(%rsp), %rdi
callq 0x8180
jmp 0xaf062
leaq 0xa0(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x84d0
leaq 0x1e0(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0xaf08f
movq %rsi, 0x1d0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x1e0(%rsp)
jmp 0xaf097
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x1d8(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x2e087(%rip), %rsi     # 0xdd145
leaq 0x1d0(%rsp), %rdi
callq 0x88c0
leaq 0x340(%rsp), %rsi
movq %rsi, 0x330(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xaf0ff
movq %rdx, 0x330(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x340(%rsp)
jmp 0xaf107
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0xc0(%rsp), %rdi
movq 0x8(%rax), %rdx
leaq 0x330(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl $0x10, %edx
callq 0x88d0
movq 0x330(%rsp), %rdi
leaq 0x340(%rsp), %rax
cmpq %rax, %rdi
je 0xaf15d
movq 0x340(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x1e0(%rsp), %r15
movq -0x10(%r15), %rdi
cmpq %r15, %rdi
je 0xaf17e
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xaf19f
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xaf1bb
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xaf1dc
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xaf1fd
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0xaf222
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x2f756(%rip), %rsi     # 0xde97f
movl $0x17, %edx
movq 0xc0(%rsp), %rdi
callq 0x84e0
movq 0x38(%rsp), %rax
cmpq 0x30(%rsp), %rax
movq 0xc0(%rsp), %r13
je 0xaf29e
movl $0x8, %ebx
xorl %r12d, %r12d
leaq 0x1e76c(%rip), %r14     # 0xcd9ca
movl $0x1, %edx
movq %r13, %rdi
movq %r14, %rsi
callq 0x84e0
movq 0x30(%rsp), %rax
movq -0x8(%rax,%rbx), %rsi
movq (%rax,%rbx), %rdx
movq %r13, %rdi
callq 0x84e0
movq 0x38(%rsp), %rax
subq 0x30(%rsp), %rax
incq %r12
sarq $0x5, %rax
addq $0x20, %rbx
cmpq %r12, %rax
ja 0xaf25e
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq 0xc0(%rsp), %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
movl $0x200, %edi            # imm = 0x200
callq 0x8470
movq %rax, 0xf8(%rsp)
leaq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
movq %rax, (%rdi)
movq 0x54be7(%rip), %rsi     # 0x103ed8
movq 0x54be8(%rip), %rdx     # 0x103ee0
addq %rsi, %rdx
callq 0x2ba06
leaq 0x2f690(%rip), %rsi     # 0xde997
leaq 0x10(%rsp), %rdi
callq 0x88c0
movl 0x532bd(%rip), %esi     # 0x1025d4
leaq 0x78(%rsp), %rdi
callq 0x2e7e2
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %r8
movq 0x80(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
leaq 0x20(%rsp), %rsi
cmpq %rsi, %rcx
je 0xaf34b
movq 0x20(%rsp), %rdi
movq 0x78(%rsp), %rsi
cmpq %rdi, %rax
jbe 0xaf374
movl $0xf, %edi
leaq 0x88(%rsp), %r9
cmpq %r9, %rsi
je 0xaf36f
movq 0x88(%rsp), %rdi
cmpq %rdi, %rax
jbe 0xaf380
leaq 0x10(%rsp), %rdi
callq 0x8180
jmp 0xaf38e
leaq 0x78(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x84d0
movq %r15, 0x1d0(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0xaf3b7
movq %rdx, 0x1d0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x1e0(%rsp)
jmp 0xaf3c0
movupd (%rcx), %xmm0
movupd %xmm0, (%r15)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x1d8(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x2dd5e(%rip), %rsi     # 0xdd145
leaq 0x1d0(%rsp), %rdi
callq 0x88c0
leaq 0x340(%rsp), %rsi
movq %rsi, 0x330(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xaf428
movq %rdx, 0x330(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x340(%rsp)
jmp 0xaf430
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x330(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0xf8(%rsp), %rdi
movl $0x10, %edx
callq 0x88d0
movq 0x330(%rsp), %rdi
leaq 0x340(%rsp), %rax
cmpq %rax, %rdi
je 0xaf486
movq 0x340(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x1d0(%rsp), %rdi
cmpq %r15, %rdi
je 0xaf4a3
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0xaf4c5
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xaf4e1
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x2f4bd(%rip), %rsi     # 0xde9a5
movl $0x13, %edx
movq 0xf8(%rsp), %rdi
callq 0x84e0
movq 0x38(%rsp), %rax
cmpq 0x30(%rsp), %rax
movq 0xc0(%rsp), %r13
je 0xaf55d
movl $0x8, %ebx
xorl %r12d, %r12d
leaq 0x1e4ad(%rip), %r14     # 0xcd9ca
movl $0x1, %edx
movq %r13, %rdi
movq %r14, %rsi
callq 0x84e0
movq 0x30(%rsp), %rax
movq -0x8(%rax,%rbx), %rsi
movq (%rax,%rbx), %rdx
movq %r13, %rdi
callq 0x84e0
movq 0x38(%rsp), %rax
subq 0x30(%rsp), %rax
incq %r12
sarq $0x5, %rax
addq $0x20, %rbx
cmpq %r12, %rax
ja 0xaf51d
movq 0xf8(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq 0xf8(%rsp), %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
cmpq $0x0, 0x54927(%rip)     # 0x103ec0
je 0xaf63a
movl $0x200, %edi            # imm = 0x200
callq 0x8470
movq %rax, 0x48(%rsp)
leaq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
movq %rax, (%rdi)
movq 0x54910(%rip), %rsi     # 0x103ed8
movq 0x54911(%rip), %rdx     # 0x103ee0
addq %rsi, %rdx
callq 0x2ba06
leaq 0x2f3db(%rip), %rsi     # 0xde9b9
leaq 0xa0(%rsp), %rdi
callq 0x88c0
movq 0x548e6(%rip), %rsi     # 0x103ed8
movq 0x548e7(%rip), %rdx     # 0x103ee0
leaq 0xa0(%rsp), %rdi
callq 0x8180
leaq 0x150(%rsp), %rsi
movq %rsi, 0x140(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xaf63f
movq %rdx, 0x140(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x150(%rsp)
jmp 0xaf647
jmp 0xafbeb
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x140(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x25a0f(%rip), %rsi     # 0xd507c
callq 0x88c0
leaq 0xd8(%rsp), %rsi
movq %rsi, 0xc8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xaf6a6
movq %rdx, 0xc8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xd8(%rsp)
jmp 0xaf6ae
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)
movl 0x52efd(%rip), %esi     # 0x1025cc
leaq 0x100(%rsp), %rdi
callq 0x2e7e2
movq 0xc8(%rsp), %rcx
movq 0xd0(%rsp), %r8
movq 0x108(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
leaq 0xd8(%rsp), %rsi
cmpq %rsi, %rcx
je 0xaf712
movq 0xd8(%rsp), %rdi
movq 0x100(%rsp), %rsi
cmpq %rdi, %rax
jbe 0xaf73e
leaq 0x110(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0xaf739
movq 0x110(%rsp), %rdi
cmpq %rdi, %rax
jbe 0xaf74d
leaq 0xc8(%rsp), %rdi
callq 0x8180
jmp 0xaf75e
leaq 0x100(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x84d0
leaq 0x88(%rsp), %rsi
movq %rsi, 0x78(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0xaf789
movq %rdx, 0x78(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x88(%rsp)
jmp 0xaf791
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x80(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x258c4(%rip), %rsi     # 0xd507c
leaq 0x78(%rsp), %rdi
callq 0x88c0
leaq 0x20(%rsp), %rsi
movq %rsi, 0x10(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xaf7ea
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0xaf7f2
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x52dc0(%rip), %esi     # 0x1025d0
leaq 0x220(%rsp), %rdi
callq 0x2e7e2
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %r8
movq 0x228(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
leaq 0x20(%rsp), %rsi
cmpq %rsi, %rcx
je 0xaf847
movq 0x20(%rsp), %rdi
movq 0x220(%rsp), %rsi
cmpq %rdi, %rax
jbe 0xaf873
leaq 0x230(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0xaf86e
movq 0x230(%rsp), %rdi
cmpq %rdi, %rax
jbe 0xaf87f
leaq 0x10(%rsp), %rdi
callq 0x8180
jmp 0xaf890
leaq 0x220(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x84d0
movq %r15, 0x1d0(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0xaf8b9
movq %rdx, 0x1d0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x1e0(%rsp)
jmp 0xaf8c2
movupd (%rcx), %xmm0
movupd %xmm0, (%r15)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x1d8(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x2d85c(%rip), %rsi     # 0xdd145
leaq 0x1d0(%rsp), %rdi
callq 0x88c0
leaq 0x340(%rsp), %rsi
movq %rsi, 0x330(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xaf92a
movq %rdx, 0x330(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x340(%rsp)
jmp 0xaf932
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x330(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x48(%rsp), %rdi
movl $0x10, %edx
callq 0x88d0
movq 0x330(%rsp), %rdi
leaq 0x340(%rsp), %rax
cmpq %rax, %rdi
je 0xaf985
movq 0x340(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x1d0(%rsp), %rdi
cmpq %r15, %rdi
je 0xaf9a2
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x230(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
leaq 0xb0(%rsp), %rbx
je 0xaf9cb
movq 0x230(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xaf9e7
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0xafa09
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x110(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xafa2a
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0xafa4f
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rax
cmpq %rax, %rdi
je 0xafa74
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0xa0(%rsp), %rdi
cmpq %rbx, %rdi
je 0xafa91
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x2e78d(%rip), %rsi     # 0xde225
movl $0x5, %edx
movq 0x48(%rsp), %rdi
callq 0x84e0
leaq 0x2ef1c(%rip), %rsi     # 0xde9ca
movl $0x2e, %edx
movq 0x48(%rsp), %rdi
callq 0x84e0
movq 0x38(%rsp), %rax
cmpq 0x30(%rsp), %rax
je 0xafbbd
movl $0x8, %ebx
xorl %r12d, %r12d
leaq 0x1deee(%rip), %r15     # 0xcd9ca
leaq 0x2ef16(%rip), %r13     # 0xde9f9
leaq 0x2ef16(%rip), %rbp     # 0xdea00
leaq 0x2e788(%rip), %r14     # 0xde279
movl $0x1, %edx
movq 0x48(%rsp), %rdi
movq %r15, %rsi
callq 0x84e0
movq 0x30(%rsp), %rax
movq -0x8(%rax,%rbx), %rsi
movq (%rax,%rbx), %rdx
movq 0x48(%rsp), %rdi
callq 0x84e0
movl $0x6, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x84e0
movl $0x1, %edx
movq 0x48(%rsp), %rdi
movq %r15, %rsi
callq 0x84e0
movq 0x30(%rsp), %rax
movq -0x8(%rax,%rbx), %rsi
movq (%rax,%rbx), %rdx
movq 0x48(%rsp), %rdi
callq 0x84e0
movl $0x9, %edx
movq %rax, %rdi
movq %rbp, %rsi
callq 0x84e0
movl $0x1, %edx
movq 0x48(%rsp), %rdi
movq %r15, %rsi
callq 0x84e0
movq 0x30(%rsp), %rax
movq -0x8(%rax,%rbx), %rsi
movq (%rax,%rbx), %rdx
movq 0x48(%rsp), %rdi
callq 0x84e0
movl $0x9, %edx
movq %rax, %rdi
movq %r14, %rsi
callq 0x84e0
movq 0x38(%rsp), %rax
subq 0x30(%rsp), %rax
incq %r12
sarq $0x5, %rax
addq $0x20, %rbx
cmpq %r12, %rax
ja 0xafaf1
movq 0x48(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq 0x48(%rsp), %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
movslq 0x529da(%rip), %rsi     # 0x1025cc
leaq 0x1d0(%rsp), %rdx
movq $0x0, (%rdx)
leaq 0x330(%rsp), %rdi
leaq 0x10(%rsp), %rcx
callq 0xad646
movq 0x38(%rsp), %rsi
subq 0x30(%rsp), %rsi
sarq $0x5, %rsi
incq %rsi
leaq 0x220(%rsp), %rdi
leaq 0x330(%rsp), %rdx
leaq 0x1d0(%rsp), %rcx
callq 0xad6a6
leaq 0xb0(%rsp), %r15
movq 0x38(%rsp), %rsi
subq 0x30(%rsp), %rsi
sarq $0x5, %rsi
incq %rsi
leaq 0x278(%rsp), %rdi
leaq 0x330(%rsp), %rdx
leaq 0x1d0(%rsp), %rcx
callq 0xad6a6
movslq 0x5294e(%rip), %rbx     # 0x1025cc
leaq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
movq %rax, (%rdi)
leaq 0x1cab3(%rip), %rsi     # 0xcc745
leaq 0x1caad(%rip), %rdx     # 0xcc746
callq 0x28a52
leaq 0x1d0(%rsp), %rdi
leaq 0x10(%rsp), %rdx
leaq 0x78(%rsp), %rcx
movq %rbx, %rsi
callq 0xb29b2
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xafcd4
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x38(%rsp), %rsi
subq 0x30(%rsp), %rsi
sarq $0x5, %rsi
leaq 0x440(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0xb2a12
movq 0x38(%rsp), %rsi
subq 0x30(%rsp), %rsi
sarq $0x5, %rsi
leaq 0x458(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0xb2a12
movl 0x528ba(%rip), %eax     # 0x1025d4
movl %eax, 0x13c(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x3f0(%rsp)
movq $0x0, 0x400(%rsp)
movl $0x48, %edi
callq 0x8470
leaq 0x3f0(%rsp), %rdx
movq %rax, (%rdx)
movq %rax, %rcx
addq $0x48, %rcx
movq %rcx, 0x10(%rdx)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x30(%rax)
movupd %xmm0, 0x20(%rax)
movupd %xmm0, 0x10(%rax)
movupd %xmm0, (%rax)
movq $0x0, 0x40(%rax)
movq %rcx, 0x8(%rdx)
movq 0x38(%rsp), %rsi
subq 0x30(%rsp), %rsi
sarq $0x5, %rsi
leaq 0x248(%rsp), %rdi
leaq 0x10(%rsp), %rcx
callq 0xa53b6
movq 0x38(%rsp), %rsi
subq 0x30(%rsp), %rsi
sarq $0x5, %rsi
leaq 0x260(%rsp), %rdi
leaq 0x3f0(%rsp), %rdx
leaq 0x10(%rsp), %rcx
callq 0xa53b6
leaq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
movq %rax, (%rdi)
leaq 0x1dbf2(%rip), %rdx     # 0xcd9cb
movq %rdx, %rsi
callq 0x28a52
leaq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
movq %rax, (%rdi)
leaq 0x1dbd3(%rip), %rdx     # 0xcd9cb
movq %rdx, %rsi
callq 0x28a52
xorpd %xmm0, %xmm0
movapd %xmm0, 0x4a0(%rsp)
xorl %edx, %edx
movq %rdx, 0x4b0(%rsp)
movq %rdx, 0x190(%rsp)
movapd %xmm0, 0x180(%rsp)
leaq 0xc8(%rsp), %rcx
leaq 0xd8(%rsp), %rax
movq %rax, (%rcx)
movq %rdx, 0x8(%rcx)
movb %dl, 0x10(%rcx)
leaq 0x140(%rsp), %rcx
leaq 0x150(%rsp), %rax
movq %rax, (%rcx)
movl $0x0, %eax
movq %rax, 0x8(%rcx)
movb %al, 0x10(%rcx)
leaq 0x110(%rsp), %r13
leaq 0x58(%rsp), %r12
leaq 0xa0(%rsp), %rbp
movl $0x0, 0x17c(%rsp)
movl $0x0, 0x138(%rsp)
movq %rax, 0x168(%rsp)
movq 0x438(%rsp), %rbx
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %edx
movq %rbx, %rdi
movq %r12, %rsi
callq 0x8870
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xb1af4
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rsi
addq %rdi, %rsi
movb $0xd, 0xa0(%rsp)
movq %rbp, %rdx
callq 0x7fd35
movq %rax, %rcx
subq 0x58(%rsp), %rcx
movq %rcx, 0x60(%rsp)
movb $0x0, (%rax)
movq 0x58(%rsp), %rax
cmpb $0x23, (%rax)
jne 0xaff19
movzbl 0x1(%rax), %eax
cmpl $0x23, %eax
je 0xafe94
cmpl $0x43, %eax
je 0xb1821
movl 0x17c(%rsp), %ecx
imull $0x3afb7e91, %ecx, %eax # imm = 0x3AFB7E91
incl %ecx
movl %ecx, 0x17c(%rsp)
addl $0x3b2fec51, %eax       # imm = 0x3B2FEC51
rorl $0x4, %eax
cmpl $0x68db8, %eax          # imm = 0x68DB8
ja 0xb0086
callq 0x82e0
subq 0x420(%rsp), %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x1efb1(%rip), %xmm0    # 0xcef10
movsd %xmm0, 0x8(%rsp)
movl $0xa, %edx
movq 0x52077(%rip), %rdi     # 0x101fe8
leaq 0x21fee(%rip), %rsi     # 0xd1f66
callq 0x84e0
movq 0x52064(%rip), %rdi     # 0x101fe8
movl 0x17c(%rsp), %esi
callq 0x8810
movq %rax, %rbx
movl $0xd, %edx
movq %rax, %rdi
leaq 0x24ecc(%rip), %rsi     # 0xd4e6e
callq 0x84e0
movq %rbx, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x8730
movq %rax, %r14
movl $0x4, %edx
movq %rax, %rdi
leaq 0x27437(%rip), %rsi     # 0xd73fe
callq 0x84e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %r14, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
movl $0xe, %edx
movq 0x51fe9(%rip), %rdi     # 0x101fe8
leaq 0x2d9b9(%rip), %rsi     # 0xdd9bf
callq 0x84e0
movq 0x51fd6(%rip), %rdi     # 0x101fe8
movsd 0x418(%rsp), %xmm0
callq 0x8730
movq %rax, %rbx
movl $0xd, %edx
movq %rax, %rdi
leaq 0x2d99c(%rip), %rsi     # 0xdd9ce
callq 0x84e0
movq %rbx, %rdi
movsd 0x128(%rsp), %xmm0
callq 0x8730
movq %rax, %r14
movl $0x4, %edx
movq %rax, %rdi
leaq 0x273a4(%rip), %rsi     # 0xd73fe
callq 0x84e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %r14, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
leaq 0x100(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
movl $0x9, %edx
callq 0x4d650
movq 0x190(%rsp), %rax
movapd 0x100(%rsp), %xmm0
movq 0x110(%rsp), %rcx
movq %rcx, 0x190(%rsp)
movapd 0x180(%rsp), %xmm1
movapd %xmm0, 0x180(%rsp)
movapd %xmm1, 0xa0(%rsp)
movq %rax, 0xb0(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x100(%rsp)
movq $0x0, 0x110(%rsp)
movq %rbp, %rdi
callq 0x2e784
movq %rbx, %rdi
callq 0x2e784
movq 0x180(%rsp), %rsi
leaq 0xc8(%rsp), %rdi
callq 0x8270
movq 0x180(%rsp), %rsi
addq $0x20, %rsi
leaq 0x140(%rsp), %rdi
callq 0x8270
leaq 0x2a0(%rsp), %rax
movq %rax, 0x290(%rsp)
movq 0x140(%rsp), %rsi
movq 0x148(%rsp), %rdx
addq %rsi, %rdx
leaq 0x290(%rsp), %rdi
callq 0x2ba06
leaq 0x290(%rsp), %rdi
callq 0x4d578
movsd %xmm0, 0x50(%rsp)
movq 0x290(%rsp), %rdi
leaq 0x2a0(%rsp), %rax
cmpq %rax, %rdi
je 0xb01a1
movq 0x2a0(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x180(%rsp), %rsi
movl $0x120, %eax            # imm = 0x120
addq %rax, %rsi
movq 0x188(%rsp), %rdx
leaq 0x1b8(%rsp), %rdi
movq %rbp, %rcx
callq 0x7f67a
movq 0x180(%rsp), %rax
movq %r15, 0xa0(%rsp)
movq 0x60(%rax), %rsi
movq 0x68(%rax), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0x2ba06
movq 0x180(%rsp), %rax
movq %r13, 0x100(%rsp)
movq 0x80(%rax), %rsi
movq 0x88(%rax), %rdx
addq %rsi, %rdx
leaq 0x100(%rsp), %rbx
movq %rbx, %rdi
callq 0x2ba06
cmpq $0x1, 0xa8(%rsp)
ja 0xb045f
cmpq $0x1, 0x108(%rsp)
ja 0xb045f
movq %rbx, %rdi
leaq 0x30509(%rip), %rsi     # 0xe074e
callq 0x8160
testl %eax, %eax
je 0xb045f
callq 0x82e0
movq %rax, %r14
movl $0x2d0, %edi            # imm = 0x2D0
callq 0x8470
movq %rax, 0xf0(%rsp)
movq 0x1c0(%rsp), %rdx
subq 0x1b8(%rsp), %rdx
shrq $0x5, %rdx
movq 0xf0(%rsp), %r15
movq %r15, %rdi
leaq 0x558(%rsp), %rsi
callq 0xb2a90
movq %r15, %rdi
leaq 0x1b8(%rsp), %rsi
leaq 0x528(%rsp), %rdx
callq 0x4d0d4
movq 0xf0(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x4d182
movq 0x1b8(%rsp), %rbx
movq 0x1c0(%rsp), %r15
cmpq %rbx, %r15
je 0xb030f
leaq 0x10(%rbx), %r12
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0xb02f1
movq (%r12), %rsi
incq %rsi
callq 0x8480
leaq 0x20(%r12), %rax
addq $0x10, %r12
cmpq %r15, %r12
movq %rax, %r12
jne 0xb02db
movq %rbx, 0x1c0(%rsp)
leaq 0x58(%rsp), %r12
cmpq %rbx, 0x1c8(%rsp)
je 0xb0326
leaq 0x1b8(%rsp), %rdi
callq 0x7fe80
callq 0x82e0
subq %r14, %rax
cvtsi2sd %rax, %xmm0
divsd 0x1ebd5(%rip), %xmm0    # 0xcef10
movsd %xmm0, 0x418(%rsp)
movq 0xf0(%rsp), %rax
leaq 0xe0(%rax), %rdi
movq 0x30(%rsp), %rsi
movq %rdi, 0xe8(%rsp)
leaq 0xb0(%rsp), %r15
callq 0x52202
movq 0x168(%rsp), %rcx
incl %ecx
movl %ecx, 0x9c(%rsp)
movsd (%rax), %xmm0
ucomisd 0x1b9a6(%rip), %xmm0    # 0xcbd30
jne 0xb03ba
jp 0xb03ba
movq 0xf0(%rsp), %rax
leaq 0x240(%rax), %rbx
movq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x52202
movsd (%rax), %xmm0
ucomisd 0x1b97a(%rip), %xmm0    # 0xcbd30
jne 0xb03ba
jnp 0xb0418
movq 0x30(%rsp), %rsi
movq 0xe8(%rsp), %rdi
callq 0x52202
movsd (%rax), %xmm0
ucomisd 0x1c338(%rip), %xmm0    # 0xcc710
jne 0xb0567
jp 0xb0567
movq 0xf0(%rsp), %rax
leaq 0x240(%rax), %rbx
movq 0x30(%rsp), %rsi
movq %rbx, %rdi
callq 0x52202
movsd (%rax), %xmm0
ucomisd 0x1c304(%rip), %xmm0    # 0xcc710
jne 0xb0567
jp 0xb0567
movq 0xf0(%rsp), %r14
leaq 0x2a0(%r14), %rdi
callq 0x3c686
movq %r14, %rdi
addq $0x270, %rdi            # imm = 0x270
callq 0x7fce8
movq %rbx, %rdi
callq 0x7fce8
movq %r14, %rdi
callq 0x7fb02
movl $0x2d0, %esi            # imm = 0x2D0
movq %r14, %rdi
callq 0x8480
xorl %ebx, %ebx
jmp 0xb0512
movq $0x0, 0xa8(%rsp)
movq 0xa0(%rsp), %rax
movb $0x0, (%rax)
movq %rbp, %rdi
callq 0x8290
movq $0x0, 0x108(%rsp)
movq 0x100(%rsp), %rax
movb $0x0, (%rax)
movq %rbx, %rdi
callq 0x8290
movq 0x1b8(%rsp), %rbx
movq 0x1c0(%rsp), %r14
cmpq %rbx, %r14
je 0xb04e2
leaq 0x10(%rbx), %r15
movq -0x10(%r15), %rdi
cmpq %rdi, %r15
je 0xb04ca
movq (%r15), %rsi
incq %rsi
callq 0x8480
leaq 0x20(%r15), %rax
addq $0x10, %r15
cmpq %r14, %r15
movq %rax, %r15
jne 0xb04b6
movq %rbx, 0x1c0(%rsp)
cmpq %rbx, 0x1c8(%rsp)
je 0xb04f9
leaq 0x1b8(%rsp), %rdi
callq 0x7fe80
xorl %ebx, %ebx
movq 0x168(%rsp), %rax
movl %eax, 0x9c(%rsp)
leaq 0xb0(%rsp), %r15
movq 0x100(%rsp), %rdi
cmpq %r13, %rdi
je 0xb052f
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0xa0(%rsp), %rdi
cmpq %r15, %rdi
je 0xb054c
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x1b8(%rsp), %rdi
callq 0x2e784
testb %bl, %bl
movl 0x9c(%rsp), %eax
jmp 0xafe8c
callq 0x82e0
movq %rax, 0x410(%rsp)
movq 0x140(%rsp), %rdi
callq 0x86e0
leaq 0x1a0(%rsp), %rdi
leaq 0x5b8(%rsp), %rsi
leaq 0xc8(%rsp), %rdx
movl %eax, %ecx
callq 0x581bc
movq 0x1a0(%rsp), %rdi
leaq 0x1d41c(%rip), %rsi     # 0xcd9cb
callq 0x8160
testl %eax, %eax
je 0xb05ee
movq 0x1a0(%rsp), %rsi
leaq 0x10(%rsp), %rdi
callq 0x8270
leaq 0x78(%rsp), %rdi
leaq 0x1d3f5(%rip), %rsi     # 0xcd9cb
callq 0x8160
testl %eax, %eax
jne 0xb05ee
leaq 0x78(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x8270
cvtsi2sdl 0x13c(%rsp), %xmm1
movsd 0x50(%rsp), %xmm0
movsd %xmm1, 0x128(%rsp)
ucomisd %xmm1, %xmm0
xorps %xmm1, %xmm1
cvtsi2sdl 0x138(%rsp), %xmm1
ja 0xb0622
ucomisd %xmm0, %xmm1
jbe 0xb0930
movsd %xmm1, 0x160(%rsp)
movq 0x440(%rsp), %rax
movq 0x8(%rax), %r13
subq (%rax), %r13
movq 0xc8(%rsp), %rsi
movq 0xd0(%rsp), %rdx
movq 0xf8(%rsp), %rdi
callq 0x84e0
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
leaq 0x1d361(%rip), %rsi     # 0xcd9ca
callq 0x84e0
movq %rbx, %rdi
movl 0x138(%rsp), %esi
callq 0x8810
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
leaq 0x1d33b(%rip), %rsi     # 0xcd9ca
callq 0x84e0
movq %rbx, %rdi
movl 0x13c(%rsp), %esi
callq 0x8810
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
leaq 0x1d315(%rip), %rsi     # 0xcd9ca
callq 0x84e0
shrq $0x3, %r13
movq %rbx, %rdi
movl %r13d, %esi
callq 0x8810
movq 0x38(%rsp), %rax
cmpq 0x30(%rsp), %rax
je 0xb08ae
xorl %ebx, %ebx
leaq (%rbx,%rbx,2), %r15
testl %r13d, %r13d
jle 0xb0743
leaq (,%r15,8), %r14
movq 0x440(%rsp), %rsi
addq %r14, %rsi
leaq 0x318(%rsp), %rdi
callq 0x37978
movq 0x318(%rsp), %rax
movq 0x320(%rsp), %rcx
movq %rcx, %r12
subq %rax, %r12
sarq $0x3, %r12
cmpq %rax, %rcx
je 0xb0752
cmpq $0x1, %r12
movq %r12, %rcx
adcq $0x0, %rcx
xorpd %xmm0, %xmm0
xorl %edx, %edx
addsd (%rax,%rdx,8), %xmm0
incq %rdx
cmpq %rdx, %rcx
jne 0xb0734
jmp 0xb0756
xorpd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
jmp 0xb0832
xorpd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
addq 0x458(%rsp), %r14
leaq 0x508(%rsp), %rdi
movq %r14, %rsi
callq 0x37978
xorps %xmm0, %xmm0
cvtsi2sd %r12, %xmm0
movsd 0x8(%rsp), %xmm2
divsd %xmm0, %xmm2
movq 0x508(%rsp), %rdi
movq 0x510(%rsp), %rcx
movq %rcx, %rax
subq %rdi, %rax
sarq $0x3, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
cmpq %rdi, %rcx
je 0xb07e9
movsd %xmm2, 0x8(%rsp)
cmpq $0x1, %rax
adcq $0x0, %rax
xorpd %xmm1, %xmm1
xorl %ecx, %ecx
leaq 0x58(%rsp), %r12
addsd (%rdi,%rcx,8), %xmm1
incq %rcx
cmpq %rcx, %rax
jne 0xb07c6
divsd %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
jmp 0xb0805
xorpd %xmm1, %xmm1
divsd %xmm0, %xmm1
divsd %xmm1, %xmm2
movsd %xmm2, 0x8(%rsp)
testq %rcx, %rcx
leaq 0x58(%rsp), %r12
je 0xb0815
movq 0x518(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x318(%rsp), %rdi
testq %rdi, %rdi
je 0xb0832
movq 0x328(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movl $0x1, %edx
movq 0xf8(%rsp), %rdi
leaq 0x1d184(%rip), %rsi     # 0xcd9ca
callq 0x84e0
movq 0xf8(%rsp), %rdi
movsd 0x8(%rsp), %xmm0
callq 0x8730
movq 0x440(%rsp), %rcx
movq (%rcx,%r15,8), %rax
cmpq %rax, 0x8(%rcx,%r15,8)
je 0xb0879
leaq (%rcx,%r15,8), %rcx
movq %rax, 0x8(%rcx)
movq 0x458(%rsp), %rcx
movq (%rcx,%r15,8), %rax
cmpq %rax, 0x8(%rcx,%r15,8)
je 0xb0894
leaq (%rcx,%r15,8), %rcx
movq %rax, 0x8(%rcx)
incq %rbx
movq 0x38(%rsp), %rax
subq 0x30(%rsp), %rax
sarq $0x5, %rax
cmpq %rbx, %rax
jne 0xb06db
movq 0xf8(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq 0xf8(%rsp), %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
movsd 0x50(%rsp), %xmm0
ucomisd 0x128(%rsp), %xmm0
movsd 0x160(%rsp), %xmm1
jbe 0xb0912
movl 0x51cd2(%rip), %eax     # 0x1025d4
addl %eax, 0x138(%rsp)
addl %eax, 0x13c(%rsp)
jmp 0xb0930
ucomisd %xmm0, %xmm1
jbe 0xb0930
movl $0x0, 0x138(%rsp)
movl 0x51cab(%rip), %eax     # 0x1025d4
movl %eax, 0x13c(%rsp)
leaq 0x1d0(%rsp), %rdi
leaq 0x140(%rsp), %rsi
callq 0xb2be2
leaq 0x1d0(%rsp), %rdi
callq 0xb2c20
movl 0x51c74(%rip), %eax     # 0x1025cc
cmpl %eax, 0x168(%rsp)
setge %dl
movl 0x51c68(%rip), %ecx     # 0x1025d0
cmpl %ecx, %eax
sete %al
orb %dl, %al
cmpb $0x1, %al
jne 0xb0a72
movl 0x9c(%rsp), %eax
cltd
idivl %ecx
testl %edx, %edx
jne 0xb0a72
movq 0xc8(%rsp), %rsi
movq 0xd0(%rsp), %rdx
movq 0xc0(%rsp), %rdi
callq 0x84e0
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0x1d012(%rip), %rsi     # 0xcd9ca
callq 0x84e0
movq 0x1e0(%rsp), %rdi
movq 0x1f8(%rsp), %rax
movq %rdi, %rdx
subq 0x1e8(%rsp), %rdx
movq %rdx, %rcx
sarq $0x5, %rcx
js 0xb09f0
cmpq $0x10, %rcx
jb 0xb0a09
movq %rcx, %rdx
shrq $0x4, %rdx
jmp 0xb09f4
sarq $0x9, %rdx
movq %rdx, %rsi
shlq $0x4, %rsi
subq %rsi, %rcx
shlq $0x5, %rcx
addq (%rax,%rdx,8), %rcx
movq %rcx, %rdi
movq (%rdi), %rsi
movq 0x8(%rdi), %rdx
movq %r14, %rdi
callq 0x84e0
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
leaq 0x1cfa0(%rip), %rsi     # 0xcd9ca
callq 0x84e0
movq 0x140(%rsp), %rsi
movq 0x148(%rsp), %rdx
movq %rbx, %rdi
callq 0x84e0
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
leaq 0x1cf71(%rip), %rsi     # 0xcd9ca
callq 0x84e0
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x2c6d2(%rip), %rsi     # 0xdd13f
callq 0x84e0
movq 0x30(%rsp), %rsi
cmpq %rsi, 0x38(%rsp)
je 0xb1097
movq 0xf0(%rsp), %rax
leaq 0x240(%rax), %rcx
movq %rcx, 0x128(%rsp)
leaq 0x68(%rax), %rcx
movq %rcx, 0x160(%rsp)
addq $0x2a0, %rax            # imm = 0x2A0
movq %rax, 0x240(%rsp)
xorl %ebx, %ebx
xorl %r14d, %r14d
xorl %r13d, %r13d
xorl %r15d, %r15d
addq %rbx, %rsi
movq 0xe8(%rsp), %rdi
callq 0x52202
movsd (%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x30(%rsp), %rsi
addq %rbx, %rsi
movq 0x128(%rsp), %rdi
callq 0x52202
movsd (%rax), %xmm0
movsd %xmm0, 0x50(%rsp)
movq 0x30(%rsp), %rsi
addq %rbx, %rsi
movq 0x160(%rsp), %rdi
callq 0x518f2
movl (%rax), %r12d
movq 0x30(%rsp), %rsi
addq %rbx, %rsi
movq 0x240(%rsp), %rdi
callq 0x518f2
xorps %xmm0, %xmm0
cvtsi2sd %r12d, %xmm0
movq 0xf0(%rsp), %rcx
movq 0xc8(%rcx), %rcx
movsd (%rcx,%r15,8), %xmm1
unpcklps 0x18568(%rip), %xmm1    # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x18570(%rip), %xmm1    # 0xc90c0
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
mulsd 0x24134(%rip), %xmm2    # 0xd4c98
ucomisd %xmm2, %xmm0
jae 0xb0bb2
movq $0x0, 0x130(%rsp)
movq 0x220(%rsp), %rdi
leaq (%rdi,%r13), %rax
movq 0x30(%rdi,%r13), %rcx
movq 0x40(%rdi,%r13), %rdx
addq $-0x8, %rdx
cmpq %rdx, %rcx
je 0xb0c61
movq $0x0, (%rcx)
addq $0x8, %rcx
movq %rcx, 0x30(%rax)
leaq 0x58(%rsp), %r12
jmp 0xb0c7e
movl (%rax), %eax
movsd 0x8(%rsp), %xmm2
movapd %xmm2, %xmm0
movsd 0x50(%rsp), %xmm4
subsd %xmm4, %xmm0
mulsd %xmm0, %xmm0
movsd 0x1bb3c(%rip), %xmm3    # 0xcc710
movapd %xmm3, %xmm5
subsd %xmm2, %xmm5
movapd %xmm2, %xmm1
movsd %xmm5, 0x430(%rsp)
mulsd %xmm5, %xmm1
decl %r12d
xorps %xmm2, %xmm2
cvtsi2sd %r12d, %xmm2
divsd %xmm2, %xmm1
subsd %xmm1, %xmm0
subsd %xmm4, %xmm3
movapd %xmm4, %xmm1
movsd %xmm3, 0x428(%rsp)
mulsd %xmm3, %xmm1
decl %eax
xorps %xmm2, %xmm2
cvtsi2sd %eax, %xmm2
divsd %xmm2, %xmm1
subsd %xmm1, %xmm0
movsd %xmm0, 0x130(%rsp)
movq 0x220(%rsp), %rdi
leaq (%rdi,%r13), %rax
movq 0x30(%rdi,%r13), %rcx
movq 0x40(%rdi,%r13), %rdx
addq $-0x8, %rdx
cmpq %rdx, %rcx
je 0xb0cbe
movsd %xmm0, (%rcx)
addq $0x8, %rcx
movq %rcx, 0x30(%rax)
leaq 0x58(%rsp), %r12
jmp 0xb0cdb
movq %rax, %rdi
leaq 0x130(%rsp), %rsi
callq 0xae44a
leaq 0x58(%rsp), %r12
movq 0x220(%rsp), %rdi
addq %r13, %rdi
callq 0xadba0
movq $0x0, 0x170(%rsp)
movq 0x278(%rsp), %rdi
leaq (%rdi,%r13), %rax
movq 0x30(%rdi,%r13), %rcx
movq 0x40(%rdi,%r13), %rdx
addq $-0x8, %rdx
cmpq %rdx, %rcx
je 0xb0d3b
movq $0x0, (%rcx)
jmp 0xb0d31
movq %rax, %rdi
leaq 0x130(%rsp), %rsi
callq 0xae44a
leaq 0x58(%rsp), %r12
movq 0x220(%rsp), %rdi
addq %r13, %rdi
callq 0xadba0
movsd 0x430(%rsp), %xmm1
mulsd 0x50(%rsp), %xmm1
movsd 0x8(%rsp), %xmm0
mulsd 0x428(%rsp), %xmm0
addsd %xmm1, %xmm0
movsd %xmm0, 0x170(%rsp)
movq 0x278(%rsp), %rdi
leaq (%rdi,%r13), %rax
movq 0x30(%rdi,%r13), %rcx
movq 0x40(%rdi,%r13), %rdx
addq $-0x8, %rdx
cmpq %rdx, %rcx
je 0xb0d4d
movsd %xmm0, (%rcx)
addq $0x8, %rcx
movq %rcx, 0x30(%rax)
jmp 0xb0d65
movq %rax, %rdi
leaq 0x170(%rsp), %rsi
callq 0xae44a
jmp 0xb0d5d
movq %rax, %rdi
leaq 0x170(%rsp), %rsi
callq 0xae44a
movq 0x278(%rsp), %rdi
addq %r13, %rdi
callq 0xadba0
cmpq $0x0, 0x5314b(%rip)     # 0x103ec0
je 0xb0f2f
movq 0x1a0(%rsp), %rdi
leaq 0x1cc41(%rip), %rsi     # 0xcd9cb
callq 0x8160
testl %eax, %eax
je 0xb0f2f
movq 0x1a0(%rsp), %rdi
addq $0x20, %rdi
leaq 0x20b30(%rip), %rsi     # 0xd18da
callq 0x8160
testl %eax, %eax
je 0xb0e27
movq 0x1a0(%rsp), %rdi
addq $0x20, %rdi
leaq 0x1c2fd(%rip), %rsi     # 0xcd0c3
callq 0x8160
testl %eax, %eax
je 0xb0e54
movq 0x1a0(%rsp), %rdi
addq $0x20, %rdi
leaq 0x2d494(%rip), %rsi     # 0xde27a
callq 0x8160
testl %eax, %eax
jne 0xb0f2f
movq 0x248(%rsp), %rax
movq (%rax,%r14), %rdi
movq 0x38(%rdi), %rsi
cmpq 0x40(%rdi), %rsi
je 0xb0edd
movsd 0x130(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x38(%rdi)
jmp 0xb0eee
movq 0x248(%rsp), %rax
movq (%rax,%r14), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0xb0e81
movsd 0x130(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x8(%rdi)
jmp 0xb0e8e
movq 0x248(%rsp), %rax
movq (%rax,%r14), %rdi
movq 0x20(%rdi), %rsi
cmpq 0x28(%rdi), %rsi
je 0xb0eaa
movsd 0x130(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x20(%rdi)
jmp 0xb0ebb
leaq 0x130(%rsp), %rdx
callq 0x79b8e
movq 0x260(%rsp), %rax
movq (%rax,%r14), %rdi
movq 0x8(%rdi), %rsi
cmpq 0x10(%rdi), %rsi
je 0xb0f22
addq $0x8, %rdi
jmp 0xb0f08
addq $0x18, %rdi
leaq 0x130(%rsp), %rdx
callq 0x79b8e
movq 0x260(%rsp), %rax
movq (%rax,%r14), %rdi
movq 0x20(%rdi), %rsi
cmpq 0x28(%rdi), %rsi
je 0xb0ed7
addq $0x20, %rdi
jmp 0xb0f08
addq $0x18, %rdi
jmp 0xb0f22
addq $0x30, %rdi
leaq 0x130(%rsp), %rdx
callq 0x79b8e
movq 0x260(%rsp), %rax
movq (%rax,%r14), %rdi
movq 0x38(%rdi), %rsi
cmpq 0x40(%rdi), %rsi
je 0xb0f1e
addq $0x38, %rdi
movsd 0x170(%rsp), %xmm0
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, (%rdi)
jmp 0xb0f2f
addq $0x30, %rdi
leaq 0x170(%rsp), %rdx
callq 0x79b8e
movl 0x51697(%rip), %eax     # 0x1025cc
cmpl %eax, 0x168(%rsp)
setge %dl
movl 0x5168b(%rip), %ecx     # 0x1025d0
cmpl %ecx, %eax
sete %al
orb %dl, %al
cmpb $0x1, %al
jne 0xb106e
movl 0x9c(%rsp), %eax
cltd
idivl %ecx
testl %edx, %edx
jne 0xb106e
movq 0x220(%rsp), %rsi
addq %r13, %rsi
leaq 0x678(%rsp), %rdi
callq 0xadca0
movq %rbp, %r12
leaq 0x678(%rsp), %rdi
callq 0xadbee
movsd %xmm0, 0x8(%rsp)
movq 0x278(%rsp), %rsi
addq %r13, %rsi
leaq 0x718(%rsp), %rbp
movq %rbp, %rdi
callq 0xadca0
movq %rbp, %rdi
callq 0xadbee
movsd 0x8(%rsp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x8(%rsp)
movq %rbp, %rdi
callq 0xae016
leaq 0x678(%rsp), %rdi
callq 0xae016
xorpd %xmm0, %xmm0
ucomisd 0x8(%rsp), %xmm0
movq %r12, %rbp
ja 0xb1033
movq 0x278(%rsp), %rsi
addq %r13, %rsi
leaq 0x6c8(%rsp), %rdi
callq 0xadca0
leaq 0x6c8(%rsp), %r12
movq %r12, %rdi
callq 0xadbee
movsd %xmm0, 0x50(%rsp)
movq %r12, %rdi
callq 0xae016
movsd 0x50(%rsp), %xmm0
ucomisd 0x1ad01(%rip), %xmm0    # 0xcbd30
jne 0xb103d
jp 0xb103d
xorpd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
movl $0x1, %edx
movq 0xc0(%rsp), %rdi
leaq 0x1c979(%rip), %rsi     # 0xcd9ca
callq 0x84e0
leaq 0x58(%rsp), %r12
movq 0xc0(%rsp), %rdi
movsd 0x8(%rsp), %xmm0
callq 0x8730
incq %r15
movq 0x30(%rsp), %rsi
movq 0x38(%rsp), %rax
subq %rsi, %rax
sarq $0x5, %rax
addq $0x50, %r13
addq $0x18, %r14
addq $0x20, %rbx
cmpq %rax, %r15
jne 0xb0abe
cmpq $0x0, 0x52e21(%rip)     # 0x103ec0
leaq 0xb0(%rsp), %r15
leaq 0x110(%rsp), %r13
je 0xb1740
leaq 0x78(%rsp), %rdi
leaq 0x1c90a(%rip), %rsi     # 0xcd9cb
callq 0x8160
testl %eax, %eax
je 0xb1740
movq 0x18(%rsp), %rdx
movq 0x80(%rsp), %rbx
cmpq %rbx, %rdx
jne 0xb1107
testq %rdx, %rdx
je 0xb1740
movq 0x78(%rsp), %r14
movq 0x10(%rsp), %rdi
movq %r14, %rsi
callq 0x8490
movq %r14, %rsi
testl %eax, %eax
jne 0xb110c
jmp 0xb1740
movq 0x78(%rsp), %rsi
movq 0x248(%rsp), %rax
movq (%rax), %rax
movq 0x8(%rax), %r14
movq 0x20(%rax), %rcx
subq (%rax), %r14
subq 0x18(%rax), %rcx
movq %rcx, 0x128(%rsp)
movq 0x38(%rax), %rcx
subq 0x30(%rax), %rcx
movq %rcx, 0x160(%rsp)
movq 0x48(%rsp), %rdi
movq %rbx, %rdx
callq 0x84e0
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
leaq 0x1c86d(%rip), %rsi     # 0xcd9ca
callq 0x84e0
shrq $0x3, %r14
movq %rbx, %rdi
movq %r14, 0x240(%rsp)
movl %r14d, %esi
callq 0x8810
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
leaq 0x1c83f(%rip), %rsi     # 0xcd9ca
callq 0x84e0
movq 0x128(%rsp), %rsi
shrq $0x3, %rsi
movq %rbx, %rdi
movq %rsi, 0x128(%rsp)
callq 0x8810
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
leaq 0x1c80c(%rip), %rsi     # 0xcd9ca
callq 0x84e0
movq 0x160(%rsp), %rsi
shrq $0x3, %rsi
movq %rbx, %rdi
movq %rsi, 0x160(%rsp)
callq 0x8810
movq 0x38(%rsp), %rax
cmpq 0x30(%rsp), %rax
je 0xb1703
xorl %r14d, %r14d
xorpd %xmm0, %xmm0
movsd %xmm0, 0x50(%rsp)
leaq (%r14,%r14,2), %r15
movsd %xmm0, 0x8(%rsp)
cmpl $0x0, 0x240(%rsp)
jle 0xb1343
movq 0x248(%rsp), %rax
movq (%rax,%r15,8), %rsi
leaq 0x300(%rsp), %rdi
callq 0x37978
movq 0x300(%rsp), %rax
movq 0x308(%rsp), %rcx
movq %rcx, %rbx
subq %rax, %rbx
sarq $0x3, %rbx
cmpq %rax, %rcx
je 0xb126c
cmpq $0x1, %rbx
movq %rbx, %rcx
adcq $0x0, %rcx
xorpd %xmm0, %xmm0
xorl %edx, %edx
addsd (%rax,%rdx,8), %xmm0
incq %rdx
cmpq %rdx, %rcx
jne 0xb125d
jmp 0xb1270
xorpd %xmm0, %xmm0
movsd %xmm0, 0x8(%rsp)
movq 0x260(%rsp), %rax
movq (%rax,%r15,8), %rsi
leaq 0x4f0(%rsp), %rdi
callq 0x37978
xorps %xmm0, %xmm0
cvtsi2sd %rbx, %xmm0
movsd 0x8(%rsp), %xmm2
divsd %xmm0, %xmm2
movq 0x4f0(%rsp), %rdi
movq 0x4f8(%rsp), %rcx
movq %rcx, %rax
subq %rdi, %rax
sarq $0x3, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
cmpq %rdi, %rcx
je 0xb12ff
movsd %xmm2, 0x8(%rsp)
cmpq $0x1, %rax
adcq $0x0, %rax
xorpd %xmm1, %xmm1
xorl %ecx, %ecx
addsd (%rdi,%rcx,8), %xmm1
incq %rcx
cmpq %rcx, %rax
jne 0xb12dc
divsd %xmm0, %xmm1
movsd 0x8(%rsp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, 0x8(%rsp)
jmp 0xb1316
xorpd %xmm1, %xmm1
divsd %xmm0, %xmm1
divsd %xmm1, %xmm2
movsd %xmm2, 0x8(%rsp)
testq %rcx, %rcx
je 0xb1326
movq 0x500(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x300(%rsp), %rdi
testq %rdi, %rdi
je 0xb1343
movq 0x310(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
cmpl $0x0, 0x128(%rsp)
jle 0xb1488
movq 0x248(%rsp), %rax
movq (%rax,%r15,8), %rsi
addq $0x18, %rsi
leaq 0x2e8(%rsp), %rdi
callq 0x37978
movq 0x2e8(%rsp), %rax
movq 0x2f0(%rsp), %rcx
movq %rcx, %rbx
subq %rax, %rbx
sarq $0x3, %rbx
cmpq %rax, %rcx
je 0xb13ad
cmpq $0x1, %rbx
movq %rbx, %rcx
adcq $0x0, %rcx
xorpd %xmm0, %xmm0
xorl %edx, %edx
addsd (%rax,%rdx,8), %xmm0
incq %rdx
cmpq %rdx, %rcx
jne 0xb139e
jmp 0xb13b1
xorpd %xmm0, %xmm0
movsd %xmm0, 0x50(%rsp)
movq 0x260(%rsp), %rax
movq (%rax,%r15,8), %rsi
addq $0x18, %rsi
leaq 0x4d8(%rsp), %rdi
callq 0x37978
xorps %xmm0, %xmm0
cvtsi2sd %rbx, %xmm0
movsd 0x50(%rsp), %xmm2
divsd %xmm0, %xmm2
movq 0x4d8(%rsp), %rdi
movq 0x4e0(%rsp), %rcx
movq %rcx, %rax
subq %rdi, %rax
sarq $0x3, %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
cmpq %rdi, %rcx
je 0xb1444
movsd %xmm2, 0x50(%rsp)
cmpq $0x1, %rax
adcq $0x0, %rax
xorpd %xmm1, %xmm1
xorl %ecx, %ecx
addsd (%rdi,%rcx,8), %xmm1
incq %rcx
cmpq %rcx, %rax
jne 0xb1421
divsd %xmm0, %xmm1
movsd 0x50(%rsp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm0, 0x50(%rsp)
jmp 0xb145b
xorpd %xmm1, %xmm1
divsd %xmm0, %xmm1
divsd %xmm1, %xmm2
movsd %xmm2, 0x50(%rsp)
testq %rcx, %rcx
je 0xb146b
movq 0x4e8(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x2e8(%rsp), %rdi
testq %rdi, %rdi
je 0xb1488
movq 0x2f8(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
cmpl $0x0, 0x160(%rsp)
jle 0xb14ee
movq 0x248(%rsp), %rax
movq (%rax,%r15,8), %rsi
addq $0x30, %rsi
leaq 0x2d0(%rsp), %rdi
callq 0x37978
movq 0x2d0(%rsp), %rax
movq 0x2d8(%rsp), %rcx
movq %rcx, %rbx
subq %rax, %rbx
sarq $0x3, %rbx
cmpq %rax, %rcx
je 0xb1500
cmpq $0x1, %rbx
movq %rbx, %rcx
adcq $0x0, %rcx
xorpd %xmm0, %xmm0
xorl %edx, %edx
addsd (%rax,%rdx,8), %xmm0
incq %rdx
cmpq %rdx, %rcx
jne 0xb14df
jmp 0xb1504
xorpd %xmm0, %xmm0
movsd %xmm0, 0xe8(%rsp)
jmp 0xb15f8
xorpd %xmm0, %xmm0
movsd %xmm0, 0xe8(%rsp)
movq 0x260(%rsp), %rax
movq (%rax,%r15,8), %rsi
addq $0x30, %rsi
leaq 0x4c0(%rsp), %rdi
callq 0x37978
xorps %xmm0, %xmm0
cvtsi2sd %rbx, %xmm0
movsd 0xe8(%rsp), %xmm2
divsd %xmm0, %xmm2
movq 0x4c0(%rsp), %rdi
movq 0x4c8(%rsp), %rcx
movq %rcx, %rax
subq %rdi, %rax
sarq $0x3, %rax
cmpq %rdi, %rcx
je 0xb15a9
movsd %xmm2, 0xe8(%rsp)
cmpq $0x1, %rax
movq %rax, %rcx
adcq $0x0, %rcx
xorpd %xmm0, %xmm0
xorl %edx, %edx
addsd (%rdi,%rdx,8), %xmm0
incq %rdx
cmpq %rdx, %rcx
jne 0xb1578
xorps %xmm1, %xmm1
cvtsi2sd %rax, %xmm1
divsd %xmm1, %xmm0
movsd 0xe8(%rsp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0xe8(%rsp)
jmp 0xb15cb
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
xorpd %xmm1, %xmm1
divsd %xmm0, %xmm1
divsd %xmm1, %xmm2
movsd %xmm2, 0xe8(%rsp)
testq %rcx, %rcx
je 0xb15db
movq 0x4d0(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x2d0(%rsp), %rdi
testq %rdi, %rdi
je 0xb15f8
movq 0x2e0(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movl $0x1, %edx
movq 0x48(%rsp), %rdi
leaq 0x1c3c1(%rip), %rsi     # 0xcd9ca
callq 0x84e0
xorpd %xmm0, %xmm0
maxsd 0x8(%rsp), %xmm0
movq 0x48(%rsp), %rdi
callq 0x8730
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
leaq 0x1c396(%rip), %rsi     # 0xcd9ca
callq 0x84e0
xorpd %xmm0, %xmm0
maxsd 0x50(%rsp), %xmm0
movq %rbx, %rdi
callq 0x8730
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
leaq 0x1c36d(%rip), %rsi     # 0xcd9ca
callq 0x84e0
xorpd %xmm0, %xmm0
maxsd 0xe8(%rsp), %xmm0
movq %rbx, %rdi
callq 0x8730
movq 0x248(%rsp), %rax
movq (%rax,%r15,8), %rax
movq (%rax), %rcx
cmpq %rcx, 0x8(%rax)
je 0xb1690
movq %rcx, 0x8(%rax)
movq 0x18(%rax), %rcx
cmpq %rcx, 0x20(%rax)
je 0xb169e
movq %rcx, 0x20(%rax)
movq 0x30(%rax), %rcx
cmpq %rcx, 0x38(%rax)
je 0xb16ac
movq %rcx, 0x38(%rax)
movq 0x260(%rsp), %rax
movq (%rax,%r15,8), %rax
movq (%rax), %rcx
cmpq %rcx, 0x8(%rax)
je 0xb16c5
movq %rcx, 0x8(%rax)
movq 0x18(%rax), %rcx
cmpq %rcx, 0x20(%rax)
leaq 0xb0(%rsp), %r15
je 0xb16db
movq %rcx, 0x20(%rax)
movq 0x30(%rax), %rcx
cmpq %rcx, 0x38(%rax)
je 0xb16e9
movq %rcx, 0x38(%rax)
incq %r14
movq 0x38(%rsp), %rax
subq 0x30(%rsp), %rax
sarq $0x5, %rax
cmpq %r14, %rax
ja 0xb11f2
movq 0x48(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq 0x48(%rsp), %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
leaq 0x78(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x8270
movl 0x50e86(%rip), %eax     # 0x1025cc
cmpl %eax, 0x168(%rsp)
setge %dl
movl 0x50e7a(%rip), %ecx     # 0x1025d0
cmpl %ecx, %eax
sete %al
orb %dl, %al
cmpb $0x1, %al
jne 0xb17a3
movl 0x9c(%rsp), %eax
cltd
idivl %ecx
testl %edx, %edx
jne 0xb17a3
movq 0xc0(%rsp), %rcx
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq 0xc0(%rsp), %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
callq 0x82e0
subq 0x410(%rsp), %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x1d750(%rip), %xmm0    # 0xcef10
movsd %xmm0, 0x128(%rsp)
movq 0xf0(%rsp), %rbx
leaq 0x2a0(%rbx), %rdi
callq 0x3c686
leaq 0x270(%rbx), %rdi
callq 0x7fce8
movq %rbx, %rdi
addq $0x240, %rdi            # imm = 0x240
callq 0x7fce8
movq %rbx, %rdi
callq 0x7fb02
movl $0x2d0, %esi            # imm = 0x2D0
movq %rbx, %rdi
callq 0x8480
leaq 0x1a0(%rsp), %rdi
callq 0x2e784
movb $0x1, %bl
jmp 0xb0512
leaq 0x100(%rsp), %rbx
movq %rbx, %rdi
movq %r12, %rsi
movl $0x9, %edx
callq 0x4d650
movq 0x190(%rsp), %rax
movapd 0x100(%rsp), %xmm0
movq 0x110(%rsp), %rcx
movq %rcx, 0x190(%rsp)
movapd 0x180(%rsp), %xmm1
movapd %xmm0, 0x180(%rsp)
movapd %xmm1, 0xa0(%rsp)
movq %rax, 0xb0(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x100(%rsp)
movq $0x0, 0x110(%rsp)
movq %rbp, %rdi
callq 0x2e784
movq %rbx, %rdi
callq 0x2e784
movq 0x180(%rsp), %rsi
movl $0x120, %eax            # imm = 0x120
addq %rax, %rsi
movq 0x188(%rsp), %rdx
movq %rbx, %rdi
movq %rbp, %rcx
callq 0x7f67a
leaq 0x588(%rsp), %r14
leaq 0x528(%rsp), %r13
movq $0x0, 0xa0(%rsp)
movq 0x100(%rsp), %rax
cmpq %rax, 0x108(%rsp)
je 0xb1950
xorl %esi, %esi
shlq $0x5, %rsi
addq %rax, %rsi
movq %r14, %rdi
callq 0x3b46e
movq %rax, %rbx
movq %r13, %rdi
movq %rbp, %rsi
callq 0x5d958
movq %rax, %rdi
movq %rbx, %rsi
callq 0x8270
movq 0xa0(%rsp), %rsi
incq %rsi
movq %rsi, 0xa0(%rsp)
movq 0x100(%rsp), %rax
movq 0x108(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
cmpq %rcx, %rsi
jne 0xb18f9
movq 0x488(%rsp), %r13
leaq 0x478(%rsp), %rax
cmpq %rax, %r13
je 0xb1ac5
movq %r15, 0xa0(%rsp)
movq 0x20(%r13), %rsi
movq 0x28(%r13), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0x2ba06
leaq 0x40(%r13), %rsi
leaq 0x1b8(%rsp), %rbx
movq %rbx, %rdi
callq 0x2fc8e
leaq 0x1a0(%rsp), %rdi
leaq 0x100(%rsp), %rsi
movq %rbx, %rdx
callq 0x5038c
movq 0x1a0(%rsp), %rax
cmpq 0x1a8(%rsp), %rax
jne 0xb1a4e
movl $0x29, %edx
movq 0x50616(%rip), %rdi     # 0x101fe8
leaq 0x20522(%rip), %rsi     # 0xd1efb
callq 0x84e0
movq 0xa0(%rsp), %rsi
movq 0xa8(%rsp), %rdx
movq 0x505f3(%rip), %rdi     # 0x101fe8
callq 0x84e0
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0x1ec3f(%rip), %rsi     # 0xd064b
callq 0x84e0
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %r14, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
movq 0x1a0(%rsp), %rax
cmpq 0x1a8(%rsp), %rax
je 0xb1cba
leaq 0x558(%rsp), %rdi
movq %rbp, %rsi
callq 0x5d9be
movq %rax, %rdi
leaq 0x1a0(%rsp), %rsi
callq 0x5da3a
movq 0x1a0(%rsp), %rdi
testq %rdi, %rdi
je 0xb1a8b
movq 0x1b0(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
leaq 0x1b8(%rsp), %rdi
callq 0x2e784
movq 0xa0(%rsp), %rdi
cmpq %r15, %rdi
je 0xb1ab5
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x8480
movq %r13, %rdi
callq 0x8310
movq %rax, %r13
jmp 0xb1958
callq 0x82e0
movq %rax, 0x420(%rsp)
leaq 0x100(%rsp), %rdi
callq 0x2e784
leaq 0x110(%rsp), %r13
movq 0x168(%rsp), %rax
jmp 0xafe8c
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rax
cmpq %rax, %rdi
je 0xb1b19
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
leaq 0x68(%rsp), %rbx
je 0xb1b43
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x180(%rsp), %rdi
callq 0x2e784
leaq 0x4a0(%rsp), %rdi
callq 0x2e784
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0xb1b7f
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xb1b9b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x260(%rsp), %rdi
callq 0xa5098
leaq 0x248(%rsp), %rdi
callq 0xa5098
leaq 0x3f0(%rsp), %rdi
callq 0x42ffa
leaq 0x458(%rsp), %rdi
callq 0x42ffa
leaq 0x440(%rsp), %rdi
callq 0x42ffa
leaq 0x1d0(%rsp), %rdi
callq 0xb2c64
leaq 0x278(%rsp), %rdi
callq 0xaddb2
leaq 0x220(%rsp), %rdi
callq 0xaddb2
leaq 0x330(%rsp), %rdi
callq 0xae016
leaq 0x30(%rsp), %rdi
callq 0x2e784
leaq 0x2b0(%rsp), %rdi
callq 0x2e784
leaq 0x528(%rsp), %rdi
callq 0x5df54
leaq 0x558(%rsp), %rdi
callq 0x5dfcc
leaq 0x588(%rsp), %rdi
callq 0x3c6d4
leaq 0x470(%rsp), %rdi
callq 0x3c602
leaq 0x648(%rsp), %rdi
callq 0x3c57e
leaq 0x618(%rsp), %rdi
callq 0x3c602
leaq 0x5e8(%rsp), %rdi
callq 0x3c686
leaq 0x5b8(%rsp), %rdi
callq 0x30870
movq 0x58(%rsp), %rdi
cmpq %rbx, %rdi
je 0xb1ca6
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x8480
xorl %eax, %eax
addq $0x768, %rsp            # imm = 0x768
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x20264(%rip), %rdi     # 0xd1f25
leaq 0x2cd42(%rip), %rsi     # 0xdea0a
leaq 0x2cd51(%rip), %rcx     # 0xdea20
movl $0xa5, %edx
callq 0x82c0
jmp 0xb229e
jmp 0xb227a
jmp 0xb229e
jmp 0xb229e
movq %rax, %rbx
movl $0x2d0, %esi            # imm = 0x2D0
movq %r15, %rdi
callq 0x8480
jmp 0xb22ae
movq %rax, %rbx
movq 0x330(%rsp), %rdi
leaq 0x340(%rsp), %rax
cmpq %rax, %rdi
je 0xb1d2f
movq 0x340(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb1d2f
movq %rax, %rbx
movq 0x1d0(%rsp), %rdi
cmpq %r15, %rdi
je 0xb1d51
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb1d51
movq %rax, %rbx
leaq 0x230(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb1d77
movq 0x230(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb1d77
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xb1d98
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb1d98
movq %rax, %rbx
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0xb1dbf
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb1dbf
movq %rax, %rbx
leaq 0x110(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb1de5
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb1de5
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0xb1e0f
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb1e0f
movq %rax, %rbx
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rax
cmpq %rax, %rdi
je 0xb1e3b
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb1e3b
jmp 0xb1e38
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0xb1e60
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x8480
movl $0x200, %esi            # imm = 0x200
movq 0x48(%rsp), %rdi
jmp 0xb2187
movq %rax, %rbx
jmp 0xb1e60
jmp 0xb21da
movq %rax, %rbx
movl $0x208, %esi            # imm = 0x208
movq %r14, %rdi
jmp 0xb21d0
jmp 0xb21da
jmp 0xb229e
movq %rax, %rbx
movq 0x2e8(%rsp), %rdi
testq %rdi, %rdi
je 0xb22a1
movq 0x2f8(%rsp), %rsi
jmp 0xb220d
movq %rax, %rbx
movq 0x300(%rsp), %rdi
testq %rdi, %rdi
je 0xb22a1
movq 0x310(%rsp), %rsi
jmp 0xb220d
movq %rax, %rbx
movq 0x2d0(%rsp), %rdi
testq %rdi, %rdi
je 0xb22a1
movq 0x2e0(%rsp), %rsi
jmp 0xb220d
movq %rax, %rbx
leaq 0x678(%rsp), %rdi
callq 0xae016
jmp 0xb22a1
jmp 0xb232b
jmp 0xb232b
movq %rax, %rbx
leaq 0x68(%rsp), %r13
jmp 0xb2427
movq %rax, %rbx
leaq 0x68(%rsp), %r13
jmp 0xb2443
movq %rax, %rbx
leaq 0x68(%rsp), %r13
jmp 0xb2450
movq %rax, %rbx
leaq 0x68(%rsp), %r13
jmp 0xb245d
movq %rax, %rbx
leaq 0x68(%rsp), %r13
jmp 0xb246a
movq %rax, %rbx
leaq 0x68(%rsp), %r13
jmp 0xb2477
movq %rax, %rbx
leaq 0x68(%rsp), %r13
jmp 0xb2484
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xb1f94
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb1f94
movq %rax, %rbx
leaq 0x68(%rsp), %r13
jmp 0xb2491
movq %rax, %rbx
leaq 0x68(%rsp), %r13
jmp 0xb249e
movq %rax, %rbx
leaq 0x68(%rsp), %r13
jmp 0xb24ab
jmp 0xb24ba
movq %rax, %rbx
movq 0x330(%rsp), %rdi
leaq 0x340(%rsp), %rax
cmpq %rax, %rdi
je 0xb1fea
movq 0x340(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb1fea
movq %rax, %rbx
movq 0x1d0(%rsp), %rdi
cmpq %r15, %rdi
je 0xb200c
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb200c
movq %rax, %rbx
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0xb2035
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb2035
jmp 0xb2032
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xb2056
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb2056
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq 0xf8(%rsp), %rdi
jmp 0xb2187
movq %rax, %rbx
movq 0x330(%rsp), %rdi
leaq 0x340(%rsp), %rax
cmpq %rax, %rdi
je 0xb2095
movq 0x340(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb2095
movq %rax, %rbx
leaq 0x1e0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb20bb
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb20bb
movq %rax, %rbx
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb20e1
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb20e1
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xb2102
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb2102
movq %rax, %rbx
leaq 0x88(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb2128
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb2128
movq %rax, %rbx
leaq 0x150(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb2150
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb2150
jmp 0xb214d
movq %rax, %rbx
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0xb217a
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb217a
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq 0xc0(%rsp), %rdi
callq 0x8480
jmp 0xb24bd
movq %rax, %rbx
movl $0x208, %esi            # imm = 0x208
movq %r14, %rdi
callq 0x8480
leaq 0x68(%rsp), %r13
jmp 0xb2524
jmp 0xb21da
movq %rax, %rbx
leaq 0x340(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb2524
movq 0x340(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb2524
movq %rax, %rbx
jmp 0xb2524
jmp 0xb229e
jmp 0xb21e9
movq %rax, %rdi
callq 0x288e1
movq %rax, %rbx
movq 0x318(%rsp), %rdi
testq %rdi, %rdi
je 0xb22a1
movq 0x328(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
jmp 0xb22a1
jmp 0xb232b
movq %rax, %rbx
jmp 0xb22f8
movq %rax, %rbx
jmp 0xb22d3
movq %rax, %rbx
movq 0x290(%rsp), %rdi
leaq 0x2a0(%rsp), %rax
cmpq %rax, %rdi
je 0xb232e
movq 0x2a0(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb232e
jmp 0xb232b
movq %rax, %rbx
leaq 0x330(%rsp), %rdi
callq 0x7b83e
jmp 0xb2524
movq %rax, %rbx
jmp 0xb22ae
jmp 0xb24ba
jmp 0xb24ba
jmp 0xb24ba
jmp 0xb229e
jmp 0xb24ba
jmp 0xb229e
jmp 0xb229e
jmp 0xb232b
movq %rax, %rbx
leaq 0x1a0(%rsp), %rdi
callq 0x2e784
movq 0x100(%rsp), %rdi
leaq 0x110(%rsp), %rax
cmpq %rax, %rdi
je 0xb22d3
movq 0x110(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0xb22f8
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x1b8(%rsp), %rdi
callq 0x2e784
jmp 0xb232e
movq %rax, %rbx
jmp 0xb235d
movq %rax, %rbx
jmp 0xb2372
jmp 0xb2326
jmp 0xb24ba
jmp 0xb232b
jmp 0xb2335
jmp 0xb24ba
jmp 0xb24ba
movq %rax, %rbx
jmp 0xb238f
movq %rax, %rbx
leaq 0x68(%rsp), %r13
jmp 0xb23a1
movq %rax, %rbx
jmp 0xb24eb
movq %rax, %rbx
movq 0x1a0(%rsp), %rdi
testq %rdi, %rdi
je 0xb235d
movq 0x1b0(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
leaq 0x1b8(%rsp), %rdi
callq 0x2e784
leaq 0xb0(%rsp), %r15
movq 0xa0(%rsp), %rdi
cmpq %r15, %rdi
je 0xb238f
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x68(%rsp), %r13
leaq 0x100(%rsp), %rdi
callq 0x2e784
movq 0x140(%rsp), %rdi
leaq 0x150(%rsp), %rax
cmpq %rax, %rdi
je 0xb23c6
movq 0x150(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0xc8(%rsp), %rdi
leaq 0xd8(%rsp), %rax
cmpq %rax, %rdi
je 0xb23eb
movq 0xd8(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x180(%rsp), %rdi
callq 0x2e784
leaq 0x4a0(%rsp), %rdi
callq 0x2e784
movq 0x78(%rsp), %rdi
leaq 0x88(%rsp), %rax
cmpq %rax, %rdi
je 0xb2427
movq 0x88(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xb2443
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x260(%rsp), %rdi
callq 0xa5098
leaq 0x248(%rsp), %rdi
callq 0xa5098
leaq 0x3f0(%rsp), %rdi
callq 0x42ffa
leaq 0x458(%rsp), %rdi
callq 0x42ffa
leaq 0x440(%rsp), %rdi
callq 0x42ffa
leaq 0x1d0(%rsp), %rdi
callq 0xb2c64
leaq 0x278(%rsp), %rdi
callq 0xaddb2
leaq 0x220(%rsp), %rdi
callq 0xaddb2
leaq 0x330(%rsp), %rdi
callq 0xae016
jmp 0xb24c2
movq %rax, %rbx
leaq 0x68(%rsp), %r13
leaq 0x30(%rsp), %rdi
callq 0x2e784
leaq 0x2b0(%rsp), %rdi
callq 0x2e784
jmp 0xb24f0
movq %rax, %rbx
leaq 0x330(%rsp), %rdi
callq 0x2e784
leaq 0x68(%rsp), %r13
leaq 0x528(%rsp), %rdi
callq 0x5df54
leaq 0x558(%rsp), %rdi
callq 0x5dfcc
leaq 0x588(%rsp), %rdi
callq 0x3c6d4
leaq 0x470(%rsp), %rdi
callq 0x3c602
leaq 0x5b8(%rsp), %rdi
callq 0x7b83e
movq 0x58(%rsp), %rdi
cmpq %r13, %rdi
je 0xb2548
movq 0x68(%rsp), %rsi
incq %rsi
callq 0x8480
movq %rbx, %rdi
callq 0x8840