// File: /workspace/github_cpp_makefile_star2_O2/millanek[P]evo/evo_Dmin.cpp
// Function: DminMain(int, char**)
int DminMain(int argc, char** argv) {
    parseDminOptions(argc, argv);
    string line; // for reading the input files
    
    std::istream* vcfFile = createReader(opt::vcfFile.c_str());
    std::ifstream* setsFile = new std::ifstream(opt::setsFile.c_str());
    string setsFileRoot = stripExtension(opt::setsFile);
    std::ofstream* outFileBBAA;
    std::ofstream* outFileDmin;
    std::ofstream* outFileCombine;
    std::ofstream* outFileCombineStdErr;
    if (opt::regionStart == -1) {
        outFileBBAA = new std::ofstream(setsFileRoot+ "_" + opt::runName + "_BBAA.txt");
        outFileDmin = new std::ofstream(setsFileRoot+ "_" + opt::runName + "_Dmin.txt");
        outFileCombine = new std::ofstream(setsFileRoot+ "_" + opt::runName + "_combine.txt");
        outFileCombineStdErr = new std::ofstream(setsFileRoot+ "_" + opt::runName + "_combine_stderr.txt");
    } else {
        string fileNameString = setsFileRoot+"_"+opt::runName+"_"+numToString(opt::regionStart)+"_"+numToString(opt::regionStart+opt::regionLength);
        outFileBBAA = new std::ofstream(fileNameString+"_BBAA.txt");
        outFileDmin = new std::ofstream(fileNameString+"_Dmin.txt");
        outFileCombine = new std::ofstream(fileNameString+"_combine.txt");
        outFileCombineStdErr = new std::ofstream(fileNameString+"_combine_stderr.txt");
    }
    
    std::map<string, std::vector<string>> speciesToIDsMap;
    std::map<string, string> IDsToSpeciesMap;
    std::map<string, std::vector<size_t>> speciesToPosMap;
    std::map<size_t, string> posToSpeciesMap;
    
    // Get the sample sets
    bool outgroupSpecified = false;
    while (getline(*setsFile, line)) {
       // std::cerr << line << std::endl;
        std::vector<string> ID_Species = split(line, '\t');
        if (ID_Species[1] == "Outgroup") { outgroupSpecified = true; }
        speciesToIDsMap[ID_Species[1]].push_back(ID_Species[0]);
        IDsToSpeciesMap[ID_Species[0]] = ID_Species[1];
        //std::cerr << ID_Species[1] << "\t" << ID_Species[0] << std::endl;
    }
    if (!outgroupSpecified) { std::cerr << "The file " << opt::setsFile << " needs to specify the \"Outgroup\"" << std::endl; exit(1); }
    
    // Get a vector of set names (usually species)
    std::vector<string> species;
    for(std::map<string,std::vector<string>>::iterator it = speciesToIDsMap.begin(); it != speciesToIDsMap.end(); ++it) {
        if ((it->first) != "Outgroup" && it->first != "xxx") {
            species.push_back(it->first);
            // std::cerr << it->first << std::endl;
        }
    } std::cerr << "There are " << species.size() << " sets (excluding the Outgroup)" << std::endl;
    int nCombinations = nChoosek((int)species.size(),3);
    std::cerr << "Going to calculate " << nCombinations << " Dmin values" << std::endl;
    
    
    // first, get all combinations of three sets (species):
    std::vector<std::vector<string>> trios; trios.resize(nCombinations);
    std::vector<std::vector<int>> triosInt; triosInt.resize(nCombinations);
    std::vector<bool> v(species.size()); std::fill(v.begin(), v.begin() + 3, true); // prepare a selection vector
    int pNum = 0;
    do {
        for (int i = 0; i < v.size(); ++i) {
            if (v[i]) { trios[pNum].push_back(species[i]); triosInt[pNum].push_back(i); }
        } pNum++;
    } while (std::prev_permutation(v.begin(), v.end())); // Getting all permutations of the selection vector - so it selects all combinations
    std::cerr << "Done permutations" << std::endl;
    
    // And need to prepare the vectors to hold the D values:
    std::vector<double> init(3,0.0); // Vector of initial values
    std::vector<std::vector<double>> initDs(3); // vector with three empty (double) vectors
  //  std::vector<std::vector<double>> Dnums; Dnums.assign(nCombinations,init);
  //  std::vector<std::vector<double>> Ddenoms; Ddenoms.assign(nCombinations,init);
   // std::vector<std::vector<double>> localDnums; localDnums.assign(nCombinations,init);
    //std::vector<std::vector<double>> localDdenoms; localDdenoms.assign(nCombinations,init);
    std::vector<std::vector<std::vector<double>>> regionDs; regionDs.assign(nCombinations, initDs);
    std::vector<double> allPs(species.size(),0.0);
    std::vector<double> ABBAtotals(nCombinations,0); std::vector<double> BABAtotals(nCombinations,0);
    std::vector<double> BBAAtotals(nCombinations,0);
    std::vector<double> localABBAtotals(nCombinations,0); std::vector<double> localBABAtotals(nCombinations,0);
    std::vector<double> localBBAAtotals(nCombinations,0);
    std::vector<int> usedVars(nCombinations,0); // Will count the number of used variants for each trio
    int totalVariantNumber = 0;
    std::vector<string> sampleNames; std::vector<std::string> fields;
    // Find out how often to report progress, based on the number of trios
    int reportProgressEvery; if (nCombinations < 1000) reportProgressEvery = 100000;
    else if (nCombinations < 100000) reportProgressEvery = 10000;
    else reportProgressEvery = 1000;
    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++) {
                posToSpeciesMap[i] = IDsToSpeciesMap[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 = speciesToIDsMap.begin(); it != speciesToIDsMap.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());
                }
                speciesToPosMap[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 (opt::regionStart != -1) {
                if (totalVariantNumber < opt::regionStart)
                    continue;
                if (totalVariantNumber > (opt::regionStart+opt::regionLength)) {
                    std::cerr << "DONE" << std::endl; break;
                }
            }
            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');
            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) {
                refAllele.clear(); refAllele.shrink_to_fit(); altAllele.clear(); altAllele.shrink_to_fit();
                genotypes.clear(); genotypes.shrink_to_fit(); continue;
            }
            
            startGettingCounts = std::clock();
            GeneralSetCounts* c = new GeneralSetCounts(speciesToPosMap, (int)genotypes.size());
            c->getSetVariantCounts(genotypes, posToSpeciesMap);
            genotypes.clear(); genotypes.shrink_to_fit();
            durationGettingCounts = ( std::clock() - startGettingCounts ) / (double) CLOCKS_PER_SEC;
           // std::cerr << "Here:" << totalVariantNumber << std::endl;
            
            startCalculation = std::clock();
            double p_O = c->setDAFs.at("Outgroup");
            if (p_O == -1) { delete c; continue; } // We need to make sure that the outgroup is defined
            
            
            //std::vector<double> allPs;
            for (std::vector<std::string>::size_type i = 0; i != species.size(); i++) {
                allPs[i] = c->setDAFs.at(species[i]);
            }
            // durationFirstLoop = ( std::clock() - startCalculation ) / (double) CLOCKS_PER_SEC;
            
            // Now calculate the D stats:
            double p_S1; double p_S2; double p_S3; double ABBA; double BABA; double BBAA;
            for (int i = 0; i != trios.size(); i++) {
                p_S1 = allPs[triosInt[i][0]];  // double pS1test = c->setDAFs.at(trios[i][0]); assert(p_S1 == pS1test);
                if (p_S1 == -1) continue;  // If any member of the trio has entirely missing data, just move on to the next trio
                p_S2 = allPs[triosInt[i][1]];  // double pS2test = c->setDAFs.at(trios[i][1]); assert(p_S2 == pS2test);
                if (p_S2 == -1) continue;
                p_S3 = allPs[triosInt[i][2]];  // double pS3test = c->setDAFs.at(trios[i][2]); assert(p_S3 == pS3test);
                if (p_S3 == -1) continue;
                usedVars[i]++;
                
                ABBA = ((1-p_S1)*p_S2*p_S3*(1-p_O)); ABBAtotals[i] += ABBA; localABBAtotals[i] += ABBA;
                BABA = (p_S1*(1-p_S2)*p_S3*(1-p_O)); BABAtotals[i] += BABA; localBABAtotals[i] += BABA;
                BBAA = ((1-p_S3)*p_S2*p_S1*(1-p_O)); BBAAtotals[i] += BBAA; localBBAAtotals[i] += BBAA;
             //   if (p_O == 0.0) {
               //Dnums[i][0] += ABBA - BABA;
               // Dnums[i][1] += ABBA - BBAA;  // Dnums[i][1] += ((1-p_S1)*p_S3*p_S2*(1-p_O)) - (p_S1*(1-p_S3)*p_S2*(1-p_O));
               // Dnums[i][2] += BBAA - BABA;  // Dnums[i][2] += ((1-p_S3)*p_S2*p_S1*(1-p_O)) - (p_S3*(1-p_S2)*p_S1*(1-p_O));

                //Ddenoms[i][0] += ABBA + BABA;
                //Ddenoms[i][1] += ABBA + BBAA;   // ((1-p_S1)*p_S3*p_S2*(1-p_O)) + (p_S1*(1-p_S3)*p_S2*(1-p_O));
                //Ddenoms[i][2] += BBAA + BABA; // ((1-p_S3)*p_S2*p_S1*(1-p_O)) + (p_S3*(1-p_S2)*p_S1*(1-p_O));
                
                // localDnums[i][0] += ABBA - BABA; localDnums[i][1] += ABBA - BBAA; localDnums[i][2] += BBAA - BABA;
                // localDdenoms[i][0] += ABBA + BABA; localDdenoms[i][1] += ABBA + BBAA; localDdenoms[i][2] += BBAA + BABA;
               if (usedVars[i] % opt::jkWindowSize == 0) {
                    double localDnums1 = localABBAtotals[i] - localBABAtotals[i]; double localDnums2 = localABBAtotals[i] - localBBAAtotals[i]; double localDnums3 = localBBAAtotals[i] - localBABAtotals[i];
                    double localDdenoms1 = localABBAtotals[i] + localBABAtotals[i]; double localDdenoms2 = localABBAtotals[i] + localBBAAtotals[i]; double localDdenoms3 = localBBAAtotals[i] + localBABAtotals[i];
                    double regionD0 = localDnums1/localDdenoms1; double regionD1 = localDnums2/localDdenoms2;
                    double regionD2 = localDnums3/localDdenoms3;
                    regionDs[i][0].push_back(regionD0); regionDs[i][1].push_back(regionD1); regionDs[i][2].push_back(regionD2);
                    //localDnums[i][0] = 0; localDnums[i][1] = 0; localDnums[i][2] = 0;
                    //localDdenoms[i][0] = 0; localDdenoms[i][1] = 0; localDdenoms[i][2] = 0;
                    localABBAtotals[i] = 0; localBABAtotals[i] = 0; localBBAAtotals[i] = 0;
                }
            // }
            }
            durationCalculation = ( std::clock() - startCalculation ) / (double) CLOCKS_PER_SEC;
            delete c;
        }
    }
    
    
    for (int i = 0; i != trios.size(); i++) { //
        // Get the standard error values:
        double D1stdErr = jackknive_std_err(regionDs[i][0]); double D2stdErr = jackknive_std_err(regionDs[i][1]);
        double D3stdErr = jackknive_std_err(regionDs[i][2]);
        // Get the D values
        //Dnums[i][0] = ABBAtotals[i] - BABAtotals[i]; Dnums[i][1] = ABBAtotals[i] - BBAAtotals[i]; Dnums[i][2] = BBAAtotals[i] - BABAtotals[i];
        double Dnum1 = ABBAtotals[i] - BABAtotals[i]; // assert(Dnum1 == Dnums[i][0]);
        double Dnum2 = ABBAtotals[i] - BBAAtotals[i]; // assert(Dnum2 == Dnums[i][1]);
        double Dnum3 = BBAAtotals[i] - BABAtotals[i]; // assert(Dnum3 == Dnums[i][2]);
        // Ddenoms[i][0] = ABBAtotals[i] + BABAtotals[i]; Ddenoms[i][1] = ABBAtotals[i] + BBAAtotals[i]; Ddenoms[i][2] = BBAAtotals[i] + BABAtotals[i];
        double Ddenom1 = ABBAtotals[i] + BABAtotals[i]; // assert(Ddenom1 == Ddenoms[i][0]);
        double Ddenom2 = ABBAtotals[i] + BBAAtotals[i]; // assert(Ddenom2 == Ddenoms[i][1]);
        double Ddenom3 = BBAAtotals[i] + BABAtotals[i]; // assert(Ddenom3 == Ddenoms[i][2]);
        double D1 = Dnum1/Ddenom1; double D2 = Dnum2/Ddenom2; double D3 = Dnum3/Ddenom3;
        // Get the Z-scores
        double D1_Z = fabs(D1)/D1stdErr; double D2_Z = fabs(D2)/D2stdErr;
        double D3_Z = fabs(D3)/D3stdErr;
        
        
        // Find which topology is in agreement with the counts of the BBAA, BABA, and ABBA patterns
        if (BBAAtotals[i] >= BABAtotals[i] && BBAAtotals[i] >= ABBAtotals[i]) {
            if (D1 >= 0)
                *outFileBBAA << trios[i][0] << "\t" << trios[i][1] << "\t" << trios[i][2];
            else
                *outFileBBAA << trios[i][1] << "\t" << trios[i][0] << "\t" << trios[i][2];
            *outFileBBAA << "\t" << fabs(D1) << "\t" << D1_Z << "\t";
            *outFileBBAA << BBAAtotals[i] << "\t" << BABAtotals[i] << "\t" << ABBAtotals[i] << std::endl;
        } else if (BABAtotals[i] >= BBAAtotals[i] && BABAtotals[i] >= ABBAtotals[i]) {
            if (D2 >= 0)
                *outFileBBAA << trios[i][0] << "\t" << trios[i][2] << "\t" << trios[i][1];
            else
                *outFileBBAA << trios[i][2] << "\t" << trios[i][0] << "\t" << trios[i][1];
            *outFileBBAA << "\t" << fabs(D2) << "\t" << D2_Z << "\t";
            *outFileBBAA << BABAtotals[i] << "\t" << BBAAtotals[i] << "\t" << ABBAtotals[i] << std::endl;
        } else if (ABBAtotals[i] >= BBAAtotals[i] && ABBAtotals[i] >= BABAtotals[i]) {
            if (D3 >= 0)
                *outFileBBAA << trios[i][2] << "\t" << trios[i][1] << "\t" << trios[i][0];
            else
                *outFileBBAA << trios[i][1] << "\t" << trios[i][2] << "\t" << trios[i][0];
            *outFileBBAA << "\t" << fabs(D3) << "\t" << D3_Z << "\t";
            *outFileBBAA << ABBAtotals[i] << "\t" << BABAtotals[i] << "\t" << BBAAtotals[i] << std::endl;
        }
        
        // Find Dmin:
        if (fabs(D1) <= fabs(D2) && fabs(D1) <= fabs(D3)) { // (P3 == S3)
            if (D1 >= 0)
                *outFileDmin << trios[i][0] << "\t" << trios[i][1] << "\t" << trios[i][2] << "\t" << D1 << "\t" << D1_Z << "\t" << std::endl;
            else
                *outFileDmin << trios[i][1] << "\t" << trios[i][0] << "\t" << trios[i][2] << "\t" << fabs(D1) << "\t" << D1_Z << "\t"<< std::endl;
           // if (BBAAtotals[i] < BABAtotals[i] || BBAAtotals[i] < ABBAtotals[i])
           //     std::cerr << "\t" << "WARNING: Dmin tree different from DAF tree" << std::endl;
        } else if (fabs(D2) <= fabs(D1) && fabs(D2) <= fabs(D3)) { // (P3 == S2)
            if (D2 >= 0)
                *outFileDmin << trios[i][0] << "\t" << trios[i][2] << "\t" << trios[i][1] << "\t" << D2 << "\t" << D2_Z << "\t"<< std::endl;
            else
                *outFileDmin << trios[i][2] << "\t" << trios[i][0] << "\t" << trios[i][1] << "\t" << fabs(D2) << "\t" << D2_Z << "\t"<< std::endl;
           // if (BABAtotals[i] < BBAAtotals[i] || BABAtotals[i] < ABBAtotals[i])
           //     std::cerr << "\t" << "WARNING: Dmin tree different from DAF tree" << std::endl;
        } else if (fabs(D3) <= fabs(D1) && fabs(D3) <= fabs(D2)) { // (P3 == S1)
            if (D3 >= 0)
                *outFileDmin << trios[i][2] << "\t" << trios[i][1] << "\t" << trios[i][0] << "\t" << D3 << "\t" << D3_Z << "\t"<< std::endl;
            else
                *outFileDmin << trios[i][1] << "\t" << trios[i][2] << "\t" << trios[i][0] << "\t" << fabs(D3) << "\t" << D3_Z << "\t" << std::endl;;
           // if (ABBAtotals[i] < BBAAtotals[i] || ABBAtotals[i] < BABAtotals[i])
           //     std::cerr << "\t" << "WARNING: Dmin tree different from DAF tree" << std::endl;
        }
        
        // Output a simple file that can be used for combining multiple local runs:
        *outFileCombine << trios[i][0] << "\t" << trios[i][1] << "\t" << trios[i][2] << "\t" << BBAAtotals[i] << "\t" << BABAtotals[i] << "\t" << ABBAtotals[i] << std::endl;
        print_vector(regionDs[i][0], *outFileCombineStdErr, ',', false); *outFileCombineStdErr << "\t"; print_vector(regionDs[i][1], *outFileCombineStdErr, ',', false); *outFileCombineStdErr << "\t";
        print_vector(regionDs[i][2], *outFileCombineStdErr, ',',false); *outFileCombineStdErr << std::endl;
        
        //std::cerr << trios[i][0] << "\t" << trios[i][1] << "\t" << trios[i][2] << "\t" << D1 << "\t" << D2 << "\t" << D3 << "\t" << BBAAtotals[i] << "\t" << BABAtotals[i] << "\t" << ABBAtotals[i] << std::endl;
    }
    return 0;
    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x468, %rsp            # imm = 0x468
callq 0x794f4
leaq 0x2b0(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x67c3f(%rip), %rsi     # 0xded28
leaq 0xc0(%rsp), %rdi
leaq 0x70(%rsp), %rdx
callq 0x21904
leaq 0xc0(%rsp), %rdi
pushq $0x8
popq %rsi
callq 0x42587
movq %rax, 0x130(%rsp)
leaq 0xc0(%rsp), %rdi
callq 0x8978
movl $0x208, %edi            # imm = 0x208
callq 0x8490
movq %rax, %r12
movq 0x67c14(%rip), %rsi     # 0xded48
pushq $0x8
popq %rdx
movq %rax, %rdi
callq 0x8890
leaq 0x67c02(%rip), %rsi     # 0xded48
leaq 0x2f0(%rsp), %rdi
callq 0x404d7
cmpl $-0x1, 0x6648a(%rip)    # 0xdd5e4
je 0x773a0
leaq 0x2c655(%rip), %rdx     # 0xa37bc
leaq 0x48(%rsp), %rdi
leaq 0x2f0(%rsp), %rsi
callq 0x28806
leaq 0x67be8(%rip), %rdx     # 0xded68
leaq 0x198(%rsp), %rdi
leaq 0x48(%rsp), %rsi
callq 0x287e7
leaq 0x2c623(%rip), %rdx     # 0xa37bc
leaq 0x390(%rsp), %rdi
leaq 0x198(%rsp), %rsi
callq 0x28a29
movl 0x66430(%rip), %esi     # 0xdd5e4
leaq 0xa0(%rsp), %rdi
callq 0x28ad3
leaq 0x140(%rsp), %rdi
leaq 0x390(%rsp), %rsi
leaq 0xa0(%rsp), %rdx
callq 0x28a48
leaq 0x2c5d7(%rip), %rdx     # 0xa37bc
leaq 0x70(%rsp), %rdi
leaq 0x140(%rsp), %rsi
callq 0x28a29
movl 0x663eb(%rip), %esi     # 0xdd5e8
addl 0x663e1(%rip), %esi     # 0xdd5e4
leaq 0x2d0(%rsp), %rdi
callq 0x28ad3
leaq 0xc0(%rsp), %rdi
leaq 0x70(%rsp), %rsi
leaq 0x2d0(%rsp), %rdx
callq 0x28a48
leaq 0x2d0(%rsp), %rdi
callq 0x8978
leaq 0x70(%rsp), %rdi
callq 0x8978
leaq 0x140(%rsp), %rdi
callq 0x8978
leaq 0xa0(%rsp), %rdi
callq 0x8978
leaq 0x390(%rsp), %rdi
callq 0x8978
leaq 0x198(%rsp), %rdi
callq 0x8978
leaq 0x48(%rsp), %rdi
callq 0x8978
movl $0x200, %edi            # imm = 0x200
callq 0x8490
movq %rax, 0x8(%rsp)
leaq 0x3634a(%rip), %rdx     # 0xad5df
leaq 0x70(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x28806
leaq 0x70(%rsp), %rsi
pushq $0x10
popq %rdx
movq 0x8(%rsp), %rdi
callq 0x8900
leaq 0x70(%rsp), %rdi
callq 0x8978
movl $0x200, %edi            # imm = 0x200
callq 0x8490
movq %rax, 0x28(%rsp)
leaq 0x36310(%rip), %rdx     # 0xad5e9
leaq 0x70(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x28806
leaq 0x70(%rsp), %rsi
pushq $0x10
popq %rdx
movq 0x28(%rsp), %rdi
callq 0x8900
leaq 0x70(%rsp), %rdi
callq 0x8978
movl $0x200, %edi            # imm = 0x200
callq 0x8490
movq %rax, 0x68(%rsp)
leaq 0x362d6(%rip), %rdx     # 0xad5f3
leaq 0x70(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x28806
leaq 0x70(%rsp), %rsi
pushq $0x10
popq %rdx
movq 0x68(%rsp), %rdi
callq 0x8900
leaq 0x70(%rsp), %rdi
callq 0x8978
movl $0x200, %edi            # imm = 0x200
callq 0x8490
movq %rax, %r14
leaq 0x362a1(%rip), %rdx     # 0xad600
leaq 0x70(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x28806
leaq 0x70(%rsp), %rsi
pushq $0x10
popq %rdx
movq %r14, %rdi
callq 0x8900
movq %r14, 0x108(%rsp)
leaq 0x70(%rsp), %rdi
callq 0x8978
leaq 0xc0(%rsp), %rdi
jmp 0x775f7
movl $0x200, %edi            # imm = 0x200
callq 0x8490
movq %rax, 0x8(%rsp)
leaq 0x2c406(%rip), %rdx     # 0xa37bc
leaq 0x140(%rsp), %rdi
leaq 0x2f0(%rsp), %rsi
callq 0x28806
leaq 0x67996(%rip), %rdx     # 0xded68
leaq 0x70(%rsp), %rdi
leaq 0x140(%rsp), %rsi
callq 0x287e7
leaq 0x361f4(%rip), %rdx     # 0xad5df
leaq 0xc0(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x28a29
leaq 0xc0(%rsp), %rsi
pushq $0x10
popq %rdx
movq 0x8(%rsp), %rdi
callq 0x8900
leaq 0xc0(%rsp), %rdi
callq 0x8978
leaq 0x70(%rsp), %rdi
callq 0x8978
leaq 0x140(%rsp), %rdi
callq 0x8978
movl $0x200, %edi            # imm = 0x200
callq 0x8490
movq %rax, 0x28(%rsp)
leaq 0x2c370(%rip), %rdx     # 0xa37bc
leaq 0x140(%rsp), %rdi
leaq 0x2f0(%rsp), %rsi
callq 0x28806
leaq 0x67900(%rip), %rdx     # 0xded68
leaq 0x70(%rsp), %rdi
leaq 0x140(%rsp), %rsi
callq 0x287e7
leaq 0x36168(%rip), %rdx     # 0xad5e9
leaq 0xc0(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x28a29
leaq 0xc0(%rsp), %rsi
pushq $0x10
popq %rdx
movq 0x28(%rsp), %rdi
callq 0x8900
leaq 0xc0(%rsp), %rdi
callq 0x8978
leaq 0x70(%rsp), %rdi
callq 0x8978
leaq 0x140(%rsp), %rdi
callq 0x8978
movl $0x200, %edi            # imm = 0x200
callq 0x8490
movq %rax, 0x68(%rsp)
leaq 0x2c2da(%rip), %rdx     # 0xa37bc
leaq 0x140(%rsp), %rdi
leaq 0x2f0(%rsp), %rsi
callq 0x28806
leaq 0x6786a(%rip), %rdx     # 0xded68
leaq 0x70(%rsp), %rdi
leaq 0x140(%rsp), %rsi
callq 0x287e7
leaq 0x360dc(%rip), %rdx     # 0xad5f3
leaq 0xc0(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x28a29
leaq 0xc0(%rsp), %rsi
pushq $0x10
popq %rdx
movq 0x68(%rsp), %rdi
callq 0x8900
leaq 0xc0(%rsp), %rdi
callq 0x8978
leaq 0x70(%rsp), %rdi
callq 0x8978
leaq 0x140(%rsp), %rdi
callq 0x8978
movl $0x200, %edi            # imm = 0x200
callq 0x8490
movq %rax, %r14
leaq 0x2c246(%rip), %rdx     # 0xa37bc
leaq 0x140(%rsp), %rdi
leaq 0x2f0(%rsp), %rsi
callq 0x28806
leaq 0x677d6(%rip), %rdx     # 0xded68
leaq 0x70(%rsp), %rdi
leaq 0x140(%rsp), %rsi
callq 0x287e7
leaq 0x36055(%rip), %rdx     # 0xad600
leaq 0xc0(%rsp), %rdi
leaq 0x70(%rsp), %rsi
callq 0x28a29
leaq 0xc0(%rsp), %rsi
pushq $0x10
popq %rdx
movq %r14, %rdi
callq 0x8900
movq %r14, 0x108(%rsp)
leaq 0xc0(%rsp), %rdi
callq 0x8978
leaq 0x70(%rsp), %rdi
callq 0x8978
leaq 0x140(%rsp), %rdi
callq 0x8978
leaq 0xc8(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x78(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x148(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x398(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
xorl %r14d, %r14d
leaq 0x2a0(%rsp), %rbx
leaq 0x198(%rsp), %r15
movq %r12, %rdi
movq %rbx, %rsi
callq 0x80a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x77722
movq %r15, %rdi
movq %rbx, %rsi
pushq $0x9
popq %rdx
callq 0x40349
movq 0x198(%rsp), %rdi
addq $0x20, %rdi
leaq 0x27abc(%rip), %rsi     # 0x9f17a
callq 0x2193f
movl %eax, %ebp
movq 0x198(%rsp), %rsi
addq $0x20, %rsi
leaq 0xc0(%rsp), %rdi
callq 0x3abd8
movq 0x198(%rsp), %rsi
movq %rax, %rdi
callq 0x2b0a4
movq 0x198(%rsp), %r13
leaq 0x70(%rsp), %rdi
movq %r13, %rsi
callq 0x3210e
addq $0x20, %r13
movq %rax, %rdi
movq %r13, %rsi
callq 0x82a0
orb %bpl, %r14b
movq %r15, %rdi
callq 0x28a08
jmp 0x77680
testb $0x1, %r14b
je 0x78f73
xorpd %xmm0, %xmm0
leaq 0x110(%rsp), %rbx
andq $0x0, 0x10(%rbx)
movapd %xmm0, (%rbx)
movq 0xd8(%rsp), %r12
leaq 0x27a2a(%rip), %r14     # 0x9f17a
leaq 0x28d79(%rip), %r15     # 0xa04d0
leaq 0xc8(%rsp), %rax
cmpq %rax, %r12
je 0x7779f
leaq 0x20(%r12), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x2ea9b
testb %al, %al
je 0x77792
movq %r13, %rdi
movq %r15, %rsi
callq 0x2ea9b
testb %al, %al
je 0x77792
movq %rbx, %rdi
movq %r13, %rsi
callq 0x2b0a4
movq %r12, %rdi
callq 0x8340
movq %rax, %r12
jmp 0x77757
movq 0x65842(%rip), %rdi     # 0xdcfe8
leaq 0x3aa14(%rip), %rsi     # 0xb21c1
callq 0x8480
movq 0x118(%rsp), %rsi
subq 0x110(%rsp), %rsi
sarq $0x5, %rsi
movq %rax, %rdi
callq 0x8320
leaq 0x2ed57(%rip), %rsi     # 0xa652c
movq %rax, %rdi
callq 0x8480
movq %rax, %rdi
callq 0x8230
movq 0x118(%rsp), %rdi
subq 0x110(%rsp), %rdi
shrq $0x5, %rdi
pushq $0x3
popq %rsi
callq 0x797ea
movl %eax, %ebx
movq 0x657de(%rip), %rdi     # 0xdcfe8
leaq 0x35e2e(%rip), %rsi     # 0xad63f
callq 0x8480
movq %rax, %rdi
movl %ebx, %esi
callq 0x8840
leaq 0x35e2c(%rip), %rsi     # 0xad653
movq %rax, %rdi
callq 0x8480
movq %rax, %rdi
callq 0x8230
xorpd %xmm0, %xmm0
leaq 0x10(%rsp), %rdi
movapd %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
movslq %ebx, %r14
movq %r14, %rsi
callq 0x3aa50
leaq 0x310(%rsp), %rdi
xorpd %xmm0, %xmm0
movapd %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
movq %r14, %rsi
callq 0x73428
movq 0x118(%rsp), %rsi
subq 0x110(%rsp), %rsi
sarq $0x5, %rsi
leaq 0x198(%rsp), %rdi
leaq 0x48(%rsp), %rdx
callq 0x7981e
movq 0x198(%rsp), %rdi
leaq 0x48(%rsp), %r8
movb $0x1, (%r8)
pushq $0x3
popq %rcx
xorl %esi, %esi
movq %rdi, %rdx
callq 0x456eb
xorl %r13d, %r13d
leaq 0x198(%rsp), %r15
leaq 0x48(%rsp), %r12
imulq $0x18, %r13, %rbp
xorl %eax, %eax
movl %eax, 0x48(%rsp)
movslq %eax, %rsi
movq 0x198(%rsp), %rdi
movq 0x1a8(%rsp), %rdx
movl 0x1b0(%rsp), %ecx
movq %rdx, %rax
subq %rdi, %rax
leaq (%rcx,%rax,8), %rax
cmpq %rsi, %rax
jbe 0x7793e
movq %r15, %rdi
callq 0x439c0
testq %rdx, (%rax)
je 0x77936
movq 0x10(%rsp), %rdi
addq %rbp, %rdi
movslq 0x48(%rsp), %rsi
shlq $0x5, %rsi
addq 0x110(%rsp), %rsi
callq 0x2b0a4
movq 0x310(%rsp), %rdi
addq %rbp, %rdi
movq %r12, %rsi
callq 0x3aca4
movl 0x48(%rsp), %eax
incl %eax
jmp 0x778cb
xorl %esi, %esi
callq 0x798a5
incq %r13
testb %al, %al
jne 0x778c5
movq 0x65691(%rip), %rdi     # 0xdcfe8
leaq 0x35d02(%rip), %rsi     # 0xad660
callq 0x8480
movq %rax, %rdi
callq 0x8230
leaq 0x48(%rsp), %rdx
andq $0x0, (%rdx)
leaq 0x438(%rsp), %rdi
pushq $0x3
popq %rsi
leaq 0xa0(%rsp), %rcx
callq 0x4381e
leaq 0x3f0(%rsp), %rdi
pushq $0x3
popq %rsi
leaq 0x48(%rsp), %rdx
callq 0x79832
xorpd %xmm0, %xmm0
leaq 0x180(%rsp), %rdi
movapd %xmm0, (%rdi)
andq $0x0, 0x10(%rdi)
leaq 0x3f0(%rsp), %rdx
movq %r14, %rsi
callq 0x79b40
movq 0x118(%rsp), %rsi
subq 0x110(%rsp), %rsi
sarq $0x5, %rsi
leaq 0x48(%rsp), %rdx
andq $0x0, (%rdx)
leaq 0x378(%rsp), %rdi
leaq 0xa0(%rsp), %rcx
callq 0x4381e
leaq 0x48(%rsp), %rdx
andq $0x0, (%rdx)
leaq 0x268(%rsp), %rdi
leaq 0xa0(%rsp), %rcx
movq %r14, %rsi
callq 0x4381e
leaq 0x48(%rsp), %rdx
andq $0x0, (%rdx)
leaq 0x250(%rsp), %rdi
leaq 0xa0(%rsp), %rcx
movq %r14, %rsi
callq 0x4381e
leaq 0x48(%rsp), %rdx
andq $0x0, (%rdx)
leaq 0x238(%rsp), %rdi
leaq 0xa0(%rsp), %rcx
movq %r14, %rsi
callq 0x4381e
leaq 0x48(%rsp), %rdx
andq $0x0, (%rdx)
leaq 0x360(%rsp), %rdi
leaq 0xa0(%rsp), %rcx
movq %r14, %rsi
callq 0x4381e
leaq 0x48(%rsp), %rdx
andq $0x0, (%rdx)
leaq 0x348(%rsp), %rdi
leaq 0xa0(%rsp), %rcx
movq %r14, %rsi
callq 0x4381e
leaq 0x48(%rsp), %rdx
andq $0x0, (%rdx)
leaq 0x330(%rsp), %rdi
leaq 0xa0(%rsp), %rcx
movq %r14, %rsi
callq 0x4381e
leaq 0x48(%rsp), %rdx
andl $0x0, (%rdx)
leaq 0x3d8(%rsp), %rdi
leaq 0xa0(%rsp), %rcx
movq %r14, %rsi
callq 0x438a0
xorpd %xmm0, %xmm0
movapd %xmm0, 0x3c0(%rsp)
andq $0x0, 0x3d0(%rsp)
leaq 0x1d0(%rsp), %r13
andq $0x0, 0x10(%r13)
movapd %xmm0, (%r13)
movl $0x186a0, %eax          # imm = 0x186A0
cmpl %eax, %ebx
movl $0x2710, %edx           # imm = 0x2710
movl $0x3e8, %ecx            # imm = 0x3E8
cmovael %ecx, %edx
cmpl %ecx, %ebx
cmovll %eax, %edx
movl %edx, 0xf0(%rsp)
xorl %ecx, %ecx
leaq 0x2a0(%rsp), %r14
leaq 0x48(%rsp), %r15
leaq 0x2d0(%rsp), %rbx
leaq 0x220(%rsp), %rbp
movl %ecx, %r12d
movl %r12d, %eax
movq %rax, 0x30(%rsp)
movq 0x130(%rsp), %rdi
movq %r14, %rsi
callq 0x80a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x783ef
movq 0x2a0(%rsp), %rdi
movq 0x2a8(%rsp), %rsi
addq %rdi, %rsi
movb $0xd, 0x48(%rsp)
movq %r15, %rdx
callq 0x61a56
movq 0x2a0(%rsp), %rdx
addq 0x2a8(%rsp), %rdx
movq %r14, %rdi
movq %rax, %rsi
callq 0x80f0
movq 0x2a0(%rsp), %rax
cmpb $0x23, (%rax)
jne 0x77bcd
movzbl 0x1(%rax), %eax
cmpl $0x23, %eax
je 0x77b51
cmpl $0x43, %eax
je 0x78221
movq 0x30(%rsp), %rax
leal 0x1(%rax), %r12d
movl 0x65a08(%rip), %eax     # 0xdd5e4
cmpl $-0x1, %eax
je 0x77bfa
cmpl %eax, %r12d
jl 0x77b49
addl 0x659f8(%rip), %eax     # 0xdd5e8
cmpl %eax, 0x30(%rsp)
jge 0x783d4
movl %r12d, %eax
cltd
idivl 0xf0(%rsp)
testl %edx, %edx
jne 0x77cda
callq 0x8310
subq 0x200(%rsp), %rax
cvtsi2sd %rax, %xmm0
divsd 0x25761(%rip), %xmm0    # 0x9d388
movsd %xmm0, 0x30(%rsp)
movq 0x653b4(%rip), %rdi     # 0xdcfe8
leaq 0x28a6b(%rip), %rsi     # 0xa06a6
callq 0x8480
movq %rax, %rdi
movl %r12d, %esi
callq 0x8840
movq %rax, %rdi
leaq 0x2b959(%rip), %rsi     # 0xa35ae
callq 0x8480
movq %rax, %rdi
movsd 0x30(%rsp), %xmm0
callq 0x8750
movq %rax, %rdi
leaq 0x2e984(%rip), %rsi     # 0xa65f6
callq 0x8480
movq %rax, %rdi
callq 0x8230
movq 0x65362(%rip), %rdi     # 0xdcfe8
leaq 0x35a12(%rip), %rsi     # 0xad69f
callq 0x8480
movq %rax, %rdi
movsd 0x1f0(%rsp), %xmm0
callq 0x8750
movq %rax, %rdi
leaq 0x35a01(%rip), %rsi     # 0xad6ae
callq 0x8480
movq %rax, %rdi
movsd 0x2c0(%rsp), %xmm0
callq 0x8750
movq %rax, %rdi
leaq 0x2e929(%rip), %rsi     # 0xa65f6
callq 0x8480
movq %rax, %rdi
callq 0x8230
movq %r15, %rdi
movq %r14, %rsi
pushq $0x9
popq %rdx
callq 0x40349
movq %r13, %rdi
movq %r15, %rsi
callq 0x2f6c0
movq %r15, %rdi
callq 0x28a08
movq 0x1d0(%rsp), %rsi
movl $0x120, %eax            # imm = 0x120
addq %rax, %rsi
movq 0x1d8(%rsp), %rdx
movq %rbp, %rdi
movq %r15, %rcx
callq 0x613fe
movq 0x1d0(%rsp), %rsi
addq $0x60, %rsi
movq %r15, %rdi
callq 0x8600
movq 0x1d0(%rsp), %rsi
subq $-0x80, %rsi
leaq 0xa0(%rsp), %rdi
callq 0x8600
movl %r12d, 0x290(%rsp)
cmpq $0x1, 0x50(%rsp)
ja 0x77e83
cmpq $0x2, 0xa8(%rsp)
jae 0x77e83
callq 0x8310
movq %rax, 0x30(%rsp)
movl $0x240, %edi            # imm = 0x240
callq 0x8490
movq %rax, %r12
movq 0x228(%rsp), %rdx
subq 0x220(%rsp), %rdx
shrq $0x5, %rdx
movq %rax, %rdi
leaq 0x140(%rsp), %rsi
callq 0x61430
movq %r12, %rdi
movq %rbp, %rsi
leaq 0x390(%rsp), %rdx
callq 0x3fbce
movq %r12, 0x1c0(%rsp)
movq %rbp, %rdi
callq 0x32680
movq %rbp, %rdi
callq 0x61b78
callq 0x8310
subq 0x30(%rsp), %rax
cvtsi2sd %rax, %xmm0
divsd 0x2559d(%rip), %xmm0    # 0x9d388
movsd %xmm0, 0x1f0(%rsp)
callq 0x8310
movq %rax, 0x280(%rsp)
movq %rbx, %rdi
leaq 0x2736f(%rip), %rsi     # 0x9f17a
leaq 0x218(%rsp), %rdx
callq 0x21904
movq 0x1c0(%rsp), %r12
movq %r12, %rdi
addq $0x118, %rdi            # imm = 0x118
movq %rdi, 0x30(%rsp)
movq %rbx, %rsi
callq 0x43f2a
movsd (%rax), %xmm0
movsd %xmm0, 0x170(%rsp)
movq %rbx, %rdi
callq 0x8978
movsd 0x170(%rsp), %xmm0
ucomisd 0x1f79b(%rip), %xmm0    # 0x975f8
jne 0x77edd
jp 0x77edd
movq %r12, %rdi
callq 0x61838
movl $0x240, %esi            # imm = 0x240
movq %r12, %rdi
callq 0x84a0
movl $0x0, 0x30(%rsp)
jmp 0x781ef
andq $0x0, 0x50(%rsp)
movq 0x48(%rsp), %rax
xorl %r12d, %r12d
movb %r12b, (%rax)
movq %r15, %rdi
callq 0x8930
andq $0x0, 0xa8(%rsp)
movq 0xa0(%rsp), %rax
movl $0x0, 0x30(%rsp)
movb %r12b, (%rax)
leaq 0xa0(%rsp), %r12
movq %r12, %rdi
callq 0x8930
movq %rbp, %rdi
callq 0x32680
movq %rbp, %rdi
callq 0x61b78
jmp 0x781f7
xorl %r12d, %r12d
xorl %r13d, %r13d
movq 0x110(%rsp), %rsi
movq 0x118(%rsp), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %rax, %r13
je 0x77f27
addq %r12, %rsi
movq 0x30(%rsp), %rdi
callq 0x43f2a
movsd (%rax), %xmm0
movq 0x378(%rsp), %rax
movsd %xmm0, (%rax,%r13,8)
incq %r13
addq $0x20, %r12
jmp 0x77ee3
movsd 0x1f6c1(%rip), %xmm6    # 0x975f0
subsd 0x170(%rsp), %xmm6
xorl %edi, %edi
xorl %r12d, %r12d
leaq 0x1d0(%rsp), %r13
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
cqto
pushq $0x18
popq %rcx
idivq %rcx
cmpq %rax, %r12
je 0x781a9
movq 0x310(%rsp), %rax
movq (%rax,%rdi), %rax
movslq (%rax), %rdx
movq 0x378(%rsp), %rcx
movsd (%rcx,%rdx,8), %xmm0
ucomisd 0x1f674(%rip), %xmm0    # 0x975f8
jne 0x77f8c
jnp 0x7819d
movslq 0x4(%rax), %rdx
movsd (%rcx,%rdx,8), %xmm1
ucomisd 0x1f65b(%rip), %xmm1    # 0x975f8
jne 0x77fa5
jnp 0x7819d
movslq 0x8(%rax), %rax
movsd (%rcx,%rax,8), %xmm2
ucomisd 0x1f642(%rip), %xmm2    # 0x975f8
jne 0x77fbe
jnp 0x7819d
movq 0x3d8(%rsp), %rcx
movl (%rcx,%r12,4), %eax
incl %eax
movl %eax, (%rcx,%r12,4)
movsd 0x1f618(%rip), %xmm5    # 0x975f0
movapd %xmm5, %xmm3
subsd %xmm0, %xmm3
mulsd %xmm1, %xmm3
mulsd %xmm2, %xmm3
mulsd %xmm6, %xmm3
movq 0x268(%rsp), %rcx
movsd (%rcx,%r12,8), %xmm4
addsd %xmm3, %xmm4
movsd %xmm4, (%rcx,%r12,8)
movq 0x360(%rsp), %rcx
addsd (%rcx,%r12,8), %xmm3
movsd %xmm3, (%rcx,%r12,8)
movapd %xmm5, %xmm3
subsd %xmm1, %xmm3
mulsd %xmm0, %xmm3
mulsd %xmm2, %xmm3
mulsd %xmm6, %xmm3
movq 0x250(%rsp), %rdx
movsd (%rdx,%r12,8), %xmm4
addsd %xmm3, %xmm4
movsd %xmm4, (%rdx,%r12,8)
movq 0x348(%rsp), %rsi
addsd (%rsi,%r12,8), %xmm3
movsd %xmm3, (%rsi,%r12,8)
movapd %xmm5, %xmm3
subsd %xmm2, %xmm3
mulsd %xmm1, %xmm3
mulsd %xmm0, %xmm3
mulsd %xmm6, %xmm3
movq 0x238(%rsp), %rdx
movsd (%rdx,%r12,8), %xmm0
addsd %xmm3, %xmm0
movsd %xmm0, (%rdx,%r12,8)
movq 0x330(%rsp), %rdx
addsd (%rdx,%r12,8), %xmm3
movsd %xmm3, (%rdx,%r12,8)
cltd
idivl 0x65541(%rip)           # 0xdd5e0
testl %edx, %edx
jne 0x7819d
movsd %xmm6, 0x170(%rsp)
movsd (%rcx,%r12,8), %xmm0
movsd (%rsi,%r12,8), %xmm1
movapd %xmm0, %xmm2
subsd %xmm1, %xmm2
movapd %xmm0, %xmm4
subsd %xmm3, %xmm4
movapd %xmm3, %xmm5
subsd %xmm1, %xmm5
movapd %xmm3, %xmm6
addsd %xmm0, %xmm6
addsd %xmm1, %xmm0
divsd %xmm0, %xmm2
divsd %xmm6, %xmm4
addsd %xmm1, %xmm3
divsd %xmm3, %xmm5
movsd %xmm2, 0x2d0(%rsp)
movsd %xmm4, 0x218(%rsp)
movsd %xmm5, 0x2c8(%rsp)
movq 0x180(%rsp), %rax
movq %rdi, 0x30(%rsp)
movq (%rax,%rdi), %rdi
movq %rbx, %rsi
callq 0x5a406
movq 0x180(%rsp), %rax
movq 0x30(%rsp), %rcx
movq (%rax,%rcx), %rdi
addq $0x18, %rdi
leaq 0x218(%rsp), %rsi
callq 0x5a406
movq 0x180(%rsp), %rax
movq 0x30(%rsp), %rcx
movq (%rax,%rcx), %rdi
addq $0x30, %rdi
leaq 0x2c8(%rsp), %rsi
callq 0x5a406
movq 0x360(%rsp), %rax
andq $0x0, (%rax,%r12,8)
movq 0x348(%rsp), %rax
andq $0x0, (%rax,%r12,8)
movq 0x330(%rsp), %rax
andq $0x0, (%rax,%r12,8)
movsd 0x170(%rsp), %xmm6
movq 0x30(%rsp), %rdi
incq %r12
addq $0x18, %rdi
jmp 0x77f45
callq 0x8310
subq 0x280(%rsp), %rax
cvtsi2sd %rax, %xmm0
divsd 0x251c5(%rip), %xmm0    # 0x9d388
movsd %xmm0, 0x2c0(%rsp)
movq 0x1c0(%rsp), %r12
movq %r12, %rdi
callq 0x61838
movl $0x240, %esi            # imm = 0x240
movq %r12, %rdi
callq 0x84a0
movb $0x1, %al
movl %eax, 0x30(%rsp)
leaq 0xa0(%rsp), %r12
movq %r12, %rdi
callq 0x8978
movq %r15, %rdi
callq 0x8978
movq %rbp, %rdi
callq 0x28a08
cmpb $0x0, 0x30(%rsp)
movl 0x290(%rsp), %r12d
jmp 0x77b49
movq %r15, %rdi
movq %r14, %rsi
pushq $0x9
popq %rdx
callq 0x40349
movq %r13, %rdi
movq %r15, %rsi
callq 0x2f6c0
movq %r15, %rdi
callq 0x28a08
movq 0x1d0(%rsp), %rsi
movl $0x120, %eax            # imm = 0x120
addq %rax, %rsi
movq 0x1d8(%rsp), %rdx
leaq 0xa0(%rsp), %rdi
movq %r15, %rcx
callq 0x613fe
xorl %eax, %eax
movq %rax, 0x48(%rsp)
movq 0xa0(%rsp), %rsi
movq 0xa8(%rsp), %rcx
subq %rsi, %rcx
sarq $0x5, %rcx
cmpq %rcx, %rax
je 0x782c6
shlq $0x5, %rax
addq %rax, %rsi
leaq 0x70(%rsp), %rdi
callq 0x3210e
movq %rax, %r12
leaq 0x390(%rsp), %rdi
movq %r15, %rsi
callq 0x4a546
movq %rax, %rdi
movq %r12, %rsi
callq 0x82a0
movq 0x48(%rsp), %rax
incq %rax
jmp 0x7826c
movq %r13, %r12
movq 0xd8(%rsp), %r13
leaq 0xc8(%rsp), %rax
cmpq %rax, %r13
je 0x783ad
leaq 0x20(%r13), %rsi
movq %r15, %rdi
callq 0x8600
leaq 0x40(%r13), %rsi
movq %rbx, %rdi
callq 0x297dc
movq %rbp, %rdi
leaq 0xa0(%rsp), %rsi
movq %rbx, %rdx
callq 0x427bd
movq 0x220(%rsp), %rax
cmpq 0x228(%rsp), %rax
jne 0x7836a
movq 0x64cc2(%rip), %rdi     # 0xdcfe8
leaq 0x2830e(%rip), %rsi     # 0xa063b
callq 0x8480
movq %rax, %rdi
movq %r15, %rsi
callq 0x8430
movq %rax, %rdi
leaq 0x26fe8(%rip), %rsi     # 0x9f32f
callq 0x8480
movq %rax, %rdi
callq 0x8230
movq 0x220(%rsp), %rax
cmpq 0x228(%rsp), %rax
je 0x78f54
leaq 0x140(%rsp), %rdi
movq %r15, %rsi
callq 0x4a596
movq %rax, %rdi
movq %rbp, %rsi
callq 0x4a5fc
movq %rbp, %rdi
callq 0x2f68c
movq %rbx, %rdi
callq 0x28a08
movq %r15, %rdi
callq 0x8978
movq %r13, %rdi
callq 0x8340
movq %rax, %r13
jmp 0x782d1
callq 0x8310
movq %rax, 0x200(%rsp)
leaq 0xa0(%rsp), %rdi
callq 0x28a08
movq %r12, %r13
movq 0x30(%rsp), %rcx
jmp 0x77b46
movq 0x64c0d(%rip), %rdi     # 0xdcfe8
leaq 0x352b8(%rip), %rsi     # 0xad69a
callq 0x8480
movq %rax, %rdi
callq 0x8230
xorl %r12d, %r12d
leaq 0x21a25(%rip), %rbp     # 0x99e1e
leaq 0x450(%rsp), %rbx
xorl %r13d, %r13d
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
cqto
pushq $0x18
popq %rcx
idivq %rcx
cmpq %rax, %r13
je 0x78e1b
movq 0x180(%rsp), %rax
movq (%rax,%r12), %rdi
callq 0x2f3e3
movsd %xmm0, 0x130(%rsp)
movq 0x180(%rsp), %rax
movq (%rax,%r12), %rdi
addq $0x18, %rdi
callq 0x2f3e3
movsd %xmm0, 0xf0(%rsp)
movq 0x180(%rsp), %rax
movq (%rax,%r12), %rdi
addq $0x30, %rdi
callq 0x2f3e3
movq 0x268(%rsp), %rax
movsd (%rax,%r13,8), %xmm1
movq 0x250(%rsp), %rax
movsd (%rax,%r13,8), %xmm3
movq 0x238(%rsp), %rax
movsd (%rax,%r13,8), %xmm2
movapd %xmm2, %xmm6
subsd %xmm3, %xmm6
movapd %xmm3, %xmm4
addsd %xmm2, %xmm4
divsd %xmm4, %xmm6
movapd %xmm1, %xmm4
unpcklpd %xmm1, %xmm4            # xmm4 = xmm4[0],xmm1[0]
movapd %xmm2, %xmm5
unpcklpd %xmm3, %xmm5            # xmm5 = xmm5[0],xmm3[0]
movapd %xmm4, %xmm8
subpd %xmm5, %xmm8
addpd %xmm4, %xmm5
divpd %xmm5, %xmm8
movapd %xmm8, %xmm7
movapd 0x29016(%rip), %xmm4    # 0xa14f0
andpd %xmm4, %xmm7
pshufd $0xee, %xmm7, %xmm5     # xmm5 = xmm7[2,3,2,3]
movdqa %xmm5, 0x30(%rsp)
divsd 0x130(%rsp), %xmm5
movapd %xmm5, 0x290(%rsp)
movaps %xmm7, 0x130(%rsp)
movapd %xmm7, %xmm5
divsd 0xf0(%rsp), %xmm5
movapd %xmm5, 0x170(%rsp)
movapd %xmm6, 0x1f0(%rsp)
andpd %xmm4, %xmm6
movapd %xmm6, 0xf0(%rsp)
movapd %xmm6, %xmm4
divsd %xmm0, %xmm4
movapd %xmm4, 0x280(%rsp)
ucomisd %xmm3, %xmm2
movapd %xmm8, 0x1c0(%rsp)
unpckhpd %xmm8, %xmm8            # xmm8 = xmm8[1,1]
movapd %xmm8, 0x200(%rsp)
jb 0x785ac
ucomisd %xmm1, %xmm2
jb 0x785ac
movapd 0x200(%rsp), %xmm0
ucomisd 0x1dc22(%rip), %xmm0    # 0x96198
movq 0x10(%rsp), %rax
movq (%rax,%r12), %rsi
jae 0x78653
addq $0x20, %rsi
movq 0x8(%rsp), %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x10(%rsp), %rcx
movq (%rcx,%r12), %rsi
jmp 0x78675
ucomisd %xmm2, %xmm3
jb 0x785ff
ucomisd %xmm1, %xmm3
jb 0x785ff
movapd 0x1c0(%rsp), %xmm0
ucomisd 0x1dbcf(%rip), %xmm0    # 0x96198
movq 0x10(%rsp), %rax
movq (%rax,%r12), %rsi
jae 0x7870f
addq $0x40, %rsi
movq 0x8(%rsp), %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x10(%rsp), %rcx
movq (%rcx,%r12), %rsi
jmp 0x78731
ucomisd %xmm3, %xmm1
jb 0x78806
ucomisd %xmm2, %xmm1
jb 0x78806
movapd 0x1f0(%rsp), %xmm0
ucomisd 0x1db74(%rip), %xmm0    # 0x96198
movq 0x10(%rsp), %rax
movq (%rax,%r12), %rsi
jae 0x78afe
addq $0x20, %rsi
movq 0x8(%rsp), %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
pushq $0x40
jmp 0x78b19
movq 0x8(%rsp), %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x10(%rsp), %rcx
movq (%rcx,%r12), %rsi
addq $0x20, %rsi
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x10(%rsp), %rcx
movq (%rcx,%r12), %rsi
addq $0x40, %rsi
movq %rax, %rdi
callq 0x8430
movq 0x8(%rsp), %rdi
movq %rbp, %rsi
callq 0x8480
movq %rax, %rdi
movapd 0x30(%rsp), %xmm0
callq 0x8750
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq %rax, %rdi
movapd 0x290(%rsp), %xmm0
callq 0x8750
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x238(%rsp), %rax
movsd (%rax,%r13,8), %xmm0
movq 0x8(%rsp), %rdi
callq 0x8750
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
leaq 0x250(%rsp), %rcx
jmp 0x787c9
movq 0x8(%rsp), %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x10(%rsp), %rcx
movq (%rcx,%r12), %rsi
addq $0x40, %rsi
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x10(%rsp), %rcx
movq (%rcx,%r12), %rsi
addq $0x20, %rsi
movq %rax, %rdi
callq 0x8430
movq 0x8(%rsp), %rdi
movq %rbp, %rsi
callq 0x8480
movq %rax, %rdi
movapd 0x130(%rsp), %xmm0
callq 0x8750
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq %rax, %rdi
movapd 0x170(%rsp), %xmm0
callq 0x8750
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x250(%rsp), %rax
movsd (%rax,%r13,8), %xmm0
movq 0x8(%rsp), %rdi
callq 0x8750
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
leaq 0x238(%rsp), %rcx
movq (%rcx), %rcx
movsd (%rcx,%r13,8), %xmm0
movq %rax, %rdi
callq 0x8750
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
leaq 0x268(%rsp), %rcx
movq (%rcx), %rcx
movsd (%rcx,%r13,8), %xmm0
movq %rax, %rdi
callq 0x8750
movq %rax, %rdi
callq 0x8230
movapd 0x130(%rsp), %xmm0
movapd 0x30(%rsp), %xmm1
ucomisd %xmm1, %xmm0
movapd %xmm1, %xmm0
jb 0x788b6
movapd 0xf0(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jb 0x788b6
movapd 0x200(%rsp), %xmm0
ucomisd 0x1d951(%rip), %xmm0    # 0x96198
movq 0x10(%rsp), %rax
movq (%rax,%r12), %rsi
jae 0x78a00
addq $0x20, %rsi
movq 0x28(%rsp), %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x10(%rsp), %rcx
movq (%rcx,%r12), %rsi
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x10(%rsp), %rcx
movq (%rcx,%r12), %rsi
addq $0x40, %rsi
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movapd 0x30(%rsp), %xmm0
jmp 0x78a5e
movapd 0x130(%rsp), %xmm1
ucomisd %xmm1, %xmm0
jb 0x7895f
movapd 0xf0(%rsp), %xmm0
ucomisd %xmm1, %xmm0
jb 0x7895f
movapd 0x1c0(%rsp), %xmm0
ucomisd 0x1d8ab(%rip), %xmm0    # 0x96198
movq 0x10(%rsp), %rax
movq (%rax,%r12), %rsi
jae 0x78a7f
addq $0x40, %rsi
movq 0x28(%rsp), %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x10(%rsp), %rcx
movq (%rcx,%r12), %rsi
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x10(%rsp), %rcx
movq (%rcx,%r12), %rsi
addq $0x20, %rsi
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movapd 0x130(%rsp), %xmm0
jmp 0x78add
movapd 0xf0(%rsp), %xmm0
unpcklpd %xmm0, %xmm0            # xmm0 = xmm0[0,0]
cmpnlepd %xmm1, %xmm0
movmskpd %xmm0, %eax
testl %eax, %eax
jne 0x78c72
movapd 0x1f0(%rsp), %xmm0
ucomisd 0x1d80a(%rip), %xmm0    # 0x96198
movq 0x10(%rsp), %rax
movq (%rax,%r12), %rsi
jae 0x78bdd
addq $0x20, %rsi
movq 0x28(%rsp), %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x10(%rsp), %rcx
movq (%rcx,%r12), %rsi
addq $0x40, %rsi
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x10(%rsp), %rcx
movq (%rcx,%r12), %rsi
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movapd 0xf0(%rsp), %xmm0
jmp 0x78c3b
movq 0x28(%rsp), %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x10(%rsp), %rcx
movq (%rcx,%r12), %rsi
addq $0x20, %rsi
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x10(%rsp), %rcx
movq (%rcx,%r12), %rsi
addq $0x40, %rsi
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movapd 0x200(%rsp), %xmm0
movq %rax, %rdi
callq 0x8750
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movapd 0x290(%rsp), %xmm0
jmp 0x78c57
movq 0x28(%rsp), %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x10(%rsp), %rcx
movq (%rcx,%r12), %rsi
addq $0x40, %rsi
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x10(%rsp), %rcx
movq (%rcx,%r12), %rsi
addq $0x20, %rsi
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movapd 0x1c0(%rsp), %xmm0
movq %rax, %rdi
callq 0x8750
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movapd 0x170(%rsp), %xmm0
jmp 0x78c57
addq $0x40, %rsi
movq 0x8(%rsp), %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
pushq $0x20
popq %rsi
movq 0x10(%rsp), %rcx
addq (%rcx,%r12), %rsi
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x10(%rsp), %rcx
movq (%rcx,%r12), %rsi
movq %rax, %rdi
callq 0x8430
movq 0x8(%rsp), %rdi
movq %rbp, %rsi
callq 0x8480
movq %rax, %rdi
movapd 0xf0(%rsp), %xmm0
callq 0x8750
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq %rax, %rdi
movapd 0x280(%rsp), %xmm0
callq 0x8750
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x268(%rsp), %rax
movsd (%rax,%r13,8), %xmm0
movq 0x8(%rsp), %rdi
callq 0x8750
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x250(%rsp), %rcx
movsd (%rcx,%r13,8), %xmm0
movq %rax, %rdi
callq 0x8750
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
leaq 0x238(%rsp), %rcx
jmp 0x787ed
addq $0x40, %rsi
movq 0x28(%rsp), %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x10(%rsp), %rcx
movq (%rcx,%r12), %rsi
addq $0x20, %rsi
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x10(%rsp), %rcx
movq (%rcx,%r12), %rsi
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movapd 0x1f0(%rsp), %xmm0
movq %rax, %rdi
callq 0x8750
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movapd 0x280(%rsp), %xmm0
movq %rax, %rdi
callq 0x8750
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq %rax, %rdi
callq 0x8230
movq 0x10(%rsp), %rax
movq (%rax,%r12), %rsi
movq 0x68(%rsp), %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x10(%rsp), %rcx
movq (%rcx,%r12), %rsi
addq $0x20, %rsi
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x10(%rsp), %rcx
movq (%rcx,%r12), %rsi
addq $0x40, %rsi
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x238(%rsp), %rcx
movsd (%rcx,%r13,8), %xmm0
movq %rax, %rdi
callq 0x8750
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x250(%rsp), %rcx
movsd (%rcx,%r13,8), %xmm0
movq %rax, %rdi
callq 0x8750
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x268(%rsp), %rcx
movsd (%rcx,%r13,8), %xmm0
movq %rax, %rdi
callq 0x8750
movq %rax, %rdi
callq 0x8230
movq 0x180(%rsp), %rax
movq (%rax,%r12), %rsi
movq %rbx, %rdi
callq 0x2f816
movq %rbx, %r15
movq %rbx, %rdi
movq 0x108(%rsp), %r14
movq %r14, %rsi
pushq $0x2c
popq %rdx
xorl %ecx, %ecx
callq 0x488bf
movq %r15, %rdi
callq 0x2b43c
movq %r14, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x180(%rsp), %rax
movq (%rax,%r12), %rsi
addq $0x18, %rsi
leaq 0x420(%rsp), %rdi
callq 0x2f816
leaq 0x420(%rsp), %r15
movq %r15, %rdi
movq 0x108(%rsp), %r14
movq %r14, %rsi
pushq $0x2c
popq %rdx
xorl %ecx, %ecx
callq 0x488bf
movq %r15, %rdi
callq 0x2b43c
movq %r14, %rdi
movq %rbp, %rsi
callq 0x8480
movq 0x180(%rsp), %rax
movq (%rax,%r12), %rsi
addq $0x30, %rsi
leaq 0x408(%rsp), %rdi
callq 0x2f816
leaq 0x408(%rsp), %r15
movq %r15, %rdi
movq 0x108(%rsp), %r14
movq %r14, %rsi
pushq $0x2c
popq %rdx
xorl %ecx, %ecx
callq 0x488bf
movq %r15, %rdi
callq 0x2b43c
movq %r14, %rdi
callq 0x8230
incq %r13
addq $0x18, %r12
jmp 0x78404
leaq 0x1d0(%rsp), %rdi
callq 0x28a08
leaq 0x3c0(%rsp), %rdi
callq 0x28a08
leaq 0x3d8(%rsp), %rdi
callq 0x2aef2
leaq 0x330(%rsp), %rdi
callq 0x2b43c
leaq 0x348(%rsp), %rdi
callq 0x2b43c
leaq 0x360(%rsp), %rdi
callq 0x2b43c
leaq 0x238(%rsp), %rdi
callq 0x2b43c
leaq 0x250(%rsp), %rdi
callq 0x2b43c
leaq 0x268(%rsp), %rdi
callq 0x2b43c
leaq 0x378(%rsp), %rdi
callq 0x2b43c
leaq 0x180(%rsp), %rdi
callq 0x79884
leaq 0x3f0(%rsp), %rdi
callq 0x37c74
leaq 0x438(%rsp), %rdi
callq 0x2b43c
leaq 0x198(%rsp), %rdi
callq 0x2aee2
leaq 0x310(%rsp), %rdi
callq 0x3b73c
leaq 0x10(%rsp), %rdi
callq 0x29054
leaq 0x110(%rsp), %rdi
callq 0x28a08
leaq 0x390(%rsp), %rdi
callq 0x4a9bc
leaq 0x140(%rsp), %rdi
callq 0x4aa20
leaq 0x70(%rsp), %rdi
callq 0x33008
leaq 0xc0(%rsp), %rdi
callq 0x32f44
leaq 0x2f0(%rsp), %rdi
callq 0x8978
leaq 0x2a0(%rsp), %rdi
callq 0x8978
xorl %eax, %eax
addq $0x468, %rsp            # imm = 0x468
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2770a(%rip), %rdi     # 0xa0665
leaq 0x34710(%rip), %rsi     # 0xad672
leaq 0x34716(%rip), %rcx     # 0xad67f
movl $0xb2, %edx
callq 0x82f0
movq 0x6406e(%rip), %rdi     # 0xdcfe8
leaq 0x34693(%rip), %rsi     # 0xad614
callq 0x8480
leaq 0x65dbb(%rip), %rsi     # 0xded48
movq %rax, %rdi
callq 0x8430
leaq 0x34682(%rip), %rsi     # 0xad61e
movq %rax, %rdi
callq 0x8480
movq %rax, %rdi
callq 0x8230
pushq $0x1
popq %rdi
callq 0x8540
jmp 0x793c4
jmp 0x7921e
movq %rax, %rbx
movl $0x240, %esi            # imm = 0x240
movq %r12, %rdi
callq 0x84a0
jmp 0x79221
movq %rax, %rbx
leaq 0x2d0(%rsp), %rdi
callq 0x8978
jmp 0x79221
jmp 0x7921e
jmp 0x793c4
movq %rax, %rbx
jmp 0x79238
jmp 0x793c4
jmp 0x7921e
movq %rax, %rbx
jmp 0x7922e
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0x8978
jmp 0x79021
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x8978
jmp 0x79030
movq %rax, %rbx
leaq 0x140(%rsp), %rdi
callq 0x8978
jmp 0x79042
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq %r14, %rdi
jmp 0x79116
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0x8978
jmp 0x79064
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x8978
jmp 0x79073
movq %rax, %rbx
leaq 0x140(%rsp), %rdi
callq 0x8978
jmp 0x79085
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq 0x68(%rsp), %rdi
jmp 0x79116
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0x8978
jmp 0x790a9
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x8978
jmp 0x790b8
movq %rax, %rbx
leaq 0x140(%rsp), %rdi
callq 0x8978
jmp 0x790ca
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq 0x28(%rsp), %rdi
jmp 0x79116
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0x8978
jmp 0x790eb
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x8978
jmp 0x790fa
movq %rax, %rbx
leaq 0x140(%rsp), %rdi
callq 0x8978
jmp 0x7910c
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq 0x8(%rsp), %rdi
callq 0x84a0
jmp 0x794d2
jmp 0x793c4
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x8978
jmp 0x79137
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq %r14, %rdi
jmp 0x79199
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x8978
jmp 0x79153
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq 0x68(%rsp), %rdi
jmp 0x79199
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x8978
jmp 0x79171
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq 0x28(%rsp), %rdi
jmp 0x79199
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x8978
jmp 0x7918f
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq 0x8(%rsp), %rdi
callq 0x84a0
jmp 0x792fb
movq %rax, %rbx
leaq 0x2d0(%rsp), %rdi
callq 0x8978
jmp 0x791b8
movq %rax, %rbx
leaq 0x70(%rsp), %rdi
callq 0x8978
jmp 0x791c7
movq %rax, %rbx
leaq 0x140(%rsp), %rdi
callq 0x8978
jmp 0x791d9
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x8978
jmp 0x791eb
movq %rax, %rbx
leaq 0x390(%rsp), %rdi
callq 0x8978
leaq 0x198(%rsp), %rdi
callq 0x8978
leaq 0x48(%rsp), %rdi
jmp 0x79303
movq %rax, %rbx
jmp 0x791f8
movq %rax, %rbx
jmp 0x79205
jmp 0x792eb
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x8978
leaq 0x48(%rsp), %rdi
callq 0x8978
leaq 0x220(%rsp), %rdi
jmp 0x793a3
jmp 0x793c4
jmp 0x793c4
jmp 0x79367
movq %rax, %rbx
jmp 0x793ee
movq %rax, %rbx
jmp 0x793fb
movq %rax, %rbx
jmp 0x79408
movq %rax, %rbx
jmp 0x79415
movq %rax, %rbx
jmp 0x79422
movq %rax, %rbx
jmp 0x7942f
movq %rax, %rbx
jmp 0x7943c
jmp 0x7928e
movq %rax, %rbx
jmp 0x79449
movq %rax, %rbx
jmp 0x79463
jmp 0x793bc
jmp 0x793bc
jmp 0x792aa
movq %rax, %rbx
jmp 0x7947d
movq %rax, %rbx
jmp 0x7948a
jmp 0x792e3
movq %rax, %rbx
movl $0x208, %esi            # imm = 0x208
movq %r12, %rdi
callq 0x84a0
jmp 0x794df
jmp 0x792e3
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
jmp 0x794da
movq %rax, %rbx
jmp 0x794df
movq %rax, %rbx
jmp 0x794d2
jmp 0x793bc
movq %rax, %rbx
leaq 0xc0(%rsp), %rdi
callq 0x8978
jmp 0x794d2
jmp 0x79311
jmp 0x79311
movq %rax, %rbx
jmp 0x79494
movq %rax, %rbx
jmp 0x79384
movq %rax, %rbx
jmp 0x79391
jmp 0x7936f
jmp 0x793c4
jmp 0x793c4
movq %rax, %rbx
leaq 0x450(%rsp), %rdi
jmp 0x79354
movq %rax, %rbx
leaq 0x420(%rsp), %rdi
jmp 0x79354
movq %rax, %rbx
leaq 0x408(%rsp), %rdi
callq 0x2b43c
jmp 0x793c7
jmp 0x793c4
jmp 0x793c4
jmp 0x793c4
jmp 0x79367
jmp 0x793c4
jmp 0x793bc
movq %rax, %rbx
jmp 0x794a1
movq %rax, %rbx
jmp 0x7939b
movq %rax, %rbx
leaq 0x220(%rsp), %rdi
callq 0x2f68c
leaq 0x2d0(%rsp), %rdi
callq 0x28a08
leaq 0x48(%rsp), %rdi
callq 0x8978
leaq 0xa0(%rsp), %rdi
callq 0x28a08
jmp 0x793c7
movq %rax, %rbx
leaq 0x198(%rsp), %rdi
jmp 0x7949c
jmp 0x793bc
movq %rax, %rbx
jmp 0x79470
movq %rax, %rbx
leaq 0x1d0(%rsp), %rdi
callq 0x28a08
leaq 0x3c0(%rsp), %rdi
callq 0x28a08
leaq 0x3d8(%rsp), %rdi
callq 0x2aef2
leaq 0x330(%rsp), %rdi
callq 0x2b43c
leaq 0x348(%rsp), %rdi
callq 0x2b43c
leaq 0x360(%rsp), %rdi
callq 0x2b43c
leaq 0x238(%rsp), %rdi
callq 0x2b43c
leaq 0x250(%rsp), %rdi
callq 0x2b43c
leaq 0x268(%rsp), %rdi
callq 0x2b43c
leaq 0x378(%rsp), %rdi
callq 0x2b43c
leaq 0x180(%rsp), %rdi
callq 0x79884
leaq 0x3f0(%rsp), %rdi
callq 0x37c74
leaq 0x438(%rsp), %rdi
callq 0x2b43c
leaq 0x198(%rsp), %rdi
callq 0x2aee2
leaq 0x310(%rsp), %rdi
callq 0x3b73c
leaq 0x10(%rsp), %rdi
callq 0x29054
leaq 0x110(%rsp), %rdi
callq 0x28a08
leaq 0x390(%rsp), %rdi
callq 0x4a9bc
leaq 0x140(%rsp), %rdi
callq 0x4aa20
leaq 0x70(%rsp), %rdi
callq 0x33008
leaq 0xc0(%rsp), %rdi
callq 0x32f44
leaq 0x2f0(%rsp), %rdi
callq 0x8978
leaq 0x2a0(%rsp), %rdi
callq 0x8978
movq %rbx, %rdi
callq 0x8870