// File: /workspace/github_cpp_makefile_star2_O1/millanek[P]evo/evo_DNA_to_Protein.cpp
// Function: DNAtoProtein(int, char**)
int DNAtoProtein(int argc, char** argv) {
    parseDNAtoProteinOptions(argc, argv);
    std::vector<string> allAligmentFiles; string AAFileName;
    std::vector<string> allNewLabels;
    
    std::cerr << "Translate multiple aligments from DNA to protein" << std::endl;
    
    if (opt::alignmentFile != "") {
        allAligmentFiles.push_back(opt::alignmentFile);
        // look at suffix
        size_t suffixPos = opt::alignmentFile.find_last_of('.');
        if (suffixPos !=  std::string::npos) {
            if (opt::alignmentFile.substr(suffixPos) == ".fa" || opt::alignmentFile.substr(suffixPos) == ".fasta")
                std::cerr << "for the gene: " << stripExtension(opt::alignmentFile) << std::endl;
            else
                std::cerr << "for the gene: " << opt::alignmentFile << std::endl;
        } else {
            std::cerr << "for the gene: " << opt::alignmentFile << std::endl;
        }
    } else {
        std::ifstream* alignmentList = new std::ifstream(opt::alignmentListFile.c_str());
        std::cerr << "for the genes in: " << opt::alignmentListFile << std::endl;
        std::string line;
        while (getline(*alignmentList, line)) {
            allAligmentFiles.push_back(line);
        }
    }
    if (opt::newLabelFile != "") {
        std::cerr << "using labels from: " << opt::newLabelFile << std::endl;
        std::ifstream* newLabels = new std::ifstream(opt::newLabelFile.c_str());
        std::string line;
        while (getline(*newLabels, line)) {
            allNewLabels.push_back(line);
        }
    }
    
    // Loop over the mutiple alignment files:
    for (std::vector<std::string>::size_type i = 0; i != allAligmentFiles.size(); i++) {
        std::ifstream* alignment = new std::ifstream(allAligmentFiles[i].c_str());
        std::vector<string> allSeqs; std::vector<string> allSeqsAA;
        // Load the DNA alignment
        std::string line; int lineNum = 1;
        while (getline(*alignment, line)) {
            if (lineNum % 2 == 1) assert(line[0] == '>');
            lineNum++;
            if (line[0] == '>' && opt::newLabelFile != "") continue;
            if (line[0] == '>' && opt::newLabelFile == "") { allNewLabels.push_back(line); continue; }
            allSeqs.push_back(line);
        } alignment->close();
        
       // std::cerr << "loaded seqs for: " << allAligmentFiles[i] << std::endl;
        //std::cerr << "allSeqs.size(): " << allSeqs.size() << std::endl;
        // Translate to Amino Acid sequences:
        std::string::size_type geneLengthNt = allSeqs[0].length();
        int numSamples = (int)allSeqs.size();
        std::vector<string> altCodons; altCodons.resize(numSamples);
        allSeqsAA.resize(numSamples);
        if (numSamples > 0) {
            assert(geneLengthNt % 3 == 0); // The gene length must be divisible by three
            for (std::vector<std::string>::size_type j = 0; j != numSamples; j++) {
                allSeqsAA[j].reserve(geneLengthNt/3);
            }
            for (string::size_type k = 0; k != geneLengthNt; k++) {
                for (std::vector<std::string>::size_type j = 0; j != numSamples; j++) {
                    altCodons[j] += allSeqs[j][k];
                }
                // Find the types of mutation we are dealing with
                if ((k+1)%3 == 0) {
                    for (std::vector<std::string>::size_type j = 0; j != numSamples; j++) {
                        assert(allSeqs[j].substr(k-2,3) == altCodons[j]);
                        allSeqsAA[j] += getAminoAcidOneLetterCode(altCodons[j]);
                    }
                    for (std::vector<std::string>::size_type j = 0; j != numSamples; j++) {
                        altCodons[j] = "";
                    }
                }
            }
        } else{
            std::cerr << allAligmentFiles[i] << "has no alignment.." << std::endl;
        }
        //std::cerr << "processed seqs for: " << allAligmentFiles[i] << std::endl;
        //std::cerr << "going to output: " << allAligmentFiles[i] << std::endl;
        size_t suffixPos = allAligmentFiles[i].find_last_of('.');
        if (suffixPos != std::string::npos) {
            if (allAligmentFiles[i].substr(suffixPos) == ".fa" || allAligmentFiles[i].substr(suffixPos) == ".fasta")
                AAFileName = opt::outFolder + stripExtension(allAligmentFiles[i]) + "_AA.fasta";
            else
                AAFileName = opt::outFolder + allAligmentFiles[i] + "_AA.fasta";
        } else {
            AAFileName = opt::outFolder + allAligmentFiles[i] + "_AA.fasta";
        }
        //std::cerr << "into: " << AAFileName << std::endl;
        std::ofstream* AAalignment = new std::ofstream(AAFileName.c_str());
        for (std::vector<std::string>::size_type j = 0; j != numSamples; j++) {
            *AAalignment << allNewLabels[j] << std::endl;
            *AAalignment << allSeqsAA[j] << std::endl;
        } AAalignment->close();
    }
    return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x198, %rsp            # imm = 0x198
callq 0x429a8
xorl %eax, %eax
movq %rax, 0x60(%rsp)
xorps %xmm0, %xmm0
movaps %xmm0, 0x50(%rsp)
leaq 0xf0(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb $0x0, (%rcx)
movq %rax, 0x130(%rsp)
movaps %xmm0, 0x120(%rsp)
movq 0xc9549(%rip), %rbx     # 0x10afe8
leaq 0x90faa(%rip), %rsi     # 0xd2a50
movl $0x30, %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 0xc9517(%rip), %rdi     # 0x10afe8
callq 0x8040
movq %rax, %rdi
callq 0x8300
leaq 0xca2eb(%rip), %rdi     # 0x10bdd0
leaq 0x90193(%rip), %rsi     # 0xd1c7f
callq 0x8160
testl %eax, %eax
je 0x41b9d
leaq 0xca2d0(%rip), %rsi     # 0x10bdd0
leaq 0x50(%rsp), %rdi
callq 0x33db0
leaq 0xca2bf(%rip), %rdi     # 0x10bdd0
movl $0x2e, %esi
movq $-0x1, %rdx
callq 0x88f0
cmpq $-0x1, %rax
je 0x41c89
movq %rax, %rbx
leaq 0xca29a(%rip), %rsi     # 0x10bdd0
movq %rsp, %rdi
movq %rax, %rdx
movq $-0x1, %rcx
callq 0x84a0
leaq 0x9f46b(%rip), %rsi     # 0xe0fba
movq %rsp, %rdi
callq 0x8160
movl %eax, %ebp
testl %eax, %eax
je 0x41cd7
leaq 0xca268(%rip), %rsi     # 0x10bdd0
leaq 0x178(%rsp), %rdi
movq %rbx, %rdx
movq $-0x1, %rcx
callq 0x84a0
leaq 0x90f73(%rip), %rsi     # 0xd2af9
leaq 0x178(%rsp), %rdi
callq 0x8160
testl %eax, %eax
sete %bl
jmp 0x41cd9
movl $0x208, %edi            # imm = 0x208
callq 0x8470
movq %rax, %r14
movq 0xca23f(%rip), %rsi     # 0x10bdf0
movq %rax, %rdi
movl $0x8, %edx
callq 0x8860
movq 0xc9423(%rip), %rdi     # 0x10afe8
leaq 0x8c914(%rip), %rsi     # 0xce4e0
movl $0x12, %edx
callq 0x84e0
movq 0xca213(%rip), %rsi     # 0x10bdf0
movq 0xca214(%rip), %rdx     # 0x10bdf8
movq 0xc93fd(%rip), %rdi     # 0x10afe8
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 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
movq %rsp, %rbx
leaq 0x50(%rsp), %r15
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8870
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x41c77
movq %r15, %rdi
movq %rbx, %rsi
callq 0x33db0
jmp 0x41c3a
movq (%rsp), %rdi
cmpq %r12, %rdi
jne 0x41d8c
jmp 0x41df7
movq 0xc9358(%rip), %rdi     # 0x10afe8
leaq 0x8ff66(%rip), %rsi     # 0xd1bfd
movl $0xe, %edx
callq 0x84e0
movq 0xca128(%rip), %rsi     # 0x10bdd0
movq 0xca129(%rip), %rdx     # 0x10bdd8
movq 0xc9332(%rip), %rdi     # 0x10afe8
callq 0x84e0
movq %rax, %rbx
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x8450
jmp 0x41de4
movb $0x1, %bl
testl %ebp, %ebp
je 0x41cfe
leaq 0x188(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x41cfe
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x10(%rsp), %r14
movq -0x10(%r14), %rdi
cmpq %r14, %rdi
je 0x41d19
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8480
testb %bl, %bl
je 0x41d9b
movq 0xc92c4(%rip), %rdi     # 0x10afe8
leaq 0x8fed2(%rip), %rsi     # 0xd1bfd
movl $0xe, %edx
callq 0x84e0
leaq 0xca094(%rip), %rsi     # 0x10bdd0
movq %rsp, %rdi
callq 0x50803
movq (%rsp), %rsi
movq 0x8(%rsp), %rdx
movq 0xc9294(%rip), %rdi     # 0x10afe8
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
movq (%rsp), %rdi
cmpq %r14, %rdi
je 0x41df7
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x41df7
movq 0xc9246(%rip), %rdi     # 0x10afe8
leaq 0x8fe54(%rip), %rsi     # 0xd1bfd
movl $0xe, %edx
callq 0x84e0
movq 0xca016(%rip), %rsi     # 0x10bdd0
movq 0xca017(%rip), %rdx     # 0x10bdd8
movq 0xc9220(%rip), %rdi     # 0x10afe8
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 0xca012(%rip), %rdi     # 0x10be10
leaq 0x8fe7a(%rip), %rsi     # 0xd1c7f
callq 0x8160
testl %eax, %eax
je 0x41f05
movq 0xc91cf(%rip), %rdi     # 0x10afe8
leaq 0x8eeae(%rip), %rsi     # 0xd0cce
movl $0x13, %edx
callq 0x84e0
movq 0xc9fdf(%rip), %rsi     # 0x10be10
movq 0xc9fe0(%rip), %rdx     # 0x10be18
movq 0xc91a9(%rip), %rdi     # 0x10afe8
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
movl $0x208, %edi            # imm = 0x208
callq 0x8470
movq %rax, %r14
movq 0xc9f8e(%rip), %rsi     # 0x10be10
movq %rax, %rdi
movl $0x8, %edx
callq 0x8860
leaq 0x10(%rsp), %r12
movq %r12, -0x10(%r12)
movq $0x0, -0x8(%r12)
movb $0x0, (%r12)
movq %rsp, %rbx
leaq 0x120(%rsp), %r15
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x8870
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x41eef
movq %r15, %rdi
movq %rbx, %rsi
callq 0x33db0
jmp 0x41eb2
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x41f05
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x50(%rsp), %rbx
cmpq %rbx, 0x58(%rsp)
je 0x42739
movq %rsp, %r15
leaq 0xc9ef1(%rip), %rbp     # 0x10be10
leaq 0x8fd59(%rip), %r13     # 0xd1c7f
movq $0x0, 0x90(%rsp)
movl $0x208, %edi            # imm = 0x208
callq 0x8470
movq %rax, %r14
movq 0x90(%rsp), %rax
shlq $0x5, %rax
movq %rax, 0x48(%rsp)
movq (%rbx,%rax), %rsi
movq %r14, %rdi
movl $0x8, %edx
callq 0x8860
xorps %xmm0, %xmm0
movaps %xmm0, 0xc0(%rsp)
xorl %ecx, %ecx
movq %rcx, 0xd0(%rsp)
movq %rcx, 0x110(%rsp)
movaps %xmm0, 0x100(%rsp)
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %rcx, 0x8(%rsp)
movb $0x0, 0x10(%rsp)
movl $0x1, %ebx
movq (%r14), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x8870
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0x4202f
testb $0x1, %bl
je 0x41fe0
movq (%rsp), %rax
cmpb $0x3e, (%rax)
jne 0x427a8
movq (%rsp), %rax
cmpb $0x3e, (%rax)
jne 0x41ff8
movq %rbp, %rdi
movq %r13, %rsi
callq 0x8160
testl %eax, %eax
jne 0x42028
movq (%rsp), %rax
cmpb $0x3e, (%rax)
jne 0x42018
movq %rbp, %rdi
movq %r13, %rsi
callq 0x8160
leaq 0x120(%rsp), %rdi
testl %eax, %eax
je 0x42020
leaq 0xc0(%rsp), %rdi
movq %r15, %rsi
callq 0x33db0
incl %ebx
jmp 0x41f9e
movq %r14, %rdi
callq 0x80f0
movq 0xc0(%rsp), %rax
movq 0xc8(%rsp), %rbx
movq 0x8(%rax), %rcx
movq %rcx, 0x98(%rsp)
subq %rax, %rbx
movq %rbx, 0x40(%rsp)
shrq $0x5, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0xa0(%rsp)
movq $0x0, 0xb0(%rsp)
movslq %ebx, %r12
leaq 0xa0(%rsp), %rdi
movq %r12, %rsi
callq 0x415c4
leaq 0x100(%rsp), %rdi
movq %r12, %rsi
callq 0x415c4
shlq $0x1b, 0x40(%rsp)
testl %ebx, %ebx
jle 0x42275
movq 0x98(%rsp), %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
mulq %rcx
movabsq $0x5555555555555555, %rcx # imm = 0x5555555555555555
cmpq %rcx, %rax
ja 0x427c7
cmpq $0x0, 0x40(%rsp)
je 0x420ff
movq %rdx, %rbx
shrq %rbx
xorl %r14d, %r14d
movq %r12, %r15
movq 0x100(%rsp), %rdi
addq %r14, %rdi
movq %rbx, %rsi
callq 0x86f0
addq $0x20, %r14
decq %r15
jne 0x420e3
cmpq $0x0, 0x98(%rsp)
je 0x422d2
xorl %r14d, %r14d
movq %r14, %rbx
cmpq $0x0, 0x40(%rsp)
je 0x4214b
xorl %r14d, %r14d
movq %r12, %r15
movq 0xc0(%rsp), %rax
movq (%rax,%r14), %rax
movsbl (%rax,%rbx), %esi
movq 0xa0(%rsp), %rdi
addq %r14, %rdi
callq 0x83d0
addq $0x20, %r14
decq %r15
jne 0x42122
leaq 0x1(%rbx), %r14
movq %r14, %rax
movabsq $-0x5555555555555555, %rcx # imm = 0xAAAAAAAAAAAAAAAB
imulq %rcx, %rax
movabsq $0x5555555555555555, %rcx # imm = 0x5555555555555555
cmpq %rcx, %rax
ja 0x42265
cmpq $0x0, 0x40(%rsp)
je 0x42265
movq %rbp, %r13
addq $-0x2, %rbx
xorl %r15d, %r15d
movq %r12, %rbp
movq 0xc0(%rsp), %rsi
addq %r15, %rsi
movl $0x3, %ecx
leaq 0x20(%rsp), %rdi
movq %rbx, %rdx
callq 0x84a0
movq 0xa0(%rsp), %rax
movq 0x28(%rsp), %rdx
cmpq 0x8(%rax,%r15), %rdx
jne 0x42789
testq %rdx, %rdx
je 0x421dc
movq (%rax,%r15), %rsi
movq 0x20(%rsp), %rdi
callq 0x8490
testl %eax, %eax
jne 0x42789
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x421f8
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0xa0(%rsp), %rdi
addq %r15, %rdi
callq 0x42c9b
movq 0x100(%rsp), %rdi
addq %r15, %rdi
movsbl %al, %esi
callq 0x83d0
addq $0x20, %r15
decq %rbp
jne 0x4218c
cmpq $0x0, 0x40(%rsp)
movq %r13, %rbp
leaq 0x8fa47(%rip), %r13     # 0xd1c7f
je 0x42265
xorl %ebx, %ebx
movq %r12, %r15
movq 0xa0(%rsp), %rdi
movq 0x8(%rdi,%rbx), %rdx
addq %rbx, %rdi
xorl %esi, %esi
movq %r13, %rcx
xorl %r8d, %r8d
callq 0x86c0
addq $0x20, %rbx
decq %r15
jne 0x4223f
cmpq 0x98(%rsp), %r14
jne 0x42111
jmp 0x422d2
movq 0x50(%rsp), %rax
movq 0x48(%rsp), %rcx
movq (%rax,%rcx), %rsi
movq 0x8(%rax,%rcx), %rdx
movq 0xc8d59(%rip), %rdi     # 0x10afe8
callq 0x84e0
movq %rax, %rbx
movl $0x12, %edx
movq %rax, %rdi
leaq 0x8f9a3(%rip), %rsi     # 0xd1c49
callq 0x84e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %rbx, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
movq 0x50(%rsp), %rdi
movq 0x48(%rsp), %r14
addq %r14, %rdi
movl $0x2e, %esi
movq $-0x1, %rdx
callq 0x88f0
cmpq $-0x1, %rax
je 0x42368
movq %rax, %rbx
movq 0x50(%rsp), %rsi
addq %r14, %rsi
leaq 0x20(%rsp), %r14
movq %r14, %rdi
movq %rax, %rdx
movq $-0x1, %rcx
callq 0x84a0
movq %r14, %rdi
leaq 0x9ec98(%rip), %rsi     # 0xe0fba
callq 0x8160
movl %eax, %r14d
testl %eax, %eax
je 0x423a5
movq 0x50(%rsp), %rsi
addq 0x48(%rsp), %rsi
leaq 0x158(%rsp), %r15
movq %r15, %rdi
movq %rbx, %rdx
movq $-0x1, %rcx
callq 0x84a0
movq %r15, %rdi
leaq 0x9079d(%rip), %rsi     # 0xd2af9
callq 0x8160
testl %eax, %eax
sete %bl
jmp 0x423a7
addq 0x50(%rsp), %r14
leaq 0x70(%rsp), %rbx
movq %rbx, %rdi
leaq 0xc9ab4(%rip), %rsi     # 0x10be30
movq %r14, %rdx
callq 0x31379
leaq 0x80(%rsp), %r14
movq %rbx, %rdi
leaq 0x90760(%rip), %rsi     # 0xd2af6
callq 0x88c0
leaq 0x30(%rsp), %rbx
jmp 0x4249a
movb $0x1, %bl
movq 0x48(%rsp), %r15
testl %r14d, %r14d
je 0x423d6
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
cmpq %rax, %rdi
je 0x423d6
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x423f2
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x8480
testb %bl, %bl
je 0x42462
addq 0x50(%rsp), %r15
leaq 0x138(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0x50803
leaq 0x30(%rsp), %rbx
movq 0xc9a16(%rip), %rcx     # 0x10be30
movq 0xc9a17(%rip), %r8      # 0x10be38
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x84d0
leaq 0x80(%rsp), %r14
movq %r14, 0x70(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x4251f
movq %rdx, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
jmp 0x42526
addq 0x50(%rsp), %r15
leaq 0x70(%rsp), %r14
movq %r14, %rdi
leaq 0xc99ba(%rip), %rsi     # 0x10be30
movq %r15, %rdx
callq 0x31379
leaq 0x30(%rsp), %rbx
movq %r14, %rdi
leaq 0x90669(%rip), %rsi     # 0xd2af6
leaq 0x80(%rsp), %r14
callq 0x88c0
movq %rbx, 0x20(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x424bd
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x424c3
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xe0(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x8540
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x42504
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x425f8
movq 0x80(%rsp), %rsi
jmp 0x425f0
movups (%rcx), %xmm0
movups %xmm0, (%r14)
movq 0x8(%rax), %rdx
movq %rdx, 0x78(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x70(%rsp), %rdi
leaq 0x905ac(%rip), %rsi     # 0xd2af6
callq 0x88c0
movq %rbx, 0x20(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x42572
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x42578
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
movq %rdx, 0x28(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xe0(%rsp), %rdi
leaq 0x20(%rsp), %rsi
callq 0x8540
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x425b9
movq 0x30(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x425d3
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x425f8
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x8480
movl $0x200, %edi            # imm = 0x200
callq 0x8470
movq %rax, %r14
movq 0xe0(%rsp), %rsi
movq %rax, %rdi
movl $0x10, %edx
callq 0x84c0
cmpq $0x0, 0x40(%rsp)
je 0x426bf
movl $0x8, %r15d
movq 0x120(%rsp), %rax
movq -0x8(%rax,%r15), %rsi
movq (%rax,%r15), %rdx
movq %r14, %rdi
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
movq 0x100(%rsp), %rax
movq -0x8(%rax,%r15), %rsi
movq (%rax,%r15), %rdx
movq %r14, %rdi
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
addq $0x20, %r15
decq %r12
jne 0x4262c
movq %r14, %rdi
callq 0x8600
movq %rsp, %r15
leaq 0xa0(%rsp), %rdi
callq 0x3123c
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x426f2
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x100(%rsp), %rdi
callq 0x3123c
leaq 0xc0(%rsp), %rdi
callq 0x3123c
movq 0x90(%rsp), %rdx
incq %rdx
movq 0x50(%rsp), %rbx
movq 0x58(%rsp), %rax
subq %rbx, %rax
sarq $0x5, %rax
movq %rdx, 0x90(%rsp)
cmpq %rax, %rdx
jne 0x41f32
leaq 0x120(%rsp), %rdi
callq 0x3123c
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0x4276b
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x50(%rsp), %rdi
callq 0x3123c
xorl %eax, %eax
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x9033d(%rip), %rdi     # 0xd2acd
leaq 0x902ea(%rip), %rsi     # 0xd2a81
leaq 0x902fa(%rip), %rcx     # 0xd2a98
movl $0x77, %edx
callq 0x82c0
leaq 0x8bd44(%rip), %rdi     # 0xce4f3
leaq 0x902cb(%rip), %rsi     # 0xd2a81
leaq 0x902db(%rip), %rcx     # 0xd2a98
movl $0x5d, %edx
callq 0x82c0
leaq 0x902e9(%rip), %rdi     # 0xd2ab7
leaq 0x902ac(%rip), %rsi     # 0xd2a81
leaq 0x902bc(%rip), %rcx     # 0xd2a98
movl $0x6c, %edx
callq 0x82c0
jmp 0x428da
movq %rax, %rbx
leaq 0x10(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
jne 0x428ff
jmp 0x42964
jmp 0x428e2
jmp 0x428da
jmp 0x428e2
jmp 0x428da
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r14, %rdi
jne 0x428ff
jmp 0x42964
jmp 0x428da
jmp 0x428da
movq %rax, %rbx
jmp 0x42866
jmp 0x4291f
jmp 0x42889
jmp 0x4291f
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x42866
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x42922
movq 0x148(%rsp), %rsi
jmp 0x428bd
movq %rax, %rbx
movq 0x70(%rsp), %rdi
cmpq %r14, %rdi
je 0x42922
movq 0x80(%rsp), %rsi
jmp 0x428bd
jmp 0x4291f
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x42922
movq 0x30(%rsp), %rsi
incq %rsi
jmp 0x428d1
jmp 0x428da
jmp 0x4291f
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq %r14, %rdi
callq 0x8480
jmp 0x42922
jmp 0x42912
movq %rax, %rbx
jmp 0x42964
movq %rax, %rbx
movl $0x208, %esi            # imm = 0x208
movq %r14, %rdi
jmp 0x42907
jmp 0x428f3
jmp 0x4291f
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %r12, %rdi
je 0x42964
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x42964
jmp 0x4291f
jmp 0x4291f
movq %rax, %rbx
jmp 0x4292f
jmp 0x4291f
jmp 0x4291f
jmp 0x4291f
jmp 0x4291f
movq %rax, %rbx
leaq 0xa0(%rsp), %rdi
callq 0x3123c
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x4294a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x100(%rsp), %rdi
callq 0x3123c
leaq 0xc0(%rsp), %rdi
callq 0x3123c
leaq 0x120(%rsp), %rdi
callq 0x3123c
movq 0xe0(%rsp), %rdi
leaq 0xf0(%rsp), %rax
cmpq %rax, %rdi
je 0x42996
movq 0xf0(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x50(%rsp), %rdi
callq 0x3123c
movq %rbx, %rdi
callq 0x8840