// File: /workspace/github_cpp_makefile_star2_O2/millanek[P]evo/process_vcf_coding_sequences.cpp
// Function: getCodingSeqMain(int, char**)
int getCodingSeqMain(int argc, char** argv) {
    parseGetCodingSeqOptions(argc, argv);
    string vcfFileRoot = stripExtension(opt::vcfFile);
    string geneFileRoot = stripExtension(opt::geneFile);
    
    if (opt::bIsCoding) {
        std::cerr << "Generating gene coding sequences using variants from: " << opt::vcfFile << std::endl;
        std::cerr << "and the reference genome: " << opt::genomeFile << std::endl;
        std::cerr << "with coding sequence annotation defined in: " << opt::geneFile << std::endl;
    } else {
        std::cerr << "Generating sequences using variants from: " << opt::vcfFile << std::endl;
        std::cerr << "and the reference genome: " << opt::genomeFile << std::endl;
        std::cerr << "extracting regions according to annotation defined in: " << opt::geneFile << std::endl;
    }
        
    // Open connections to read from the vcf and reference genome files
    std::istream* vcfFile = createReader(opt::vcfFile.c_str());
    std::ifstream* genomeFile = new std::ifstream(opt::genomeFile.c_str());
    std::ifstream* geneFile = new std::ifstream(opt::geneFile.c_str());
    
    // Prepare an object for output files
    std::ofstream* badStartStopCodonFile;
    if (opt::bIsCoding) badStartStopCodonFile = new std::ofstream("badStartStopCodonList.txt");
    
    string line;
    string currentScaffoldNum = "";
    string currentScaffoldReference;
    string::size_type inStrPos;
    size_t numSamples;
    std::vector<string> sampleNames;
    string thisScaffoldName;
    unsigned int processedVariantCounter = 0;
    std::vector<string> scaffoldStrings;
    std::vector<string> scaffoldStringsH2;
    std::vector<std::vector<string> > statsAllGenes;
    string statsFileName = geneFileRoot + "_stats.txt";
    std::ofstream* statsFile = new std::ofstream(statsFileName.c_str());
    string stopsFileName = geneFileRoot + "_prematureStops.txt";
    *statsFile << "transcript" << "\t" << "length_in_nucleotides" << "\t" << "segregating_sites(ss)" << "\t" << "ss_proportion" << "\t" << "length_in_AA" << "\t" << "num_of_AA_with_synonymous_changes(synAAs)" << "\t" << "synAAs_proportion" << "\t" << "non_synonymous_AA_substitutions(nsAAs)" << "\t" << "nsAAs_proportion" << "\t" << "synonymousMAFaverage" << "\t" << "nonsynonymousMAFaverage" << "\t" << "pN" << "\t" << "pS" << std::endl;
    if (opt::hetTreatment == 'b') {
        std::cout << "transcript" << "\t" << "pN" << "\t" << "pS" << std::endl;
    } else {
        std::cout << "transcript" << "\t" << "length_in_nucleotides" << "\t" << "segregating_sites(ss)" << "\t" << "ss_proportion" << "\t" << "length_in_AA" << "\t" << "num_of_AA_with_synonymous_changes(synAAs)" << "\t" << "synAAs_proportion" << "\t" << "non_synonymous_AA_substitutions(nsAAs)" << "\t" << "nsAAs_proportion" << "\t" << "synonymousMAFaverage" << "\t" << "nonsynonymousMAFaverage" << "\t" << "pN" << "\t" << "pS" << std::endl;
    }
    std::ofstream* stopsFile = new std::ofstream(stopsFileName.c_str());
    *stopsFile << "transcript" << "\t" << "stopAA_position" << "\t" << "transcript_length" << "\t" << "stop_allele_frequency" << "\t" << "individuals_with_stop" << std::endl;
    string stopsPerGeneFileName = geneFileRoot + "_prematureStops_perGene.txt";
    std::ofstream* stopsPerGeneSummaryFile = new std::ofstream(stopsPerGeneFileName.c_str());
    *stopsPerGeneSummaryFile << "gene" << "\t" << "numStops" << "\t" << "numTranscripts" << "\t" << "avg_stop_allele_frequency" << "\t" << "avg_stop_AA_position(%_of_trancript_length)" << std::endl;
    
    // Load up the gene (CDS) annotation file
    Annotation wgAnnotation(geneFile, opt::bUsePartial);
    std::vector<std::vector<string> > annotation;
    
    //print_vector(wgAnnotation.annotationMap["scaffold_0"][0], std::cerr);
    
    while (getline(*vcfFile, line)) {
        if (line[0] == '#' && line[1] == '#')
            continue;
        else if (line[0] == '#' && line[1] == 'C') {
            std::vector<std::string> fields = split(line, '\t');
            numSamples = fields.size()-NUM_NON_GENOTYPE_COLUMNS;
            // Initialize vectors
            scaffoldStrings.resize(numSamples);
            
            for (std::vector<std::string>::size_type i = NUM_NON_GENOTYPE_COLUMNS; i != fields.size(); i++) {
                if (opt::sampleNameFile.empty())
                    sampleNames.push_back(fields[i]);
                else
                    sampleNames = readSampleNamesFromTextFile(opt::sampleNameFile);
            }
            
        } else {
            processedVariantCounter++;
            std::vector<std::string> fields = split(line, '\t');
            // Also get overall depth for this variant
            std::vector<std::string> info = split(fields[7], ';');
            if (fields[0] != currentScaffoldNum) {
                if (currentScaffoldNum != "") {
                    for (std::vector<std::string>::size_type i = 0; i != numSamples; i++) {
                        scaffoldStrings[i].append(currentScaffoldReference.substr(inStrPos, string::npos));
                    }
                    if (opt::hetTreatment == 'b') {
                        for (std::vector<std::string>::size_type i = 0; i != numSamples; i++) {
                            scaffoldStringsH2[i].append(currentScaffoldReference.substr(inStrPos, string::npos));
                        }
                    }
                      
#ifdef DEBUG
                    if (scaffoldStrings[0].length() != currentScaffoldReference.length()) {
                        std::cerr << "Error!!! Reference scaffold length: " << currentScaffoldReference.length() << " vcf scaffold length: " << scaffoldStrings[0].length() << std::endl;
                    }
#endif
                    std::cerr << currentScaffoldNum << std::endl;
                    annotation = wgAnnotation.annotationMap[currentScaffoldNum]; // Get annotation for this scaffold
                    
                    std::cerr << "Going through the annotation..." << std::endl;
                    for (std::vector<std::vector<string> >::size_type k = 0; k != annotation.size(); k++) {
                        std::vector<string> annotLineVec = split(annotation[k][0], '\t');
                        // std::cerr << "Gene:" << annotLineVec[4] << std::endl;
                        std::ofstream* geneOutFiles;
                        bool geneLengthDivisibleByThree = true;
                        std::vector<string> allSeqs; std::vector<string> allSeqsH2;
                        string geneName = annotLineVec[4];
                        std::vector<string> statsThisGene; statsThisGene.push_back(geneName);
                        string refSeq = getReferenceForThisRegion(annotation[k], annotLineVec[3], currentScaffoldReference);
                        if (opt::bIsCoding)
                            geneLengthDivisibleByThree = codingSequenceErrorChecks(refSeq, geneName, annotation, (int)k, badStartStopCodonFile);
                        if (geneLengthDivisibleByThree)
                            geneOutFiles = new std::ofstream(geneName.c_str());
                        else if (opt::nonDivPrefix != "")
                            geneOutFiles = new std::ofstream((opt::nonDivPrefix+'_'+geneName).c_str());
                        if (geneLengthDivisibleByThree || opt::nonDivPrefix != "") {
                            for (std::vector<std::string>::size_type i = 0; i != numSamples; i++) {
                                string geneSeq = getIndividualSequenceForThisRegion(annotation[k], annotLineVec[3], scaffoldStrings[i]);
                                *geneOutFiles << ">" << sampleNames[i] << std::endl;
                                *geneOutFiles << geneSeq << std::endl;
                                allSeqs.push_back(geneSeq);
                                if (opt::hetTreatment == 'b') {
                                    geneSeq = getIndividualSequenceForThisRegion(annotation[k], annotLineVec[3], scaffoldStringsH2[i]);
                                    *geneOutFiles << ">" << sampleNames[i] << "_H2" << std::endl;
                                    *geneOutFiles << geneSeq << std::endl;
                                    allSeqsH2.push_back(geneSeq);
                                }
                            } geneOutFiles->close();
                            std::cerr << "Got all sequences for: " << annotLineVec[4] << std::endl;
                        }
                        // Get statistics for the sequences
                        if (!opt::bNoStats) {
                            if (opt::bIsCoding && geneLengthDivisibleByThree) {
                                assert(allSeqs[0].length() == refSeq.length());
                                assert(allSeqsH2[0].length() == refSeq.length());
                                if (opt::hetTreatment == 'p' || opt::hetTreatment == 'r') {
                                    getStatsHaploidSeq(allSeqs, statsThisGene);
                                    print_vector(statsThisGene, std::cout);
                                } else if (opt::hetTreatment == 'b') {
                                    std::vector<std::vector<double> > combinedVectorForPCA;
                                    pNsets* sets = nullptr;
                                    getStatsBothPhasedHaps(allSeqs, allSeqsH2, statsThisGene, combinedVectorForPCA, sets);
                                    print_vector(statsThisGene, std::cout);
                                } else {
                                    getStatsIUPAC(allSeqs, refSeq, annotLineVec[4], statsThisGene,stopsFile, sampleNames);
                                }
                                statsAllGenes.push_back(statsThisGene);
                                std::cerr << "Got statistics for: " << annotLineVec[4] << std::endl;
                            }
                        }
                    }
                  //  for (std::vector<std::string>::size_type i = 0; i != numSamples; i++) {
                  //      scaffoldStrings[i] = "";
                  //      if (opt::hetTreatment == 'b') scaffoldStringsH2[i] = "";
                  //  }
                    processedVariantCounter = 1;
                    currentScaffoldNum = fields[0];
                    forwardGenomeToScaffold(currentScaffoldNum, genomeFile, thisScaffoldName);
                } else {
                    getline(*genomeFile, thisScaffoldName);
                    thisScaffoldName.erase(0,1);
                    currentScaffoldNum = fields[0];
                }
                
                print_matrix(statsAllGenes, *statsFile);
                statsFile->flush();
                statsAllGenes.clear();
                printPerGeneSummaries(stopsPerGeneSummaryFile, wgAnnotation);
                stopsTranscriptRecord.clear();
                
                inStrPos = 0;
                std::cerr << "Starting to read " << thisScaffoldName << std::endl;
                currentScaffoldReference = readScaffold(genomeFile, thisScaffoldName);
                thisScaffoldName.erase(0,1);
                std::cerr << "Finished reading" << std::endl;
                std::cerr << "Generating sequences with variants from the VCF file..." << std::endl;
                
                for (std::vector<string>::size_type i = 0; i != numSamples; i++) {
                    scaffoldStrings[i] = "";
                    scaffoldStrings[i].reserve(currentScaffoldReference.length());
                }
                if (opt::hetTreatment == 'b') {
                    scaffoldStringsH2.resize(numSamples);
                    for (std::vector<string>::size_type i = 0; i != numSamples; i++) {
                        scaffoldStringsH2[i] = "";
                        scaffoldStringsH2[i].reserve(currentScaffoldReference.length());
                    }
                }
                
            }
            //if (wgAnnotation.annotationMap.count(fields[0]) == 1) {
                std::string ref = fields[3];  std::string alt = fields[4];
                if (ref.length() == 1 && alt.length() == 1) { // Only use Biallelic SNPs (or multiallelics split across multiple lines)
                    for (std::vector<std::string>::size_type i = NUM_NON_GENOTYPE_COLUMNS; i != fields.size(); i++) {
                        //std::cerr << "Going through genotypes1:" << i << std::endl;
                        //std::cerr << scaffoldStrings.size() << " " << inStrPos << " " << fields[1] << " " << currentScaffoldReference.size() << std::endl;
                        int sampleNum = (int)i - NUM_NON_GENOTYPE_COLUMNS;
                        scaffoldStrings[sampleNum].append(currentScaffoldReference.substr(inStrPos, (atoi(fields[1].c_str()) - 1)-inStrPos));
                        if (opt::hetTreatment == 'b')
                            scaffoldStringsH2[sampleNum].append(currentScaffoldReference.substr(inStrPos, (atoi(fields[1].c_str()) - 1)-inStrPos));
                        std::vector<string> genotypeFields = split(fields[i], ':');
                        std::vector<char> genotype;
                        genotype.push_back(genotypeFields[0][0]); genotype.push_back(genotypeFields[0][2]);
                        if (opt::hetTreatment == 'b') {
                            // Somewhat hacky:
                            // 1) add to the first haplotype
                            appendGenotypeBaseToString(scaffoldStrings[sampleNum], fields[3], fields[4], genotype, 'p');
                            // 2) add to the second haplotype
                            appendGenotypeBaseToString(scaffoldStringsH2[sampleNum], fields[3], fields[4], genotype, 'b');
                        } else {
                            appendGenotypeBaseToString(scaffoldStrings[sampleNum], fields[3], fields[4], genotype, opt::hetTreatment);
                        }
                    }
                    inStrPos = atoi(fields[1].c_str());
                    
    #ifdef DEBUG
                    if (currentScaffoldReference[inStrPos-1] != fields[3][0]) {
                        std::cerr << "Error!!! Sequence: " << currentScaffoldReference[inStrPos-1] << " vcf-ref: " << fields[3][0] << std::endl;
                    }
    #endif
                }
            //}
            if (processedVariantCounter % 10000 == 0) {
                std::cerr << processedVariantCounter << " variants processed..." << std::endl;
                //std::cout << "scaffoldStrings[0]:\t" << scaffoldStrings[0] << std::endl;
                //std::cout << "scaffoldStringsH2[0]:\t" << scaffoldStringsH2[0] << std::endl;
                //std::cout << "ScaffoldReference:\t" << currentScaffoldReference.substr(0,inStrPos) << std::endl;
            }
        }
    }
    
    print_matrix(statsAllGenes, *statsFile);
    statsAllGenes.clear();
    printPerGeneSummaries(stopsPerGeneSummaryFile, wgAnnotation);
    stopsTranscriptRecord.clear();
 
    
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x458, %rsp            # imm = 0x458
callq 0x57594
leaq 0x889e3(%rip), %rsi     # 0xde5b0
leaq 0x360(%rsp), %rdi
callq 0x404d7
leaq 0x88a0f(%rip), %rsi     # 0xde5f0
leaq 0x298(%rsp), %rdi
callq 0x404d7
cmpb $0x0, 0x88a5b(%rip)     # 0xde650
je 0x55c54
movq 0x873ea(%rip), %rdi     # 0xdcfe8
leaq 0x4e72a(%rip), %rsi     # 0xa432f
callq 0x8480
leaq 0x8899f(%rip), %rsi     # 0xde5b0
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
callq 0x8230
movq 0x873c0(%rip), %rdi     # 0xdcfe8
leaq 0x4d80c(%rip), %rsi     # 0xa343b
callq 0x8480
leaq 0x88995(%rip), %rsi     # 0xde5d0
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
callq 0x8230
leaq 0x4e708(%rip), %rsi     # 0xa435a
jmp 0x55caf
movq 0x8738d(%rip), %rdi     # 0xdcfe8
leaq 0x4e669(%rip), %rsi     # 0xa42cb
callq 0x8480
leaq 0x88942(%rip), %rsi     # 0xde5b0
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
callq 0x8230
movq 0x87363(%rip), %rdi     # 0xdcfe8
leaq 0x4d7af(%rip), %rsi     # 0xa343b
callq 0x8480
leaq 0x88938(%rip), %rsi     # 0xde5d0
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
callq 0x8230
leaq 0x4e653(%rip), %rsi     # 0xa4302
movq 0x87332(%rip), %rdi     # 0xdcfe8
callq 0x8480
leaq 0x8892e(%rip), %rsi     # 0xde5f0
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
callq 0x8230
movq 0x888d7(%rip), %rsi     # 0xde5b0
leaq 0x398(%rsp), %rdi
leaq 0x250(%rsp), %rdx
callq 0x21904
leaq 0x398(%rsp), %rdi
pushq $0x8
popq %rsi
callq 0x42587
movq %rax, 0x220(%rsp)
leaq 0x398(%rsp), %rdi
callq 0x8978
movl $0x208, %edi            # imm = 0x208
callq 0x8490
movq %rax, %r14
movq 0x888a9(%rip), %rsi     # 0xde5d0
pushq $0x8
popq %rdx
movq %rax, %rdi
callq 0x8890
movq %r14, 0x78(%rsp)
movl $0x208, %edi            # imm = 0x208
callq 0x8490
movq %rax, %r14
movq 0x888a5(%rip), %rsi     # 0xde5f0
pushq $0x8
popq %rdx
movq %rax, %rdi
callq 0x8890
movq %r14, 0x278(%rsp)
cmpb $0x0, 0x888eb(%rip)     # 0xde650
jne 0x55d8e
movl $0x200, %edi            # imm = 0x200
callq 0x8490
movq %rax, %r14
leaq 0x4e617(%rip), %rsi     # 0xa4392
pushq $0x10
popq %rdx
movq %rax, %rdi
callq 0x84e0
movq %r14, 0x270(%rsp)
leaq 0x260(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x44076(%rip), %rsi     # 0x99e1f
leaq 0x200(%rsp), %rdi
leaq 0x398(%rsp), %rdx
callq 0x21904
leaq 0x90(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
xorl %ecx, %ecx
movb %cl, (%rax)
andq $0x0, 0x180(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x170(%rsp)
leaq 0x240(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb %cl, (%rax)
movaps %xmm0, 0x60(%rsp)
andq $0x0, 0x70(%rsp)
movaps %xmm0, 0xa0(%rsp)
andq $0x0, 0xb0(%rsp)
movaps %xmm0, 0x150(%rsp)
andq $0x0, 0x160(%rsp)
leaq 0x467da(%rip), %rdx     # 0x9c608
leaq 0x340(%rsp), %rdi
leaq 0x298(%rsp), %rsi
callq 0x28806
movl $0x200, %edi            # imm = 0x200
callq 0x8490
movq %rax, %r12
movq 0x340(%rsp), %rsi
pushq $0x10
popq %rdx
movq %rax, %rdi
callq 0x84e0
leaq 0x4e542(%rip), %rdx     # 0xa43ac
leaq 0x320(%rsp), %rdi
leaq 0x298(%rsp), %rsi
callq 0x28806
leaq 0x4679d(%rip), %rbx     # 0x9c623
movq %r12, %rdi
movq %rbx, %rsi
callq 0x8480
leaq 0x43f86(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e519(%rip), %rsi     # 0xa43c0
movq %rax, %rdi
callq 0x8480
leaq 0x43f68(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e511(%rip), %rsi     # 0xa43d6
movq %rax, %rdi
callq 0x8480
leaq 0x43f4a(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e509(%rip), %rsi     # 0xa43ec
movq %rax, %rdi
callq 0x8480
leaq 0x43f2c(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e4f9(%rip), %rsi     # 0xa43fa
movq %rax, %rdi
callq 0x8480
leaq 0x43f0e(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e4e8(%rip), %rsi     # 0xa4407
movq %rax, %rdi
callq 0x8480
leaq 0x43ef0(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e4f4(%rip), %rsi     # 0xa4431
movq %rax, %rdi
callq 0x8480
leaq 0x43ed2(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e4e8(%rip), %rsi     # 0xa4443
movq %rax, %rdi
callq 0x8480
leaq 0x43eb4(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e4f1(%rip), %rsi     # 0xa446a
movq %rax, %rdi
callq 0x8480
leaq 0x43e96(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e4e7(%rip), %rsi     # 0xa447e
movq %rax, %rdi
callq 0x8480
leaq 0x43e78(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e4c6(%rip), %r14     # 0xa447b
movq %rax, %rdi
movq %r14, %rsi
callq 0x8480
leaq 0x43e57(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x466a4(%rip), %rsi     # 0x9c67a
movq %rax, %rdi
callq 0x8480
leaq 0x43e39(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x46642(%rip), %rsi     # 0x9c636
movq %rax, %rdi
callq 0x8480
movq %rax, %rdi
callq 0x8230
cmpb $0x62, 0x8759d(%rip)    # 0xdd5a8
jne 0x56019
movq 0x86fa4(%rip), %rdi     # 0xdcfb8
jmp 0x5614f
movq 0x86f98(%rip), %rdi     # 0xdcfb8
leaq 0x465fc(%rip), %rsi     # 0x9c623
callq 0x8480
leaq 0x43deb(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e37e(%rip), %rsi     # 0xa43c0
movq %rax, %rdi
callq 0x8480
leaq 0x43dcd(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e376(%rip), %rsi     # 0xa43d6
movq %rax, %rdi
callq 0x8480
leaq 0x43daf(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e36e(%rip), %rsi     # 0xa43ec
movq %rax, %rdi
callq 0x8480
leaq 0x43d91(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e35e(%rip), %rsi     # 0xa43fa
movq %rax, %rdi
callq 0x8480
leaq 0x43d73(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e34d(%rip), %rsi     # 0xa4407
movq %rax, %rdi
callq 0x8480
leaq 0x43d55(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e359(%rip), %rsi     # 0xa4431
movq %rax, %rdi
callq 0x8480
leaq 0x43d37(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e34d(%rip), %rsi     # 0xa4443
movq %rax, %rdi
callq 0x8480
leaq 0x43d19(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e356(%rip), %rsi     # 0xa446a
movq %rax, %rdi
callq 0x8480
leaq 0x43cfb(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e34c(%rip), %rsi     # 0xa447e
movq %rax, %rdi
callq 0x8480
leaq 0x43cdd(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
movq %rax, %rdi
movq %r14, %rbx
movq %rbx, %rsi
callq 0x8480
leaq 0x43cc0(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4650d(%rip), %rsi     # 0x9c67a
movq %rax, %rdi
callq 0x8480
leaq 0x43ca2(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x464ab(%rip), %rsi     # 0x9c636
movq %rax, %rdi
callq 0x8480
movq %rax, %rdi
callq 0x8230
movl $0x200, %edi            # imm = 0x200
callq 0x8490
movq %rax, %r14
movq 0x320(%rsp), %rsi
pushq $0x10
popq %rdx
movq %rax, %rdi
callq 0x84e0
movq %r14, 0x228(%rsp)
leaq 0x46459(%rip), %rsi     # 0x9c623
movq %r14, %rdi
callq 0x8480
leaq 0x43c45(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e2ab(%rip), %rsi     # 0xa4493
movq %rax, %rdi
callq 0x8480
leaq 0x43c27(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e29d(%rip), %rsi     # 0xa44a3
movq %rax, %rdi
callq 0x8480
leaq 0x43c09(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e2e4(%rip), %rsi     # 0xa4508
movq %rax, %rdi
callq 0x8480
leaq 0x43beb(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e273(%rip), %rsi     # 0xa44b5
movq %rax, %rdi
callq 0x8480
movq %rax, %rdi
callq 0x8230
leaq 0x4e272(%rip), %rdx     # 0xa44cb
leaq 0x300(%rsp), %rdi
leaq 0x298(%rsp), %rsi
callq 0x28806
movl $0x200, %edi            # imm = 0x200
callq 0x8490
movq %rax, %r14
movq 0x300(%rsp), %rsi
pushq $0x10
popq %rdx
movq %rax, %rdi
callq 0x84e0
movq %r14, 0x198(%rsp)
leaq 0x4e24a(%rip), %rsi     # 0xa44e7
movq %r14, %rdi
callq 0x8480
leaq 0x43b72(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e231(%rip), %rsi     # 0xa44ec
movq %rax, %rdi
callq 0x8480
leaq 0x43b54(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e21c(%rip), %rsi     # 0xa44f5
movq %rax, %rdi
callq 0x8480
leaq 0x43b36(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e20d(%rip), %rsi     # 0xa4504
movq %rax, %rdi
callq 0x8480
leaq 0x43b18(%rip), %rsi     # 0x99e1e
movq %rax, %rdi
callq 0x8480
leaq 0x4e209(%rip), %rsi     # 0xa451e
movq %rax, %rdi
callq 0x8480
movq %rax, %rdi
callq 0x8230
movq %r12, 0x190(%rsp)
movzbl 0x8831d(%rip), %edx     # 0xde651
leaq 0x398(%rsp), %rdi
leaq 0x278(%rsp), %rsi
callq 0x32000
xorps %xmm0, %xmm0
leaq 0x130(%rsp), %rax
movaps %xmm0, (%rax)
andq $0x0, 0x10(%rax)
movq $0x0, 0x18(%rsp)
leaq 0xf0(%rsp), %r12
leaq 0x280(%rsp), %rbp
movq 0x220(%rsp), %rdi
leaq 0x250(%rsp), %rsi
callq 0x80a0
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x570b0
movq 0x250(%rsp), %rax
cmpb $0x23, (%rax)
jne 0x5646c
movzbl 0x1(%rax), %eax
cmpl $0x23, %eax
je 0x56375
cmpl $0x43, %eax
jne 0x5646c
leaq 0x28(%rsp), %rdi
leaq 0x250(%rsp), %rsi
pushq $0x9
popq %rdx
callq 0x40349
movq 0x30(%rsp), %rsi
subq 0x28(%rsp), %rsi
sarq $0x5, %rsi
addq $-0x9, %rsi
leaq 0x60(%rsp), %rdi
movq %rsi, 0x10(%rsp)
callq 0x34872
movl $0x120, %ebx            # imm = 0x120
pushq $0x9
popq %r14
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %rax, %r14
je 0x5652a
cmpq $0x0, 0x88218(%rip)     # 0xde638
je 0x56453
leaq 0x1a0(%rsp), %r15
movq %r15, %rdi
leaq 0x881fc(%rip), %rsi     # 0xde630
callq 0x4237c
leaq 0x170(%rsp), %rdi
movq %r15, %rsi
callq 0x2f6c0
movq %r15, %rdi
callq 0x28a08
jmp 0x56463
addq %rbx, %rsi
leaq 0x170(%rsp), %rdi
callq 0x2b0a4
incq %r14
addq $0x20, %rbx
jmp 0x563fe
leaq 0x48(%rsp), %rdi
leaq 0x250(%rsp), %rsi
pushq $0x9
popq %rdx
callq 0x40349
movq 0x48(%rsp), %rsi
movl $0xe0, %eax
addq %rax, %rsi
leaq 0x2e8(%rsp), %rdi
pushq $0x3b
popq %rdx
callq 0x40349
movq 0x18(%rsp), %rax
incl %eax
movq %rax, 0x18(%rsp)
movq 0x48(%rsp), %rdi
leaq 0x200(%rsp), %rbx
movq %rbx, %rsi
callq 0x311fd
testb %al, %al
je 0x56dce
movq %rbx, %rdi
leaq 0x4394e(%rip), %rsi     # 0x99e1f
callq 0x2ea9b
testb %al, %al
je 0x56539
movq 0x10(%rsp), %rbx
xorl %r14d, %r14d
subq $0x1, %rbx
jb 0x56574
movq 0x60(%rsp), %rbp
leaq 0x28(%rsp), %r15
movq %r15, %rdi
leaq 0x80(%rsp), %rsi
movq 0x8(%rsp), %rdx
pushq $-0x1
popq %rcx
callq 0x84b0
addq %r14, %rbp
movq %rbp, %rdi
movq %r15, %rsi
callq 0x8920
movq %r15, %rdi
callq 0x8978
addq $0x20, %r14
jmp 0x564e2
leaq 0x28(%rsp), %rdi
callq 0x28a08
jmp 0x56375
movq 0x78(%rsp), %rdi
leaq 0x230(%rsp), %rsi
callq 0x80a0
leaq 0x230(%rsp), %rdi
xorl %esi, %esi
pushq $0x1
popq %rdx
callq 0x8100
movq 0x48(%rsp), %rsi
leaq 0x200(%rsp), %rdi
callq 0x82a0
jmp 0x56c26
cmpb $0x62, 0x8702d(%rip)    # 0xdd5a8
jne 0x565cc
movq 0x10(%rsp), %rbx
xorl %r14d, %r14d
subq $0x1, %rbx
jb 0x565cc
movq 0xa0(%rsp), %rbp
leaq 0x28(%rsp), %r15
movq %r15, %rdi
leaq 0x80(%rsp), %rsi
movq 0x8(%rsp), %rdx
pushq $-0x1
popq %rcx
callq 0x84b0
addq %r14, %rbp
movq %rbp, %rdi
movq %r15, %rsi
callq 0x8920
movq %r15, %rdi
callq 0x8978
addq $0x20, %r14
jmp 0x56585
movq 0x60(%rsp), %rax
movq 0x8(%rax), %rax
cmpq 0x88(%rsp), %rax
leaq 0x2d0(%rsp), %r14
leaq 0x280(%rsp), %rbp
je 0x5663a
movq 0x869f2(%rip), %rdi     # 0xdcfe8
leaq 0x4df4d(%rip), %rsi     # 0xa454a
callq 0x8480
movq 0x88(%rsp), %rsi
movq %rax, %rdi
callq 0x8320
movq %rax, %rdi
leaq 0x4ceb8(%rip), %rsi     # 0xa34d4
callq 0x8480
movq 0x60(%rsp), %rcx
movq 0x8(%rcx), %rsi
movq %rax, %rdi
callq 0x8320
movq %rax, %rdi
callq 0x8230
movq 0x869a7(%rip), %rdi     # 0xdcfe8
leaq 0x200(%rsp), %rsi
callq 0x8430
movq %rax, %rdi
callq 0x8230
leaq 0x398(%rsp), %rdi
leaq 0x200(%rsp), %rsi
callq 0x2957c
leaq 0x130(%rsp), %rdi
movq %rax, %rsi
callq 0x295e2
movq 0x86966(%rip), %rdi     # 0xdcfe8
leaq 0x4dee6(%rip), %rsi     # 0xa456f
callq 0x8480
movq %rax, %rdi
callq 0x8230
xorl %r15d, %r15d
movq 0x130(%rsp), %rcx
movq 0x138(%rsp), %rax
subq %rcx, %rax
cqto
pushq $0x18
popq %rsi
idivq %rsi
cmpq %rax, %r15
je 0x56bf2
imulq $0x18, %r15, %rbp
movq (%rcx,%rbp), %rsi
leaq 0xd8(%rsp), %rdi
pushq $0x9
popq %rdx
callq 0x40349
andq $0x0, 0x120(%rsp)
andq $0x0, 0x1f0(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x110(%rsp)
movaps %xmm0, 0x1e0(%rsp)
movq 0xd8(%rsp), %rsi
subq $-0x80, %rsi
leaq 0x28(%rsp), %rbx
movq %rbx, %rdi
callq 0x8600
xorps %xmm0, %xmm0
movaps %xmm0, 0xc0(%rsp)
andq $0x0, 0xd0(%rsp)
leaq 0xc0(%rsp), %rdi
movq %rbx, %rsi
callq 0x2b0a4
movq 0x130(%rsp), %rsi
addq %rbp, %rsi
movq 0xd8(%rsp), %rdx
addq $0x60, %rdx
leaq 0x1a0(%rsp), %rdi
leaq 0x80(%rsp), %rcx
callq 0x46a62
cmpb $0x0, 0x87ee6(%rip)     # 0xde650
jne 0x5678e
leaq 0x1a0(%rsp), %rdi
leaq 0x28(%rsp), %rsi
leaq 0x270(%rsp), %r8
callq 0x5782b
testb %al, %al
je 0x569ef
movl $0x200, %edi            # imm = 0x200
callq 0x8490
movq %rax, %r13
movb $0x1, %al
movl %eax, 0x20(%rsp)
movq 0x28(%rsp), %rsi
movq %r13, %rdi
pushq $0x10
popq %rdx
callq 0x84e0
movq %r15, 0x8(%rsp)
movq 0x10(%rsp), %rbx
xorl %r15d, %r15d
subq $0x1, %rbx
jb 0x56903
movq 0x130(%rsp), %rsi
addq %rbp, %rsi
movq 0xd8(%rsp), %rdx
addq $0x60, %rdx
movq 0x60(%rsp), %rcx
addq %r15, %rcx
movq %r12, %rdi
callq 0x468d8
movq %r13, %rdi
leaq 0x48319(%rip), %rsi     # 0x9eb12
callq 0x8480
movq 0x170(%rsp), %rsi
addq %r15, %rsi
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
callq 0x8230
movq %r13, %rdi
movq %r12, %rsi
callq 0x8430
movq %rax, %rdi
callq 0x8230
leaq 0x110(%rsp), %rdi
movq %r12, %rsi
callq 0x2b0a4
cmpb $0x62, 0x86d65(%rip)    # 0xdd5a8
jne 0x568f2
movq 0x130(%rsp), %rsi
addq %rbp, %rsi
movq 0xd8(%rsp), %rdx
addq $0x60, %rdx
movq 0xa0(%rsp), %rcx
addq %r15, %rcx
leaq 0x1c0(%rsp), %r14
movq %r14, %rdi
callq 0x468d8
movq %r12, %rdi
movq %r14, %rsi
callq 0x8550
movq %r14, %rdi
callq 0x8978
movq %r13, %rdi
leaq 0x4827a(%rip), %rsi     # 0x9eb12
callq 0x8480
leaq 0x2d0(%rsp), %r14
movq 0x170(%rsp), %rsi
addq %r15, %rsi
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
leaq 0x49bd8(%rip), %rsi     # 0xa049a
callq 0x8480
movq %rax, %rdi
callq 0x8230
movq %r13, %rdi
movq %r12, %rsi
callq 0x8430
movq %rax, %rdi
callq 0x8230
leaq 0x1e0(%rsp), %rdi
movq %r12, %rsi
callq 0x2b0a4
movq %r12, %rdi
callq 0x8978
addq $0x20, %r15
jmp 0x567be
movq %r13, %rdi
callq 0x8620
movq 0x8(%rsp), %r15
movq 0x866d1(%rip), %rdi     # 0xdcfe8
leaq 0x4dc71(%rip), %rsi     # 0xa458f
callq 0x8480
movq 0xd8(%rsp), %rsi
subq $-0x80, %rsi
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
callq 0x8230
cmpb $0x0, 0x87d0c(%rip)     # 0xde652
jne 0x56b97
movl 0x20(%rsp), %eax
notb %al
orb 0x87cf8(%rip), %al      # 0xde650
testb $0x1, %al
jne 0x56b97
movq 0x110(%rsp), %rax
movq 0x8(%rax), %rax
cmpq 0x1a8(%rsp), %rax
jne 0x571e9
movq 0x1e0(%rsp), %rcx
cmpq %rax, 0x8(%rcx)
jne 0x57208
movb 0x86c16(%rip), %al      # 0xdd5a8
movl %eax, %ecx
andb $-0x3, %cl
cmpb $0x70, %cl
jne 0x56a8d
leaq 0x110(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
movsd 0x40c48(%rip), %xmm0    # 0x97600
callq 0x57a1e
movq %r14, %rdi
leaq 0xc0(%rsp), %rsi
callq 0x297dc
movq %r14, %rdi
movq 0x865e1(%rip), %rsi     # 0xdcfb8
pushq $0x9
popq %rdx
pushq $0x1
popq %rcx
callq 0x2ea24
movq %r14, %rdi
callq 0x28a08
jmp 0x56b53
leaq 0x87c1a(%rip), %rdi     # 0xde610
leaq 0x43422(%rip), %rsi     # 0x99e1f
callq 0x2ea9b
testb %al, %al
je 0x56a65
movl $0x200, %edi            # imm = 0x200
callq 0x8490
movq %rax, %r13
leaq 0x1c0(%rsp), %rbx
movq %rbx, %rdi
leaq 0x87beb(%rip), %rsi     # 0xde610
pushq $0x5f
popq %rdx
callq 0x321ba
movq %r12, %rdi
movq %rbx, %rsi
leaq 0x28(%rsp), %rdx
callq 0x287e7
movq 0xf0(%rsp), %rsi
movq %r13, %rdi
pushq $0x10
popq %rdx
callq 0x84e0
movq %r12, %rdi
callq 0x8978
leaq 0x1c0(%rsp), %rdi
callq 0x8978
leaq 0x87ba4(%rip), %rdi     # 0xde610
leaq 0x433ac(%rip), %rsi     # 0x99e1f
callq 0x2ea9b
movl $0x0, 0x20(%rsp)
testb %al, %al
jne 0x567b1
jmp 0x5693f
cmpb $0x62, %al
leaq 0x1a0(%rsp), %rsi
jne 0x56b22
movq %r15, %rbp
xorps %xmm0, %xmm0
movaps %xmm0, 0xf0(%rsp)
andq $0x0, 0x100(%rsp)
leaq 0x110(%rsp), %rdi
leaq 0x1e0(%rsp), %rsi
leaq 0xc0(%rsp), %rbx
movq %rbx, %rdx
movq %r12, %rcx
xorl %r8d, %r8d
movsd 0x40b23(%rip), %xmm0    # 0x97600
xorl %r9d, %r9d
callq 0x5828c
leaq 0x380(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rsi
callq 0x297dc
movq %r15, %rdi
movq 0x864b6(%rip), %rsi     # 0xdcfb8
pushq $0x9
popq %rdx
pushq $0x1
popq %rcx
callq 0x2ea24
movq %r15, %rdi
callq 0x28a08
movq %r12, %rdi
callq 0x37c74
movq %rbp, %r15
jmp 0x56b53
movq 0xd8(%rsp), %rdx
subq $-0x80, %rdx
leaq 0x110(%rsp), %rdi
leaq 0xc0(%rsp), %rcx
leaq 0x228(%rsp), %r8
leaq 0x170(%rsp), %r9
callq 0x5949a
leaq 0x150(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x29502
movq 0x86479(%rip), %rdi     # 0xdcfe8
leaq 0x4dac5(%rip), %rsi     # 0xa463b
callq 0x8480
movq 0xd8(%rsp), %rsi
subq $-0x80, %rsi
movq %rax, %rdi
callq 0x8430
movq %rax, %rdi
callq 0x8230
leaq 0x1a0(%rsp), %rdi
callq 0x8978
leaq 0xc0(%rsp), %rdi
callq 0x28a08
leaq 0x28(%rsp), %rdi
callq 0x8978
leaq 0x1e0(%rsp), %rdi
callq 0x28a08
leaq 0x110(%rsp), %rdi
callq 0x28a08
leaq 0xd8(%rsp), %rdi
callq 0x28a08
incq %r15
leaq 0x280(%rsp), %rbp
jmp 0x56699
movq 0x48(%rsp), %rsi
leaq 0x200(%rsp), %rdi
callq 0x82a0
leaq 0x200(%rsp), %rdi
leaq 0x78(%rsp), %rsi
leaq 0x230(%rsp), %rdx
callq 0x5a51e
pushq $0x1
popq %rax
movq %rax, 0x18(%rsp)
movq %rbp, %rdi
leaq 0x150(%rsp), %rsi
callq 0x2a906
movq %rbp, %rdi
movq 0x190(%rsp), %rbx
movq %rbx, %rsi
callq 0x3afbc
movq %rbp, %rdi
callq 0x29054
movq %rbx, %rdi
callq 0x8330
leaq 0x150(%rsp), %rdi
callq 0x296c0
leaq 0x198(%rsp), %rdi
leaq 0x398(%rsp), %rsi
callq 0x55754
leaq 0x87916(%rip), %rdi     # 0xde598
callq 0x32680
movq 0x8635a(%rip), %rdi     # 0xdcfe8
leaq 0x4c905(%rip), %rsi     # 0xa359a
callq 0x8480
movq %rax, %rdi
leaq 0x230(%rsp), %rsi
callq 0x8430
movq %rax, %rdi
callq 0x8230
leaq 0x28(%rsp), %r14
movq %r14, %rdi
leaq 0x78(%rsp), %rsi
leaq 0x230(%rsp), %rbx
movq %rbx, %rdx
callq 0x3a53b
leaq 0x80(%rsp), %rdi
movq %r14, %rsi
callq 0x8550
movq %r14, %rdi
callq 0x8978
movq %rbx, %rdi
xorl %esi, %esi
pushq $0x1
popq %rdx
callq 0x8100
movq 0x862ed(%rip), %rdi     # 0xdcfe8
leaq 0x4c8ce(%rip), %rsi     # 0xa35d0
callq 0x8480
movq %rax, %rdi
callq 0x8230
movq 0x862d2(%rip), %rdi     # 0xdcfe8
leaq 0x4c8d9(%rip), %rsi     # 0xa35f6
callq 0x8480
movq %rax, %rdi
callq 0x8230
movq 0x10(%rsp), %rbx
xorl %r14d, %r14d
subq $0x1, %rbx
jb 0x56d67
movq 0x60(%rsp), %rdi
addq %r14, %rdi
leaq 0x430d8(%rip), %rsi     # 0x99e1f
callq 0x88f0
movq 0x60(%rsp), %rdi
addq %r14, %rdi
movq 0x88(%rsp), %rsi
callq 0x8700
addq $0x20, %r14
jmp 0x56d32
cmpb $0x62, 0x8683a(%rip)    # 0xdd5a8
jne 0x56dc5
leaq 0xa0(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x34872
movq 0x10(%rsp), %rbx
xorl %r14d, %r14d
subq $0x1, %rbx
jb 0x56dc5
movq 0xa0(%rsp), %rdi
addq %r14, %rdi
leaq 0x4307d(%rip), %rsi     # 0x99e1f
callq 0x88f0
movq 0xa0(%rsp), %rdi
addq %r14, %rdi
movq 0x88(%rsp), %rsi
callq 0x8700
addq $0x20, %r14
jmp 0x56d8a
movq $0x0, 0x8(%rsp)
movq 0x48(%rsp), %rsi
addq $0x60, %rsi
leaq 0x28(%rsp), %rdi
callq 0x8600
movq 0x48(%rsp), %rsi
subq $-0x80, %rsi
leaq 0x1a0(%rsp), %rdi
callq 0x8600
cmpq $0x1, 0x30(%rsp)
jne 0x57044
cmpq $0x1, 0x1a8(%rsp)
jne 0x57044
movl $0x120, %eax            # imm = 0x120
movq %rax, 0x20(%rsp)
xorl %r14d, %r14d
pushq $0x9
popq %r15
movq 0x48(%rsp), %rbx
movq 0x50(%rsp), %rax
subq %rbx, %rax
sarq $0x5, %rax
cmpq %rax, %r15
je 0x56fc7
movq 0x60(%rsp), %rbp
movq 0x20(%rbx), %rdi
callq 0x86f0
decl %eax
movslq %eax, %rcx
movq 0x8(%rsp), %rdx
subq %rdx, %rcx
movq %r12, %rdi
leaq 0x80(%rsp), %rsi
callq 0x84b0
movq %r14, %rbx
sarq $0x20, %rbx
shlq $0x5, %rbx
addq %rbx, %rbp
movq %rbp, %rdi
movq %r12, %rsi
callq 0x8920
movq %r12, %rdi
callq 0x8978
cmpb $0x62, 0x86718(%rip)    # 0xdd5a8
jne 0x56edb
movq 0xa0(%rsp), %rbp
movq 0x48(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x86f0
decl %eax
movslq %eax, %rcx
movq 0x8(%rsp), %rdx
subq %rdx, %rcx
movq %r12, %rdi
leaq 0x80(%rsp), %rsi
callq 0x84b0
addq %rbx, %rbp
movq %rbp, %rdi
movq %r12, %rsi
callq 0x8920
movq %r12, %rdi
callq 0x8978
movq 0x48(%rsp), %rsi
addq 0x20(%rsp), %rsi
movq %r12, %rdi
pushq $0x3a
popq %rdx
callq 0x40349
andq $0x0, 0x1d0(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x1c0(%rsp)
movq 0xf0(%rsp), %rax
movq (%rax), %rsi
leaq 0x1c0(%rsp), %rbp
movq %rbp, %rdi
callq 0x5504a
movq 0xf0(%rsp), %rax
movq (%rax), %rsi
addq $0x2, %rsi
movq %rbp, %rdi
callq 0x5504a
movb 0x8666c(%rip), %al      # 0xdd5a8
movq 0x60(%rsp), %rdi
addq %rbx, %rdi
movq 0x48(%rsp), %rdx
leaq 0x60(%rdx), %rsi
subq $-0x80, %rdx
cmpb $0x62, %al
jne 0x56f80
leaq 0x1c0(%rsp), %rcx
pushq $0x70
popq %r8
callq 0x55366
addq 0xa0(%rsp), %rbx
movq 0x48(%rsp), %rdx
leaq 0x60(%rdx), %rsi
subq $-0x80, %rdx
movb $0x62, %al
movq %rbx, %rdi
movsbl %al, %r8d
leaq 0x1c0(%rsp), %rbx
movq %rbx, %rcx
callq 0x55366
movq %rbx, %rdi
callq 0x55604
movq %r12, %rdi
callq 0x28a08
incq %r15
movabsq $0x100000000, %rax      # imm = 0x100000000
addq %rax, %r14
addq $0x20, 0x20(%rsp)
leaq 0x280(%rsp), %rbp
jmp 0x56e23
movq 0x20(%rbx), %rdi
callq 0x86f0
movslq %eax, %rdx
movq 0x80(%rsp), %rax
movq %rdx, 0x8(%rsp)
movb -0x1(%rdx,%rax), %al
movq 0x60(%rbx), %rcx
cmpb (%rcx), %al
je 0x57044
movq 0x85ff5(%rip), %rdi     # 0xdcfe8
leaq 0x4d656(%rip), %rsi     # 0xa4650
callq 0x8480
movq 0x80(%rsp), %rcx
movq 0x8(%rsp), %rdx
movsbl -0x1(%rcx,%rdx), %esi
movq %rax, %rdi
callq 0x8510
movq %rax, %rdi
leaq 0x4d641(%rip), %rsi     # 0xa4664
callq 0x8480
movq 0x48(%rsp), %rcx
movq 0x60(%rcx), %rcx
movsbl (%rcx), %esi
movq %rax, %rdi
callq 0x8510
movq %rax, %rdi
callq 0x8230
movq 0x18(%rsp), %rax
xorl %edx, %edx
movl $0x2710, %ecx           # imm = 0x2710
divl %ecx
testl %edx, %edx
jne 0x5707d
movl 0x18(%rsp), %esi
movq 0x85f87(%rip), %rdi     # 0xdcfe8
callq 0x8320
movq %rax, %rdi
leaq 0x4c6ab(%rip), %rsi     # 0xa371b
callq 0x8480
movq %rax, %rdi
callq 0x8230
leaq 0x1a0(%rsp), %rdi
callq 0x8978
leaq 0x28(%rsp), %rdi
callq 0x8978
leaq 0x2e8(%rsp), %rdi
callq 0x28a08
leaq 0x48(%rsp), %rdi
callq 0x28a08
jmp 0x56375
leaq 0x2b8(%rsp), %rdi
leaq 0x150(%rsp), %rsi
callq 0x2a906
leaq 0x2b8(%rsp), %rdi
movq 0x190(%rsp), %rsi
callq 0x3afbc
leaq 0x2b8(%rsp), %rdi
callq 0x29054
leaq 0x150(%rsp), %rdi
callq 0x296c0
leaq 0x198(%rsp), %rdi
leaq 0x398(%rsp), %rsi
callq 0x55754
leaq 0x87488(%rip), %rdi     # 0xde598
callq 0x32680
leaq 0x130(%rsp), %rdi
callq 0x29054
leaq 0x398(%rsp), %rdi
callq 0x32212
leaq 0x300(%rsp), %rdi
callq 0x8978
leaq 0x320(%rsp), %rdi
callq 0x8978
leaq 0x340(%rsp), %rdi
callq 0x8978
leaq 0x150(%rsp), %rdi
callq 0x29054
leaq 0xa0(%rsp), %rdi
callq 0x28a08
leaq 0x60(%rsp), %rdi
callq 0x28a08
leaq 0x230(%rsp), %rdi
callq 0x8978
leaq 0x170(%rsp), %rdi
callq 0x28a08
leaq 0x80(%rsp), %rdi
callq 0x8978
leaq 0x200(%rsp), %rdi
callq 0x8978
leaq 0x250(%rsp), %rdi
callq 0x8978
leaq 0x298(%rsp), %rdi
callq 0x8978
leaq 0x360(%rsp), %rdi
callq 0x8978
xorl %eax, %eax
addq $0x458, %rsp            # imm = 0x458
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x4d3b7(%rip), %rdi     # 0xa45a7
leaq 0x4d3d7(%rip), %rsi     # 0xa45ce
leaq 0x4d3f1(%rip), %rcx     # 0xa45ef
movl $0xe6, %edx
callq 0x82f0
leaq 0x4d403(%rip), %rdi     # 0xa4612
leaq 0x4d3b8(%rip), %rsi     # 0xa45ce
leaq 0x4d3d2(%rip), %rcx     # 0xa45ef
movl $0xe7, %edx
callq 0x82f0
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
jmp 0x572f9
jmp 0x57391
movq %rax, %rbx
leaq 0x380(%rsp), %rdi
callq 0x28a08
jmp 0x57328
jmp 0x573db
jmp 0x57403
movq %rax, %rbx
leaq 0x280(%rsp), %rdi
callq 0x29054
jmp 0x574b5
jmp 0x57413
movq %rax, %rbx
leaq 0x2b8(%rsp), %rdi
callq 0x29054
jmp 0x574cc
jmp 0x573b0
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq %r14, %rdi
callq 0x84a0
jmp 0x574e6
jmp 0x5740b
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq %r14, %rdi
callq 0x84a0
jmp 0x574f3
jmp 0x572d2
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq %r12, %rdi
callq 0x84a0
jmp 0x57500
movq %rax, %rbx
jmp 0x57500
movq %rax, %rbx
jmp 0x5750d
movq %rax, %rbx
jmp 0x57565
jmp 0x572f1
jmp 0x57391
movq %rax, %rbx
movl $0x208, %esi            # imm = 0x208
movq %r14, %rdi
callq 0x84a0
jmp 0x57572
jmp 0x57391
movq %rax, %rbx
leaq 0x398(%rsp), %rdi
jmp 0x5756d
jmp 0x57391
movq %rax, %rbx
jmp 0x5757f
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x37c74
jmp 0x5746a
movq %rax, %rbx
leaq 0x2d0(%rsp), %rdi
callq 0x28a08
jmp 0x5746a
jmp 0x5739b
movq %rax, %rbx
jmp 0x57366
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x8978
leaq 0x1c0(%rsp), %rdi
callq 0x8978
jmp 0x5739e
jmp 0x573d4
jmp 0x57413
movq %rax, %rbx
jmp 0x574c2
jmp 0x57403
jmp 0x57403
jmp 0x573fe
jmp 0x57413
jmp 0x573d4
movq %rax, %rbx
jmp 0x57572
jmp 0x573db
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq %r13, %rdi
callq 0x84a0
jmp 0x5746a
movq %rax, %rbx
jmp 0x574e6
jmp 0x5740b
movq %rax, %rbx
jmp 0x5748e
jmp 0x573c4
movq %rax, %rbx
jmp 0x57477
jmp 0x57413
jmp 0x573fe
jmp 0x573ec
jmp 0x57413
movq %rax, %rbx
jmp 0x57447
jmp 0x57413
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
jmp 0x574c7
jmp 0x57413
jmp 0x573fe
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x8978
jmp 0x5743a
movq %rax, %rbx
jmp 0x5743a
movq %rax, %rbx
jmp 0x574cc
movq %rax, %rbx
jmp 0x574f3
movq %rax, %rbx
jmp 0x574b5
jmp 0x57455
movq %rax, %rbx
leaq 0x1c0(%rsp), %rdi
callq 0x55604
leaq 0xf0(%rsp), %rdi
callq 0x28a08
leaq 0x1a0(%rsp), %rdi
callq 0x8978
leaq 0x28(%rsp), %rdi
callq 0x8978
jmp 0x574b5
jmp 0x5745a
movq %rax, %rbx
jmp 0x5746a
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x8978
leaq 0x1a0(%rsp), %rdi
callq 0x8978
leaq 0xc0(%rsp), %rdi
callq 0x28a08
leaq 0x28(%rsp), %rdi
callq 0x8978
leaq 0x1e0(%rsp), %rdi
callq 0x28a08
leaq 0x110(%rsp), %rdi
callq 0x28a08
leaq 0xd8(%rsp), %rdi
callq 0x28a08
leaq 0x2e8(%rsp), %rdi
callq 0x28a08
leaq 0x48(%rsp), %rdi
callq 0x28a08
leaq 0x130(%rsp), %rdi
callq 0x29054
leaq 0x398(%rsp), %rdi
callq 0x32212
leaq 0x300(%rsp), %rdi
callq 0x8978
leaq 0x320(%rsp), %rdi
callq 0x8978
leaq 0x340(%rsp), %rdi
callq 0x8978
leaq 0x150(%rsp), %rdi
callq 0x29054
leaq 0xa0(%rsp), %rdi
callq 0x28a08
leaq 0x60(%rsp), %rdi
callq 0x28a08
leaq 0x230(%rsp), %rdi
callq 0x8978
leaq 0x170(%rsp), %rdi
callq 0x28a08
leaq 0x80(%rsp), %rdi
callq 0x8978
leaq 0x200(%rsp), %rdi
callq 0x8978
leaq 0x250(%rsp), %rdi
callq 0x8978
leaq 0x298(%rsp), %rdi
callq 0x8978
leaq 0x360(%rsp), %rdi
callq 0x8978
movq %rbx, %rdi
callq 0x8870