// File: /workspace/github_cpp_makefile_star2_O3/millanek[P]evo/process_vcf_print_routines.cpp
// Function: print_doubleton_distribution(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> 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&, std::vector<std::vector<int, std::allocator<int>>, std::allocator<std::vector<int, std::allocator<int>>>>&)
void print_doubleton_distribution(const string& fileRoot, const std::vector<std::string>& header, std::vector<std::vector<int> >& doubletons) {
    rearrange_doubletons(doubletons);
    std::ios_base::openmode mode_out = std::ios_base::out;
    string doubletonFileName = fileRoot + ".doubletons.txt";
    std::ofstream* pDoubletonOutFile = new std::ofstream(doubletonFileName.c_str(), mode_out);
    *pDoubletonOutFile << "# Doubleton distribution:" << fileRoot << ".vcf" << std::endl;
    *pDoubletonOutFile << "# Input file:" << fileRoot << ".vcf" << std::endl;
    
    // Print the doubletons matrix
    print_vector(header,*pDoubletonOutFile);
    print_matrix<std::vector<std::vector<int> >&>(doubletons, *pDoubletonOutFile);
    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
movq %rdx, %rdi
callq 0x4fc5e
leaq 0x10(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq (%r12), %rsi
movq 0x8(%r12), %rdx
addq %rsi, %rdx
movq %rsp, %r15
movq %r15, %rdi
callq 0x2ba06
leaq 0x784ed(%rip), %rsi     # 0xd18df
movq %r15, %rdi
callq 0x88c0
movl $0x200, %edi            # imm = 0x200
callq 0x8470
movq %rax, %r15
movq (%rsp), %rsi
movq %rax, %rdi
movl $0x10, %edx
callq 0x84c0
leaq 0x784d0(%rip), %rsi     # 0xd18ef
movl $0x19, %edx
movq %r15, %rdi
callq 0x84e0
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r15, %rdi
callq 0x84e0
movq %rax, %r13
leaq 0x81169(%rip), %rsi     # 0xda5b0
movl $0x4, %edx
movq %rax, %rdi
callq 0x84e0
movq (%r13), %rax
movq -0x18(%rax), %rdi
addq %r13, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %r13, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
leaq 0x78486(%rip), %rsi     # 0xd1909
movl $0xd, %edx
movq %r15, %rdi
callq 0x84e0
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r15, %rdi
callq 0x84e0
movq %rax, %r12
leaq 0x81105(%rip), %rsi     # 0xda5b0
movl $0x4, %edx
movq %rax, %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
leaq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x2fc8e
leaq 0x20(%rsp), %rdi
movq %r15, %rsi
movl $0x9, %edx
movl $0x1, %ecx
callq 0x36ba0
leaq 0x20(%rsp), %rdi
callq 0x2e784
movq %rbx, %rdi
movq %r15, %rsi
callq 0x5ae92
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x5952f
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8480
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x20(%rsp), %rdi
callq 0x2e784
jmp 0x59564
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq %r15, %rdi
callq 0x8480
jmp 0x59564
jmp 0x59561
movq %rax, %rbx
movq (%rsp), %rdi
cmpq %rbp, %rdi
je 0x5957a
movq 0x10(%rsp), %rsi
incq %rsi
callq 0x8480
movq %rbx, %rdi
callq 0x8840