// File: 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
subq $0x170, %rsp            # imm = 0x170
movq %rdx, -0x108(%rbp)
movq %rdi, -0x100(%rbp)
movb %cl, %al
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
andb $0x1, %al
movb %al, -0x19(%rbp)
testb $0x1, -0x19(%rbp)
jne 0xb5f2
movq -0x108(%rbp), %rsi
movq -0x100(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
callq 0x4670
movq %rax, -0x110(%rbp)
jmp 0xb610
movq -0x108(%rbp), %rsi
movq -0x100(%rbp), %rdi
xorl %eax, %eax
movl %eax, %edx
callq 0x4340
movq %rax, -0x110(%rbp)
movq -0x110(%rbp), %rax
movq %rax, -0x28(%rbp)
cmpq $-0x1, -0x28(%rbp)
jne 0xb695
movq -0x100(%rbp), %rdi
callq 0x4570
testb $0x1, %al
jne 0xb690
movq -0x100(%rbp), %rsi
movq -0x10(%rbp), %rax
movq %rax, -0x120(%rbp)
leaq -0x48(%rbp), %rdi
movq %rdi, -0x118(%rbp)
callq 0x4190
movq -0x120(%rbp), %rdi
movq -0x118(%rbp), %rsi
callq 0xbce0
jmp 0xb669
leaq -0x48(%rbp), %rdi
callq 0x4200
jmp 0xb690
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x48(%rbp), %rdi
callq 0x4200
jmp 0xb68b
jmp 0xb951
jmp 0xb948
cmpq $0x0, -0x28(%rbp)
jbe 0xb72c
movq -0x100(%rbp), %rdi
movq -0x28(%rbp), %rax
movq %rax, -0x128(%rbp)
callq 0x4500
movq %rax, %rcx
movq -0x128(%rbp), %rax
cmpq %rcx, %rax
jae 0xb72c
movq -0x100(%rbp), %rsi
movq -0x10(%rbp), %rax
movq %rax, -0x138(%rbp)
movq -0x28(%rbp), %rcx
xorl %eax, %eax
movl %eax, %edx
leaq -0x78(%rbp), %rdi
movq %rdi, -0x130(%rbp)
callq 0x43c0
movq -0x138(%rbp), %rdi
movq -0x130(%rbp), %rsi
callq 0xbce0
jmp 0xb705
leaq -0x78(%rbp), %rdi
callq 0x4200
jmp 0xb72c
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x4200
jmp 0xb727
jmp 0xb951
jmp 0xb72e
testb $0x1, -0x19(%rbp)
jne 0xb85e
movq -0x108(%rbp), %rdi
movq -0x28(%rbp), %rax
movq %rax, -0x148(%rbp)
callq 0x4500
movq -0x100(%rbp), %rdi
movq %rax, %rcx
movq -0x148(%rbp), %rax
addq %rcx, %rax
movq %rax, -0x140(%rbp)
callq 0x4500
movq %rax, %rcx
movq -0x140(%rbp), %rax
cmpq %rcx, %rax
ja 0xb859
movq -0x108(%rbp), %rdi
movq -0x28(%rbp), %rax
movq %rax, -0x158(%rbp)
callq 0x4500
movq -0x158(%rbp), %rdx
movq -0x100(%rbp), %rsi
addq %rax, %rdx
leaq -0x98(%rbp), %rdi
movq $-0x1, %rcx
callq 0x43c0
movq -0x108(%rbp), %rsi
movq -0x10(%rbp), %rax
movq %rax, -0x150(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0x4190
jmp 0xb7dd
movq -0x150(%rbp), %rsi
movzbl -0x19(%rbp), %ecx
andl $0x1, %ecx
leaq -0x98(%rbp), %rdi
leaq -0xb8(%rbp), %rdx
callq 0xb5a0
jmp 0xb800
leaq -0xb8(%rbp), %rdi
callq 0x4200
jmp 0xb80e
leaq -0x98(%rbp), %rdi
callq 0x4200
jmp 0xb859
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0xb846
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xb8(%rbp), %rdi
callq 0x4200
jmp 0xb844
jmp 0xb846
leaq -0x98(%rbp), %rdi
callq 0x4200
jmp 0xb854
jmp 0xb951
jmp 0xb948
movq -0x100(%rbp), %rdi
movq -0x28(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x160(%rbp)
callq 0x4500
movq %rax, %rcx
movq -0x160(%rbp), %rax
cmpq %rcx, %rax
ja 0xb946
movq -0x100(%rbp), %rsi
movq -0x28(%rbp), %rdx
incq %rdx
leaq -0xd8(%rbp), %rdi
movq $-0x1, %rcx
callq 0x43c0
movq -0x108(%rbp), %rsi
movq -0x10(%rbp), %rax
movq %rax, -0x168(%rbp)
leaq -0xf8(%rbp), %rdi
callq 0x4190
jmp 0xb8cd
movq -0x168(%rbp), %rsi
movzbl -0x19(%rbp), %ecx
andl $0x1, %ecx
leaq -0xd8(%rbp), %rdi
leaq -0xf8(%rbp), %rdx
callq 0xb5a0
jmp 0xb8f0
leaq -0xf8(%rbp), %rdi
callq 0x4200
jmp 0xb8fe
leaq -0xd8(%rbp), %rdi
callq 0x4200
jmp 0xb946
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
jmp 0xb936
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x50(%rbp)
movl %eax, -0x54(%rbp)
leaq -0xf8(%rbp), %rdi
callq 0x4200
jmp 0xb934
jmp 0xb936
leaq -0xd8(%rbp), %rdi
callq 0x4200
jmp 0xb944
jmp 0xb951
jmp 0xb948
addq $0x170, %rsp            # imm = 0x170
popq %rbp
retq
movq -0x50(%rbp), %rdi
callq 0x45e0
movq %rax, %rdi
callq 0x4ec0
nopw %cs:(%rax,%rax)