// File: /workspace/github_c_makefile_star2_O1/endeav0r[P]hvm/src/lexer.c
// Function: lexer
struct _token * lexer (const char * text)
{
    int i     = 0;
    int j, k  = 0;
    int line  = 1;
    char buf[64];

    struct _lexer lexer;
    lexer.first = NULL;
    lexer.last  = NULL;

    while (text[i] != '\0') {
        if (    (text[i] == ' ')
             || (text[i] == '\t')) {
            i++;
            continue;
        }

        if (text[i] == '\n') {
            lexer_append(&lexer, token_create(TOK_NEWLINE, NULL, line));
            i++;
            line++;
            continue;
        }

        if (text[i] == ',') {
            lexer_append(&lexer, token_create(TOK_COMMA, NULL, line));
            i++;
            continue;
        }

        if (text[i] == ';') {
            while (text[i] != '\n')
                i++;
            continue;
        }

        #define MATCHTOK(TOKSTR, TOKVAL) \
        if (strncmp(&(text[i]), #TOKSTR, strlen(#TOKSTR)) == 0) { \
            if (    ((text[i+strlen(#TOKSTR)] < 'a') || (text[i+strlen(#TOKSTR)] > 'z')) \
                 && ((text[i+strlen(#TOKSTR)] < '0') || (text[i+strlen(#TOKSTR)] > '9')) \
                 && (text[i+strlen(#TOKSTR)] != '_')) { \
                lexer_append(&lexer, token_create(TOKVAL, #TOKSTR, line)); \
                i += strlen(#TOKSTR); \
                continue; \
            } \
        }

        MATCHTOK(r0,      REG_0)
        MATCHTOK(r1,      REG_1)
        MATCHTOK(r2,      REG_2)
        MATCHTOK(r3,      REG_3)
        MATCHTOK(r4,      REG_4)
        MATCHTOK(r5,      REG_5)
        MATCHTOK(r6,      REG_6)
        MATCHTOK(r7,      REG_7)
        MATCHTOK(rsp,     REG_SP)
        MATCHTOK(rbp,     REG_BP)
        MATCHTOK(rip,     REG_IP)
        MATCHTOK(mov,     OP_MOV)
        MATCHTOK(cmp,     OP_CMP)
        MATCHTOK(add,     OP_ADD)
        MATCHTOK(sub,     OP_SUB)
        MATCHTOK(mul,     OP_MUL)
        MATCHTOK(div,     OP_DIV)
        MATCHTOK(mod,     OP_MOD)
        MATCHTOK(and,     OP_AND)
        MATCHTOK(or,      OP_OR)
        MATCHTOK(xor,     OP_XOR)
        MATCHTOK(jmp,     OP_JMP)
        MATCHTOK(je,      OP_JE)
        MATCHTOK(jne,     OP_JNE)
        MATCHTOK(jle,     OP_JLE)
        MATCHTOK(jl,      OP_JL)
        MATCHTOK(jge,     OP_JGE)
        MATCHTOK(jg,      OP_JG)
        MATCHTOK(call,    OP_CALL)
        MATCHTOK(ret,     OP_RET)
        MATCHTOK(loadb,   OP_LOADB)
        MATCHTOK(load,    OP_LOAD)
        MATCHTOK(storb,   OP_STORB)
        MATCHTOK(stor,    OP_STOR)
        MATCHTOK(in,      OP_IN)
        MATCHTOK(out,     OP_OUT)
        MATCHTOK(push,    OP_PUSH)
        MATCHTOK(pop,     OP_POP)
        MATCHTOK(hlt,     OP_HLT)
        MATCHTOK(syscall, OP_SYSCALL)
        MATCHTOK(nop,     OP_NOP)

        // numbers
        if (((text[i] >= '0') && (text[i] <= '9')) || (text[i] == '-')) {
            if ((text[i + 1] == 'x') && (text[i] != '-')) {
                for (j = i + 2;
                     (    ((text[j] >= '0') && (text[j] <= '9'))
                       || ((text[j] >= 'a') && (text[j] <= 'f')));
                     j++) {}
            }
            else {
                for (j = i + 1;
                     ((text[j] >= '0') && (text[j] <= '9'));
                     j++) {}
            }
            // catch #x case
            if (text[j - 1] != 'x') {
                strncpy(buf, &(text[i]), j - i < 64 ? j - i : 64);
                buf[j - i] = '\0'; // weird strncpy not copy null-terminator
                buf[63] = '\0';
                lexer_append(&lexer, token_create(TOK_NUMBER, buf, line));
                i = j;
                continue;
            }
        }

        // labels
        if ((text[i] >= 'a') && (text[i] <= 'z')) {
            for (j = i + 1; 
                       ((text[j] >= 'a') && (text[j] <= 'z'))
                    || ((text[j] >= '0') && (text[j] <= '9'))
                    || (text[j] == '_');
                 j++) {}
            for (k = j; (text[k] == ' ') || (text[k] == '\t'); k++) {}
            strncpy(buf, &(text[i]), j - i < 64 ? j - i : 64);
            buf[j - i] = '\0';
            buf[63] = '\0';
            if (text[k] == ':') {
                lexer_append(&lexer, token_create(TOK_LABELDEC, buf, line));
                i = k + 1;
            }
            else {
                lexer_append(&lexer, token_create(TOK_LABEL, buf, line));
                i = j;
            }
            continue;
        }

        // strings
        if (text[i] == '"') {
            char * tmpstr = (char *) malloc(4096);
            j = i + 1;
            k = 0;
            while (text[j] != '"') {
                if (text[j] == '\\') {
                    j++;
                    if (text[j] == 'n')
                        tmpstr[k++] = '\n';
                    else if (text[j] == 't')
                        tmpstr[k++] = '\t';
                    else
                        tmpstr[k++] = text[j];
                }
                else
                    tmpstr[k++] = text[j];
                j++;
            }
            tmpstr[k] = '\0';
            lexer_append(&lexer, token_create(TOK_STRING, tmpstr, line));
            i = j + 1;
            free(tmpstr);
            continue;
        }


        fprintf(stderr, "invalid input to lexer, line %d (char=0x%02x)\n",
                line, text[i]);

        return NULL;
    }

    if (lexer.last == NULL)
        return NULL;

    if (lexer.last->type != TOK_NEWLINE)
        lexer_append(&lexer, token_create(TOK_NEWLINE, NULL, line));

    return lexer.first;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdi, 0x18(%rsp)
movl $0x1, 0xc(%rsp)
xorl %r13d, %r13d
xorl %ebp, %ebp
xorl %r12d, %r12d
movq %rbp, %rax
movq %r13, %r15
movslq %r12d, %rbx
movq 0x18(%rsp), %r14
leaq (%r14,%rbx), %r13
movzbl (%r14,%rbx), %ebp
cmpl $0x1f, %ebp
jle 0x2f94
cmpl $0x20, %ebp
je 0x2fcc
cmpl $0x2c, %ebp
je 0x2fda
cmpl $0x3b, %ebp
jne 0x300f
decl %r12d
incl %r12d
cmpb $0xa, (%r13)
leaq 0x1(%r13), %r13
jne 0x2f84
jmp 0x2fcf
cmpl $0x9, %ebp
je 0x2fcc
cmpl $0xa, %ebp
jne 0x3007
movq %rax, %rbx
movl $0x70, %edi
xorl %esi, %esi
movl 0xc(%rsp), %edx
callq 0x3fe0
movq %rax, %r13
movq %rax, %rbp
testq %r15, %r15
je 0x2fc3
movq %r13, 0x10(%r15)
movq %rbx, %rbp
incl %r12d
incl 0xc(%rsp)
jmp 0x2f52
incl %r12d
movq %r15, %r13
movq %rax, %rbp
jmp 0x2f52
movq %rax, %rbx
movl $0x71, %edi
xorl %esi, %esi
movl 0xc(%rsp), %edx
callq 0x3fe0
movq %rax, %r13
movq %rax, %rbp
testq %r15, %r15
je 0x2fff
movq %r13, 0x10(%r15)
movq %rbx, %rbp
incl %r12d
jmp 0x2f52
testl %ebp, %ebp
je 0x3f87
movq %rax, 0x10(%rsp)
movl $0x2, %edx
movq %r13, %rdi
leaq 0x3455(%rip), %rsi      # 0x6478
callq 0x2090
testl %eax, %eax
jne 0x304f
movb 0x2(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x304f
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x39eb
movl $0x2, %edx
movq %r13, %rdi
leaq 0x341d(%rip), %rsi      # 0x647b
callq 0x2090
testl %eax, %eax
jne 0x308a
movb 0x2(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x308a
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x39f9
movl $0x2, %edx
movq %r13, %rdi
leaq 0x33e5(%rip), %rsi      # 0x647e
callq 0x2090
testl %eax, %eax
jne 0x30c5
movb 0x2(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x30c5
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3a0a
movl $0x2, %edx
movq %r13, %rdi
leaq 0x33ad(%rip), %rsi      # 0x6481
callq 0x2090
testl %eax, %eax
jne 0x3100
movb 0x2(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x3100
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3a1b
movl $0x2, %edx
movq %r13, %rdi
leaq 0x3375(%rip), %rsi      # 0x6484
callq 0x2090
testl %eax, %eax
jne 0x313b
movb 0x2(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x313b
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3a2c
movl $0x2, %edx
movq %r13, %rdi
leaq 0x333d(%rip), %rsi      # 0x6487
callq 0x2090
testl %eax, %eax
jne 0x3176
movb 0x2(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x3176
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3a3d
movl $0x2, %edx
movq %r13, %rdi
leaq 0x3305(%rip), %rsi      # 0x648a
callq 0x2090
testl %eax, %eax
jne 0x31b1
movb 0x2(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x31b1
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3a4e
movl $0x2, %edx
movq %r13, %rdi
leaq 0x32cd(%rip), %rsi      # 0x648d
callq 0x2090
testl %eax, %eax
jne 0x31ec
movb 0x2(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x31ec
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3a5f
movl $0x3, %edx
movq %r13, %rdi
leaq 0x3295(%rip), %rsi      # 0x6490
callq 0x2090
testl %eax, %eax
jne 0x3227
movb 0x3(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x3227
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3a70
movl $0x3, %edx
movq %r13, %rdi
leaq 0x325e(%rip), %rsi      # 0x6494
callq 0x2090
testl %eax, %eax
jne 0x3262
movb 0x3(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x3262
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3a81
movl $0x3, %edx
movq %r13, %rdi
leaq 0x3227(%rip), %rsi      # 0x6498
callq 0x2090
testl %eax, %eax
jne 0x329d
movb 0x3(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x329d
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3a92
movl $0x3, %edx
movq %r13, %rdi
leaq 0x324f(%rip), %rsi      # 0x64fb
callq 0x2090
testl %eax, %eax
jne 0x32d8
movb 0x3(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x32d8
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3aa3
movl $0x3, %edx
movq %r13, %rdi
leaq 0x3218(%rip), %rsi      # 0x64ff
callq 0x2090
testl %eax, %eax
jne 0x3313
movb 0x3(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x3313
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3ab4
movl $0x3, %edx
movq %r13, %rdi
leaq 0x317a(%rip), %rsi      # 0x649c
callq 0x2090
testl %eax, %eax
jne 0x334e
movb 0x3(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x334e
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3ac5
movl $0x3, %edx
movq %r13, %rdi
leaq 0x3143(%rip), %rsi      # 0x64a0
callq 0x2090
testl %eax, %eax
jne 0x3389
movb 0x3(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x3389
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3ad6
movl $0x3, %edx
movq %r13, %rdi
leaq 0x310c(%rip), %rsi      # 0x64a4
callq 0x2090
testl %eax, %eax
jne 0x33c4
movb 0x3(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x33c4
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3ae7
movl $0x3, %edx
movq %r13, %rdi
leaq 0x30d5(%rip), %rsi      # 0x64a8
callq 0x2090
testl %eax, %eax
jne 0x33ff
movb 0x3(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x33ff
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3af8
movl $0x3, %edx
movq %r13, %rdi
leaq 0x309e(%rip), %rsi      # 0x64ac
callq 0x2090
testl %eax, %eax
jne 0x343a
movb 0x3(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x343a
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3b09
movl $0x3, %edx
movq %r13, %rdi
leaq 0x3067(%rip), %rsi      # 0x64b0
callq 0x2090
testl %eax, %eax
jne 0x3475
movb 0x3(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x3475
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3b1a
movl $0x2, %edx
movq %r13, %rdi
leaq 0x305e(%rip), %rsi      # 0x64e2
callq 0x2090
testl %eax, %eax
jne 0x34b0
movb 0x2(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x34b0
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3b2b
movl $0x3, %edx
movq %r13, %rdi
leaq 0x2ff5(%rip), %rsi      # 0x64b4
callq 0x2090
testl %eax, %eax
jne 0x34eb
movb 0x3(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x34eb
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3b3c
movl $0x3, %edx
movq %r13, %rdi
leaq 0x2fbe(%rip), %rsi      # 0x64b8
callq 0x2090
testl %eax, %eax
jne 0x3526
movb 0x3(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x3526
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3b4d
movl $0x2, %edx
movq %r13, %rdi
leaq 0x2f87(%rip), %rsi      # 0x64bc
callq 0x2090
testl %eax, %eax
jne 0x3561
movb 0x2(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x3561
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3b5e
movl $0x3, %edx
movq %r13, %rdi
leaq 0x2f4f(%rip), %rsi      # 0x64bf
callq 0x2090
testl %eax, %eax
jne 0x359c
movb 0x3(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x359c
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3b6f
movl $0x3, %edx
movq %r13, %rdi
leaq 0x2f1b(%rip), %rsi      # 0x64c6
callq 0x2090
testl %eax, %eax
jne 0x35d7
movb 0x3(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x35d7
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3b80
movl $0x2, %edx
movq %r13, %rdi
leaq 0x2edd(%rip), %rsi      # 0x64c3
callq 0x2090
testl %eax, %eax
jne 0x3612
movb 0x2(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x3612
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3b91
movl $0x3, %edx
movq %r13, %rdi
leaq 0x2eac(%rip), %rsi      # 0x64cd
callq 0x2090
testl %eax, %eax
jne 0x364d
movb 0x3(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x364d
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3ba2
movl $0x2, %edx
movq %r13, %rdi
leaq 0x2e6e(%rip), %rsi      # 0x64ca
callq 0x2090
testl %eax, %eax
jne 0x3688
movb 0x2(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x3688
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3bb3
movl $0x4, %edx
movq %r13, %rdi
leaq 0x2e73(%rip), %rsi      # 0x650a
callq 0x2090
testl %eax, %eax
jne 0x36c3
movb 0x4(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x36c3
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3bc4
movl $0x3, %edx
movq %r13, %rdi
leaq 0x2dff(%rip), %rsi      # 0x64d1
callq 0x2090
testl %eax, %eax
jne 0x36fe
movb 0x3(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x36fe
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3bd5
movl $0x5, %edx
movq %r13, %rdi
leaq 0x2dcd(%rip), %rsi      # 0x64da
callq 0x2090
testl %eax, %eax
jne 0x3739
movb 0x5(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x3739
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3be6
movl $0x4, %edx
movq %r13, %rdi
leaq 0x2d8d(%rip), %rsi      # 0x64d5
callq 0x2090
testl %eax, %eax
jne 0x3774
movb 0x4(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x3774
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3bf7
movl $0x5, %edx
movq %r13, %rdi
leaq 0x2d62(%rip), %rsi      # 0x64e5
callq 0x2090
testl %eax, %eax
jne 0x37af
movb 0x5(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x37af
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3e05
movl $0x4, %edx
movq %r13, %rdi
leaq 0x2d22(%rip), %rsi      # 0x64e0
callq 0x2090
testl %eax, %eax
jne 0x37ea
movb 0x4(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x37ea
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3e3a
movl $0x2, %edx
movq %r13, %rdi
leaq 0x2cf2(%rip), %rsi      # 0x64eb
callq 0x2090
testl %eax, %eax
jne 0x3825
movb 0x2(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x3825
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3e7e
movl $0x3, %edx
movq %r13, %rdi
leaq 0x2cba(%rip), %rsi      # 0x64ee
callq 0x2090
testl %eax, %eax
jne 0x3860
movb 0x3(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x3860
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3eb3
movl $0x4, %edx
movq %r13, %rdi
leaq 0x2c83(%rip), %rsi      # 0x64f2
callq 0x2090
testl %eax, %eax
jne 0x389b
movb 0x4(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x389b
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3ec4
movl $0x3, %edx
movq %r13, %rdi
leaq 0x2c4d(%rip), %rsi      # 0x64f7
callq 0x2090
testl %eax, %eax
jne 0x38d6
movb 0x3(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x38d6
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3ef9
movl $0x3, %edx
movq %r13, %rdi
leaq 0x2c1e(%rip), %rsi      # 0x6503
callq 0x2090
testl %eax, %eax
jne 0x3911
movb 0x3(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x3911
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3f07
movl $0x7, %edx
movq %r13, %rdi
leaq 0x2be7(%rip), %rsi      # 0x6507
callq 0x2090
testl %eax, %eax
jne 0x394c
movb 0x7(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x394c
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3f15
movl $0x3, %edx
movq %r13, %rdi
leaq 0x2bb4(%rip), %rsi      # 0x650f
callq 0x2090
testl %eax, %eax
jne 0x3987
movb 0x3(%r14,%rbx), %al
leal -0x7b(%rax), %ecx
cmpb $-0x1b, %cl
ja 0x3987
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
cmpb $0x5f, %al
sete %al
orb %cl, %al
je 0x3f4a
leal -0x30(%rbp), %eax
cmpb $0xa, %al
setae %al
cmpb $0x2d, %bpl
setne %cl
testb %al, %cl
jne 0x3c33
cmpb $0x2d, %bpl
je 0x3c08
movq 0x18(%rsp), %rax
cmpb $0x78, 0x1(%rax,%rbx)
jne 0x3c08
leal 0x2(%r12), %eax
movslq %eax, %r14
decq %r14
movq 0x18(%rsp), %rdx
movb 0x1(%rdx,%r14), %al
leal -0x30(%rax), %ecx
cmpb $0xa, %cl
setb %cl
addb $-0x61, %al
cmpb $0x6, %al
setb %al
orb %cl, %al
incq %r14
testb %al, %al
jne 0x39c8
jmp 0x3c25
xorl %edi, %edi
leaq 0x2a84(%rip), %rsi      # 0x6478
jmp 0x3e8a
movl $0x1, %edi
leaq 0x2a76(%rip), %rsi      # 0x647b
jmp 0x3e8a
movl $0x2, %edi
leaq 0x2a68(%rip), %rsi      # 0x647e
jmp 0x3e8a
movl $0x3, %edi
leaq 0x2a5a(%rip), %rsi      # 0x6481
jmp 0x3e8a
movl $0x4, %edi
leaq 0x2a4c(%rip), %rsi      # 0x6484
jmp 0x3e8a
movl $0x5, %edi
leaq 0x2a3e(%rip), %rsi      # 0x6487
jmp 0x3e8a
movl $0x6, %edi
leaq 0x2a30(%rip), %rsi      # 0x648a
jmp 0x3e8a
movl $0xa, %edi
leaq 0x2a22(%rip), %rsi      # 0x648d
jmp 0x3e8a
movl $0x9, %edi
leaq 0x2a14(%rip), %rsi      # 0x6490
jmp 0x3f56
movl $0x8, %edi
leaq 0x2a07(%rip), %rsi      # 0x6494
jmp 0x3f56
movl $0x7, %edi
leaq 0x29fa(%rip), %rsi      # 0x6498
jmp 0x3f56
movl $0x51, %edi
leaq 0x2a4c(%rip), %rsi      # 0x64fb
jmp 0x3f56
movl $0x53, %edi
leaq 0x2a3f(%rip), %rsi      # 0x64ff
jmp 0x3f56
movl $0x10, %edi
leaq 0x29cb(%rip), %rsi      # 0x649c
jmp 0x3f56
movl $0x12, %edi
leaq 0x29be(%rip), %rsi      # 0x64a0
jmp 0x3f56
movl $0x14, %edi
leaq 0x29b1(%rip), %rsi      # 0x64a4
jmp 0x3f56
movl $0x16, %edi
leaq 0x29a4(%rip), %rsi      # 0x64a8
jmp 0x3f56
movl $0x18, %edi
leaq 0x2997(%rip), %rsi      # 0x64ac
jmp 0x3f56
movl $0x1a, %edi
leaq 0x298a(%rip), %rsi      # 0x64b0
jmp 0x3f56
movl $0x1c, %edi
leaq 0x29ab(%rip), %rsi      # 0x64e2
jmp 0x3e8a
movl $0x1e, %edi
leaq 0x296c(%rip), %rsi      # 0x64b4
jmp 0x3f56
movl $0x20, %edi
leaq 0x295f(%rip), %rsi      # 0x64b8
jmp 0x3f56
movl $0x21, %edi
leaq 0x2952(%rip), %rsi      # 0x64bc
jmp 0x3e8a
movl $0x22, %edi
leaq 0x2944(%rip), %rsi      # 0x64bf
jmp 0x3f56
movl $0x24, %edi
leaq 0x293a(%rip), %rsi      # 0x64c6
jmp 0x3f56
movl $0x23, %edi
leaq 0x2926(%rip), %rsi      # 0x64c3
jmp 0x3e8a
movl $0x26, %edi
leaq 0x291f(%rip), %rsi      # 0x64cd
jmp 0x3f56
movl $0x25, %edi
leaq 0x290b(%rip), %rsi      # 0x64ca
jmp 0x3e8a
movl $0x27, %edi
leaq 0x293a(%rip), %rsi      # 0x650a
jmp 0x3ed0
movl $0x29, %edi
leaq 0x28f0(%rip), %rsi      # 0x64d1
jmp 0x3f56
movl $0x32, %edi
leaq 0x28e8(%rip), %rsi      # 0x64da
jmp 0x3e11
movl $0x30, %edi
leaq 0x28d2(%rip), %rsi      # 0x64d5
jmp 0x3ed0
leaq 0x1(%rbx), %rax
movslq %eax, %r14
decq %r14
movq 0x18(%rsp), %rdx
movb 0x1(%rdx,%r14), %al
addb $-0x30, %al
incq %r14
cmpb $0xa, %al
jb 0x3c17
movslq %r14d, %rax
cmpb $0x78, -0x1(%rdx,%rax)
jne 0x3da0
leal -0x61(%rbp), %eax
cmpb $0x19, %al
ja 0x3cfd
leal 0x1(%r12), %eax
cltq
movq 0x18(%rsp), %rcx
addq %rcx, %rbx
leal 0x2(%r12), %r14d
addq %rcx, %rax
movl $0x1, %ebp
movb (%rbx,%rbp), %cl
leal -0x61(%rcx), %edx
cmpb $0x1a, %dl
jb 0x3c78
leal -0x30(%rcx), %edx
cmpb $0xa, %dl
setb %dl
cmpb $0x5f, %cl
sete %cl
orb %dl, %cl
je 0x3c89
incq %rbp
incl %r14d
incq %rax
jmp 0x3c5a
incl %r14d
incq %rax
movzbl (%rax), %ebx
cmpl $0x20, %ebx
je 0x3c83
cmpl $0x9, %ebx
je 0x3c83
cmpl $0x40, %ebp
movl $0x40, %eax
cmovll %ebp, %eax
movslq %eax, %rdx
leaq 0x20(%rsp), %rdi
movq %r13, %rsi
callq 0x2080
movslq %ebp, %rax
xorl %ecx, %ecx
movb %cl, 0x20(%rsp,%rax)
movb %cl, 0x5f(%rsp)
cmpb $0x3a, %bl
jne 0x3e4b
movl $0x73, %edi
leaq 0x20(%rsp), %rsi
movl 0xc(%rsp), %edx
callq 0x3fe0
movq %rax, %r13
movq %rax, %rbp
movl %r14d, %r12d
testq %r15, %r15
je 0x2f52
movq %r13, 0x10(%r15)
movq 0x10(%rsp), %rbp
movl %r14d, %r12d
jmp 0x2f52
cmpb $0x22, %bpl
movq 0x18(%rsp), %r14
jne 0x3fae
movl $0x1000, %edi           # imm = 0x1000
callq 0x2200
movq %rax, %rbx
xorl %eax, %eax
movslq %r12d, %rcx
movzbl 0x1(%r14,%rcx), %edx
cmpl $0x5c, %edx
je 0x3d39
cmpl $0x22, %edx
je 0x3d64
incq %rcx
movb %dl, (%rbx,%rax)
movl %ecx, %r12d
jmp 0x3d5f
movzbl 0x2(%r14,%rcx), %edx
addq $0x2, %rcx
movl %ecx, %r12d
cmpl $0x74, %edx
je 0x3d56
cmpl $0x6e, %edx
jne 0x3d5c
movb $0xa, (%rbx,%rax)
jmp 0x3d5f
movb $0x9, (%rbx,%rax)
jmp 0x3d5f
movb %dl, (%rbx,%rax)
incq %rax
jmp 0x3d1b
movl %eax, %eax
movb $0x0, (%rbx,%rax)
movl $0x75, %edi
movq %rbx, %rsi
movl 0xc(%rsp), %edx
callq 0x3fe0
movq %rax, %r13
movq %rax, %rbp
testq %r15, %r15
je 0x3d8f
movq %r13, 0x10(%r15)
movq 0x10(%rsp), %rbp
addl $0x2, %r12d
movq %rbx, %rdi
callq 0x2040
jmp 0x2f52
movl %r14d, %ebx
subl %r12d, %ebx
cmpl $0x40, %ebx
movl $0x40, %eax
cmovll %ebx, %eax
movslq %eax, %rdx
leaq 0x20(%rsp), %r12
movq %r12, %rdi
movq %r13, %rsi
callq 0x2080
movslq %ebx, %rax
xorl %ecx, %ecx
movb %cl, 0x20(%rsp,%rax)
movb %cl, 0x5f(%rsp)
movl $0x72, %edi
movq %r12, %rsi
movl 0xc(%rsp), %edx
callq 0x3fe0
movq %rax, %r13
movq %rax, %rbp
movl %r14d, %r12d
testq %r15, %r15
je 0x2f52
movq %r13, 0x10(%r15)
movq 0x10(%rsp), %rbp
movl %r14d, %r12d
jmp 0x2f52
movl $0x36, %edi
leaq 0x26d4(%rip), %rsi      # 0x64e5
movl 0xc(%rsp), %edx
callq 0x3fe0
movq %rax, %r13
movq %rax, %rbp
testq %r15, %r15
je 0x3e2e
movq %r13, 0x10(%r15)
movq 0x10(%rsp), %rbp
addq $0x5, %rbx
movl %ebx, %r12d
jmp 0x2f52
movl $0x34, %edi
leaq 0x269a(%rip), %rsi      # 0x64e0
jmp 0x3ed0
movl %r12d, %r12d
addq %rbp, %r12
movl $0x74, %edi
leaq 0x20(%rsp), %rsi
movl 0xc(%rsp), %edx
callq 0x3fe0
movq %rax, %r13
testq %r15, %r15
je 0x3f7f
movq %r13, 0x10(%r15)
movq 0x10(%rsp), %rbp
jmp 0x2f52
movl $0x40, %edi
leaq 0x2661(%rip), %rsi      # 0x64eb
movl 0xc(%rsp), %edx
callq 0x3fe0
movq %rax, %r13
movq %rax, %rbp
testq %r15, %r15
je 0x3ea7
movq %r13, 0x10(%r15)
movq 0x10(%rsp), %rbp
addq $0x2, %rbx
movl %ebx, %r12d
jmp 0x2f52
movl $0x41, %edi
leaq 0x262f(%rip), %rsi      # 0x64ee
jmp 0x3f56
movl $0x42, %edi
leaq 0x2622(%rip), %rsi      # 0x64f2
movl 0xc(%rsp), %edx
callq 0x3fe0
movq %rax, %r13
movq %rax, %rbp
testq %r15, %r15
je 0x3eed
movq %r13, 0x10(%r15)
movq 0x10(%rsp), %rbp
addq $0x4, %rbx
movl %ebx, %r12d
jmp 0x2f52
movl $0x44, %edi
leaq 0x25f2(%rip), %rsi      # 0x64f7
jmp 0x3f56
movl $0x60, %edi
leaq 0x25f0(%rip), %rsi      # 0x6503
jmp 0x3f56
movl $0x61, %edi
leaq 0x25e6(%rip), %rsi      # 0x6507
movl 0xc(%rsp), %edx
callq 0x3fe0
movq %rax, %r13
movq %rax, %rbp
testq %r15, %r15
je 0x3f3e
movq %r13, 0x10(%r15)
movq 0x10(%rsp), %rbp
addq $0x7, %rbx
movl %ebx, %r12d
jmp 0x2f52
movl $0x90, %edi
leaq 0x25b9(%rip), %rsi      # 0x650f
movl 0xc(%rsp), %edx
callq 0x3fe0
movq %rax, %r13
movq %rax, %rbp
testq %r15, %r15
je 0x3f73
movq %r13, 0x10(%r15)
movq 0x10(%rsp), %rbp
addq $0x3, %rbx
movl %ebx, %r12d
jmp 0x2f52
movq %r13, %rbp
jmp 0x2f52
testq %r15, %r15
je 0x3fce
cmpl $0x70, (%r15)
je 0x3fd0
movl $0x70, %edi
xorl %esi, %esi
movl 0xc(%rsp), %edx
movq %rax, %rbx
callq 0x3fe0
movq %rax, 0x10(%r15)
movq %rbx, %rax
jmp 0x3fd0
movsbl %bpl, %ecx
movq 0x5037(%rip), %rax      # 0x8ff0
movq (%rax), %rdi
leaq 0x2576(%rip), %rsi      # 0x6539
movl 0xc(%rsp), %edx
xorl %eax, %eax
callq 0x21d0
xorl %eax, %eax
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nop