// File: /workspace/github_cpp_makefile_star2_O3/mukul-mehta[P]meta/tokenizer.cc
// Function: tokenize[abi:cxx11](char*)
vector<string> tokenize(char* line) {
    vector<string> tokens;
    if (line == NULL) {
        return {};
    }

    static char token[MAXTOKEN];
    memset(token, '\0', MAXTOKEN);
    size_t n = 0;
    size_t len = strlen(line);

    const int MODE_NORMAL = 0, MODE_SQUOTE = 1, MODE_DQUOTE = 2;
    int mode = MODE_NORMAL;

    for (size_t i = 0; i < len; i++) {
        char c = line[i];
        if (mode == MODE_NORMAL) {
            if (c == '\'') {
                mode = MODE_SQUOTE;
            } else if (c == '"') {
                mode = MODE_DQUOTE;
            } else if (c == '\\') {
                if (i + 1 < len) {
                    token[n++] = line[++i];
                }
            } else if (isspace(c)) {
                if (n > 0) {
                    token[n] = '\0';
                    char* temp = (char*)malloc(n + 1);
                    strncpy(temp, token, n + 1);
                    string word = temp;
                    tokens.push_back(word);
                    n = 0;
                    memset(token, '\0', MAXTOKEN);
                }
            } else {
                token[n++] = c;
            }
        } else if (mode == MODE_SQUOTE) {
            if (c == '\'') {
                mode = MODE_NORMAL;
            } else if (c == '\\') {
                if (i + 1 < len) {
                    token[n++] = line[++i];
                }
            } else {
                token[n++] = c;
            }
        } else if (mode == MODE_DQUOTE) {
            if (c == '"') {
                mode = MODE_NORMAL;
            } else if (c == '\\') {
                if (i + 1 < len) {
                    token[n++] = line[++i];
                }
            } else {
                token[n++] = c;
            }
        }
        if (n + 1 >= MAXTOKEN)
            abort();
    }

    if (n > 0) {
        string temp = token;
        tokens.push_back(temp);
        n = 0;
    }
    return tokens;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdi, %rbx
xorps %xmm0, %xmm0
movaps %xmm0, 0x30(%rsp)
movq $0x0, 0x40(%rsp)
movq %rdi, %rax
testq %rsi, %rsi
je 0x3e4f
movq %rsi, %r15
leaq 0x5694(%rip), %r14      # 0x92c0
xorl %r13d, %r13d
movl $0x400, %edx            # imm = 0x400
movq %r14, %rdi
xorl %esi, %esi
callq 0x2150
movq %r15, %rdi
callq 0x20f0
testq %rax, %rax
je 0x3e39
movq %r14, %rdx
movq %rax, %r12
movq %rbx, 0x50(%rsp)
xorl %ebp, %ebp
xorl %ebx, %ebx
movb (%r15,%rbx), %r14b
movzbl %r14b, %eax
cmpl $0x1, %r13d
je 0x3d3b
testl %r13d, %r13d
jne 0x3d51
cmpl $0x5c, %eax
je 0x3d87
cmpl $0x27, %eax
je 0x3d6f
cmpl $0x22, %eax
je 0x3d7f
movsbl %r14b, %edi
callq 0x2050
testl %eax, %eax
je 0x3da3
testq %rbp, %rbp
leaq 0x5611(%rip), %rdx      # 0x92c0
je 0x3dd6
movb $0x0, (%rbp,%rdx)
incq %rbp
movq %rbp, %rdi
movq %rdx, %r14
callq 0x2380
movq %rax, %r13
movq %rax, %rdi
movq %r14, %rsi
movq %rbp, %rdx
callq 0x2120
leaq 0x10(%rsp), %r14
movq %r14, %rdi
movq %r13, %rsi
leaq 0xf(%rsp), %rdx
callq 0x3fca
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
callq 0x4008
movl $0x400, %edx            # imm = 0x400
leaq 0x55b9(%rip), %rdi      # 0x92c0
xorl %esi, %esi
callq 0x2150
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x3d2a
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2290
xorl %ebp, %ebp
xorl %r13d, %r13d
leaq 0x558a(%rip), %rdx      # 0x92c0
jmp 0x3dc8
cmpl $0x27, %eax
je 0x3db2
cmpl $0x5c, %eax
jne 0x3d67
leaq 0x1(%rbx), %rax
movl $0x1, %r13d
jmp 0x3d8e
cmpl $0x22, %eax
je 0x3db2
cmpl $0x5c, %eax
jne 0x3d77
leaq 0x1(%rbx), %rax
movl $0x2, %r13d
jmp 0x3d8e
movb %r14b, (%rbp,%rdx)
incq %rbp
movl $0x1, %r13d
jmp 0x3db5
movb %r14b, (%rbp,%rdx)
incq %rbp
movl $0x2, %r13d
jmp 0x3db5
leaq 0x1(%rbx), %rax
xorl %r13d, %r13d
cmpq %r12, %rax
jae 0x3db5
movb (%r15,%rax), %cl
movb %cl, (%rbp,%rdx)
incq %rbp
movq %rax, %rbx
jmp 0x3db5
leaq 0x5516(%rip), %rdx      # 0x92c0
movb %r14b, (%rbp,%rdx)
incq %rbp
xorl %r13d, %r13d
leaq -0x3ff(%rbp), %rax
cmpq $-0x401, %rax           # imm = 0xFBFF
jbe 0x3e76
incq %rbx
cmpq %r12, %rbx
jb 0x3c5e
jmp 0x3ddd
xorl %ebp, %ebp
xorl %r13d, %r13d
jmp 0x3dc8
testq %rbp, %rbp
movq 0x50(%rsp), %rbx
je 0x3e39
leaq 0x10(%rsp), %r15
leaq 0x20(%rsp), %rax
movq %rax, (%r15)
movq %rdx, %rdi
movq %rdx, %r14
callq 0x20f0
leaq (%rax,%r14), %rdx
movq %r15, %rdi
movq %r14, %rsi
callq 0x4072
leaq 0x30(%rsp), %rdi
leaq 0x10(%rsp), %rsi
callq 0x4008
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x3e39
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2290
leaq 0x30(%rsp), %rax
movaps (%rax), %xmm0
movups %xmm0, (%rbx)
movq 0x10(%rax), %rcx
movq %rcx, 0x10(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movq $0x0, 0x10(%rax)
leaq 0x30(%rsp), %rdi
callq 0x366c
movq %rbx, %rax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2160
jmp 0x3e7f
jmp 0x3ea0
movq %rax, %rbx
movq 0x10(%rsp), %rdi
leaq 0x20(%rsp), %rax
cmpq %rax, %rdi
je 0x3ea3
movq 0x20(%rsp), %rsi
incq %rsi
callq 0x2290
jmp 0x3ea3
movq %rax, %rbx
leaq 0x30(%rsp), %rdi
callq 0x366c
movq %rbx, %rdi
callq 0x2490