// File: /workspace/github_cpp_makefile_star2_O3/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 0x1d58b
movq (%r14), %rax
movq %r14, %rdi
movl $0x1, %esi
callq *0x18(%rax)
leaq 0x28(%rsp), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x21ac0
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 0x21b04
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 0x21bb2
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 0x1d67c
callq 0x5410
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d68f
callq 0x5410
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1d6a2
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 0x1b970(%rip), %xmm1    # 0x39040
movq %r13, %rdi
callq 0x1737a
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %r12, %rdi
callq 0x54f0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1d6fc
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 0x2217c
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %r12, %rdi
callq 0x54f0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1d748
callq 0x5410
leaq 0x28(%rsp), %rsi
testb %bpl, %bpl
je 0x1d77a
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 0x1d7c6
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 0x22310
movq (%r13), %rsi
movq 0x8(%r13), %rdx
movq %r12, %rdi
callq 0x54f0
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1d7c6
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 0x1dc0c
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 0x2290e
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 0x1d840
callq 0x5410
cmpl $0x0, 0x8(%r14)
je 0x1dc0c
xorl %r15d, %r15d
movq %rbx, 0x70(%rsp)
movq 0x1f0(%r14), %rax
movl $0x1, %edx
movl %r15d, %ecx
shlq %cl, %rdx
movq %rdx, 0x80(%rsp)
movl %r15d, %ecx
shrl $0x6, %ecx
movq %rcx, 0x78(%rsp)
movq (%rax,%rcx,8), %rax
btq %r15, %rax
jae 0x1dbff
movb $0x9, 0x8(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
callq 0x54f0
movq 0x498(%r14), %rdx
movq 0x4a0(%r14), %rax
subq %rdx, %rax
shrq $0x5, %rax
testl %eax, %eax
jle 0x1dbff
xorl %r13d, %r13d
xorl %r12d, %r12d
movl 0x630(%r14), %eax
cmpq %rax, %r12
jne 0x1d9b1
testq %r12, %r12
je 0x1d8ec
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 0x1da6c
movq %r14, %rdi
movl %r15d, %esi
leaq 0x48(%rsp), %rdx
callq 0x22b50
movq %r14, %rdi
movl %r15d, %esi
callq 0x22b98
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 0x1da85
leaq 0x8(%rsp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x1720e
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 0x1720e
movq 0x50(%rsp), %rsi
movq 0x58(%rsp), %rdx
movq %rbp, %rdi
callq 0x54f0
movq 0x70(%rsp), %rbx
jmp 0x1db65
movl 0x634(%r14), %eax
cmpq %rax, %r12
jne 0x1da0d
testq %r12, %r12
je 0x1d9d9
movb $0x3a, 0x8(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
callq 0x54f0
movq %r14, %rdi
movl %r15d, %esi
callq 0x22c2e
leaq 0x8(%rsp), %rdi
movsd 0x1b64f(%rip), %xmm1    # 0x39040
callq 0x1737a
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x54f0
jmp 0x1db79
movl 0x638(%r14), %eax
cmpq %rax, %r12
jne 0x1dabe
testq %r12, %r12
je 0x1da39
movb $0x3a, 0x8(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x8(%rsp), %rsi
callq 0x54f0
movq %r14, %rdi
movl %r15d, %esi
callq 0x22bdc
leaq 0x8(%rsp), %rdi
movl %eax, %esi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x1720e
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x54f0
jmp 0x1db79
movl $0x3, %edx
movq %rbx, %rdi
leaq 0x1b770(%rip), %rsi     # 0x391eb
callq 0x54f0
jmp 0x1dbd8
cmpb $0x7c, %bpl
sete %cl
cmpl $-0x1, %eax
sete %al
andb %cl, %al
cmpb $0x1, %al
jne 0x1daff
leaq 0x8(%rsp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x1720e
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x54f0
jmp 0x1db79
movl 0x63c(%r14), %eax
cmpq %rax, %r12
jne 0x1db8f
testq %r12, %r12
je 0x1daea
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 0x22ce8
jmp 0x1dbc6
leaq 0x8(%rsp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x1720e
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 0x1720e
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 0x1db79
callq 0x5410
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1dbd8
callq 0x5410
jmp 0x1dbd8
testq %r12, %r12
je 0x1dbb2
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 0x498(%r14), %rdx
movq 0x4a0(%r14), %rax
subq %rdx, %rax
shrq $0x5, %rax
cltq
addq $0x20, %r13
cmpq %rax, %r12
jl 0x1d8c0
incl %r15d
cmpl 0x8(%r14), %r15d
jb 0x1d853
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 0x1dc35
callq 0x5410
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1dcf8
jmp 0x1dcdd
jmp 0x1dcf8
jmp 0x1dcf8
jmp 0x1dcf8
jmp 0x1dcf8
jmp 0x1dcf8
movq %rax, %rbx
leaq 0x60(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1dc89
callq 0x5410
jmp 0x1dc89
jmp 0x1dc86
jmp 0x1dc9e
movq %rax, %rbx
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x1dca1
callq 0x5410
jmp 0x1dca1
movq %rax, %rbx
leaq 0x38(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x1dd05
jmp 0x1dcf8
jmp 0x1dcf8
jmp 0x1dcdd
jmp 0x1dcdd
jmp 0x1dcba
jmp 0x1dcf8
jmp 0x1dcdd
movq %rax, %rbx
movq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rax
cmpq %rax, %rdi
je 0x1dce0
callq 0x5410
jmp 0x1dce0
jmp 0x1dcf8
jmp 0x1dcdd
jmp 0x1dcdd
jmp 0x1dcdd
jmp 0x1dcf8
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x1dcfb
callq 0x5410
jmp 0x1dcfb
jmp 0x1dcf8
movq %rax, %rbx
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x1dd0f
callq 0x5410
movq %rbx, %rdi
callq 0x57d0
nop