// File: /workspace/github_cpp_makefile_star2_O1/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 0x7237
callq 0x3360
jmp 0x723c
callq 0x3430
movq %rax, %r13
testq %rax, %rax
je 0x72da
cmpq $-0x1, %r13
jne 0x729c
movq 0x8(%r15), %rdx
testq %rdx, %rdx
je 0x73c2
leaq -0xd8(%rbp), %r12
movq %r12, -0x10(%r12)
movq (%r15), %rsi
addq %rsi, %rdx
leaq -0xe8(%rbp), %r14
movq %r14, %rdi
callq 0x3b70
movq %rbx, %rdi
movq %r14, %rsi
callq 0x76fe
movq -0xe8(%rbp), %rdi
cmpq %r12, %rdi
jne 0x73bd
jmp 0x73c2
cmpq 0x8(%r15), %r13
jae 0x72da
leaq -0xc8(%rbp), %rdi
movq %r15, %rsi
xorl %edx, %edx
movq %r13, %rcx
callq 0x3290
movq %rbx, %rdi
leaq -0xc8(%rbp), %rsi
callq 0x76fe
leaq -0xb8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x72da
callq 0x3240
testb %r12b, %r12b
je 0x734c
cmpq 0x8(%r15), %r13
jae 0x73c2
incq %r13
leaq -0x88(%rbp), %rdi
movq %r15, %rsi
movq %r13, %rdx
movq $-0x1, %rcx
callq 0x3290
leaq -0x38(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x48(%rbp), %rdi
callq 0x3b70
leaq -0x88(%rbp), %rdi
leaq -0x48(%rbp), %rdx
movq %rbx, %rsi
movl $0x1, %ecx
callq 0x7202
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x7346
callq 0x3240
leaq -0x78(%rbp), %rax
jmp 0x73b4
addq 0x8(%r14), %r13
cmpq 0x8(%r15), %r13
ja 0x73c2
leaq -0xa8(%rbp), %rdi
movq %r15, %rsi
movq %r13, %rdx
movq $-0x1, %rcx
callq 0x3290
leaq -0x58(%rbp), %r15
movq %r15, -0x10(%r15)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
addq %rsi, %rdx
leaq -0x68(%rbp), %rdi
callq 0x3b70
leaq -0xa8(%rbp), %rdi
leaq -0x68(%rbp), %rdx
movq %rbx, %rsi
xorl %ecx, %ecx
callq 0x7202
movq -0x68(%rbp), %rdi
cmpq %r15, %rdi
je 0x73ad
callq 0x3240
leaq -0x98(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x73c2
callq 0x3240
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 0x73fd
callq 0x3240
jmp 0x73fd
movq %rax, %rbx
movq -0x48(%rbp), %rdi
cmpq %r15, %rdi
je 0x7409
callq 0x3240
jmp 0x7409
movq %rax, %rbx
leaq -0x98(%rbp), %rax
jmp 0x7419
movq %rax, %rbx
leaq -0x78(%rbp), %rax
jmp 0x7419
movq %rax, %rbx
leaq -0xb8(%rbp), %rax
movq -0x10(%rax), %rdi
cmpq %rax, %rdi
je 0x7427
callq 0x3240
movq %rbx, %rdi
callq 0x3440
movq %rax, %rbx
movq -0xe8(%rbp), %rdi
cmpq %r12, %rdi
jne 0x7422
jmp 0x7427