// File: /workspace/github_cpp_makefile_star2_O2/millanek[P]evo/process_vcf_print_routines.cpp
// Function: print_AllH_pairwise_diff_stats(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&, int, std::vector<std::vector<double, std::allocator<double>>, std::allocator<std::vector<double, std::allocator<double>>>> const&)
void print_AllH_pairwise_diff_stats(const string& fileRoot, const std::vector<std::string>& samples, const int totalVariantNumber, const std::vector<std::vector<double> >& diffMatrixAllH) {
    std::ios_base::openmode mode_out = std::ios_base::out;
    string diffFileNameAllH = fileRoot + ".diff_matrix_AllH.txt";
    std::ofstream* pDiffAllHOutFile = new std::ofstream(diffFileNameAllH.c_str(), mode_out);
    *pDiffAllHOutFile << "# Input file:" << fileRoot << ".vcf" << std::endl;
    *pDiffAllHOutFile << "# Total number of segragating variant sites in this sample:" << totalVariantNumber << std::endl;
    *pDiffAllHOutFile << "# Differences between all haplotypes:" << std::endl;
    
    std::vector<std::string> header;
    for (std::vector<std::string>::size_type i = 0; i < samples.size(); i++) {
        header.push_back(samples[i] + "_H1");
        header.push_back(samples[i] + "_H2");
    }
    
    // print statistics
    print_vector(header,*pDiffAllHOutFile);
    print_matrix<const std::vector<std::vector<double> >&>(diffMatrixAllH, *pDiffAllHOutFile);
    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movq %rcx, %r14
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %rbx
leaq 0x57e1c(%rip), %rdx     # 0xa045e
leaq 0x48(%rsp), %rdi
movq %rbx, %rsi
callq 0x28806
movl $0x200, %edi            # imm = 0x200
callq 0x8490
movq %rax, %r12
movq 0x48(%rsp), %rsi
pushq $0x10
popq %rdx
movq %rax, %rdi
callq 0x84e0
leaq 0x579e8(%rip), %rsi     # 0xa005b
movq %r12, %rdi
callq 0x8480
movq %rax, %rdi
movq %rbx, %rsi
callq 0x8430
leaq 0x61c13(%rip), %rsi     # 0xaa2a0
movq %rax, %rdi
callq 0x8480
movq %rax, %rdi
callq 0x8230
leaq 0x57b8e(%rip), %rsi     # 0xa0232
movq %r12, %rdi
callq 0x8480
movq %rax, %rdi
movl %ebp, %esi
callq 0x8840
movq %rax, %rdi
callq 0x8230
leaq 0x57daf(%rip), %rsi     # 0xa0474
movq %r12, %rdi
callq 0x8480
movq %rax, %rdi
callq 0x8230
movq %r12, (%rsp)
movq %r14, 0x8(%rsp)
xorps %xmm0, %xmm0
leaq 0x10(%rsp), %r12
movaps %xmm0, (%r12)
andq $0x0, 0x10(%r12)
xorl %r14d, %r14d
leaq 0x68(%rsp), %rbp
leaq 0x57d9a(%rip), %rbx     # 0xa049a
xorl %r13d, %r13d
movq (%r15), %rsi
movq 0x8(%r15), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %rax, %r13
jae 0x48768
addq %r14, %rsi
movq %rbp, %rdi
leaq 0x57d37(%rip), %rdx     # 0xa045a
callq 0x28806
movq %r12, %rdi
movq %rbp, %rsi
callq 0x3490e
movq %rbp, %rdi
callq 0x8978
movq (%r15), %rsi
addq %r14, %rsi
movq %rbp, %rdi
movq %rbx, %rdx
callq 0x28806
movq %r12, %rdi
movq %rbp, %rsi
callq 0x3490e
movq %rbp, %rdi
callq 0x8978
incq %r13
addq $0x20, %r14
jmp 0x48703
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x297dc
leaq 0x30(%rsp), %rdi
pushq $0x9
popq %rdx
pushq $0x1
popq %rcx
movq (%rsp), %r14
movq %r14, %rsi
callq 0x2ea24
movq 0x8(%rsp), %rbx
leaq 0x30(%rsp), %rdi
callq 0x28a08
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4892d
leaq 0x10(%rsp), %rdi
callq 0x28a08
leaq 0x48(%rsp), %rdi
callq 0x8978
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x28a08
jmp 0x4880c
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq %r12, %rdi
callq 0x84a0
jmp 0x48816
jmp 0x487fa
movq %rax, %rbx
jmp 0x48816
jmp 0x487ff
jmp 0x487fa
movq %rax, %rbx
jmp 0x4880c
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
callq 0x8978
leaq 0x10(%rsp), %rdi
callq 0x28a08
leaq 0x48(%rsp), %rdi
callq 0x8978
movq %rbx, %rdi
callq 0x8870