// File: /workspace/github_cpp_makefile_star2_O1/auton1[P]viterbi/bcf_entry.cpp
// Function: bcf_entry::read_all_entries(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>&)
void bcf_entry::read_all_entries(string &out)
{
	if (fully_parsed == false)
		parse_full_entry(true);

	if (parsed_FORMAT == false)
		set_FORMAT();

	ostringstream outstream, tmpstream;
	string tmpstr;
	outstream.str("");
	tmpstream.str("");
	bool format_miss, indv_miss;

	for(unsigned int ui=0; ui<N_indv; ui++)
	{
		if(include_indv[ui] == false)
			continue;
		outstream << "\t";
		indv_miss = true;

		for(unsigned int uj=0; uj<N_format; uj++)
		{
			if (uj != 0)
				tmpstream << ":";

			if ( ((int)uj == GT_idx) && (include_genotype[ui] == false) )
			{
				tmpstr = ".";
				for (int uk=1; uk<ploidy[ui]; uk++)
					tmpstr = tmpstr + "/.";
				format_miss = false;
			}
			else if ((int)uj == GT_idx)
			{
				read_indv_generic_entry(ui, uj, tmpstr);
				format_miss = false;
			}
			else
			{
				read_indv_generic_entry(ui, uj, tmpstr);
				format_miss = (tmpstr == ".");
			}
			indv_miss = indv_miss && format_miss;
			tmpstream << tmpstr;

			if (!format_miss)
			{
				tmpstr = tmpstream.str();
				outstream << tmpstr;
				tmpstream.str("");
			}
		}
		tmpstream.str("");
	}
	out = outstream.str();
	outstream.str("");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x348, %rsp            # imm = 0x348
movq %rsi, %rbx
movq %rdi, %r14
cmpb $0x0, 0x3d9(%rdi)
jne 0x1a37a
movq (%r14), %rax
movq %r14, %rdi
movl $0x1, %esi
callq *0x18(%rax)
cmpb $0x0, 0x3dd(%r14)
jne 0x1a38c
movq %r14, %rdi
callq 0x277b0
leaq 0x1d0(%rsp), %rdi
callq 0x55d0
leaq 0x58(%rsp), %rdi
callq 0x55d0
leaq 0x30(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
leaq 0x10(%rsp), %rax
movq %rax, -0x10(%rax)
leaq 0x20b38(%rip), %rdx     # 0x3aeff
movq %rsp, %rdi
movq %rdx, %rsi
callq 0xc868
leaq 0x1d8(%rsp), %rdi
movq %rsp, %rsi
callq 0x5640
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1a3f5
callq 0x5410
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
leaq 0x20af8(%rip), %rdx     # 0x3aeff
movq %rdx, %rsi
callq 0xc868
movq %rbx, 0x40(%rsp)
leaq 0x60(%rsp), %rdi
movq %rsp, %rsi
callq 0x5640
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1a434
callq 0x5410
cmpl $0x0, 0x8(%r14)
je 0x1a6ae
xorl %r13d, %r13d
movq %rsp, %rbp
leaq 0x20(%rsp), %r15
movq 0x1f0(%r14), %rax
movl $0x1, %edx
movl %r13d, %ecx
shlq %cl, %rdx
movq %rdx, 0x50(%rsp)
movq %r13, %rcx
shrq $0x6, %rcx
movq %rcx, 0x48(%rsp)
movq (%rax,%rcx,8), %rax
btq %r13, %rax
jae 0x1a69e
movl $0x1, %edx
leaq 0x1d0(%rsp), %rdi
leaq 0x20a6f(%rip), %rsi     # 0x3aefe
callq 0x54f0
cmpl $0x0, 0x6bc(%r14)
je 0x1a663
xorl %r12d, %r12d
testl %r12d, %r12d
je 0x1a4c0
movl $0x1, %edx
leaq 0x58(%rsp), %rdi
leaq 0x20bfa(%rip), %rsi     # 0x3b0b5
callq 0x54f0
movl 0x630(%r14), %eax
cmpl %eax, %r12d
movq %r15, %rbx
jne 0x1a505
movq 0x218(%r14), %rcx
movq 0x50(%rsp), %rdx
movq 0x48(%rsp), %rsi
testq %rdx, (%rcx,%rsi,8)
je 0x1a533
cmpl %eax, %r12d
jne 0x1a505
movl %r12d, (%rsp)
movq %r14, %rdi
movl %r13d, %esi
movq %rbp, %rdx
movq %rbx, %rcx
callq 0x198f0
jmp 0x1a5bc
movl %r12d, (%rsp)
movq %r14, %rdi
movl %r13d, %esi
movq %rbp, %rdx
movq %rbx, %rcx
callq 0x198f0
movq %rbx, %rdi
leaq 0x1fce9(%rip), %rsi     # 0x3a20d
callq 0x50e0
testl %eax, %eax
sete %bl
jmp 0x1a5be
movq 0x28(%rsp), %rdx
movl $0x1, %r8d
movq %rbx, %rdi
xorl %esi, %esi
leaq 0x1fcc3(%rip), %rcx     # 0x3a20d
callq 0x5690
movq 0x4e8(%r14), %rax
cmpl $0x2, (%rax,%r13,4)
jl 0x1a5bc
movl $0x1, %ebx
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
addq %rsi, %rdx
movq %rbp, %rdi
callq 0xc7d8
movq %rbp, %rdi
leaq 0x1fc82(%rip), %rsi     # 0x3a20c
callq 0x5870
movq %r15, %rdi
movq %rbp, %rsi
callq 0x5550
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1a5ad
callq 0x5410
incl %ebx
movq 0x4e8(%r14), %rax
cmpl (%rax,%r13,4), %ebx
jl 0x1a562
xorl %ebx, %ebx
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0x58(%rsp), %rdi
callq 0x54f0
testb %bl, %bl
jne 0x1a653
movq %rbp, %rdi
leaq 0x60(%rsp), %rsi
callq 0x56c0
movq %r15, %rdi
movq %rbp, %rsi
callq 0x5550
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1a601
callq 0x5410
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdx
leaq 0x1d0(%rsp), %rdi
callq 0x54f0
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %rbp, %rdi
leaq 0x208d4(%rip), %rdx     # 0x3aeff
movq %rdx, %rsi
callq 0xc868
leaq 0x60(%rsp), %rdi
movq %rbp, %rsi
callq 0x5640
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1a653
callq 0x5410
incl %r12d
cmpl 0x6bc(%r14), %r12d
jb 0x1a4a5
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq %rbp, %rdi
leaq 0x20889(%rip), %rdx     # 0x3aeff
movq %rdx, %rsi
callq 0xc868
leaq 0x60(%rsp), %rdi
movq %rbp, %rsi
callq 0x5640
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1a69e
callq 0x5410
incq %r13
movl 0x8(%r14), %eax
cmpq %rax, %r13
jb 0x1a44a
movq %rsp, %rdi
leaq 0x1d8(%rsp), %r14
movq %r14, %rsi
callq 0x56c0
movq %rsp, %rbx
movq 0x40(%rsp), %rdi
movq %rbx, %rsi
callq 0x5550
movq (%rbx), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1a6e3
callq 0x5410
movq %rsp, %rdi
leaq 0x10(%rsp), %rax
movq %rax, (%rdi)
leaq 0x2080a(%rip), %rdx     # 0x3aeff
movq %rdx, %rsi
callq 0xc868
movq %rsp, %rsi
movq %r14, %rdi
callq 0x5640
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1a71b
callq 0x5410
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x1a72f
callq 0x5410
movq 0x2f88a(%rip), %rbx     # 0x49fc0
leaq 0x58(%rsp), %rdi
movq %rbx, %rsi
callq 0x51e0
leaq 0xc8(%rsp), %rdi
callq 0x5100
leaq 0x1d0(%rsp), %rdi
movq %rbx, %rsi
callq 0x51e0
leaq 0x240(%rsp), %rdi
callq 0x5100
addq $0x348, %rsp            # imm = 0x348
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x1a7a4
jmp 0x1a7bc
jmp 0x1a7bc
jmp 0x1a7a4
jmp 0x1a7bc
jmp 0x1a7a4
jmp 0x1a7bc
movq %rax, %rbx
jmp 0x1a7f1
jmp 0x1a7a4
jmp 0x1a7bc
jmp 0x1a7bc
jmp 0x1a7bc
jmp 0x1a7bc
jmp 0x1a7a4
jmp 0x1a7bc
jmp 0x1a7bc
jmp 0x1a7bc
movq %rax, %rbx
movq (%rsp), %rdi
leaq 0x10(%rsp), %rax
cmpq %rax, %rdi
je 0x1a7bf
callq 0x5410
jmp 0x1a7bf
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x1a7d3
callq 0x5410
movq 0x2f7e6(%rip), %rsi     # 0x49fc0
leaq 0x58(%rsp), %rdi
callq 0x51e0
leaq 0xc8(%rsp), %rdi
callq 0x5100
movq 0x2f7c8(%rip), %rsi     # 0x49fc0
leaq 0x1d0(%rsp), %rdi
callq 0x51e0
leaq 0x240(%rsp), %rdi
callq 0x5100
movq %rbx, %rdi
callq 0x57d0