// File: /workspace/github_cpp_makefile_star2_O2/meirdev[P]HexViewer/./CLI11.hpp
// Function: CLI::detail::split_up(std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char>>)
inline std::vector<std::string> split_up(std::string str) {

    const std::string delims("\'\"`");
    auto find_ws = [](char ch) { return std::isspace<char>(ch, std::locale()); };
    trim(str);

    std::vector<std::string> output;
    bool embeddedQuote = false;
    char keyChar = ' ';
    while(!str.empty()) {
        if(delims.find_first_of(str[0]) != std::string::npos) {
            keyChar = str[0];
            auto end = str.find_first_of(keyChar, 1);
            while((end != std::string::npos) && (str[end - 1] == '\\')) { // deal with escaped quotes
                end = str.find_first_of(keyChar, end + 1);
                embeddedQuote = true;
            }
            if(end != std::string::npos) {
                output.push_back(str.substr(1, end - 1));
                str = str.substr(end + 1);
            } else {
                output.push_back(str.substr(1));
                str = "";
            }
        } else {
            auto it = std::find_if(std::begin(str), std::end(str), find_ws);
            if(it != std::end(str)) {
                std::string value = std::string(str.begin(), it);
                output.push_back(value);
                str = std::string(it, str.end());
            } else {
                output.push_back(str);
                str = "";
            }
        }
        // transform any embedded quotes into the regular character
        if(embeddedQuote) {
            output.back() = find_and_replace(output.back(), std::string("\\") + keyChar, std::string(1, keyChar));
            embeddedQuote = false;
        }
        trim(str);
    }
    return output;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xd8, %rsp
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x43a7(%rip), %rsi      # 0x19805
leaq 0x78(%rsp), %rdi
leaq 0x18(%rsp), %rdx
callq 0x6844
movq %r14, %rdi
callq 0xceb6
andq $0x0, 0x10(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
leaq 0x18(%rsp), %r13
leaq 0x38(%rsp), %r12
movq %rbx, 0x8(%rsp)
cmpq $0x0, 0x8(%r14)
je 0x156ee
movq (%r14), %rax
movsbl (%rax), %esi
leaq 0x78(%rsp), %rdi
xorl %edx, %edx
callq 0x53c0
movq (%r14), %rdi
cmpq $-0x1, %rax
je 0x154f4
movq %r12, %rbx
xorl %ebp, %ebp
movsbl (%rdi), %r15d
pushq $0x1
popq %r12
movq %r14, %rdi
movl %r15d, %esi
movq %r12, %rdx
callq 0x53c0
cmpq $-0x1, %rax
je 0x15567
movq %rax, %r12
movq (%r14), %rax
cmpb $0x5c, -0x1(%rax,%r12)
jne 0x1559e
incq %r12
movb $0x1, %bpl
jmp 0x154c2
movq 0x8(%r14), %rsi
addq %rdi, %rsi
callq 0x15ad9
movq %rax, %r15
movq (%r14), %rsi
movq 0x8(%r14), %rax
addq %rsi, %rax
cmpq %rax, %r15
je 0x156c2
leaq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
leaq 0x18(%rsp), %r13
movq %r13, %rdi
movq %r15, %rdx
callq 0x15c10
movq %rbx, %rdi
movq %r13, %rsi
callq 0xb27e
movq (%r14), %rdx
addq 0x8(%r14), %rdx
leaq 0x48(%rsp), %rax
movq %rax, 0x38(%rsp)
movq %r12, %rdi
movq %r15, %rsi
callq 0x15c10
movq %r14, %rdi
movq %r12, %rsi
callq 0x5360
jmp 0x156b0
movq %r13, %rdi
movq %r14, %rsi
pushq $0x1
popq %rdx
pushq $-0x1
popq %rcx
callq 0x52f0
movq 0x8(%rsp), %rdi
movq %r13, %rsi
callq 0xaf74
movq %r13, %rdi
callq 0x5180
movq %r14, %rdi
leaq 0x4211(%rip), %rsi      # 0x197a8
callq 0x5570
jmp 0x155ed
leaq -0x1(%r12), %rcx
movq %r13, %rdi
movq %r14, %rsi
pushq $0x1
popq %rdx
callq 0x52f0
movq 0x8(%rsp), %rdi
movq %r13, %rsi
callq 0xaf74
movq %r13, %rdi
callq 0x5180
incq %r12
movq %r13, %rdi
movq %r14, %rsi
movq %r12, %rdx
pushq $-0x1
popq %rcx
callq 0x52f0
movq %r14, %rdi
movq %r13, %rsi
callq 0x5360
movq %r13, %rdi
callq 0x5180
testb $0x1, %bpl
movq %rbx, %r12
movq 0x8(%rsp), %rbx
leaq 0xb8(%rsp), %rbp
je 0x156dc
movq 0x8(%rbx), %rsi
addq $-0x20, %rsi
movq %rbp, %rdi
callq 0x53f0
movq %r12, %rdi
leaq 0x41e8(%rip), %rsi      # 0x19809
leaq 0x17(%rsp), %rdx
callq 0x6844
movq %r12, %rsi
movq %rbx, %r12
leaq 0x98(%rsp), %rdi
movl %r15d, %edx
callq 0x15ab7
movq %rbp, %r13
leaq 0x68(%rsp), %rax
movq %rax, 0x58(%rsp)
leaq 0x58(%rsp), %rbx
movq %rbx, %rdi
pushq $0x1
popq %rsi
movl %r15d, %edx
callq 0x5340
leaq 0x18(%rsp), %rbp
movq %rbp, %rdi
movq %r13, %rsi
leaq 0x98(%rsp), %r15
movq %r15, %rdx
movq %rbx, %rcx
callq 0x1506d
movq 0x8(%r12), %rdi
addq $-0x20, %rdi
movq %rbp, %rsi
callq 0x5360
movq %rbp, %rdi
callq 0x5180
movq %rbx, %rdi
movq %r12, %rbx
callq 0x5180
movq %r15, %rdi
callq 0x5180
leaq 0x38(%rsp), %r12
movq %r12, %rdi
callq 0x5180
movq %r13, %rdi
callq 0x5180
jmp 0x156dc
movq %rbx, %rdi
movq %r14, %rsi
callq 0xb27e
movq %r14, %rdi
leaq 0x40d1(%rip), %rsi      # 0x197a8
callq 0x5570
movq %r14, %rdi
callq 0xceb6
leaq 0x18(%rsp), %r13
jmp 0x1548f
leaq 0x78(%rsp), %rdi
callq 0x5180
movq %rbx, %rax
addq $0xd8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rax, %r14
jmp 0x15785
jmp 0x1575f
jmp 0x1575f
jmp 0x1577a
jmp 0x1576e
jmp 0x1575f
jmp 0x1576e
movq %rax, %r14
leaq 0x58(%rsp), %rdi
callq 0x5180
jmp 0x15730
movq %rax, %r14
leaq 0x98(%rsp), %rdi
callq 0x5180
jmp 0x15742
movq %rax, %r14
leaq 0x38(%rsp), %rdi
callq 0x5180
jmp 0x15751
movq %rax, %r14
leaq 0xb8(%rsp), %rdi
jmp 0x15767
jmp 0x1577a
jmp 0x1576e
movq %rax, %r14
leaq 0x18(%rsp), %rdi
callq 0x5180
jmp 0x15771
movq %rax, %r14
movq 0x8(%rsp), %rbx
jmp 0x1577d
jmp 0x1577a
movq %rax, %r14
movq %rbx, %rdi
callq 0x6542
leaq 0x78(%rsp), %rdi
callq 0x5180
movq %r14, %rdi
callq 0x5510