// File: /workspace/github_cpp_makefile_star2_O2/auton1[P]viterbi/entry_filters.cpp
// Function: entry::filter_sites_by_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&, 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&)
void entry::filter_sites_by_INFO(const set<string> &flags_to_remove, const set<string> &flags_to_keep)
{
	// Filter sites by entries in the INFO field.
	if (passed_filters == false)
		return;

	if ((flags_to_remove.empty()) && (flags_to_keep.empty()))
		return;

	string value;
	unsigned int N_to_remove = flags_to_remove.size();
	unsigned int N_to_keep = flags_to_keep.size();

	parse_basic_entry(false, false, true);

	if (N_to_keep > 0)
	{
		bool keep = false;
		for (set<string>::iterator it=flags_to_keep.begin(); it != flags_to_keep.end(); ++it)
		{
			if (entry_header.INFO_map[ entry_header.INFO_reverse_map[*it] ].Type != Flag)
				LOG.error("Using INFO flag filtering on non flag type "+*it+" will not work correctly.");
			else
			{
				value = get_INFO_value(*it);
				if (value == "1")
					keep = true;
			}
		}
		passed_filters = keep;
	}

	if (passed_filters==false)
		return;

	if (N_to_remove > 0)
	{
		for (set<string>::iterator it=flags_to_remove.begin(); it != flags_to_remove.end(); ++it)
		{
			if (entry_header.INFO_map[ entry_header.INFO_reverse_map[*it] ].Type != Flag)
				LOG.error("Using INFO flag filtering on non flag type "+*it+" will not work correctly.");
			else
			{
				value = get_INFO_value(*it);
				if (value == "1")
				{
					passed_filters = false;
					continue;
				}
			}
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movq %rdi, 0x8(%rsp)
cmpb $0x0, 0xc(%rdi)
je 0x2333a
movq %rdx, %r15
movq %rsi, %r14
movq 0x28(%rsi), %r13
movq 0x28(%rdx), %rbx
movq %r13, %rax
orq %rbx, %rax
je 0x2333a
leaq 0x38(%rsp), %rax
movq %rax, -0x10(%rax)
andq $0x0, -0x8(%rax)
movb $0x0, (%rax)
movq 0x8(%rsp), %rdi
movq (%rdi), %rax
pushq $0x1
popq %rcx
xorl %esi, %esi
xorl %edx, %edx
callq *0x10(%rax)
movq %r14, 0x18(%rsp)
testl %ebx, %ebx
je 0x23226
movq %r13, 0x10(%rsp)
movq 0x18(%r15), %r13
addq $0x8, %r15
movq 0x8(%rsp), %rax
leaq 0x190(%rax), %rcx
movq %rcx, 0x20(%rsp)
leaq 0x70(%rax), %rbp
xorl %r12d, %r12d
leaq 0x48(%rsp), %rbx
cmpq %r15, %r13
je 0x23212
leaq 0x20(%r13), %r14
movq 0x20(%rsp), %rdi
movq %r14, %rsi
callq 0x1316c
movq %rbp, %rdi
movq %rax, %rsi
callq 0x1311e
cmpl $0x4, 0x88(%rax)
jne 0x231b4
movq %rbx, %rdi
movq 0x8(%rsp), %rsi
movq %r14, %rdx
callq 0x1c71c
leaq 0x28(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
callq 0x5580
movq %rbx, %rdi
callq 0x5908
movq %r14, %rdi
leaq 0x9ed3(%rip), %rsi      # 0x2d073
callq 0x96f3
movzbl %r12b, %r12d
testb %al, %al
pushq $0x1
popq %rax
cmovnel %eax, %r12d
jmp 0x23202
movq %rbx, %rdi
leaq 0xbd76(%rip), %rsi      # 0x2ef34
movq %r14, %rdx
callq 0x967d
leaq 0x88(%rsp), %r14
movq %r14, %rdi
movq %rbx, %rsi
leaq 0xbd85(%rip), %rdx      # 0x2ef60
callq 0x98b6
leaq 0x1e2e9(%rip), %rdi     # 0x414d0
movq %r14, %rsi
pushq $0x1
popq %rdx
callq 0x2bf18
movq %r14, %rdi
callq 0x5908
movq %rbx, %rdi
callq 0x5908
movq %r13, %rdi
callq 0x5520
movq %rax, %r13
jmp 0x23140
andb $0x1, %r12b
movq 0x8(%rsp), %rax
movb %r12b, 0xc(%rax)
movq 0x10(%rsp), %r13
jmp 0x2322f
movq 0x8(%rsp), %rax
movb 0xc(%rax), %r12b
testl %r13d, %r13d
je 0x23330
testb %r12b, %r12b
je 0x23330
movq 0x18(%rsp), %rbp
movq 0x18(%rbp), %r15
addq $0x8, %rbp
movq 0x8(%rsp), %rax
leaq 0x190(%rax), %rbx
leaq 0x70(%rax), %r12
leaq 0x48(%rsp), %r14
cmpq %rbp, %r15
je 0x23330
leaq 0x20(%r15), %r13
movq %rbx, %rdi
movq %r13, %rsi
callq 0x1316c
movq %r12, %rdi
movq %rax, %rsi
callq 0x1311e
cmpl $0x4, 0x88(%rax)
jne 0x232d5
movq %r14, %rdi
movq 0x8(%rsp), %rsi
movq %r13, %rdx
callq 0x1c71c
leaq 0x28(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
callq 0x5580
movq %r14, %rdi
callq 0x5908
movq %r13, %rdi
leaq 0x9db2(%rip), %rsi      # 0x2d073
callq 0x96f3
testb %al, %al
je 0x23320
movq 0x8(%rsp), %rax
movb $0x0, 0xc(%rax)
jmp 0x23320
movq %r14, %rdi
leaq 0xbc55(%rip), %rsi      # 0x2ef34
movq %r13, %rdx
callq 0x967d
leaq 0x68(%rsp), %r13
movq %r13, %rdi
movq %r14, %rsi
leaq 0xbc67(%rip), %rdx      # 0x2ef60
callq 0x98b6
leaq 0x1e1cb(%rip), %rdi     # 0x414d0
movq %r13, %rsi
pushq $0x1
popq %rdx
callq 0x2bf18
movq %r13, %rdi
callq 0x5908
movq %r14, %rdi
callq 0x5908
movq %r15, %rdi
callq 0x5520
movq %rax, %r15
jmp 0x23263
leaq 0x28(%rsp), %rdi
callq 0x5908
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
jmp 0x23385
jmp 0x23385
movq %rax, %rbx
leaq 0x68(%rsp), %rdi
jmp 0x2336b
jmp 0x23372
jmp 0x23385
jmp 0x23385
movq %rax, %rbx
leaq 0x88(%rsp), %rdi
callq 0x5908
jmp 0x23375
movq %rax, %rbx
leaq 0x48(%rsp), %rdi
callq 0x5908
jmp 0x23388
jmp 0x23385
jmp 0x23385
movq %rax, %rbx
leaq 0x28(%rsp), %rdi
callq 0x5908
movq %rbx, %rdi
callq 0x5800