// File: auton1[P]viterbi/entry_getters.cpp
// Function: entry::get_INFO(std::set<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>, std::allocator<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>> const&, bool) const
string entry::get_INFO(const set<string> &INFO_to_keep, bool keep_all_INFO) const
{
	assert(parsed_INFO == true);

	ostringstream sout;
	sout.str("");
	sout.clear();

	bool first=true;
	if ( ( (!INFO.empty()) && (!INFO_to_keep.empty())  ) || keep_all_INFO )
	{
		string key;
		for (unsigned int ui=0; ui<INFO.size();ui++)
		{
			key = INFO[ui].first;
			if ( keep_all_INFO or (INFO_to_keep.find(key) != INFO_to_keep.end() ) )
			{
				if (first != true)
					sout << ";";

				sout << key;
				if (INFO[ui].second != "")
					sout << "=" << INFO[ui].second;
				first = false;
			}
		}
	}

	if (first == true)
	{	// Didn't find any INFO fields to keep
		sout.str(".");
	}
	return sout.str();
}

// Assembly:
subq $0x288, %rsp            # imm = 0x288
movq %rdi, 0x40(%rsp)
movb %cl, %al
movq %rdi, %rcx
movq %rcx, 0x48(%rsp)
movq %rdi, 0x280(%rsp)
movq %rsi, 0x278(%rsp)
movq %rdx, 0x270(%rsp)
andb $0x1, %al
movb %al, 0x26f(%rsp)
movq 0x278(%rsp), %rax
movq %rax, 0x50(%rsp)
movb 0x3dc(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x4b0a6
jmp 0x4b0c5
leaq 0x2a3c6(%rip), %rdi     # 0x75473
leaq 0x2a1fc(%rip), %rsi     # 0x752b0
movl $0xb8, %edx
leaq 0x2a3c7(%rip), %rcx     # 0x75487
callq 0x6300
leaq 0xf0(%rsp), %rdi
callq 0x67a0
leaq 0xcf(%rsp), %rdi
movq %rdi, 0x38(%rsp)
callq 0x69f0
movq 0x38(%rsp), %rdx
leaq 0x2ac39(%rip), %rsi     # 0x75d29
leaq 0xd0(%rsp), %rdi
callq 0x67c0
jmp 0x4b0ff
leaq 0xf0(%rsp), %rdi
leaq 0xd0(%rsp), %rsi
callq 0x61f0
jmp 0x4b116
leaq 0xd0(%rsp), %rdi
callq 0x6b50
leaq 0xcf(%rsp), %rdi
callq 0x65f0
movq 0xf0(%rsp), %rax
movq -0x18(%rax), %rax
leaq 0xf0(%rsp,%rax), %rdi
xorl %esi, %esi
callq 0x6950
jmp 0x4b14d
movq 0x50(%rsp), %rdi
movb $0x1, 0xbb(%rsp)
addq $0x480, %rdi            # imm = 0x480
callq 0x4d0d0
testb $0x1, %al
jne 0x4b17d
movq 0x270(%rsp), %rdi
callq 0x4d120
testb $0x1, %al
jne 0x4b17d
jmp 0x4b18b
testb $0x1, 0x26f(%rsp)
je 0x4b3f4
leaq 0x98(%rsp), %rdi
callq 0x67e0
movl $0x0, 0x94(%rsp)
movq 0x50(%rsp), %rdi
movl 0x94(%rsp), %eax
movq %rax, 0x30(%rsp)
addq $0x480, %rdi            # imm = 0x480
callq 0x39a20
movq %rax, %rcx
movq 0x30(%rsp), %rax
cmpq %rcx, %rax
jae 0x4b3e7
movq 0x50(%rsp), %rdi
addq $0x480, %rdi            # imm = 0x480
movl 0x94(%rsp), %eax
movl %eax, %esi
callq 0x4d140
movq %rax, %rsi
leaq 0x98(%rsp), %rdi
callq 0x6060
jmp 0x4b1fd
movb $0x1, %al
testb $0x1, 0x26f(%rsp)
movb %al, 0x2f(%rsp)
jne 0x4b264
movq 0x270(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0x39780
movq %rax, 0x20(%rsp)
jmp 0x4b229
movq 0x20(%rsp), %rax
movq %rax, 0x88(%rsp)
movq 0x270(%rsp), %rdi
callq 0x10ba0
movq %rax, 0x80(%rsp)
leaq 0x88(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x39760
movb %al, 0x2f(%rsp)
movb 0x2f(%rsp), %al
testb $0x1, %al
jne 0x4b271
jmp 0x4b3cf
movb 0xbb(%rsp), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
je 0x4b329
leaq 0x2a1ae(%rip), %rsi     # 0x7543b
leaq 0xf0(%rsp), %rdi
callq 0x6540
jmp 0x4b29c
jmp 0x4b329
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc0(%rsp)
movl %eax, 0xbc(%rsp)
jmp 0x4b2d8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc0(%rsp)
movl %eax, 0xbc(%rsp)
leaq 0xd0(%rsp), %rdi
callq 0x6b50
leaq 0xcf(%rsp), %rdi
callq 0x65f0
jmp 0x4b4c8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc0(%rsp)
movl %eax, 0xbc(%rsp)
jmp 0x4b4c8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc0(%rsp)
movl %eax, 0xbc(%rsp)
leaq 0x98(%rsp), %rdi
callq 0x6b50
jmp 0x4b4c8
leaq 0xf0(%rsp), %rdi
leaq 0x98(%rsp), %rsi
callq 0x64a0
jmp 0x4b340
movq 0x50(%rsp), %rdi
addq $0x480, %rdi            # imm = 0x480
movl 0x94(%rsp), %eax
movl %eax, %esi
callq 0x4d140
movq %rax, %rdi
addq $0x20, %rdi
leaq 0x2a9c1(%rip), %rsi     # 0x75d29
callq 0x30930
movb %al, 0x1f(%rsp)
jmp 0x4b373
movb 0x1f(%rsp), %al
testb $0x1, %al
jne 0x4b37d
jmp 0x4b3c7
leaq 0x2b6d1(%rip), %rsi     # 0x76a55
leaq 0xf0(%rsp), %rdi
callq 0x6540
movq %rax, 0x10(%rsp)
jmp 0x4b398
movq 0x50(%rsp), %rdi
addq $0x480, %rdi            # imm = 0x480
movl 0x94(%rsp), %eax
movl %eax, %esi
callq 0x4d140
movq 0x10(%rsp), %rdi
movq %rax, %rsi
addq $0x20, %rsi
callq 0x64a0
jmp 0x4b3c5
jmp 0x4b3c7
movb $0x0, 0xbb(%rsp)
jmp 0x4b3d1
movl 0x94(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x94(%rsp)
jmp 0x4b1a3
leaq 0x98(%rsp), %rdi
callq 0x6b50
movb 0xbb(%rsp), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x1, %eax
jne 0x4b49a
leaq 0x5f(%rsp), %rdi
movq %rdi, 0x8(%rsp)
callq 0x69f0
movq 0x8(%rsp), %rdx
leaq 0x29cba(%rip), %rsi     # 0x750de
leaq 0x60(%rsp), %rdi
callq 0x67c0
jmp 0x4b430
leaq 0xf0(%rsp), %rdi
leaq 0x60(%rsp), %rsi
callq 0x61f0
jmp 0x4b444
leaq 0x60(%rsp), %rdi
callq 0x6b50
leaq 0x5f(%rsp), %rdi
callq 0x65f0
jmp 0x4b49a
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc0(%rsp)
movl %eax, 0xbc(%rsp)
jmp 0x4b48e
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0xc0(%rsp)
movl %eax, 0xbc(%rsp)
leaq 0x60(%rsp), %rdi
callq 0x6b50
leaq 0x5f(%rsp), %rdi
callq 0x65f0
jmp 0x4b4c8
movq 0x40(%rsp), %rdi
leaq 0xf0(%rsp), %rsi
callq 0x6570
jmp 0x4b4ae
leaq 0xf0(%rsp), %rdi
callq 0x6b30
movq 0x48(%rsp), %rax
addq $0x288, %rsp            # imm = 0x288
retq
leaq 0xf0(%rsp), %rdi
callq 0x6b30
movq 0xc0(%rsp), %rdi
callq 0x69e0
nopw %cs:(%rax,%rax)