// File: /workspace/github_cpp_makefile_star2_O3/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, %r14
movl 0x6e8(%rdi), %eax
movl %eax, 0x4(%rsp)
leaq 0xc0(%rsp), %rax
movq %rax, -0x10(%rax)
movq $0x0, -0x8(%rax)
movb $0x0, (%rax)
addq $0x480, %rdi            # imm = 0x480
movl 0x6b8(%r14), %esi
movq %rdi, 0x68(%rsp)
callq 0x25bee
cmpl $0x0, 0x6b8(%r14)
je 0x272fd
leaq 0x3c0(%r14), %r12
leaq 0x70(%r14), %rax
movq %rax, 0x40(%rsp)
movb $0x1, %al
movl %eax, 0x8(%rsp)
movq $0x0, 0x18(%rsp)
leaq 0x4(%rsp), %rbp
leaq 0xc(%rsp), %r13
leaq 0x10(%rsp), %r15
leaq 0xf0(%rsp), %rbx
movq %r14, %rdi
movq %rbp, %rsi
movq %r12, %rdx
movq %r13, %rcx
movq %r15, %r8
callq 0x21464
movl %eax, 0x14(%rsp)
movq %r14, %rdi
movq %rbp, %rsi
movq %r12, %rdx
movq %r13, %rcx
movq %r15, %r8
callq 0x21396
movq 0x40(%rsp), %rdi
leaq 0x14(%rsp), %rsi
callq 0x17782
addq $0x20, %rax
leaq 0x70(%rsp), %rdi
movq %rax, %rsi
leaq 0x121cc(%rip), %rdx     # 0x391ed
callq 0x25c1e
movq 0x40(%rsp), %rdi
leaq 0x14(%rsp), %rsi
callq 0x17782
addq $0x68, %rax
leaq 0xb0(%rsp), %rdi
movq %rax, %rsi
callq 0x51f0
movq %rbx, %rdi
movl $0x10, %esi
callq 0x53b0
cmpl $0x0, 0x10(%rsp)
je 0x27195
xorl %r13d, %r13d
testl %r13d, %r13d
setne %al
movl 0xc(%rsp), %edx
cmpl $0x7, %edx
setne %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x27093
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x11c02(%rip), %rsi     # 0x38c8c
callq 0x54f0
movl 0xc(%rsp), %edx
movl 0x4(%rsp), %esi
movq %r14, %rdi
movq %r12, %rcx
callq 0x21712
testb %al, %al
je 0x270bf
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x12138(%rip), %rsi     # 0x391ed
callq 0x54f0
jmp 0x27187
movl 0xc(%rsp), %esi
leal -0x1(%rsi), %eax
cmpl $0x6, %eax
ja 0x2730a
leaq 0x12b66(%rip), %rcx     # 0x39c3c
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl 0x4(%rsp), %eax
movq (%r12), %rcx
movsbl (%rcx,%rax), %esi
incl %eax
movl %eax, 0x4(%rsp)
movq %rbx, %rdi
callq 0x57a0
jmp 0x2717f
movl 0x4(%rsp), %eax
movq (%r12), %rcx
movswl (%rcx,%rax), %esi
addl $0x2, %eax
movl %eax, 0x4(%rsp)
movq %rbx, %rdi
callq 0x57a0
jmp 0x2717f
movl 0x4(%rsp), %eax
movq (%r12), %rcx
leal 0x4(%rax), %edx
xorps %xmm0, %xmm0
cvtss2sd (%rcx,%rax), %xmm0
movl %edx, 0x4(%rsp)
movq %rbx, %rdi
callq 0x56e0
jmp 0x2717f
movl 0x4(%rsp), %eax
movq (%r12), %rcx
movl (%rcx,%rax), %esi
addl $0x4, %eax
movl %eax, 0x4(%rsp)
movq %rbx, %rdi
callq 0x57a0
jmp 0x2717f
movl 0x4(%rsp), %eax
movq (%r12), %rcx
movb (%rcx,%rax), %cl
incl %eax
movl %eax, 0x4(%rsp)
movb %cl, 0x20(%rsp)
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x20(%rsp), %rsi
callq 0x54f0
movl $0x0, 0x8(%rsp)
incl %r13d
cmpl 0x10(%rsp), %r13d
jb 0x27064
leaq 0x20(%rsp), %rdi
leaq 0xf8(%rsp), %rsi
callq 0x56c0
leaq 0x1203f(%rip), %rcx     # 0x391ed
testb $0x1, 0x8(%rsp)
jne 0x2722b
leaq 0xb0(%rsp), %rdi
leaq 0x11a5c(%rip), %rsi     # 0x38c20
callq 0x50e0
leaq 0x117d9(%rip), %rcx     # 0x389a9
testl %eax, %eax
je 0x2722b
leaq 0x20(%rsp), %rdi
leaq 0x12cf7(%rip), %rsi     # 0x39ed7
callq 0x50e0
leaq 0x12001(%rip), %rcx     # 0x391ed
testl %eax, %eax
je 0x2722b
leaq 0x48(%rsp), %r13
movq %r13, %rdi
leaq 0xf8(%rsp), %rsi
callq 0x56c0
leaq 0x90(%rsp), %rdi
movq %r13, %rsi
callq 0x5550
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x27248
callq 0x5410
jmp 0x27248
movq 0x98(%rsp), %rdx
movl $0x1, %r8d
leaq 0x90(%rsp), %rdi
xorl %esi, %esi
callq 0x5690
movq 0x18(%rsp), %r13
shlq $0x6, %r13
movq 0x68(%rsp), %rax
addq (%rax), %r13
movq %r13, %rdi
leaq 0x70(%rsp), %rsi
callq 0x51f0
addq $0x20, %r13
movq %r13, %rdi
leaq 0x90(%rsp), %rsi
callq 0x51f0
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x2728e
callq 0x5410
movq %rbx, %rdi
movq 0x21d28(%rip), %rsi     # 0x48fc0
callq 0x51e0
leaq 0x160(%rsp), %rdi
callq 0x5100
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x272c4
callq 0x5410
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x272db
callq 0x5410
movq 0x18(%rsp), %rdx
incq %rdx
movl 0x6b8(%r14), %eax
movq %rdx, 0x18(%rsp)
cmpq %rax, %rdx
leaq 0xc(%rsp), %r13
jb 0x26fd3
movb $0x1, 0x3dc(%r14)
jmp 0x2747b
leaq 0x48(%rsp), %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x1720e
leaq 0x1297c(%rip), %rcx     # 0x39c9c
leaq 0x48(%rsp), %rdi
movl $0x15, %r8d
xorl %esi, %esi
xorl %edx, %edx
callq 0x54d0
leaq 0x30(%rsp), %rbx
movq %rbx, 0x20(%rsp)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x2735c
movq %rdx, 0x20(%rsp)
movq (%rcx), %rdx
movq %rdx, 0x30(%rsp)
jmp 0x27362
movups (%rcx), %xmm0
movups %xmm0, (%rbx)
movq 0x8(%rax), %rdx
leaq 0x20(%rsp), %rdi
movq %rdx, 0x8(%rdi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x10dd1(%rip), %rsi     # 0x38156
callq 0x5870
leaq 0xe0(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%rax), %rdx
movq %rax, %rcx
addq $0x10, %rcx
cmpq %rcx, %rdx
je 0x273ba
movq %rdx, 0xd0(%rsp)
movq (%rcx), %rdx
movq %rdx, 0xe0(%rsp)
jmp 0x273c1
movups (%rcx), %xmm0
movups %xmm0, (%r15)
movq 0x8(%rax), %rdx
leaq 0xd0(%rsp), %rsi
movq %rdx, 0x8(%rsi)
movq %rcx, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
leaq 0x220c1(%rip), %rdi     # 0x494a8
callq 0x36e72
movq 0xd0(%rsp), %rdi
cmpq %r15, %rdi
je 0x273fe
callq 0x5410
movq 0x20(%rsp), %rdi
cmpq %rbx, %rdi
je 0x2740d
callq 0x5410
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
cmpq %rax, %rdi
je 0x27421
callq 0x5410
movb $0x0, 0x3dc(%r14)
movq 0x21b90(%rip), %rsi     # 0x48fc0
leaq 0xf0(%rsp), %rdi
callq 0x51e0
leaq 0x160(%rsp), %rdi
callq 0x5100
movq 0x90(%rsp), %rdi
leaq 0xa0(%rsp), %rax
cmpq %rax, %rdi
je 0x27464
callq 0x5410
movq 0x70(%rsp), %rdi
leaq 0x80(%rsp), %rax
cmpq %rax, %rdi
je 0x2747b
callq 0x5410
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x27495
callq 0x5410
addq $0x268, %rsp            # imm = 0x268
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq 0xd0(%rsp), %rdi
cmpq %r15, %rdi
je 0x274c1
callq 0x5410
jmp 0x274c1
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x274da
callq 0x5410
jmp 0x274da
movq %rax, %rbx
movq 0x48(%rsp), %rdi
leaq 0x58(%rsp), %rax
jmp 0x27513
jmp 0x2751f
jmp 0x27501
jmp 0x27506
jmp 0x2751f
jmp 0x274fa
jmp 0x2751f
jmp 0x2751f
jmp 0x2751f
jmp 0x2751f
jmp 0x2751f
movq %rax, %rbx
jmp 0x27543
jmp 0x27501
movq %rax, %rbx
jmp 0x2754d
movq %rax, %rbx
movq 0x20(%rsp), %rdi
leaq 0x30(%rsp), %rax
cmpq %rax, %rdi
je 0x27522
callq 0x5410
jmp 0x27522
movq %rax, %rbx
movq 0x21a97(%rip), %rsi     # 0x48fc0
leaq 0xf0(%rsp), %rdi
callq 0x51e0
leaq 0x160(%rsp), %rdi
callq 0x5100
leaq 0x70(%rsp), %rdi
callq 0x25a68
movq 0xb0(%rsp), %rdi
leaq 0xc0(%rsp), %rax
cmpq %rax, %rdi
je 0x27567
callq 0x5410
movq %rbx, %rdi
callq 0x57d0
nop