// File: /workspace/github_cpp_makefile_star2_O3/millanek[P]evo/process_vcf_get_sequences.cpp
// Function: print_split_incl_outgroup(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<unsigned long, std::allocator<unsigned long>> const&, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, unsigned long, std::vector<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>&, unsigned int, std::map<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<unsigned long, std::allocator<unsigned long>> const&, int)
void print_split_incl_outgroup(const std::string& currentScaffoldNum, const std::vector<string::size_type>& splits, const std::vector<std::string>& sampleNames, const size_t numSamples, std::vector<std::string>& scaffoldStrings, const unsigned int totalProcessedVariants, std::map<string, string>& outgroupSeqs, const std::string& outgroupName,const std::vector<string::size_type>& scaledSplits, const int fullScLength) {
    //for (std::vector<int>::size_type j = 0; j != splits.size(); j++) {
    
    std::cerr << "There are: " << splits.size() << " splits of size " << opt::splitNum << std::endl;
    
    std::ofstream* scaffoldFile;
    if (splits.size() == 0) {
        // Only print the whole scaffold if it contains a rasonble number of variants
        if (totalProcessedVariants % opt::splitNum > (opt::splitNum * 0.8)) {
            scaffoldFile = new std::ofstream(currentScaffoldNum.c_str());
            if (opt::bLDhat)
                *scaffoldFile << numSamples << "\t" << scaffoldStrings[0].length() << "\t" << "2" << std::endl;
            for (std::vector<std::string>::size_type i = 0; i != numSamples; i++) {
                *scaffoldFile << ">" << sampleNames[i] << std::endl;
                print80bpPerLineFile(scaffoldFile, scaffoldStrings[i]);
                scaffoldStrings[i] = "";
            }
            *scaffoldFile << ">" << outgroupName << std::endl;
            print80bpPerLineFile(scaffoldFile, outgroupSeqs[currentScaffoldNum]);
            scaffoldFile->close();
        } else {
            for (std::vector<std::string>::size_type i = 0; i != numSamples; i++) {
                scaffoldStrings[i] = "";
            }
            
        }
    } else {
        string firstSplitFileName = currentScaffoldNum + "_1_" + numToString(splits[0]);
        scaffoldFile = new std::ofstream(firstSplitFileName.c_str());
        if (opt::bLDhat)
            *scaffoldFile << numSamples << "\t" << splits[0] << "\t" << "2" << std::endl;
        for (std::vector<std::string>::size_type i = 0; i != numSamples; i++) {
            *scaffoldFile << ">" << sampleNames[i] << std::endl;
            print80bpPerLineFile(scaffoldFile, scaffoldStrings[i].substr(0,scaledSplits[0]));
        }
        *scaffoldFile << ">" << outgroupName << std::endl;
        print80bpPerLineFile(scaffoldFile, outgroupSeqs[currentScaffoldNum].substr(0,scaledSplits[0]));
        scaffoldFile->close();
        
        for (std::vector<int>::size_type j = 1; j != splits.size(); j++) {
            string splitFileName = currentScaffoldNum + "_" + numToString(splits[j-1]+1) + "_" + numToString(splits[j]);
            scaffoldFile = new std::ofstream(splitFileName.c_str());
            if (opt::bLDhat)
                *scaffoldFile << numSamples << "\t" << (splits[j] - splits[j-1]) << "\t" << "2" << std::endl;
            for (std::vector<std::string>::size_type i = 0; i != numSamples; i++) {
                *scaffoldFile << ">" << sampleNames[i] << std::endl;
                print80bpPerLineFile(scaffoldFile, scaffoldStrings[i].substr(scaledSplits[j-1], scaledSplits[j] - scaledSplits[j-1]));
            }
            *scaffoldFile << ">" << outgroupName << std::endl;
            print80bpPerLineFile(scaffoldFile, outgroupSeqs[currentScaffoldNum].substr(scaledSplits[j-1], scaledSplits[j] - scaledSplits[j-1]));
            scaffoldFile->close();
        }
        
        // Print the last part of the scaffold only if there are a reasonble number of variants
        if (totalProcessedVariants % opt::splitNum > (opt::splitNum * 0.8)) {
            string lastSplitFileName = currentScaffoldNum + "_" + numToString(splits[splits.size()-1]+1) + "_" + numToString(fullScLength);
            
            scaffoldFile = new std::ofstream(lastSplitFileName.c_str());
            if (opt::bLDhat)
                *scaffoldFile << numSamples << "\t" << (scaffoldStrings[0].length() - splits[splits.size()-1]) << "\t" << "2" << std::endl;
            for (std::vector<std::string>::size_type i = 0; i != numSamples; i++) {
                *scaffoldFile << ">" << sampleNames[i] << std::endl;
                print80bpPerLineFile(scaffoldFile, scaffoldStrings[i].substr(scaledSplits[splits.size()-1],std::string::npos));
                scaffoldStrings[i] = "";
            }
            *scaffoldFile << ">" << outgroupName << std::endl;
            print80bpPerLineFile(scaffoldFile, outgroupSeqs[currentScaffoldNum].substr(scaledSplits[scaledSplits.size()-1],std::string::npos));
            scaffoldFile->close();
        } else {
            for (std::vector<std::string>::size_type i = 0; i != numSamples; i++) {
                scaffoldStrings[i] = "";
            }
        }
    }
    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x218, %rsp            # imm = 0x218
movl %r9d, %r12d
movq %r8, %rbp
movq %rcx, 0x8(%rsp)
movq %rdx, 0xe8(%rsp)
movq %rsi, %r14
movq %rdi, %r15
movq 0x96980(%rip), %rbx     # 0x101fe8
leaq 0x699ee(%rip), %rsi     # 0xd505d
movl $0xb, %edx
movq %rbx, %rdi
callq 0x84e0
movq 0x8(%r14), %rsi
subq (%r14), %rsi
sarq $0x3, %rsi
movq %rbx, %rdi
callq 0x82f0
movq %rax, %rbx
leaq 0x699d0(%rip), %rsi     # 0xd5069
movl $0x10, %edx
movq %rax, %rdi
callq 0x84e0
movl 0x97dc4(%rip), %esi     # 0x103470
movq %rbx, %rdi
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 0x8(%r14), %rax
cmpq (%r14), %rax
movq %r15, 0xe0(%rsp)
je 0x6b7a7
movl %r12d, 0xf4(%rsp)
movq %r14, 0x90(%rsp)
leaq 0x20(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
addq %rsi, %rdx
leaq 0x10(%rsp), %rbx
movq %rbx, %rdi
callq 0x2ba06
leaq 0x69950(%rip), %rsi     # 0xd507a
movq %rbx, %rdi
callq 0x88c0
movq 0x90(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rsi
leaq 0x30(%rsp), %rdi
callq 0x6e90d
movq 0x10(%rsp), %rcx
movq 0x18(%rsp), %r8
movq 0x38(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
leaq 0x20(%rsp), %rsi
cmpq %rsi, %rcx
je 0x6b771
movq 0x20(%rsp), %rdi
movq 0x30(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x6b798
leaq 0x40(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x6b78f
movq 0x40(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x6ba88
leaq 0x10(%rsp), %rdi
callq 0x8180
jmp 0x6ba96
movl 0x97cc3(%rip), %ecx     # 0x103470
movl %r12d, %eax
xorl %edx, %edx
divl %ecx
cvtsi2sd %rdx, %xmm0
cvtsi2sd %ecx, %xmm1
mulsd 0x694d3(%rip), %xmm1    # 0xd4c98
ucomisd %xmm1, %xmm0
jbe 0x6ba49
movl $0x200, %edi            # imm = 0x200
callq 0x8470
movq %rax, %r14
movq (%r15), %rsi
movq %rax, %rdi
movl $0x10, %edx
callq 0x84c0
movq %r14, (%rsp)
cmpb $0x1, 0x97c7f(%rip)     # 0x103476
jne 0x6b882
movq %r14, %rdi
movq 0x8(%rsp), %rsi
callq 0x82f0
movq %rax, %rbx
leaq 0x621b6(%rip), %r12     # 0xcd9ca
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x84e0
movq (%rbp), %rax
movq 0x8(%rax), %rsi
movq %rbx, %rdi
callq 0x82f0
movq %rax, %rbx
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x84e0
leaq 0x664fc(%rip), %rsi     # 0xd1d4a
movl $0x1, %edx
movq %rbx, %rdi
callq 0x84e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %rbx, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
cmpq $0x0, 0x8(%rsp)
je 0x6b988
leaq 0x188(%rsp), %r15
xorl %r13d, %r13d
leaq 0x178(%rsp), %r14
leaq 0x62123(%rip), %rbx     # 0xcd9cb
movq (%rsp), %r12
movl $0x1, %edx
movq %r12, %rdi
leaq 0x6431f(%rip), %rsi     # 0xcfbda
callq 0x84e0
movq 0xe8(%rsp), %rax
movq (%rax), %rax
movq (%rax,%r13), %rsi
movq 0x8(%rax,%r13), %rdx
movq %r12, %rdi
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 %rbp, %r12
movq (%rbp), %rax
movq %r15, 0x178(%rsp)
movq (%rax,%r13), %rsi
movq 0x8(%rax,%r13), %rdx
addq %rsi, %rdx
movq %r14, %rdi
callq 0x2ba06
movq %rsp, %rdi
movq %r14, %rsi
callq 0x502ab
movq 0x178(%rsp), %rdi
cmpq %r15, %rdi
je 0x6b951
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x8480
movq %r12, %rbp
movq (%r12), %rdi
movq 0x8(%rdi,%r13), %rdx
addq %r13, %rdi
xorl %esi, %esi
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x86c0
addq $0x20, %r13
decq 0x8(%rsp)
jne 0x6b8a8
movq (%rsp), %r14
movq 0xe0(%rsp), %r15
leaq 0x6424b(%rip), %rsi     # 0xcfbda
movl $0x1, %edx
movq %r14, %rdi
callq 0x84e0
movq 0x258(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %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 0x250(%rsp), %rdi
movq %r15, %rsi
callq 0x3b46e
leaq 0x208(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x1f8(%rsp), %rbx
movq %rbx, %rdi
callq 0x2ba06
movq %rsp, %rdi
movq %rbx, %rsi
callq 0x502ab
movq 0x1f8(%rsp), %rdi
cmpq %r14, %rdi
je 0x6ba3b
movq 0x208(%rsp), %rsi
incq %rsi
callq 0x8480
movq (%rsp), %rdi
callq 0x8600
jmp 0x6c96f
movq 0x8(%rsp), %r15
testq %r15, %r15
je 0x6c96f
xorl %r14d, %r14d
leaq 0x61f6a(%rip), %rbx     # 0xcd9cb
movq (%rbp), %rdi
movq 0x8(%rdi,%r14), %rdx
addq %r14, %rdi
xorl %esi, %esi
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x86c0
addq $0x20, %r14
decq %r15
jne 0x6ba61
jmp 0x6c96f
leaq 0x30(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x84d0
leaq 0x108(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x6bac3
movq %rsi, 0xf8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x108(%rsp)
jmp 0x6bacb
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x100(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6bb06
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
movq %rbp, 0x98(%rsp)
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6bb2a
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8480
movl $0x200, %edi            # imm = 0x200
callq 0x8470
movq 0x8(%rsp), %r15
movq %rax, %r14
movq 0xf8(%rsp), %rsi
movq %rax, %rdi
movl $0x10, %edx
callq 0x84c0
movq %r14, (%rsp)
cmpb $0x1, 0x9791a(%rip)     # 0x103476
jne 0x6bbec
movq %r14, %rdi
movq %r15, %rsi
callq 0x82f0
movq %rax, %rbx
leaq 0x61e53(%rip), %rsi     # 0xcd9ca
movl $0x1, %edx
movq %rax, %rdi
callq 0x84e0
movq 0x90(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rsi
movq %rbx, %rdi
callq 0x82f0
movq %rax, %rbx
leaq 0x61e26(%rip), %rsi     # 0xcd9ca
movl $0x1, %edx
movq %rax, %rdi
callq 0x84e0
leaq 0x66192(%rip), %rsi     # 0xd1d4a
movl $0x1, %edx
movq %rbx, %rdi
callq 0x84e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %rbx, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
testq %r15, %r15
je 0x6bccc
xorl %r13d, %r13d
leaq 0x63fdb(%rip), %rbx     # 0xcfbda
leaq 0x158(%rsp), %r14
movq %rsp, %rbp
movq 0x8(%rsp), %r15
movq (%rsp), %r12
movl $0x1, %edx
movq %r12, %rdi
movq %rbx, %rsi
callq 0x84e0
movq 0xe8(%rsp), %rax
movq (%rax), %rax
movq (%rax,%r13), %rsi
movq 0x8(%rax,%r13), %rdx
movq %r12, %rdi
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 0x98(%rsp), %rax
movq (%rax), %rsi
addq %r13, %rsi
movq 0x260(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rcx
movq %r14, %rdi
xorl %edx, %edx
callq 0x84a0
movq %rbp, %rdi
movq %r14, %rsi
callq 0x502ab
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
cmpq %rax, %rdi
je 0x6bcbf
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x8480
addq $0x20, %r13
decq %r15
jne 0x6bc0f
movq (%rsp), %rbx
leaq 0x63f03(%rip), %rsi     # 0xcfbda
movl $0x1, %edx
movq %rbx, %rdi
callq 0x84e0
movq 0xe0(%rsp), %r13
movq 0x258(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %rbx, %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 0x250(%rsp), %rdi
movq %r13, %rsi
callq 0x3b46e
movq 0x260(%rsp), %rcx
movq (%rcx), %rcx
movq (%rcx), %rcx
leaq 0x1d8(%rsp), %rdi
movq %rax, %rsi
xorl %edx, %edx
callq 0x84a0
movq %rsp, %rdi
leaq 0x1d8(%rsp), %rsi
callq 0x502ab
leaq 0x1e8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6bd8e
movq 0x1e8(%rsp), %rsi
incq %rsi
callq 0x8480
movq (%rsp), %rdi
callq 0x8600
movq 0x90(%rsp), %rbx
movq 0x8(%rbx), %rax
subq (%rbx), %rax
cmpq $0x8, %rax
je 0x6c343
movl $0x1, %r15d
movq %rsp, %r14
leaq 0x138(%rsp), %rbp
leaq 0x60(%rsp), %rax
movq %rax, 0x50(%rsp)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %r12
movq %r12, %rdi
callq 0x2ba06
movq %r12, %rdi
leaq 0x6928f(%rip), %rsi     # 0xd507c
callq 0x88c0
movq (%rbx), %rax
movq -0x8(%rax,%r15,8), %rsi
incq %rsi
leaq 0xc0(%rsp), %rdi
callq 0x6e90d
movq 0x50(%rsp), %rcx
movl $0xf, %edi
leaq 0x60(%rsp), %rax
cmpq %rax, %rcx
je 0x6be23
movq 0x60(%rsp), %rdi
movq 0x58(%rsp), %r8
movq 0xc0(%rsp), %rsi
movq 0xc8(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x6be60
movl $0xf, %edi
leaq 0xd0(%rsp), %r9
cmpq %r9, %rsi
je 0x6be5b
movq 0xd0(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x6be6c
leaq 0x50(%rsp), %rdi
callq 0x8180
jmp 0x6be7d
leaq 0xc0(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x84d0
leaq 0x80(%rsp), %rsi
movq %rsi, 0x70(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x6bea8
movq %rdx, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
jmp 0x6beb0
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x78(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x70(%rsp), %rdi
leaq 0x691a3(%rip), %rsi     # 0xd507c
callq 0x88c0
leaq 0x40(%rsp), %rsi
movq %rsi, 0x30(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6bf06
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x6bf0e
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)
movq (%rbx), %rax
movq (%rax,%r15,8), %rsi
leaq 0xa0(%rsp), %rdi
callq 0x6e90d
movq 0x30(%rsp), %rcx
movl $0xf, %edi
leaq 0x40(%rsp), %rax
cmpq %rax, %rcx
je 0x6bf53
movq 0x40(%rsp), %rdi
movq 0x38(%rsp), %r8
movq 0xa0(%rsp), %rsi
movq 0xa8(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x6bf90
movl $0xf, %edi
leaq 0xb0(%rsp), %r9
cmpq %r9, %rsi
je 0x6bf8b
movq 0xb0(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x6bf9c
leaq 0x30(%rsp), %rdi
callq 0x8180
jmp 0x6bfad
leaq 0xa0(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x84d0
leaq 0x20(%rsp), %rsi
movq %rsi, 0x10(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x6bfd2
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x6bfda
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x6c01c
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x6c038
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x6c05a
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x6c07f
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x6c09b
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x8480
movl $0x200, %edi            # imm = 0x200
callq 0x8470
movq %rax, %r12
movq 0x10(%rsp), %rsi
movq %rax, %rdi
movl $0x10, %edx
callq 0x84c0
movq %r12, (%rsp)
cmpb $0x1, 0x973b1(%rip)     # 0x103476
jne 0x6c156
movq %r12, %rdi
movq 0x8(%rsp), %rsi
callq 0x82f0
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
leaq 0x618e0(%rip), %rsi     # 0xcd9ca
callq 0x84e0
movq (%rbx), %rax
movq (%rax,%r15,8), %rsi
subq -0x8(%rax,%r15,8), %rsi
movq %r12, %rdi
callq 0x82f0
movq %rax, %r12
movl $0x1, %edx
movq %rax, %rdi
leaq 0x618b5(%rip), %rsi     # 0xcd9ca
callq 0x84e0
movl $0x1, %edx
movq %r12, %rdi
leaq 0x65c21(%rip), %rsi     # 0xd1d4a
callq 0x84e0
movq (%r12), %rax
movq -0x18(%rax), %rdi
addq %r12, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %r12, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
cmpq $0x0, 0x8(%rsp)
je 0x6c232
xorl %r13d, %r13d
movq 0x8(%rsp), %rbx
movq (%rsp), %r12
movl $0x1, %edx
movq %r12, %rdi
leaq 0x63a5d(%rip), %rsi     # 0xcfbda
callq 0x84e0
movq 0xe8(%rsp), %rax
movq (%rax), %rax
movq (%rax,%r13), %rsi
movq 0x8(%rax,%r13), %rdx
movq %r12, %rdi
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 0x98(%rsp), %rax
movq (%rax), %rsi
addq %r13, %rsi
movq 0x260(%rsp), %rax
movq (%rax), %rax
movq -0x8(%rax,%r15,8), %rdx
movq (%rax,%r15,8), %rcx
subq %rdx, %rcx
movq %rbp, %rdi
callq 0x84a0
movq %r14, %rdi
movq %rbp, %rsi
callq 0x502ab
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x6c225
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x8480
addq $0x20, %r13
decq %rbx
jne 0x6c16a
movq (%rsp), %r12
movl $0x1, %edx
movq %r12, %rdi
leaq 0x63995(%rip), %rsi     # 0xcfbda
callq 0x84e0
movq 0xe0(%rsp), %r13
movq 0x90(%rsp), %rbx
movq 0x258(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %r12, %rdi
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 0x250(%rsp), %rdi
movq %r13, %rsi
callq 0x3b46e
movq 0x260(%rsp), %rcx
movq (%rcx), %rcx
movq -0x8(%rcx,%r15,8), %rdx
movq (%rcx,%r15,8), %rcx
subq %rdx, %rcx
leaq 0x118(%rsp), %rdi
movq %rax, %rsi
callq 0x84a0
movq %r14, %rdi
leaq 0x118(%rsp), %rsi
callq 0x502ab
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x6c307
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x8480
movq (%rsp), %rdi
callq 0x8600
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6c32c
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8480
incq %r15
movq 0x8(%rbx), %rax
subq (%rbx), %rax
sarq $0x3, %rax
cmpq %rax, %r15
jne 0x6bdc1
movl 0x97127(%rip), %ecx     # 0x103470
movl 0xf4(%rsp), %eax
xorl %edx, %edx
divl %ecx
cvtsi2sd %rdx, %xmm0
cvtsi2sd %ecx, %xmm1
mulsd 0x68933(%rip), %xmm1    # 0xd4c98
ucomisd %xmm1, %xmm0
jbe 0x6c420
leaq 0x60(%rsp), %r14
movq %r14, -0x10(%r14)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0x2ba06
movq 0x98(%rsp), %r15
movq 0x8(%rsp), %r12
leaq 0x68cdb(%rip), %rsi     # 0xd507c
leaq 0x50(%rsp), %rdi
callq 0x88c0
movq 0x8(%rbx), %rax
movq -0x8(%rax), %rsi
incq %rsi
leaq 0xc0(%rsp), %rdi
callq 0x6e90d
movq 0x50(%rsp), %rcx
movq 0x58(%rsp), %r8
movq 0xc8(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r14, %rcx
je 0x6c3e8
movq 0x60(%rsp), %rdi
movq 0xc0(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x6c414
leaq 0xd0(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x6c40f
movq 0xd0(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x6c466
leaq 0x50(%rsp), %rdi
callq 0x8180
jmp 0x6c477
movq 0x8(%rsp), %r12
testq %r12, %r12
movq 0x98(%rsp), %r15
je 0x6c94e
xorl %r14d, %r14d
leaq 0x6158b(%rip), %rbx     # 0xcd9cb
movq (%r15), %rdi
movq 0x8(%rdi,%r14), %rdx
addq %r14, %rdi
xorl %esi, %esi
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x86c0
addq $0x20, %r14
decq %r12
jne 0x6c440
jmp 0x6c94e
leaq 0xc0(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x84d0
leaq 0x80(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x6c4a1
movq %rsi, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
jmp 0x6c4a9
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x78(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x68baf(%rip), %rsi     # 0xd507c
leaq 0x70(%rsp), %rdi
callq 0x88c0
movl 0x268(%rsp), %esi
leaq 0x40(%rsp), %rdi
movq %rdi, 0x30(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6c506
movq %rdx, 0x30(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x40(%rsp)
jmp 0x6c50e
movupd (%rcx), %xmm0
movupd %xmm0, (%rdi)
movq 0x8(%rax), %rdx
movq %rdx, 0x38(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0xa0(%rsp), %rdi
callq 0x2e7e2
movq 0x30(%rsp), %rcx
movq 0x38(%rsp), %r8
movq 0xa8(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
leaq 0x40(%rsp), %rsi
cmpq %rsi, %rcx
je 0x6c55d
movq 0x40(%rsp), %rdi
movq 0xa0(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x6c589
leaq 0xb0(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x6c584
movq 0xb0(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x6c595
leaq 0x30(%rsp), %rdi
callq 0x8180
jmp 0x6c5a6
leaq 0xa0(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x84d0
leaq 0x20(%rsp), %rsi
movq %rsi, 0x10(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x6c5cb
movq %rdx, 0x10(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x20(%rsp)
jmp 0x6c5d3
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x18(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6c611
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x6c62d
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6c64e
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0xd0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6c66f
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0x6c686
movq 0x60(%rsp), %rsi
incq %rsi
callq 0x8480
movl $0x200, %edi            # imm = 0x200
callq 0x8470
movq %rax, %r14
movq 0x10(%rsp), %rsi
movq %rax, %rdi
movl $0x10, %edx
callq 0x84c0
movq %r14, (%rsp)
cmpb $0x1, 0x96dc6(%rip)     # 0x103476
jne 0x6c749
movq %r14, %rdi
movq %r12, %rsi
callq 0x82f0
movq %rax, %rbx
leaq 0x612ff(%rip), %rsi     # 0xcd9ca
movl $0x1, %edx
movq %rax, %rdi
callq 0x84e0
movq (%r15), %rax
movq 0x8(%rax), %rsi
movq 0x90(%rsp), %rax
movq 0x8(%rax), %rax
subq -0x8(%rax), %rsi
movq %rbx, %rdi
callq 0x82f0
movq %rax, %rbx
leaq 0x612c9(%rip), %rsi     # 0xcd9ca
movl $0x1, %edx
movq %rax, %rdi
callq 0x84e0
leaq 0x65635(%rip), %rsi     # 0xd1d4a
movl $0x1, %edx
movq %rbx, %rdi
callq 0x84e0
movq (%rbx), %rax
movq -0x18(%rax), %rdi
addq %rbx, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %rbx, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
testq %r12, %r12
je 0x6c860
leaq 0x1c8(%rsp), %r15
xorl %r13d, %r13d
leaq 0x1b8(%rsp), %r14
movq %rsp, %rbp
leaq 0x6125c(%rip), %rbx     # 0xcd9cb
movq (%rsp), %r12
movl $0x1, %edx
movq %r12, %rdi
leaq 0x63458(%rip), %rsi     # 0xcfbda
callq 0x84e0
movq 0xe8(%rsp), %rax
movq (%rax), %rax
movq (%rax,%r13), %rsi
movq 0x8(%rax,%r13), %rdx
movq %r12, %rdi
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 0x98(%rsp), %rax
movq (%rax), %rsi
addq %r13, %rsi
movq 0x90(%rsp), %rcx
movq 0x8(%rcx), %rax
subq (%rcx), %rax
movq 0x260(%rsp), %rcx
movq (%rcx), %rcx
movq -0x8(%rcx,%rax), %rdx
movq %r14, %rdi
movq $-0x1, %rcx
callq 0x84a0
movq %rbp, %rdi
movq %r14, %rsi
callq 0x502ab
movq 0x1b8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6c831
movq 0x1c8(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x98(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rdi,%r13), %rdx
addq %r13, %rdi
xorl %esi, %esi
movq %rbx, %rcx
xorl %r8d, %r8d
callq 0x86c0
addq $0x20, %r13
decq 0x8(%rsp)
jne 0x6c76f
movq (%rsp), %rbx
leaq 0x6336f(%rip), %rsi     # 0xcfbda
movl $0x1, %edx
movq %rbx, %rdi
callq 0x84e0
movq 0xe0(%rsp), %r14
movq 0x258(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %rbx, %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 0x250(%rsp), %rdi
movq %r14, %rsi
callq 0x3b46e
movq 0x260(%rsp), %rcx
movq 0x8(%rcx), %rcx
movq -0x8(%rcx), %rdx
leaq 0x198(%rsp), %rdi
movq %rax, %rsi
movq $-0x1, %rcx
callq 0x84a0
movq %rsp, %rdi
leaq 0x198(%rsp), %rsi
callq 0x502ab
leaq 0x1a8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6c929
movq 0x1a8(%rsp), %rsi
incq %rsi
callq 0x8480
movq (%rsp), %rdi
callq 0x8600
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6c94e
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x108(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6c96f
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x8480
addq $0x218, %rsp            # imm = 0x218
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0x1f8(%rsp), %rdi
cmpq %r14, %rdi
je 0x6cced
movq 0x208(%rsp), %rsi
jmp 0x6cce5
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq %r14, %rdi
jmp 0x6cce8
movq %rax, %rbx
leaq 0x1a8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6ccb0
movq 0x1a8(%rsp), %rsi
jmp 0x6cca3
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq %r14, %rdi
jmp 0x6cca6
movq %rax, %rbx
leaq 0xb0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6ca10
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x6ca10
movq %rax, %rbx
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x6ca31
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x6ca31
movq %rax, %rbx
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6ca57
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x6ca57
movq %rax, %rbx
leaq 0xd0(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6ca7f
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x6ca7f
jmp 0x6ca7c
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
jne 0x6cc44
jmp 0x6cccc
jmp 0x6cc7c
movq %rax, %rbx
leaq 0x1e8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6cccc
movq 0x1e8(%rsp), %rsi
jmp 0x6ccc4
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq %r14, %rdi
jmp 0x6ccc7
movq %rax, %rbx
leaq 0x40(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6caf1
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x6caf1
jmp 0x6caee
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6cced
movq 0x20(%rsp), %rsi
jmp 0x6cce5
movq %rax, %rbx
movq 0x178(%rsp), %rdi
cmpq %r15, %rdi
je 0x6cced
movq 0x188(%rsp), %rsi
jmp 0x6cce5
jmp 0x6ccad
movq %rax, %rbx
movq 0x1b8(%rsp), %rdi
cmpq %r15, %rdi
je 0x6ccb0
movq 0x1c8(%rsp), %rsi
jmp 0x6cca3
jmp 0x6cc7c
jmp 0x6cc7c
movq %rax, %rbx
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x6ccb0
movq 0x128(%rsp), %rsi
jmp 0x6cca3
jmp 0x6cc7c
jmp 0x6cb8f
movq %rax, %rbx
jmp 0x6cc31
movq %rax, %rbx
jmp 0x6cc0c
movq %rax, %rbx
jmp 0x6cbea
movq %rax, %rbx
jmp 0x6cbce
movq %rax, %rbx
movq 0xa0(%rsp), %rdi
leaq 0xb0(%rsp), %rax
cmpq %rax, %rdi
je 0x6cbce
movq 0xb0(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x30(%rsp), %rdi
leaq 0x40(%rsp), %rax
cmpq %rax, %rdi
je 0x6cbea
movq 0x40(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x6cc0c
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0xc0(%rsp), %rdi
leaq 0xd0(%rsp), %rax
cmpq %rax, %rdi
je 0x6cc31
movq 0xd0(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x6cccc
movq 0x60(%rsp), %rsi
jmp 0x6ccc4
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq %r12, %rdi
jmp 0x6cca6
movq %rax, %rbx
movq 0x158(%rsp), %rdi
leaq 0x168(%rsp), %rax
cmpq %rax, %rdi
je 0x6cccc
movq 0x168(%rsp), %rsi
jmp 0x6ccc4
jmp 0x6ccad
movq %rax, %rbx
jmp 0x6cccc
jmp 0x6ccad
movq %rax, %rbx
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x6ccb0
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x6ccb0
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x6cccc
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x108(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6cced
movq 0x108(%rsp), %rsi
incq %rsi
callq 0x8480
movq %rbx, %rdi
callq 0x8840