// File: auton1[P]viterbi/entry_filters.cpp
// Function: entry::filter_sites_to_exclude(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void entry::filter_sites_to_exclude(const string &snps_to_exclude_file)
{
	// Filter sites by user provided list
	if(passed_filters == false)
		return;

	if (snps_to_exclude_file == "")
		return;

	if (snps_to_exclude_file != "" && snps_to_exclude.empty())
	{
		ifstream in(snps_to_exclude_file.c_str());
		string tmp;
		if (!in.is_open())
		{
			LOG.error("Could not open SNPs to Exclude file" + snps_to_exclude_file, 0);
		}
		while (!in.eof())
		{
			in >> tmp;
			snps_to_exclude.insert(tmp);
			in.ignore(numeric_limits<streamsize>::max(), '\n');
		}
		in.close();
	}

	parse_basic_entry();

	if (snps_to_exclude.find(ID) != snps_to_exclude.end())
		passed_filters = false;
}

// Assembly:
subq $0x2b8, %rsp            # imm = 0x2B8
movq %rdi, 0x2b0(%rsp)
movq %rsi, 0x2a8(%rsp)
movq 0x2b0(%rsp), %rax
movq %rax, 0x28(%rsp)
movb 0xc(%rax), %al
andb $0x1, %al
movzbl %al, %eax
cmpl $0x0, %eax
jne 0x5ea06
jmp 0x5ec4b
movq 0x2a8(%rsp), %rdi
leaq 0x17314(%rip), %rsi     # 0x75d29
callq 0xea20
testb $0x1, %al
jne 0x5ea20
jmp 0x5ea25
jmp 0x5ec4b
movq 0x2a8(%rsp), %rdi
leaq 0x172f5(%rip), %rsi     # 0x75d29
callq 0x30930
testb $0x1, %al
jne 0x5ea42
jmp 0x5ebee
leaq 0x35a07(%rip), %rdi     # 0x94450
callq 0x4d120
testb $0x1, %al
jne 0x5ea57
jmp 0x5ebee
movq 0x2a8(%rsp), %rdi
callq 0x61a0
movq %rax, %rsi
leaq 0xa0(%rsp), %rdi
movq %rdi, 0x18(%rsp)
movl $0x8, %edx
callq 0x6a60
leaq 0x80(%rsp), %rdi
callq 0x67e0
movq 0x18(%rsp), %rdi
callq 0x68d0
movb %al, 0x27(%rsp)
jmp 0x5ea9b
movb 0x27(%rsp), %al
testb $0x1, %al
jne 0x5eb11
jmp 0x5eaa5
movq 0x2a8(%rsp), %rdx
leaq 0x1719a(%rip), %rsi     # 0x75c4e
leaq 0x50(%rsp), %rdi
callq 0xe8d0
jmp 0x5eac0
leaq 0x34b39(%rip), %rdi     # 0x93600
leaq 0x50(%rsp), %rsi
xorl %edx, %edx
callq 0x712f0
jmp 0x5ead5
leaq 0x50(%rsp), %rdi
callq 0x6b50
jmp 0x5eb11
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
jmp 0x5ebd2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x78(%rsp)
movl %eax, 0x74(%rsp)
leaq 0x50(%rsp), %rdi
callq 0x6b50
jmp 0x5ebd2
jmp 0x5eb13
movq 0xa0(%rsp), %rax
movq -0x18(%rax), %rax
leaq 0xa0(%rsp,%rax), %rdi
callq 0x6a70
movb %al, 0x17(%rsp)
jmp 0x5eb32
movb 0x17(%rsp), %al
xorb $-0x1, %al
testb $0x1, %al
jne 0x5eb3e
jmp 0x5eba7
leaq 0xa0(%rsp), %rdi
leaq 0x80(%rsp), %rsi
callq 0x6720
jmp 0x5eb55
leaq 0x358f4(%rip), %rdi     # 0x94450
leaq 0x80(%rsp), %rsi
callq 0x5ed80
movb %dl, 0x7(%rsp)
movq %rax, 0x8(%rsp)
jmp 0x5eb74
movb 0x7(%rsp), %al
movq 0x8(%rsp), %rcx
movq %rcx, 0x40(%rsp)
movb %al, 0x48(%rsp)
callq 0x5ede0
movq %rax, %rsi
leaq 0xa0(%rsp), %rdi
movl $0xa, %edx
callq 0x62e0
jmp 0x5eba2
jmp 0x5eb13
leaq 0xa0(%rsp), %rdi
callq 0x60d0
jmp 0x5ebb6
leaq 0x80(%rsp), %rdi
callq 0x6b50
leaq 0xa0(%rsp), %rdi
callq 0x6b38
jmp 0x5ebee
leaq 0x80(%rsp), %rdi
callq 0x6b50
leaq 0xa0(%rsp), %rdi
callq 0x6b38
jmp 0x5ec53
movq 0x28(%rsp), %rdi
movq (%rdi), %rax
xorl %ecx, %ecx
movl %ecx, %esi
movl %ecx, %edx
callq *0x10(%rax)
movq 0x28(%rsp), %rsi
addq $0x408, %rsi            # imm = 0x408
leaq 0x3583e(%rip), %rdi     # 0x94450
callq 0x10b60
movq %rax, 0x38(%rsp)
leaq 0x3582d(%rip), %rdi     # 0x94450
callq 0x10ba0
movq %rax, 0x30(%rsp)
leaq 0x38(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x39760
testb $0x1, %al
jne 0x5ec42
jmp 0x5ec4b
movq 0x28(%rsp), %rax
movb $0x0, 0xc(%rax)
addq $0x2b8, %rsp            # imm = 0x2B8
retq
movq 0x78(%rsp), %rdi
callq 0x69e0
nopl (%rax)