// File: /workspace/github_cpp_makefile_star2_O3/ridgelab[P]Kmer-SSR/src/Arguments.cpp
// Function: Arguments::addToEnumeratedSSRs(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
void Arguments::addToEnumeratedSSRs(string enumerated_ssrs_str)
{
	if (enumerated_ssrs_str == "")
	{
		return;
	}
	
	for (uint32_t i = 0; i < enumerated_ssrs_str.size(); ++i)
	{
		if ( !(isalpha(enumerated_ssrs_str[i]) or enumerated_ssrs_str[i] == ',') )
		{
			throw string("ERROR: '") + enumerated_ssrs_str[i] + "' is not a valid character for the -s option.";
		}

		enumerated_ssrs_str[i] = toupper(enumerated_ssrs_str[i]);
	}

	vector<string> ssrs = split(enumerated_ssrs_str, ',');

	for (uint32_t i = 0; i < ssrs.size(); ++i)
	{
		if (!ssrs[i].empty())
		{
			this->enumerated_ssrs->insert(ssrs[i]);
		}
	}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x25df(%rip), %rsi      # 0xe0b6
movq %r14, %rdi
callq 0x30f0
testl %eax, %eax
je 0xbbdd
cmpq $0x0, 0x8(%r14)
je 0xbb31
movl $0x1, %r15d
xorl %r12d, %r12d
movq (%r14), %r13
movsbl (%r13,%r12), %ebp
movl %ebp, %edi
callq 0x34a0
cmpl $0x2c, %ebp
je 0xbb14
testl %eax, %eax
je 0xbbec
movl %ebp, %edi
callq 0x3590
movb %al, (%r13,%r12)
movl %r15d, %r12d
movq 0x8(%r14), %rdx
incl %r15d
cmpq %r12, %rdx
ja 0xbaf7
jmp 0xbb33
xorl %edx, %edx
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
addq %rsi, %rdx
leaq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0x3aba
leaq 0x8(%rsp), %rdi
movq %r14, %rdx
movl $0x2c, %ecx
callq 0xc306
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0xbb78
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3300
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rax
cmpq %rsi, %rax
je 0xbbd3
movl $0x1, %ebp
xorl %ecx, %ecx
leaq 0x28(%rsp), %r14
shlq $0x5, %rcx
cmpq $0x0, 0x8(%rsi,%rcx)
je 0xbbc0
addq %rcx, %rsi
movq 0xc0(%rbx), %rdi
movq %rdi, 0x28(%rsp)
movq %r14, %rdx
callq 0xd0bc
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rax
movl %ebp, %ecx
movq %rax, %rdx
subq %rsi, %rdx
sarq $0x5, %rdx
incl %ebp
cmpq %rcx, %rdx
ja 0xbb93
leaq 0x8(%rsp), %rdi
callq 0xc73a
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x20, %edi
callq 0x3160
movq %rax, %rbx
leaq 0x38(%rsp), %r15
movq %r15, -0x10(%r15)
leaq 0x38df(%rip), %rsi      # 0xf4e8
leaq 0x38e0(%rip), %rdx      # 0xf4f0
leaq 0x28(%rsp), %rdi
callq 0x54f4
movq (%r14), %rax
movsbl (%rax,%r12), %edx
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0xc6d9
movb $0x1, %bpl
leaq 0x393c(%rip), %rdx      # 0xf577
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0xc5c1
xorl %ebp, %ebp
leaq 0x910f(%rip), %rsi      # 0x14d60
movq 0x9338(%rip), %rdx      # 0x14f90
movq %rbx, %rdi
callq 0x3510
movq %rax, %r14
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0xbcf2
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3300
jmp 0xbcf2
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbc9e
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3300
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0xbcb5
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3300
testb %bpl, %bpl
jne 0xbcdb
jmp 0xbcf2
movq %rax, %r14
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0xbcdb
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3300
jmp 0xbcdb
movq %rax, %r14
movq %rbx, %rdi
callq 0x3230
jmp 0xbcf2
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0xc73a
movq %r14, %rdi
callq 0x3540