// File: /workspace/github_cpp_makefile_star2_O1/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 0xf072
movl (%r14), %r14d
movq %r14, %rdi
callq 0x5030
movq %rax, %r15
movl $0x1, %ecx
movq %rbx, %rdi
movq %rax, %rsi
movl %r14d, %edx
callq 0xf072
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 0xc868
movq %r15, %rdi
callq 0x55b0
leaq 0x38(%rsp), %rbp
movq %rbp, -0x10(%rbp)
movq $0x0, -0x8(%rbp)
movb $0x0, (%rbp)
movl $0x0, (%rsp)
leaq 0x2abff(%rip), %rsi     # 0x39609
movl $0x6, %ecx
movq %r14, %rdi
movq $-0x1, %rdx
callq 0x56f0
incq %rax
movq 0x8(%r14), %rcx
cmpq %rax, %rcx
jb 0xeb4f
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 0x2ab45(%rip), %rsi     # 0x395a5
leaq 0x2ab56(%rip), %rdx     # 0x395bd
leaq 0x8(%rsp), %rdi
callq 0xc868
addq $0x250, %rbx            # imm = 0x250
movl (%rsp), %edx
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0x14a0a
addl %eax, (%rsp)
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xea9a
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 0xeb01
movq 0x28(%rsp), %rax
cmpb $0x23, (%rax)
jne 0xeaa2
cmpb $0x23, 0x1(%rax)
jne 0xeaf4
movq %rbx, %rdi
movq %r15, %rsi
movq %r12, %rdx
callq 0x139bc
jmp 0xeaa2
movq %rbx, %rdi
movq %r15, %rsi
callq 0x163ee
jmp 0xeaa2
movq 0x3b4b0(%rip), %rsi     # 0x49fb8
leaq 0x68(%rsp), %rdi
callq 0x5610
leaq 0xe0(%rsp), %rdi
callq 0x5100
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0xeb2e
callq 0x5410
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0xeb3d
callq 0x5410
addq $0x1e8, %rsp            # imm = 0x1E8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2aa68(%rip), %rdi     # 0x395be
leaq 0x2aa98(%rip), %rsi     # 0x395f5
movq %rax, %rdx
xorl %eax, %eax
callq 0x5660
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0xeb87
callq 0x5410
jmp 0xeb87
jmp 0xeb84
jmp 0xeb7f
movq %rax, %rbx
jmp 0xeba5
movq %rax, %rbx
movq 0x3b42a(%rip), %rsi     # 0x49fb8
leaq 0x68(%rsp), %rdi
callq 0x5610
leaq 0xe0(%rsp), %rdi
callq 0x5100
movq 0x28(%rsp), %rdi
cmpq %rbp, %rdi
je 0xebb4
callq 0x5410
movq 0x48(%rsp), %rdi
cmpq %r13, %rdi
je 0xebc3
callq 0x5410
movq %rbx, %rdi
callq 0x57d0
nop