// File: /workspace/github_cpp_makefile_star2_O1/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 0x24e1(%rip), %rsi      # 0xe0b6
movq %r14, %rdi
callq 0x30f0
testl %eax, %eax
je 0xbcd3
movq 0x8(%r14), %rdx
testq %rdx, %rdx
je 0xbc2f
movl $0x1, %r15d
xorl %r12d, %r12d
movq (%r14), %r13
movsbl (%r13,%r12), %ebp
movl %ebp, %edi
callq 0x34a0
cmpl $0x2c, %ebp
je 0xbc14
testl %eax, %eax
je 0xbce2
movl %ebp, %edi
callq 0x3590
movb %al, (%r13,%r12)
movl %r15d, %r12d
movq 0x8(%r14), %rdx
incl %r15d
cmpq %r12, %rdx
ja 0xbbf7
leaq 0x58(%rsp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
addq %rsi, %rdx
leaq 0x48(%rsp), %r14
movq %r14, %rdi
callq 0x3ada
leaq 0x8(%rsp), %rdi
movq %r14, %rdx
movl $0x2c, %ecx
callq 0xc418
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0xbc74
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3300
movq 0x8(%rsp), %rsi
cmpq %rsi, 0x10(%rsp)
je 0xbcc9
movl $0x1, %ebp
xorl %eax, %eax
leaq 0x28(%rsp), %r14
shlq $0x5, %rax
cmpq $0x0, 0x8(%rsi,%rax)
je 0xbcaf
addq %rax, %rsi
movq 0xc0(%rbx), %rdi
movq %rdi, 0x28(%rsp)
movq %r14, %rdx
callq 0xd1c8
movl %ebp, %eax
movq 0x8(%rsp), %rsi
movq 0x10(%rsp), %rcx
subq %rsi, %rcx
sarq $0x5, %rcx
incl %ebp
cmpq %rax, %rcx
ja 0xbc8c
leaq 0x8(%rsp), %rdi
callq 0xc842
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 0x37e9(%rip), %rsi      # 0xf4e8
leaq 0x37ea(%rip), %rdx      # 0xf4f0
leaq 0x28(%rsp), %rdi
callq 0x552e
movq (%r14), %rax
movsbl (%rax,%r12), %edx
leaq 0x8(%rsp), %rdi
leaq 0x28(%rsp), %rsi
callq 0xc7e1
movb $0x1, %bpl
leaq 0x3846(%rip), %rdx      # 0xf577
leaq 0x8(%rsp), %rsi
movq %rbx, %rdi
callq 0xc6c8
xorl %ebp, %ebp
leaq 0x9019(%rip), %rsi      # 0x14d60
movq 0x9242(%rip), %rdx      # 0x14f90
movq %rbx, %rdi
callq 0x3510
movq %rax, %r14
movq 0x48(%rsp), %rdi
cmpq %r15, %rdi
je 0xbdd3
movq 0x58(%rsp), %rsi
incq %rsi
callq 0x3300
jmp 0xbdd3
movq %rax, %r14
leaq 0x18(%rsp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0xbd98
movq 0x18(%rsp), %rsi
incq %rsi
callq 0x3300
jmp 0xbd98
movq %rax, %r14
movb $0x1, %bpl
movq 0x28(%rsp), %rdi
cmpq %r15, %rdi
je 0xbdb7
movq 0x38(%rsp), %rsi
incq %rsi
callq 0x3300
jmp 0xbdb7
movq %rax, %r14
movb $0x1, %bpl
testb %bpl, %bpl
je 0xbdd3
movq %rbx, %rdi
callq 0x3230
jmp 0xbdd3
movq %rax, %r14
leaq 0x8(%rsp), %rdi
callq 0xc842
movq %r14, %rdi
callq 0x3540
nop