// File: /workspace/github_cpp_makefile_star2_O1/auton1[P]viterbi/vcf_entry.cpp
// Function: vcf_entry::print(std::ostream&, std::set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<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&, bool)
void vcf_entry::print(ostream &out, const set<string> &INFO_to_keep, bool keep_all_INFO)
{
	if (fully_parsed == false)
		parse_full_entry();

	out << get_CHROM() << '\t' << POS << '\t' << get_ID() << '\t' << REF << '\t' << get_ALT();

	out << '\t' << header::double2str(QUAL);
	out << '\t' << get_FILTER();

	if (keep_all_INFO == false)
		out << '\t' << get_INFO(INFO_to_keep);
	else
		out << '\t' << INFO_str;

	pair<int, int> genotype;
	string GFILTER_tmp;
	if (FORMAT.size() > 0)
	{
		char PHASE;
		out << '\t' << get_FORMAT();

		for (unsigned int ui=0; ui<N_indv; ui++)
		{
			if (include_indv[ui] == false)
				continue;
			out << '\t';
			for (int count=0; count<(int)FORMAT.size(); count++)
			{
				if (count == GT_idx) // (FORMAT[count] == "GT")
				{
					if (count != 0)	out << ':';
					if (include_genotype[ui] == true)
					{
						get_indv_GENOTYPE_ids(ui, genotype);
						PHASE = get_indv_PHASE(ui);
						if ((genotype.first != -1) && (genotype.second != -1))
							out << header::int2str(genotype.first) << PHASE << header::int2str(genotype.second);
						else if ((PHASE == '|') && (genotype.second == -1))
							out << header::int2str(genotype.first);	// Handle haploid case
						else
							out << header::int2str(genotype.first) << PHASE << header::int2str(genotype.second);
					}
					else
						out << "./.";
				}
				else if (count == GQ_idx) //(FORMAT[count] == "GQ")
				{
					if (count != 0)	out << ':';
					out << header::double2str(get_indv_GQUALITY(ui));
				}
				else if (count == DP_idx) // (FORMAT[count] == "DP")
				{
					if (count != 0)	out << ':';
					out << header::int2str(get_indv_DEPTH(ui));
				}
				else if (count == FT_idx) // (FORMAT[count] == "FT")
				{
					if (count != 0)	out << ':';
					get_indv_GFILTER(ui, GFILTER_tmp);
					out << GFILTER_tmp;
				}
				else
				{	// Unknown FORMAT so just replicate original output
					if (count != 0)	out << ':';
					read_indv_generic_entry(ui, FORMAT[count], GFILTER_tmp);
					out << GFILTER_tmp;
				}
			}
		}
	}
	out << '\n';
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x88, %rsp
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
cmpb $0x0, 0x3d9(%rdi)
jne 0x1d6f3
movq (%r14), %rax
movq %r14, %rdi
movl $0x1, %esi
callq *0x18(%rax)
leaq 0x28(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x21cbc
movq (%r12), %rsi
movq 0x8(%r12), %rdx
movq %rbx, %rdi
callq 0x54f0
leaq 0x8(%rsp), %rsi
movb $0x9, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x54f0
movl 0x400(%r14), %esi
movq %rax, %rdi
callq 0x57a0
leaq 0x8(%rsp), %rsi
movb $0x9, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x54f0
movq %rax, %r12
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x21d00
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r12, %rdi
callq 0x54f0
leaq 0x50(%rsp), %rsi
movb $0x9, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x54f0
movq 0x428(%r14), %rsi
movq 0x430(%r14), %rdx
movq %rax, %rdi
callq 0x54f0
leaq 0x50(%rsp), %rsi
movb $0x9, (%rsi)
movl $0x1, %edx
movq %rax, %rdi
callq 0x54f0
movq %rax, %r12
leaq 0x50(%rsp), %rdi
movq %r14, %rsi
callq 0x21dae
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq %r12, %rdi
callq 0x54f0
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d7e4
callq 0x5410
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d7f7
callq 0x5410
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d80a
callq 0x5410
leaq 0x28(%rsp), %rsi
movb $0x9, (%rsi)
movl $0x1, %edx
movq %rbx, %rdi
callq 0x54f0
movq %rax, %r12
movsd 0x460(%r14), %xmm0
leaq 0x28(%rsp), %r13
movsd 0x1c828(%rip), %xmm1    # 0x3a060
movq %r13, %rdi
callq 0x173f0
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %r12, %rdi
callq 0x54f0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1d864
callq 0x5410
leaq 0x28(%rsp), %rsi
movb $0x9, (%rsi)
movl $0x1, %edx
movq %rbx, %rdi
callq 0x54f0
movq %rax, %r12
leaq 0x28(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x2237a
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %r12, %rdi
callq 0x54f0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1d8b0
callq 0x5410
leaq 0x28(%rsp), %rsi
testb %bpl, %bpl
je 0x1d8e2
movb $0x9, (%rsi)
movl $0x1, %edx
movq %rbx, %rdi
callq 0x54f0
movq 0x6f8(%r14), %rsi
movq 0x700(%r14), %rdx
movq %rax, %rdi
callq 0x54f0
jmp 0x1d92e
movb $0x9, (%rsi)
movl $0x1, %edx
movq %rbx, %rdi
callq 0x54f0
movq %rax, %r12
leaq 0x28(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
xorl %ecx, %ecx
callq 0x2250e
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %r12, %rdi
callq 0x54f0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1d92e
callq 0x5410
xorl %eax, %eax
movq %rax, 0x48(%rsp)
leaq 0x38(%rsp), %rcx
movq %rcx, 0x28(%rsp)
movq %rax, 0x30(%rsp)
movb $0x0, 0x38(%rsp)
movq 0x4a0(%r14), %rax
cmpq 0x498(%r14), %rax
je 0x1dd72
leaq 0x8(%rsp), %rsi
movb $0x9, (%rsi)
movl $0x1, %edx
movq %rbx, %rdi
callq 0x54f0
movq %rax, %r15
leaq 0x8(%rsp), %rdi
movq %r14, %rsi
callq 0x22b56
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %r15, %rdi
callq 0x54f0
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1d9a8
callq 0x5410
cmpl $0x0, 0x8(%r14)
je 0x1dd72
xorl %r15d, %r15d
movq %rbx, 0x70(%rsp)
movq 0x1f0(%r14), %rax
movl $0x1, %edx
movl %r15d, %ecx
shlq %cl, %rdx
movq %rdx, 0x80(%rsp)
movq %r15, %rcx
shrq $0x6, %rcx
movq %rcx, 0x78(%rsp)
movq (%rax,%rcx,8), %rax
btq %r15, %rax
jae 0x1dd62
movb $0x9, 0x8(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
callq 0x54f0
movq 0x4a0(%r14), %rax
subq 0x498(%r14), %rax
shrq $0x5, %rax
testl %eax, %eax
jle 0x1dd62
xorl %r13d, %r13d
xorl %r12d, %r12d
movl 0x630(%r14), %eax
cmpq %rax, %r12
jne 0x1db17
testq %r12, %r12
je 0x1da52
movb $0x3a, 0x8(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
callq 0x54f0
movq 0x218(%r14), %rax
movq 0x80(%rsp), %rcx
movq 0x78(%rsp), %rdx
testq %rcx, (%rax,%rdx,8)
je 0x1dbd2
movq %r14, %rdi
movl %r15d, %esi
leaq 0x48(%rsp), %rdx
callq 0x22d94
movq %r14, %rdi
movl %r15d, %esi
callq 0x22ddc
movl %eax, %ebp
movl 0x48(%rsp), %esi
movl 0x4c(%rsp), %eax
cmpl $-0x1, %esi
setne %cl
cmpl $-0x1, %eax
setne %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x1dbeb
leaq 0x8(%rsp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x17284
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x54f0
leaq 0x50(%rsp), %rbx
movb %bpl, 0x50(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x54f0
movq %rax, %rbp
movl 0x4c(%rsp), %esi
movq %rbx, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x17284
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq %rbp, %rdi
callq 0x54f0
movq 0x70(%rsp), %rbx
jmp 0x1dccb
movl 0x634(%r14), %eax
cmpq %rax, %r12
jne 0x1db73
testq %r12, %r12
je 0x1db3f
movb $0x3a, 0x8(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
callq 0x54f0
movq %r14, %rdi
movl %r15d, %esi
callq 0x22e72
leaq 0x8(%rsp), %rdi
movsd 0x1c509(%rip), %xmm1    # 0x3a060
callq 0x173f0
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x54f0
jmp 0x1dcdf
movl 0x638(%r14), %eax
cmpq %rax, %r12
jne 0x1dc24
testq %r12, %r12
je 0x1db9f
movb $0x3a, 0x8(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
callq 0x54f0
movq %r14, %rdi
movl %r15d, %esi
callq 0x22e20
leaq 0x8(%rsp), %rdi
movl %eax, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x17284
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x54f0
jmp 0x1dcdf
movl $0x3, %edx
movq %rbx, %rdi
leaq 0x1c62a(%rip), %rsi     # 0x3a20b
callq 0x54f0
jmp 0x1dd3e
cmpb $0x7c, %bpl
sete %cl
cmpl $-0x1, %eax
sete %al
andb %cl, %al
cmpb $0x1, %al
jne 0x1dc65
leaq 0x8(%rsp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x17284
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x54f0
jmp 0x1dcdf
movl 0x63c(%r14), %eax
cmpq %rax, %r12
jne 0x1dcf5
testq %r12, %r12
je 0x1dc50
movb $0x3a, 0x8(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
callq 0x54f0
movq %r14, %rdi
movl %r15d, %esi
leaq 0x28(%rsp), %rdx
callq 0x22f2c
jmp 0x1dd2c
leaq 0x8(%rsp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x17284
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x54f0
leaq 0x50(%rsp), %rbx
movb %bpl, 0x50(%rsp)
movl $0x1, %edx
movq %rax, %rdi
movq %rbx, %rsi
callq 0x54f0
movq %rax, %rbp
movl 0x4c(%rsp), %esi
movq %rbx, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x17284
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq %rbp, %rdi
callq 0x54f0
movq 0x70(%rsp), %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x1dcdf
callq 0x5410
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1dd3e
callq 0x5410
jmp 0x1dd3e
testq %r12, %r12
je 0x1dd11
movb $0x3a, 0x8(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
callq 0x54f0
movq 0x498(%r14), %rdx
addq %r13, %rdx
movq (%r14), %rax
movq %r14, %rdi
movl %r15d, %esi
leaq 0x28(%rsp), %rcx
callq *0x38(%rax)
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq %rbx, %rdi
callq 0x54f0
incq %r12
movq 0x4a0(%r14), %rax
subq 0x498(%r14), %rax
shrq $0x5, %rax
cltq
addq $0x20, %r13
cmpq %rax, %r12
jl 0x1da26
incq %r15
movl 0x8(%r14), %eax
cmpq %rax, %r15
jb 0x1d9bb
leaq 0x8(%rsp), %rsi
movb $0xa, (%rsi)
movl $0x1, %edx
movq %rbx, %rdi
callq 0x54f0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1dd9b
callq 0x5410
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1de5e
jmp 0x1de43
jmp 0x1de5e
jmp 0x1de5e
jmp 0x1de5e
jmp 0x1de5e
jmp 0x1de5e
movq %rax, %rbx
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1ddef
callq 0x5410
jmp 0x1ddef
jmp 0x1ddec
jmp 0x1de04
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1de07
callq 0x5410
jmp 0x1de07
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x1de6b
jmp 0x1de5e
jmp 0x1de5e
jmp 0x1de43
jmp 0x1de43
jmp 0x1de20
jmp 0x1de5e
jmp 0x1de43
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x1de46
callq 0x5410
jmp 0x1de46
jmp 0x1de5e
jmp 0x1de43
jmp 0x1de43
jmp 0x1de43
jmp 0x1de5e
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1de61
callq 0x5410
jmp 0x1de61
jmp 0x1de5e
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1de75
callq 0x5410
movq %rbx, %rdi
callq 0x57d0
nop