// File: /workspace/github_cpp_makefile_star2_O2/millanek[P]evo/evo_distanceToOutgroups.cpp
// Function: DistOutMain(int, char**)
int DistOutMain(int argc, char** argv) {
    parseDistOutOptions(argc, argv);
    string line; // for reading the input files
    
    // 1) Dividing up and assigning the populations
    std::vector<string> populations; // Will hold the names of all populations
    std::vector<string> outgroups; // Will hold the names of the outgroup populations
    std::vector<string> ingroups; // Will hold the names of the ingroup populations
    
    std::istream* vcfFile = createReader(opt::vcfFile.c_str());
    std::ifstream* setsFile = new std::ifstream(opt::setsFile.c_str());
    std::ifstream* outgroupFile = new std::ifstream(opt::outgroupFile.c_str());
    std::ifstream* ingroupFile = new std::ifstream(opt::ingroupFile.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)
    for(std::map<string,std::vector<string>>::iterator it = popToIDsMap.begin(); it != popToIDsMap.end(); ++it) {
        populations.push_back(it->first);
        // std::cerr << it->first << std::endl;
    } std::cerr << "There are " << populations.size() << " populations " << std::endl;
    
    
    // find the ingroups
    while (getline(*ingroupFile,line)) {
        ingroups.push_back(line);
    }
    
    // Get the outgroups
    std::vector<std::ofstream*> outFilesFixedWindow;
    while (getline(*outgroupFile,line)) {
        // std::cerr << line << std::endl;
        std::ofstream* outFileFixedWindow = new std::ofstream(line + "_DIST_" + opt::runName + "_FW" + numToString(opt::fixedWindowSize) + ".txt");
        *outFileFixedWindow << "chr\twStart\twEnd\tSNPs_used\tSNPs_missing\tAccessibleSizeBP" << "\t"; print_vector(ingroups, *outFileFixedWindow);
        //outFile->setf(std::ios_base::fixed); // Avoid scientific notation in the coordinates
        outFilesFixedWindow.push_back(outFileFixedWindow);
        outgroups.push_back(line);
    }
    
    
    // 2) Loading the accessible genome bad file:
    AccessibleGenome* ag;
    if (!opt::accesibleGenBedFile.empty()) {
       std::ifstream* accessibleGenomeBed = new std::ifstream(opt::accesibleGenBedFile);
       std::cerr << "Loading the accessible genome annotation" << std::endl;
       ag = new AccessibleGenome(accessibleGenomeBed);
       std::cerr << "Done" << std::endl;
   }
     // int numAccessibleBP = ag->getAccessibleBPinRegion(sc, i, i+opt::accessibleGenBedWindow);
    
    
    // 3) Praparing the containers to hold the results
    // 3a) for per-SNP results
    std::vector<std::vector<double>> initVectorFixed(ingroups.size());
    std::vector<std::vector<std::vector<double>>> DxyFixedWindowPerSNP(outgroups.size(),initVectorFixed);
    // 3b) for calculated Dxy values
    std::vector<int> ingroupsMissingInit(ingroups.size(),0);
    std::vector<std::vector<int>> missingDist(outgroups.size(),ingroupsMissingInit);
    
    // 3b) for calculated Dxy values
    std::vector<double> ingroupsResultInit(ingroups.size(),0.0);
    std::vector<std::vector<double>> DxyFixedWindowAveraged(outgroups.size(),ingroupsResultInit);
    
    
    // 4) Going through the VCF
    // 4a) Preparing useful variables
    int currentWindowStart = 0; int currentWindowEnd = currentWindowStart + opt::fixedWindowSize;
    int totalVariantNumber = 0;
    std::vector<int> usedVars(outgroups.size(),0); // Will count the number of used variants for each outgroup
    std::vector<int> missingVars(outgroups.size(),0); // Will count the number of missing variants for each outgroup
    std::vector<string> sampleNames; std::vector<std::string> fields;
    int reportProgressEvery = 1000; string chr; string coord; double coordDouble;
    std::clock_t start; std::clock_t startGettingCounts; std::clock_t startCalculation;
    double durationOverall; double durationGettingCounts; double durationCalculation;
    // 4b) Looping through the file
    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());
            
            // Only consider biallelic SNPs
            string refAllele = fields[3]; string altAllele = fields[4]; bool ignoreSite = false;
            if (altAllele == "*") ignoreSite = true;
            if (!opt::allowIndels) {
                if (refAllele.length() > 1 || altAllele.length() > 1) ignoreSite = true;
            }
            if (ignoreSite) {
                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(popToPosMap, (int)genotypes.size());
            c->getSetVariantCountsSimple(genotypes, posToPopMap);
            genotypes.clear(); genotypes.shrink_to_fit();
            durationGettingCounts = ( std::clock() - startGettingCounts ) / (double) CLOCKS_PER_SEC;
            // 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;
            
            
            
            // Check if we are still in the same physical window...
            if (coordDouble > currentWindowEnd || coordDouble < currentWindowStart) {
                // Find the number of accessible BPs in this window:
                int accessibleInThisWindow = opt::fixedWindowSize;
                if (!opt::accesibleGenBedFile.empty()) {
                    if (coordDouble > currentWindowEnd) {
                        accessibleInThisWindow = ag->getAccessibleBPinRegion(chr, currentWindowStart, currentWindowStart + opt::fixedWindowSize);
                    } else if (coordDouble < currentWindowStart) {
                        accessibleInThisWindow = ag->getAccessibleBPinRegion(chr, 0, opt::fixedWindowSize);
                    }
                }
                
                for (int i = 0; i != outgroups.size(); i++) {
                    for (int j = 0; j != ingroups.size(); j++) {
                        int nSNPs = (int)DxyFixedWindowPerSNP[i][j].size();
                        if (nSNPs > 0) {
                            double missingProportion = (double)missingDist[i][j]/(nSNPs + missingDist[i][j]);
                            if (missingProportion > 0.5) {
                                DxyFixedWindowAveraged[i][j] = NAN;
                            } else {
                                DxyFixedWindowAveraged[i][j] = vector_average_withRegion(DxyFixedWindowPerSNP[i][j], accessibleInThisWindow);
                                // Scale by the number of SNPs missing for the ingroup
                                double nonMissingProportion = (double)nSNPs/(nSNPs + missingDist[i][j]);
                                double scalingFactor = 1 + (missingProportion / nonMissingProportion);
                                DxyFixedWindowAveraged[i][j] = DxyFixedWindowAveraged[i][j] * scalingFactor;
                            }
                        } else {
                            DxyFixedWindowAveraged[i][j] = NAN;
                        }
                        DxyFixedWindowPerSNP[i][j].clear();
                    }
                    
                    *outFilesFixedWindow[i] << chr << "\t" << currentWindowStart << "\t" << currentWindowEnd << "\t" << usedVars[i] << "\t" << missingVars[i] << "\t" << accessibleInThisWindow << "\t";
                    print_vector(DxyFixedWindowAveraged[i], *outFilesFixedWindow[i]);
                }
                
                // Reset missing data counters for the next window
                for (int i = 0; i != outgroups.size(); i++) {
                    usedVars[i] = 0; missingVars[i] = 0;
                    for (int j = 0; j != ingroups.size(); j++) {
                        missingDist[i][j] = 0;
                    }
                }
                
                if (coordDouble > currentWindowEnd) {
                    currentWindowStart = currentWindowStart + opt::fixedWindowSize; currentWindowEnd = currentWindowEnd + opt::fixedWindowSize;
                } else if (coordDouble < currentWindowStart) {
                    currentWindowStart = 0; currentWindowEnd = 0 + opt::fixedWindowSize;
                }
            }
            
            // std::cerr << coord << "\t";
            // print_vector_stream(SNPgeneDetails, std::cerr);
            
            // Now calculate Dxy per SNP:
            double AFout;
            for (int i = 0; i != outgroups.size(); i++) {
                AFout = c->setAAFs.at(outgroups[i]);
                if (AFout == -1) {
                    missingVars[i]++;
                    // for (int j = 0; j != ingroups.size(); j++) { missingDist[i][j]++; }
                    continue;  // If the outgroup has entirely missing data, just move on to the next one
                }
                usedVars[i]++;
                for (int j = 0; j != ingroups.size(); j++) {
                    double AFin = c->setAAFs.at(ingroups[j]);
                    if (AFin != -1) {
                        double thisSNPdxy = DxyPerSNPfromAFs(AFout, c->setAAFs.at(ingroups[j]));
                        DxyFixedWindowPerSNP[i][j].push_back(thisSNPdxy);
                    } else {
                        missingDist[i][j]++;
                    }
                    
                }
            }
            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 $0x3e8, %rsp            # imm = 0x3E8
callq 0x8954c
leaq 0xe0(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x190(%rsp)
andq $0x0, 0x1a0(%rsp)
movapd %xmm0, 0x40(%rsp)
andq $0x0, 0x50(%rsp)
movapd %xmm0, 0x20(%rsp)
andq $0x0, 0x30(%rsp)
movq 0x571cc(%rip), %rsi     # 0xdf170
leaq 0x270(%rsp), %rdi
leaq 0x2f0(%rsp), %rdx
callq 0x21904
leaq 0x270(%rsp), %rdi
pushq $0x8
popq %rsi
callq 0x42587
movq %rax, 0x238(%rsp)
leaq 0x270(%rsp), %rdi
callq 0x8978
movl $0x208, %edi            # imm = 0x208
callq 0x8490
movq %rax, %r14
movq 0x5719e(%rip), %rsi     # 0xdf190
pushq $0x8
popq %rdx
movq %rax, %rdi
callq 0x8890
movl $0x208, %edi            # imm = 0x208
callq 0x8490
movq %rax, %r15
movq 0x5719f(%rip), %rsi     # 0xdf1b0
pushq $0x8
popq %rdx
movq %rax, %rdi
callq 0x8890
movl $0x208, %edi            # imm = 0x208
callq 0x8490
movq %rax, %r13
movq %r15, 0x8(%rsp)
movq 0x5719b(%rip), %rsi     # 0xdf1d0
pushq $0x8
popq %rdx
movq %rax, %rdi
callq 0x8890
leaq 0x278(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x2f8(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x358(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0x328(%rsp), %rax
andl $0x0, (%rax)
andq $0x0, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
andq $0x0, 0x20(%rax)
leaq 0xd0(%rsp), %rbx
leaq 0x60(%rsp), %r12
leaq 0x2f0(%rsp), %r15
movq %r14, %rdi
movq %rbx, %rsi
callq 0x80a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x8813c
movq %r12, %rdi
movq %rbx, %rsi
pushq $0x9
popq %rdx
callq 0x40349
movq 0x60(%rsp), %rsi
addq $0x20, %rsi
leaq 0x270(%rsp), %rdi
callq 0x3abd8
movq 0x60(%rsp), %rsi
movq %rax, %rdi
callq 0x2b0a4
movq 0x60(%rsp), %rbp
movq %r15, %rdi
movq %rbp, %rsi
callq 0x3210e
addq $0x20, %rbp
movq %rax, %rdi
movq %rbp, %rsi
callq 0x82a0
movq %r12, %rdi
callq 0x28a08
jmp 0x880c9
movq 0x288(%rsp), %r14
leaq 0x190(%rsp), %rbx
leaq 0x278(%rsp), %rax
cmpq %rax, %r14
je 0x88172
leaq 0x20(%r14), %rsi
movq %rbx, %rdi
callq 0x2b0a4
movq %r14, %rdi
callq 0x8340
movq %rax, %r14
jmp 0x8814c
movq 0x54e6f(%rip), %rdi     # 0xdcfe8
leaq 0x2a041(%rip), %rsi     # 0xb21c1
callq 0x8480
movq 0x198(%rsp), %rsi
subq 0x190(%rsp), %rsi
sarq $0x5, %rsi
movq %rax, %rdi
callq 0x8320
leaq 0x1832c(%rip), %rsi     # 0xa04d4
movq %rax, %rdi
callq 0x8480
movq %rax, %rdi
callq 0x8230
leaq 0xd0(%rsp), %rbx
leaq 0x20(%rsp), %r14
movq %r13, %rdi
movq %rbx, %rsi
callq 0x80a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x881eb
movq %r14, %rdi
movq %rbx, %rsi
callq 0x2b0a4
jmp 0x881c5
xorpd %xmm0, %xmm0
leaq 0x200(%rsp), %rax
movapd %xmm0, (%rax)
andq $0x0, 0x10(%rax)
leaq 0x158(%rsp), %rbx
leaq 0x60(%rsp), %r15
leaq 0x3b8(%rsp), %r14
movq 0x8(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0x80a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x883a0
movl $0x200, %edi            # imm = 0x200
callq 0x8490
movq %rax, %r13
leaq 0x2a0(%rsp), %rbp
movq %rbp, %rdi
leaq 0xd0(%rsp), %rsi
leaq 0x28e88(%rip), %rdx     # 0xb10e8
callq 0x28806
leaq 0x138(%rsp), %r12
movq %r12, %rdi
movq %rbp, %rsi
leaq 0x56f76(%rip), %rdx     # 0xdf1f0
callq 0x287e7
leaq 0xb0(%rsp), %rdi
movq %r12, %rsi
leaq 0x27968(%rip), %rdx     # 0xafbf9
callq 0x28a29
movl 0x5537c(%rip), %esi     # 0xdd618
leaq 0x1e0(%rsp), %r12
movq %r12, %rdi
callq 0x28ad3
movq %rbx, %rdi
leaq 0xb0(%rsp), %rsi
movq %r12, %rdx
callq 0x28a48
movq %r15, %rdi
movq %rbx, %rsi
leaq 0x24b59(%rip), %rdx     # 0xace25
callq 0x28a29
movq %r13, %rdi
movq %r15, %rsi
pushq $0x10
popq %rdx
callq 0x8900
movq %r15, %rdi
callq 0x8978
movq %rbx, %rdi
callq 0x8978
leaq 0x1e0(%rsp), %rdi
callq 0x8978
leaq 0xb0(%rsp), %rdi
callq 0x8978
leaq 0x138(%rsp), %rdi
callq 0x8978
leaq 0x2a0(%rsp), %rdi
callq 0x8978
movq %r13, 0x1c8(%rsp)
movq %r13, %rdi
leaq 0x28dba(%rip), %rsi     # 0xb10ef
callq 0x8480
movq %rax, %rdi
leaq 0x11ada(%rip), %rsi     # 0x99e1e
callq 0x8480
movq %r14, %rdi
leaq 0x20(%rsp), %rsi
callq 0x297dc
movq 0x1c8(%rsp), %rsi
movq %r14, %rdi
pushq $0x9
popq %rdx
pushq $0x1
popq %rcx
callq 0x2ea24
movq %r14, %rdi
callq 0x28a08
leaq 0x200(%rsp), %rdi
leaq 0x1c8(%rsp), %rsi
callq 0x7e948
leaq 0x40(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0x2b0a4
jmp 0x88215
cmpq $0x0, 0x56e70(%rip)     # 0xdf218
je 0x88428
movl $0x208, %edi            # imm = 0x208
callq 0x8490
movq %rax, %r14
leaq 0x56e52(%rip), %rsi     # 0xdf210
pushq $0x8
popq %rdx
movq %rax, %rdi
callq 0x8760
movq %r14, 0x60(%rsp)
movq 0x54c13(%rip), %rdi     # 0xdcfe8
leaq 0x18106(%rip), %rsi     # 0xa04e2
callq 0x8480
movq %rax, %rdi
callq 0x8230
pushq $0x38
popq %rdi
callq 0x8490
movq %rax, 0xa0(%rsp)
leaq 0x60(%rsp), %rsi
movq 0xa0(%rsp), %rdi
callq 0x3a63a
movq 0x54bd6(%rip), %rdi     # 0xdcfe8
leaq 0xddce(%rip), %rsi      # 0x961e7
callq 0x8480
movq %rax, %rdi
callq 0x8230
jmp 0x88428
movq 0x28(%rsp), %rsi
subq 0x20(%rsp), %rsi
sarq $0x5, %rsi
leaq 0x2a0(%rsp), %rdi
leaq 0x60(%rsp), %rdx
callq 0x79832
movq 0x48(%rsp), %rsi
subq 0x40(%rsp), %rsi
sarq $0x5, %rsi
leaq 0x1e0(%rsp), %rdi
leaq 0x2a0(%rsp), %rdx
leaq 0x60(%rsp), %rcx
callq 0x79c18
movq 0x28(%rsp), %rsi
subq 0x20(%rsp), %rsi
sarq $0x5, %rsi
leaq 0x60(%rsp), %rdx
andl $0x0, (%rdx)
leaq 0x1c8(%rsp), %rdi
leaq 0x158(%rsp), %rcx
callq 0x438a0
movq 0x48(%rsp), %rsi
subq 0x40(%rsp), %rsi
sarq $0x5, %rsi
leaq 0x1b0(%rsp), %rdi
leaq 0x1c8(%rsp), %rdx
leaq 0x60(%rsp), %rcx
callq 0x897de
movq 0x28(%rsp), %rsi
subq 0x20(%rsp), %rsi
sarq $0x5, %rsi
leaq 0x60(%rsp), %rdx
andq $0x0, (%rdx)
leaq 0x2d8(%rsp), %rdi
leaq 0x158(%rsp), %rcx
callq 0x4381e
movq 0x48(%rsp), %rsi
subq 0x40(%rsp), %rsi
sarq $0x5, %rsi
leaq 0x178(%rsp), %rdi
leaq 0x2d8(%rsp), %rdx
leaq 0x60(%rsp), %rcx
callq 0x89834
movl 0x550fb(%rip), %eax     # 0xdd618
movl %eax, 0x14(%rsp)
movq 0x48(%rsp), %rsi
subq 0x40(%rsp), %rsi
sarq $0x5, %rsi
leaq 0x60(%rsp), %rdx
andl $0x0, (%rdx)
leaq 0x258(%rsp), %rdi
leaq 0x158(%rsp), %rcx
callq 0x438a0
movq 0x48(%rsp), %rsi
subq 0x40(%rsp), %rsi
sarq $0x5, %rsi
leaq 0x60(%rsp), %rdx
andl $0x0, (%rdx)
leaq 0x240(%rsp), %rdi
leaq 0x158(%rsp), %rcx
callq 0x438a0
xorpd %xmm0, %xmm0
andq $0x0, 0x2d0(%rsp)
leaq 0x80(%rsp), %rax
andq $0x0, 0x10(%rax)
movapd %xmm0, 0x2c0(%rsp)
movapd %xmm0, (%rax)
leaq 0x70(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
leaq 0x168(%rsp), %rcx
movq %rcx, -0x10(%rcx)
andq $0x0, -0x8(%rcx)
xorl %r12d, %r12d
movb %r12b, (%rax)
movb %r12b, (%rcx)
leaq 0xd0(%rsp), %r13
leaq 0xb0(%rsp), %rbp
leaq 0x138(%rsp), %rbx
movl $0x0, 0x4(%rsp)
movq 0x238(%rsp), %rdi
movq %r13, %rsi
callq 0x80a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x89081
movq 0xd0(%rsp), %rdi
movq 0xd8(%rsp), %rsi
addq %rdi, %rsi
movb $0xd, 0xb0(%rsp)
movq %rbp, %rdx
callq 0x61a56
movq 0xd0(%rsp), %rdx
addq 0xd8(%rsp), %rdx
movq %r13, %rdi
movq %rax, %rsi
callq 0x80f0
movq 0xd0(%rsp), %rax
cmpb $0x23, (%rax)
jne 0x8871b
movzbl 0x1(%rax), %eax
cmpl $0x23, %eax
je 0x885e6
cmpl $0x43, %eax
jne 0x8871b
movq %rbp, %rdi
movq %r13, %rsi
pushq $0x9
popq %rdx
callq 0x40349
leaq 0x80(%rsp), %rdi
movq %rbp, %rsi
callq 0x2f6c0
movq %rbp, %rdi
callq 0x28a08
movq 0x80(%rsp), %rsi
movl $0x120, %eax            # imm = 0x120
addq %rax, %rsi
movq 0x88(%rsp), %rdx
movq %rbx, %rdi
movq %rbp, %rcx
callq 0x613fe
xorl %eax, %eax
movq %rax, 0xb0(%rsp)
movq 0x138(%rsp), %rsi
movq 0x140(%rsp), %rcx
subq %rsi, %rcx
sarq $0x5, %rcx
cmpq %rcx, %rax
je 0x88a8a
shlq $0x5, %rax
addq %rax, %rsi
leaq 0x2f0(%rsp), %rdi
callq 0x3210e
movq %rax, %r15
leaq 0x320(%rsp), %rdi
movq %rbp, %rsi
callq 0x4a546
movq %rax, %rdi
movq %r15, %rsi
callq 0x82a0
movq 0xb0(%rsp), %rax
incq %rax
jmp 0x886b4
incl %r12d
movl %r12d, %eax
cltd
movl $0x3e8, %ecx            # imm = 0x3E8
idivl %ecx
testl %edx, %edx
jne 0x887fb
callq 0x8310
subq 0x218(%rsp), %rax
cvtsi2sd %rax, %xmm0
divsd 0x14c3d(%rip), %xmm0    # 0x9d388
movsd %xmm0, 0x58(%rsp)
movq 0x54890(%rip), %rdi     # 0xdcfe8
leaq 0x17f47(%rip), %rsi     # 0xa06a6
callq 0x8480
movq %rax, %rdi
movl %r12d, %esi
callq 0x8840
movq %rax, %rdi
leaq 0x1ae35(%rip), %rsi     # 0xa35ae
callq 0x8480
movq %rax, %rdi
movsd 0x58(%rsp), %xmm0
callq 0x8750
movq %rax, %rdi
leaq 0x1de60(%rip), %rsi     # 0xa65f6
callq 0x8480
movq %rax, %rdi
callq 0x8230
movq 0x5483e(%rip), %rdi     # 0xdcfe8
leaq 0x24eee(%rip), %rsi     # 0xad69f
callq 0x8480
movq %rax, %rdi
movsd 0x220(%rsp), %xmm0
callq 0x8750
movq %rax, %rdi
leaq 0x24edd(%rip), %rsi     # 0xad6ae
callq 0x8480
movq %rax, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x8750
movq %rax, %rdi
leaq 0x1de08(%rip), %rsi     # 0xa65f6
callq 0x8480
movq %rax, %rdi
callq 0x8230
movq %rbp, %rdi
movq %r13, %rsi
pushq $0x9
popq %rdx
callq 0x40349
leaq 0x80(%rsp), %rdi
movq %rbp, %rsi
callq 0x2f6c0
movq %rbp, %rdi
callq 0x28a08
movq 0x80(%rsp), %rsi
leaq 0x60(%rsp), %rdi
callq 0x82a0
movq 0x80(%rsp), %rsi
addq $0x20, %rsi
leaq 0x158(%rsp), %rdi
callq 0x82a0
leaq 0x380(%rsp), %rdi
leaq 0x158(%rsp), %rsi
callq 0x8600
leaq 0x380(%rsp), %r14
movq %r14, %rdi
callq 0x402aa
movsd %xmm0, 0xa8(%rsp)
movq %r14, %rdi
callq 0x8978
movq 0x80(%rsp), %rsi
movl $0x120, %eax            # imm = 0x120
addq %rax, %rsi
movq 0x88(%rsp), %rdx
leaq 0x108(%rsp), %rdi
movq %rbp, %rcx
callq 0x613fe
movq 0x80(%rsp), %rsi
addq $0x60, %rsi
movq %rbp, %rdi
callq 0x8600
movq 0x80(%rsp), %rsi
subq $-0x80, %rsi
movq %rbx, %rdi
callq 0x8600
movq %rbx, %rdi
leaq 0x290ca(%rip), %rsi     # 0xb19a6
callq 0x2193f
cmpb $0x0, 0x56948(%rip)     # 0xdf230
je 0x88a10
testb %al, %al
jne 0x88a32
movq %r12, 0x230(%rsp)
callq 0x8310
movq %rax, %r15
movl $0x240, %edi            # imm = 0x240
callq 0x8490
movq %rax, 0x8(%rsp)
leaq 0x108(%rsp), %r14
movq 0x8(%rsp), %r12
movq 0x110(%rsp), %rdx
subq 0x108(%rsp), %rdx
shrq $0x5, %rdx
movq %r12, %rdi
leaq 0x350(%rsp), %rsi
callq 0x61430
movq %r12, %rdi
movq %r14, %rsi
leaq 0x320(%rsp), %rdx
callq 0x3ff64
movq %r14, %rdi
callq 0x32680
movq %r14, %rdi
callq 0x61b78
callq 0x8310
subq %r15, %rax
cvtsi2sd %rax, %xmm0
divsd 0x14a0a(%rip), %xmm0    # 0x9d388
movsd %xmm0, 0x220(%rsp)
callq 0x8310
movq %rax, 0x228(%rsp)
cvtsi2sdl 0x14(%rsp), %xmm1
movsd 0xa8(%rsp), %xmm0
movsd %xmm1, 0x128(%rsp)
ucomisd %xmm1, %xmm0
cvtsi2sdl 0x4(%rsp), %xmm1
movq %r12, 0x130(%rsp)
ja 0x889ca
ucomisd %xmm0, %xmm1
jbe 0x88ec3
movsd %xmm1, 0x120(%rsp)
movl 0x54c3f(%rip), %eax     # 0xdd618
movl %eax, 0x18(%rsp)
cmpq $0x0, 0x56833(%rip)     # 0xdf218
je 0x88bca
movsd 0xa8(%rsp), %xmm0
ucomisd 0x128(%rsp), %xmm0
jbe 0x88b9f
movl 0x4(%rsp), %edx
addl %edx, 0x18(%rsp)
jmp 0x88bb0
cmpq $0x2, 0xb8(%rsp)
setae %cl
cmpq $0x2, 0x140(%rsp)
setae %dl
orb %cl, %dl
orb %dl, %al
je 0x888f6
andq $0x0, 0xb8(%rsp)
movq 0xb0(%rsp), %rax
movq %rbx, %r15
xorl %ebx, %ebx
movb %bl, (%rax)
movq %rbp, %rdi
callq 0x8930
andq $0x0, 0x140(%rsp)
movq 0x138(%rsp), %rax
movb %bl, (%rax)
movq %r15, %rdi
callq 0x8930
leaq 0x108(%rsp), %r14
movq %r14, %rdi
callq 0x32680
movq %r14, %rdi
callq 0x61b78
jmp 0x8905f
movq 0x288(%rsp), %r15
leaq 0x278(%rsp), %rax
cmpq %rax, %r15
je 0x88b85
leaq 0x20(%r15), %rsi
movq %rbp, %rdi
callq 0x8600
leaq 0x40(%r15), %rsi
leaq 0x108(%rsp), %r14
movq %r14, %rdi
callq 0x297dc
leaq 0xf0(%rsp), %rdi
movq %rbx, %rsi
movq %r14, %rdx
callq 0x427bd
movq 0xf0(%rsp), %rax
cmpq 0xf8(%rsp), %rax
jne 0x88b33
movq 0x544f9(%rip), %rdi     # 0xdcfe8
leaq 0x17b45(%rip), %rsi     # 0xa063b
callq 0x8480
movq %rax, %rdi
movq %rbp, %rsi
callq 0x8430
movq %rax, %rdi
leaq 0x1681f(%rip), %rsi     # 0x9f32f
callq 0x8480
movq %rax, %rdi
callq 0x8230
movq 0xf0(%rsp), %rax
cmpq 0xf8(%rsp), %rax
je 0x8919d
leaq 0x350(%rsp), %rdi
movq %rbp, %rsi
callq 0x4a596
movq %rax, %rdi
leaq 0xf0(%rsp), %rsi
callq 0x4a5fc
leaq 0xf0(%rsp), %rdi
callq 0x2f68c
leaq 0x108(%rsp), %rdi
callq 0x28a08
movq %rbp, %rdi
callq 0x8978
movq %r15, %rdi
callq 0x8340
movq %rax, %r15
jmp 0x88a92
callq 0x8310
movq %rax, 0x218(%rsp)
movq %rbx, %rdi
callq 0x28a08
jmp 0x885e6
xorl %edx, %edx
movsd 0x120(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x88bca
movq 0xa0(%rsp), %rdi
leaq 0x60(%rsp), %rsi
movl 0x18(%rsp), %ecx
callq 0x3ace4
movl %eax, 0x18(%rsp)
xorl %r13d, %r13d
movq 0x48(%rsp), %rax
subq 0x40(%rsp), %rax
sarq $0x5, %rax
cmpq %r13, %rax
je 0x88e2b
xorl %ebp, %ebp
xorl %r12d, %r12d
movq 0x28(%rsp), %rax
subq 0x20(%rsp), %rax
sarq $0x5, %rax
cmpq %rax, %r12
je 0x88d2a
movq 0x1e0(%rsp), %rax
imulq $0x18, %r13, %rbx
movq (%rax,%rbx), %rsi
movq (%rsi,%rbp), %rax
movq 0x8(%rsi,%rbp), %rcx
movq %rcx, %r15
subq %rax, %r15
shrq $0x3, %r15
testl %r15d, %r15d
jle 0x88c51
movq 0x1b0(%rsp), %rdx
movq (%rdx,%rbx), %rdx
movl (%rdx,%r12,4), %edx
cvtsi2sd %edx, %xmm1
addl %r15d, %edx
cvtsi2sd %edx, %xmm0
divsd %xmm0, %xmm1
ucomisd 0xe9b1(%rip), %xmm1     # 0x97600
jbe 0x88c70
movq 0x178(%rsp), %rdx
movq (%rdx,%rbx), %rdx
movabsq $0x7ff8000000000000, %rdi # imm = 0x7FF8000000000000
movq %rdi, (%rdx,%r12,8)
jmp 0x88d0c
movsd %xmm1, 0x58(%rsp)
addq %rbp, %rsi
leaq 0x3d0(%rsp), %r14
movq %r14, %rdi
callq 0x2f816
movq %r14, %rdi
movl 0x18(%rsp), %esi
callq 0x71255
movq 0x178(%rsp), %rax
movq (%rax,%rbx), %rax
movsd %xmm0, (%rax,%r12,8)
movq %r14, %rdi
callq 0x2b43c
cvtsi2sd %r15d, %xmm0
movq 0x1b0(%rsp), %rax
movq (%rax,%rbx), %rax
addl (%rax,%r12,4), %r15d
cvtsi2sd %r15d, %xmm1
divsd %xmm1, %xmm0
movsd 0x58(%rsp), %xmm1
divsd %xmm0, %xmm1
addsd 0xe911(%rip), %xmm1     # 0x975f0
movq 0x178(%rsp), %rax
movq (%rax,%rbx), %rax
mulsd (%rax,%r12,8), %xmm1
movsd %xmm1, (%rax,%r12,8)
movq 0x1e0(%rsp), %rax
movq (%rax,%rbx), %rsi
movq (%rsi,%rbp), %rax
movq 0x8(%rsi,%rbp), %rcx
cmpq %rax, %rcx
leaq 0x138(%rsp), %rbx
je 0x88d1e
movq %rax, 0x8(%rsi,%rbp)
incq %r12
addq $0x18, %rbp
jmp 0x88be9
movq 0x200(%rsp), %rax
movq (%rax,%r13,8), %rdi
leaq 0x60(%rsp), %rsi
callq 0x8430
leaq 0x110d7(%rip), %r15     # 0x99e1e
leaq 0x3a0(%rsp), %r12
movq %rax, %rdi
movq %r15, %rsi
callq 0x8480
movq %rax, %rdi
movl 0x4(%rsp), %esi
callq 0x8840
movq %rax, %rdi
movq %r15, %rsi
callq 0x8480
movq %rax, %rdi
movl 0x14(%rsp), %esi
callq 0x8840
movq %rax, %rdi
movq %r15, %rsi
callq 0x8480
movq 0x258(%rsp), %rcx
movl (%rcx,%r13,4), %esi
movq %rax, %rdi
callq 0x8840
movq %rax, %rdi
movq %r15, %rsi
callq 0x8480
movq 0x240(%rsp), %rcx
movl (%rcx,%r13,4), %esi
movq %rax, %rdi
callq 0x8840
movq %rax, %rdi
movq %r15, %rsi
callq 0x8480
movq %rax, %rdi
movl 0x18(%rsp), %esi
callq 0x8840
movq %rax, %rdi
movq %r15, %rsi
callq 0x8480
imulq $0x18, %r13, %rsi
addq 0x178(%rsp), %rsi
movq %r12, %rdi
callq 0x2f816
movq 0x200(%rsp), %rax
movq (%rax,%r13,8), %rsi
movq %r12, %rdi
pushq $0x9
popq %rdx
pushq $0x1
popq %rcx
callq 0x488bf
movq %r12, %rdi
callq 0x2b43c
incq %r13
leaq 0xb0(%rsp), %rbp
movq 0x130(%rsp), %r12
jmp 0x88bcd
movq 0x258(%rsp), %rax
movq 0x240(%rsp), %rcx
movq 0x28(%rsp), %rdx
subq 0x20(%rsp), %rdx
sarq $0x5, %rdx
xorl %esi, %esi
cmpq %rsi, %r13
je 0x88e7e
andl $0x0, (%rax,%rsi,4)
andl $0x0, (%rcx,%rsi,4)
imulq $0x18, %rsi, %rdi
addq 0x1b0(%rsp), %rdi
xorl %r8d, %r8d
cmpq %r8, %rdx
je 0x88e79
movq (%rdi), %r9
andl $0x0, (%r9,%r8,4)
incq %r8
jmp 0x88e67
incq %rsi
jmp 0x88e4b
movsd 0xa8(%rsp), %xmm0
ucomisd 0x128(%rsp), %xmm0
jbe 0x88ea2
movl 0x54780(%rip), %eax     # 0xdd618
addl %eax, 0x4(%rsp)
addl %eax, 0x14(%rsp)
jmp 0x88ec3
movsd 0x120(%rsp), %xmm1
ucomisd %xmm0, %xmm1
jbe 0x88ec3
movl $0x0, 0x4(%rsp)
movl 0x54759(%rip), %eax     # 0xdd618
movl %eax, 0x14(%rsp)
addq $0xe0, 0x8(%rsp)
xorl %r14d, %r14d
movq 0x40(%rsp), %rsi
movq 0x48(%rsp), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %r14, %rax
je 0x8900d
movq %r14, %rax
shlq $0x5, %rax
addq %rax, %rsi
movq 0x8(%rsp), %rdi
callq 0x43f2a
movsd (%rax), %xmm1
ucomisd 0xe6ef(%rip), %xmm1     # 0x975f8
jne 0x88f2e
jp 0x88f2e
movq 0x240(%rsp), %rax
incl (%rax,%r14,4)
incq %r14
leaq 0xb0(%rsp), %rbp
movq 0x130(%rsp), %r12
jmp 0x88ecf
movq 0x258(%rsp), %rax
incl (%rax,%r14,4)
movsd 0xe6ae(%rip), %xmm0     # 0x975f0
subsd %xmm1, %xmm0
movsd %xmm0, 0x18(%rsp)
xorl %r15d, %r15d
xorl %r12d, %r12d
xorl %ebp, %ebp
movsd %xmm1, 0x58(%rsp)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %rax, %rbp
je 0x88f19
addq %r12, %rsi
movq 0x8(%rsp), %rdi
callq 0x43f2a
movsd (%rax), %xmm0
ucomisd 0xe66f(%rip), %xmm0     # 0x975f8
jne 0x88f8d
jnp 0x88fea
movq 0x20(%rsp), %rsi
addq %r12, %rsi
movq 0x8(%rsp), %rdi
callq 0x43f2a
movsd (%rax), %xmm0
movsd 0xe645(%rip), %xmm1     # 0x975f0
subsd %xmm0, %xmm1
mulsd 0x18(%rsp), %xmm0
mulsd 0x58(%rsp), %xmm1
addsd %xmm0, %xmm1
movsd %xmm1, 0xf0(%rsp)
movq 0x1e0(%rsp), %rax
imulq $0x18, %r14, %rcx
movq (%rax,%rcx), %rdi
addq %r15, %rdi
leaq 0xf0(%rsp), %rsi
callq 0x5a406
jmp 0x88ffd
movq 0x1b0(%rsp), %rax
imulq $0x18, %r14, %rcx
movq (%rax,%rcx), %rax
incl (%rax,%rbp,4)
incq %rbp
addq $0x20, %r12
addq $0x18, %r15
jmp 0x88f5a
callq 0x8310
subq 0x228(%rsp), %rax
cvtsi2sd %rax, %xmm0
divsd 0x14361(%rip), %xmm0    # 0x9d388
movsd %xmm0, 0x8(%rsp)
movq %r12, %rdi
callq 0x61838
movl $0x240, %esi            # imm = 0x240
movq %r12, %rdi
callq 0x84a0
movq %rbx, %r15
movb $0x1, %bl
movq 0x230(%rsp), %r12
leaq 0xd0(%rsp), %r13
leaq 0x108(%rsp), %r14
movq %r15, %rdi
callq 0x8978
movq %rbp, %rdi
callq 0x8978
movq %r14, %rdi
callq 0x28a08
testb %bl, %bl
movq %r15, %rbx
jmp 0x885e6
leaq 0x158(%rsp), %rdi
callq 0x8978
leaq 0x60(%rsp), %rdi
callq 0x8978
leaq 0x80(%rsp), %rdi
callq 0x28a08
leaq 0x2c0(%rsp), %rdi
callq 0x28a08
leaq 0x240(%rsp), %rdi
callq 0x2aef2
leaq 0x258(%rsp), %rdi
callq 0x2aef2
leaq 0x178(%rsp), %rdi
callq 0x37c74
leaq 0x2d8(%rsp), %rdi
callq 0x2b43c
leaq 0x1b0(%rsp), %rdi
callq 0x3b73c
leaq 0x1c8(%rsp), %rdi
callq 0x2aef2
leaq 0x1e0(%rsp), %rdi
callq 0x79884
leaq 0x2a0(%rsp), %rdi
callq 0x37c74
leaq 0x200(%rsp), %rdi
callq 0x7ef7c
leaq 0x320(%rsp), %rdi
callq 0x4a9bc
leaq 0x350(%rsp), %rdi
callq 0x4aa20
leaq 0x2f0(%rsp), %rdi
callq 0x33008
leaq 0x270(%rsp), %rdi
callq 0x32f44
leaq 0x20(%rsp), %rdi
callq 0x28a08
leaq 0x40(%rsp), %rdi
callq 0x28a08
leaq 0x190(%rsp), %rdi
callq 0x28a08
leaq 0xd0(%rsp), %rdi
callq 0x8978
xorl %eax, %eax
addq $0x3e8, %rsp            # imm = 0x3E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x174c1(%rip), %rdi     # 0xa0665
leaq 0x27f7c(%rip), %rsi     # 0xb1127
leaq 0x27f91(%rip), %rcx     # 0xb1143
movl $0xaf, %edx
callq 0x82f0
jmp 0x89412
movq %rax, %rbx
pushq $0x38
popq %rsi
movq 0xa0(%rsp), %rdi
jmp 0x89397
movq %rax, %rbx
movl $0x208, %esi            # imm = 0x208
movq %r14, %rdi
jmp 0x89397
jmp 0x893a5
jmp 0x893a5
movq %rax, %rbx
movl $0x240, %esi            # imm = 0x240
movq %r12, %rdi
callq 0x84a0
jmp 0x89415
movq %rax, %rbx
jmp 0x8947a
movq %rax, %rbx
jmp 0x89487
movq %rax, %rbx
jmp 0x89494
movq %rax, %rbx
jmp 0x894a1
movq %rax, %rbx
jmp 0x894ae
movq %rax, %rbx
jmp 0x894bb
movq %rax, %rbx
jmp 0x894c8
jmp 0x89406
movq %rax, %rbx
movl $0x208, %esi            # imm = 0x208
movq %r13, %rdi
jmp 0x89269
jmp 0x8928a
movq %rax, %rbx
movl $0x208, %esi            # imm = 0x208
movq %r15, %rdi
jmp 0x89269
jmp 0x8928a
movq %rax, %rbx
movl $0x208, %esi            # imm = 0x208
movq %r14, %rdi
callq 0x84a0
jmp 0x89516
jmp 0x8928a
movq %rax, %rbx
leaq 0x270(%rsp), %rdi
callq 0x8978
jmp 0x89516
movq %rax, %rbx
jmp 0x89516
movq %rax, %rbx
leaq 0x380(%rsp), %rdi
callq 0x8978
jmp 0x8943c
movq %rax, %rbx
jmp 0x89422
jmp 0x893a5
movq %rax, %rbx
jmp 0x8942f
jmp 0x89412
jmp 0x893a5
jmp 0x89406
jmp 0x893b1
jmp 0x893a5
movq %rax, %rbx
leaq 0x3a0(%rsp), %rdi
callq 0x2b43c
jmp 0x89415
movq %rax, %rbx
jmp 0x893db
jmp 0x893b9
movq %rax, %rbx
jmp 0x893ce
jmp 0x89412
jmp 0x893a5
jmp 0x893a5
movq %rax, %rbx
jmp 0x8938f
movq %rax, %rbx
jmp 0x89382
movq %rax, %rbx
jmp 0x89368
movq %rax, %rbx
jmp 0x89375
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x8978
jmp 0x8934e
movq %rax, %rbx
jmp 0x8935b
movq %rax, %rbx
leaq 0x3b8(%rsp), %rdi
callq 0x28a08
jmp 0x894d5
movq %rax, %rbx
leaq 0x158(%rsp), %rdi
callq 0x8978
leaq 0x1e0(%rsp), %rdi
callq 0x8978
leaq 0xb0(%rsp), %rdi
callq 0x8978
leaq 0x138(%rsp), %rdi
callq 0x8978
leaq 0x2a0(%rsp), %rdi
callq 0x8978
movl $0x200, %esi            # imm = 0x200
movq %r13, %rdi
callq 0x84a0
jmp 0x894d5
jmp 0x893b1
jmp 0x893b1
movq %rax, %rbx
jmp 0x8943c
jmp 0x89406
jmp 0x893b1
movq %rax, %rbx
jmp 0x894e2
movq %rax, %rbx
jmp 0x893e8
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x2f68c
leaq 0x108(%rsp), %rdi
callq 0x28a08
leaq 0xb0(%rsp), %rdi
callq 0x8978
leaq 0x138(%rsp), %rdi
jmp 0x89437
movq %rax, %rbx
leaq 0x60(%rsp), %rdi
callq 0x28a08
jmp 0x894e2
jmp 0x89412
movq %rax, %rbx
jmp 0x894d5
jmp 0x89412
jmp 0x89412
movq %rax, %rbx
leaq 0x138(%rsp), %rdi
callq 0x8978
leaq 0xb0(%rsp), %rdi
callq 0x8978
leaq 0x108(%rsp), %rdi
callq 0x28a08
leaq 0x158(%rsp), %rdi
callq 0x8978
leaq 0x60(%rsp), %rdi
callq 0x8978
leaq 0x80(%rsp), %rdi
callq 0x28a08
leaq 0x2c0(%rsp), %rdi
callq 0x28a08
leaq 0x240(%rsp), %rdi
callq 0x2aef2
leaq 0x258(%rsp), %rdi
callq 0x2aef2
leaq 0x178(%rsp), %rdi
callq 0x37c74
leaq 0x2d8(%rsp), %rdi
callq 0x2b43c
leaq 0x1b0(%rsp), %rdi
callq 0x3b73c
leaq 0x1c8(%rsp), %rdi
callq 0x2aef2
leaq 0x1e0(%rsp), %rdi
callq 0x79884
leaq 0x2a0(%rsp), %rdi
callq 0x37c74
leaq 0x200(%rsp), %rdi
callq 0x7ef7c
leaq 0x320(%rsp), %rdi
callq 0x4a9bc
leaq 0x350(%rsp), %rdi
callq 0x4aa20
leaq 0x2f0(%rsp), %rdi
callq 0x33008
leaq 0x270(%rsp), %rdi
callq 0x32f44
leaq 0x20(%rsp), %rdi
callq 0x28a08
leaq 0x40(%rsp), %rdi
callq 0x28a08
leaq 0x190(%rsp), %rdi
callq 0x28a08
leaq 0xd0(%rsp), %rdi
callq 0x8978
movq %rbx, %rdi
callq 0x8870