// File: /workspace/github_cpp_makefile_star2_O3/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, %rbp
movq %rcx, %r15
movq %rdx, 0xe0(%rsp)
movq %rsi, %rbx
movq %rdi, %r13
movq 0x952c4(%rip), %r14     # 0x101fe8
leaq 0x68332(%rip), %rsi     # 0xd505d
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 0x68314(%rip), %rsi     # 0xd5069
movl $0x10, %edx
movq %rax, %rdi
callq 0x84e0
movl 0x96708(%rip), %esi     # 0x103470
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 %r15, 0x48(%rsp)
je 0x6ce61
movl %r12d, 0xec(%rsp)
leaq 0x18(%rsp), %rax
movq %rax, -0x10(%rax)
movq (%r13), %rsi
movq 0x8(%r13), %rdx
addq %rsi, %rdx
leaq 0x8(%rsp), %r14
movq %r14, %rdi
callq 0x2ba06
leaq 0x68296(%rip), %rsi     # 0xd507a
movq %r14, %rdi
callq 0x88c0
movq 0xd8(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rsi
leaq 0x28(%rsp), %rdi
callq 0x6e90d
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %r8
movq 0x30(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
leaq 0x18(%rsp), %rsi
cmpq %rsi, %rcx
je 0x6ce2b
movq 0x18(%rsp), %rdi
movq 0x28(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x6ce52
leaq 0x38(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x6ce49
movq 0x38(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x6d07f
leaq 0x8(%rsp), %rdi
callq 0x8180
jmp 0x6d08d
movl 0x96609(%rip), %ecx     # 0x103470
movl %r12d, %eax
xorl %edx, %edx
divl %ecx
cvtsi2sd %rdx, %xmm0
cvtsi2sd %ecx, %xmm1
mulsd 0x67e19(%rip), %xmm1    # 0xd4c98
ucomisd %xmm1, %xmm0
jbe 0x6d046
movl $0x200, %edi            # imm = 0x200
callq 0x8470
movq %rax, %r12
movq (%r13), %rsi
movq %rax, %rdi
movl $0x10, %edx
callq 0x84c0
movq %r12, (%rsp)
cmpb $0x1, 0x965c4(%rip)     # 0x103476
jne 0x6cf40
movq %r12, %rdi
movq %r15, %rsi
callq 0x82f0
movq %rax, %r14
leaq 0x60afd(%rip), %r13     # 0xcd9ca
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
callq 0x84e0
movq (%rbp), %rax
movq 0x8(%rax), %rsi
movq %r14, %rdi
callq 0x82f0
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
movq %r13, %rsi
movq 0x48(%rsp), %r15
callq 0x84e0
leaq 0x64e3e(%rip), %rsi     # 0xd1d4a
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 %r15, %r15
je 0x6d039
leaq 0x168(%rsp), %r15
xorl %ebx, %ebx
leaq 0x158(%rsp), %r13
leaq 0x60a69(%rip), %r12     # 0xcd9cb
movq (%rsp), %r14
movl $0x1, %edx
movq %r14, %rdi
leaq 0x62c65(%rip), %rsi     # 0xcfbda
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 %rbp, %r14
movq (%rbp), %rax
movq %r15, 0x158(%rsp)
movq (%rax,%rbx), %rsi
movq 0x8(%rax,%rbx), %rdx
addq %rsi, %rdx
movq %r13, %rdi
callq 0x2ba06
movq %rsp, %rdi
movq %r13, %rsi
callq 0x502ab
movq 0x158(%rsp), %rdi
cmpq %r15, %rdi
je 0x6d00b
movq 0x168(%rsp), %rsi
incq %rsi
callq 0x8480
movq %r14, %rbp
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 0x48(%rsp)
jne 0x6cf62
movq (%rsp), %r12
movq %r12, %rdi
callq 0x8600
jmp 0x6dd03
testq %r15, %r15
je 0x6dd03
xorl %ebx, %ebx
leaq 0x60973(%rip), %r14     # 0xcd9cb
movq (%rbp), %rdi
movq 0x8(%rdi,%rbx), %rdx
addq %rbx, %rdi
xorl %esi, %esi
movq %r14, %rcx
xorl %r8d, %r8d
callq 0x86c0
addq $0x20, %rbx
decq %r15
jne 0x6d058
jmp 0x6dd03
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 0x6d0ba
movq %rsi, 0xf0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x100(%rsp)
jmp 0x6d0c2
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 0x6d0fd
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8480
movq %r13, 0x110(%rsp)
movq %rbp, 0x90(%rsp)
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6d129
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
movl $0x200, %edi            # imm = 0x200
callq 0x8470
movq %rax, %r14
movq 0xf0(%rsp), %rsi
movq %rax, %rdi
movl $0x10, %edx
callq 0x84c0
movq %r14, (%rsp)
cmpb $0x1, 0x96320(%rip)     # 0x103476
jne 0x6d1e7
movq %r14, %rdi
movq %r15, %rsi
callq 0x82f0
movq %rax, %r14
leaq 0x60859(%rip), %rsi     # 0xcd9ca
movl $0x1, %edx
movq %rax, %rdi
callq 0x84e0
movq 0xd8(%rsp), %rax
movq (%rax), %rax
movq (%rax), %rsi
movq %r14, %rdi
callq 0x82f0
movq %rax, %r12
leaq 0x6082c(%rip), %rsi     # 0xcd9ca
movl $0x1, %edx
movq %rax, %rdi
callq 0x84e0
leaq 0x64b98(%rip), %rsi     # 0xd1d4a
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 %r15, %r15
je 0x6d2c6
xorl %ebx, %ebx
leaq 0x629e1(%rip), %r12     # 0xcfbda
leaq 0x138(%rsp), %r13
movq %rsp, %rbp
movq 0x48(%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 0x502ab
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x6d2b9
movq 0x148(%rsp), %rsi
incq %rsi
callq 0x8480
addq $0x20, %rbx
decq %r15
jne 0x6d209
movq (%rsp), %rdi
callq 0x8600
movq 0x48(%rsp), %r13
movq 0xd8(%rsp), %r15
movq 0x8(%r15), %rax
subq (%r15), %rax
cmpq $0x8, %rax
je 0x6d7b8
movl $0x1, %ebx
leaq 0x118(%rsp), %rbp
movq %rsp, %r12
leaq 0x60(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x110(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %r14
movq %r14, %rdi
callq 0x2ba06
movq %r14, %rdi
leaq 0x67d4c(%rip), %rsi     # 0xd507c
callq 0x88c0
movq (%r15), %rax
movq -0x8(%rax,%rbx,8), %rsi
incq %rsi
leaq 0xb8(%rsp), %rdi
callq 0x6e90d
movq 0x50(%rsp), %rcx
movl $0xf, %edi
leaq 0x60(%rsp), %rax
cmpq %rax, %rcx
je 0x6d366
movq 0x60(%rsp), %rdi
movq 0x58(%rsp), %r8
movq 0xb8(%rsp), %rsi
movq 0xc0(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x6d3a3
movl $0xf, %edi
leaq 0xc8(%rsp), %r9
cmpq %r9, %rsi
je 0x6d39e
movq 0xc8(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x6d3af
leaq 0x50(%rsp), %rdi
callq 0x8180
jmp 0x6d3c0
leaq 0xb8(%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 0x6d3eb
movq %rdx, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
jmp 0x6d3f3
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 0x67c60(%rip), %rsi     # 0xd507c
callq 0x88c0
leaq 0x38(%rsp), %rsi
movq %rsi, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6d449
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x6d451
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 0x6e90d
movq 0x28(%rsp), %rcx
movl $0xf, %edi
leaq 0x38(%rsp), %rax
cmpq %rax, %rcx
je 0x6d496
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %r8
movq 0x98(%rsp), %rsi
movq 0xa0(%rsp), %rdx
leaq (%rdx,%r8), %rax
cmpq %rdi, %rax
jbe 0x6d4d3
movl $0xf, %edi
leaq 0xa8(%rsp), %r9
cmpq %r9, %rsi
je 0x6d4ce
movq 0xa8(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x6d4df
leaq 0x28(%rsp), %rdi
callq 0x8180
jmp 0x6d4f0
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 0x6d515
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x6d51d
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 0x6d55f
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x6d57b
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x6d59d
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x6d5c2
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x6d5de
movq 0x60(%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, 0x95e6e(%rip)     # 0x103476
jne 0x6d696
movq %r14, %rdi
movq %r13, %rsi
callq 0x82f0
movq %rax, %r14
movl $0x1, %edx
movq %rax, %rdi
leaq 0x6039f(%rip), %rsi     # 0xcd9ca
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 0x60374(%rip), %rsi     # 0xcd9ca
callq 0x84e0
movl $0x1, %edx
movq %r14, %rdi
leaq 0x646e0(%rip), %rsi     # 0xd1d4a
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 0x6d76f
xorl %r15d, %r15d
movq 0x48(%rsp), %r13
movq (%rsp), %r14
movl $0x1, %edx
movq %r14, %rdi
leaq 0x62520(%rip), %rsi     # 0xcfbda
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 0x502ab
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x6d762
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x8480
addq $0x20, %r15
decq %r13
jne 0x6d6a7
movq (%rsp), %rdi
callq 0x8600
movq 0x48(%rsp), %r13
movq 0xd8(%rsp), %r15
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6d7a1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
incq %rbx
movq 0x8(%r15), %rax
subq (%r15), %rax
sarq $0x3, %rax
cmpq %rax, %rbx
jne 0x6d2fd
movl 0x95cb2(%rip), %ecx     # 0x103470
movl 0xec(%rsp), %eax
xorl %edx, %edx
divl %ecx
xorps %xmm0, %xmm0
cvtsi2sd %rdx, %xmm0
cvtsi2sd %ecx, %xmm1
mulsd 0x674bb(%rip), %xmm1    # 0xd4c98
ucomisd %xmm1, %xmm0
jbe 0x6d89a
leaq 0x60(%rsp), %r14
movq %r14, -0x10(%r14)
movq 0x110(%rsp), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
addq %rsi, %rdx
leaq 0x50(%rsp), %rdi
callq 0x2ba06
movq 0x90(%rsp), %rbx
leaq 0x67861(%rip), %rsi     # 0xd507c
leaq 0x50(%rsp), %rdi
callq 0x88c0
movq 0x8(%r15), %rax
movq -0x8(%rax), %rsi
incq %rsi
leaq 0xb8(%rsp), %rdi
callq 0x6e90d
movq 0x50(%rsp), %rcx
movq 0x58(%rsp), %r8
movq 0xc0(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %r14, %rcx
je 0x6d862
movq 0x60(%rsp), %rdi
movq 0xb8(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x6d88e
leaq 0xc8(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x6d889
movq 0xc8(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x6d8da
leaq 0x50(%rsp), %rdi
callq 0x8180
jmp 0x6d8eb
testq %r13, %r13
movq 0x90(%rsp), %r15
je 0x6dce2
xorl %ebx, %ebx
leaq 0x60117(%rip), %r14     # 0xcd9cb
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 0x6d8b4
jmp 0x6dce2
leaq 0xb8(%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 0x6d915
movq %rsi, 0x70(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x80(%rsp)
jmp 0x6d91d
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 0x6773b(%rip), %rsi     # 0xd507c
leaq 0x70(%rsp), %rdi
callq 0x88c0
movl 0x1d8(%rsp), %esi
leaq 0x38(%rsp), %rdi
movq %rdi, 0x28(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x6d97a
movq %rdx, 0x28(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x38(%rsp)
jmp 0x6d982
movupd (%rcx), %xmm0
movupd %xmm0, (%rdi)
movq 0x8(%rax), %rdx
movq %rdx, 0x30(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x98(%rsp), %rdi
callq 0x2e7e2
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0xa0(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
leaq 0x38(%rsp), %rsi
cmpq %rsi, %rcx
je 0x6d9d1
movq 0x38(%rsp), %rdi
movq 0x98(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x6d9fd
leaq 0xa8(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x6d9f8
movq 0xa8(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x6da09
leaq 0x28(%rsp), %rdi
callq 0x8180
jmp 0x6da1a
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 0x6da3f
movq %rdx, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x6da47
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 0x6da85
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x6daa1
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6dac2
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6dae3
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
je 0x6dafa
movq 0x60(%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, 0x95952(%rip)     # 0x103476
jne 0x6dbb6
movq %r14, %rdi
movq %r13, %rsi
callq 0x82f0
movq %rax, %r14
leaq 0x5fe8b(%rip), %rsi     # 0xcd9ca
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 0x5fe5d(%rip), %rsi     # 0xcd9ca
movl $0x1, %edx
movq %rax, %rdi
callq 0x84e0
leaq 0x641c9(%rip), %rsi     # 0xd1d4a
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 0x6dcbd
leaq 0x188(%rsp), %r15
xorl %ebx, %ebx
leaq 0x178(%rsp), %r13
movq %rsp, %rbp
leaq 0x5fdf0(%rip), %r12     # 0xcd9cb
movq (%rsp), %r14
movl $0x1, %edx
movq %r14, %rdi
leaq 0x61fec(%rip), %rsi     # 0xcfbda
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 0x502ab
movq 0x178(%rsp), %rdi
cmpq %r15, %rdi
je 0x6dc8e
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 0x48(%rsp)
jne 0x6dbdb
movq (%rsp), %rdi
callq 0x8600
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6dce2
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6dd03
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 %r12, %rdi
jmp 0x6dfdd
jmp 0x6df40
movq %rax, %rbx
leaq 0xa8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6dd53
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x6dd53
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x6dd74
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x6dd74
movq %rax, %rbx
leaq 0x80(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6dd9a
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x6dd9a
movq %rax, %rbx
leaq 0xc8(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6ddc2
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x6ddc2
jmp 0x6ddbf
movq %rax, %rbx
movq 0x50(%rsp), %rdi
cmpq %r14, %rdi
jne 0x6df39
jmp 0x6dfc1
jmp 0x6df73
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq %r14, %rdi
jmp 0x6dfbc
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6de0f
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x6de0f
jmp 0x6de0c
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6dfe2
movq 0x18(%rsp), %rsi
jmp 0x6dfda
jmp 0x6dfa2
movq %rax, %rbx
movq 0x158(%rsp), %rdi
cmpq %r15, %rdi
je 0x6dfe2
movq 0x168(%rsp), %rsi
jmp 0x6dfda
jmp 0x6df73
movq %rax, %rbx
movq 0x178(%rsp), %rdi
cmpq %r15, %rdi
je 0x6dfa5
movq 0x188(%rsp), %rsi
jmp 0x6df98
jmp 0x6df73
jmp 0x6df73
jmp 0x6de84
movq %rax, %rbx
jmp 0x6df26
movq %rax, %rbx
jmp 0x6df01
movq %rax, %rbx
jmp 0x6dedf
movq %rax, %rbx
jmp 0x6dec3
movq %rax, %rbx
movq 0x98(%rsp), %rdi
leaq 0xa8(%rsp), %rax
cmpq %rax, %rdi
je 0x6dec3
movq 0xa8(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x6dedf
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x6df01
movq 0x80(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0xb8(%rsp), %rdi
leaq 0xc8(%rsp), %rax
cmpq %rax, %rdi
je 0x6df26
movq 0xc8(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x6dfc1
movq 0x60(%rsp), %rsi
jmp 0x6dfb9
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq %r14, %rdi
jmp 0x6df9b
movq %rax, %rbx
movq 0x138(%rsp), %rdi
leaq 0x148(%rsp), %rax
cmpq %rax, %rdi
je 0x6dfc1
movq 0x148(%rsp), %rsi
jmp 0x6dfb9
jmp 0x6dfa2
jmp 0x6dfa2
movq %rax, %rbx
jmp 0x6dfc1
movq %rax, %rbx
movq 0x118(%rsp), %rdi
leaq 0x128(%rsp), %rax
cmpq %rax, %rdi
je 0x6dfa5
movq 0x128(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x6dfa5
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x6dfc1
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x100(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x6dfe2
movq 0x100(%rsp), %rsi
incq %rsi
callq 0x8480
movq %rbx, %rdi
callq 0x8840