// File: /workspace/github_cpp_makefile_star2_O1/millanek[P]evo/process_vcf_get_sequences.cpp
// Function: print_split(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::vector<unsigned long, std::allocator<unsigned long>> const&, int)
void print_split(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,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->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->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->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[scaledSplits.size()-1],std::string::npos));
                scaffoldStrings[i] = "";
            }
            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 $0x198, %rsp            # imm = 0x198
movl %r9d, %r12d
movq %r8, %r15
movq %rcx, %r13
movq %rdx, 0xe0(%rsp)
movq %rsi, %rbx
movq %rdi, %rbp
movq 0x9df7a(%rip), %r14     # 0x10afe8
leaq 0x6e4a8(%rip), %rsi     # 0xdb51d
movl $0xb, %edx
movq %r14, %rdi
callq 0x84e0
movq 0x8(%rbx), %rsi
subq (%rbx), %rsi
sarq $0x3, %rsi
movq %r14, %rdi
callq 0x82f0
movq %rax, %r14
leaq 0x6e48a(%rip), %rsi     # 0xdb529
movl $0x10, %edx
movq %rax, %rdi
callq 0x84e0
movl 0x9f3b6(%rip), %esi     # 0x10c468
movq %r14, %rdi
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 0x8(%rbx), %rax
movq %rbx, 0xd8(%rsp)
cmpq (%rbx), %rax
movq %r13, 0x88(%rsp)
je 0x6d1af
movl %r12d, 0xec(%rsp)
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%rbp), %rsi
movq 0x8(%rbp), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x2e45c
leaq 0x6e409(%rip), %rsi     # 0xdb53a
movq %r14, %rdi
callq 0x88c0
movq 0xd8(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rsi
leaq 0x28(%rsp), %rdi
callq 0x6ec27
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x30(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
leaq 0x18(%rsp), %rdi
cmpq %rdi, %rcx
je 0x6d178
movq 0x18(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x6d19b
leaq 0x38(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x6d192
movq 0x38(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x6d3c5
movq 0x28(%rsp), %rsi
leaq 0x8(%rsp), %rdi
callq 0x8180
jmp 0x6d3d3
movl 0x9f2b3(%rip), %ecx     # 0x10c468
movl %r12d, %eax
xorl %edx, %edx
divl %ecx
cvtsi2sd %rdx, %xmm0
cvtsi2sd %ecx, %xmm1
mulsd 0x6df8b(%rip), %xmm1    # 0xdb158
ucomisd %xmm1, %xmm0
jbe 0x6d38d
movl $0x200, %edi            # imm = 0x200
callq 0x8470
movq %rax, %r14
movq (%rbp), %rsi
movq %rax, %rdi
movl $0x10, %edx
callq 0x84c0
movq %r14, (%rsp)
cmpb $0x1, 0x9f26e(%rip)     # 0x10c46e
jne 0x6d288
movq %r14, %rdi
movq %r13, %rsi
callq 0x82f0
movq %rax, %r14
leaq 0x64a63(%rip), %r12     # 0xd1c7e
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x84e0
movq (%r15), %rax
movq 0x8(%rax), %rsi
movq %r14, %rdi
callq 0x82f0
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r12, %rsi
callq 0x84e0
leaq 0x6afb8(%rip), %rsi     # 0xd820c
movl $0x1, %edx
movq %r14, %rdi
callq 0x84e0
movq (%r14), %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
testq %r13, %r13
je 0x6d37f
leaq 0x168(%rsp), %rbp
xorl %ebx, %ebx
leaq 0x158(%rsp), %r13
leaq 0x649d5(%rip), %r12     # 0xd1c7f
movq (%rsp), %r14
movl $0x1, %edx
movq %r14, %rdi
leaq 0x696b5(%rip), %rsi     # 0xd6972
callq 0x84e0
movq 0xe0(%rsp), %rax
movq (%rax), %rax
movq (%rax,%rbx), %rsi
movq 0x8(%rax,%rbx), %rdx
movq %r14, %rdi
callq 0x84e0
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 %r15, %r14
movq (%r15), %rax
movq %rbp, 0x158(%rsp)
movq (%rax,%rbx), %rsi
movq 0x8(%rax,%rbx), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x2e45c
movq %rsp, %rdi
movq %r13, %rsi
callq 0x53420
movq 0x158(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6d352
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x8480
movq %r14, %r15
movq (%r14), %rdi
movq 0x8(%rdi,%rbx), %rdx
addq %rbx, %rdi
xorl %esi, %esi
movq %r12, %rcx
xorl %r8d, %r8d
callq 0x86c0
addq $0x20, %rbx
decq 0x88(%rsp)
jne 0x6d2aa
movq (%rsp), %rdi
callq 0x8600
jmp 0x6e044
testq %r13, %r13
je 0x6e044
xorl %ebx, %ebx
leaq 0x648e0(%rip), %r14     # 0xd1c7f
movq (%r15), %rdi
movq 0x8(%rdi,%rbx), %rdx
addq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x86c0
addq $0x20, %rbx
decq %r13
jne 0x6d39f
jmp 0x6e044
leaq 0x28(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x84d0
leaq 0x100(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x6d400
movq %rsi, 0xf0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x100(%rsp)
jmp 0x6d408
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0xf8(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6d443
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8480
movq %r15, 0x90(%rsp)
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6d467
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
movl $0x200, %edi            # imm = 0x200
callq 0x8470
movq 0xd8(%rsp), %rbx
movq %rax, %r14
movq 0xf0(%rsp), %rsi
movq %rax, %rdi
movl $0x10, %edx
callq 0x84c0
movq %r14, (%rsp)
cmpb $0x1, 0x9efd2(%rip)     # 0x10c46e
jne 0x6d525
movq %r14, %rdi
movq %r13, %rsi
callq 0x82f0
movq %rax, %r14
leaq 0x647c7(%rip), %rsi     # 0xd1c7e
movl $0x1, %edx
movq %rax, %rdi
callq 0x84e0
movq (%rbx), %rax
movq (%rax), %rsi
movq %r14, %rdi
callq 0x82f0
movq %rax, %r12
leaq 0x647a2(%rip), %rsi     # 0xd1c7e
movl $0x1, %edx
movq %rax, %rdi
callq 0x84e0
leaq 0x6ad1c(%rip), %rsi     # 0xd820c
movl $0x1, %edx
movq %r12, %rdi
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
movq %rbp, 0x110(%rsp)
testq %r13, %r13
je 0x6d60f
xorl %ebx, %ebx
leaq 0x69433(%rip), %r12     # 0xd6972
leaq 0x138(%rsp), %r13
movq %rsp, %rbp
movq 0x88(%rsp), %r15
movq (%rsp), %r14
movl $0x1, %edx
movq %r14, %rdi
movq %r12, %rsi
callq 0x84e0
movq 0xe0(%rsp), %rax
movq (%rax), %rax
movq (%rax,%rbx), %rsi
movq 0x8(%rax,%rbx), %rdx
movq %r14, %rdi
callq 0x84e0
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 0x90(%rsp), %rax
movq (%rax), %rsi
addq %rbx, %rsi
movq 0x1d0(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rcx
movq %r13, %rdi
xorl %edx, %edx
callq 0x84a0
movq %rbp, %rdi
movq %r13, %rsi
callq 0x53420
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x6d602
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x8480
addq $0x20, %rbx
decq %r15
jne 0x6d552
movq (%rsp), %rdi
callq 0x8600
movq 0x88(%rsp), %r13
movq 0xd8(%rsp), %r15
movq 0x8(%r15), %rax
subq (%r15), %rax
cmpq $0x8, %rax
je 0x6db08
movl $0x1, %ebx
leaq 0x118(%rsp), %rbp
movq %rsp, %r12
leaq 0x58(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x110(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0x2e45c
movq %r14, %rdi
leaq 0x6dec0(%rip), %rsi     # 0xdb53c
callq 0x88c0
movq (%r15), %rax
movq -0x8(%rax,%rbx,8), %rsi
incq %rsi
leaq 0xb8(%rsp), %rdi
callq 0x6ec27
movq 0x48(%rsp), %rcx
movl $0xf, %esi
leaq 0x58(%rsp), %rax
cmpq %rax, %rcx
je 0x6d6b2
movq 0x58(%rsp), %rsi
movq 0x50(%rsp), %r8
movq 0xc0(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0x6d6ec
movl $0xf, %esi
leaq 0xc8(%rsp), %rdi
cmpq %rdi, 0xb8(%rsp)
je 0x6d6e7
movq 0xc8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x6d700
movq 0xb8(%rsp), %rsi
leaq 0x48(%rsp), %rdi
callq 0x8180
jmp 0x6d711
leaq 0xb8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x84d0
leaq 0x78(%rsp), %rsi
movq %rsi, 0x68(%rsp)
movq (%rax), %rdx
leaq 0x10(%rax), %rcx
cmpq %rcx, %rdx
je 0x6d736
movq %rdx, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x6d73e
movupd (%rcx), %xmm0
movupd %xmm0, (%rsi)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x70(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x68(%rsp), %rdi
leaq 0x6ddd5(%rip), %rsi     # 0xdb53c
callq 0x88c0
leaq 0x38(%rsp), %rsi
movq %rsi, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6d794
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x6d79c
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)
movq (%r15), %rax
movq (%rax,%rbx,8), %rsi
leaq 0x98(%rsp), %rdi
callq 0x6ec27
movq 0x28(%rsp), %rcx
movl $0xf, %esi
leaq 0x38(%rsp), %rax
cmpq %rax, %rcx
je 0x6d7e1
movq 0x38(%rsp), %rsi
movq 0x30(%rsp), %r8
movq 0xa0(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rsi, %rax
jbe 0x6d81b
movl $0xf, %esi
leaq 0xa8(%rsp), %rdi
cmpq %rdi, 0x98(%rsp)
je 0x6d816
movq 0xa8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x6d82f
movq 0x98(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x8180
jmp 0x6d840
leaq 0x98(%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 0x6d865
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x6d86d
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)
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x6d8af
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x6d8cb
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x6d8e7
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x6d90c
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x6d928
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x8480
movl $0x200, %edi            # imm = 0x200
callq 0x8470
movq %rax, %r14
movq 0x8(%rsp), %rsi
movq %rax, %rdi
movl $0x10, %edx
callq 0x84c0
movq %r14, (%rsp)
cmpb $0x1, 0x9eb1c(%rip)     # 0x10c46e
jne 0x6d9e0
movq %r14, %rdi
movq %r13, %rsi
callq 0x82f0
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0x64309(%rip), %rsi     # 0xd1c7e
callq 0x84e0
movq (%r15), %rax
movq (%rax,%rbx,8), %rsi
subq -0x8(%rax,%rbx,8), %rsi
movq %r14, %rdi
callq 0x82f0
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0x642de(%rip), %rsi     # 0xd1c7e
callq 0x84e0
movl $0x1, %edx
movq %r14, %rdi
leaq 0x6a858(%rip), %rsi     # 0xd820c
callq 0x84e0
movq (%r14), %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
testq %r13, %r13
je 0x6dabc
xorl %r15d, %r15d
movq 0x88(%rsp), %r13
movq (%rsp), %r14
movl $0x1, %edx
movq %r14, %rdi
leaq 0x68f6b(%rip), %rsi     # 0xd6972
callq 0x84e0
movq 0xe0(%rsp), %rax
movq (%rax), %rax
movq (%rax,%r15), %rsi
movq 0x8(%rax,%r15), %rdx
movq %r14, %rdi
callq 0x84e0
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 0x90(%rsp), %rax
movq (%rax), %rsi
addq %r15, %rsi
movq 0x1d0(%rsp), %rax
movq (%rax), %rax
movq -0x8(%rax,%rbx,8), %rdx
movq (%rax,%rbx,8), %rcx
subq %rdx, %rcx
movq %rbp, %rdi
callq 0x84a0
movq %r12, %rdi
movq %rbp, %rsi
callq 0x53420
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x6daaf
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x8480
addq $0x20, %r15
decq %r13
jne 0x6d9f4
movq (%rsp), %rdi
callq 0x8600
movq 0x88(%rsp), %r13
movq 0xd8(%rsp), %r15
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6daf1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
incq %rbx
movq 0x8(%r15), %rax
subq (%r15), %rax
sarq $0x3, %rax
cmpq %rax, %rbx
jne 0x6d649
movl 0x9e95a(%rip), %ecx     # 0x10c468
movl 0xec(%rsp), %eax
xorl %edx, %edx
divl %ecx
xorps %xmm0, %xmm0
cvtsi2sd %rdx, %xmm0
cvtsi2sd %ecx, %xmm1
mulsd 0x6d62b(%rip), %xmm1    # 0xdb158
ucomisd %xmm1, %xmm0
jbe 0x6dbf0
leaq 0x58(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x110(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x48(%rsp), %rdi
callq 0x2e45c
movq 0x90(%rsp), %rbx
leaq 0x6d9d1(%rip), %rsi     # 0xdb53c
leaq 0x48(%rsp), %rdi
callq 0x88c0
movq 0x8(%r15), %rax
movq -0x8(%rax), %rsi
incq %rsi
leaq 0xb8(%rsp), %rdi
callq 0x6ec27
leaq 0x38(%rsp), %r12
movq 0x48(%rsp), %rcx
movq 0x50(%rsp), %r8
movq 0xc0(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r14, %rcx
je 0x6dbb7
movq 0x58(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x6dbdc
leaq 0xc8(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x6dbd7
movq 0xc8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x6dc30
movq 0xb8(%rsp), %rsi
leaq 0x48(%rsp), %rdi
callq 0x8180
jmp 0x6dc41
testq %r13, %r13
movq 0x90(%rsp), %r15
je 0x6e023
xorl %ebx, %ebx
leaq 0x64075(%rip), %r14     # 0xd1c7f
movq (%r15), %rdi
movq 0x8(%rdi,%rbx), %rdx
addq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x86c0
addq $0x20, %rbx
decq %r13
jne 0x6dc0a
jmp 0x6e023
leaq 0xb8(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x84d0
leaq 0x78(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x6dc65
movq %rsi, 0x68(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x78(%rsp)
jmp 0x6dc6d
movupd (%rcx), %xmm0
movupd %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x70(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x6d8ab(%rip), %rsi     # 0xdb53c
leaq 0x68(%rsp), %rdi
callq 0x88c0
movl 0x1d8(%rsp), %esi
movq %r12, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6dcc5
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x6dccf
movupd (%rcx), %xmm0
movupd %xmm0, (%r12)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x98(%rsp), %rdi
callq 0x31297
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0xa0(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %r12, %rcx
je 0x6dd19
movq 0x38(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x6dd3e
leaq 0xa8(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x6dd39
movq 0xa8(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x6dd52
movq 0x98(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x8180
jmp 0x6dd63
leaq 0x98(%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 0x6dd88
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x6dd90
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 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6ddce
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x28(%rsp), %rdi
cmpq %r12, %rdi
je 0x6dde5
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6de00
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6de21
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
je 0x6de38
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x8480
movl $0x200, %edi            # imm = 0x200
callq 0x8470
movq %rax, %r14
movq 0x8(%rsp), %rsi
movq %rax, %rdi
movl $0x10, %edx
callq 0x84c0
movq %r14, (%rsp)
cmpb $0x1, 0x9e60c(%rip)     # 0x10c46e
jne 0x6def4
movq %r14, %rdi
movq %r13, %rsi
callq 0x82f0
movq %rax, %r14
leaq 0x63e01(%rip), %rsi     # 0xd1c7e
movl $0x1, %edx
movq %rax, %rdi
callq 0x84e0
movq (%rbx), %rax
movq 0x8(%rax), %rsi
movq 0x8(%r15), %rax
subq -0x8(%rax), %rsi
movq %r14, %rdi
callq 0x82f0
movq %rax, %r12
leaq 0x63dd3(%rip), %rsi     # 0xd1c7e
movl $0x1, %edx
movq %rax, %rdi
callq 0x84e0
leaq 0x6a34d(%rip), %rsi     # 0xd820c
movl $0x1, %edx
movq %r12, %rdi
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
testq %r13, %r13
je 0x6dffe
leaq 0x188(%rsp), %r15
xorl %ebx, %ebx
leaq 0x178(%rsp), %r13
movq %rsp, %rbp
leaq 0x63d66(%rip), %r12     # 0xd1c7f
movq (%rsp), %r14
movl $0x1, %edx
movq %r14, %rdi
leaq 0x68a46(%rip), %rsi     # 0xd6972
callq 0x84e0
movq 0xe0(%rsp), %rax
movq (%rax), %rax
movq (%rax,%rbx), %rsi
movq 0x8(%rax,%rbx), %rdx
movq %r14, %rdi
callq 0x84e0
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 0x90(%rsp), %rax
movq (%rax), %rsi
addq %rbx, %rsi
movq 0x1d0(%rsp), %rax
movq 0x8(%rax), %rax
movq -0x8(%rax), %rdx
movq %r13, %rdi
movq $-0x1, %rcx
callq 0x84a0
movq %rbp, %rdi
movq %r13, %rsi
callq 0x53420
movq 0x178(%rsp), %rdi
cmpq %r15, %rdi
je 0x6dfcc
movq 0x188(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x90(%rsp), %rax
movq (%rax), %rdi
movq 0x8(%rdi,%rbx), %rdx
addq %rbx, %rdi
xorl %esi, %esi
movq %r12, %rcx
xorl %r8d, %r8d
callq 0x86c0
addq $0x20, %rbx
decq 0x88(%rsp)
jne 0x6df19
movq (%rsp), %rdi
callq 0x8600
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6e023
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6e044
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x8480
addq $0x198, %rsp            # imm = 0x198
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq %r14, %rdi
jmp 0x6e312
jmp 0x6e275
movq %rax, %rbx
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6e094
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x6e094
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x6e0b5
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x6e0b5
movq %rax, %rbx
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6e0d5
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x6e0d5
movq %rax, %rbx
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6e0fd
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x6e0fd
jmp 0x6e0fa
movq %rax, %rbx
movq 0x48(%rsp), %rdi
cmpq %r14, %rdi
jne 0x6e26e
jmp 0x6e2f6
jmp 0x6e2a8
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq %r14, %rdi
jmp 0x6e2f1
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6e14a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x6e14a
jmp 0x6e147
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6e317
movq 0x18(%rsp), %rsi
jmp 0x6e30f
jmp 0x6e2d7
movq %rax, %rbx
movq 0x158(%rsp), %rdi
cmpq %rbp, %rdi
je 0x6e317
movq 0x168(%rsp), %rsi
jmp 0x6e30f
jmp 0x6e2a8
movq %rax, %rbx
movq 0x178(%rsp), %rdi
cmpq %r15, %rdi
je 0x6e2da
movq 0x188(%rsp), %rsi
jmp 0x6e2cd
jmp 0x6e2a8
jmp 0x6e2a8
jmp 0x6e1bf
movq %rax, %rbx
jmp 0x6e25b
movq %rax, %rbx
jmp 0x6e236
movq %rax, %rbx
jmp 0x6e21a
movq %rax, %rbx
jmp 0x6e1fe
movq %rax, %rbx
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x6e1fe
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x6e21a
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x68(%rsp), %rdi
leaq 0x78(%rsp), %rax
cmpq %rax, %rdi
je 0x6e236
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x6e25b
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x6e2f6
movq 0x58(%rsp), %rsi
jmp 0x6e2ee
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq %r14, %rdi
jmp 0x6e2d0
movq %rax, %rbx
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x6e2f6
movq 0x148(%rsp), %rsi
jmp 0x6e2ee
jmp 0x6e2d7
jmp 0x6e2d7
movq %rax, %rbx
jmp 0x6e2f6
movq %rax, %rbx
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x6e2da
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x6e2da
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6e2f6
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6e317
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x8480
movq %rbx, %rdi
callq 0x8840