// File: 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
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq -0x18(%rbp), %rdi
callq 0x805f0
movl $0x10, -0x1c(%rbp)
movq -0x8(%rbp), %rsi
leaq 0xab70c(%rip), %rdx     # 0x13c15e
leaq -0x40(%rbp), %rdi
callq 0x3da80
movl $0x200, %edi            # imm = 0x200
callq 0xa5d0
movq %rax, -0x78(%rbp)
jmp 0x90a6b
leaq -0x40(%rbp), %rdi
callq 0xa220
movq -0x78(%rbp), %rdi
movq %rax, %rsi
movl -0x1c(%rbp), %edx
callq 0xa650
jmp 0x90a85
movq -0x78(%rbp), %rax
movq %rax, -0x48(%rbp)
movq -0x48(%rbp), %rdi
leaq 0xab6d6(%rip), %rsi     # 0x13c16e
callq 0xa5c0
movq %rax, -0x80(%rbp)
jmp 0x90aa3
movq -0x80(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0xa520
movq %rax, -0x88(%rbp)
jmp 0x90ab9
movq -0x88(%rbp), %rdi
leaq 0xb5d29(%rip), %rsi     # 0x1467f0
callq 0xa5c0
movq %rax, -0x90(%rbp)
jmp 0x90ad5
movq -0x90(%rbp), %rdi
movq 0x1084a5(%rip), %rsi    # 0x198f88
callq 0xa610
jmp 0x90aea
movq -0x48(%rbp), %rdi
leaq 0xab693(%rip), %rsi     # 0x13c188
callq 0xa5c0
movq %rax, -0x98(%rbp)
jmp 0x90b03
movq -0x98(%rbp), %rdi
movq -0x8(%rbp), %rsi
callq 0xa520
movq %rax, -0xa0(%rbp)
jmp 0x90b1c
movq -0xa0(%rbp), %rdi
leaq 0xb5cc6(%rip), %rsi     # 0x1467f0
callq 0xa5c0
movq %rax, -0xa8(%rbp)
jmp 0x90b38
movq -0xa8(%rbp), %rdi
movq 0x108442(%rip), %rsi    # 0x198f88
callq 0xa610
jmp 0x90b4d
movq -0x10(%rbp), %rsi
leaq -0x70(%rbp), %rdi
callq 0x3fee0
jmp 0x90b5c
movq -0x48(%rbp), %rsi
leaq -0x70(%rbp), %rdi
movl $0x9, %edx
movl $0x1, %ecx
callq 0x50da0
jmp 0x90b75
leaq -0x70(%rbp), %rdi
callq 0x3dfa0
movq -0x18(%rbp), %rdi
movq -0x48(%rbp), %rsi
callq 0x92440
jmp 0x90b8d
leaq -0x40(%rbp), %rdi
callq 0xac88
addq $0xb0, %rsp
popq %rbp
retq
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0x90bde
movq -0x78(%rbp), %rdi
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
movl $0x200, %esi            # imm = 0x200
callq 0xa5e0
jmp 0x90bde
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x70(%rbp), %rdi
callq 0x3dfa0
leaq -0x40(%rbp), %rdi
callq 0xac88
movq -0x50(%rbp), %rdi
callq 0xab50