// File: gibsjose[P]VirtualMemorySimulation/./StringUtilities.h
// Function: StringUtilities::SplitString(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>, std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>> const&)
static std::vector<std::string> SplitString(std::string s, const std::string &delimiter) {
        size_t pos = 0;
        std::vector<std::string> tokens;

        bool debug = false;

        if(debug) std::cout << "s = " << s << ", delimiter = " << delimiter;

        while((pos = s.find(delimiter)) != std::string::npos) {
            if(debug) std::cout << "Found delimiter at pos = " << pos << std::endl;
            tokens.push_back(s.substr(0, pos));
            if(debug) std::cout << "Added token to vector: " << s.substr(0, pos) << std::endl;
            s.erase(0, pos + delimiter.length());
            if(debug) std::cout << "Erased token and delimiter" << std::endl;
        }

        if(debug) std::cout << "Adding last token to vector: " << s << std::endl;
        tokens.push_back(s);

        return tokens;
    }

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0xf0, %rsp
movq %rsi, -0x90(%rbp)
movq %rdi, -0x88(%rbp)
movq %rdi, %rax
movq %rax, -0x80(%rbp)
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq %rdx, -0x18(%rbp)
movq $0x0, -0x20(%rbp)
movb $0x0, -0x21(%rbp)
callq 0x4a90
movb $0x0, -0x22(%rbp)
testb $0x1, -0x22(%rbp)
je 0x4b70
movq 0x174ca(%rip), %rdi     # 0x1bfc8
leaq 0xd64d(%rip), %rsi      # 0x12152
callq 0x3230
movq %rax, -0x98(%rbp)
jmp 0x4b13
movq -0x90(%rbp), %rsi
movq -0x98(%rbp), %rdi
callq 0x3220
movq %rax, -0xa0(%rbp)
jmp 0x4b2f
movq -0xa0(%rbp), %rdi
leaq 0xd5f1(%rip), %rsi      # 0x1212e
callq 0x3230
movq %rax, -0xa8(%rbp)
jmp 0x4b4b
movq -0xa8(%rbp), %rdi
movq -0x18(%rbp), %rsi
callq 0x3220
jmp 0x4b5d
jmp 0x4b70
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
jmp 0x4dc3
jmp 0x4b72
movq -0x90(%rbp), %rdi
movq -0x18(%rbp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x3490
movq %rax, -0x20(%rbp)
cmpq $-0x1, %rax
je 0x4d36
testb $0x1, -0x22(%rbp)
je 0x4be6
movq 0x17427(%rip), %rdi     # 0x1bfc8
leaq 0xd595(%rip), %rsi      # 0x1213d
callq 0x3230
movq %rax, -0xb0(%rbp)
jmp 0x4bb6
movq -0xb0(%rbp), %rdi
movq -0x20(%rbp), %rsi
callq 0x30a0
movq %rax, -0xb8(%rbp)
jmp 0x4bcf
movq -0xb8(%rbp), %rdi
movq 0x173db(%rip), %rsi     # 0x1bfb8
callq 0x3280
jmp 0x4be4
jmp 0x4be6
movq -0x90(%rbp), %rsi
movq -0x20(%rbp), %rcx
xorl %eax, %eax
movl %eax, %edx
leaq -0x58(%rbp), %rdi
callq 0x3260
jmp 0x4c00
movq -0x88(%rbp), %rdi
leaq -0x58(%rbp), %rsi
callq 0x8340
jmp 0x4c12
leaq -0x58(%rbp), %rdi
callq 0x3170
testb $0x1, -0x22(%rbp)
je 0x4cc8
movq 0x1739c(%rip), %rdi     # 0x1bfc8
leaq 0xd524(%rip), %rsi      # 0x12157
callq 0x3230
movq %rax, -0xc0(%rbp)
jmp 0x4c41
movq -0x90(%rbp), %rsi
movq -0x20(%rbp), %rcx
xorl %eax, %eax
movl %eax, %edx
leaq -0x78(%rbp), %rdi
callq 0x3260
jmp 0x4c5b
movq -0xc0(%rbp), %rdi
leaq -0x78(%rbp), %rsi
callq 0x3220
movq %rax, -0xc8(%rbp)
jmp 0x4c74
movq -0xc8(%rbp), %rdi
movq 0x17336(%rip), %rsi     # 0x1bfb8
callq 0x3280
jmp 0x4c89
leaq -0x78(%rbp), %rdi
callq 0x3170
jmp 0x4cc8
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x58(%rbp), %rdi
callq 0x3170
jmp 0x4dc3
movq %rax, %rcx
movl %edx, %eax
movq %rcx, -0x30(%rbp)
movl %eax, -0x34(%rbp)
leaq -0x78(%rbp), %rdi
callq 0x3170
jmp 0x4dc3
movq -0x20(%rbp), %rax
movq %rax, -0xd0(%rbp)
movq -0x18(%rbp), %rdi
callq 0x3390
movq -0xd0(%rbp), %rdx
movq -0x90(%rbp), %rdi
addq %rax, %rdx
xorl %eax, %eax
movl %eax, %esi
callq 0x3090
jmp 0x4cf8
testb $0x1, -0x22(%rbp)
je 0x4d31
movq 0x172c3(%rip), %rdi     # 0x1bfc8
leaq 0xd463(%rip), %rsi      # 0x1216f
callq 0x3230
movq %rax, -0xd8(%rbp)
jmp 0x4d1a
movq -0xd8(%rbp), %rdi
movq 0x17290(%rip), %rsi     # 0x1bfb8
callq 0x3280
jmp 0x4d2f
jmp 0x4d31
jmp 0x4b72
testb $0x1, -0x22(%rbp)
je 0x4d8b
movq 0x17285(%rip), %rdi     # 0x1bfc8
leaq 0xd440(%rip), %rsi      # 0x1218a
callq 0x3230
movq %rax, -0xe0(%rbp)
jmp 0x4d58
movq -0x90(%rbp), %rsi
movq -0xe0(%rbp), %rdi
callq 0x3220
movq %rax, -0xe8(%rbp)
jmp 0x4d74
movq -0xe8(%rbp), %rdi
movq 0x17236(%rip), %rsi     # 0x1bfb8
callq 0x3280
jmp 0x4d89
jmp 0x4d8b
movq -0x90(%rbp), %rsi
movq -0x88(%rbp), %rdi
callq 0x8370
jmp 0x4da0
movb $0x1, -0x21(%rbp)
testb $0x1, -0x21(%rbp)
jne 0x4db6
movq -0x88(%rbp), %rdi
callq 0x4ec0
movq -0x80(%rbp), %rax
addq $0xf0, %rsp
popq %rbp
retq
movq -0x88(%rbp), %rdi
callq 0x4ec0
movq -0x30(%rbp), %rdi
callq 0x3430
nopl (%rax,%rax)