// File: auton1[P]viterbi/bcf_entry_setters.cpp
// Function: bcf_entry::set_indv_GFILTER(unsigned int, std::vector<char, std::allocator<char>> const&)
void bcf_entry::set_indv_GFILTER(unsigned int indv, const vector<char> &in)
{
	parsed_FT[indv] = true;

	if (GFILTER.size() == 0)
		GFILTER.resize(N_indv);

	GFILTER[indv].resize(0);
	if (in.empty())
		return;
	else if ((in.size() == 1) and (in[0] == '\0') )
		return;

	ostringstream ss;
	string ith_FILTER;
	ss.clear();
	for (unsigned int ui=0; ui<in.size(); ui++)
	{
		if (in[ui] == ';')
		{
			ith_FILTER = ss.str();
			ss.clear();

			if ((ith_FILTER.size()==0) || (ith_FILTER == "."))
				continue;	// Don't bother storing "unfiltered" state.

			GFILTER[indv].push_back(ith_FILTER);
		}
		else
			ss << in[ui];
	}
	ith_FILTER = ss.str();
	ss.clear();

	if ((ith_FILTER.size()!=0) || (ith_FILTER != "."))
		GFILTER[indv].push_back(ith_FILTER);
}

// Assembly:
subq $0x248, %rsp            # imm = 0x248
movq %rdi, 0x240(%rsp)
movl %esi, 0x23c(%rsp)
movq %rdx, 0x230(%rsp)
movq 0x240(%rsp), %rdi
movq %rdi, 0x30(%rsp)
addq $0x5d8, %rdi            # imm = 0x5D8
movl 0x23c(%rsp), %eax
movl %eax, %esi
callq 0x102b0
movq %rax, 0x220(%rsp)
movq %rdx, 0x228(%rsp)
leaq 0x220(%rsp), %rdi
movl $0x1, %esi
callq 0x1bd30
movq 0x30(%rsp), %rdi
addq $0x548, %rdi            # imm = 0x548
callq 0x51f70
cmpq $0x0, %rax
jne 0x58992
movq 0x30(%rsp), %rax
movq %rax, %rdi
addq $0x548, %rdi            # imm = 0x548
movl 0x8(%rax), %eax
movl %eax, %esi
callq 0x51f90
movq 0x30(%rsp), %rdi
addq $0x548, %rdi            # imm = 0x548
movl 0x23c(%rsp), %eax
movl %eax, %esi
callq 0x433f0
movq %rax, %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x2a0f0
movq 0x230(%rsp), %rdi
callq 0x39540
testb $0x1, %al
jne 0x589cb
jmp 0x589d0
jmp 0x58c7e
movq 0x230(%rsp), %rdi
callq 0x249e0
cmpq $0x1, %rax
jne 0x58a01
movq 0x230(%rsp), %rdi
xorl %eax, %eax
movl %eax, %esi
callq 0x49920
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x58a01
jmp 0x58c7e
jmp 0x58a03
leaq 0xa8(%rsp), %rdi
callq 0x67a0
leaq 0x88(%rsp), %rdi
callq 0x67e0
movq 0xa8(%rsp), %rax
movq -0x18(%rax), %rax
leaq 0xa8(%rsp,%rax), %rdi
xorl %esi, %esi
callq 0x6950
jmp 0x58a3a
movl $0x0, 0x78(%rsp)
movl 0x78(%rsp), %eax
movq %rax, 0x28(%rsp)
movq 0x230(%rsp), %rdi
callq 0x249e0
movq %rax, %rcx
movq 0x28(%rsp), %rax
cmpq %rcx, %rax
jae 0x58bad
movq 0x230(%rsp), %rdi
movl 0x78(%rsp), %eax
movl %eax, %esi
callq 0x49920
movsbl (%rax), %eax
cmpl $0x3b, %eax
jne 0x58b74
leaq 0x58(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x6570
jmp 0x58a9c
leaq 0x88(%rsp), %rdi
leaq 0x58(%rsp), %rsi
movq %rsi, 0x20(%rsp)
callq 0x66c0
movq 0x20(%rsp), %rdi
callq 0x6b50
movq 0xa8(%rsp), %rax
movq -0x18(%rax), %rax
leaq 0xa8(%rsp,%rax), %rdi
xorl %esi, %esi
callq 0x6950
jmp 0x58ada
leaq 0x88(%rsp), %rdi
callq 0x6350
cmpq $0x0, %rax
je 0x58b11
leaq 0x1c5ea(%rip), %rsi     # 0x750de
leaq 0x88(%rsp), %rdi
callq 0xea20
movb %al, 0x1f(%rsp)
jmp 0x58b07
movb 0x1f(%rsp), %al
testb $0x1, %al
jne 0x58b11
jmp 0x58b46
jmp 0x58b9d
movq %rax, %rcx
movl %edx, %eax
movq %rcx, 0x80(%rsp)
movl %eax, 0x7c(%rsp)
leaq 0x88(%rsp), %rdi
callq 0x6b50
leaq 0xa8(%rsp), %rdi
callq 0x6b30
jmp 0x58c86
movq 0x30(%rsp), %rdi
addq $0x548, %rdi            # imm = 0x548
movl 0x23c(%rsp), %eax
movl %eax, %esi
callq 0x433f0
movq %rax, %rdi
leaq 0x88(%rsp), %rsi
callq 0x2a190
jmp 0x58b72
jmp 0x58b9b
movq 0x230(%rsp), %rdi
movl 0x78(%rsp), %eax
movl %eax, %esi
callq 0x49920
movsbl (%rax), %esi
leaq 0xa8(%rsp), %rdi
callq 0x6670
jmp 0x58b99
jmp 0x58b9b
jmp 0x58b9d
movl 0x78(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x78(%rsp)
jmp 0x58a42
leaq 0x38(%rsp), %rdi
leaq 0xa8(%rsp), %rsi
callq 0x6570
jmp 0x58bc1
leaq 0x88(%rsp), %rdi
leaq 0x38(%rsp), %rsi
movq %rsi, 0x10(%rsp)
callq 0x66c0
movq 0x10(%rsp), %rdi
callq 0x6b50
movq 0xa8(%rsp), %rax
movq -0x18(%rax), %rax
leaq 0xa8(%rsp,%rax), %rdi
xorl %esi, %esi
callq 0x6950
jmp 0x58bff
leaq 0x88(%rsp), %rdi
callq 0x6350
cmpq $0x0, %rax
jne 0x58c36
leaq 0x1c4c5(%rip), %rsi     # 0x750de
leaq 0x88(%rsp), %rdi
callq 0x30930
movb %al, 0xf(%rsp)
jmp 0x58c2c
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x58c36
jmp 0x58c64
movq 0x30(%rsp), %rdi
addq $0x548, %rdi            # imm = 0x548
movl 0x23c(%rsp), %eax
movl %eax, %esi
callq 0x433f0
movq %rax, %rdi
leaq 0x88(%rsp), %rsi
callq 0x2a190
jmp 0x58c62
jmp 0x58c64
leaq 0x88(%rsp), %rdi
callq 0x6b50
leaq 0xa8(%rsp), %rdi
callq 0x6b30
addq $0x248, %rsp            # imm = 0x248
retq
movq 0x80(%rsp), %rdi
callq 0x69e0
nopw %cs:(%rax,%rax)