// File: /workspace/github_c_makefile_star2_O1/adamjedlicka[P]blu/src/vm/parser/parser.c
// Function: bluParserNextToken
bluToken bluParserNextToken(bluParser* parser) {
	skipWhitespace(parser);

	parser->from = parser->at;
	parser->lineFrom = parser->lineTo;
	parser->columnFrom = parser->columnTo;

	if (isAtEnd(parser)) return eof(parser);

	char c = advance(parser);
	if (isAlpha(c)) return identifier(parser);
	if (isDigit(c)) return number(parser);

	switch (c) {
	case '(': return makeToken(parser, TOKEN_LEFT_PAREN);
	case ')': return makeToken(parser, TOKEN_RIGHT_PAREN);
	case '[': return makeToken(parser, TOKEN_LEFT_BRACKET);
	case ']': return makeToken(parser, TOKEN_RIGHT_BRACKET);
	case '{': return makeToken(parser, TOKEN_LEFT_BRACE);
	case '}': return makeToken(parser, TOKEN_RIGHT_BRACE);
	case ';': return makeToken(parser, TOKEN_SEMICOLON);
	case '@': return makeToken(parser, TOKEN_AT);
	case '^': return makeToken(parser, TOKEN_CARET);
	case ':': return makeToken(parser, TOKEN_COLON);
	case ',': return makeToken(parser, TOKEN_COMMA);
	case '.': return makeToken(parser, TOKEN_DOT);
	case '-': return makeToken(parser, TOKEN_MINUS);
	case '+': return makeToken(parser, TOKEN_PLUS);
	case '/': return makeToken(parser, TOKEN_SLASH);
	case '*': return makeToken(parser, TOKEN_STAR);
	case '%': return makeToken(parser, TOKEN_PERCENT);
	case '!': return makeToken(parser, match(parser, '=') ? TOKEN_BANG_EQUAL : TOKEN_BANG);
	case '=': return makeToken(parser, match(parser, '=') ? TOKEN_EQUAL_EQUAL : TOKEN_EQUAL);
	case '<': return makeToken(parser, match(parser, '=') ? TOKEN_LESS_EQUAL : TOKEN_LESS);
	case '>': return makeToken(parser, match(parser, '=') ? TOKEN_GREATER_EQUAL : TOKEN_GREATER);
	case '"': return string(parser);
	case '\n': return newline(parser);
	}

	return errorToken(parser, "Unexpected character.");
}

// Assembly:
pushq %rbp
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rsi), %r9
movl 0xc(%rsi), %eax
movslq %eax, %rcx
movzbl (%r9,%rcx), %edx
cmpl $0x1f, %edx
jg 0x8a5b
cmpl $0x9, %edx
je 0x8a65
cmpl $0xd, %edx
je 0x8a65
jmp 0x8a93
cmpl $0x2f, %edx
je 0x8a6f
cmpl $0x20, %edx
jne 0x8a93
incl 0x1c(%rsi)
incl %eax
movl %eax, 0xc(%rsi)
jmp 0x8a42
cmpb $0x2f, 0x1(%r9,%rcx)
jne 0x8a93
addq %r9, %rcx
movzbl (%rcx), %edx
testl %edx, %edx
je 0x8a42
cmpl $0xa, %edx
je 0x8a42
incl 0x1c(%rsi)
incl %eax
movl %eax, 0xc(%rsi)
incq %rcx
jmp 0x8a7a
movslq 0xc(%rsi), %rdi
movl %edi, 0x8(%rsi)
movl 0x14(%rsi), %edx
movl 0x1c(%rsi), %ecx
movl %edx, 0x10(%rsi)
movl %ecx, 0x18(%rsi)
cmpb $0x0, (%r9,%rdi)
je 0x8b8e
movq %rdi, %rax
addq %r9, %rax
leal 0x1(%rcx), %r8d
movl %r8d, 0x1c(%rsi)
leal 0x1(%rdi), %r8d
movl %r8d, 0xc(%rsi)
movzbl (%rax), %r10d
cmpl $0x5f, %r10d
je 0x8bb2
movl %r10d, %r11d
andb $-0x21, %r11b
addb $-0x41, %r11b
cmpb $0x19, %r11b
jbe 0x8bb2
leal -0x30(%r10), %r11d
cmpb $0x9, %r11b
ja 0x8c93
movslq %r8d, %r10
movb (%r9,%r10), %r11b
leal -0x30(%r11), %ebp
cmpb $0x9, %bpl
ja 0x8b31
leal 0x2(%rcx), %r8d
movl %r8d, 0x1c(%rsi)
leal 0x1(%r10), %r11d
movl %r11d, 0xc(%rsi)
movb 0x1(%r9,%r10), %r11b
incq %r10
leal -0x30(%r11), %ebp
incl %r8d
cmpb $0xa, %bpl
jb 0x8b0d
movl %r10d, %r8d
cmpb $0x2e, %r11b
jne 0x8b77
movb 0x1(%r9,%r10), %r10b
addb $-0x30, %r10b
cmpb $0x9, %r10b
ja 0x8b77
movl 0x1c(%rsi), %r10d
movslq %r8d, %r8
addq %r8, %r9
incq %r9
incl %r8d
incl %r10d
movl %r10d, 0x1c(%rsi)
movl %r8d, 0xc(%rsi)
movb (%r9), %r11b
addb $-0x30, %r11b
incq %r9
incl %r8d
incl %r10d
cmpb $0xa, %r11b
jb 0x8b59
movl $0x1a, (%rbx)
movq %rax, 0x8(%rbx)
movl 0xc(%rsi), %eax
subl %edi, %eax
movb %al, 0x10(%rbx)
jmp 0x90b1
cmpb $0x1, 0x60(%rsi)
jne 0x8c75
movl $0x2f, (%rbx)
leaq 0x3141(%rip), %rax      # 0xbce6
movq %rax, 0x8(%rbx)
movb $0x5, 0x10(%rbx)
jmp 0x90b1
movslq %r8d, %rdx
movb (%r9,%rdx), %r10b
leal -0x30(%r10), %r11d
cmpb $0xa, %r11b
jb 0x8bd7
cmpb $0x5f, %r10b
je 0x8bd7
andb $-0x21, %r10b
addb $-0x41, %r10b
cmpb $0x19, %r10b
ja 0x8c10
addq %r9, %rdx
incq %rdx
addl $0x2, %ecx
movl %ecx, 0x1c(%rsi)
incl %r8d
movl %r8d, 0xc(%rsi)
movb (%rdx), %r9b
leal -0x30(%r9), %r10d
incq %rdx
incl %ecx
cmpb $0xa, %r10b
jb 0x8be0
cmpb $0x5f, %r9b
je 0x8be0
andb $-0x21, %r9b
addb $-0x41, %r9b
cmpb $0x1a, %r9b
jb 0x8be0
movzbl (%rax), %ecx
movl $0x19, %edx
addl $-0x61, %ecx
cmpl $0x16, %ecx
ja 0x9106
leaq 0x3015(%rip), %r9       # 0xbc40
movslq (%r9,%rcx,4), %rcx
addq %r9, %rcx
jmpq *%rcx
subl %edi, %r8d
cmpl $0x2, %r8d
jl 0x9106
movzbl 0x1(%rax), %ecx
cmpl $0x73, %ecx
je 0x90e4
cmpl $0x6e, %ecx
jne 0x9106
cmpl $0x3, %r8d
jne 0x8ee3
movl $0x1c, %edx
cmpb $0x64, 0x2(%rax)
jne 0x8ee3
jmp 0x9106
movb $0x1, 0x60(%rsi)
movl $0x30, (%rbx)
leaq 0x3056(%rip), %rax      # 0xbcdc
movq %rax, 0x8(%rbx)
movb $0x9, 0x10(%rbx)
jmp 0x90b1
cmpl $0x5a, %r10d
jg 0x8ce1
leal -0x21(%r10), %r11d
cmpl $0x1f, %r11d
ja 0x8f64
leaq 0x2f12(%rip), %r10      # 0xbbc0
movslq (%r10,%r11,4), %r11
addq %r10, %r11
jmpq *%r11
movslq %r8d, %rax
movl $0xd, %edx
cmpb $0x3d, (%r9,%rax)
jne 0x9106
addl $0x2, %ecx
movl %ecx, 0x1c(%rsi)
leal 0x2(%rdi), %eax
movl %eax, 0xc(%rsi)
movl $0xc, %edx
jmp 0x9106
cmpl $0x5d, %r10d
jle 0x8f49
cmpl $0x5e, %r10d
je 0x909b
cmpl $0x7b, %r10d
je 0x90a3
cmpl $0x7d, %r10d
jne 0x8f7c
movl $0x8, (%rbx)
jmp 0x90a9
subl %edi, %r8d
cmpl $0x2, %r8d
jl 0x9106
cmpb $0x72, 0x1(%rax)
jne 0x9106
cmpl $0x4, %r8d
jne 0x9106
cmpw $0x6575, 0x2(%rax)      # imm = 0x6575
jne 0x9106
movl $0x2c, %edx
jmp 0x9106
subl %edi, %r8d
cmpl $0x2, %r8d
jl 0x9106
movzbl 0x1(%rax), %ecx
cmpl $0x6f, %ecx
je 0x9118
cmpl $0x6e, %ecx
je 0x90fa
cmpl $0x61, %ecx
jne 0x9106
cmpl $0x5, %r8d
jne 0x9106
movzwl 0x2(%rax), %ecx
xorl $0x736c, %ecx           # imm = 0x736C
movzbl 0x4(%rax), %eax
xorl $0x65, %eax
orw %cx, %ax
jne 0x9106
movl $0x22, %edx
jmp 0x9106
subl %edi, %r8d
cmpl $0x5, %r8d
jne 0x9106
cmpl $0x656c6968, 0x1(%rax)  # imm = 0x656C6968
jne 0x9106
movl $0x2e, %edx
jmp 0x9106
subl %edi, %r8d
cmpl $0x2, %r8d
jl 0x9106
movzbl 0x1(%rax), %ecx
cmpl $0x6d, %ecx
je 0x90b9
cmpl $0x66, %ecx
jne 0x9106
cmpl $0x2, %r8d
movl $0x26, %eax
jmp 0x9103
subl %edi, %r8d
cmpl $0x3, %r8d
jne 0x9106
cmpw $0x7261, 0x1(%rax)      # imm = 0x7261
jne 0x9106
movl $0x2d, %edx
jmp 0x9106
subl %edi, %r8d
cmpl $0x2, %r8d
jl 0x9106
movzbl 0x1(%rax), %ecx
cmpl $0x6c, %ecx
je 0x90cf
cmpl $0x63, %ecx
jne 0x9106
cmpl $0x4, %r8d
jne 0x9106
cmpw $0x6f68, 0x2(%rax)      # imm = 0x6F68
jne 0x9106
movl $0x20, %edx
jmp 0x9106
subl %edi, %r8d
cmpl $0x5, %r8d
jne 0x9106
cmpl $0x7373616c, 0x1(%rax)  # imm = 0x7373616C
jne 0x9106
movl $0x1f, %edx
jmp 0x9106
subl %edi, %r8d
cmpl $0x5, %r8d
jne 0x9106
cmpl $0x6b616572, 0x1(%rax)  # imm = 0x6B616572
jne 0x9106
movl $0x1e, %edx
jmp 0x9106
subl %edi, %r8d
cmpl $0x3, %r8d
jne 0x9106
cmpw $0x6c69, 0x1(%rax)      # imm = 0x6C69
jne 0x9106
movl $0x28, %edx
jmp 0x9106
subl %edi, %r8d
cmpl $0x2, %r8d
jne 0x8ee3
movl $0x29, %edx
cmpb $0x72, 0x1(%rax)
je 0x9106
movl $0x19, %edx
jmp 0x9106
subl %edi, %r8d
cmpl $0x6, %r8d
jne 0x9106
movl $0x69746174, %ecx       # imm = 0x69746174
xorl 0x1(%rax), %ecx
movzbl 0x5(%rax), %eax
xorl $0x63, %eax
orl %ecx, %eax
jne 0x9106
movl $0x2b, %edx
jmp 0x9106
subl %edi, %r8d
cmpl $0x6, %r8d
jne 0x9106
movl $0x72757465, %ecx       # imm = 0x72757465
xorl 0x1(%rax), %ecx
movzbl 0x5(%rax), %eax
xorl $0x6e, %eax
orl %ecx, %eax
jne 0x9106
movl $0x2a, %edx
jmp 0x9106
cmpl $0x5b, %r10d
je 0x9093
cmpl $0x5d, %r10d
jne 0x8f7c
movl $0x9, (%rbx)
jmp 0x90a9
cmpl $0xa, %r10d
jne 0x8f7c
leal 0x1(%rdx), %eax
movl %eax, 0x14(%rsi)
movl $0x0, 0x1c(%rsi)
jmp 0x8c79
movl $0x31, (%rbx)
leaq 0x2d13(%rip), %rax      # 0xbc9c
movq %rax, 0x8(%rbx)
movb $0x15, 0x10(%rbx)
jmp 0x90b1
movslq %r8d, %rax
movl $0x11, %edx
cmpb $0x3d, (%r9,%rax)
jne 0x9106
addl $0x2, %ecx
movl %ecx, 0x1c(%rsi)
leal 0x2(%rdi), %eax
movl %eax, 0xc(%rsi)
movl $0x10, %edx
jmp 0x9106
movl $0x2, (%rbx)
jmp 0x90a9
movl $0x17, (%rbx)
jmp 0x90a9
movl $0xa, (%rbx)
jmp 0x90a9
movl $0x16, (%rbx)
jmp 0x90a9
movl $0xb, (%rbx)
jmp 0x90a9
movl $0x14, (%rbx)
jmp 0x90a9
movl $0x15, (%rbx)
jmp 0x90a9
movq %rbx, %rdi
callq 0x91ae
jmp 0x910e
movl $0x4, (%rbx)
jmp 0x90a9
movl $0x7, (%rbx)
jmp 0x90a9
movl $0x3, (%rbx)
jmp 0x90a9
movl $0x0, (%rbx)
jmp 0x90a9
movslq %r8d, %rax
movl $0x13, %edx
cmpb $0x3d, (%r9,%rax)
jne 0x9106
addl $0x2, %ecx
movl %ecx, 0x1c(%rsi)
leal 0x2(%rdi), %eax
movl %eax, 0xc(%rsi)
movl $0x12, %edx
jmp 0x9106
movl $0x18, (%rbx)
jmp 0x90a9
movslq %r8d, %rax
movl $0xf, %edx
cmpb $0x3d, (%r9,%rax)
jne 0x9106
addl $0x2, %ecx
movl %ecx, 0x1c(%rsi)
leal 0x2(%rdi), %eax
movl %eax, 0xc(%rsi)
movl $0xe, %edx
jmp 0x9106
movl $0x6, (%rbx)
jmp 0x90a9
movl $0x1, (%rbx)
jmp 0x90a9
movl $0x5, (%rbx)
movq %rax, 0x8(%rbx)
movb $0x1, 0x10(%rbx)
movl %edx, 0x14(%rbx)
movl %ecx, 0x18(%rbx)
jmp 0x910e
cmpl $0x6, %r8d
jne 0x9106
cmpl $0x74726f70, 0x2(%rax)  # imm = 0x74726F70
jne 0x9106
movl $0x27, %edx
jmp 0x9106
cmpl $0x4, %r8d
jne 0x9106
cmpw $0x6573, 0x2(%rax)      # imm = 0x6573
jne 0x9106
movl $0x21, %edx
jmp 0x9106
cmpl $0x6, %r8d
jne 0x9106
cmpl $0x74726573, 0x2(%rax)  # imm = 0x74726573
jne 0x9106
movl $0x1d, %edx
jmp 0x9106
cmpl $0x2, %r8d
movl $0x23, %eax
cmovel %eax, %edx
movq %rbx, %rdi
callq 0x915e
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %rbp
retq
cmpl $0x2, %r8d
je 0x9106
cmpb $0x72, 0x2(%rax)
jne 0x9106
cmpl $0x4, %r8d
jl 0x9153
cmpb $0x65, 0x3(%rax)
jne 0x9106
cmpl $0x7, %r8d
jne 0x9106
movzwl 0x4(%rax), %ecx
xorl $0x6769, %ecx           # imm = 0x6769
movzbl 0x6(%rax), %eax
xorl $0x6e, %eax
orw %cx, %ax
jne 0x9106
movl $0x25, %edx
jmp 0x9106
cmpl $0x3, %r8d
movl $0x24, %eax
jmp 0x9103