// File: /workspace/github_cpp_makefile_star2_O1/ridgelab[P]Kmer-SSR/src/Arguments.cpp
// Function: Arguments::split(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, char)
vector<string> Arguments::split(string str, char sep)
{
	vector<string> v;
	vector<uint32_t> starts = {0};
	vector<uint32_t> ends;

	for (uint32_t i = 0; i < str.size(); ++i)
	{
		if (str[i] == sep)
		{
			ends.push_back(i);

			if (starts[starts.size() - 1] == ends[ends.size() - 1])
			{
				starts.pop_back();
				ends.pop_back();
			}

			starts.push_back(i + 1);
		}
	}

	ends.push_back(str.size());

	if (starts[starts.size() - 1] >= str.size())
	{
		starts.pop_back();
		ends.pop_back();
	}

	if (starts.size() != ends.size())
	{
		throw "ERROR: You should never see this, but starts and ends had different lengths in Arguments::split.";
	}

	for (uint32_t i = 0; i < starts.size(); ++i)
	{
		v.push_back(str.substr(starts[i], ends[i] - starts[i]));
	}

	return v;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movl %ecx, %ebp
movq %rdx, %r14
movq %rdi, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rdi)
movq $0x0, 0x10(%rdi)
leaq 0x38(%rsp), %rsi
movl $0x0, (%rsi)
leaq 0x18(%rsp), %rdi
movq %rsp, %rcx
movl $0x1, %edx
callq 0x8b94
xorps %xmm0, %xmm0
movaps %xmm0, (%rsp)
movq $0x0, 0x10(%rsp)
movl $0x0, 0x38(%rsp)
movq 0x8(%r14), %rcx
testq %rcx, %rcx
je 0xc525
xorl %eax, %eax
leaq 0x38(%rsp), %r12
leaq 0x18(%rsp), %r13
leaq 0x34(%rsp), %r15
movq (%r14), %rcx
cmpb %bpl, (%rcx,%rax)
jne 0xc50e
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0xc4b1
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rsp)
jmp 0xc4bc
movq %rsp, %rdi
movq %r12, %rdx
callq 0xce84
movq 0x20(%rsp), %rcx
movl -0x4(%rcx), %edx
movq 0x8(%rsp), %rax
cmpl -0x4(%rax), %edx
jne 0xc4e0
addq $-0x4, %rcx
movq %rcx, 0x20(%rsp)
addq $-0x4, %rax
movq %rax, 0x8(%rsp)
movl 0x38(%rsp), %eax
incl %eax
movl %eax, 0x34(%rsp)
movq 0x20(%rsp), %rsi
cmpq 0x28(%rsp), %rsi
je 0xc503
movl %eax, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x20(%rsp)
jmp 0xc50e
movq %r13, %rdi
movq %r15, %rdx
callq 0x8fa2
movl 0x38(%rsp), %eax
incl %eax
movl %eax, 0x38(%rsp)
movq 0x8(%r14), %rcx
cmpq %rax, %rcx
ja 0xc48f
movl %ecx, 0x38(%rsp)
movq 0x8(%rsp), %rsi
cmpq 0x10(%rsp), %rsi
je 0xc542
movl %ecx, (%rsi)
addq $0x4, %rsi
movq %rsi, 0x8(%rsp)
jmp 0xc54f
movq %rsp, %rdi
leaq 0x38(%rsp), %rdx
callq 0x8fa2
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
movl -0x4(%rcx), %edx
cmpq %rdx, 0x8(%r14)
ja 0xc571
addq $-0x4, %rcx
movq %rcx, 0x20(%rsp)
addq $-0x4, 0x8(%rsp)
movq 0x20(%rsp), %rcx
subq %rax, %rcx
movq 0x8(%rsp), %rax
subq (%rsp), %rax
cmpq %rax, %rcx
jne 0xc63a
movq 0x18(%rsp), %rax
cmpq %rax, 0x20(%rsp)
je 0xc5fb
movl $0x1, %ebp
leaq 0x48(%rsp), %r12
xorl %ecx, %ecx
leaq 0x38(%rsp), %r15
movl (%rax,%rcx,4), %edx
movq (%rsp), %rax
movl (%rax,%rcx,4), %ecx
subl %edx, %ecx
movq %r15, %rdi
movq %r14, %rsi
callq 0x3320
movq %rbx, %rdi
movq %r15, %rsi
callq 0xcf60
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0xc5e1
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3300
movl %ebp, %ecx
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rdx
subq %rax, %rdx
sarq $0x2, %rdx
incl %ebp
cmpq %rcx, %rdx
ja 0xc5a8
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xc611
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x3300
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0xc628
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x3300
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movl $0x8, %edi
callq 0x3160
leaq 0x2ecb(%rip), %rcx      # 0xf516
movq %rcx, (%rax)
movq 0x894b(%rip), %rsi      # 0x14fa0
movq %rax, %rdi
xorl %edx, %edx
callq 0x3510
jmp 0xc66c
jmp 0xc66c
movq %rax, %r14
jmp 0xc6b8
jmp 0xc66c
jmp 0xc66c
movq %rax, %r14
jmp 0xc68b
movq %rax, %r14
movq 0x38(%rsp), %rdi
cmpq %r12, %rdi
je 0xc68b
movq 0x48(%rsp), %rsi
incq %rsi
callq 0x3300
movq (%rsp), %rdi
testq %rdi, %rdi
je 0xc6a1
movq 0x10(%rsp), %rsi
subq %rdi, %rsi
callq 0x3300
movq 0x18(%rsp), %rdi
testq %rdi, %rdi
je 0xc6b8
movq 0x28(%rsp), %rsi
subq %rdi, %rsi
callq 0x3300
movq %rbx, %rdi
callq 0xc842
movq %r14, %rdi
callq 0x3540