// File: /workspace/github_cpp_makefile_star2_O1/auton1[P]viterbi/variant_file_filters.cpp
// Function: variant_file::filter_individuals_by_keep_list(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::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
void variant_file::filter_individuals_by_keep_list(const set<string> &indv_to_keep, const string &indv_to_keep_filename)
{
	// Filter individuals by user provided list
	if ((indv_to_keep_filename == "") && (indv_to_keep.size() == 0))
		return;

	LOG.printLOG("Keeping individuals in 'keep' list\n");
	set<string> indv_to_keep_copy = indv_to_keep;
	if (indv_to_keep_filename != "")
	{
		ifstream infile(indv_to_keep_filename.c_str());
		if (!infile.is_open())
			LOG.error("Could not open Individual file:" + indv_to_keep_filename, 1);
		string line;
		string tmp_indv;
		stringstream ss;
		while (!infile.eof())
		{
			getline(infile, line);
			ss.str(line);
			ss >> tmp_indv;
			indv_to_keep_copy.insert(tmp_indv);
			ss.clear();
		}
		infile.close();
	}
	for (unsigned int ui=0; ui<include_indv.size(); ui++)
	{
		if (include_indv[ui] == false)
			continue;
		if (indv_to_keep_copy.find(meta_data.indv[ui]) == indv_to_keep_copy.end())
			include_indv[ui] = false;
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x448, %rsp            # imm = 0x448
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
leaq 0xc2b0(%rip), %rsi      # 0x3aeff
movq %rdx, %rdi
callq 0x50e0
testl %eax, %eax
jne 0x2ec66
cmpq $0x0, 0x28(%r15)
je 0x2eefb
leaq 0xa8(%rsp), %r13
movq %r13, -0x10(%r13)
leaq 0xc3fa(%rip), %rsi      # 0x3b073
leaq 0xc416(%rip), %rdx      # 0x3b096
leaq 0x98(%rsp), %r12
movq %r12, %rdi
callq 0xc868
leaq 0x1b811(%rip), %rdi     # 0x4a4a8
movq %r12, %rsi
callq 0x371c8
movq 0x98(%rsp), %rdi
cmpq %r13, %rdi
je 0x2ecb1
callq 0x5410
leaq 0x68(%rsp), %rdi
movq %r15, %rsi
callq 0x2f3bc
leaq 0xc23a(%rip), %rsi      # 0x3aeff
movq %r14, %rdi
callq 0x50e0
testl %eax, %eax
je 0x2ee59
movq (%r14), %rsi
leaq 0x240(%rsp), %rdi
movl $0x8, %edx
callq 0x5820
leaq 0x2b8(%rsp), %rdi
callq 0x50b0
testb %al, %al
jne 0x2ed38
leaq 0xc395(%rip), %rsi      # 0x3b097
leaq 0x48(%rsp), %rdi
movq %r14, %rdx
callq 0xb7dd
leaq 0x1b792(%rip), %rdi     # 0x4a4a8
leaq 0x48(%rsp), %rsi
movl $0x1, %edx
callq 0x3721e
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x2ed38
callq 0x5410
leaq 0x38(%rsp), %rcx
movq %rcx, -0x10(%rcx)
xorl %eax, %eax
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0x18(%rsp), %rcx
movq %rcx, -0x10(%rcx)
movq %rax, -0x8(%rcx)
movb %al, (%rcx)
leaq 0xb8(%rsp), %r14
movq %r14, %rdi
callq 0x52e0
leaq 0x240(%rsp), %r12
leaq 0x28(%rsp), %r13
leaq 0x8(%rsp), %rbp
leaq 0x68(%rsp), %r15
movq 0x240(%rsp), %rax
movq -0x18(%rax), %rax
testb $0x2, 0x260(%rsp,%rax)
jne 0x2edf6
leaq (%rsp,%rax), %rdi
addq $0x240, %rdi            # imm = 0x240
movl $0xa, %esi
callq 0x5440
movsbl %al, %edx
movq %r12, %rdi
movq %r13, %rsi
callq 0x5830
leaq 0xd0(%rsp), %rdi
movq %r13, %rsi
callq 0x5640
movq %r14, %rdi
movq %rbp, %rsi
callq 0x5590
movq %r15, %rdi
movq %rbp, %rsi
callq 0x2ca08
movq 0xb8(%rsp), %rax
movq -0x18(%rax), %rdi
addq %r14, %rdi
xorl %esi, %esi
callq 0x5750
jmp 0x2ed7f
leaq 0x240(%rsp), %rdi
callq 0x50a0
movq 0x1b176(%rip), %rsi     # 0x49f80
leaq 0xb8(%rsp), %rdi
callq 0x5330
leaq 0x138(%rsp), %rdi
callq 0x5100
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2ee38
callq 0x5410
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2ee4c
callq 0x5410
leaq 0x240(%rsp), %rdi
callq 0x58a0
movq 0x430(%rbx), %rax
movq 0x440(%rbx), %rcx
movl 0x448(%rbx), %edx
subq %rax, %rcx
shlq $0x3, %rcx
addq %rdx, %rcx
je 0x2eef1
movl $0x1, %ebp
leaq 0x70(%rsp), %r15
xorl %ecx, %ecx
leaq 0x68(%rsp), %r14
movl $0x1, %r12d
shlq %cl, %r12
movq %rcx, %r13
shrq $0x6, %r13
movq (%rax,%r13,8), %rax
btq %rcx, %rax
jae 0x2eecd
shlq $0x5, %rcx
addq 0x260(%rbx), %rcx
movq %r14, %rdi
movq %rcx, %rsi
callq 0xe596
cmpq %r15, %rax
jne 0x2eecd
movq 0x430(%rbx), %rax
notq %r12
andq %r12, (%rax,%r13,8)
movl %ebp, %ecx
movq 0x430(%rbx), %rax
movq 0x440(%rbx), %rdx
movl 0x448(%rbx), %esi
subq %rax, %rdx
leaq (%rsi,%rdx,8), %rdx
incl %ebp
cmpq %rcx, %rdx
ja 0x2ee8a
leaq 0x68(%rsp), %rdi
callq 0xc74a
addq $0x448, %rsp            # imm = 0x448
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
leaq 0x58(%rsp), %rax
movq -0x10(%rax), %rdi
jmp 0x2ef87
movq %rax, %rbx
jmp 0x2ef91
jmp 0x2ef45
movq %rax, %rbx
jmp 0x2ef69
jmp 0x2ef40
movq %rax, %rbx
movq 0x98(%rsp), %rdi
cmpq %r13, %rdi
je 0x2efa8
callq 0x5410
jmp 0x2efa8
movq %rax, %rbx
jmp 0x2ef9e
movq %rax, %rbx
movq 0x1b031(%rip), %rsi     # 0x49f80
leaq 0xb8(%rsp), %rdi
callq 0x5330
leaq 0x138(%rsp), %rdi
callq 0x5100
movq 0x8(%rsp), %rdi
leaq 0x18(%rsp), %rax
cmpq %rax, %rdi
je 0x2ef7d
callq 0x5410
movq 0x28(%rsp), %rdi
leaq 0x38(%rsp), %rax
cmpq %rax, %rdi
je 0x2ef91
callq 0x5410
leaq 0x240(%rsp), %rdi
callq 0x58a0
leaq 0x68(%rsp), %rdi
callq 0xc74a
movq %rbx, %rdi
callq 0x57d0