// File: /workspace/github_cpp_makefile_star2_O3/millanek[P]evo/evo_diversity_subsampling.cpp
// Function: subsamplingDxy(int, char**)
int subsamplingDxy(int argc, char** argv) {
    parseSubsamplingDxyOptions(argc, argv);
    
    // Load up the intervals file
    std::ifstream* bedFile = new std::ifstream(opt::bedFile.c_str());
    std::map<int, string> linearToGenomeMap;
    std::cerr << "Loading coordinates from the bed file " << opt::bedFile << std::endl;
    LinkedCoordsBed coords;
    if (!opt::bElements) {
        SimpleCoordsBed simpleCoords(bedFile, linearToGenomeMap);
    } else {
        coords = LinkedCoordsBed(bedFile);
    }
    std::cerr << "Done" << std::endl;
    
    // Load up the VCF file:
    std::istream* vcfFile = createReader(opt::vcfFile.c_str());
    string line; std::unordered_map<string, Counts> vcfCountsMap;
    std::unordered_map<string, double> vcfDxyMap;
    std::unordered_map<string, double> vcfInbreedingPvalMap;
    
    std::cerr << "Loading variants from the VCF file " << opt::vcfFile << std::endl;
    double totalDxySum = 0;
    while (getline(*vcfFile, line)) {
        if (line[0] == '#' && line[1] == '#') {
        
        } else if (line[0] == '#' && line[1] == 'C') {
        
        } else {
            // totalVariantNumber++;
            //std::cerr << "Variant N:" << totalVariantNumber << std::endl;
            std::vector<std::string> fields = split(line, '\t');
            string scaffold = fields[0]; string pos = fields[1];
            Counts* counts = new Counts();
            getThisVariantCountsSimple(fields, counts);
            counts->inbreedingCoefficient = calculateInbreedingCoefficient(counts->individualsWithVariant);
            counts->chiSqPvalForInbreeding = calculateChiSqPvalForInbreeding(counts->individualsWithVariant);
            if (counts->inbreedingCoefficient < 0 && counts->chiSqPvalForInbreeding < 0.05) {
                std::cerr << "filtering out:" << std::endl;
                std::cerr << scaffold+"\t"+pos << std::endl;
                std::cerr << "counts.chiSqPvalForInbreeding: " << counts->chiSqPvalForInbreeding << std::endl;
                std::cerr << "counts.inbreedingCoefficient: " << counts->inbreedingCoefficient << std::endl;
                std::cerr << std::endl;
            } else {
                vcfCountsMap[scaffold+"\t"+pos] = *counts;
                double thisVariantDxy = calculateOverallDxy(*counts);
                totalDxySum = totalDxySum + thisVariantDxy;
                vcfDxyMap[scaffold+"\t"+pos] = thisVariantDxy;
            }
            delete counts;
        }
    }
    std::cerr << "Done" << std::endl;
    
    if (!opt::bElements) {
        int totalIntervalsLength = (int)linearToGenomeMap.size();
        std::cout << "Average Dxy = " << totalDxySum/totalIntervalsLength << std::endl;
        // Prepare the output file for subsamples of Dxy values
        size_t suffixPos = opt::bedFile.find_last_of('.');
        string outDxyFileName;
        if (suffixPos != std::string::npos) {
            outDxyFileName = opt::outFolder + stripExtension(opt::bedFile) + "_DxyVals_l" + numToString(opt::subsampleLength) + ".txt";
        } else {
            outDxyFileName = opt::outFolder + opt::bedFile + "_DxyVals_l" + numToString(opt::subsampleLength) + ".txt";
        }
        //std::cerr << "into: " << AAFileName << std::endl;
        std::ofstream* outDxyFile = new std::ofstream(outDxyFileName.c_str());
        
        
        // Subsampling:
        int numSubsamplesToDo = totalIntervalsLength/opt::subsampleLength;
        std::mt19937_64 rng; // random number generator
        rng.seed();
        std::uniform_int_distribution<int> distribution(0,totalIntervalsLength);
        std::cerr << "Now running subsamples to be written into: " << outDxyFileName << std::endl;
        for (int i = 0; i < numSubsamplesToDo; i++) {
            if (i % 10000 == 0) {
                std::cerr << "Subsample " << i << " out of " << numSubsamplesToDo << std::endl;
            }
            double subsampleDxyTotal = 0;
            for (int j = 0; j < opt::subsampleLength; j++) {
                int linearIndex = distribution(rng);
                string genomeLocation = linearToGenomeMap[linearIndex];
                if (vcfDxyMap.count(genomeLocation) == 1) {
                    subsampleDxyTotal = subsampleDxyTotal + vcfDxyMap[genomeLocation];
                }
            }
            *outDxyFile << subsampleDxyTotal/opt::subsampleLength << std::endl;
        }
    } else {
        string outDxyFileName;
        size_t suffixPos = opt::bedFile.find_last_of('.');
        if (suffixPos != std::string::npos) {
            outDxyFileName = opt::outFolder + stripExtension(opt::bedFile) + "_DxyVals_perElement.txt";
        } else {
            outDxyFileName = opt::outFolder + opt::bedFile + "_DxyVals_perElement.txt";
        } std::ofstream* outDxyFile = new std::ofstream(outDxyFileName.c_str());
        
        std::cerr << "Now calculating Dxy values per element to be written out into: " << outDxyFileName << std::endl;
        std::vector<double> elementDxyValues = coords.getMeanPerElement(vcfDxyMap);
        std::cerr << "Calculations done" << std::endl;
        std::vector<string> elementNames = coords.getElementNames();
        std::vector<std::vector<string> > elementOuterBounds = coords.getElementOuterBoundaries();
        for (int i = 0; i < (int)elementDxyValues.size(); i++) {
            *outDxyFile << elementOuterBounds[i][0] << "\t" << elementOuterBounds[i][1] << "\t" << elementOuterBounds[i][2] << "\t" << elementNames[i] << "\t" << elementDxyValues[i] << std::endl;
        }
    }
    std::cerr << "Done" << std::endl;
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xbd8, %rsp            # imm = 0xBD8
callq 0x2e385
movl $0x208, %edi            # imm = 0x208
callq 0x8470
movq %rax, %r14
movq 0xd615e(%rip), %rsi     # 0x102768
movq %rax, %rdi
movl $0x8, %edx
callq 0x8860
movq %r14, 0xe0(%rsp)
leaq 0x178(%rsp), %rax
movl $0x0, (%rax)
xorl %ecx, %ecx
movq %rcx, 0x8(%rax)
movq %rax, 0x10(%rax)
movq %rax, 0x18(%rax)
movq %rcx, 0x20(%rax)
movq 0xd59a2(%rip), %rdi     # 0x101fe8
leaq 0x9f733(%rip), %rsi     # 0xcbd80
movl $0x26, %edx
callq 0x84e0
movq 0xd610a(%rip), %rsi     # 0x102768
movq 0xd610b(%rip), %rdx     # 0x102770
movq 0xd597c(%rip), %rdi     # 0x101fe8
callq 0x84e0
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
xorpd %xmm0, %xmm0
movapd %xmm0, 0xc0(%rsp)
movq $0x0, 0xd0(%rsp)
cmpb $0x0, 0xd610d(%rip)     # 0x1027c8
je 0x2c733
leaq 0x130(%rsp), %rdi
leaq 0xe0(%rsp), %rsi
callq 0x2e64e
movq 0xd0(%rsp), %rax
leaq 0x130(%rsp), %rbx
movapd (%rbx), %xmm0
movq 0x10(%rbx), %rcx
movq %rcx, 0xd0(%rsp)
movapd 0xc0(%rsp), %xmm1
movapd %xmm0, 0xc0(%rsp)
leaq 0x210(%rsp), %rdi
movapd %xmm1, (%rdi)
movq %rax, 0x10(%rdi)
xorpd %xmm0, %xmm0
movapd %xmm0, (%rbx)
movq $0x0, 0x10(%rbx)
callq 0x30bd6
movq %rbx, %rdi
callq 0x30bd6
jmp 0x2c765
leaq 0x210(%rsp), %rdi
leaq 0x130(%rsp), %rsi
leaq 0xe0(%rsp), %rdx
leaq 0x170(%rsp), %rcx
callq 0x2f034
leaq 0x210(%rsp), %rdi
callq 0x30870
movq 0xd587c(%rip), %rbx     # 0x101fe8
leaq 0x9f634(%rip), %rsi     # 0xcbda7
movl $0x4, %edx
movq %rbx, %rdi
callq 0x84e0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq 0xd584a(%rip), %rdi     # 0x101fe8
callq 0x8040
movq %rax, %rdi
callq 0x8300
movq 0xd5fd6(%rip), %rsi     # 0x102788
leaq 0x210(%rsp), %rdi
leaq 0x130(%rsp), %rdx
callq 0x287de
leaq 0x210(%rsp), %rdi
movl $0x8, %esi
callq 0x500af
movq %rax, %rbx
leaq 0x220(%rsp), %r13
movq -0x10(%r13), %rdi
cmpq %r13, %rdi
je 0x2c7fd
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x118(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x160(%rsp), %rax
movq %rax, -0x30(%rax)
movl $0x1, %ecx
movq %rcx, -0x28(%rax)
xorpd %xmm0, %xmm0
movupd %xmm0, -0x20(%rax)
movl $0x3f800000, %edx       # imm = 0x3F800000
movl %edx, -0x10(%rax)
movupd %xmm0, -0x8(%rax)
leaq 0x1d0(%rsp), %rax
movq %rax, -0x30(%rax)
movq %rcx, -0x28(%rax)
movupd %xmm0, -0x20(%rax)
movl %edx, -0x10(%rax)
movupd %xmm0, -0x8(%rax)
leaq 0x208(%rsp), %rax
movq %rax, -0x30(%rax)
movq %rcx, -0x28(%rax)
movupd %xmm0, -0x20(%rax)
movl %edx, -0x10(%rax)
movupd %xmm0, -0x8(%rax)
movq 0xd5768(%rip), %rdi     # 0x101fe8
leaq 0x9f525(%rip), %rsi     # 0xcbdac
movl $0x23, %edx
callq 0x84e0
movq 0xd5ef0(%rip), %rsi     # 0x102788
movq 0xd5ef1(%rip), %rdx     # 0x102790
movq 0xd5742(%rip), %rdi     # 0x101fe8
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
leaq 0x28(%rsp), %r15
xorpd %xmm0, %xmm0
movsd %xmm0, 0x68(%rsp)
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %edx
movq %rbx, %rdi
leaq 0x108(%rsp), %rsi
callq 0x8870
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x2d0a4
movq 0x108(%rsp), %rax
cmpb $0x23, (%rax)
jne 0x2c938
movzbl 0x1(%rax), %eax
cmpl $0x23, %eax
je 0x2c8e4
cmpl $0x43, %eax
je 0x2c8e4
leaq 0x80(%rsp), %rdi
leaq 0x108(%rsp), %rsi
movl $0x9, %edx
callq 0x4d650
movq 0x80(%rsp), %rax
movq %r13, 0x210(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x210(%rsp), %rdi
callq 0x2ba06
movq 0x80(%rsp), %rax
leaq 0x58(%rsp), %rcx
movq %rcx, 0x48(%rsp)
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0x2ba06
movl $0x100, %edi            # imm = 0x100
callq 0x8470
movq %rax, %rbp
movabsq $0x7fffffff00000000, %rax # imm = 0x7FFFFFFF00000000
movq %rax, (%rbp)
xorl %ecx, %ecx
movl %ecx, 0x8(%rbp)
leaq 0x20(%rbp), %rax
movq %rax, 0x10(%rbp)
movq %rcx, 0x18(%rbp)
movb %cl, 0x20(%rbp)
leaq 0x40(%rbp), %rax
movq %rax, 0x30(%rbp)
movq %rcx, 0x38(%rbp)
movb %cl, 0x40(%rbp)
movsd 0x9f33a(%rip), %xmm0    # 0xcbd20
movupd %xmm0, 0x50(%rbp)
movabsq $0x3ff0000000000000, %rax # imm = 0x3FF0000000000000
movq %rax, 0x60(%rbp)
movb %cl, 0x68(%rbp)
movq %rcx, 0xe0(%rbp)
movl %ecx, 0xe8(%rbp)
movq %rcx, 0xf0(%rbp)
movw $0x0, 0xf8(%rbp)
xorpd %xmm0, %xmm0
movupd %xmm0, 0x70(%rbp)
movupd %xmm0, 0x80(%rbp)
movupd %xmm0, 0x90(%rbp)
movupd %xmm0, 0xa0(%rbp)
movupd %xmm0, 0xb0(%rbp)
movupd %xmm0, 0xc0(%rbp)
movupd %xmm0, 0xcc(%rbp)
leaq 0x80(%rsp), %rdi
movq %rbp, %rsi
callq 0x4e13c
leaq 0x70(%rbp), %r12
movq %r12, %rdi
callq 0x4d8fd
movsd %xmm0, 0x58(%rbp)
movq %r12, %rdi
callq 0x4d9ad
movsd %xmm0, 0x60(%rbp)
movsd 0x9f2a0(%rip), %xmm1    # 0xcbd28
ucomisd %xmm0, %xmm1
jbe 0x2cb60
xorpd %xmm0, %xmm0
ucomisd 0x58(%rbp), %xmm0
jbe 0x2cb60
movl $0xe, %edx
movq 0xd553b(%rip), %rdi     # 0x101fe8
leaq 0x9f31c(%rip), %rsi     # 0xcbdd0
callq 0x84e0
movq 0xd5528(%rip), %rcx     # 0x101fe8
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq 0xd550a(%rip), %rdi     # 0x101fe8
callq 0x8040
movq %rax, %rdi
callq 0x8300
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x210(%rsp), %rsi
movq 0x218(%rsp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x2ba06
movq %r15, %rdi
leaq 0xa0eb0(%rip), %rsi     # 0xcd9ca
callq 0x88c0
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq %r15, %rdi
callq 0x8180
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2cdb0
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2cdb8
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x210(%rsp), %rsi
movq 0x218(%rsp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x2ba06
movq %r15, %rdi
leaq 0xa0e3b(%rip), %rsi     # 0xcd9ca
callq 0x88c0
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq %r15, %rdi
callq 0x8180
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2cbce
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2cbd6
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x130(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x318a4
movq %rax, %r13
leaq 0x10(%rbp), %rsi
movl 0x8(%rbp), %eax
movl %eax, 0x8(%r13)
movq (%rbp), %rax
movq %rax, (%r13)
leaq 0x10(%r13), %rdi
callq 0x8270
leaq 0x30(%rbp), %rsi
leaq 0x30(%r13), %rdi
callq 0x8270
leaq 0x50(%rbp), %rax
movupd (%rax), %xmm0
movupd 0x9(%rax), %xmm1
movupd %xmm1, 0x59(%r13)
movupd %xmm0, 0x50(%r13)
leaq 0x70(%r13), %rdi
movq %r12, %rsi
callq 0x30ee4
movl $0x88, %eax
leaq (%rax,%r13), %rdi
leaq (%rax,%rbp), %rsi
callq 0x30ee4
movl $0xa0, %eax
leaq (%rax,%r13), %rdi
leaq (%rax,%rbp), %rsi
callq 0x30ee4
movl $0xb8, %eax
leaq (%rax,%r13), %rdi
leaq (%rax,%rbp), %rsi
callq 0x30ee4
movq %r13, %rdi
movl $0xd0, %eax
addq %rax, %rdi
movq %rbp, %rsi
addq %rax, %rsi
callq 0x30fc8
movzwl 0xf8(%rbp), %eax
movw %ax, 0xf8(%r13)
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2ccc8
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2cce4
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x70(%rbp), %rax
movq 0x78(%rbp), %r12
subq %rax, %r12
shrq $0x2, %r12
movl %r12d, %r13d
decl %r13d
je 0x2cf25
movslq %r13d, %rcx
movslq %r12d, %rdx
xorl %r8d, %r8d
movq %rdx, %rsi
movq %rax, %rdi
xorl %r9d, %r9d
movq %r8, %r10
incq %r8
cmpq %rdx, %r8
je 0x2cd96
movl (%rax,%r10,4), %r10d
movl $0x1, %r11d
cmpl $0x2, %r10d
je 0x2cd65
cmpl $0x1, %r10d
je 0x2cd4c
testl %r10d, %r10d
jne 0x2cd8e
movl (%rdi,%r11,4), %r14d
testl %r14d, %r14d
je 0x2cd8e
cmpl $0x1, %r14d
je 0x2cd75
leal 0x4(%r9), %r15d
jmp 0x2cd5f
movl (%rdi,%r11,4), %r14d
cmpl $0x1, %r14d
je 0x2cd75
testl %r14d, %r14d
je 0x2cd75
leal 0x2(%r9), %r15d
cmpl $0x2, %r14d
jmp 0x2cd82
movl (%rdi,%r11,4), %r14d
cmpl $0x2, %r14d
je 0x2cd8e
cmpl $0x1, %r14d
jne 0x2cd7b
addl $0x2, %r9d
jmp 0x2cd8e
leal 0x4(%r9), %r15d
testl %r14d, %r14d
cmovnel %r9d, %r15d
movl %r15d, %r9d
leaq 0x28(%rsp), %r15
incq %r11
cmpq %r11, %rsi
jne 0x2cd26
addq $0x4, %rdi
decq %rsi
cmpq %rcx, %r8
jne 0x2cd11
cvtsi2sd %r9d, %xmm0
jmp 0x2cf29
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0xd5207(%rip), %rdi     # 0x101fe8
callq 0x84e0
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %r12, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2ce2c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2ce48
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8480
movl $0x1f, %edx
movq 0xd5194(%rip), %rdi     # 0x101fe8
leaq 0x9ef84(%rip), %rsi     # 0xcbddf
callq 0x84e0
movsd 0x60(%rbp), %xmm0
movq 0xd517c(%rip), %rdi     # 0x101fe8
callq 0x8730
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %r12, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
movl $0x1e, %edx
movq 0xd5141(%rip), %rdi     # 0x101fe8
leaq 0x9ef51(%rip), %rsi     # 0xcbdff
callq 0x84e0
movsd 0x58(%rbp), %xmm0
movq 0xd5129(%rip), %rdi     # 0x101fe8
callq 0x8730
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %r12, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
movq 0xd50f3(%rip), %rcx     # 0x101fe8
movq (%rcx), %rax
movq -0x18(%rax), %rdi
addq %rcx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq 0xd50d5(%rip), %rdi     # 0x101fe8
callq 0x8040
movq %rax, %rdi
callq 0x8300
jmp 0x2d044
xorpd %xmm0, %xmm0
movsd %xmm0, 0x70(%rsp)
leaq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x210(%rsp), %rsi
movq 0x218(%rsp), %rdx
addq %rsi, %rdx
movq %r15, %rdi
callq 0x2ba06
movq %r15, %rdi
leaq 0xa0a6c(%rip), %rsi     # 0xcd9ca
callq 0x88c0
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq %r15, %rdi
callq 0x8180
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2cf9d
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2cfa5
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x1a0(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x31d96
imull %r12d, %r13d
addl %r13d, %r13d
xorps %xmm0, %xmm0
cvtsi2sd %r13d, %xmm0
movsd 0x70(%rsp), %xmm1
divsd %xmm0, %xmm1
movsd %xmm1, 0x70(%rsp)
movsd %xmm1, (%rax)
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2d00e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
leaq 0x220(%rsp), %r13
je 0x2d032
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8480
movsd 0x68(%rsp), %xmm0
addsd 0x70(%rsp), %xmm0
movsd %xmm0, 0x68(%rsp)
movq %rbp, %rdi
callq 0x2e6d0
movl $0x100, %esi            # imm = 0x100
movq %rbp, %rdi
callq 0x8480
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x2d075
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x210(%rsp), %rdi
cmpq %r13, %rdi
je 0x2d092
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x80(%rsp), %rdi
callq 0x2e784
jmp 0x2c8e4
movq 0xd4f3d(%rip), %rbx     # 0x101fe8
leaq 0x9ecf5(%rip), %rsi     # 0xcbda7
movl $0x4, %edx
movq %rbx, %rdi
callq 0x84e0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq 0xd4f0b(%rip), %rdi     # 0x101fe8
callq 0x8040
movq %rax, %rdi
callq 0x8300
cmpb $0x0, 0xd56d7(%rip)     # 0x1027c8
je 0x2d191
movq %r13, 0x210(%rsp)
movq $0x0, 0x218(%rsp)
movb $0x0, 0x220(%rsp)
leaq 0xd564e(%rip), %rdi     # 0x102768
movl $0x2e, %esi
movq $-0x1, %rdx
callq 0x88f0
cmpq $-0x1, %rax
je 0x2d298
leaq 0xd562c(%rip), %rsi     # 0x102768
leaq 0x28(%rsp), %rdi
callq 0x4d82f
movq 0xd565b(%rip), %rcx     # 0x1027a8
movq 0xd565c(%rip), %r8      # 0x1027b0
leaq 0x28(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x84d0
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2d34e
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2d356
movl 0x198(%rsp), %ebx
movq 0xd4e19(%rip), %rdi     # 0x101fb8
leaq 0x9ec78(%rip), %rsi     # 0xcbe1e
movl $0xe, %edx
callq 0x84e0
cvtsi2sd %ebx, %xmm1
movsd 0x68(%rsp), %xmm0
divsd %xmm1, %xmm0
movq 0xd4df3(%rip), %rdi     # 0x101fb8
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
leaq 0xd556d(%rip), %rdi     # 0x102768
movl $0x2e, %esi
movq $-0x1, %rdx
callq 0x88f0
leaq 0x58(%rsp), %rcx
movq %rcx, 0x48(%rsp)
movq $0x0, 0x50(%rsp)
movb $0x0, 0x58(%rsp)
cmpq $-0x1, %rax
je 0x2d2f0
leaq 0xd5533(%rip), %rsi     # 0x102768
leaq 0xa0(%rsp), %rdi
callq 0x4d82f
movq 0xd555f(%rip), %rcx     # 0x1027a8
movq 0xd5560(%rip), %r8      # 0x1027b0
leaq 0xa0(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x84d0
leaq 0x90(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2d429
movq %rdx, 0x80(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x90(%rsp)
jmp 0x2d432
leaq 0xd5509(%rip), %rsi     # 0x1027a8
leaq 0xd54c2(%rip), %rdx     # 0x102768
leaq 0x8(%rsp), %rdi
callq 0x2e8c4
leaq 0x9ebc1(%rip), %rsi     # 0xcbe78
leaq 0x8(%rsp), %rdi
callq 0x88c0
leaq 0x58(%rsp), %r14
movq %r14, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2d698
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x2d6a1
leaq 0xd54b1(%rip), %rsi     # 0x1027a8
leaq 0xd546a(%rip), %rdx     # 0x102768
leaq 0x80(%rsp), %rdi
callq 0x2e8c4
leaq 0x9eb1b(%rip), %rsi     # 0xcbe2d
leaq 0x80(%rsp), %rdi
callq 0x88c0
leaq 0x38(%rsp), %rsi
movq %rsi, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2d987
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x2d98f
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
leaq 0x8(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x9eaff(%rip), %rsi     # 0xcbe78
callq 0x88c0
leaq 0x58(%rsp), %r14
movq %r14, 0x48(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2d3a6
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x2d3af
movupd (%rcx), %xmm0
movupd %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rbx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x210(%rsp), %rdi
movq %rbx, %rsi
callq 0x8540
movq (%rbx), %rdi
cmpq %r14, %rdi
je 0x2d3f0
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
leaq 0x38(%rsp), %rbx
je 0x2d411
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x28(%rsp), %rdi
cmpq %rbx, %rdi
je 0x2d6fe
movq 0x38(%rsp), %rsi
jmp 0x2d6f6
movupd (%rcx), %xmm0
movupd %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0x80(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x9e9d5(%rip), %rsi     # 0xcbe2d
callq 0x88c0
leaq 0x38(%rsp), %rsi
movq %rsi, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2d485
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x2d48d
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0xd4ffd(%rip), %esi     # 0x1024a8
leaq 0xe8(%rsp), %rdi
callq 0x2e7e2
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0xf0(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
leaq 0x38(%rsp), %rsi
cmpq %rsi, %rcx
je 0x2d4e2
movq 0x38(%rsp), %rdi
movq 0xe8(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x2d50e
leaq 0xf8(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x2d509
movq 0xf8(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x2d51a
leaq 0x28(%rsp), %rdi
callq 0x8180
jmp 0x2d52b
leaq 0xe8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x84d0
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x2d550
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2d558
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xafbc9(%rip), %rsi     # 0xdd145
leaq 0x8(%rsp), %rdi
callq 0x88c0
movq %r13, 0x210(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2d5b2
movq %rdx, 0x210(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x220(%rsp)
jmp 0x2d5bc
movupd (%rcx), %xmm0
movupd %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0x210(%rsp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
callq 0x8540
movq (%r14), %rdi
cmpq %r13, %rdi
je 0x2d600
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2d61c
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2d63d
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2d659
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0x2d676
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2db7c
movq 0xb0(%rsp), %rsi
jmp 0x2db74
movupd (%rcx), %xmm0
movupd %xmm0, (%r14)
movq 0x8(%rax), %rdx
leaq 0x48(%rsp), %rbx
movq %rdx, 0x8(%rbx)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x210(%rsp), %rdi
movq %rbx, %rsi
callq 0x8540
movq (%rbx), %rdi
cmpq %r14, %rdi
je 0x2d6e2
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2d6fe
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
movl $0x200, %edi            # imm = 0x200
callq 0x8470
movq %rax, %r14
movq 0x210(%rsp), %rsi
movq %rax, %rdi
movl $0x10, %edx
callq 0x84c0
movq 0xd48c1(%rip), %rdi     # 0x101fe8
leaq 0x9e762(%rip), %rsi     # 0xcbe90
movl $0x3f, %edx
callq 0x84e0
movq 0x210(%rsp), %rsi
movq 0x218(%rsp), %rdx
movq 0xd4899(%rip), %rdi     # 0x101fe8
callq 0x84e0
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
leaq 0x48(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
leaq 0x1a0(%rsp), %rdx
callq 0x2e984
movq 0xd4849(%rip), %rbx     # 0x101fe8
leaq 0x9e72a(%rip), %rsi     # 0xcbed0
movl $0x11, %edx
movq %rbx, %rdi
callq 0x84e0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq 0xd4817(%rip), %rdi     # 0x101fe8
callq 0x8040
movq %rax, %rdi
callq 0x8300
leaq 0x8(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x2ee0a
leaq 0x28(%rsp), %rdi
leaq 0xc0(%rsp), %rsi
callq 0x2eeca
movq 0x50(%rsp), %rax
subq 0x48(%rsp), %rax
shrq $0x3, %rax
testl %eax, %eax
jle 0x2d936
movl $0x8, %r12d
xorl %r13d, %r13d
leaq 0xa01a2(%rip), %rbx     # 0xcd9ca
xorl %ebp, %ebp
movq 0x28(%rsp), %rax
movq (%rax,%r13), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r14, %rdi
callq 0x84e0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x84e0
movq 0x28(%rsp), %rax
movq (%rax,%r13), %rax
movq 0x20(%rax), %rsi
movq 0x28(%rax), %rdx
movq %r15, %rdi
callq 0x84e0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x84e0
movq 0x28(%rsp), %rax
movq (%rax,%r13), %rax
movq 0x40(%rax), %rsi
movq 0x48(%rax), %rdx
movq %r15, %rdi
callq 0x84e0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x84e0
movq 0x8(%rsp), %rax
movq -0x8(%rax,%r12), %rsi
movq (%rax,%r12), %rdx
movq %r15, %rdi
callq 0x84e0
movq %rax, %r15
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x84e0
movq 0x48(%rsp), %rax
movsd (%rax,%rbp,8), %xmm0
movq %r15, %rdi
callq 0x8730
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
incq %rbp
movq 0x50(%rsp), %rax
subq 0x48(%rsp), %rax
shrq $0x3, %rax
cltq
addq $0x18, %r13
addq $0x20, %r12
cmpq %rax, %rbp
jl 0x2d82a
leaq 0x28(%rsp), %rdi
callq 0x2efec
leaq 0x8(%rsp), %rdi
callq 0x2e784
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x2d961
movq 0x58(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
cmpq %rax, %rdi
je 0x2de85
movq 0x220(%rsp), %rsi
jmp 0x2de7d
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movl 0xd4afb(%rip), %esi     # 0x1024a8
leaq 0xa0(%rsp), %rdi
callq 0x2e7e2
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0xa8(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
leaq 0x38(%rsp), %rsi
cmpq %rsi, %rcx
je 0x2d9e4
movq 0x38(%rsp), %rdi
movq 0xa0(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x2da10
leaq 0xb0(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x2da0b
movq 0xb0(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x2da1c
leaq 0x28(%rsp), %rdi
callq 0x8180
jmp 0x2da2d
leaq 0xa0(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x84d0
leaq 0x18(%rsp), %rsi
movq %rsi, 0x8(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x2da52
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x2da5a
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xaf6c7(%rip), %rsi     # 0xdd145
leaq 0x8(%rsp), %rdi
callq 0x88c0
movq %r13, 0x210(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2dab4
movq %rdx, 0x210(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x220(%rsp)
jmp 0x2dabe
movupd (%rcx), %xmm0
movupd %xmm0, (%r13)
movq 0x8(%rax), %rdx
leaq 0x210(%rsp), %r14
movq %rdx, 0x8(%r14)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x48(%rsp), %rdi
movq %r14, %rsi
callq 0x8540
movq (%r14), %rdi
cmpq %r13, %rdi
je 0x2db02
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2db1e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2db3f
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2db5b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2db7c
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x8480
movl $0x200, %edi            # imm = 0x200
callq 0x8470
movq %rax, %r14
movq 0x48(%rsp), %rsi
movq %rax, %rdi
movl $0x10, %edx
callq 0x84c0
movabsq $0x5851f42d4c957f2d, %rax # imm = 0x5851F42D4C957F2D
movl 0xd48fd(%rip), %ecx     # 0x1024a8
movl $0x1, %edx
movl $0x1571, %edi           # imm = 0x1571
movq %rdi, %rsi
shrq $0x3e, %rsi
xorq %rdi, %rsi
imulq %rax, %rsi
addq %rdx, %rsi
movq %rsi, 0x210(%rsp,%rdx,8)
incq %rdx
movq %rsi, %rdi
cmpq $0x138, %rdx            # imm = 0x138
jne 0x2dbb8
movq $0x1571, 0x210(%rsp) # imm = 0x1571
movl $0x1, %edx
movl $0x1571, %edi           # imm = 0x1571
movq %rdi, %rsi
shrq $0x3e, %rsi
xorq %rdi, %rsi
imulq %rax, %rsi
addq %rdx, %rsi
movq %rsi, 0x210(%rsp,%rdx,8)
incq %rdx
movq %rsi, %rdi
cmpq $0x138, %rdx            # imm = 0x138
jne 0x2dbf6
movq %r14, 0x128(%rsp)
movl %ebx, %eax
cltd
idivl %ecx
movl %eax, 0x7c(%rsp)
movq $0x138, 0xbd0(%rsp) # imm = 0x138
movl $0x0, 0x28(%rsp)
movl %ebx, 0x2c(%rsp)
movq 0xd439d(%rip), %rdi     # 0x101fe8
leaq 0x9e1e6(%rip), %rsi     # 0xcbe38
movl $0x2b, %edx
callq 0x84e0
movq 0x48(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0xd437b(%rip), %rdi     # 0x101fe8
callq 0x84e0
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
cmpl $0x0, 0x7c(%rsp)
jle 0x2de69
xorl %eax, %eax
leaq 0x28(%rsp), %r13
leaq 0x170(%rsp), %r15
leaq 0x80(%rsp), %r14
leaq 0x8(%rsp), %rbp
leaq 0x1a0(%rsp), %rbx
movl %eax, 0x70(%rsp)
imull $0x3afb7e91, %eax, %eax # imm = 0x3AFB7E91
rorl $0x4, %eax
cmpl $0x68db8, %eax          # imm = 0x68DB8
ja 0x2dd54
movl $0xa, %edx
movq 0xd42fd(%rip), %rdi     # 0x101fe8
leaq 0x9e172(%rip), %rsi     # 0xcbe64
callq 0x84e0
movq 0xd42ea(%rip), %rdi     # 0x101fe8
movl 0x70(%rsp), %esi
callq 0x8810
movq %rax, %r12
movl $0x8, %edx
movq %rax, %rdi
leaq 0x9e156(%rip), %rsi     # 0xcbe6f
callq 0x84e0
movq %r12, %rdi
movl 0x7c(%rsp), %esi
callq 0x8810
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %r12, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
movl 0xd474e(%rip), %eax     # 0x1024a8
xorpd %xmm0, %xmm0
testl %eax, %eax
jle 0x2de0b
movsd %xmm0, 0x68(%rsp)
xorl %r12d, %r12d
movq %r13, %rdi
leaq 0x210(%rsp), %rsi
movq %r13, %rdx
callq 0x31eae
movl %eax, 0x80(%rsp)
movq %r15, %rdi
movq %r14, %rsi
callq 0x2e91e
leaq 0x18(%rsp), %rcx
movq %rcx, 0x8(%rsp)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0x2ba06
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x3172e
testq %rax, %rax
je 0x2dddb
movq %rbx, %rdi
movq %rbp, %rsi
callq 0x31768
movsd 0x68(%rsp), %xmm0
addsd (%rax), %xmm0
movsd %xmm0, 0x68(%rsp)
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2ddf7
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
incl %r12d
movl 0xd46a8(%rip), %eax     # 0x1024a8
cmpl %eax, %r12d
jl 0x2dd6f
jmp 0x2de11
movsd %xmm0, 0x68(%rsp)
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
movsd 0x68(%rsp), %xmm0
divsd %xmm1, %xmm0
movq 0x128(%rsp), %rdi
callq 0x8730
movq %rax, %r12
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %r12, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
movl 0x70(%rsp), %eax
incl %eax
cmpl 0x7c(%rsp), %eax
jne 0x2dccb
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x2de85
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0xd415c(%rip), %rbx     # 0x101fe8
leaq 0x9df14(%rip), %rsi     # 0xcbda7
movl $0x4, %edx
movq %rbx, %rdi
callq 0x84e0
movq (%rbx), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq 0xd412a(%rip), %rdi     # 0x101fe8
callq 0x8040
movq %rax, %rdi
callq 0x8300
leaq 0x1d8(%rsp), %rdi
callq 0x28916
leaq 0x1a0(%rsp), %rdi
callq 0x28916
leaq 0x130(%rsp), %rdi
callq 0x3156a
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rax
cmpq %rax, %rdi
je 0x2df17
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0xc0(%rsp), %rdi
callq 0x30bd6
leaq 0x170(%rsp), %rdi
callq 0x31630
xorl %eax, %eax
addq $0xbd8, %rsp            # imm = 0xBD8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2df69
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x2df69
movq %rax, %rbx
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2df8f
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x2df8f
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2dfb0
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x2dfb0
movq %rax, %rbx
leaq 0x90(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2e2fb
movq 0x90(%rsp), %rsi
jmp 0x2e2ee
jmp 0x2e2f8
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2e2b6
movq 0x18(%rsp), %rsi
jmp 0x2e0ec
jmp 0x2e118
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2e020
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x2e020
movq %rax, %rbx
leaq 0xf8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2e046
movq 0xf8(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x2e046
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2e067
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x2e067
movq %rax, %rbx
movq 0x80(%rsp), %rdi
cmpq %r15, %rdi
je 0x2e089
movq 0x90(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x2e089
movq %rax, %rbx
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2e2fb
movq 0xb0(%rsp), %rsi
jmp 0x2e2ee
jmp 0x2e2f8
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2e0d4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x2e0d4
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2e2b6
movq 0x38(%rsp), %rsi
incq %rsi
jmp 0x2e2b1
jmp 0x2e118
movq %rax, %rbx
jmp 0x2e295
jmp 0x2e1b6
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq %r14, %rdi
jmp 0x2e2f1
jmp 0x2e2f8
movq %rax, %rbx
jmp 0x2e2b6
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq %r14, %rdi
callq 0x8480
jmp 0x2e2be
jmp 0x2e1d2
jmp 0x2e1d2
jmp 0x2e1e7
jmp 0x2e158
jmp 0x2e158
jmp 0x2e226
jmp 0x2e158
jmp 0x2e158
jmp 0x2e226
jmp 0x2e158
movq %rax, %rbx
jmp 0x2e206
jmp 0x2e226
movq %rax, %rbx
leaq 0x220(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2e363
movq 0x220(%rsp), %rsi
jmp 0x2e35b
jmp 0x2e1d2
movq %rax, %rbx
movl $0x208, %esi            # imm = 0x208
movq %r14, %rdi
callq 0x8480
jmp 0x2e37d
movq %rax, %rbx
jmp 0x2e245
movq %rax, %rbx
jmp 0x2e26a
jmp 0x2e280
movq %rax, %rbx
jmp 0x2e29f
jmp 0x2e2f8
jmp 0x2e280
jmp 0x2e1e7
movq %rax, %rbx
jmp 0x2e2be
movq %rax, %rbx
jmp 0x2e363
jmp 0x2e280
movq %rax, %rbx
jmp 0x2e370
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2e206
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2e229
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x2e229
jmp 0x2e280
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x2e245
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x210(%rsp), %rdi
leaq 0x220(%rsp), %rax
cmpq %rax, %rdi
je 0x2e26a
movq 0x220(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x80(%rsp), %rdi
callq 0x2e784
jmp 0x2e317
jmp 0x2e2f8
jmp 0x2e2f8
movq %rax, %rbx
jmp 0x2e317
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x2efec
leaq 0x8(%rsp), %rdi
callq 0x2e784
movq 0x48(%rsp), %rdi
testq %rdi, %rdi
je 0x2e2b6
movq 0x58(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
leaq 0x220(%rsp), %r13
movq 0x210(%rsp), %rdi
cmpq %r13, %rdi
je 0x2e317
movq 0x220(%rsp), %rsi
jmp 0x2e30f
jmp 0x2e2f8
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2e2fb
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x2e2fb
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x2e317
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x1d8(%rsp), %rdi
callq 0x28916
leaq 0x1a0(%rsp), %rdi
callq 0x28916
leaq 0x130(%rsp), %rdi
callq 0x3156a
movq 0x108(%rsp), %rdi
leaq 0x118(%rsp), %rax
cmpq %rax, %rdi
je 0x2e363
movq 0x118(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0xc0(%rsp), %rdi
callq 0x30bd6
leaq 0x170(%rsp), %rdi
callq 0x31630
movq %rbx, %rdi
callq 0x8840