// File: /workspace/github_cpp_makefile_star2_O1/millanek[P]evo/process_vcf_print_routines.cpp
// Function: print_privateFixedVarsSummary(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::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&, std::vector<int, std::allocator<int>> const&)
void print_privateFixedVarsSummary(const string& fileRoot, const std::vector<std::string>& header, const string& populationsFile,  const std::vector<int>& privateVarCounts) {
    string privateVarFileName = fileRoot + "_" + stripExtension(populationsFile) + ".privateFixedVars.txt";
    std::ofstream* pPrivateVarFile = new std::ofstream(privateVarFileName.c_str());
    *pPrivateVarFile << "# Counts of private fixed variants:" << std::endl;
    *pPrivateVarFile << "# Input file:" << fileRoot << ".vcf" << std::endl;
    *pPrivateVarFile << "# Groups defined in:" << populationsFile << std::endl;
    
    // print het counts
    print_vector(header, *pPrivateVarFile);
    print_vector(privateVarCounts, *pPrivateVarFile);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
movq %rcx, %rbp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %r12
leaq 0x38(%rsp), %rbx
movq %rbx, -0x10(%rbx)
movq (%rdi), %rsi
movq 0x8(%rdi), %rdx
addq %rsi, %rdx
leaq 0x28(%rsp), %r13
movq %r13, %rdi
callq 0x2e45c
leaq 0x81b75(%rip), %rsi     # 0xdb53c
movq %r13, %rdi
callq 0x88c0
leaq 0x68(%rsp), %rdi
movq %r15, %rsi
callq 0x50803
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0x70(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %esi
cmpq %rbx, %rcx
je 0x599fe
movq 0x38(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x59a1d
leaq 0x78(%rsp), %rdi
movl $0xf, %esi
cmpq %rdi, -0x10(%rdi)
je 0x59a18
movq 0x78(%rsp), %rsi
cmpq %rsi, %rax
jbe 0x59a2e
movq 0x68(%rsp), %rsi
leaq 0x28(%rsp), %rdi
callq 0x8180
jmp 0x59a3c
leaq 0x68(%rsp), %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x84d0
leaq 0x18(%rsp), %rdx
movq %rdx, -0x10(%rdx)
movq (%rax), %rsi
leaq 0x10(%rax), %rcx
cmpq %rcx, %rsi
je 0x59a60
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x59a66
movups (%rcx), %xmm0
movups %xmm0, (%rdx)
movq %rax, %rdx
addq $0x8, %rdx
movq 0x8(%rax), %rsi
movq %rsi, 0x10(%rsp)
movq %rcx, (%rax)
movq $0x0, (%rdx)
movb $0x0, (%rcx)
leaq 0x7e471(%rip), %rsi     # 0xd7efb
leaq 0x8(%rsp), %rdi
callq 0x88c0
leaq 0x58(%rsp), %rsi
movq %rsi, -0x10(%rsi)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x59abb
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x59ac1
movups (%rcx), %xmm0
movups %xmm0, (%rsi)
movq 0x8(%rax), %rdx
movq %rdx, 0x50(%rsp)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x59af4
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x59b0f
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x28(%rsp), %rdi
cmpq %rbx, %rdi
je 0x59b26
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x8480
movl $0x200, %edi            # imm = 0x200
callq 0x8470
movq %rax, %r13
movq 0x48(%rsp), %rsi
movq %rax, %rdi
movl $0x10, %edx
callq 0x84c0
leaq 0x7e3c5(%rip), %rsi     # 0xd7f11
movl $0x23, %edx
movq %r13, %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 0x7e243(%rip), %rsi     # 0xd7dcb
movl $0xd, %edx
movq %r13, %rdi
callq 0x84e0
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r13, %rdi
callq 0x84e0
movq %rax, %r12
leaq 0x88420(%rip), %rsi     # 0xe1fd0
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 0x7e349(%rip), %rsi     # 0xd7f35
movl $0x14, %edx
movq %r13, %rdi
callq 0x84e0
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movq %r13, %rdi
callq 0x84e0
movq %rax, %r15
movq (%rax), %rax
movq -0x18(%rax), %rdi
addq %r15, %rdi
movl $0xa, %esi
callq 0x8450
movsbl %al, %esi
movq %r15, %rdi
callq 0x8040
movq %rax, %rdi
callq 0x8300
leaq 0xa0(%rsp), %rdi
movq %r14, %rsi
callq 0x3273a
leaq 0xa0(%rsp), %rdi
movq %r13, %rsi
movl $0x9, %edx
movl $0x1, %ecx
callq 0x39979
leaq 0xa0(%rsp), %rdi
callq 0x3123c
leaq 0x88(%rsp), %rdi
movq %rbp, %rsi
callq 0x35990
leaq 0x88(%rsp), %rdi
movq %r13, %rsi
movl $0x9, %edx
movl $0x1, %ecx
callq 0x415f4
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x59cb0
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x59ccc
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x8480
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r15
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x59d7c
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
jmp 0x59d1c
movq %rax, %r15
leaq 0xa0(%rsp), %rdi
callq 0x3123c
jmp 0x59d7c
movq %rax, %r15
movl $0x200, %esi            # imm = 0x200
movq %r13, %rdi
callq 0x8480
jmp 0x59d7c
movq %rax, %r15
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x59d46
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x59d46
movq %rax, %r15
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x59d68
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x59d68
jmp 0x59d65
movq %rax, %r15
movq 0x28(%rsp), %rdi
cmpq %rbx, %rdi
je 0x59d98
movq 0x38(%rsp), %rsi
jmp 0x59d90
movq %rax, %r15
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x59d98
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x8480
movq %r15, %rdi
callq 0x8840