// File: /workspace/github_cpp_makefile_star2_O3/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 0x2ba06
leaq 0x7b54f(%rip), %rsi     # 0xd507c
movq %r13, %rdi
callq 0x88c0
leaq 0x68(%rsp), %rdi
movq %r15, %rsi
callq 0x4d82f
movq 0x28(%rsp), %rcx
movq 0x30(%rsp), %r8
movq 0x70(%rsp), %rdx
leaq (%rdx,%r8), %rax
movl $0xf, %edi
cmpq %rbx, %rcx
je 0x59b64
movq 0x38(%rsp), %rdi
movq 0x68(%rsp), %rsi
cmpq %rdi, %rax
jbe 0x59b87
leaq 0x78(%rsp), %r9
movl $0xf, %edi
cmpq %r9, %rsi
je 0x59b82
movq 0x78(%rsp), %rdi
cmpq %rdi, %rax
jbe 0x59b93
leaq 0x28(%rsp), %rdi
callq 0x8180
jmp 0x59ba1
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 0x59bc5
movq %rsi, 0x8(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x18(%rsp)
jmp 0x59bcb
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 0x77e4a(%rip), %rsi     # 0xd1a39
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 0x59c20
movq %rdx, 0x48(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x58(%rsp)
jmp 0x59c26
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 0x59c59
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x59c74
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x8480
movq 0x28(%rsp), %rdi
cmpq %rbx, %rdi
je 0x59c8b
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 0x77d9e(%rip), %rsi     # 0xd1a4f
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 0x77c1c(%rip), %rsi     # 0xd1909
movl $0xd, %edx
movq %r13, %rdi
callq 0x84e0
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %r13, %rdi
callq 0x84e0
movq %rax, %r12
leaq 0x8089b(%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 0x77d22(%rip), %rsi     # 0xd1a73
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 0x2fc8e
leaq 0xa0(%rsp), %rdi
movq %r13, %rsi
movl $0x9, %edx
movl $0x1, %ecx
callq 0x36ba0
leaq 0xa0(%rsp), %rdi
callq 0x2e784
leaq 0x88(%rsp), %rdi
movq %rbp, %rsi
callq 0x32ee6
leaq 0x88(%rsp), %rdi
movq %r13, %rsi
movl $0x9, %edx
movl $0x1, %ecx
callq 0x3e6d2
movq 0x88(%rsp), %rdi
testq %rdi, %rdi
je 0x59e15
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
callq 0x8480
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x59e31
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 0x59ee1
movq 0x98(%rsp), %rsi
subq %rdi, %rsi
jmp 0x59e81
movq %rax, %r15
leaq 0xa0(%rsp), %rdi
callq 0x2e784
jmp 0x59ee1
movq %rax, %r15
movl $0x200, %esi            # imm = 0x200
movq %r13, %rdi
callq 0x8480
jmp 0x59ee1
movq %rax, %r15
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x59eab
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x59eab
movq %rax, %r15
leaq 0x78(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x59ecd
movq 0x78(%rsp), %rsi
incq %rsi
callq 0x8480
jmp 0x59ecd
jmp 0x59eca
movq %rax, %r15
movq 0x28(%rsp), %rdi
cmpq %rbx, %rdi
je 0x59efd
movq 0x38(%rsp), %rsi
jmp 0x59ef5
movq %rax, %r15
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x59efd
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x8480
movq %r15, %rdi
callq 0x8840