// File: /workspace/github_cpp_makefile_star2_O3/auton1[P]viterbi/bcf_file.cpp
// Function: bcf_file::read_header()
void bcf_file::read_header()
{
	uint32_t len_text;

	read(&len_text, 1, sizeof(uint32_t));
	char *header_array = new char[(uint32_t)len_text];
	read(header_array, len_text, 1);

	string header(header_array);
	delete [] header_array;
	string line;
	unsigned int line_index = 0;
	header.erase( header.find_last_not_of(" \f\n\r\t\v\0" ) + 1 );

	istringstream iss(header);
	line_index += meta_data.add_FILTER_descriptor("ID=PASS,Description=PASS", line_index);

	while (getline(iss, line))
	{
		if (line[0] == '#')
		{
			if (line[1] == '#')
				meta_data.parse_meta(line, line_index);
			else
				meta_data.parse_header(line);
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1e8, %rsp            # imm = 0x1E8
movq %rdi, %rbx
leaq 0x4(%rsp), %r14
movl $0x4, %ecx
movq %r14, %rsi
movl $0x1, %edx
callq 0xf08a
movl (%r14), %r14d
movq %r14, %rdi
callq 0x5030
movq %rax, %r15
movl $0x1, %ecx
movq %rbx, %rdi
movq %rax, %rsi
movl %r14d, %edx
callq 0xf08a
leaq 0x58(%rsp), %r13
movq %r13, -0x10(%r13)
movq %r15, %rdi
callq 0x5180
leaq (%rax,%r15), %rdx
leaq 0x48(%rsp), %r14
movq %r14, %rdi
movq %r15, %rsi
callq 0xc85e
movq %r15, %rdi
callq 0x55b0
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq $0x0, -0x8(%rbp)
movb $0x0, (%rbp)
movl $0x0, (%rsp)
leaq 0x29bed(%rip), %rsi     # 0x38609
movl $0x6, %ecx
movq %r14, %rdi
movq $-0x1, %rdx
callq 0x56f0
incq %rax
movq 0x8(%r14), %rcx
cmpq %rax, %rcx
jb 0xeb60
leaq 0x48(%rsp), %rsi
movq %rax, 0x8(%rsi)
movq (%rsi), %rcx
movb $0x0, (%rcx,%rax)
leaq 0x68(%rsp), %r14
movq %r14, %rdi
movl $0x8, %edx
callq 0x5730
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x29b33(%rip), %rsi     # 0x385a5
leaq 0x29b44(%rip), %rdx     # 0x385bd
leaq 0x8(%rsp), %rdi
callq 0xc85e
addq $0x250, %rbx            # imm = 0x250
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x14a06
movl %eax, (%rsp)
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xeaab
callq 0x5410
leaq 0x28(%rsp), %r15
movq %rsp, %r12
movq 0x68(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
movl $0xa, %esi
callq 0x5440
movsbl %al, %edx
movq %r14, %rdi
movq %r15, %rsi
callq 0x5830
movq (%rax), %rcx
movq -0x18(%rcx), %rcx
testb $0x5, 0x20(%rax,%rcx)
jne 0xeb12
movq 0x28(%rsp), %rax
cmpb $0x23, (%rax)
jne 0xeab3
cmpb $0x23, 0x1(%rax)
jne 0xeb05
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x13990
jmp 0xeab3
movq %rbx, %rdi
movq %r15, %rsi
callq 0x16412
jmp 0xeab3
movq 0x3a49f(%rip), %rsi     # 0x48fb8
leaq 0x68(%rsp), %rdi
callq 0x5610
leaq 0xe0(%rsp), %rdi
callq 0x5100
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0xeb3f
callq 0x5410
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0xeb4e
callq 0x5410
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x29a57(%rip), %rdi     # 0x385be
leaq 0x29a87(%rip), %rsi     # 0x385f5
movq %rax, %rdx
xorl %eax, %eax
callq 0x5660
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xeb98
callq 0x5410
jmp 0xeb98
jmp 0xeb95
jmp 0xeb90
movq %rax, %rbx
jmp 0xebb6
movq %rax, %rbx
movq 0x3a419(%rip), %rsi     # 0x48fb8
leaq 0x68(%rsp), %rdi
callq 0x5610
leaq 0xe0(%rsp), %rdi
callq 0x5100
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0xebc5
callq 0x5410
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0xebd4
callq 0x5410
movq %rbx, %rdi
callq 0x57d0