// File: /workspace/github_cpp_makefile_star2_O2/millanek[P]evo/process_vcf_print_routines.cpp
// Function: print_H1_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>>>>&, int, std::vector<std::vector<double, std::allocator<double>>, std::allocator<std::vector<double, std::allocator<double>>>> const&)
void print_H1_pairwise_diff_stats(const string& fileRoot, std::vector<std::string>& header, const int totalVariantNumber, const std::vector<std::vector<double> >& diffMatrixH1) {
    std::ios_base::openmode mode_out = std::ios_base::out;
    string diffFileNameH1 = fileRoot + ".diff_matrix_H1.txt";
    std::ofstream* pDiffH1OutFile = new std::ofstream(diffFileNameH1.c_str(), mode_out);
    *pDiffH1OutFile << "# Input file:" << fileRoot << ".vcf" << std::endl;
    *pDiffH1OutFile << "# Total number of segragating variant sites in this sample:" << totalVariantNumber << std::endl;
    *pDiffH1OutFile << "# Differences between H1 haplotypes:" << std::endl;

    for (std::vector<std::string>::size_type i = 0; i < header.size(); i++) {
        header[i] = header[i] + "_H1";
    }
    
    // print
    print_vector(header,*pDiffH1OutFile);
    print_matrix<const std::vector<std::vector<double> >&>(diffMatrixH1, *pDiffH1OutFile);
    
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rcx, %rbx
movl %edx, %ebp
movq %rsi, %r15
movq %rdi, %r12
leaq 0x57f75(%rip), %rdx     # 0xa0421
leaq 0x28(%rsp), %rdi
movq %r12, %rsi
callq 0x28806
movl $0x200, %edi            # imm = 0x200
callq 0x8490
movq %rax, %r14
movq 0x28(%rsp), %rsi
pushq $0x10
popq %rdx
movq %rax, %rdi
callq 0x84e0
leaq 0x57b7e(%rip), %rsi     # 0xa005b
movq %r14, %rdi
callq 0x8480
movq %rax, %rdi
movq %r12, %rsi
callq 0x8430
leaq 0x61da9(%rip), %rsi     # 0xaa2a0
movq %rax, %rdi
callq 0x8480
movq %rax, %rdi
callq 0x8230
leaq 0x57d24(%rip), %rsi     # 0xa0232
movq %r14, %rdi
callq 0x8480
movq %rax, %rdi
movl %ebp, %esi
callq 0x8840
movq %rax, %rdi
callq 0x8230
leaq 0x57f06(%rip), %rsi     # 0xa0435
movq %r14, %rdi
callq 0x8480
movq %rax, %rdi
callq 0x8230
movq %rbx, 0x8(%rsp)
xorl %ebp, %ebp
leaq 0x57f0d(%rip), %r12     # 0xa045a
leaq 0x48(%rsp), %r13
xorl %ebx, %ebx
movq (%r15), %rsi
movq 0x8(%r15), %rax
subq %rsi, %rax
sarq $0x5, %rax
cmpq %rax, %rbx
jae 0x48594
addq %rbp, %rsi
movq %r13, %rdi
movq %r12, %rdx
callq 0x28806
movq (%r15), %rdi
addq %rbp, %rdi
movq %r13, %rsi
callq 0x8550
movq %r13, %rdi
callq 0x8978
incq %rbx
addq $0x20, %rbp
jmp 0x48554
leaq 0x10(%rsp), %rdi
movq %r15, %rsi
callq 0x297dc
movq 0x8(%rsp), %rbx
leaq 0x10(%rsp), %rdi
pushq $0x9
popq %rdx
pushq $0x1
popq %rcx
movq %r14, %rsi
callq 0x2ea24
leaq 0x10(%rsp), %rdi
callq 0x28a08
movq %rbx, %rdi
movq %r14, %rsi
callq 0x4892d
leaq 0x28(%rsp), %rdi
callq 0x8978
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x10(%rsp), %rdi
callq 0x28a08
jmp 0x4860d
movq %rax, %rbx
movl $0x200, %esi            # imm = 0x200
movq %r14, %rdi
callq 0x84a0
jmp 0x4860d
jmp 0x4860a
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x8978
movq %rbx, %rdi
callq 0x8870