// File: /workspace/github_cpp_makefile_star2_O3/Jacobious52[P]Tanks/StringTools.cpp
// Function: StringTools::_recSplit(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, MutableArray<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>>&, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, bool)
void StringTools::_recSplit(std::string instring, vstring &parts,
                            std::string del, bool tokens)
{
    size_t i = !tokens ? instring.find(del) : instring.find_first_of(del);
    if (i == std::string::npos)
    {
        if (!instring.empty())
        {
            parts.add(instring);
        }
        return;
    }
    else if (i > 0 && i < instring.length())
    {
         parts.add(instring.substr(0, i));
    }

    if (!tokens)
    {
        if (i+del.length() <= instring.length())
        {
            _recSplit(instring.substr(i+del.length()), parts, del, tokens);
        }
    }
    else
    {
        if (i+1 <= instring.length())
        {
            _recSplit(instring.substr(i+1), parts, del, tokens);
        }
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc8, %rsp
movl %ecx, %r12d
movq %rdx, %r14
movq %rsi, %rbx
movq %rdi, %r15
movq (%rdx), %rsi
movq 0x8(%rdx), %rcx
xorl %edx, %edx
testl %r12d, %r12d
je 0x7243
callq 0x3350
jmp 0x7248
callq 0x3420
movq %rax, %r13
testq %rax, %rax
je 0x72e6
cmpq $-0x1, %r13
jne 0x72a8
movq 0x8(%r15), %rdx
testq %rdx, %rdx
je 0x73ce
leaq -0xd8(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
addq %rsi, %rdx
leaq -0xe8(%rbp), %r14
movq %r14, %rdi
callq 0x3b60
movq %rbx, %rdi
movq %r14, %rsi
callq 0x770a
movq -0xe8(%rbp), %rdi
cmpq %r12, %rdi
jne 0x73c9
jmp 0x73ce
cmpq 0x8(%r15), %r13
jae 0x72e6
leaq -0xc8(%rbp), %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %r13, %rcx
callq 0x3280
movq %rbx, %rdi
leaq -0xc8(%rbp), %rsi
callq 0x770a
leaq -0xb8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x72e6
callq 0x3230
testb %r12b, %r12b
je 0x7358
cmpq 0x8(%r15), %r13
jae 0x73ce
incq %r13
leaq -0x88(%rbp), %rdi
movq %r15, %rsi
movq %r13, %rdx
movq $-0x1, %rcx
callq 0x3280
leaq -0x38(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0x3b60
leaq -0x88(%rbp), %rdi
leaq -0x48(%rbp), %rdx
movq %rbx, %rsi
movl $0x1, %ecx
callq 0x720e
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x7352
callq 0x3230
leaq -0x78(%rbp), %rax
jmp 0x73c0
addq 0x8(%r14), %r13
cmpq 0x8(%r15), %r13
ja 0x73ce
leaq -0xa8(%rbp), %rdi
movq %r15, %rsi
movq %r13, %rdx
movq $-0x1, %rcx
callq 0x3280
leaq -0x58(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x68(%rbp), %rdi
callq 0x3b60
leaq -0xa8(%rbp), %rdi
leaq -0x68(%rbp), %rdx
movq %rbx, %rsi
xorl %ecx, %ecx
callq 0x720e
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x73b9
callq 0x3230
leaq -0x98(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x73ce
callq 0x3230
addq $0xc8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %rbx
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x7409
callq 0x3230
jmp 0x7409
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x7415
callq 0x3230
jmp 0x7415
movq %rax, %rbx
leaq -0x98(%rbp), %rax
jmp 0x7425
movq %rax, %rbx
leaq -0x78(%rbp), %rax
jmp 0x7425
movq %rax, %rbx
leaq -0xb8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7433
callq 0x3230
movq %rbx, %rdi
callq 0x3430
movq %rax, %rbx
movq -0xe8(%rbp), %rdi
cmpq %r12, %rdi
jne 0x742e
jmp 0x7433