// File: /workspace/github_cpp_makefile_star2_O1/millanek[P]evo/evo_findDiscordantPairs.cpp
// Function: DiscordPairsMain(int, char**)
int DiscordPairsMain(int argc, char** argv) {
    parseDiscordPairsOptions(argc, argv);
    string line; // for reading the input files
    
    std::istream* hetsFile = createReader(opt::hetsFile.c_str());
    std::ifstream* pairtoolsFile = new std::ifstream(opt::pairtoolsFile.c_str());
    std::ifstream* samFile = new std::ifstream(opt::samFile.c_str());
    
    std::ofstream* phaseSwitchFile = new std::ofstream("switches" + opt::runName + ".txt");
    std::ofstream* goodReadPairsFile = new std::ofstream("goodReadPairs" + opt::runName + ".txt");
    
    std::map<int,PhaseInfo*> positionToPhase;
    std::map<string,std::vector<int>> infoPairNameToPos;
    std::map<string,std::vector<string>> infoPairNameToStrands;
    
    std::map<string,std::vector<RecombRead*>> samNameToReads;
    int numHetPairs = 0;
    std::unordered_map<string, ReadLinkSNPpair*> SNPpairs;
    
    if (opt::hapcutFormat) {
        int blockNum = 0;
        // Parse the Hapcut blocks file
        while (getline(*hetsFile, line)) {
            if (line[0] == '*') {
            
            } else if (line[0] == 'B' && line[1] == 'L') { // New block - should in the future separate the hets by blocks
                blockNum++;
            } else {
                std::vector<string> phasedSNPdetails = split(line, '\t');
                int snpPos = atoi(phasedSNPdetails[4].c_str());
                int H1phase = atoi(phasedSNPdetails[1].c_str());
                int H2phase = atoi(phasedSNPdetails[2].c_str());
                //std::cout << "line: " << line << std::endl;
                // std::cout << "phasedSNPdetails[5]: " << phasedSNPdetails[5] << std::endl;
                assert(phasedSNPdetails[5].length() == 1); assert(phasedSNPdetails[6].length() == 1);
                char refBase = phasedSNPdetails[5][0];
                char altBase = phasedSNPdetails[6][0];
                double phaseQual = stringToDouble(phasedSNPdetails[10].c_str());
                int snpCoverage = atoi(phasedSNPdetails[11].c_str());
                std::vector<char> phasedVars;
                if (H1phase == 0 && H2phase == 1) {
                    phasedVars.push_back(refBase); phasedVars.push_back(altBase);
                } else if (H1phase == 1 && H2phase == 0) {
                    phasedVars.push_back(altBase); phasedVars.push_back(refBase);
                } else{
                    continue;
                }
                PhaseInfo* thisPhase = new PhaseInfo(snpPos,phaseQual,snpCoverage, phasedVars,blockNum);
                positionToPhase[snpPos] = thisPhase;
            }
        }
    } else {
        while (getline(*hetsFile, line)) {
            std::vector<string> phasedSNPdetails = split(line, '\t');
            int snpPos = atoi(phasedSNPdetails[1].c_str());
            assert(phasedSNPdetails[2].length() == 1); assert(phasedSNPdetails[3].length() == 1);
            char refBase = phasedSNPdetails[2][0];
            char altBase = phasedSNPdetails[3][0];
            
            std::vector<char> phasedVars;
            phasedVars.push_back(refBase); phasedVars.push_back(altBase);
            double phaseQual = 0; int snpCoverage = 0;
            PhaseInfo* thisPhase = new PhaseInfo(snpPos,phaseQual,snpCoverage, phasedVars,1);
            positionToPhase[snpPos] = thisPhase;
        }
        numHetPairs = nChoosek((int)positionToPhase.size(),2);
    }
    
    
    
    // Now parse the pairtools file to record the exact readpairs
    while (getline(*pairtoolsFile,line)) {
        // std::cerr << line << std::endl;
        std::vector<string> pairVec = split(line, '\t'); assert(pairVec.size() == 8);
        
        string pairName = pairVec[0];
        int pair1pos = atoi(pairVec[2].c_str());
        int pair2pos = atoi(pairVec[4].c_str());
        std::vector<int> bothPos; bothPos.push_back(pair1pos); bothPos.push_back(pair2pos);
        infoPairNameToPos[pairName] = bothPos;
        
        string pair1strand = pairVec[5];
        string pair2strand = pairVec[6];
        std::vector<string> bothStrands; bothStrands.push_back(pair1strand); bothStrands.push_back(pair1strand);
        infoPairNameToStrands[pairName] = bothStrands;
    }
    
    
    // Now parse the samtools file to find reads that match records from the pairstools file
    // and therefore  can be informative about the phasing and recombination
    while (getline(*samFile,line)) {
        // std::cerr << line << std::endl;
        std::vector<string> samRecVec = split(line, '\t'); //assert(pairVec.size() == 8);
        int flag = atoi(samRecVec[1].c_str());
        if (flag > 2000) continue;
        
        RecombRead* thisRead = new RecombRead(samRecVec);
        
        int CIGARlengthTotal = vector_sum(thisRead->GIGARnumsNoSI);
        //std::cout << "thisRead->CIGAR: " << thisRead->CIGAR << std::endl;
        // print_vector(thisRead->GIGARnums, std::cout);
        //std::cout << "CIGARlengthTotal: " << CIGARlengthTotal << std::endl;
        
        
        int adjusted5pReadPos;
        if (thisRead->readStrand == "-") {
            adjusted5pReadPos = thisRead->readPos + CIGARlengthTotal - 1;
        } else {
            adjusted5pReadPos = thisRead->readPos;
        }
        thisRead->adjustedReadPos = adjusted5pReadPos;
        
        string readSeq; string readQual;
        if(infoPairNameToPos.count(thisRead->readName) != 1) {
            std::cerr << "Not in info pair file: " << thisRead->readName << std::endl;
        } else {
            if (thisRead->MQ > opt::minMQ) {
                std::vector<int> pairPosVec = infoPairNameToPos.at(thisRead->readName);
                if (adjusted5pReadPos == pairPosVec[0] || adjusted5pReadPos == pairPosVec[1]) {
                    samNameToReads[thisRead->readName].push_back(thisRead);
                   // std::cout << "Good" << std::endl;
                } else {
                   /* std::cout << "Bad" << "\t" << adjusted5pReadPos << "\t" << pairPosVec[0] << "\t" << pairPosVec[1] << std::endl;
                    std::cout << "CIGAR: " << thisRead->CIGAR << std::endl;
                    print_vector(thisRead->GIGARnums, std::cout);
                    std::cout << "CIGARlengthTotal: " << CIGARlengthTotal << std::endl;
                    std::cout << "readStrand: " << thisRead->readStrand << std::endl; */
                }
            }
        }
    }
    
    int goodPairs = 0;
    std::vector<RecombReadPair*> goodReadPairs; goodReadPairs.reserve(samNameToReads.size());
    for (std::map<string,std::vector<RecombRead*>>::iterator it = samNameToReads.begin(); it != samNameToReads.end(); it++) {
        if (it->second.size() == 2) {
            goodPairs++;
            RecombReadPair* thisReadPair = new RecombReadPair(it->second[0], it->second[1]);
            goodReadPairs.push_back(thisReadPair);
        } else {
            // std::cout << "it->second.size(): " << it->second.size() << std::endl;
        }
    }
    std::sort(goodReadPairs.begin(), goodReadPairs.end());
    
    
    
    int numConcordant = 0; int numDiscordant = 0;
    int numMatch = 0; int numMismatch = 0;
    std::vector<double> matchBaseScores; std::vector<double> mismatchBaseScores;
    std::vector<double> concordantBaseScores; std::vector<double> discordantBaseScores;
    std::vector<PhaseSwitch*> phaseSwitches;
    
    int numFullLenghtReadPairs = 0;
    int totalUsedLength = 0;
    std::vector<int> numHets;
    int num0het = 0; int num1het = 0; int num2plusHets = 0;
    
    for (int r = 0; r < goodReadPairs.size(); r++) {
        
        goodReadPairs[r]->findAndCombinePairHets(positionToPhase);
        goodReadPairs[r]->filterHetsByQuality(opt::minBQ);
        
        if (goodReadPairs[r]->hetSites.size() == 0) {
            num0het++;
           /* std::cout << "goodReadPairs[r]->hetSites.size(): " << goodReadPairs[r]->hetSites.size() << std::endl;
            std::cout << "goodReadPairs[r]->read1->readPos: " << goodReadPairs[r]->read1->readPos << std::endl;
            std::cout << "goodReadPairs[r]->read1->readStrand: " << goodReadPairs[r]->read1->readStrand << std::endl;
            std::cout << "goodReadPairs[r]->read1->usedLength: " << goodReadPairs[r]->read1->usedLength << std::endl;
            std::cout << "goodReadPairs[r]->read1->adjustedReadPos: " << goodReadPairs[r]->read1->adjustedReadPos << std::endl;
            std::cout << "goodReadPairs[r]->read1->CIGAR: " << goodReadPairs[r]->read1->CIGAR << std::endl;
            std::cout << "goodReadPairs[r]->read2->readPos: " << goodReadPairs[r]->read2->readPos << std::endl;
            std::cout << "goodReadPairs[r]->read2->readStrand: " << goodReadPairs[r]->read2->readStrand << std::endl;
            std::cout << "goodReadPairs[r]->read2->usedLength: " << goodReadPairs[r]->read2->usedLength << std::endl;
            std::cout << "goodReadPairs[r]->read2->adjustedReadPos: " << goodReadPairs[r]->read2->adjustedReadPos << std::endl;
            std::cout << "goodReadPairs[r]->read2->CIGAR: " << goodReadPairs[r]->read2->CIGAR << std::endl;
            std::cout <<  std::endl;
            //std::cout << "goodReadPairs[r]->read2->readStrand: " << goodReadPairs[r]->read1-> << std::endl; */
        } else if (goodReadPairs[r]->hetSites.size() == 1) {
            num1het++;
        } else {
            num2plusHets++;
            if(goodReadPairs[r]->read1->hetSites.size() >= 1 && goodReadPairs[r]->read2->hetSites.size() >= 1) {
                *goodReadPairsFile << goodReadPairs[r]->read1->readPos << "\t" << goodReadPairs[r]->read2->readPos << std::endl;
            }
        }
        
        /* Just debug
         if (goodReadPairs[r]->read1->CIGAR == "151M" && goodReadPairs[r]->read2->CIGAR == "151M") {
            numFullLenghtReadPairs++;
        } */
        
        totalUsedLength = totalUsedLength + goodReadPairs[r]->read1->usedLength;
        totalUsedLength = totalUsedLength + goodReadPairs[r]->read2->usedLength;
        
    }
    
    std::cout << "goodReadPairs.size(): " << goodReadPairs.size() << std::endl;
    std::cout << "num0het: " << num0het << std::endl;
    std::cout << "num1het: " << num1het << std::endl;
    std::cout << "num2plusHets: " << num2plusHets << std::endl;
    
    if (opt::hapcutFormat) {
        
        for (int r = 0; r < goodReadPairs.size(); r++) {
           for (int i = 0; i < goodReadPairs[r]->hetSites.size(); i++) {
                HetInfo* thisHet = goodReadPairs[r]->hetSites[i];
                if (thisHet->readPhaseBaseMismatch) {
                    /*  std::cout << "Bases don't match" << std::endl;
                      std::cout << "sequence: " << thisRead->readSeq << std::endl;
                      std::cout << "readBase: " << thisRead->readSeq[i-1] << "[" << readBase << "]" << thisRead->readSeq[i+1] << std::endl;
                      std::cout << "readQual[i]: " << thisRead->readQual[i] << "; score: " << int(thisRead->readQual[i])-33 << std::endl;
                      std::cout << "readPos: " << thisRead->readPos << std::endl;
                      std::cout << "i: " << i << std::endl;
                      std::cout << "readPos + i: " << thisRead->readPos + i << std::endl;
                      std::cout << "phasedSNPbases[0]: " << phasedSNPbases[0] << std::endl;
                      std::cout << "phasedSNPbases[1]: " << phasedSNPbases[1] << std::endl; */
                    numMismatch++;
                    mismatchBaseScores.push_back(thisHet->thisBaseQuality);
                } else {
                    // std::cout << "Fine: " << std::endl;
                     matchBaseScores.push_back(thisHet->thisBaseQuality);
                     numMatch++;
                }
            }
            
            // Now consider all HiC pairs i that map to the chromosome and cover a het at each end - lets call the physical locations of the hets x_i, y_i ( x < y) and let Z_i = 1 if they are in phase, 0 if out of phase (recombined)
            
            // Prod_i ((1-Z_i)(G(y_i)-G(x_i)) + Z_i*(1 -(G(y_i)-G(x_i))
            
            
            
            if (goodReadPairs[r]->hetSites.size() > 1) {
                int phaseOfPrevious; int posOfPrevious; bool allConcordant = true;
                if (goodReadPairs[r]->hetSites[0]->thisBase == goodReadPairs[r]->hetSites[0]->thisHetPhase0) phaseOfPrevious = 0;
                if (goodReadPairs[r]->hetSites[0]->thisBase == goodReadPairs[r]->hetSites[0]->thisHetPhase1) phaseOfPrevious = 1;
                for (int i = 1; i < goodReadPairs[r]->hetSites.size(); i++) {
                    int phaseThis;
                    if (goodReadPairs[r]->hetSites[i]->thisBase == goodReadPairs[r]->hetSites[i]->thisHetPhase0) phaseThis = 0;
                    if (goodReadPairs[r]->hetSites[i]->thisBase == goodReadPairs[r]->hetSites[i]->thisHetPhase1) phaseThis = 1;
                    
                    if (phaseThis != phaseOfPrevious) {
                        allConcordant = false;
                        PhaseSwitch* thisSwitch = new PhaseSwitch(goodReadPairs[r]->hetSites[i-1]->pos, goodReadPairs[r]->hetSites[i]->pos, goodReadPairs[r]->hetSites[i-1]->thisPhaseQuality, goodReadPairs[r]->hetSites[i]->thisPhaseQuality);
                        phaseSwitches.push_back(thisSwitch);
                    }
                    posOfPrevious = goodReadPairs[r]->hetSites[i]->pos;
                    phaseOfPrevious = phaseThis;
                }
                if (allConcordant == false) numDiscordant++;
                else numConcordant++;
            }
        }
        std::cout << "numConcordant: " << numConcordant << std::endl;
        std::cout << "numDiscordant: " << numDiscordant << std::endl;
        
        std::cout << "numMatch: " << numMatch << std::endl;
        std::cout << "numMismatch: " << numMismatch << std::endl;
        std::cout << "Mean mismatchBaseScores: " << vector_average(mismatchBaseScores) << std::endl;
        std::cout << "Mean matchBaseScores: " << vector_average(matchBaseScores) << std::endl;
        
        for (int i = 0; i != phaseSwitches.size(); i++) {
            *phaseSwitchFile << phaseSwitches[i]->posLeft << "\t" << phaseSwitches[i]->posRight << "\t" << phaseSwitches[i]->dist << "\t" << phaseSwitches[i]->phaseQualLeft << "\t" << phaseSwitches[i]->phaseQualRight << std::endl;
        }
        
    } else {
        for (int r = 0; r < goodReadPairs.size(); r++) {
            if (goodReadPairs[r]->hetSites.size() > 1) {
                for (int i = 0; i < goodReadPairs[r]->hetSites.size() - 1; i++) {
                    for (int j = 1; j < goodReadPairs[r]->hetSites.size(); j++) {
                        char readBase1 = goodReadPairs[r]->hetSites[i]->thisBase;
                        char readBase2 = goodReadPairs[r]->hetSites[j]->thisBase;
                        int pos1 = goodReadPairs[r]->hetSites[i]->pos;
                        int pos2 = goodReadPairs[r]->hetSites[j]->pos;
                        string pairIndex = numToString(pos1)+"_"+numToString(pos2);
                        if (!SNPpairs.count(pairIndex)) {
                            SNPpairs[pairIndex] = new ReadLinkSNPpair(pos1,pos2,readBase1,readBase2);
                        } else {
                            SNPpairs[pairIndex]->base1.push_back(readBase1);
                            SNPpairs[pairIndex]->base1.push_back(readBase2);
                        }
                    }
                }
            }
        }
        std::cout << "SNPpairs.size(): " << SNPpairs.size() << std::endl;
        std::cout << "numFullLenghtReadPairs: " << numFullLenghtReadPairs << std::endl;
        std::cout << "totalUsedLength: " << totalUsedLength << std::endl;
        std::cout << "totalUsedLength/(goodReadPairs.size()*300): " << (double)totalUsedLength/(double)(goodReadPairs.size()*300) << std::endl;
    }
    
    return 0;
    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2d8, %rsp            # imm = 0x2D8
callq 0xc2ca3
leaq 0x188(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x4c8e0(%rip), %rsi     # 0x10d2e0
leaq 0x120(%rsp), %rdi
leaq 0x198(%rsp), %rdx
callq 0x286de
leaq 0x120(%rsp), %rdi
movl $0x8, %esi
callq 0x53224
movq %rax, %r13
leaq 0x130(%rsp), %rbx
movq -0x10(%rbx), %rdi
cmpq %rbx, %rdi
je 0xc0a4b
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x8480
movl $0x208, %edi            # imm = 0x208
callq 0x8470
movq %rax, %r15
movq 0x4c8c1(%rip), %rsi     # 0x10d320
movq %rax, %rdi
movl $0x8, %edx
callq 0x8860
movl $0x208, %edi            # imm = 0x208
callq 0x8470
movq %rax, %r14
movq 0x4c880(%rip), %rsi     # 0x10d300
movq %rax, %rdi
movl $0x8, %edx
callq 0x8860
movl $0x200, %edi            # imm = 0x200
callq 0x8470
movq %rax, 0x160(%rsp)
leaq 0x28e54(%rip), %rsi     # 0xe98fa
leaq 0x4c893(%rip), %rdx     # 0x10d340
leaq 0x198(%rsp), %rdi
callq 0x77abc
leaq 0x24094(%rip), %rsi     # 0xe4b55
leaq 0x198(%rsp), %rdi
callq 0x88c0
movq %rbx, 0x120(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xc0afa
movq %rdx, 0x120(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x130(%rsp)
jmp 0xc0b02
movupd (%rcx), %xmm0
movupd %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq 0x120(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x160(%rsp), %rdi
movl $0x10, %edx
callq 0x88d0
movq %r14, 0x70(%rsp)
movq 0x120(%rsp), %rdi
cmpq %rbx, %rdi
je 0xc0b55
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x1a8(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0xc0b76
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x8480
movl $0x200, %edi            # imm = 0x200
callq 0x8470
movq %rax, 0x158(%rsp)
leaq 0x28d74(%rip), %rsi     # 0xe9903
leaq 0x4c7aa(%rip), %rdx     # 0x10d340
leaq 0x198(%rsp), %rdi
callq 0x77abc
leaq 0x23fab(%rip), %rsi     # 0xe4b55
leaq 0x198(%rsp), %rdi
callq 0x88c0
movq %rbx, 0x120(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xc0be3
movq %rdx, 0x120(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x130(%rsp)
jmp 0xc0beb
movupd (%rcx), %xmm0
movupd %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq 0x120(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x158(%rsp), %rdi
movl $0x10, %edx
callq 0x88d0
movq 0x120(%rsp), %rdi
cmpq %rbx, %rdi
je 0xc0c39
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x198(%rsp), %rdi
cmpq %r14, %rdi
je 0xc0c56
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x8480
movq %r15, 0x78(%rsp)
leaq 0x1a0(%rsp), %rax
xorl %ecx, %ecx
movl %ecx, (%rax)
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
leaq 0x268(%rsp), %rax
movl %ecx, (%rax)
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
leaq 0x2b0(%rsp), %rax
movl %ecx, (%rax)
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
leaq 0x238(%rsp), %rax
movl %ecx, (%rax)
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq $0x0, 0x168(%rsp)
movq %rcx, 0x20(%rax)
leaq 0x150(%rsp), %rax
movq %rax, -0x30(%rax)
movq $0x1, -0x28(%rax)
xorpd %xmm0, %xmm0
movupd %xmm0, -0x20(%rax)
movl $0x3f800000, -0x10(%rax) # imm = 0x3F800000
movupd %xmm0, -0x8(%rax)
cmpb $0x0, 0x4c65f(%rip)     # 0x10d360
je 0xc0fac
leaq 0x178(%rsp), %r14
leaq 0x50(%rsp), %r15
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %edx
movq %r13, %rdi
movq %r14, %rsi
callq 0x8870
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xc110d
movq 0x178(%rsp), %rax
movzbl (%rax), %ecx
cmpl $0x42, %ecx
je 0xc0d60
cmpl $0x2a, %ecx
jne 0xc0d6a
jmp 0xc0d14
cmpb $0x4c, 0x1(%rax)
je 0xc0f95
movq %r15, %rbx
movq %r15, %rdi
movq %r14, %r12
movq %r14, %rsi
movl $0x9, %edx
callq 0x50624
movq 0x50(%rsp), %r15
movq 0x80(%r15), %rdi
callq 0x86e0
movl %eax, 0xc0(%rsp)
movq 0x20(%r15), %rdi
callq 0x86e0
movl %eax, %r14d
movq 0x40(%r15), %rdi
callq 0x86e0
cmpq $0x1, 0xa8(%r15)
jne 0xc278e
cmpq $0x1, 0xc8(%r15)
jne 0xc2797
movl %eax, %ebp
movq 0xa0(%r15), %rax
movb (%rax), %al
movb %al, 0x80(%rsp)
movq 0xc0(%r15), %rax
movb (%rax), %al
movb %al, 0x10(%rsp)
movq 0x140(%r15), %rsi
leaq 0x1f8(%rsp), %r15
movq %r15, %rdi
leaq 0x30(%rsp), %rdx
callq 0x286de
movq %r15, %rdi
callq 0x5054c
movsd %xmm0, 0x170(%rsp)
movq 0x1f8(%rsp), %rdi
leaq 0x208(%rsp), %rax
cmpq %rax, %rdi
je 0xc0e3a
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x50(%rsp), %rax
movq 0x160(%rax), %rdi
callq 0x86e0
movl %eax, %r15d
xorpd %xmm0, %xmm0
movapd %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
movl %ebp, %eax
xorl $0x1, %eax
orl %r14d, %eax
jne 0xc0e87
movq 0x38(%rsp), %rsi
cmpq 0x40(%rsp), %rsi
je 0xc0eb0
movb 0x80(%rsp), %al
movb %al, (%rsi)
incq 0x38(%rsp)
jmp 0xc0ec2
xorl $0x1, %r14d
orl %ebp, %r14d
jne 0xc0ea9
movq 0x38(%rsp), %rsi
cmpq 0x40(%rsp), %rsi
je 0xc0edb
movb 0x10(%rsp), %al
movb %al, (%rsi)
incq 0x38(%rsp)
jmp 0xc0eea
xorl %ebp, %ebp
jmp 0xc0f68
leaq 0x30(%rsp), %rdi
leaq 0x80(%rsp), %rdx
callq 0x6ed3c
movq 0x38(%rsp), %rsi
cmpq 0x40(%rsp), %rsi
je 0xc0ed4
movb 0x10(%rsp), %al
jmp 0xc0efd
leaq 0x10(%rsp), %rdx
jmp 0xc0f0e
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rdx
callq 0x6ed3c
movq 0x38(%rsp), %rsi
cmpq 0x40(%rsp), %rsi
je 0xc0f06
movb 0x80(%rsp), %al
movb %al, (%rsi)
incq 0x38(%rsp)
jmp 0xc0f18
leaq 0x80(%rsp), %rdx
leaq 0x30(%rsp), %rdi
callq 0x6ed3c
movl $0x30, %edi
callq 0x8470
movq %rax, %r14
movl 0xc0(%rsp), %esi
movq %rax, %rdi
movsd 0x170(%rsp), %xmm0
movl %r15d, %edx
leaq 0x30(%rsp), %rcx
movq 0x168(%rsp), %r8
callq 0xc2fb4
leaq 0x198(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0xc3016
movq %r14, (%rax)
movb $0x1, %bpl
movq %r12, %r14
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
movq %rbx, %r15
je 0xc0f85
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq %r15, %rdi
callq 0x3123c
testb %bpl, %bpl
jmp 0xc0d14
movq 0x168(%rsp), %rax
incl %eax
movq %rax, 0x168(%rsp)
jmp 0xc0d14
leaq 0x178(%rsp), %rbx
leaq 0x50(%rsp), %r14
leaq 0x30(%rsp), %r15
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %edx
movq %r13, %rdi
movq %rbx, %rsi
callq 0x8870
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xc110d
movq %r14, %rdi
movq %rbx, %rsi
movl $0x9, %edx
callq 0x50624
movq 0x50(%rsp), %r12
movq 0x20(%r12), %rdi
callq 0x86e0
movl %eax, 0xc0(%rsp)
cmpq $0x1, 0x48(%r12)
jne 0xc276f
cmpq $0x1, 0x68(%r12)
jne 0xc2766
movq 0x40(%r12), %rax
movb (%rax), %al
movb %al, 0x80(%rsp)
movq 0x60(%r12), %rcx
movb (%rcx), %cl
movb %cl, 0x10(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
movq 0x38(%rsp), %rsi
testq %rsi, %rsi
je 0xc1070
movb %al, (%rsi)
incq 0x38(%rsp)
jmp 0xc1080
movq %r15, %rdi
leaq 0x80(%rsp), %rdx
callq 0x6ed3c
movq 0x38(%rsp), %rsi
cmpq 0x40(%rsp), %rsi
je 0xc1099
movb 0x10(%rsp), %al
movb %al, (%rsi)
incq 0x38(%rsp)
jmp 0xc10a6
movq %r15, %rdi
leaq 0x10(%rsp), %rdx
callq 0x6ed3c
movl $0x30, %edi
callq 0x8470
movq %rax, %rbp
movl 0xc0(%rsp), %esi
xorpd %xmm0, %xmm0
movq %rax, %rdi
xorl %edx, %edx
movq %r15, %rcx
movl $0x1, %r8d
callq 0xc2fb4
leaq 0x198(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0xc3016
movq %rbp, (%rax)
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0xc1100
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq %r14, %rdi
callq 0x3123c
jmp 0xc0fbe
leaq 0x80(%rsp), %rbx
leaq 0x50(%rsp), %r13
leaq 0x30(%rsp), %r15
leaq 0xe0(%rsp), %rbp
movq 0x78(%rsp), %r14
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %edx
movq %r14, %rdi
leaq 0x178(%rsp), %rsi
callq 0x8870
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xc13ae
movq %rbx, %rdi
leaq 0x178(%rsp), %rsi
movl $0x9, %edx
callq 0x50624
movq 0x80(%rsp), %rax
movq 0x88(%rsp), %rcx
subq %rax, %rcx
cmpq $0x100, %rcx            # imm = 0x100
jne 0xc2747
leaq 0x60(%rsp), %rcx
movq %rcx, 0x50(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x2e45c
movq 0x80(%rsp), %r14
movq 0x40(%r14), %rdi
callq 0x86e0
movl %eax, %r12d
movl %eax, 0x100(%rsp)
movq 0x80(%r14), %rdi
callq 0x86e0
movl %eax, 0xa0(%rsp)
xorpd %xmm0, %xmm0
movapd %xmm0, 0x10(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x18(%rsp), %rsi
testq %rsi, %rsi
je 0xc1214
movl %r12d, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
movq 0x78(%rsp), %r14
jmp 0xc122b
leaq 0x10(%rsp), %rdi
leaq 0x100(%rsp), %rdx
callq 0x4bc3a
movq 0x78(%rsp), %r14
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0xc124b
movl 0xa0(%rsp), %eax
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x18(%rsp)
jmp 0xc125d
leaq 0x10(%rsp), %rdi
leaq 0xa0(%rsp), %rdx
callq 0x4bc3a
leaq 0x260(%rsp), %rdi
movq %r13, %rsi
callq 0x49e4c
movq %rax, %rdi
leaq 0x10(%rsp), %rsi
callq 0x33980
movq 0x80(%rsp), %rax
leaq 0x40(%rsp), %rcx
movq %rcx, 0x30(%rsp)
movq 0xa0(%rax), %rsi
movq 0xa8(%rax), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x2e45c
movq 0x80(%rsp), %rax
leaq 0xd0(%rsp), %rcx
movq %rcx, 0xc0(%rsp)
movq 0xc0(%rax), %rsi
movq 0xc8(%rax), %rdx
addq %rsi, %rdx
leaq 0xc0(%rsp), %rdi
callq 0x2e45c
xorpd %xmm0, %xmm0
movapd %xmm0, 0xe0(%rsp)
movq $0x0, 0xf0(%rsp)
movq %rbp, %rdi
movq %r15, %rsi
callq 0x33db0
movq %rbp, %rdi
movq %r15, %rsi
callq 0x33db0
leaq 0x2a8(%rsp), %rdi
movq %r13, %rsi
callq 0x49f44
movq %rax, %rdi
movq %rbp, %rsi
callq 0x32ffe
movq %rbp, %rdi
callq 0x3123c
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0xc1352
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xc136e
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xc1385
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xc13a1
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x8480
movq %rbx, %rdi
callq 0x3123c
jmp 0xc112c
leaq 0x178(%rsp), %r12
leaq 0xc0(%rsp), %r13
leaq 0x290(%rsp), %rbp
xorl %ebx, %ebx
leaq 0x260(%rsp), %r14
movq 0x70(%rsp), %r15
movq (%r15), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %edx
movq %r15, %rdi
movq %r12, %rsi
callq 0x8870
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xc1688
movq %r13, %rdi
movq %r12, %rsi
movl $0x9, %edx
callq 0x50624
movq 0xc0(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x86e0
cmpl $0x7d0, %eax            # imm = 0x7D0
jg 0xc167b
movl $0x150, %edi            # imm = 0x150
callq 0x8470
movq %rax, %r15
movq %rbp, %rdi
movq %r13, %rsi
callq 0x3273a
movq %r15, %rdi
movq %rbp, %rsi
callq 0xc307a
movq %rbp, %rdi
callq 0x3123c
movq %r15, 0x10(%rsp)
addq $0xe8, %r15
leaq 0x218(%rsp), %rdi
movq %r15, %rsi
callq 0x35990
movq 0x218(%rsp), %rdi
movq 0x220(%rsp), %rax
subq %rdi, %rax
je 0xc14c1
sarq $0x2, %rax
cmpq $0x1, %rax
adcq $0x0, %rax
xorpd %xmm0, %xmm0
xorl %ecx, %ecx
xorps %xmm1, %xmm1
cvtsi2sdl (%rdi,%rcx,4), %xmm1
addsd %xmm1, %xmm0
incq %rcx
cmpq %rcx, %rax
jne 0xc14a3
cvttsd2si %xmm0, %r15d
decl %r15d
jmp 0xc14c7
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
testq %rdi, %rdi
je 0xc14dc
movq 0x228(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x10(%rsp), %rdi
addq $0x8, %rdi
leaq 0xf3c4(%rip), %rsi      # 0xd08b0
callq 0x8160
testl %eax, %eax
movq 0x10(%rsp), %rsi
cmovnel %ebx, %r15d
addl 0x48(%rsi), %r15d
movl %r15d, 0x4c(%rsi)
leaq 0x60(%rsp), %rax
movq %rax, 0x50(%rsp)
movq %rbx, 0x58(%rsp)
movb %bl, 0x60(%rsp)
leaq 0x40(%rsp), %rax
movq %rax, 0x30(%rsp)
movq %rbx, 0x38(%rsp)
movb %bl, 0x40(%rsp)
addq $0x28, %rsi
movq %r14, %rdi
callq 0xc3a04
leaq 0x268(%rsp), %rcx
cmpq %rcx, %rax
je 0xc15bc
movq 0x10(%rsp), %rsi
movl 0x90(%rsi), %eax
cmpl 0x4a09c(%rip), %eax     # 0x10b5f0
jle 0xc1643
addq $0x28, %rsi
movq %r14, %rdi
callq 0xc336c
leaq 0x80(%rsp), %rdi
movq %rax, %rsi
callq 0x35990
movq 0x80(%rsp), %rax
cmpl (%rax), %r15d
je 0xc158d
cmpl 0x4(%rax), %r15d
jne 0xc1626
movq 0x10(%rsp), %rsi
addq $0x28, %rsi
leaq 0x230(%rsp), %rdi
callq 0xc33c0
movq 0x8(%rax), %rsi
cmpq 0x10(%rax), %rsi
je 0xc1619
movq 0x10(%rsp), %rcx
movq %rcx, (%rsi)
addq $0x8, 0x8(%rax)
jmp 0xc1626
movl $0x17, %edx
movq 0x49a20(%rip), %rdi     # 0x10afe8
leaq 0x28409(%rip), %rsi     # 0xe99d8
callq 0x84e0
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rsi
movq 0x30(%rax), %rdx
movq 0x49a00(%rip), %rdi     # 0x10afe8
callq 0x84e0
movq %rax, %r15
movq (%rax), %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
jmp 0xc1643
movq %rax, %rdi
leaq 0x10(%rsp), %rdx
callq 0xc3e08
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0xc1643
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xc165f
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xc167b
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x8480
movq %r13, %rdi
callq 0x3123c
jmp 0xc13d0
xorpd %xmm0, %xmm0
leaq 0x10(%rsp), %rdi
movapd %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
movq 0x258(%rsp), %rsi
callq 0xc343c
movq 0x248(%rsp), %rbx
leaq 0x238(%rsp), %rax
cmpq %rax, %rbx
je 0xc1759
leaq 0x10(%rsp), %r14
leaq 0x50(%rsp), %r15
movq 0x48(%rbx), %rax
subq 0x40(%rbx), %rax
cmpq $0x10, %rax
jne 0xc173d
movl $0x30, %edi
callq 0x8470
movq 0x40(%rbx), %rcx
movq (%rcx), %rdx
movq 0x8(%rcx), %rcx
xorpd %xmm0, %xmm0
movupd %xmm0, 0x18(%rax)
movq $0x0, 0x28(%rax)
cmpq %rcx, %rdx
movq %rcx, %rsi
cmovbq %rdx, %rsi
cmovbq %rcx, %rdx
movq %rsi, (%rax)
movq %rdx, 0x8(%rax)
movq %rax, 0x50(%rsp)
movq 0x18(%rsp), %rsi
cmpq 0x20(%rsp), %rsi
je 0xc1732
movq %rax, (%rsi)
addq $0x8, 0x18(%rsp)
jmp 0xc173d
movq %r14, %rdi
movq %r15, %rdx
callq 0xc3f60
movq %rbx, %rdi
callq 0x8310
movq %rax, %rbx
leaq 0x238(%rsp), %rax
cmpq %rax, %rbx
jne 0xc16cd
movq 0x10(%rsp), %rbx
movq 0x18(%rsp), %r14
cmpq %r14, %rbx
je 0xc1795
movq %r14, %rax
subq %rbx, %rax
sarq $0x3, %rax
bsrq %rax, %rdx
xorl $0x3f, %edx
addl %edx, %edx
xorq $0x7e, %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0xc407f
movq %rbx, %rdi
movq %r14, %rsi
callq 0xc4168
xorpd %xmm0, %xmm0
movapd %xmm0, 0xe0(%rsp)
xorl %eax, %eax
movq %rax, 0xf0(%rsp)
movq %rax, 0x110(%rsp)
movapd %xmm0, 0x100(%rsp)
movq $0x0, 0x70(%rsp)
movq %rax, 0xb0(%rsp)
movapd %xmm0, 0xa0(%rsp)
movq 0x10(%rsp), %rax
movl $0x0, %r14d
movl $0x0, %ebx
movl $0x0, %ebp
cmpq %rax, 0x18(%rsp)
je 0xc1931
xorl %r12d, %r12d
leaq 0x198(%rsp), %r15
xorl %ebp, %ebp
xorl %ebx, %ebx
xorl %r14d, %r14d
movq $0x0, 0x70(%rsp)
movq (%rax,%r12,8), %rdi
movq %r15, %rsi
callq 0xc5cf6
movq 0x10(%rsp), %rax
movq (%rax,%r12,8), %rdi
movl 0x49dc7(%rip), %esi     # 0x10b5f4
callq 0xc5d86
movq 0x10(%rsp), %rax
movq (%rax,%r12,8), %rax
movq 0x20(%rax), %rcx
subq 0x18(%rax), %rcx
sarq $0x3, %rcx
cmpq $0x1, %rcx
je 0xc185a
testq %rcx, %rcx
jne 0xc1861
incl %r14d
jmp 0xc18f3
incl %ebx
jmp 0xc18f3
incl %ebp
movq (%rax), %rcx
movq 0x110(%rcx), %rdx
cmpq 0x108(%rcx), %rdx
je 0xc18f3
movq 0x8(%rax), %rax
movq 0x110(%rax), %rdx
cmpq 0x108(%rax), %rdx
je 0xc18f3
movl 0x48(%rcx), %esi
movq 0x158(%rsp), %rdi
callq 0x8810
movq %rax, %r13
movl $0x1, %edx
movq %rax, %rdi
leaq 0x103d2(%rip), %rsi     # 0xd1c7e
callq 0x84e0
movq 0x10(%rsp), %rax
movq (%rax,%r12,8), %rax
movq 0x8(%rax), %rax
movl 0x48(%rax), %esi
movq %r13, %rdi
callq 0x8810
movq %rax, %r13
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %r13, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
movq (%rax,%r12,8), %rdx
movq (%rdx), %rsi
movq 0x8(%rdx), %rdx
movq 0x70(%rsp), %rdi
addl 0x100(%rsi), %edi
addl 0x100(%rdx), %edi
movq %rdi, 0x70(%rsp)
incq %r12
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r12, %rcx
ja 0xc1812
movq 0x49680(%rip), %rdi     # 0x10afb8
leaq 0x280b1(%rip), %rsi     # 0xe99f0
movl $0x16, %edx
callq 0x84e0
movq 0x18(%rsp), %rsi
subq 0x10(%rsp), %rsi
sarq $0x3, %rsi
movq 0x4965a(%rip), %rdi     # 0x10afb8
callq 0x82f0
movq %rax, %r15
movq (%rax), %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 0x49624(%rip), %rdi     # 0x10afb8
leaq 0x2806c(%rip), %rsi     # 0xe9a07
movl $0x9, %edx
callq 0x84e0
movq 0x4960c(%rip), %rdi     # 0x10afb8
movl %r14d, %esi
callq 0x8810
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %r14, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
movq 0x495d3(%rip), %rdi     # 0x10afb8
leaq 0x28025(%rip), %rsi     # 0xe9a11
movl $0x9, %edx
callq 0x84e0
movq 0x495bb(%rip), %rdi     # 0x10afb8
movl %ebx, %esi
callq 0x8810
movq %rax, %rbx
movq (%rax), %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
movq 0x49583(%rip), %rdi     # 0x10afb8
leaq 0x27fdf(%rip), %rsi     # 0xe9a1b
movl $0xe, %edx
callq 0x84e0
movq 0x4956b(%rip), %rdi     # 0x10afb8
movl %ebp, %esi
callq 0x8810
movq %rax, %rbx
movq (%rax), %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
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
cmpb $0x0, 0x4b8d1(%rip)     # 0x10d360
je 0xc1cfa
cmpq %rax, %rcx
je 0xc2209
xorl %ebx, %ebx
xorl %ebp, %ebp
xorl %r14d, %r14d
movl $0x0, 0x70(%rsp)
movl $0x0, 0x78(%rsp)
movq 0x10(%rsp), %rax
movq (%rax,%rbx,8), %rcx
movq 0x18(%rcx), %rax
movq 0x20(%rcx), %rcx
subq %rax, %rcx
je 0xc1b91
xorl %r13d, %r13d
movq (%rax,%r13,8), %rax
cmpb $0x1, 0x24(%rax)
jne 0xc1b0e
xorps %xmm0, %xmm0
cvtsi2sdl 0xc(%rax), %xmm0
movsd %xmm0, 0x50(%rsp)
movq 0x108(%rsp), %rsi
cmpq 0x110(%rsp), %rsi
je 0xc1b40
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0x108(%rsp)
jmp 0xc1b52
xorps %xmm0, %xmm0
cvtsi2sdl 0xc(%rax), %xmm0
movsd %xmm0, 0x50(%rsp)
movq 0xe8(%rsp), %rsi
cmpq 0xf0(%rsp), %rsi
je 0xc1b56
movsd %xmm0, (%rsi)
addq $0x8, %rsi
movq %rsi, 0xe8(%rsp)
jmp 0xc1b68
leaq 0x100(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x33c70
incl %ebp
jmp 0xc1b6b
leaq 0xe0(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x33c70
incl %r14d
incq %r13
movq 0x10(%rsp), %rax
movq (%rax,%rbx,8), %rcx
movq 0x18(%rcx), %rax
movq 0x20(%rcx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r13, %rcx
ja 0xc1ad2
jmp 0xc1b95
sarq $0x3, %rcx
cmpq $0x1, %rcx
jbe 0xc1cdb
movq (%rax), %rax
movb 0x8(%rax), %cl
cmpb 0x10(%rax), %cl
movl $0x0, %edx
cmovel %edx, %r12d
cmpb 0x11(%rax), %cl
movl $0x1, %eax
cmovel %eax, %r12d
movq 0x10(%rsp), %rdx
movq (%rdx,%rbx,8), %rax
movq 0x18(%rax), %rcx
movq 0x20(%rax), %rsi
subq %rcx, %rsi
movb $0x1, %al
cmpq $0x9, %rsi
jb 0xc1ccb
movl %ebp, 0x170(%rsp)
leaq (%rdx,%rbx,8), %rbp
movb $0x1, %al
movl $0x1, %r13d
movq (%rcx,%r13,8), %rdx
movb 0x8(%rdx), %sil
xorl %ecx, %ecx
cmpb 0x10(%rdx), %sil
je 0xc1c03
movl %r15d, %ecx
movl $0x1, %r15d
cmpb 0x11(%rdx), %sil
je 0xc1c12
movl %ecx, %r15d
cmpl %r12d, %r15d
je 0xc1c94
movl $0x20, %edi
callq 0x8470
movq (%rbp), %rcx
movq 0x18(%rcx), %rcx
movq -0x8(%rcx,%r13,8), %rdx
movq (%rcx,%r13,8), %rcx
movl (%rdx), %esi
movl (%rcx), %edi
movsd 0x18(%rdx), %xmm0
movsd 0x18(%rcx), %xmm1
movl %esi, (%rax)
movl %edi, 0x4(%rax)
movsd %xmm0, 0x8(%rax)
movsd %xmm1, 0x10(%rax)
subl %esi, %edi
movl %edi, %ecx
negl %ecx
cmovsl %edi, %ecx
movl %ecx, 0x18(%rax)
movq %rax, 0x50(%rsp)
movq 0xa8(%rsp), %rsi
cmpq 0xb0(%rsp), %rsi
je 0xc1c80
movq %rax, (%rsi)
addq $0x8, 0xa8(%rsp)
jmp 0xc1c92
leaq 0xa0(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0xc43fe
xorl %eax, %eax
incq %r13
movq 0x10(%rsp), %rcx
leaq (%rcx,%rbx,8), %rbp
movq (%rbp), %rdx
movq 0x18(%rdx), %rcx
movq 0x20(%rdx), %rdx
subq %rcx, %rdx
sarq $0x3, %rdx
movl %r15d, %r12d
cmpq %r13, %rdx
ja 0xc1bf0
andb $0x1, %al
movl %r15d, %r12d
movl 0x170(%rsp), %ebp
movzbl %al, %eax
addl %eax, 0x78(%rsp)
xorb $0x1, %al
movzbl %al, %eax
addl %eax, 0x70(%rsp)
incq %rbx
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
sarq $0x3, %rax
cmpq %rbx, %rax
ja 0xc1ab5
jmp 0xc221e
cmpq %rax, %rcx
je 0xc207d
xorl %r15d, %r15d
leaq 0xc0(%rsp), %r12
movq (%rax,%r15,8), %rax
movq 0x20(%rax), %rcx
subq 0x18(%rax), %rcx
cmpq $0x9, %rcx
jb 0xc2060
movq 0x10(%rsp), %rax
movq (%rax,%r15,8), %rax
movq 0x20(%rax), %rcx
subq 0x18(%rax), %rcx
cmpq $0x8, %rcx
je 0xc2060
movq $0x0, 0x78(%rsp)
movq 0x10(%rsp), %rax
movq (%rax,%r15,8), %rcx
movq 0x18(%rcx), %rax
movq 0x20(%rcx), %rcx
subq %rax, %rcx
cmpq $0x9, %rcx
jb 0xc2032
movl $0x1, %ebp
movq 0x78(%rsp), %rcx
movq (%rax,%rcx,8), %rcx
movb 0x8(%rcx), %dl
movb %dl, 0xf(%rsp)
movq (%rax,%rbp,8), %rax
movb 0x8(%rax), %dl
movb %dl, 0xe(%rsp)
movl (%rcx), %r13d
movl (%rax), %r14d
movq %r12, %rdi
movl %r13d, %esi
callq 0x31297
movq %r12, %rbx
movq %r12, %rdi
leaq 0x19798(%rip), %rsi     # 0xdb53c
callq 0x88c0
leaq 0x40(%rsp), %rsi
movq %rsi, 0x30(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0xc1dd1
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0xc1dd9
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)
leaq 0x80(%rsp), %rdi
movl %r14d, %esi
callq 0x31297
movq 0x30(%rsp), %rcx
movl $0xf, %esi
leaq 0x40(%rsp), %rax
cmpq %rax, %rcx
je 0xc1e1a
movq 0x40(%rsp), %rsi
movq 0x38(%rsp), %r8
movq 0x88(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0xc1e54
movl $0xf, %esi
leaq 0x90(%rsp), %rdi
cmpq %rdi, 0x80(%rsp)
je 0xc1e4f
movq 0x90(%rsp), %rsi
cmpq %rsi, %rax
jbe 0xc1e68
movq 0x80(%rsp), %rsi
leaq 0x30(%rsp), %rdi
callq 0x8180
jmp 0xc1e79
leaq 0x80(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x84d0
leaq 0x60(%rsp), %rsi
movq %rsi, 0x50(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0xc1e9e
movq %rdx, 0x50(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x60(%rsp)
jmp 0xc1ea6
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x58(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0xc1ee8
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xc1f04
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0xc1f29
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x120(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0xc453a
testq %rax, %rax
je 0xc1f6b
leaq 0x120(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0xc4636
movq (%rax), %rdi
movq 0x10(%rdi), %rsi
cmpq 0x18(%rdi), %rsi
je 0xc1fa8
movb 0xf(%rsp), %al
movb %al, (%rsi)
incq 0x10(%rdi)
jmp 0xc1fb6
movl $0x38, %edi
callq 0x8470
movq %rax, %r12
movsbl 0xf(%rsp), %ecx
movsbl 0xe(%rsp), %r8d
movq %rax, %rdi
movl %r13d, %esi
movl %r14d, %edx
callq 0xc34d2
leaq 0x120(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0xc4636
movq %r12, (%rax)
jmp 0xc1fef
addq $0x8, %rdi
leaq 0xf(%rsp), %rdx
callq 0x6ed3c
leaq 0x120(%rsp), %rdi
leaq 0x50(%rsp), %rsi
callq 0xc4636
movq (%rax), %rdi
movq 0x10(%rdi), %rsi
cmpq 0x18(%rdi), %rsi
je 0xc1fe1
movb 0xe(%rsp), %al
movb %al, (%rsi)
incq 0x10(%rdi)
jmp 0xc1fef
addq $0x8, %rdi
leaq 0xe(%rsp), %rdx
callq 0x6ed3c
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xc200b
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x8480
incq %rbp
movq 0x10(%rsp), %rax
movq (%rax,%r15,8), %rcx
movq 0x18(%rcx), %rax
movq 0x20(%rcx), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rbp, %rcx
movq %rbx, %r12
ja 0xc1d6b
movq 0x10(%rsp), %rax
movq (%rax,%r15,8), %rax
movq 0x20(%rax), %rcx
subq 0x18(%rax), %rcx
movq 0x78(%rsp), %rdx
incq %rdx
sarq $0x3, %rcx
decq %rcx
movq %rdx, 0x78(%rsp)
cmpq %rdx, %rcx
ja 0xc1d48
incq %r15
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %r15, %rcx
ja 0xc1d0e
movq 0x48f34(%rip), %rdi     # 0x10afb8
leaq 0x27a09(%rip), %rsi     # 0xe9a94
movl $0x11, %edx
callq 0x84e0
movq 0x138(%rsp), %rsi
movq 0x48f14(%rip), %rdi     # 0x10afb8
callq 0x82f0
movq %rax, %rbx
movq (%rax), %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
movq 0x48ede(%rip), %rdi     # 0x10afb8
leaq 0x279c5(%rip), %rsi     # 0xe9aa6
movl $0x18, %edx
callq 0x84e0
movq 0x48ec6(%rip), %rdi     # 0x10afb8
xorl %esi, %esi
callq 0x8810
movq %rax, %rbx
movq (%rax), %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
movq 0x48e8e(%rip), %rdi     # 0x10afb8
leaq 0x2798e(%rip), %rsi     # 0xe9abf
movl $0x11, %edx
callq 0x84e0
movq 0x48e76(%rip), %rdi     # 0x10afb8
movq 0x70(%rsp), %rsi
callq 0x8810
movq %rax, %rbx
movq (%rax), %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
movq 0x48e3b(%rip), %rdi     # 0x10afb8
leaq 0x2794d(%rip), %rsi     # 0xe9ad1
movl $0x2c, %edx
callq 0x84e0
cvtsi2sdl 0x70(%rsp), %xmm0
movq 0x18(%rsp), %rax
subq 0x10(%rsp), %rax
sarq $0x3, %rax
imulq $0x12c, %rax, %rax      # imm = 0x12C
movq %rax, %xmm1
punpckldq 0x7fea(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x7ff2(%rip), %xmm1     # 0xca1b0
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movq 0x48de3(%rip), %rdi     # 0x10afb8
callq 0x8730
movq %rax, %rbx
movq (%rax), %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
jmp 0xc265f
movl $0x0, 0x78(%rsp)
movl $0x0, 0x70(%rsp)
xorl %r14d, %r14d
xorl %ebp, %ebp
movq 0x48d93(%rip), %rdi     # 0x10afb8
leaq 0x277fe(%rip), %rsi     # 0xe9a2a
movl $0xf, %edx
callq 0x84e0
movq 0x48d7b(%rip), %rdi     # 0x10afb8
movl 0x78(%rsp), %esi
callq 0x8810
movq %rax, %rbx
movq (%rax), %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
movq 0x48d41(%rip), %rdi     # 0x10afb8
leaq 0x277bc(%rip), %rsi     # 0xe9a3a
movl $0xf, %edx
callq 0x84e0
movq 0x48d29(%rip), %rdi     # 0x10afb8
movl 0x70(%rsp), %esi
callq 0x8810
movq %rax, %rbx
movq (%rax), %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
movq 0x48cef(%rip), %rdi     # 0x10afb8
leaq 0x2777a(%rip), %rsi     # 0xe9a4a
movl $0xa, %edx
callq 0x84e0
movq 0x48cd7(%rip), %rdi     # 0x10afb8
movl %r14d, %esi
callq 0x8810
movq %rax, %rbx
movq (%rax), %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
movq 0x48c9e(%rip), %rdi     # 0x10afb8
leaq 0x27734(%rip), %rsi     # 0xe9a55
movl $0xd, %edx
callq 0x84e0
movq 0x48c86(%rip), %rdi     # 0x10afb8
movl %ebp, %esi
callq 0x8810
movq %rax, %rbx
movq (%rax), %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
movq 0x48c4e(%rip), %rdi     # 0x10afb8
leaq 0x276f2(%rip), %rsi     # 0xe9a63
movl $0x19, %edx
callq 0x84e0
leaq 0x1e0(%rsp), %rdi
leaq 0x100(%rsp), %rsi
callq 0x3a864
movq 0x1e0(%rsp), %rcx
movq 0x1e8(%rsp), %rdx
movq %rdx, %rax
subq %rcx, %rax
sarq $0x3, %rax
cmpq %rcx, %rdx
je 0xc23cf
cmpq $0x1, %rax
movq %rax, %rdx
adcq $0x0, %rdx
xorpd %xmm0, %xmm0
xorl %esi, %esi
addsd (%rcx,%rsi,8), %xmm0
incq %rsi
cmpq %rsi, %rdx
jne 0xc23c0
jmp 0xc23d3
xorpd %xmm0, %xmm0
movq %rax, %xmm1
punpckldq 0x7dc0(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x7dc8(%rip), %xmm1     # 0xca1b0
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movq 0x48bb9(%rip), %rdi     # 0x10afb8
callq 0x8730
movq %rax, %rbx
movq (%rax), %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
movq 0x1e0(%rsp), %rdi
testq %rdi, %rdi
je 0xc244b
movq 0x1f0(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x48b66(%rip), %rdi     # 0x10afb8
leaq 0x27624(%rip), %rsi     # 0xe9a7d
movl $0x16, %edx
callq 0x84e0
leaq 0x1c8(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0x3a864
movq 0x1c8(%rsp), %rcx
movq 0x1d0(%rsp), %rdx
movq %rdx, %rax
subq %rcx, %rax
sarq $0x3, %rax
cmpq %rcx, %rdx
je 0xc24b7
cmpq $0x1, %rax
movq %rax, %rdx
adcq $0x0, %rdx
xorpd %xmm0, %xmm0
xorl %esi, %esi
addsd (%rcx,%rsi,8), %xmm0
incq %rsi
cmpq %rsi, %rdx
jne 0xc24a8
jmp 0xc24bb
xorpd %xmm0, %xmm0
movq %rax, %xmm1
punpckldq 0x7cd8(%rip), %xmm1 # xmm1 = xmm1[0],mem[0],xmm1[1],mem[1]
subpd 0x7ce0(%rip), %xmm1     # 0xca1b0
movapd %xmm1, %xmm2
unpckhpd %xmm1, %xmm2            # xmm2 = xmm2[1],xmm1[1]
addsd %xmm1, %xmm2
divsd %xmm2, %xmm0
movq 0x48ad1(%rip), %rdi     # 0x10afb8
callq 0x8730
movq %rax, %rbx
movq (%rax), %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
movq 0x1c8(%rsp), %rdi
testq %rdi, %rdi
je 0xc2533
movq 0x1d8(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0xa0(%rsp), %rax
cmpq %rax, 0xa8(%rsp)
je 0xc265f
xorl %r15d, %r15d
leaq 0xf72b(%rip), %rbx      # 0xd1c7e
movq (%rax,%r15,8), %rax
movl (%rax), %esi
movq 0x160(%rsp), %rdi
callq 0x8810
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x84e0
movq 0xa0(%rsp), %rax
movq (%rax,%r15,8), %rax
movl 0x4(%rax), %esi
movq %r14, %rdi
callq 0x8810
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x84e0
movq 0xa0(%rsp), %rax
movq (%rax,%r15,8), %rax
movl 0x18(%rax), %esi
movq %r14, %rdi
callq 0x8810
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x84e0
movq 0xa0(%rsp), %rax
movq (%rax,%r15,8), %rax
movsd 0x8(%rax), %xmm0
movq %r14, %rdi
callq 0x8730
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x84e0
movq 0xa0(%rsp), %rax
movq (%rax,%r15,8), %rax
movsd 0x10(%rax), %xmm0
movq %r14, %rdi
callq 0x8730
movq %rax, %r14
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %r14, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
incq %r15
movq 0xa0(%rsp), %rax
movq 0xa8(%rsp), %rcx
subq %rax, %rcx
sarq $0x3, %rcx
cmpq %rcx, %r15
jne 0xc2553
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0xc267c
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0xc2699
movq 0x110(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0xc26b6
movq 0xf0(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xc26cd
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
leaq 0x120(%rsp), %rdi
callq 0xc3680
leaq 0x230(%rsp), %rdi
callq 0xc371e
leaq 0x2a8(%rsp), %rdi
callq 0x3f522
leaq 0x260(%rsp), %rdi
callq 0x4bbaa
leaq 0x198(%rsp), %rdi
callq 0xc37ae
movq 0x178(%rsp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0xc2733
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x8480
xorl %eax, %eax
addq $0x2d8, %rsp            # imm = 0x2D8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x26f8a(%rip), %rdi     # 0xe96d8
leaq 0x271de(%rip), %rsi     # 0xe9933
leaq 0x271f3(%rip), %rcx     # 0xe994f
movl $0x8f, %edx
callq 0x82c0
leaq 0x27249(%rip), %rdi     # 0xe99b6
jmp 0xc2776
leaq 0x2721e(%rip), %rdi     # 0xe9994
leaq 0x271b6(%rip), %rsi     # 0xe9933
leaq 0x271cb(%rip), %rcx     # 0xe994f
movl $0x7d, %edx
callq 0x82c0
leaq 0x2717c(%rip), %rdi     # 0xe9911
jmp 0xc279e
leaq 0x271d4(%rip), %rdi     # 0xe9972
leaq 0x2718e(%rip), %rsi     # 0xe9933
leaq 0x271a3(%rip), %rcx     # 0xe994f
movl $0x68, %edx
callq 0x82c0
movq %rax, %r13
movq 0x120(%rsp), %rdi
cmpq %rbx, %rdi
je 0xc27db
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xc27db
movq %rax, %r13
movq 0x198(%rsp), %rdi
cmpq %r14, %rdi
je 0xc27fd
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xc27fd
movq %rax, %r13
movl $0x200, %esi            # imm = 0x200
movq 0x158(%rsp), %rdi
jmp 0xc28b1
jmp 0xc28bb
movq %rax, %r13
movq 0x120(%rsp), %rdi
cmpq %rbx, %rdi
je 0xc2839
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xc2839
movq %rax, %r13
leaq 0x1a8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc285f
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xc285f
movq %rax, %r13
movl $0x200, %esi            # imm = 0x200
movq 0x160(%rsp), %rdi
jmp 0xc28b1
jmp 0xc28bb
movq %rax, %r13
movl $0x208, %esi            # imm = 0x208
movq %r14, %rdi
jmp 0xc28b1
jmp 0xc28bb
movq %rax, %r13
movl $0x208, %esi            # imm = 0x208
movq %r15, %rdi
jmp 0xc28b1
jmp 0xc28bb
movq %rax, %r13
leaq 0x130(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xc2c76
movq 0x130(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xc2c76
movq %rax, %r13
jmp 0xc2c76
movq %rax, %r13
movq 0x1c8(%rsp), %rdi
testq %rdi, %rdi
je 0xc2bc7
movq 0x1d8(%rsp), %rsi
jmp 0xc28fd
movq %rax, %r13
movq 0x1e0(%rsp), %rdi
testq %rdi, %rdi
je 0xc2bc7
movq 0x1f0(%rsp), %rsi
subq %rdi, %rsi
jmp 0xc2bc2
jmp 0xc294c
movq %rax, %r13
movq 0x80(%rsp), %rdi
testq %rdi, %rdi
je 0xc2a2b
movq 0x90(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
jmp 0xc2a2b
jmp 0xc29f1
jmp 0xc2a28
movq %rax, %r13
movl $0x30, %esi
movq %r14, %rdi
jmp 0xc29c4
jmp 0xc29f1
movq %rax, %r13
jmp 0xc2c1e
movq %rax, %r13
movq 0x1f8(%rsp), %rdi
leaq 0x208(%rsp), %rax
cmpq %rax, %rdi
je 0xc2a0b
movq 0x208(%rsp), %rsi
incq %rsi
jmp 0xc2a06
movq %rax, %r13
jmp 0xc2a0b
jmp 0xc2a7c
jmp 0xc29b1
movq %rax, %r13
leaq 0x290(%rsp), %rdi
callq 0x3123c
jmp 0xc29a4
movq %rax, %r13
movl $0x150, %esi            # imm = 0x150
movq %r15, %rdi
jmp 0xc2a5e
movq %rax, %r13
jmp 0xc2a63
movq %rax, %r13
movl $0x30, %esi
movq %rbp, %rdi
callq 0x8480
jmp 0xc29f4
jmp 0xc2a7c
jmp 0xc29f1
jmp 0xc2a7c
movq %rax, %r13
jmp 0xc2ac3
jmp 0xc2a84
movq %rax, %r13
jmp 0xc2b12
jmp 0xc2a7c
movq %rax, %r13
movq 0x30(%rsp), %rdi
testq %rdi, %rdi
je 0xc2a0b
movq 0x40(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
leaq 0x50(%rsp), %rdi
jmp 0xc2b1a
jmp 0xc2a7c
jmp 0xc2a7c
jmp 0xc2b65
jmp 0xc2b65
jmp 0xc2b65
movq %rax, %r13
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xc2a47
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xc2a63
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0xc0(%rsp), %rdi
jmp 0xc2b1a
jmp 0xc2b65
jmp 0xc2b65
jmp 0xc2a7c
movq %rax, %r13
jmp 0xc2c35
movq %rax, %r13
jmp 0xc2adf
jmp 0xc2b65
movq %rax, %r13
leaq 0xe0(%rsp), %rdi
callq 0x3123c
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0xc2ac3
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xc2adf
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xc2af6
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xc2b12
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x80(%rsp), %rdi
callq 0x3123c
jmp 0xc2c35
movq %rax, %r13
movl $0x38, %esi
movq %r12, %rdi
callq 0x8480
jmp 0xc2bab
movq %rax, %r13
jmp 0xc2b89
movq %rax, %r13
movq 0x80(%rsp), %rdi
leaq 0x90(%rsp), %rax
cmpq %rax, %rdi
je 0xc2b6d
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0xc2b6d
movq %rax, %r13
jmp 0xc2bc7
movq %rax, %r13
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0xc2b89
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0xc2bc7
movq 0xd0(%rsp), %rsi
jmp 0xc2bbf
movq %rax, %r13
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0xc2bc7
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0xa0(%rsp), %rdi
testq %rdi, %rdi
je 0xc2be4
movq 0xb0(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x100(%rsp), %rdi
testq %rdi, %rdi
je 0xc2c01
movq 0x110(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0xe0(%rsp), %rdi
testq %rdi, %rdi
je 0xc2c1e
movq 0xf0(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x10(%rsp), %rdi
testq %rdi, %rdi
je 0xc2c35
movq 0x20(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
leaq 0x120(%rsp), %rdi
callq 0xc3680
leaq 0x230(%rsp), %rdi
callq 0xc371e
leaq 0x2a8(%rsp), %rdi
callq 0x3f522
leaq 0x260(%rsp), %rdi
callq 0x4bbaa
leaq 0x198(%rsp), %rdi
callq 0xc37ae
movq 0x178(%rsp), %rdi
leaq 0x188(%rsp), %rax
cmpq %rax, %rdi
je 0xc2c9b
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x8480
movq %r13, %rdi
callq 0x8840