// File: richardposner[P]BioNetFit2/src/code/Utils.cpp
// Function: split_string(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
vector<std::string> split_string(std::string str, std::string delimiter){
	vector<std::string> strs;
	size_t pos = 0;
	std::string token;
	while ((pos = str.find(delimiter)) != std::string::npos) {
		token = str.substr(0, pos);
		token = trim(token,true,true);
		strs.push_back(token);
		str.erase(0, pos + delimiter.length());
	}
	if (!str.empty()){
		strs.push_back(trim(str,true,true));  //add the last piece
	}
	return strs;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x140, %rsp            # imm = 0x140
movq %rdx, -0x118(%rbp)
movq %rsi, -0x110(%rbp)
movq %rdi, -0x108(%rbp)
movq %rdi, %rax
movq %rax, -0x100(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movb $0x0, -0x19(%rbp)
callq 0x448b0
movq $0x0, -0x28(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x2f880
movq -0x118(%rbp), %rsi
movq -0x110(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
callq 0x30130
movq %rax, -0x28(%rbp)
cmpq $-0x1, %rax
je 0x17d008
movq -0x110(%rbp), %rsi
movq -0x28(%rbp), %rcx
xorl %eax, %eax
movl %eax, %edx
leaq -0x68(%rbp), %rdi
callq 0x30b40
jmp 0x17ceff
leaq -0x48(%rbp), %rdi
movq %rdi, -0x120(%rbp)
leaq -0x68(%rbp), %rsi
movq %rsi, -0x128(%rbp)
callq 0x2fd80
movq -0x128(%rbp), %rdi
callq 0x311e8
movq -0x120(%rbp), %rsi
leaq -0xb8(%rbp), %rdi
callq 0x2f300
jmp 0x17cf3b
leaq -0x98(%rbp), %rdi
leaq -0xb8(%rbp), %rsi
movl $0x1, %ecx
movl %ecx, %edx
callq 0x17d110
jmp 0x17cf57
leaq -0x48(%rbp), %rdi
movq %rdi, -0x130(%rbp)
leaq -0x98(%rbp), %rsi
movq %rsi, -0x138(%rbp)
callq 0x2fd80
movq -0x138(%rbp), %rdi
callq 0x311e8
leaq -0xb8(%rbp), %rdi
callq 0x311e8
movq -0x108(%rbp), %rdi
movq -0x130(%rbp), %rsi
callq 0x45280
jmp 0x17cfa2
movq -0x118(%rbp), %rdi
movq -0x28(%rbp), %rax
movq %rax, -0x140(%rbp)
callq 0x2ff30
movq -0x140(%rbp), %rdx
movq -0x110(%rbp), %rdi
addq %rax, %rdx
xorl %eax, %eax
movl %eax, %esi
callq 0x302e0
jmp 0x17cfd5
jmp 0x17cec0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x17d0c5
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0x311e8
jmp 0x17d0c5
movq -0x110(%rbp), %rdi
callq 0x2f700
testb $0x1, %al
jne 0x17d0b0
movq -0x110(%rbp), %rsi
leaq -0xf8(%rbp), %rdi
callq 0x2f300
jmp 0x17d031
leaq -0xd8(%rbp), %rdi
leaq -0xf8(%rbp), %rsi
movl $0x1, %ecx
movl %ecx, %edx
callq 0x17d110
jmp 0x17d04d
movq -0x108(%rbp), %rdi
leaq -0xd8(%rbp), %rsi
callq 0xb39c0
jmp 0x17d062
leaq -0xd8(%rbp), %rdi
callq 0x311e8
leaq -0xf8(%rbp), %rdi
callq 0x311e8
jmp 0x17d0b0
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
jmp 0x17d0a2
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x70(%rbp)
movl %eax, -0x74(%rbp)
leaq -0xd8(%rbp), %rdi
callq 0x311e8
leaq -0xf8(%rbp), %rdi
callq 0x311e8
jmp 0x17d0c5
movb $0x1, -0x19(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x311e8
testb $0x1, -0x19(%rbp)
jne 0x17d0e8
jmp 0x17d0dc
leaq -0x48(%rbp), %rdi
callq 0x311e8
movq -0x108(%rbp), %rdi
callq 0x448d0
jmp 0x17d0f8
movq -0x108(%rbp), %rdi
callq 0x448d0
movq -0x100(%rbp), %rax
addq $0x140, %rsp            # imm = 0x140
popq %rbp
retq
movq -0x70(%rbp), %rdi
callq 0x30170
nopw %cs:(%rax,%rax)