// File: /workspace/github_c_makefile_star2_O3/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 %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq (%rsi), %r9
movl 0xc(%rsi), %r8d
leaq 0x1(%r9), %rax
movl %r8d, %ecx
movslq %ecx, %rdx
movzbl (%r9,%rdx), %edi
cmpl $0x1f, %edi
jg 0x6857
cmpl $0x9, %edi
je 0x6861
cmpl $0xd, %edi
je 0x6861
jmp 0x68a2
cmpl $0x2f, %edi
je 0x686e
cmpl $0x20, %edi
jne 0x68a2
incl 0x1c(%rsi)
incl %ecx
movl %ecx, 0xc(%rsi)
movl %ecx, %r8d
jmp 0x683e
cmpb $0x2f, 0x1(%r9,%rdx)
jne 0x68a2
leaq (%rax,%rdx), %rdi
movb $0x2f, %r10b
movzbl %r10b, %r10d
testb %r10b, %r10b
je 0x683e
cmpl $0xa, %r10d
je 0x683e
incl 0x1c(%rsi)
incq %rdx
incl %ecx
movl %ecx, 0xc(%rsi)
movb (%rdi), %r10b
incq %rdi
movl %edx, %r8d
jmp 0x687d
movl %r8d, 0x8(%rsi)
movl 0x14(%rsi), %ecx
movl 0x1c(%rsi), %eax
movl %ecx, 0x10(%rsi)
movl %eax, 0x18(%rsi)
movslq %r8d, %rdi
cmpb $0x0, (%r9,%rdi)
je 0x69a1
leaq (%r9,%rdi), %rdx
leal 0x1(%rax), %r10d
movl %r10d, 0x1c(%rsi)
incl %edi
movl %edi, 0xc(%rsi)
movzbl (%rdx), %r11d
cmpl $0x5f, %r11d
je 0x69be
movl %r11d, %ebp
andb $-0x21, %bpl
addb $-0x41, %bpl
cmpb $0x19, %bpl
jbe 0x69be
leal -0x30(%r11), %ebp
cmpb $0x9, %bpl
ja 0x6aaa
movslq %edi, %r11
movb (%r9,%r11), %r14b
leal -0x30(%r14), %ebp
cmpb $0x9, %bpl
ja 0x6952
leaq (%r9,%r11), %rdi
incq %rdi
movl %r8d, %r15d
xorl %r10d, %r10d
leal (%rax,%r10), %ebp
addl $0x2, %ebp
movl %ebp, 0x1c(%rsi)
leal 0x2(%r15,%r10), %ebp
movl %ebp, 0xc(%rsi)
movb (%rdi,%r10), %r14b
leal -0x30(%r14), %ebp
incq %r10
cmpb $0xa, %bpl
jb 0x6920
addq %r10, %r11
leal (%r8,%r10), %edi
incl %edi
addl %eax, %r10d
incl %r10d
cmpb $0x2e, %r14b
jne 0x698f
movb 0x1(%r9,%r11), %r11b
addb $-0x30, %r11b
cmpb $0x9, %r11b
ja 0x698f
movslq %edi, %r11
addq %r11, %r9
incq %r9
incl %r10d
movl %r10d, 0x1c(%rsi)
incl %edi
movl %edi, 0xc(%rsi)
movb (%r9), %r11b
addb $-0x30, %r11b
incq %r9
incl %r10d
cmpb $0xa, %r11b
jb 0x6973
movl $0x1a, (%rbx)
movq %rdx, 0x8(%rbx)
subl %r8d, %edi
jmp 0x6f40
cmpb $0x0, 0x60(%rsi)
je 0x6a8a
movb $0x5, %dl
leaq 0x3fe2(%rip), %rsi      # 0xa996
movl $0x2f, %edi
jmp 0x6a9c
movslq %edi, %r10
movb (%r9,%r10), %r14b
leal -0x30(%r14), %ebp
cmpb $0xa, %bpl
jb 0x69e3
cmpb $0x5f, %r14b
je 0x69e3
andb $-0x21, %r14b
addb $-0x41, %r14b
cmpb $0x19, %r14b
ja 0x6a20
addq %r10, %r9
incq %r9
leal 0x2(%rax), %r10d
movl %r10d, 0x1c(%rsi)
incl %edi
movl %edi, 0xc(%rsi)
movb (%r9), %r11b
leal -0x30(%r11), %ebp
incq %r9
incl %r10d
cmpb $0xa, %bpl
jb 0x69ed
cmpb $0x5f, %r11b
je 0x69ed
andb $-0x21, %r11b
addb $-0x41, %r11b
cmpb $0x1a, %r11b
jb 0x69ed
movb (%rdx), %r11b
subl %r8d, %edi
movzbl %r11b, %r8d
movl $0x19, %esi
addl $-0x61, %r8d
cmpl $0x16, %r8d
ja 0x6f3a
leaq 0x3eaf(%rip), %r9       # 0xa8f0
movslq (%r9,%r8,4), %r8
addq %r9, %r8
jmpq *%r8
cmpl $0x2, %edi
jl 0x6f3a
movzbl 0x1(%rdx), %r8d
cmpl $0x73, %r8d
je 0x6f09
cmpl $0x6e, %r8d
jne 0x6f3a
cmpl $0x3, %edi
jne 0x6f3a
cmpb $0x64, 0x2(%rdx)
jne 0x6f3a
movl $0x1c, %esi
jmp 0x6cc9
movb $0x1, 0x60(%rsi)
movb $0x9, %dl
leaq 0x3ef5(%rip), %rsi      # 0xa98c
movl $0x30, %edi
movl %edi, (%rbx)
movq %rsi, 0x8(%rbx)
movb %dl, 0x10(%rbx)
jmp 0x6f44
cmpl $0x5a, %r11d
jg 0x6afa
leal -0x21(%r11), %r10d
cmpl $0x1f, %r10d
ja 0x6d6b
leaq 0x3dab(%rip), %r11      # 0xa870
movslq (%r11,%r10,4), %r10
addq %r11, %r10
jmpq *%r10
movslq %edi, %rcx
movl $0xd, %edx
cmpb $0x3d, (%r9,%rcx)
jne 0x6eab
addl $0x2, %eax
movl %eax, 0x1c(%rsi)
addl $0x2, %r8d
movl %r8d, 0xc(%rsi)
movl $0xc, %edx
jmp 0x6eab
cmpl $0x5d, %r11d
jle 0x6d50
cmpl $0x5e, %r11d
je 0x6ec0
cmpl $0x7b, %r11d
je 0x6ec8
cmpl $0x7d, %r11d
jne 0x6d98
movl $0x8, (%rbx)
jmp 0x6ece
cmpl $0x2, %edi
jl 0x6f3a
cmpb $0x72, 0x1(%rdx)
jne 0x6f3a
cmpl $0x4, %edi
jne 0x6f3a
cmpw $0x6575, 0x2(%rdx)      # imm = 0x6575
jne 0x6f3a
movl $0x2c, %esi
jmp 0x6f02
cmpl $0x2, %edi
jl 0x6f3a
movzbl 0x1(%rdx), %r8d
cmpl $0x6f, %r8d
je 0x6f30
cmpl $0x6e, %r8d
je 0x6f21
cmpl $0x61, %r8d
jne 0x6f3a
cmpl $0x5, %edi
jne 0x6f3a
movzwl 0x2(%rdx), %r8d
xorl $0x736c, %r8d           # imm = 0x736C
movzbl 0x4(%rdx), %r9d
xorl $0x65, %r9d
orw %r8w, %r9w
jne 0x6f3a
movl $0x22, %esi
jmp 0x6ca5
cmpl $0x5, %edi
jne 0x6f3a
cmpl $0x656c6968, 0x1(%rdx)  # imm = 0x656C6968
jne 0x6f3a
movl $0x2e, %esi
jmp 0x6ca5
cmpl $0x2, %edi
jl 0x6f3a
movzbl 0x1(%rdx), %r8d
cmpl $0x6d, %r8d
je 0x6ed8
cmpl $0x66, %r8d
jne 0x6f3a
cmpl $0x2, %edi
movl $0x26, %r8d
jmp 0x6f2a
cmpl $0x3, %edi
jne 0x6f3a
cmpw $0x7261, 0x1(%rdx)      # imm = 0x7261
jne 0x6f3a
movl $0x2d, %esi
jmp 0x6cc9
cmpl $0x2, %edi
jl 0x6f3a
movzbl 0x1(%rdx), %r8d
cmpl $0x6c, %r8d
je 0x6ef0
cmpl $0x63, %r8d
jne 0x6f3a
cmpl $0x4, %edi
jne 0x6f3a
cmpw $0x6f68, 0x2(%rdx)      # imm = 0x6F68
jne 0x6f3a
movl $0x20, %esi
jmp 0x6f02
cmpl $0x5, %edi
jne 0x6f3a
cmpl $0x7373616c, 0x1(%rdx)  # imm = 0x7373616C
jne 0x6f3a
movl $0x1f, %esi
jmp 0x6ca5
cmpl $0x5, %edi
jne 0x6f3a
cmpl $0x6b616572, 0x1(%rdx)  # imm = 0x6B616572
jne 0x6f3a
movl $0x1e, %esi
movl $0x5, %edi
jmp 0x6f3a
cmpl $0x3, %edi
jne 0x6f3a
cmpw $0x6c69, 0x1(%rdx)      # imm = 0x6C69
jne 0x6f3a
movl $0x28, %esi
movl $0x3, %edi
jmp 0x6f3a
cmpl $0x2, %edi
jne 0x6f3a
cmpb $0x72, 0x1(%rdx)
jne 0x6f3a
movl $0x29, %esi
jmp 0x6f35
cmpl $0x6, %edi
jne 0x6f3a
movl $0x69746174, %r8d       # imm = 0x69746174
xorl 0x1(%rdx), %r8d
movzbl 0x5(%rdx), %r9d
xorl $0x63, %r9d
orl %r8d, %r9d
jne 0x6f3a
movl $0x2b, %esi
jmp 0x6d46
cmpl $0x6, %edi
jne 0x6f3a
movl $0x72757465, %r8d       # imm = 0x72757465
xorl 0x1(%rdx), %r8d
movzbl 0x5(%rdx), %r9d
xorl $0x6e, %r9d
orl %r8d, %r9d
jne 0x6f3a
movl $0x2a, %esi
movl $0x6, %edi
jmp 0x6f3a
cmpl $0x5b, %r11d
je 0x6eb8
cmpl $0x5d, %r11d
jne 0x6d98
movl $0x9, (%rbx)
jmp 0x6ece
cmpl $0xa, %r11d
jne 0x6d98
leal 0x1(%rcx), %edx
movl %edx, 0x14(%rsi)
movl $0x0, 0x1c(%rsi)
movl $0x30, (%rbx)
leaq 0x3c01(%rip), %rdx      # 0xa98c
movq %rdx, 0x8(%rbx)
movb $0x9, 0x10(%rbx)
jmp 0x6f44
movl $0x31, (%rbx)
leaq 0x3ba7(%rip), %rdx      # 0xa94c
movq %rdx, 0x8(%rbx)
movb $0x15, 0x10(%rbx)
jmp 0x6f44
movslq %edi, %rcx
movl $0x11, %edx
cmpb $0x3d, (%r9,%rcx)
jne 0x6eab
addl $0x2, %eax
movl %eax, 0x1c(%rsi)
addl $0x2, %r8d
movl %r8d, 0xc(%rsi)
movl $0x10, %edx
jmp 0x6eab
movl $0x2, (%rbx)
jmp 0x6ece
movl $0x17, (%rbx)
jmp 0x6ece
movl $0xa, (%rbx)
jmp 0x6ece
movl $0x16, (%rbx)
jmp 0x6ece
movl $0xb, (%rbx)
jmp 0x6ece
movl $0x14, (%rbx)
jmp 0x6ece
movl $0x15, (%rbx)
jmp 0x6ece
movq %rbx, %rdi
callq 0x6fec
jmp 0x6f4a
movl $0x4, (%rbx)
jmp 0x6ece
movl $0x7, (%rbx)
jmp 0x6ece
movl $0x3, (%rbx)
jmp 0x6ece
movl $0x0, (%rbx)
jmp 0x6ece
movslq %edi, %rcx
movl $0x13, %edx
cmpb $0x3d, (%r9,%rcx)
jne 0x6eab
addl $0x2, %eax
movl %eax, 0x1c(%rsi)
addl $0x2, %r8d
movl %r8d, 0xc(%rsi)
movl $0x12, %edx
jmp 0x6eab
movl $0x18, (%rbx)
jmp 0x6ece
movslq %edi, %rcx
movl $0xf, %edx
cmpb $0x3d, (%r9,%rcx)
jne 0x6eab
addl $0x2, %eax
movl %eax, 0x1c(%rsi)
addl $0x2, %r8d
movl %r8d, 0xc(%rsi)
movl $0xe, %edx
movq %rbx, %rdi
callq 0x6f9f
jmp 0x6f4a
movl $0x6, (%rbx)
jmp 0x6ece
movl $0x1, (%rbx)
jmp 0x6ece
movl $0x5, (%rbx)
movq %rdx, 0x8(%rbx)
movb $0x1, 0x10(%rbx)
jmp 0x6f44
cmpl $0x6, %edi
jne 0x6f3a
cmpl $0x74726f70, 0x2(%rdx)  # imm = 0x74726F70
jne 0x6f3a
movl $0x27, %esi
jmp 0x6d46
cmpl $0x4, %edi
jne 0x6f3a
cmpw $0x6573, 0x2(%rdx)      # imm = 0x6573
jne 0x6f3a
movl $0x21, %esi
movl $0x4, %edi
jmp 0x6f3a
cmpl $0x6, %edi
jne 0x6f3a
cmpl $0x74726573, 0x2(%rdx)  # imm = 0x74726573
jne 0x6f3a
movl $0x1d, %esi
jmp 0x6d46
cmpl $0x2, %edi
movl $0x23, %r8d
cmovel %r8d, %esi
jmp 0x6f3a
cmpl $0x2, %edi
jne 0x6f58
movl $0x2, %edi
movl %esi, (%rbx)
movq %rdx, 0x8(%rbx)
movb %dil, 0x10(%rbx)
movl %ecx, 0x14(%rbx)
movl %eax, 0x18(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
cmpb $0x72, 0x2(%rdx)
jne 0x6f3a
cmpl $0x4, %edi
jb 0x6f95
cmpb $0x65, 0x3(%rdx)
jne 0x6f3a
cmpl $0x7, %edi
jne 0x6f3a
movzwl 0x4(%rdx), %r8d
xorl $0x6769, %r8d           # imm = 0x6769
movzbl 0x6(%rdx), %r9d
xorl $0x6e, %r9d
orw %r8w, %r9w
jne 0x6f3a
movl $0x25, %esi
movl $0x7, %edi
jmp 0x6f3a
movl $0x24, %esi
jmp 0x6cc9