// File: /workspace/github_cpp_makefile_star2_O3/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x1b8, %rsp            # imm = 0x1B8
movq %rdx, 0x28(%rsp)
cmpb $0x0, 0x3dc(%rsi)
je 0x22569
movl %ecx, %ebp
movq %rsi, %r12
movq %rdi, %r14
leaq 0x40(%rsp), %rbx
movq %rbx, %rdi
callq 0x55d0
leaq 0x18(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x17b7f(%rip), %rdx     # 0x39ed7
leaq 0x8(%rsp), %rdi
movq %rdx, %rsi
callq 0xc85e
leaq 0x48(%rsp), %r13
leaq 0x8(%rsp), %rsi
movq %r13, %rdi
callq 0x5640
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x22386
callq 0x5410
movq 0x40(%rsp), %rax
addq -0x18(%rax), %rbx
movq %rbx, %rdi
xorl %esi, %esi
callq 0x5750
movq 0x480(%r12), %rsi
cmpq 0x488(%r12), %rsi
je 0x224f4
movq 0x28(%rsp), %rax
cmpq $0x0, 0x28(%rax)
sete %al
movl %ebp, %ecx
xorb $0x1, %cl
testb %cl, %al
jne 0x224f4
movq %r14, 0x30(%rsp)
leaq 0x8(%rsp), %rax
movq %r15, (%rax)
movq $0x0, 0x8(%rax)
movb $0x0, 0x10(%rax)
movq 0x28(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x38(%rsp)
movb $0x1, %r13b
movl $0x1, %r15d
xorl %r14d, %r14d
leaq 0x40(%rsp), %rbx
shlq $0x6, %r14
addq %r14, %rsi
leaq 0x8(%rsp), %rdi
callq 0x51f0
testb %bpl, %bpl
jne 0x2242d
movq 0x28(%rsp), %rdi
leaq 0x8(%rsp), %rsi
callq 0x1b8cc
cmpq 0x38(%rsp), %rax
je 0x224aa
testb $0x1, %r13b
jne 0x22447
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x17155(%rip), %rsi     # 0x39597
callq 0x54f0
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq %rbx, %rdi
callq 0x54f0
movq 0x480(%r12), %rax
leaq (%rax,%r14), %rdi
addq $0x20, %rdi
leaq 0x17a67(%rip), %rsi     # 0x39ed7
callq 0x50e0
testl %eax, %eax
je 0x224a7
movl $0x1, %edx
movq %rbx, %rdi
leaq 0x1879d(%rip), %rsi     # 0x3ac25
callq 0x54f0
movq 0x480(%r12), %rax
movq 0x20(%rax,%r14), %rsi
movq 0x28(%rax,%r14), %rdx
movq %rbx, %rdi
callq 0x54f0
xorl %r13d, %r13d
movl %r15d, %r14d
movq 0x480(%r12), %rsi
movq 0x488(%r12), %rax
subq %rsi, %rax
sarq $0x6, %rax
incl %r15d
cmpq %r14, %rax
ja 0x22401
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %r15
cmpq %r15, %rdi
je 0x224e4
callq 0x5410
testb $0x1, %r13b
movq 0x30(%rsp), %r14
leaq 0x48(%rsp), %r13
je 0x2252b
leaq 0x8(%rsp), %rdi
movq %r15, (%rdi)
leaq 0x16cea(%rip), %rsi     # 0x391ed
leaq 0x16ce4(%rip), %rdx     # 0x391ee
callq 0xc85e
leaq 0x8(%rsp), %rsi
movq %r13, %rdi
callq 0x5640
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
je 0x2252b
callq 0x5410
movq %r14, %rdi
movq %r13, %rsi
callq 0x56c0
movq 0x26a83(%rip), %rsi     # 0x48fc0
leaq 0x40(%rsp), %rdi
callq 0x51e0
leaq 0xb0(%rsp), %rdi
callq 0x5100
movq %r14, %rax
addq $0x1b8, %rsp            # imm = 0x1B8
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1705f(%rip), %rdi     # 0x395cf
leaq 0x16e95(%rip), %rsi     # 0x3940c
leaq 0x17065(%rip), %rcx     # 0x395e3
movl $0xb8, %edx
callq 0x5280
jmp 0x22590
jmp 0x2259f
jmp 0x2259f
jmp 0x2259f
movq %rax, %rbx
movq 0x8(%rsp), %rdi
cmpq %r15, %rdi
jne 0x225b8
jmp 0x225bd
movq %rax, %rbx
jmp 0x225bd
jmp 0x225a6
movq %rax, %rbx
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x225bd
callq 0x5410
movq 0x269fc(%rip), %rsi     # 0x48fc0
leaq 0x40(%rsp), %rdi
callq 0x51e0
leaq 0xb0(%rsp), %rdi
callq 0x5100
movq %rbx, %rdi
callq 0x57d0
nop