// File: /workspace/github_cpp_makefile_star2_O2/auton1[P]viterbi/bcf_entry_setters.cpp
// Function: bcf_entry::set_INFO()
void bcf_entry::set_INFO()
{
	int key;
	unsigned int size, type, i = INFO_pos;
	string data_type;
	INFO.resize(N_info);
	bool miss = true;

	for (unsigned int ui=0; ui<N_info; ui++)
	{
		key = get_typed_int(&i, line, type, size);
		get_type(&i, line, type, size);

		pair<string, string> INFO_entry(entry_header.INFO_map[key].ID, ".");
		data_type = entry_header.INFO_map[key].Type_str;
		ostringstream ss(ostringstream::out);

		for (unsigned int uj=0; uj<size; uj++)
		{
			if (uj !=0 && type != 7)
				ss << ",";

			if ( check_missing(i, type, line) )
				ss << ".";

			else if(type==1)
			{
				int8_t tmp;
				memcpy(&tmp, &line[i], sizeof(tmp));
				i += sizeof(tmp);
				ss << (int)tmp;
				miss = false;
			}
			else if(type==2)
			{
				int16_t tmp;
				memcpy(&tmp, &line[i], sizeof(tmp));
				i += sizeof(tmp);
				ss << (int)tmp;
				miss = false;
			}
			else if(type==3)
			{
				int32_t tmp;
				memcpy(&tmp, &line[i], sizeof(tmp));
				i += sizeof(tmp);
				ss << (int)tmp;
				miss = false;
			}
			else if(type==5)
			{
				float tmp;
				memcpy(&tmp, &line[i], sizeof(tmp));
				i += sizeof(tmp);
				ss << tmp;
				miss = false;
			}
			else if(type==7)
			{
				char tmp;
				memcpy(&tmp, &line[i], sizeof(tmp));
				i += sizeof(tmp);
				ss << tmp;
				miss = false;
			}
			else
			{
				LOG.printLOG("Error: Unknown type: " + header::int2str(type) + "\n");
				parsed_INFO = false;
				return;
			}
		}

		string value = ss.str();
		if (miss)
			INFO_entry.second = ".";
		else if (data_type == "Flag")
			INFO_entry.second = "1";
		else if (value != "")
			INFO_entry.second = ss.str();
		else
			INFO_entry.second = ".";
		INFO[ui] = INFO_entry;
	}
	parsed_INFO = true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x268, %rsp            # imm = 0x268
movq %rdi, %rbx
movl 0x6e8(%rdi), %eax
leaq 0x80(%rsp), %rcx
movq %rcx, -0x10(%rcx)
andq $0x0, -0x8(%rcx)
movl %eax, 0x4(%rsp)
movb $0x0, (%rcx)
addq $0x480, %rdi            # imm = 0x480
movl 0x6b8(%rbx), %esi
movq %rdi, 0x28(%rsp)
callq 0x1eef6
leaq 0x3c0(%rbx), %r15
leaq 0x70(%rbx), %rax
movq %rax, 0x20(%rsp)
movb $0x1, %al
movl %eax, 0x8(%rsp)
xorl %ebp, %ebp
leaq 0xc(%rsp), %r12
leaq 0x14(%rsp), %r13
movl 0x6b8(%rbx), %eax
movq %rbp, 0x18(%rsp)
cmpq %rax, %rbp
jae 0x204db
movq %rbx, %rdi
leaq 0x4(%rsp), %rbp
movq %rbp, %rsi
movq %r15, %rdx
movq %r12, %rcx
movq %r13, %r8
callq 0x1b5a6
movl %eax, 0x10(%rsp)
movq %rbx, %rdi
movq %rbp, %rsi
movq %r15, %rdx
movq %r12, %rcx
movq %r13, %r8
callq 0x1b4ec
movq 0x20(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x1311e
addq $0x20, %rax
leaq 0xb0(%rsp), %rdi
movq %rax, %rsi
leaq 0xdf40(%rip), %rdx      # 0x2e12d
callq 0x1ef26
movq 0x20(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x1311e
addq $0x68, %rax
leaq 0x70(%rsp), %rdi
movq %rax, %rsi
callq 0x5210
leaq 0xf0(%rsp), %rdi
pushq $0x10
popq %rsi
callq 0x53d0
xorl %ebp, %ebp
cmpl 0x14(%rsp), %ebp
jae 0x2035b
testl %ebp, %ebp
setne %al
movl 0xc(%rsp), %edx
cmpl $0x7, %edx
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x2025c
leaq 0xf0(%rsp), %rdi
leaq 0xd979(%rip), %rsi      # 0x2dbcc
callq 0x5480
movl 0xc(%rsp), %edx
movl 0x4(%rsp), %esi
movq %rbx, %rdi
movq %r15, %rcx
callq 0x1b818
testb %al, %al
je 0x20288
leaq 0xf0(%rsp), %rdi
leaq 0xdeaf(%rip), %rsi      # 0x2e12d
callq 0x5480
jmp 0x20354
movl 0xc(%rsp), %esi
leal -0x1(%rsi), %eax
cmpl $0x6, %eax
ja 0x20447
leaq 0xe905(%rip), %rcx      # 0x2eba4
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x4(%rsp), %eax
movq (%r15), %rcx
movsbl (%rcx,%rax), %esi
incl %eax
movl %eax, 0x4(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0x57e0
jmp 0x2034c
movl 0x4(%rsp), %eax
movq (%r15), %rcx
movswl (%rcx,%rax), %esi
addl $0x2, %eax
movl %eax, 0x4(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0x57e0
jmp 0x2034c
movl 0x4(%rsp), %eax
movq (%r15), %rcx
movss (%rcx,%rax), %xmm0
addl $0x4, %eax
movl %eax, 0x4(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0x5350
jmp 0x2034c
movl 0x4(%rsp), %eax
movq (%r15), %rcx
movl (%rcx,%rax), %esi
addl $0x4, %eax
movl %eax, 0x4(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0x57e0
jmp 0x2034c
movl 0x4(%rsp), %eax
movq (%r15), %rcx
movsbl (%rcx,%rax), %esi
incl %eax
movl %eax, 0x4(%rsp)
leaq 0xf0(%rsp), %rdi
callq 0x5530
movl $0x0, 0x8(%rsp)
incl %ebp
jmp 0x20224
leaq 0x30(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
callq 0x56f0
leaq 0xddb9(%rip), %rsi      # 0x2e12d
testb $0x1, 0x8(%rsp)
jne 0x203ef
leaq 0x70(%rsp), %rdi
leaq 0xd7d9(%rip), %rsi      # 0x2db60
callq 0x96f3
leaq 0xcce0(%rip), %rsi      # 0x2d073
testb %al, %al
jne 0x203ef
leaq 0x30(%rsp), %rdi
leaq 0xea94(%rip), %rsi      # 0x2ee37
callq 0x12f17
leaq 0xdd7e(%rip), %rsi      # 0x2e12d
testb %al, %al
je 0x203ef
leaq 0x50(%rsp), %r14
movq %r14, %rdi
leaq 0xf8(%rsp), %rsi
callq 0x56f0
leaq 0xd0(%rsp), %rdi
movq %r14, %rsi
callq 0x5580
movq %r14, %rdi
callq 0x5908
movq 0x18(%rsp), %rbp
leaq 0xb0(%rsp), %r14
jmp 0x20409
leaq 0xd0(%rsp), %rdi
callq 0x58b0
movq 0x18(%rsp), %rbp
leaq 0xb0(%rsp), %r14
movq %rbp, %rdi
shlq $0x6, %rdi
movq 0x28(%rsp), %rax
addq (%rax), %rdi
movq %r14, %rsi
callq 0x21598
leaq 0x30(%rsp), %rdi
callq 0x5908
leaq 0xf0(%rsp), %rdi
callq 0x58f0
movq %r14, %rdi
callq 0x1665a
incq %rbp
jmp 0x20183
leaq 0x50(%rsp), %rdi
pushq $-0x1
popq %rdx
callq 0x12c9c
leaq 0xe7a9(%rip), %rsi      # 0x2ec04
leaq 0x30(%rsp), %rdi
leaq 0x50(%rsp), %rdx
callq 0x98d5
leaq 0xcc9a(%rip), %rdx      # 0x2d10b
leaq 0x90(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x98b6
leaq 0x21046(%rip), %rdi     # 0x414d0
leaq 0x90(%rsp), %rsi
callq 0x2beca
leaq 0x90(%rsp), %rdi
callq 0x5908
leaq 0x30(%rsp), %rdi
callq 0x5908
leaq 0x50(%rsp), %rdi
callq 0x5908
movb $0x0, 0x3dc(%rbx)
leaq 0xf0(%rsp), %rdi
callq 0x58f0
leaq 0xb0(%rsp), %rdi
callq 0x1665a
jmp 0x204e2
movb $0x1, 0x3dc(%rbx)
leaq 0x70(%rsp), %rdi
callq 0x5908
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x90(%rsp), %rdi
callq 0x5908
jmp 0x20513
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x5908
jmp 0x20522
movq %rax, %rbx
leaq 0x50(%rsp), %rdi
jmp 0x2053b
jmp 0x20558
jmp 0x20533
jmp 0x20544
jmp 0x20558
jmp 0x20549
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x5908
jmp 0x2055b
jmp 0x20544
movq %rax, %rbx
jmp 0x20575
movq %rax, %rbx
jmp 0x20568
jmp 0x20558
jmp 0x20558
jmp 0x20558
jmp 0x20558
jmp 0x20558
movq %rax, %rbx
leaq 0xf0(%rsp), %rdi
callq 0x58f0
leaq 0xb0(%rsp), %rdi
callq 0x1665a
leaq 0x70(%rsp), %rdi
callq 0x5908
movq %rbx, %rdi
callq 0x5800
nop