// File: /workspace/github_cpp_makefile_star2_O3/millanek[P]evo/evo_ABS.cpp
// Function: ABSmain(int, char**)
int ABSmain(int argc, char** argv) {
    parseABSoptions(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::ifstream* ABSquartetFile = new std::ifstream(opt::ABSquartetFile.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;
    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;
    
    // Get the ABS quartets
    std::vector<std::ofstream*> outFiles;
    //std::vector<std::ofstream*> outFileGenes;
    std::vector<std::vector<string> > ABSquartets;
    while (getline(*ABSquartetFile,line)) {
        // std::cerr << line << std::endl;
        std::vector<string> fourPops = split(line, '\t'); assert(fourPops.size() == 4);
        ABSquartets.push_back(fourPops);
        std::ofstream* outFile = new std::ofstream(fourPops[0] + "_" + fourPops[1] + "_" + fourPops[2] + "_" + fourPops[3] + "_ABS_" + opt::runName + "_" + numToString(opt::windowSize) + "_" + numToString(opt::windowStep) + ".txt");
        *outFile << "chr\tpos1\tpos2\tABS\tABSalt" << std::endl;
        outFiles.push_back(outFile);
    }
    
    // And need to prepare the vectors to hold the ABS values and the coordinates:
    std::deque<double> initDeq(opt::windowSize,0.0); // deque to initialise per-site ABS values
    std::vector<std::deque<double>> initABSdeques(3,initDeq); // vector of per-site ABS deques - two for each quartet plus one for the coordinates
    std::vector<std::vector<std::deque<double>>> ABSresults(ABSquartets.size(),initABSdeques); // one set of deques for each quartet
    
    // if (!opt::annotFile.empty()) {
    //std::vector<std::vector<double>> initGeneVectors(9); // For the nine PBS columns in the _PBSGenes_ files
    //std::vector<std::vector<std::vector<double>>> PBSgeneResults(PBStrios.size(),initGeneVectors);
    //std::string currentGene = "";
    //}
    //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;
    std::vector<int> usedVars(ABSquartets.size(),0); // Will count the number of used variants for each quartet
    std::vector<string> sampleNames; std::vector<std::string> fields;
    int reportProgressEvery = 1000; 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];
            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;
            }
            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;
            
            // find if we are in a gene:
            std::vector<string> SNPgeneDetails = wgAnnotation.getSNPgeneDetails(chr, atoi(coord.c_str()));
            
            // std::cerr << coord << "\t";
            // print_vector_stream(SNPgeneDetails, std::cerr);
            // Now calculate the PBS stats:
            double pW; double pX; double pY; double pZ;
            for (int i = 0; i != ABSquartets.size(); i++) {
                pW = c->setAAFs.at(ABSquartets[i][0]);
                if (pW == -1) continue;  // If any member of the trio has entirely missing data, just move on to the next trio
                pX = c->setAAFs.at(ABSquartets[i][1]);
                if (pX == -1) continue;
                pY = c->setAAFs.at(ABSquartets[i][2]);
                if (pY == -1) continue;
                pZ = c->setAAFs.at(ABSquartets[i][3]);
                if (pZ == -1) continue;
                
                if (pW == 0 && pX == 0 && pY == 0 && pZ == 0) { continue; }
                if (pW == 1 && pX == 1 && pY == 1 && pZ == 1) { continue; }
                usedVars[i]++;
                
                std::vector<double> thisSNP_ABS = calculateABSfromAFs(pW,pX,pY,pZ,
                                                                      c->setAlleleCounts.at(ABSquartets[i][0]),
                                                                      c->setAlleleCounts.at(ABSquartets[i][1]),
                                                                      c->setAlleleCounts.at(ABSquartets[i][2]),
                                                                      c->setAlleleCounts.at(ABSquartets[i][3]));
                
                ABSresults[i][0].push_back(thisSNP_ABS[0]); ABSresults[i][1].push_back(thisSNP_ABS[1]); ABSresults[i][2].push_back(stringToDouble(coord));
                ABSresults[i][0].pop_front(); ABSresults[i][1].pop_front(); ABSresults[i][2].pop_front();
                
                /*if (!opt::annotFile.empty()) { if (SNPgeneDetails[0] != "") {
                    if (SNPgeneDetails[1] == "exon") {
                        PBSgeneResults[i][0].push_back(thisSNP_PBS[0]); PBSgeneResults[i][1].push_back(thisSNP_PBS[1]); PBSgeneResults[i][2].push_back(thisSNP_PBS[2]);
                    } PBSgeneResults[i][3].push_back(thisSNP_PBS[0]); PBSgeneResults[i][4].push_back(thisSNP_PBS[1]); PBSgeneResults[i][5].push_back(thisSNP_PBS[2]);
                    currentGene = SNPgeneDetails[0];
                }} */
                if (usedVars[i] > opt::windowSize && (usedVars[i] % opt::windowStep == 0)) {
                    // std::cerr << PBSresults[i][0][0] << std::endl;
                    *outFiles[i] << chr << "\t" << ABSresults[i][2][0] << "\t" << coord << "\t" << vector_average(ABSresults[i][0]) << "\t" << vector_average(ABSresults[i][1]) << std::endl;
                }
                // }
            }
            /*if (!opt::annotFile.empty()) { if (SNPgeneDetails[0] == "" && currentGene != "") {
                for (int i = 0; i != ABStrios.size(); i++) {
                    *outFilesGenes[i] << currentGene << "\t" << ABSgeneResults[i][0].size() << "\t" << PBSgeneResults[i][3].size() << "\t" << vector_average(PBSgeneResults[i][0]) << "\t" << vector_average(PBSgeneResults[i][1]) << "\t" << vector_average(PBSgeneResults[i][2]) << "\t" << vector_average(PBSgeneResults[i][3]) << "\t" << vector_average(PBSgeneResults[i][4]) << "\t" << vector_average(PBSgeneResults[i][5]) << std::endl;
                    for (int j = 0; j <= 5; j++) { PBSgeneResults[i][j].clear(); }
                }
                currentGene = "";
            }} */
            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 $0x5c8, %rsp            # imm = 0x5C8
callq 0xb583c
leaq 0x1a0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb $0x0, (%rcx)
leaq 0x470(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x4a0(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x4d0(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x500(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
cmpq %rax, 0x50ad2(%rip)     # 0x103f68
je 0xb355d
movl $0x208, %edi            # imm = 0x208
callq 0x8470
movq %rax, %rbx
movq 0x50ab0(%rip), %rsi     # 0x103f60
movq %rax, %rdi
movl $0x8, %edx
callq 0x8860
leaq 0x3d0(%rsp), %rsi
movq %rbx, (%rsi)
leaq 0x310(%rsp), %rdi
xorl %edx, %edx
callq 0x3b332
leaq 0x468(%rsp), %r15
leaq 0x310(%rsp), %rbx
movq %r15, %rdi
movq %rbx, %rsi
callq 0x989b4
leaq 0x498(%rsp), %rdi
leaq 0x340(%rsp), %r14
movq %r14, %rsi
callq 0x98d16
leaq 0x4c8(%rsp), %rdi
leaq 0x370(%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 0x310(%rsp), %rdi
callq 0x30870
movq 0x5099c(%rip), %rsi     # 0x103f00
leaq 0x310(%rsp), %rdi
leaq 0x2e0(%rsp), %rdx
callq 0x287de
leaq 0x310(%rsp), %rdi
movl $0x8, %esi
callq 0x500af
movq %rax, %r14
leaq 0x320(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb35af
movq 0x320(%rsp), %rsi
incq %rsi
callq 0x8480
movl $0x208, %edi            # imm = 0x208
callq 0x8470
movq %rax, %rbx
movq 0x5095d(%rip), %rsi     # 0x103f20
movq %rax, %rdi
movl $0x8, %edx
callq 0x8860
movl $0x208, %edi            # imm = 0x208
callq 0x8470
movq %r14, 0x2d8(%rsp)
movq 0x50957(%rip), %rsi     # 0x103f40
movq %rax, 0x8(%rsp)
movq %rax, %rdi
movl $0x8, %edx
callq 0x8860
leaq 0x2e8(%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 0x440(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x410(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x3e0(%rsp), %rcx
movl %eax, (%rcx)
movq %rax, 0x8(%rcx)
movq %rcx, 0x10(%rcx)
movq %rcx, 0x18(%rcx)
movq %rax, 0x20(%rcx)
leaq 0x190(%rsp), %r15
leaq 0x310(%rsp), %r12
leaq 0x2e0(%rsp), %r13
leaq 0x438(%rsp), %rbp
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %edx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x8870
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xb3718
movq %r12, %rdi
movq %r15, %rsi
movl $0x9, %edx
callq 0x4d650
movq 0x310(%rsp), %rsi
addq $0x20, %rsi
movq %r13, %rdi
callq 0x46fb4
movq 0x310(%rsp), %rsi
movq %rax, %rdi
callq 0x3133c
movq 0x310(%rsp), %r14
movq %rbp, %rdi
movq %r14, %rsi
callq 0x3b46e
addq $0x20, %r14
movq %rax, %rdi
movq %r14, %rsi
callq 0x8270
movq %r12, %rdi
callq 0x2e784
jmp 0xb3685
xorpd %xmm0, %xmm0
movapd %xmm0, 0x280(%rsp)
movq $0x0, 0x290(%rsp)
movq 0x2f8(%rsp), %rbx
leaq 0x2e8(%rsp), %rax
cmpq %rax, %rbx
je 0xb3772
leaq 0x280(%rsp), %r15
leaq 0x20(%rbx), %rsi
movq %r15, %rdi
callq 0x3133c
movq %rbx, %rdi
callq 0x8310
movq %rax, %rbx
leaq 0x2e8(%rsp), %rax
cmpq %rax, %rbx
jne 0xb374e
movq 0x4e86f(%rip), %rdi     # 0x101fe8
leaq 0x2d7e9(%rip), %rsi     # 0xe0f69
movl $0xa, %edx
callq 0x84e0
movq 0x288(%rsp), %rsi
subq 0x280(%rsp), %rsi
sarq $0x5, %rsi
movq 0x4e843(%rip), %rdi     # 0x101fe8
callq 0x82f0
movq %rax, %rbx
leaq 0x1e5e0(%rip), %rsi     # 0xd1d94
movl $0xd, %edx
movq %rax, %rdi
callq 0x84e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %rbx, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
xorpd %xmm0, %xmm0
leaq 0x1f0(%rsp), %rcx
movapd %xmm0, (%rcx)
xorl %eax, %eax
movq %rax, 0x10(%rcx)
leaq 0xf0(%rsp), %rcx
movq %rax, 0x10(%rcx)
movapd %xmm0, (%rcx)
leaq 0x1e0(%rsp), %r14
leaq 0x190(%rsp), %rbp
leaq 0x248(%rsp), %r12
leaq 0x150(%rsp), %r13
leaq 0x21847(%rip), %rbx     # 0xd507c
movq 0x8(%rsp), %r15
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %edx
movq %r15, %rdi
movq %rbp, %rsi
callq 0x8870
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xb4155
movq %r12, %rdi
movq %rbp, %rsi
movl $0x9, %edx
callq 0x4d650
movq 0x250(%rsp), %rax
subq 0x248(%rsp), %rax
cmpq $0x80, %rax
jne 0xb51d0
leaq 0xf0(%rsp), %rdi
movq %r12, %rsi
callq 0x2f876
movl $0x200, %edi            # imm = 0x200
callq 0x8470
movq %rax, %r15
movq 0x248(%rsp), %rax
leaq 0x160(%rsp), %rcx
movq %rcx, 0x150(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x2ba06
movq %r13, %rdi
movq %rbx, %rsi
callq 0x88c0
movq 0x248(%rsp), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
movq %r13, %rdi
callq 0x8180
leaq 0xe0(%rsp), %rsi
movq %rsi, 0xd0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xb3938
movq %rdx, 0xd0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xe0(%rsp)
jmp 0xb3940
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0xd8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xd0(%rsp), %rdi
movq %rbx, %rsi
callq 0x88c0
leaq 0xc0(%rsp), %rsi
movq %rsi, 0xb0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xb399f
movq %rdx, 0xb0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xc0(%rsp)
jmp 0xb39a7
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0xb8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x248(%rsp), %rax
movq 0x40(%rax), %rsi
movq 0x48(%rax), %rdx
leaq 0xb0(%rsp), %rdi
callq 0x8180
leaq 0x60(%rsp), %rsi
movq %rsi, 0x50(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xb3a07
movq %rdx, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
jmp 0xb3a0f
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x58(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x50(%rsp), %rdi
movq %rbx, %rsi
callq 0x88c0
leaq 0x180(%rsp), %rsi
movq %rsi, 0x170(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xb3a68
movq %rdx, 0x170(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x180(%rsp)
jmp 0xb3a70
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x178(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x248(%rsp), %rax
movq 0x60(%rax), %rsi
movq 0x68(%rax), %rdx
leaq 0x170(%rsp), %rdi
callq 0x8180
leaq 0x138(%rsp), %rsi
movq %rsi, 0x128(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xb3adc
movq %rdx, 0x128(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x138(%rsp)
jmp 0xb3ae4
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x130(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x128(%rsp), %rdi
leaq 0x2b446(%rip), %rsi     # 0xdef54
callq 0x88c0
leaq 0x118(%rsp), %rsi
movq %rsi, 0x108(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xb3b47
movq %rdx, 0x108(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x118(%rsp)
jmp 0xb3b4f
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x110(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x5040f(%rip), %rsi     # 0x103f80
movq 0x50410(%rip), %rdx     # 0x103f88
leaq 0x108(%rsp), %rdi
callq 0x8180
movq %r14, 0x1d0(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xb3bb1
movq %rdx, 0x1d0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x1e0(%rsp)
jmp 0xb3bba
movupd (%rcx), %xmm0
movupd %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x1d8(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x1d0(%rsp), %rdi
movq %rbx, %rsi
callq 0x88c0
leaq 0x40(%rsp), %rsi
movq %rsi, 0x30(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xb3c0d
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0xb3c15
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x4e9a5(%rip), %esi     # 0x1025d8
leaq 0x1b0(%rsp), %rdi
callq 0x2e7e2
movq 0x30(%rsp), %rcx
movl $0xf, %edi
leaq 0x40(%rsp), %rax
cmpq %rax, %rcx
je 0xb3c59
movq 0x40(%rsp), %rdi
movq 0x38(%rsp), %r8
movq 0x1b0(%rsp), %rsi
movq 0x1b8(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0xb3c96
movl $0xf, %edi
leaq 0x1c0(%rsp), %r9
cmpq %r9, %rsi
je 0xb3c91
movq 0x1c0(%rsp), %rdi
cmpq %rdi, %rax
jbe 0xb3ca2
leaq 0x30(%rsp), %rdi
callq 0x8180
jmp 0xb3cb3
leaq 0x1b0(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x84d0
leaq 0x20(%rsp), %rsi
movq %rsi, 0x10(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0xb3cd8
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0xb3ce0
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x10(%rsp), %rdi
movq %rbx, %rsi
callq 0x88c0
leaq 0xa0(%rsp), %rsi
movq %rsi, 0x90(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xb3d3e
movq %rdx, 0x90(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xa0(%rsp)
jmp 0xb3d46
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x98(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0x4e875(%rip), %esi     # 0x1025dc
leaq 0x220(%rsp), %rdi
callq 0x2e7e2
movq 0x90(%rsp), %rcx
movl $0xf, %edi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rcx
je 0xb3d96
movq 0xa0(%rsp), %rdi
movq 0x98(%rsp), %r8
movq 0x220(%rsp), %rsi
movq 0x228(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0xb3dd6
movl $0xf, %edi
leaq 0x230(%rsp), %r9
cmpq %r9, %rsi
je 0xb3dd1
movq 0x230(%rsp), %rdi
cmpq %rdi, %rax
jbe 0xb3de5
leaq 0x90(%rsp), %rdi
callq 0x8180
jmp 0xb3df6
leaq 0x220(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x84d0
leaq 0x80(%rsp), %rsi
movq %rsi, 0x70(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0xb3e21
movq %rdx, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
jmp 0xb3e29
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x78(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x70(%rsp), %rdi
leaq 0x292f3(%rip), %rsi     # 0xdd145
callq 0x88c0
leaq 0x320(%rsp), %rsi
movq %rsi, 0x310(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xb3e8b
movq %rdx, 0x310(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x320(%rsp)
jmp 0xb3e93
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x318(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq %r15, %rdi
leaq 0x310(%rsp), %rsi
movl $0x10, %edx
callq 0x88d0
movq 0x310(%rsp), %rdi
leaq 0x320(%rsp), %rax
cmpq %rax, %rdi
je 0xb3ee8
movq 0x320(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0xb3f0a
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x220(%rsp), %rdi
leaq 0x230(%rsp), %rax
cmpq %rax, %rdi
je 0xb3f2f
movq 0x230(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0xb3f54
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xb3f70
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0xb3f95
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xb3fb1
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x1d0(%rsp), %rdi
cmpq %r14, %rdi
je 0xb3fce
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rax
cmpq %rax, %rdi
je 0xb3ff3
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x128(%rsp), %rdi
leaq 0x138(%rsp), %rax
cmpq %rax, %rdi
je 0xb4018
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x170(%rsp), %rdi
leaq 0x180(%rsp), %rax
cmpq %rax, %rdi
je 0xb403d
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xb4059
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0xb407e
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0xd0(%rsp), %rdi
leaq 0xe0(%rsp), %rax
cmpq %rax, %rdi
je 0xb40a3
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0xb40c8
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x8480
movq %r15, 0x240(%rsp)
movl $0x18, %edx
movq %r15, %rdi
leaq 0x2ae7b(%rip), %rsi     # 0xdef5a
callq 0x84e0
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %r15, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
movq 0x1f8(%rsp), %rsi
cmpq 0x200(%rsp), %rsi
je 0xb4133
movq 0x240(%rsp), %rax
movq %rax, (%rsi)
addq $0x8, 0x1f8(%rsp)
jmp 0xb4148
leaq 0x1f0(%rsp), %rdi
leaq 0x240(%rsp), %rdx
callq 0xaddfa
movq %r12, %rdi
callq 0x2e784
jmp 0xb3835
movslq 0x4e47c(%rip), %rsi     # 0x1025d8
leaq 0x70(%rsp), %rdx
movq $0x0, (%rdx)
leaq 0x310(%rsp), %rdi
leaq 0x90(%rsp), %rcx
callq 0xad646
leaq 0x1d0(%rsp), %rdi
leaq 0x310(%rsp), %rdx
leaq 0x70(%rsp), %rcx
movl $0x3, %esi
callq 0xad6a6
movq 0xf8(%rsp), %rsi
subq 0xf0(%rsp), %rsi
sarq $0x3, %rsi
movabsq $-0x5555555555555555, %rbx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rbx, %rsi
leaq 0x108(%rsp), %rdi
leaq 0x1d0(%rsp), %rdx
leaq 0x70(%rsp), %rcx
callq 0xad740
movq 0xf8(%rsp), %rsi
subq 0xf0(%rsp), %rsi
sarq $0x3, %rsi
imulq %rbx, %rsi
leaq 0x70(%rsp), %rdx
movl $0x0, (%rdx)
leaq 0x128(%rsp), %rdi
leaq 0x90(%rsp), %rcx
callq 0x51b5a
xorl %r13d, %r13d
movq %r13, 0x180(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x170(%rsp)
movq %r13, 0x60(%rsp)
movapd %xmm0, 0x50(%rsp)
leaq 0x70(%rsp), %rcx
leaq 0x80(%rsp), %rax
movq %rax, (%rcx)
movq %r13, 0x8(%rcx)
movb %r13b, 0x10(%rcx)
leaq 0x90(%rsp), %rcx
leaq 0xa0(%rsp), %rax
movq %rax, (%rcx)
movq %r13, 0x8(%rcx)
movb %r13b, 0x10(%rcx)
leaq 0x190(%rsp), %r14
leaq 0x10(%rsp), %rbp
leaq 0xb0(%rsp), %r15
movq 0x2d8(%rsp), %rbx
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %edx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x8870
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xb5056
movq 0x190(%rsp), %rdi
movq 0x198(%rsp), %rsi
addq %rdi, %rsi
movb $0xd, 0x10(%rsp)
movq %rbp, %rdx
callq 0x7fd35
movq %rax, %rcx
subq 0x190(%rsp), %rcx
movq %rcx, 0x198(%rsp)
movb $0x0, (%rax)
movq 0x190(%rsp), %rax
cmpb $0x23, (%rax)
jne 0xb4562
movzbl 0x1(%rax), %eax
cmpl $0x23, %eax
je 0xb427b
cmpl $0x43, %eax
jne 0xb4562
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
movl $0x9, %edx
callq 0x4d650
movq 0x60(%rsp), %rax
movapd 0x30(%rsp), %xmm0
movq 0x40(%rsp), %rcx
movq %rcx, 0x60(%rsp)
movapd 0x50(%rsp), %xmm1
movapd %xmm0, 0x50(%rsp)
movapd %xmm1, 0x10(%rsp)
movq %rax, 0x20(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
movq %rbp, %rdi
callq 0x2e784
movq %rbx, %rdi
callq 0x2e784
movq 0x50(%rsp), %rsi
movl $0x120, %eax            # imm = 0x120
addq %rax, %rsi
movq 0x58(%rsp), %rdx
movq %rbx, %rdi
movq %rbp, %rcx
callq 0x7f67a
movq $0x0, 0x10(%rsp)
movq 0x30(%rsp), %rax
cmpq %rax, 0x38(%rsp)
je 0xb4401
xorl %esi, %esi
shlq $0x5, %rsi
addq %rax, %rsi
leaq 0x438(%rsp), %rdi
callq 0x3b46e
movq %rax, %rbx
leaq 0x3d8(%rsp), %rdi
movq %rbp, %rsi
callq 0x5d958
movq %rax, %rdi
movq %rbx, %rsi
callq 0x8270
movq 0x10(%rsp), %rsi
incq %rsi
movq %rsi, 0x10(%rsp)
movq 0x30(%rsp), %rax
movq 0x38(%rsp), %rcx
subq %rax, %rcx
sarq $0x5, %rcx
cmpq %rcx, %rsi
jne 0xb43ac
movq 0x2f8(%rsp), %rbx
leaq 0x2e8(%rsp), %rax
cmpq %rax, %rbx
je 0xb503a
leaq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x20(%rbx), %rsi
movq 0x28(%rbx), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0x2ba06
leaq 0x40(%rbx), %rsi
movq %r15, %rdi
callq 0x2fc8e
leaq 0xd0(%rsp), %rdi
leaq 0x30(%rsp), %rsi
movq %r15, %rdx
callq 0x5038c
movq 0xd0(%rsp), %rax
cmpq 0xd8(%rsp), %rax
jne 0xb44f1
movl $0x29, %edx
movq 0x4db6e(%rip), %rdi     # 0x101fe8
leaq 0x1da7a(%rip), %rsi     # 0xd1efb
callq 0x84e0
movq 0x10(%rsp), %rsi
movq 0x18(%rsp), %rdx
movq 0x4db51(%rip), %rdi     # 0x101fe8
callq 0x84e0
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
leaq 0x1c19d(%rip), %rsi     # 0xd064b
callq 0x84e0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %r12, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
movq 0xd0(%rsp), %rax
cmpq 0xd8(%rsp), %rax
je 0xb51ef
leaq 0x408(%rsp), %rdi
movq %rbp, %rsi
callq 0x5d9be
movq %rax, %rdi
leaq 0xd0(%rsp), %rsi
callq 0x5da3a
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0xb452e
movq 0xe0(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq %r15, %rdi
callq 0x2e784
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xb4552
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8480
movq %rbx, %rdi
callq 0x8310
movq %rax, %rbx
jmp 0xb4409
imull $0x26e978d5, %r13d, %eax # imm = 0x26E978D5
incl %r13d
addl $0x27ef9dad, %eax       # imm = 0x27EF9DAD
rorl $0x3, %eax
cmpl $0x418936, %eax         # imm = 0x418936
ja 0xb46bf
callq 0x82e0
subq 0x2d0(%rsp), %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x1a974(%rip), %xmm0    # 0xcef10
movsd %xmm0, 0x8(%rsp)
movl $0xa, %edx
movq 0x4da3a(%rip), %rdi     # 0x101fe8
leaq 0x1d9b1(%rip), %rsi     # 0xd1f66
callq 0x84e0
movq 0x4da27(%rip), %rdi     # 0x101fe8
movl %r13d, %esi
callq 0x8810
movq %rax, %rbx
movl $0xd, %edx
movq %rax, %rdi
leaq 0x20893(%rip), %rsi     # 0xd4e6e
callq 0x84e0
movq %rbx, %rdi
movsd 0x8(%rsp), %xmm0
callq 0x8730
movq %rax, %rbx
movl $0x4, %edx
movq %rax, %rdi
leaq 0x22dfe(%rip), %rsi     # 0xd73fe
callq 0x84e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %rbx, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
movl $0xe, %edx
movq 0x4d9b0(%rip), %rdi     # 0x101fe8
leaq 0x29380(%rip), %rsi     # 0xdd9bf
callq 0x84e0
movq 0x4d99d(%rip), %rdi     # 0x101fe8
movsd 0x2c8(%rsp), %xmm0
callq 0x8730
movq %rax, %rbx
movl $0xd, %edx
movq %rax, %rdi
leaq 0x29363(%rip), %rsi     # 0xdd9ce
callq 0x84e0
movq %rbx, %rdi
movsd 0x148(%rsp), %xmm0
callq 0x8730
movq %rax, %rbx
movl $0x4, %edx
movq %rax, %rdi
leaq 0x22d6b(%rip), %rsi     # 0xd73fe
callq 0x84e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %rbx, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
leaq 0x30(%rsp), %rbx
movq %rbx, %rdi
movq %r14, %rsi
movl $0x9, %edx
callq 0x4d650
movq 0x60(%rsp), %rax
movapd 0x30(%rsp), %xmm0
movq 0x40(%rsp), %rcx
movq %rcx, 0x60(%rsp)
movapd 0x50(%rsp), %xmm1
movapd %xmm0, 0x50(%rsp)
movapd %xmm1, 0x10(%rsp)
movq %rax, 0x20(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
movq %rbp, %rdi
callq 0x2e784
movq %rbx, %rdi
callq 0x2e784
movq 0x50(%rsp), %rsi
leaq 0x70(%rsp), %rdi
callq 0x8270
movq 0x50(%rsp), %rsi
addq $0x20, %rsi
leaq 0x90(%rsp), %rdi
callq 0x8270
movq 0x50(%rsp), %rsi
movl $0x120, %eax            # imm = 0x120
addq %rax, %rsi
movq 0x58(%rsp), %rdx
movq %r15, %rdi
movq %rbp, %rcx
callq 0x7f67a
movq 0x50(%rsp), %rax
leaq 0x20(%rsp), %rcx
movq %rcx, 0x10(%rsp)
movq 0x60(%rax), %rsi
movq 0x68(%rax), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0x2ba06
leaq 0x30(%rsp), %rbx
movq 0x50(%rsp), %rax
leaq 0x40(%rsp), %rcx
movq %rcx, 0x30(%rsp)
movq 0x80(%rax), %rsi
movq 0x88(%rax), %rdx
addq %rsi, %rdx
movq %rbx, %rdi
callq 0x2ba06
cmpq $0x1, 0x18(%rsp)
ja 0xb4f5d
cmpq $0x1, 0x38(%rsp)
ja 0xb4f5d
movq %rbx, %rdi
leaq 0x2bf78(%rip), %rsi     # 0xe074e
callq 0x8160
testl %eax, %eax
je 0xb4f5d
callq 0x82e0
movq %rax, %rbx
movl $0x240, %edi            # imm = 0x240
callq 0x8470
movq %rax, %r14
movq 0xb8(%rsp), %rdx
subq 0xb0(%rsp), %rdx
shrq $0x5, %rdx
movq %rax, %rdi
leaq 0x408(%rsp), %rsi
callq 0x7f6bc
movq %r14, %rdi
movq %r15, %rsi
leaq 0x3d8(%rsp), %rdx
callq 0x4d0d4
movq %r14, 0x218(%rsp)
movq %r13, 0x2c0(%rsp)
movq 0xb0(%rsp), %r14
movq 0xb8(%rsp), %r12
cmpq %r14, %r12
je 0xb4885
leaq 0x10(%r14), %r13
movq -0x10(%r13), %rdi
cmpq %rdi, %r13
je 0xb486d
movq (%r13), %rsi
incq %rsi
callq 0x8480
leaq 0x20(%r13), %rax
addq $0x10, %r13
cmpq %r12, %r13
movq %rax, %r13
jne 0xb4858
movq %r14, 0xb8(%rsp)
cmpq %r14, 0xc0(%rsp)
je 0xb4897
movq %r15, %rdi
callq 0x7fe80
callq 0x82e0
subq %rbx, %rax
cvtsi2sd %rax, %xmm0
divsd 0x1a664(%rip), %xmm0    # 0xcef10
movsd %xmm0, 0x2c8(%rsp)
callq 0x82e0
movq %rax, 0x2b8(%rsp)
movq 0x90(%rsp), %rdi
callq 0x86e0
leaq 0xd0(%rsp), %rdi
leaq 0x468(%rsp), %rsi
leaq 0x70(%rsp), %rdx
movl %eax, %ecx
callq 0x581bc
movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB
movq 0xf0(%rsp), %rax
cmpq %rax, 0xf8(%rsp)
je 0xb4eee
movq 0x218(%rsp), %rcx
leaq 0xe0(%rcx), %rbx
movq %rcx, %rdx
addq $0x68, %rdx
xorl %r14d, %r14d
xorl %r12d, %r12d
movq %rdx, %r15
movq (%rax,%r14), %rsi
movq %rbx, %rdi
callq 0x52202
movsd (%rax), %xmm0
movsd %xmm0, 0x8(%rsp)
ucomisd 0x17dd0(%rip), %xmm0    # 0xcc718
movq %r15, %rdx
jne 0xb4953
jnp 0xb4ec3
movq 0xf0(%rsp), %rax
movq (%rax,%r14), %rsi
addq $0x20, %rsi
movq %rbx, %rdi
callq 0x52202
movsd (%rax), %xmm0
ucomisd 0x17da1(%rip), %xmm0    # 0xcc718
movq %r15, %rdx
jne 0xb4982
jnp 0xb4ec3
movsd %xmm0, 0x148(%rsp)
movq 0xf0(%rsp), %rax
movq (%rax,%r14), %rsi
addq $0x40, %rsi
movq %rbx, %rdi
callq 0x52202
movsd (%rax), %xmm0
ucomisd 0x17d69(%rip), %xmm0    # 0xcc718
movq %r15, %rdx
jne 0xb49ba
jnp 0xb4ec3
movsd %xmm0, 0x210(%rsp)
movq 0xf0(%rsp), %rax
movq (%rax,%r14), %rsi
addq $0x60, %rsi
movq %rbx, %rdi
callq 0x52202
movsd (%rax), %xmm3
ucomisd 0x17d31(%rip), %xmm3    # 0xcc718
movq %r15, %rdx
movsd 0x148(%rsp), %xmm1
movsd 0x210(%rsp), %xmm2
jne 0xb4a04
jnp 0xb4ec3
movsd 0x8(%rsp), %xmm0
ucomisd 0x1731e(%rip), %xmm0    # 0xcbd30
jne 0xb4a3e
jp 0xb4a3e
ucomisd 0x17312(%rip), %xmm1    # 0xcbd30
jne 0xb4a3e
jp 0xb4a3e
ucomisd 0x17306(%rip), %xmm2    # 0xcbd30
jne 0xb4a3e
jp 0xb4a3e
ucomisd 0x172fa(%rip), %xmm3    # 0xcbd30
jne 0xb4a3e
jnp 0xb4ec3
movsd 0x8(%rsp), %xmm0
ucomisd 0x17cc4(%rip), %xmm0    # 0xcc710
jne 0xb4a78
jp 0xb4a78
ucomisd 0x17cb8(%rip), %xmm1    # 0xcc710
jne 0xb4a78
jp 0xb4a78
ucomisd 0x17cac(%rip), %xmm2    # 0xcc710
jne 0xb4a78
jp 0xb4a78
ucomisd 0x17ca0(%rip), %xmm3    # 0xcc710
jne 0xb4a78
jnp 0xb4ec3
movsd %xmm3, 0x2b0(%rsp)
movq 0x128(%rsp), %rax
incl (%rax,%r12,4)
movq 0xf0(%rsp), %rax
movq (%rax,%r14), %rsi
movq %rdx, %r13
movq %rdx, %rdi
callq 0x518f2
xorps %xmm0, %xmm0
cvtsi2sdl (%rax), %xmm0
movsd %xmm0, 0x2a8(%rsp)
movq 0xf0(%rsp), %rax
movq (%rax,%r14), %rsi
addq $0x20, %rsi
movq %r13, %rdi
callq 0x518f2
xorps %xmm0, %xmm0
cvtsi2sdl (%rax), %xmm0
movsd %xmm0, 0x2a0(%rsp)
movq 0xf0(%rsp), %rax
movq (%rax,%r14), %rsi
addq $0x40, %rsi
movq %r13, %rdi
callq 0x518f2
movq %r13, %rdi
movl (%rax), %r13d
movq 0xf0(%rsp), %rax
movq (%rax,%r14), %rsi
addq $0x60, %rsi
callq 0x518f2
cvtsi2sd %r13d, %xmm6
cvtsi2sdl (%rax), %xmm7
leaq 0x150(%rsp), %rdi
movsd 0x8(%rsp), %xmm0
movsd 0x148(%rsp), %xmm1
movsd 0x210(%rsp), %xmm2
movsd 0x2b0(%rsp), %xmm3
movsd 0x2a8(%rsp), %xmm4
movsd 0x2a0(%rsp), %xmm5
callq 0xb5cb1
movq 0x108(%rsp), %rax
movq (%rax,%r14), %rdi
movq 0x150(%rsp), %rsi
movq 0x30(%rdi), %rax
movq 0x40(%rdi), %rcx
addq $-0x8, %rcx
cmpq %rcx, %rax
je 0xb4b8f
movsd (%rsi), %xmm0
movsd %xmm0, (%rax)
addq $0x8, %rax
movq %rax, 0x30(%rdi)
jmp 0xb4ba8
callq 0xae44a
movq 0x108(%rsp), %rax
movq (%rax,%r14), %rdi
movq 0x150(%rsp), %rsi
addq $0x8, %rsi
movq 0x80(%rdi), %rax
movq 0x90(%rdi), %rcx
addq $-0x8, %rcx
cmpq %rcx, %rax
je 0xb4be7
movsd (%rsi), %xmm0
movsd %xmm0, (%rax)
addq $0x8, %rax
movq %rdi, 0x8(%rsp)
movq %rax, 0x80(%rdi)
movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB
jmp 0xb4c0b
addq $0x50, %rdi
callq 0xae44a
movabsq $-0x5555555555555555, %r13 # imm = 0xAAAAAAAAAAAAAAAB
movq 0x108(%rsp), %rax
movq (%rax,%r14), %rax
movq %rax, 0x8(%rsp)
leaq 0x270(%rsp), %rax
movq %rax, 0x260(%rsp)
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
addq %rsi, %rdx
leaq 0x260(%rsp), %rdi
callq 0x2ba06
leaq 0x260(%rsp), %rdi
callq 0x4d578
movq 0x8(%rsp), %rdi
addq $0xa0, %rdi
movsd %xmm0, 0x1b0(%rsp)
leaq 0x1b0(%rsp), %rsi
callq 0xae662
movq 0x260(%rsp), %rdi
leaq 0x270(%rsp), %rax
cmpq %rax, %rdi
je 0xb4c8f
movq 0x270(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x108(%rsp), %rax
movq (%rax,%r14), %rdi
callq 0xadba0
movq 0x108(%rsp), %rax
movq (%rax,%r14), %rdi
addq $0x50, %rdi
callq 0xadba0
movq 0x108(%rsp), %rax
movq (%rax,%r14), %rdi
movl $0xa0, %eax
addq %rax, %rdi
callq 0xadba0
movq 0x128(%rsp), %rax
movl (%rax,%r12,4), %eax
cmpl 0x4d8f8(%rip), %eax     # 0x1025d8
jle 0xb4ea3
cltd
idivl 0x4d8ef(%rip)           # 0x1025dc
testl %edx, %edx
jne 0xb4ea3
movq 0x1f0(%rsp), %rax
movq (%rax,%r12,8), %rdi
movq 0x70(%rsp), %rsi
movq 0x78(%rsp), %rdx
callq 0x84e0
movl $0x1, %edx
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rdi
leaq 0x18ca4(%rip), %rsi     # 0xcd9ca
callq 0x84e0
movq 0x8(%rsp), %rdi
movq 0x108(%rsp), %rax
movq (%rax,%r14), %rcx
movq 0xb0(%rcx), %rsi
movq 0xc8(%rcx), %rax
movq %rsi, %rdx
subq 0xb8(%rcx), %rdx
movq %rdx, %rcx
sarq $0x3, %rcx
js 0xb4d6c
cmpq $0x40, %rcx
jb 0xb4d85
movq %rcx, %rdx
shrq $0x6, %rdx
jmp 0xb4d70
sarq $0x9, %rdx
movq %rdx, %rsi
shlq $0x6, %rsi
subq %rsi, %rcx
shlq $0x3, %rcx
addq (%rax,%rdx,8), %rcx
movq %rcx, %rsi
movsd (%rsi), %xmm0
callq 0x8730
movl $0x1, %edx
movq %rax, %rdi
leaq 0x18c2d(%rip), %rsi     # 0xcd9ca
movq %rax, 0x8(%rsp)
callq 0x84e0
movq 0x8(%rsp), %rdi
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
callq 0x84e0
movq %rax, 0x8(%rsp)
movl $0x1, %edx
movq 0x8(%rsp), %rdi
leaq 0x18bf3(%rip), %rsi     # 0xcd9ca
callq 0x84e0
movq 0x108(%rsp), %rax
movq (%rax,%r14), %rsi
leaq 0x578(%rsp), %rdi
callq 0xadca0
leaq 0x578(%rsp), %rdi
callq 0xadbee
movq 0x8(%rsp), %rdi
callq 0x8730
movq %rax, 0x8(%rsp)
movl $0x1, %edx
movq 0x8(%rsp), %rdi
leaq 0x18ba8(%rip), %rsi     # 0xcd9ca
callq 0x84e0
movq 0x108(%rsp), %rax
movq (%rax,%r14), %rsi
addq $0x50, %rsi
leaq 0x528(%rsp), %rdi
callq 0xadca0
leaq 0x528(%rsp), %rdi
callq 0xadbee
movq 0x8(%rsp), %rdi
callq 0x8730
movq (%rax), %rcx
movq -0x18(%rcx), %rdi
addq %rax, %rdi
movl $0xa, %esi
movq %rax, 0x8(%rsp)
callq 0x8450
movq 0x8(%rsp), %rdi
movsbl %al, %esi
callq 0x8040
movq %rax, %rdi
callq 0x8300
leaq 0x528(%rsp), %rdi
callq 0xae016
leaq 0x578(%rsp), %rdi
callq 0xae016
movq 0x150(%rsp), %rdi
testq %rdi, %rdi
je 0xb4ec0
movq 0x160(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq %r15, %rdx
incq %r12
movq 0xf0(%rsp), %rax
movq 0xf8(%rsp), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
imulq %r13, %rcx
addq $0x18, %r14
cmpq %rcx, %r12
jne 0xb4927
callq 0x82e0
subq 0x2b8(%rsp), %rax
xorps %xmm0, %xmm0
cvtsi2sd %rax, %xmm0
divsd 0x1a005(%rip), %xmm0    # 0xcef10
movsd %xmm0, 0x148(%rsp)
movq 0x218(%rsp), %rbx
movq %rbx, %rdi
callq 0x7fb02
movl $0x240, %esi            # imm = 0x240
movq %rbx, %rdi
callq 0x8480
leaq 0xd0(%rsp), %rdi
callq 0x2e784
movb $0x1, %bl
movq 0x2c0(%rsp), %r13
leaq 0x190(%rsp), %r14
leaq 0xb0(%rsp), %r15
jmp 0xb4ff3
movq $0x0, 0x18(%rsp)
movq 0x10(%rsp), %rax
movb $0x0, (%rax)
movq %rbp, %rdi
callq 0x8290
movq $0x0, 0x38(%rsp)
movq 0x30(%rsp), %rax
movb $0x0, (%rax)
movq %rbx, %rdi
callq 0x8290
movq 0xb0(%rsp), %rbx
movq 0xb8(%rsp), %r14
cmpq %rbx, %r14
je 0xb4fd7
leaq 0x10(%rbx), %r12
movq -0x10(%r12), %rdi
cmpq %rdi, %r12
je 0xb4fbe
movq (%r12), %rsi
incq %rsi
callq 0x8480
leaq 0x20(%r12), %rax
addq $0x10, %r12
cmpq %r14, %r12
movq %rax, %r12
jne 0xb4fa8
movq %rbx, 0xb8(%rsp)
cmpq %rbx, 0xc0(%rsp)
je 0xb4fe9
movq %r15, %rdi
callq 0x7fe80
xorl %ebx, %ebx
leaq 0x190(%rsp), %r14
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xb500f
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xb502b
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8480
movq %r15, %rdi
callq 0x2e784
testb %bl, %bl
jmp 0xb427b
callq 0x82e0
movq %rax, 0x2d0(%rsp)
leaq 0x30(%rsp), %rdi
callq 0x2e784
jmp 0xb427b
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0xb507b
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0xb509d
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x50(%rsp), %rdi
callq 0x2e784
leaq 0x170(%rsp), %rdi
callq 0x2e784
movq 0x128(%rsp), %rdi
testq %rdi, %rdi
je 0xb50d1
movq 0x138(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
leaq 0x108(%rsp), %rdi
callq 0xadd6a
leaq 0x1d0(%rsp), %rdi
callq 0xaddb2
leaq 0x310(%rsp), %rdi
callq 0xae016
leaq 0xf0(%rsp), %rdi
callq 0x2efec
movq 0x1f0(%rsp), %rdi
testq %rdi, %rdi
je 0xb5122
movq 0x200(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
leaq 0x280(%rsp), %rdi
callq 0x2e784
leaq 0x3d8(%rsp), %rdi
callq 0x5df54
leaq 0x408(%rsp), %rdi
callq 0x5dfcc
leaq 0x438(%rsp), %rdi
callq 0x3c6d4
leaq 0x2e0(%rsp), %rdi
callq 0x3c602
leaq 0x4f8(%rsp), %rdi
callq 0x3c57e
leaq 0x4c8(%rsp), %rdi
callq 0x3c602
leaq 0x498(%rsp), %rdi
callq 0x3c686
leaq 0x468(%rsp), %rdi
callq 0x30870
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0xb51bc
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x8480
xorl %eax, %eax
addq $0x5c8, %rsp            # imm = 0x5C8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x29d42(%rip), %rdi     # 0xdef19
leaq 0x29d50(%rip), %rsi     # 0xdef2e
leaq 0x29d55(%rip), %rcx     # 0xdef3a
movl $0x97, %edx
callq 0x82c0
leaq 0x1cd2f(%rip), %rdi     # 0xd1f25
leaq 0x29d31(%rip), %rsi     # 0xdef2e
leaq 0x29d36(%rip), %rcx     # 0xdef3a
movl $0xc6, %edx
callq 0x82c0
movq %rax, %r12
jmp 0xb5223
movq %rax, %r12
leaq 0x528(%rsp), %rdi
callq 0xae016
leaq 0x578(%rsp), %rdi
callq 0xae016
jmp 0xb5261
jmp 0xb525e
movq %rax, %r12
movq 0x260(%rsp), %rdi
leaq 0x270(%rsp), %rax
cmpq %rax, %rdi
je 0xb5261
movq 0x270(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb5261
movq %rax, %r12
movq 0x150(%rsp), %rdi
testq %rdi, %rdi
je 0xb537f
movq 0x160(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
jmp 0xb537f
jmp 0xb537c
jmp 0xb5328
movq %rax, %r12
movl $0x240, %esi            # imm = 0x240
movq %r14, %rdi
callq 0x8480
jmp 0xb538c
jmp 0xb5320
jmp 0xb52e4
jmp 0xb5320
jmp 0xb566e
jmp 0xb566e
movq %rax, %r12
jmp 0xb5751
movq %rax, %r12
jmp 0xb575e
movq %rax, %r12
jmp 0xb576b
jmp 0xb5673
movq %rax, %r12
movl $0x208, %esi            # imm = 0x208
movq 0x8(%rsp), %rdi
jmp 0xb5316
jmp 0xb5320
movq %rax, %r12
movl $0x208, %esi            # imm = 0x208
movq %rbx, %rdi
jmp 0xb5316
jmp 0xb5320
movq %rax, %r12
leaq 0x320(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xb5802
movq 0x320(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb5802
movq %rax, %r12
jmp 0xb5802
movq %rax, %r12
jmp 0xb538c
jmp 0xb532f
movq %rax, %rdi
callq 0x288e1
movq %rax, %r12
jmp 0xb53a8
jmp 0xb566e
jmp 0xb566e
movq %rax, %r12
jmp 0xb53c4
movq %rax, %r12
leaq 0x310(%rsp), %rdi
callq 0x7b83e
jmp 0xb5802
jmp 0xb53d1
jmp 0xb566e
jmp 0xb5669
movq %rax, %r12
jmp 0xb56b0
movq %rax, %r12
jmp 0xb56a3
movq %rax, %r12
leaq 0xd0(%rsp), %rdi
callq 0x2e784
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xb53a8
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xb53c4
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0xb0(%rsp), %rdi
jmp 0xb56d1
movq %rax, %r12
jmp 0xb57c1
jmp 0xb566e
movq %rax, %r12
jmp 0xb54b0
movq %rax, %r12
jmp 0xb546f
movq %rax, %r12
jmp 0xb5428
movq %rax, %r12
jmp 0xb544a
movq %rax, %r12
jmp 0xb5494
movq %rax, %r12
movq 0x310(%rsp), %rdi
leaq 0x320(%rsp), %rax
cmpq %rax, %rdi
je 0xb5428
movq 0x320(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0xb544a
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x220(%rsp), %rdi
leaq 0x230(%rsp), %rax
cmpq %rax, %rdi
je 0xb546f
movq 0x230(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0xb5494
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x20(%rsp), %rax
movq 0x10(%rsp), %rdi
cmpq %rax, %rdi
je 0xb54b0
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x1b0(%rsp), %rdi
leaq 0x1c0(%rsp), %rax
cmpq %rax, %rdi
je 0xb54e9
movq 0x1c0(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb54e9
movq %rax, %r12
jmp 0xb5549
movq %rax, %r12
jmp 0xb5593
jmp 0xb5521
movq %rax, %r12
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xb552c
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xb552c
movq %rax, %r12
jmp 0xb55b8
jmp 0xb5673
movq %rax, %r12
jmp 0xb5643
movq %rax, %r12
jmp 0xb556e
movq %rax, %r12
jmp 0xb561e
movq %rax, %r12
movq 0x1d0(%rsp), %rdi
cmpq %r14, %rdi
je 0xb5549
movq 0x1e0(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rax
cmpq %rax, %rdi
je 0xb556e
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x138(%rsp), %rax
movq 0x128(%rsp), %rdi
cmpq %rax, %rdi
je 0xb5593
movq 0x138(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x180(%rsp), %rax
movq 0x170(%rsp), %rdi
cmpq %rax, %rdi
je 0xb55b8
movq 0x180(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x60(%rsp), %rax
movq 0x50(%rsp), %rdi
cmpq %rax, %rdi
je 0xb55d4
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0xc0(%rsp), %rax
movq 0xb0(%rsp), %rdi
cmpq %rax, %rdi
je 0xb55f9
movq 0xc0(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0xe0(%rsp), %rax
movq 0xd0(%rsp), %rdi
cmpq %rax, %rdi
je 0xb561e
movq 0xe0(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x150(%rsp), %rdi
leaq 0x160(%rsp), %rax
cmpq %rax, %rdi
je 0xb5643
movq 0x160(%rsp), %rsi
incq %rsi
callq 0x8480
movl $0x200, %esi            # imm = 0x200
movq %r15, %rdi
callq 0x8480
jmp 0xb578a
movq %rax, %r12
jmp 0xb55d4
movq %rax, %r12
jmp 0xb55f9
jmp 0xb5787
jmp 0xb567b
movq %rax, %r12
jmp 0xb56cc
movq %rax, %r12
jmp 0xb56d6
movq %rax, %r12
jmp 0xb5797
movq %rax, %r12
jmp 0xb57ce
movq %rax, %r12
movq 0xd0(%rsp), %rdi
testq %rdi, %rdi
je 0xb56a3
movq 0xe0(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
leaq 0xb0(%rsp), %rdi
callq 0x2e784
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0xb56cc
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x30(%rsp), %rdi
callq 0x2e784
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0xb56fb
movq 0xa0(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0xb571d
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x50(%rsp), %rdi
callq 0x2e784
leaq 0x170(%rsp), %rdi
callq 0x2e784
movq 0x128(%rsp), %rdi
testq %rdi, %rdi
je 0xb5751
movq 0x138(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
leaq 0x108(%rsp), %rdi
callq 0xadd6a
leaq 0x1d0(%rsp), %rdi
callq 0xaddb2
leaq 0x310(%rsp), %rdi
callq 0xae016
jmp 0xb5797
movq %rax, %r12
leaq 0x310(%rsp), %rdi
jmp 0xb57c9
movq %rax, %r12
leaq 0x248(%rsp), %rdi
callq 0x2e784
leaq 0xf0(%rsp), %rdi
callq 0x2efec
movq 0x1f0(%rsp), %rdi
testq %rdi, %rdi
je 0xb57c1
movq 0x200(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
leaq 0x280(%rsp), %rdi
callq 0x2e784
leaq 0x3d8(%rsp), %rdi
callq 0x5df54
leaq 0x408(%rsp), %rdi
callq 0x5dfcc
leaq 0x438(%rsp), %rdi
callq 0x3c6d4
leaq 0x2e0(%rsp), %rdi
callq 0x3c602
leaq 0x468(%rsp), %rdi
callq 0x7b83e
movq 0x190(%rsp), %rdi
leaq 0x1a0(%rsp), %rax
cmpq %rax, %rdi
je 0xb5834
movq 0x1a0(%rsp), %rsi
incq %rsi
callq 0x8480
movq %r12, %rdi
callq 0x8840