// File: baziotis[P]minijava-cpp/lex.cpp
// Function: next_token()
void next_token() {
    tok_start = input;
lex_again:
    if (!input[0]) {
        token.kind = TOK::EOI;
        return;
    }
    // skip whitespace
    while (*input && charmap[*input] & BLANK) {
        if (*input == '\n') {
            encountered_newline();
        }
        input++;
    }
    if (!input[0]) goto lex_again;
    tok_start = input;

    switch (*input) {
    case '.':
    {
        token.kind = TOK::DOT;
        if (charmap[input[1]]&DEC) {
            warning("Floating numbers are not supported.");
        }
        ++input;
    } break;

    case '0' ... '9':
    {
        while (charmap[*input]&DEC) {
            ++input;
        }
        const char *save = input;
        if (*input == '.' || *input == 'e') {
            warning("Floating numbers are not supported.");
            ++save;
        }
        input = tok_start;  // reset input
        scan_int();
        input = save;
    } break;

    // TODO: Maybe an automata-like lexer is not that good these days..
    // Think of making a modified version of memcmp (one that can
    // intelligently be inlined) optimized for small lengths.

    // Explicitly handle letters that start keywords.
    // If we don't match a keyword, we fall-through to the
    // identifier case.
    case 'b':
    {
        if (input[1] == 'o'
        &&  input[2] == 'o'
        &&  input[3] == 'l'
        &&  input[4] == 'e'
        &&  input[5] == 'a'
        &&  input[6] == 'n'
        && !(charmap[input[7]]&(DEC|MIDCHAR))) {
            input += 7;
            token.kind = TOK::BOOLEAN;
            return;
        }
        goto Lid;
    } break;
    case 'c':
    {
        if (input[1] == 'l'
        &&  input[2] == 'a'
        &&  input[3] == 's'
        &&  input[4] == 's'
        && !(charmap[input[5]]&(DEC|MIDCHAR))) {
            input += 5;
            token.kind = TOK::CLASS;
            return;
        }
        goto Lid;
    } break;
    case 'e':
    {
        if (input[1] == 'l'
        &&  input[2] == 's'
        &&  input[3] == 'e'
        && !(charmap[input[4]]&(DEC|MIDCHAR))) {
            input += 4;
            token.kind = TOK::ELSE;
            return;
        }
        if (input[1] == 'x'
        &&  input[2] == 't'
        &&  input[3] == 'e'
        &&  input[4] == 'n'
        &&  input[5] == 'd'
        &&  input[6] == 's'
        && !(charmap[input[7]]&(DEC|MIDCHAR))) {
            input += 7;
            token.kind = TOK::EXTENDS;
            return;
        }
        goto Lid;
    }
    case 'f':
    {
        if (input[1] == 'a'
        &&  input[2] == 'l'
        &&  input[3] == 's'
        &&  input[4] == 'e'
        && !(charmap[input[5]]&(DEC|MIDCHAR))) {
            input += 5;
            token.kind = TOK::FALSE;
            return;
        }
        goto Lid;
    }
	case 'i':
    {
		if (input[1] == 'f'
		&& !(charmap[input[2]]&(DEC|MIDCHAR)))
        {
            input += 2;
            token.kind = TOK::IF;
			return;
		}
		if (input[1] == 'n'
		&&  input[2] == 't'
		&& !(charmap[input[3]]&(DEC|MIDCHAR)))
        {
            input += 3;
            token.kind = TOK::INT;
            return;
		}
		goto Lid;
    }
    case 'n':
    {
		if (input[1] == 'e'
		&&  input[2] == 'w'
		&& !(charmap[input[3]]&(DEC|MIDCHAR))) {
            input += 3;
            token.kind = TOK::NEW;
            return;
        }
        goto Lid;
    } break;
    case 'p':
    {
		if (input[1] == 'u'
		&&  input[2] == 'b'
		&&  input[3] == 'l'
		&&  input[4] == 'i'
		&&  input[5] == 'c'
		&& !(charmap[input[6]]&(DEC|MIDCHAR))) {
            input += 6;
            token.kind = TOK::PUBLIC;
            return;
        }
        goto Lid;
    } break;
    case 'r':
    {
        if (input[1] == 'e'
        &&  input[2] == 't'
        &&  input[3] == 'u'
        &&  input[4] == 'r'
        &&  input[5] == 'n'
        && !(charmap[input[6]]&(DEC|MIDCHAR))) {
            input += 6;
            token.kind = TOK::RETURN;
            return;
        }
        goto Lid;
    }
    case 's':
    {
        if (input[1] == 't'
        &&  input[2] == 'a'
        &&  input[3] == 't'
        &&  input[4] == 'i'
        &&  input[5] == 'c'
        && !(charmap[input[6]]&(DEC|MIDCHAR))) {
            input += 6;
            token.kind = TOK::STATIC;
            return;
        }
        goto Lid;
    }
    case 't':
    {
        if (input[1] == 'r'
        &&  input[2] == 'u'
        &&  input[3] == 'e'
        && !(charmap[input[4]]&(DEC|MIDCHAR))) {
            input += 4;
            token.kind = TOK::TRUE;
            return;
        }
        if (input[1] == 'h'
        &&  input[2] == 'i'
        &&  input[3] == 's'
        && !(charmap[input[4]]&(DEC|MIDCHAR))) {
            input += 4;
            token.kind = TOK::THIS;
            return;
        }
        goto Lid;
    }
    case 'w':
    {
        if (input[1] == 'h'
        &&  input[2] == 'i'
        &&  input[3] == 'l'
        &&  input[4] == 'e'
        && !(charmap[input[5]]&(DEC|MIDCHAR))) {
            input += 5;
            token.kind = TOK::WHILE;
            return;
        }
        goto Lid;
    }
    case 'v':
    {
        if (input[1] == 'o'
        &&  input[2] == 'i'
        &&  input[3] == 'd'
        && !(charmap[input[4]]&(DEC|MIDCHAR))) {
            input += 4;
            token.kind = TOK::VOID;
            return;
        }
        goto Lid;
    }

    case 'S':
    {
        if (input[1] == 't'
        &&  input[2] == 'r'
        &&  input[3] == 'i'
        &&  input[4] == 'n'
        &&  input[5] == 'g'
        && !(charmap[input[6]]&(DEC|MIDCHAR))) {
            input += 6;
            token.kind = TOK::STRING;
            return;
        }
        if (!memcmp(input, print_stmt_key, print_stmt_key_len)) {
            input += print_stmt_key_len;
            token.kind = TOK::PRINT;
            return;
        }
        goto Lid;
    } break;

    // The rest of letters and _ (which correspond to an identifier)
    case 'a': case 'd': case 'g': case 'h': case 'j':
    case 'k': case 'l': case 'm': case 'o':
    case 'q': case 'u':
    case 'x': case 'y': case 'z':
    case 'A' ... 'R': case 'T' ... 'Z':
    case '_':
    {
Lid:
        while (charmap[*input]&(MIDCHAR|DEC)) {
            ++input;
        }
        token.id = str_intern_range(tok_start, input);
        token.kind = TOK::ID;
    } break;

    case '&':
    {
        if (input[1] == '&') {
            token.kind = TOK::AND_AND;
            input += 2;
        } else {
            warning("There's no `&` token. Maybe you meant to write `&&`.");
            ++input;
        }
    } break;

    case '<': case '\0': case '(': case ')': case '{': case '}':
    case '[': case ']': case ',': case ';': case '!': case '=':
    case '-': case '+': case '*':
    {
        switch (*input)
        {
        case '<': token.kind = TOK::LT; break;
        case '\0': token.kind = TOK::EOI; break;
        case '(': token.kind = TOK::LPAR; break;
        case ')': token.kind = TOK::RPAR; break;
        case '{': token.kind = TOK::LBRACE; break;
        case '}': token.kind = TOK::RBRACE; break;
        case '[': token.kind = TOK::LBRACKET; break;
        case ']': token.kind = TOK::RBRACKET; break;
        case ',': token.kind = TOK::COMMA; break;
        case ';': token.kind = TOK::SEMI; break;
        case '!': token.kind = TOK::NOT; break;
        case '=': token.kind = TOK::ASGN; break;
        case '-': token.kind = TOK::MINUS; break;
        case '+': token.kind = TOK::PLUS; break;
        case '*': token.kind = TOK::STAR; break;
        default: printf("%c\n", *input); assert(0);
        }
        ++input;
    } break;

    case '/':
    {
        ++input;
        if (*input != '/') {
            syntax_error("Expected `/` after `/` so that comment starts;"
                         " skipping the rest of the line");

        }
        while (*input != 0 && *input != '\n') {
            ++input;
        }
        goto lex_again;
    } break;

    default:
        fatal_error("Unrecognized character: ", *input, " - ln: ", loc.ln);
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x30, %rsp
movq 0x20339(%rip), %rax     # 0x246b8
movq %rax, 0x2063a(%rip)     # 0x249c0
movq 0x2032b(%rip), %rax     # 0x246b8
cmpb $0x0, (%rax)
jne 0x43a1
movl $0x1, 0x2030c(%rip)     # 0x246a8
jmp 0x5047
jmp 0x43a3
movq 0x2030e(%rip), %rcx     # 0x246b8
xorl %eax, %eax
cmpb $0x0, (%rcx)
movb %al, -0x9(%rbp)
je 0x43d6
movq 0x202fd(%rip), %rax     # 0x246b8
movsbq (%rax), %rcx
leaq 0x202fa(%rip), %rax     # 0x246c0
movzbl (%rax,%rcx), %eax
andl $0x1, %eax
cmpl $0x0, %eax
setne %al
movb %al, -0x9(%rbp)
movb -0x9(%rbp), %al
testb $0x1, %al
jne 0x43df
jmp 0x4407
movq 0x202d2(%rip), %rax     # 0x246b8
movsbl (%rax), %eax
cmpl $0xa, %eax
jne 0x43f3
callq 0x4350
movq 0x202be(%rip), %rax     # 0x246b8
addq $0x1, %rax
movq %rax, 0x202b3(%rip)     # 0x246b8
jmp 0x43a3
movq 0x202aa(%rip), %rax     # 0x246b8
cmpb $0x0, (%rax)
jne 0x4418
jmp 0x4386
movq 0x20299(%rip), %rax     # 0x246b8
movq %rax, 0x2059a(%rip)     # 0x249c0
movq 0x2028b(%rip), %rax     # 0x246b8
movsbl (%rax), %eax
movl %eax, %ecx
movq %rcx, -0x18(%rbp)
subl $0x7d, %eax
ja 0x5022
movq -0x18(%rbp), %rax
leaq 0x1517e(%rip), %rcx     # 0x195c8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x1d, 0x2024b(%rip)    # 0x246a8
movq 0x20254(%rip), %rax     # 0x246b8
movsbq 0x1(%rax), %rcx
leaq 0x20250(%rip), %rax     # 0x246c0
movzbl (%rax,%rcx), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x4488
leaq 0x15791(%rip), %rdi     # 0x19c14
callq 0x42f0
movq 0x20229(%rip), %rax     # 0x246b8
addq $0x1, %rax
movq %rax, 0x2021e(%rip)     # 0x246b8
jmp 0x5047
jmp 0x44a1
movq 0x20210(%rip), %rax     # 0x246b8
movsbq (%rax), %rcx
leaq 0x2020d(%rip), %rax     # 0x246c0
movzbl (%rax,%rcx), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x44d3
movq 0x201f2(%rip), %rax     # 0x246b8
addq $0x1, %rax
movq %rax, 0x201e7(%rip)     # 0x246b8
jmp 0x44a1
movq 0x201de(%rip), %rax     # 0x246b8
movq %rax, -0x8(%rbp)
movq 0x201d3(%rip), %rax     # 0x246b8
movsbl (%rax), %eax
cmpl $0x2e, %eax
je 0x44fc
movq 0x201c4(%rip), %rax     # 0x246b8
movsbl (%rax), %eax
cmpl $0x65, %eax
jne 0x4514
leaq 0x15711(%rip), %rdi     # 0x19c14
callq 0x42f0
movq -0x8(%rbp), %rax
addq $0x1, %rax
movq %rax, -0x8(%rbp)
movq 0x204a5(%rip), %rax     # 0x249c0
movq %rax, 0x20196(%rip)     # 0x246b8
callq 0x3ff0
movq -0x8(%rbp), %rax
movq %rax, 0x20186(%rip)     # 0x246b8
jmp 0x5047
movq 0x2017a(%rip), %rax     # 0x246b8
movsbl 0x1(%rax), %eax
cmpl $0x6f, %eax
jne 0x45df
movq 0x20166(%rip), %rax     # 0x246b8
movsbl 0x2(%rax), %eax
cmpl $0x6f, %eax
jne 0x45df
movq 0x20152(%rip), %rax     # 0x246b8
movsbl 0x3(%rax), %eax
cmpl $0x6c, %eax
jne 0x45df
movq 0x20142(%rip), %rax     # 0x246b8
movsbl 0x4(%rax), %eax
cmpl $0x65, %eax
jne 0x45df
movq 0x20132(%rip), %rax     # 0x246b8
movsbl 0x5(%rax), %eax
cmpl $0x61, %eax
jne 0x45df
movq 0x20122(%rip), %rax     # 0x246b8
movsbl 0x6(%rax), %eax
cmpl $0x6e, %eax
jne 0x45df
movq 0x20112(%rip), %rax     # 0x246b8
movsbq 0x7(%rax), %rcx
leaq 0x2010e(%rip), %rax     # 0x246c0
movzbl (%rax,%rcx), %eax
andl $0x6, %eax
cmpl $0x0, %eax
jne 0x45df
movq 0x200f3(%rip), %rax     # 0x246b8
addq $0x7, %rax
movq %rax, 0x200e8(%rip)     # 0x246b8
movl $0x5, 0x200ce(%rip)     # 0x246a8
jmp 0x5047
jmp 0x4db5
movq 0x200cd(%rip), %rax     # 0x246b8
movsbl 0x1(%rax), %eax
cmpl $0x6c, %eax
jne 0x4664
movq 0x200bd(%rip), %rax     # 0x246b8
movsbl 0x2(%rax), %eax
cmpl $0x61, %eax
jne 0x4664
movq 0x200ad(%rip), %rax     # 0x246b8
movsbl 0x3(%rax), %eax
cmpl $0x73, %eax
jne 0x4664
movq 0x2009d(%rip), %rax     # 0x246b8
movsbl 0x4(%rax), %eax
cmpl $0x73, %eax
jne 0x4664
movq 0x2008d(%rip), %rax     # 0x246b8
movsbq 0x5(%rax), %rcx
leaq 0x20089(%rip), %rax     # 0x246c0
movzbl (%rax,%rcx), %eax
andl $0x6, %eax
cmpl $0x0, %eax
jne 0x4664
movq 0x2006e(%rip), %rax     # 0x246b8
addq $0x5, %rax
movq %rax, 0x20063(%rip)     # 0x246b8
movl $0x16, 0x20049(%rip)    # 0x246a8
jmp 0x5047
jmp 0x4db5
movq 0x20048(%rip), %rax     # 0x246b8
movsbl 0x1(%rax), %eax
cmpl $0x6c, %eax
jne 0x46d9
movq 0x20038(%rip), %rax     # 0x246b8
movsbl 0x2(%rax), %eax
cmpl $0x73, %eax
jne 0x46d9
movq 0x20028(%rip), %rax     # 0x246b8
movsbl 0x3(%rax), %eax
cmpl $0x65, %eax
jne 0x46d9
movq 0x20018(%rip), %rax     # 0x246b8
movsbq 0x4(%rax), %rcx
leaq 0x20014(%rip), %rax     # 0x246c0
movzbl (%rax,%rcx), %eax
andl $0x6, %eax
cmpl $0x0, %eax
jne 0x46d9
movq 0x1fff9(%rip), %rax     # 0x246b8
addq $0x4, %rax
movq %rax, 0x1ffee(%rip)     # 0x246b8
movl $0xd, 0x1ffd4(%rip)     # 0x246a8
jmp 0x5047
movq 0x1ffd8(%rip), %rax     # 0x246b8
movsbl 0x1(%rax), %eax
cmpl $0x78, %eax
jne 0x4781
movq 0x1ffc4(%rip), %rax     # 0x246b8
movsbl 0x2(%rax), %eax
cmpl $0x74, %eax
jne 0x4781
movq 0x1ffb0(%rip), %rax     # 0x246b8
movsbl 0x3(%rax), %eax
cmpl $0x65, %eax
jne 0x4781
movq 0x1ffa0(%rip), %rax     # 0x246b8
movsbl 0x4(%rax), %eax
cmpl $0x6e, %eax
jne 0x4781
movq 0x1ff90(%rip), %rax     # 0x246b8
movsbl 0x5(%rax), %eax
cmpl $0x64, %eax
jne 0x4781
movq 0x1ff80(%rip), %rax     # 0x246b8
movsbl 0x6(%rax), %eax
cmpl $0x73, %eax
jne 0x4781
movq 0x1ff70(%rip), %rax     # 0x246b8
movsbq 0x7(%rax), %rcx
leaq 0x1ff6c(%rip), %rax     # 0x246c0
movzbl (%rax,%rcx), %eax
andl $0x6, %eax
cmpl $0x0, %eax
jne 0x4781
movq 0x1ff51(%rip), %rax     # 0x246b8
addq $0x7, %rax
movq %rax, 0x1ff46(%rip)     # 0x246b8
movl $0x17, 0x1ff2c(%rip)    # 0x246a8
jmp 0x5047
jmp 0x4db5
movq 0x1ff2b(%rip), %rax     # 0x246b8
movsbl 0x1(%rax), %eax
cmpl $0x61, %eax
jne 0x4806
movq 0x1ff1b(%rip), %rax     # 0x246b8
movsbl 0x2(%rax), %eax
cmpl $0x6c, %eax
jne 0x4806
movq 0x1ff0b(%rip), %rax     # 0x246b8
movsbl 0x3(%rax), %eax
cmpl $0x73, %eax
jne 0x4806
movq 0x1fefb(%rip), %rax     # 0x246b8
movsbl 0x4(%rax), %eax
cmpl $0x65, %eax
jne 0x4806
movq 0x1feeb(%rip), %rax     # 0x246b8
movsbq 0x5(%rax), %rcx
leaq 0x1fee7(%rip), %rax     # 0x246c0
movzbl (%rax,%rcx), %eax
andl $0x6, %eax
cmpl $0x0, %eax
jne 0x4806
movq 0x1fecc(%rip), %rax     # 0x246b8
addq $0x5, %rax
movq %rax, 0x1fec1(%rip)     # 0x246b8
movl $0x13, 0x1fea7(%rip)    # 0x246a8
jmp 0x5047
jmp 0x4db5
movq 0x1fea6(%rip), %rax     # 0x246b8
movsbl 0x1(%rax), %eax
cmpl $0x66, %eax
jne 0x485b
movq 0x1fe96(%rip), %rax     # 0x246b8
movsbq 0x2(%rax), %rcx
leaq 0x1fe92(%rip), %rax     # 0x246c0
movzbl (%rax,%rcx), %eax
andl $0x6, %eax
cmpl $0x0, %eax
jne 0x485b
movq 0x1fe77(%rip), %rax     # 0x246b8
addq $0x2, %rax
movq %rax, 0x1fe6c(%rip)     # 0x246b8
movl $0x9, 0x1fe52(%rip)     # 0x246a8
jmp 0x5047
movq 0x1fe56(%rip), %rax     # 0x246b8
movsbl 0x1(%rax), %eax
cmpl $0x6e, %eax
jne 0x48bb
movq 0x1fe46(%rip), %rax     # 0x246b8
movsbl 0x2(%rax), %eax
cmpl $0x74, %eax
jne 0x48bb
movq 0x1fe36(%rip), %rax     # 0x246b8
movsbq 0x3(%rax), %rcx
leaq 0x1fe32(%rip), %rax     # 0x246c0
movzbl (%rax,%rcx), %eax
andl $0x6, %eax
cmpl $0x0, %eax
jne 0x48bb
movq 0x1fe17(%rip), %rax     # 0x246b8
addq $0x3, %rax
movq %rax, 0x1fe0c(%rip)     # 0x246b8
movl $0x6, 0x1fdf2(%rip)     # 0x246a8
jmp 0x5047
jmp 0x4db5
movq 0x1fdf1(%rip), %rax     # 0x246b8
movsbl 0x1(%rax), %eax
cmpl $0x65, %eax
jne 0x4920
movq 0x1fde1(%rip), %rax     # 0x246b8
movsbl 0x2(%rax), %eax
cmpl $0x77, %eax
jne 0x4920
movq 0x1fdd1(%rip), %rax     # 0x246b8
movsbq 0x3(%rax), %rcx
leaq 0x1fdcd(%rip), %rax     # 0x246c0
movzbl (%rax,%rcx), %eax
andl $0x6, %eax
cmpl $0x0, %eax
jne 0x4920
movq 0x1fdb2(%rip), %rax     # 0x246b8
addq $0x3, %rax
movq %rax, 0x1fda7(%rip)     # 0x246b8
movl $0x15, 0x1fd8d(%rip)    # 0x246a8
jmp 0x5047
jmp 0x4db5
movq 0x1fd8c(%rip), %rax     # 0x246b8
movsbl 0x1(%rax), %eax
cmpl $0x75, %eax
jne 0x49b9
movq 0x1fd78(%rip), %rax     # 0x246b8
movsbl 0x2(%rax), %eax
cmpl $0x62, %eax
jne 0x49b9
movq 0x1fd68(%rip), %rax     # 0x246b8
movsbl 0x3(%rax), %eax
cmpl $0x6c, %eax
jne 0x49b9
movq 0x1fd58(%rip), %rax     # 0x246b8
movsbl 0x4(%rax), %eax
cmpl $0x69, %eax
jne 0x49b9
movq 0x1fd48(%rip), %rax     # 0x246b8
movsbl 0x5(%rax), %eax
cmpl $0x63, %eax
jne 0x49b9
movq 0x1fd38(%rip), %rax     # 0x246b8
movsbq 0x6(%rax), %rcx
leaq 0x1fd34(%rip), %rax     # 0x246c0
movzbl (%rax,%rcx), %eax
andl $0x6, %eax
cmpl $0x0, %eax
jne 0x49b9
movq 0x1fd19(%rip), %rax     # 0x246b8
addq $0x6, %rax
movq %rax, 0x1fd0e(%rip)     # 0x246b8
movl $0xc, 0x1fcf4(%rip)     # 0x246a8
jmp 0x5047
jmp 0x4db5
movq 0x1fcf3(%rip), %rax     # 0x246b8
movsbl 0x1(%rax), %eax
cmpl $0x65, %eax
jne 0x4a52
movq 0x1fcdf(%rip), %rax     # 0x246b8
movsbl 0x2(%rax), %eax
cmpl $0x74, %eax
jne 0x4a52
movq 0x1fccf(%rip), %rax     # 0x246b8
movsbl 0x3(%rax), %eax
cmpl $0x75, %eax
jne 0x4a52
movq 0x1fcbf(%rip), %rax     # 0x246b8
movsbl 0x4(%rax), %eax
cmpl $0x72, %eax
jne 0x4a52
movq 0x1fcaf(%rip), %rax     # 0x246b8
movsbl 0x5(%rax), %eax
cmpl $0x6e, %eax
jne 0x4a52
movq 0x1fc9f(%rip), %rax     # 0x246b8
movsbq 0x6(%rax), %rcx
leaq 0x1fc9b(%rip), %rax     # 0x246c0
movzbl (%rax,%rcx), %eax
andl $0x6, %eax
cmpl $0x0, %eax
jne 0x4a52
movq 0x1fc80(%rip), %rax     # 0x246b8
addq $0x6, %rax
movq %rax, 0x1fc75(%rip)     # 0x246b8
movl $0xe, 0x1fc5b(%rip)     # 0x246a8
jmp 0x5047
jmp 0x4db5
movq 0x1fc5a(%rip), %rax     # 0x246b8
movsbl 0x1(%rax), %eax
cmpl $0x74, %eax
jne 0x4aeb
movq 0x1fc46(%rip), %rax     # 0x246b8
movsbl 0x2(%rax), %eax
cmpl $0x61, %eax
jne 0x4aeb
movq 0x1fc36(%rip), %rax     # 0x246b8
movsbl 0x3(%rax), %eax
cmpl $0x74, %eax
jne 0x4aeb
movq 0x1fc26(%rip), %rax     # 0x246b8
movsbl 0x4(%rax), %eax
cmpl $0x69, %eax
jne 0x4aeb
movq 0x1fc16(%rip), %rax     # 0x246b8
movsbl 0x5(%rax), %eax
cmpl $0x63, %eax
jne 0x4aeb
movq 0x1fc06(%rip), %rax     # 0x246b8
movsbq 0x6(%rax), %rcx
leaq 0x1fc02(%rip), %rax     # 0x246c0
movzbl (%rax,%rcx), %eax
andl $0x6, %eax
cmpl $0x0, %eax
jne 0x4aeb
movq 0x1fbe7(%rip), %rax     # 0x246b8
addq $0x6, %rax
movq %rax, 0x1fbdc(%rip)     # 0x246b8
movl $0xf, 0x1fbc2(%rip)     # 0x246a8
jmp 0x5047
jmp 0x4db5
movq 0x1fbc1(%rip), %rax     # 0x246b8
movsbl 0x1(%rax), %eax
cmpl $0x72, %eax
jne 0x4b60
movq 0x1fbb1(%rip), %rax     # 0x246b8
movsbl 0x2(%rax), %eax
cmpl $0x75, %eax
jne 0x4b60
movq 0x1fba1(%rip), %rax     # 0x246b8
movsbl 0x3(%rax), %eax
cmpl $0x65, %eax
jne 0x4b60
movq 0x1fb91(%rip), %rax     # 0x246b8
movsbq 0x4(%rax), %rcx
leaq 0x1fb8d(%rip), %rax     # 0x246c0
movzbl (%rax,%rcx), %eax
andl $0x6, %eax
cmpl $0x0, %eax
jne 0x4b60
movq 0x1fb72(%rip), %rax     # 0x246b8
addq $0x4, %rax
movq %rax, 0x1fb67(%rip)     # 0x246b8
movl $0x12, 0x1fb4d(%rip)    # 0x246a8
jmp 0x5047
movq 0x1fb51(%rip), %rax     # 0x246b8
movsbl 0x1(%rax), %eax
cmpl $0x68, %eax
jne 0x4bd0
movq 0x1fb41(%rip), %rax     # 0x246b8
movsbl 0x2(%rax), %eax
cmpl $0x69, %eax
jne 0x4bd0
movq 0x1fb31(%rip), %rax     # 0x246b8
movsbl 0x3(%rax), %eax
cmpl $0x73, %eax
jne 0x4bd0
movq 0x1fb21(%rip), %rax     # 0x246b8
movsbq 0x4(%rax), %rcx
leaq 0x1fb1d(%rip), %rax     # 0x246c0
movzbl (%rax,%rcx), %eax
andl $0x6, %eax
cmpl $0x0, %eax
jne 0x4bd0
movq 0x1fb02(%rip), %rax     # 0x246b8
addq $0x4, %rax
movq %rax, 0x1faf7(%rip)     # 0x246b8
movl $0x14, 0x1fadd(%rip)    # 0x246a8
jmp 0x5047
jmp 0x4db5
movq 0x1fadc(%rip), %rax     # 0x246b8
movsbl 0x1(%rax), %eax
cmpl $0x68, %eax
jne 0x4c55
movq 0x1facc(%rip), %rax     # 0x246b8
movsbl 0x2(%rax), %eax
cmpl $0x69, %eax
jne 0x4c55
movq 0x1fabc(%rip), %rax     # 0x246b8
movsbl 0x3(%rax), %eax
cmpl $0x6c, %eax
jne 0x4c55
movq 0x1faac(%rip), %rax     # 0x246b8
movsbl 0x4(%rax), %eax
cmpl $0x65, %eax
jne 0x4c55
movq 0x1fa9c(%rip), %rax     # 0x246b8
movsbq 0x5(%rax), %rcx
leaq 0x1fa98(%rip), %rax     # 0x246c0
movzbl (%rax,%rcx), %eax
andl $0x6, %eax
cmpl $0x0, %eax
jne 0x4c55
movq 0x1fa7d(%rip), %rax     # 0x246b8
addq $0x5, %rax
movq %rax, 0x1fa72(%rip)     # 0x246b8
movl $0xa, 0x1fa58(%rip)     # 0x246a8
jmp 0x5047
jmp 0x4db5
movq 0x1fa57(%rip), %rax     # 0x246b8
movsbl 0x1(%rax), %eax
cmpl $0x6f, %eax
jne 0x4cca
movq 0x1fa47(%rip), %rax     # 0x246b8
movsbl 0x2(%rax), %eax
cmpl $0x69, %eax
jne 0x4cca
movq 0x1fa37(%rip), %rax     # 0x246b8
movsbl 0x3(%rax), %eax
cmpl $0x64, %eax
jne 0x4cca
movq 0x1fa27(%rip), %rax     # 0x246b8
movsbq 0x4(%rax), %rcx
leaq 0x1fa23(%rip), %rax     # 0x246c0
movzbl (%rax,%rcx), %eax
andl $0x6, %eax
cmpl $0x0, %eax
jne 0x4cca
movq 0x1fa08(%rip), %rax     # 0x246b8
addq $0x4, %rax
movq %rax, 0x1f9fd(%rip)     # 0x246b8
movl $0x10, 0x1f9e3(%rip)    # 0x246a8
jmp 0x5047
jmp 0x4db5
movq 0x1f9e2(%rip), %rax     # 0x246b8
movsbl 0x1(%rax), %eax
cmpl $0x74, %eax
jne 0x4d63
movq 0x1f9ce(%rip), %rax     # 0x246b8
movsbl 0x2(%rax), %eax
cmpl $0x72, %eax
jne 0x4d63
movq 0x1f9be(%rip), %rax     # 0x246b8
movsbl 0x3(%rax), %eax
cmpl $0x69, %eax
jne 0x4d63
movq 0x1f9ae(%rip), %rax     # 0x246b8
movsbl 0x4(%rax), %eax
cmpl $0x6e, %eax
jne 0x4d63
movq 0x1f99e(%rip), %rax     # 0x246b8
movsbl 0x5(%rax), %eax
cmpl $0x67, %eax
jne 0x4d63
movq 0x1f98e(%rip), %rax     # 0x246b8
movsbq 0x6(%rax), %rcx
leaq 0x1f98a(%rip), %rax     # 0x246c0
movzbl (%rax,%rcx), %eax
andl $0x6, %eax
cmpl $0x0, %eax
jne 0x4d63
movq 0x1f96f(%rip), %rax     # 0x246b8
addq $0x6, %rax
movq %rax, 0x1f964(%rip)     # 0x246b8
movl $0x11, 0x1f94a(%rip)    # 0x246a8
jmp 0x5047
movq 0x1f94e(%rip), %rdi     # 0x246b8
movslq 0x1f3cf(%rip), %rdx     # 0x24140
leaq 0x150cc(%rip), %rsi     # 0x19e44
callq 0x20a0
cmpl $0x0, %eax
jne 0x4dab
movl 0x1f3b8(%rip), %ecx     # 0x24140
movq 0x1f929(%rip), %rax     # 0x246b8
movslq %ecx, %rcx
addq %rcx, %rax
movq %rax, 0x1f91c(%rip)     # 0x246b8
movl $0xb, 0x1f902(%rip)     # 0x246a8
jmp 0x5047
jmp 0x4db5
jmp 0x4daf
jmp 0x4db1
jmp 0x4db3
jmp 0x4db5
jmp 0x4db7
movq 0x1f8fa(%rip), %rax     # 0x246b8
movsbq (%rax), %rcx
leaq 0x1f8f7(%rip), %rax     # 0x246c0
movzbl (%rax,%rcx), %eax
andl $0x6, %eax
cmpl $0x0, %eax
je 0x4de9
movq 0x1f8dc(%rip), %rax     # 0x246b8
addq $0x1, %rax
movq %rax, 0x1f8d1(%rip)     # 0x246b8
jmp 0x4db7
movq 0x1fbd0(%rip), %rdi     # 0x249c0
movq 0x1f8c1(%rip), %rsi     # 0x246b8
callq 0xbb10
movq %rax, 0x1f8ad(%rip)     # 0x246b0
movl $0x8, 0x1f89b(%rip)     # 0x246a8
jmp 0x5047
movq 0x1f89f(%rip), %rax     # 0x246b8
movsbl 0x1(%rax), %eax
cmpl $0x26, %eax
jne 0x4e40
movl $0x1f, 0x1f87c(%rip)    # 0x246a8
movq 0x1f885(%rip), %rax     # 0x246b8
addq $0x2, %rax
movq %rax, 0x1f87a(%rip)     # 0x246b8
jmp 0x4e5e
leaq 0x14df1(%rip), %rdi     # 0x19c38
callq 0x42f0
movq 0x1f865(%rip), %rax     # 0x246b8
addq $0x1, %rax
movq %rax, 0x1f85a(%rip)     # 0x246b8
jmp 0x5047
movq 0x1f84e(%rip), %rax     # 0x246b8
movsbl (%rax), %eax
movl %eax, %ecx
movq %rcx, -0x20(%rbp)
subl $0x7d, %eax
ja 0x4f5c
movq -0x20(%rbp), %rax
leaq 0x14939(%rip), %rcx     # 0x197c0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl $0x20, 0x1f80e(%rip)    # 0x246a8
jmp 0x4f93
movl $0x1, 0x1f7ff(%rip)     # 0x246a8
jmp 0x4f93
movl $0x3, 0x1f7f0(%rip)     # 0x246a8
jmp 0x4f93
movl $0x19, 0x1f7e1(%rip)    # 0x246a8
jmp 0x4f93
movl $0x7, 0x1f7d2(%rip)     # 0x246a8
jmp 0x4f93
movl $0x1a, 0x1f7c3(%rip)    # 0x246a8
jmp 0x4f93
movl $0x24, 0x1f7b4(%rip)    # 0x246a8
jmp 0x4f93
movl $0x1b, 0x1f7a5(%rip)    # 0x246a8
jmp 0x4f93
movl $0x1c, 0x1f796(%rip)    # 0x246a8
jmp 0x4f93
movl $0x1e, 0x1f78a(%rip)    # 0x246a8
jmp 0x4f93
movl $0x4, 0x1f77e(%rip)     # 0x246a8
jmp 0x4f93
movl $0x18, 0x1f772(%rip)    # 0x246a8
jmp 0x4f93
movl $0x22, 0x1f766(%rip)    # 0x246a8
jmp 0x4f93
movl $0x21, 0x1f75a(%rip)    # 0x246a8
jmp 0x4f93
movl $0x23, 0x1f74e(%rip)    # 0x246a8
jmp 0x4f93
movq 0x1f755(%rip), %rax     # 0x246b8
movsbl (%rax), %esi
leaq 0x14d00(%rip), %rdi     # 0x19c6d
movb $0x0, %al
callq 0x2030
leaq 0x16a07(%rip), %rdi     # 0x1b982
leaq 0x14cef(%rip), %rsi     # 0x19c71
movl $0x18b, %edx            # imm = 0x18B
leaq 0x14ceb(%rip), %rcx     # 0x19c79
callq 0x20d0
movq 0x1f71e(%rip), %rax     # 0x246b8
addq $0x1, %rax
movq %rax, 0x1f713(%rip)     # 0x246b8
jmp 0x5047
movq 0x1f707(%rip), %rax     # 0x246b8
addq $0x1, %rax
movq %rax, 0x1f6fc(%rip)     # 0x246b8
movq 0x1f6f5(%rip), %rax     # 0x246b8
movsbl (%rax), %eax
cmpl $0x2f, %eax
je 0x4fd7
leaq 0x14cb9(%rip), %rdi     # 0x19c8b
callq 0x4270
jmp 0x4fd9
movq 0x1f6d8(%rip), %rax     # 0x246b8
movsbl (%rax), %ecx
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, -0x21(%rbp)
je 0x5000
movq 0x1f6c4(%rip), %rax     # 0x246b8
movsbl (%rax), %eax
cmpl $0xa, %eax
setne %al
movb %al, -0x21(%rbp)
movb -0x21(%rbp), %al
testb $0x1, %al
jne 0x5009
jmp 0x501d
movq 0x1f6a8(%rip), %rax     # 0x246b8
addq $0x1, %rax
movq %rax, 0x1f69d(%rip)     # 0x246b8
jmp 0x4fd9
jmp 0x4386
movq 0x1f68f(%rip), %rax     # 0x246b8
movb (%rax), %al
movl 0x1f66f(%rip), %ecx     # 0x246a0
leaq 0x14ca0(%rip), %rdi     # 0x19cd8
leaq 0x14cb2(%rip), %rdx     # 0x19cf1
movsbl %al, %esi
callq 0x5050
addq $0x30, %rsp
popq %rbp
retq
nopl (%rax)