// File: /workspace/github_c_makefile_star2_O3/markdryan[P]subtilis/common/lexer.c
// Function: subtilis_lexer_get
void subtilis_lexer_get(subtilis_lexer_t *l, subtilis_token_t *t,
			subtilis_error_t *err)
{
	bool rem;

	do {
		if (l->next) {
			/*
			 * We transfer ownership of our buffer.
			 */

			subtilis_token_claim(t, l->next);
			subtilis_token_delete(l->next);
			l->next = NULL;
			rem = false;
		} else {
			prv_reinit_token(t);
			prv_skip_white(l, err);
			if ((err->type != SUBTILIS_ERROR_OK) ||
			    (l->index == l->buf_end))
				return;
			rem = prv_process_token(l, t, err);
			if (err->type != SUBTILIS_ERROR_OK)
				return;
		}
	} while (rem);
	subtilis_buffer_zero_terminate(&t->buf, err);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xc48, %rsp            # imm = 0xC48
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r15
leaq 0x8(%rsi), %r13
leaq 0x158(%rsi), %r14
leaq 0x10(%rsi), %rax
movq %rax, 0x30(%rsp)
movabsq $0x100002600, %rbp      # imm = 0x100002600
movq %r14, 0x10(%rsp)
movq %r13, 0x28(%rsp)
movq 0x350(%r15), %rsi
testq %rsi, %rsi
jne 0x139bd
movl (%r12), %eax
cmpl $0x6, %eax
je 0x12f43
cmpl $0x1, %eax
jne 0x12f50
movl $0x10, %edi
jmp 0x12f48
movl $0x8, %edi
addq %r12, %rdi
callq 0x2f56e
movl $0x0, (%r12)
movl $0x150, %edx            # imm = 0x150
movq %r13, %rdi
xorl %esi, %esi
callq 0x12140
movl $0x8, 0x8(%r12)
movq %r14, %rdi
callq 0x14d78
movq 0x360(%r15), %rax
movq 0x40(%r15), %r13
cmpq %rax, %r13
jae 0x12fce
movq 0x368(%r15), %rcx
negq %rax
incq %r13
movzbl -0x1(%rcx,%r13), %edx
cmpl $0xc, %edx
jg 0x12fb0
cmpl $0x9, %edx
je 0x12fba
cmpl $0xa, %edx
jne 0x12fce
incl 0x38(%r15)
jmp 0x12fba
cmpl $0xd, %edx
je 0x12fba
cmpl $0x20, %edx
jne 0x12fce
movq %r13, 0x40(%r15)
leaq (%rax,%r13), %rdx
incq %rdx
incq %r13
cmpq $0x1, %rdx
jne 0x12f95
movq %r15, %rdi
movq %rbx, %rsi
callq 0x139f9
cmpl $0x0, (%rbx)
jne 0x139e7
movq 0x40(%r15), %r13
movq 0x360(%r15), %rax
cmpq %rax, %r13
je 0x139e7
movq 0x368(%r15), %rcx
movzbl (%rcx,%r13), %ecx
cmpq $0x20, %rcx
ja 0x13012
btq %rcx, %rbp
jb 0x12f83
movq 0x368(%r15), %rax
movb (%rax,%r13), %r14b
movsbl %r14b, %edi
callq 0x13ad0
testb %al, %al
je 0x13052
movl $0x2, (%r12)
leaq 0x38(%rsp), %r14
movq %r14, %rdi
callq 0x143b4
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x13c66
jmp 0x13336
movq %r14, 0x8(%rsp)
movzbl %r14b, %r14d
cmpl $0x3e, %r14d
ja 0x1320e
movl %r14d, %eax
movabsq $0x5400680000000000, %rcx # imm = 0x5400680000000000
btq %rax, %rcx
jae 0x13112
movl $0x2, (%r12)
leaq 0x38(%rsp), %r13
movq %r13, %rdi
callq 0x143b4
movq %r15, %rdi
movq %r12, %rsi
movq %r13, %rdx
callq 0x13c66
movq %r15, %rdi
movq %rbx, %rsi
callq 0x139f9
cmpl $0x0, (%rbx)
jne 0x139e7
movq 0x40(%r15), %rax
cmpq 0x360(%r15), %rax
je 0x13336
movq 0x368(%r15), %rcx
movzbl (%rcx,%rax), %eax
leal -0x30(%rax), %ecx
cmpb $0x2d, 0x8(%rsp)
jne 0x131ef
cmpb $0x9, %cl
ja 0x131ef
cmpq $0x0, 0x350(%r15)
je 0x13297
movq %rbx, %rdi
movl $0xf, %esi
leaq 0x5ef51(%rip), %rdx     # 0x72054
movl $0x1ac, %ecx            # imm = 0x1AC
callq 0x145a4
jmp 0x13336
cmpq $0x22, %rax
jne 0x1320e
incq %r13
movq %r13, 0x40(%r15)
movl $0x3, (%r12)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x139f9
cmpl $0x0, (%rbx)
jne 0x139e7
movq 0x40(%r15), %rax
movq 0x360(%r15), %rcx
cmpq %rcx, %rax
je 0x134f8
jae 0x131c0
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x13c66
cmpl $0x0, (%rbx)
jne 0x139e7
movq 0x368(%r15), %rcx
movq 0x40(%r15), %rax
cmpb $0x22, -0x1(%rcx,%rax)
jne 0x131b4
movq %r15, %rdi
movq %rbx, %rsi
callq 0x139f9
cmpl $0x0, (%rbx)
jne 0x131c9
movq 0x40(%r15), %rax
movq 0x360(%r15), %rcx
cmpq %rcx, %rax
je 0x131c9
movq 0x368(%r15), %rdx
cmpb $0x22, (%rdx,%rax)
jne 0x131c9
incq %rax
movq %rax, 0x40(%r15)
jmp 0x131bb
movq 0x360(%r15), %rcx
cmpq %rcx, %rax
jb 0x13155
cmpq %rcx, %rax
je 0x1312b
movq 0x10(%rsp), %r14
movq %r14, %rdi
callq 0x14b57
leaq -0x1(%rax), %rsi
movl $0x1, %edx
movq %r14, %rdi
movq %rbx, %rcx
callq 0x14c71
jmp 0x13336
cmpb $0x2e, 0x8(%rsp)
jne 0x13269
cmpb $0x9, %cl
ja 0x13269
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x13cae
jmp 0x13336
movq 0x8(%rsp), %rax
addl $-0x30, %eax
cmpb $0x9, %al
ja 0x1335a
movl $0x4, (%r12)
leaq 0x38(%rsp), %r14
movq %r14, %rdi
callq 0x143b4
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x13c66
movq %r15, %rdi
movq %r12, %rsi
leaq 0xb66(%rip), %rdx       # 0x13db4
movq %rbx, %rcx
callq 0x13d2c
testb %al, %al
je 0x13336
movq %r15, %rdi
movq %r12, %rsi
jmp 0x13329
xorl %r13d, %r13d
cmpl $0x3c, %eax
jg 0x1339f
cmpl $0x2d, %eax
je 0x13032
cmpl $0x3c, %eax
jne 0x13339
cmpb $0x3c, 0x8(%rsp)
jne 0x13336
jmp 0x1349f
movq %rbx, %rdi
callq 0x12b56
movq %rax, 0x350(%r15)
cmpl $0x0, (%rbx)
jne 0x139e7
movq %rax, %r13
movl $0x4, (%rax)
leaq 0x38(%rsp), %r14
movq %r14, %rdi
callq 0x143b4
movq %r15, %rdi
movq %r13, %rsi
movq %r14, %rdx
callq 0x13c66
movq 0x350(%r15), %rsi
movq %r15, %rdi
leaq 0xad0(%rip), %rdx       # 0x13db4
movq %rbx, %rcx
callq 0x13d2c
testb %al, %al
je 0x13336
movq 0x350(%r15), %rdi
movq %rbx, %rsi
callq 0x12b1e
cmpl $0x0, (%rbx)
jne 0x139e7
movq %rax, %rdi
leaq 0x5edbb(%rip), %rsi     # 0x720cd
callq 0x12160
movq 0x350(%r15), %rsi
testl %eax, %eax
je 0x134af
movq %r15, %rdi
movl $0xa, %edx
movq %rbx, %rcx
callq 0x13ddd
xorl %r13d, %r13d
cmpl $0x0, (%rbx)
jne 0x139e7
testb %r13b, %r13b
movq 0x10(%rsp), %r14
movq 0x28(%rsp), %r13
jne 0x12f1e
jmp 0x139dc
cmpl $0x25, %r14d
je 0x133b3
cmpl $0x26, %r14d
jne 0x133ef
movl $0x4, (%r12)
incq %r13
movq %r13, 0x40(%r15)
movq %r15, %rdi
movq %r12, %rsi
leaq 0xbc1(%rip), %rdx       # 0x13f47
movq %rbx, %rcx
callq 0x13d2c
testb %al, %al
je 0x13336
movq %r15, %rdi
movq %r12, %rsi
movl $0x10, %edx
jmp 0x1332e
cmpl $0x3e, %eax
je 0x1348b
cmpl $0x3d, %eax
je 0x13032
jmp 0x13339
movl $0x4, (%r12)
incq %r13
movq %r13, 0x40(%r15)
movq %r15, %rdi
movq %r12, %rsi
leaq 0xb92(%rip), %rdx       # 0x13f61
movq %rbx, %rcx
callq 0x13d2c
testb %al, %al
je 0x13336
movq %r15, %rdi
movq %r12, %rsi
movl $0x2, %edx
jmp 0x1332e
movq 0x8(%rsp), %rcx
movl %ecx, %eax
andb $-0x21, %al
addb $-0x41, %al
cmpb $0x19, %al
ja 0x134dc
movl $0x7, (%r12)
leaq 0x38(%rsp), %r14
movq %r14, %rdi
callq 0x143b4
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x13c66
movq 0x10(%rsp), %r14
movq %r15, %rdi
movq %rbx, %rsi
callq 0x139f9
cmpl $0x0, (%rbx)
jne 0x13336
movq 0x40(%r15), %rax
movq 0x360(%r15), %rcx
movb $0x1, %r13b
cmpq %rcx, %rax
je 0x1366b
movq 0x368(%r15), %rdx
movb (%rdx,%rax), %dl
movq %rdx, 0x8(%rsp)
andb $-0x21, %dl
addb $-0x41, %dl
cmpb $0x19, %dl
ja 0x13585
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x13c66
cmpl $0x0, (%rbx)
je 0x1342a
jmp 0x13336
cmpl $0x3e, %r14d
je 0x13535
cmpl $0x3c, %r14d
jne 0x13336
movq %r15, %rdi
movq %r12, %rsi
callq 0x13c2c
jmp 0x13336
movq %r12, %rdi
callq 0x12be9
movq 0x350(%r15), %rdi
callq 0x12a38
movq $0x0, 0x350(%r15)
movl $0x80000000, 0x8(%r12)  # imm = 0x80000000
jmp 0x13336
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
cmpb $0x5f, %cl
jne 0x1357b
callq 0x13af6
jmp 0x13336
movq %r12, %rdi
callq 0x12ad0
movq 0x30(%r15), %r8
movl 0x38(%r15), %r9d
movq %rbx, %rdi
movl $0x6, %esi
movq %rax, %rdx
leaq 0x608fb(%rip), %rcx     # 0x73e15
pushq $0x21f                  # imm = 0x21F
leaq 0x5eb2e(%rip), %rax     # 0x72054
pushq %rax
callq 0x143da
addq $0x10, %rsp
jmp 0x13336
movq %r15, %rdi
movq %r12, %rsi
callq 0x13c2c
movq %r15, %rdi
movq %rbx, %rsi
callq 0x139f9
cmpl $0x0, (%rbx)
jne 0x139e7
movq 0x40(%r15), %rax
cmpq 0x360(%r15), %rax
je 0x13336
movq 0x368(%r15), %rcx
cmpb $0x3e, (%rcx,%rax)
jne 0x13336
jmp 0x1349f
callq 0x13b4d
jmp 0x13336
cmpq %rcx, %rax
jae 0x1366b
movzbl 0x8(%rsp), %eax
cmpl $0x24, %eax
jle 0x135ca
leal -0x25(%rax), %ecx
cmpl $0x2, %ecx
jb 0x135a9
cmpl $0x40, %eax
jne 0x13666
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x13c66
cmpl $0x0, (%rbx)
movq 0x10(%rsp), %r14
jne 0x13336
jmp 0x1366b
cmpl $0x23, %eax
je 0x13645
cmpl $0x24, %eax
jne 0x13666
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x13c66
cmpl $0x0, (%rbx)
jne 0x13336
movq %r15, %rdi
movq %rbx, %rsi
callq 0x139f9
cmpl $0x0, (%rbx)
jne 0x13336
movq 0x40(%r15), %rax
movb $0x24, %cl
movq %rcx, 0x8(%rsp)
cmpq 0x360(%r15), %rax
jae 0x13666
movq 0x368(%r15), %rcx
cmpb $0x23, (%rcx,%rax)
jne 0x13666
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x13c66
xorl %r13d, %r13d
cmpl $0x0, (%rbx)
movq 0x10(%rsp), %r14
jne 0x13339
jmp 0x1366b
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x13c66
xorl %r13d, %r13d
cmpl $0x0, (%rbx)
jne 0x13339
movb $0x23, %al
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %r14
movq %r12, %rdi
movq %rbx, %rsi
callq 0x12b1e
cmpl $0x0, (%rbx)
jne 0x13336
testb %r13b, %r13b
je 0x137d6
movl $0x4, %edx
movq %rax, %rdi
leaq 0x5f954(%rip), %rsi     # 0x72feb
movq %rax, 0x18(%rsp)
callq 0x12060
movq 0x18(%rsp), %rcx
movl %eax, 0x24(%rsp)
testl %eax, %eax
je 0x136d7
movzbl (%rcx), %eax
cmpl $0x52, %eax
je 0x13782
cmpl $0x46, %eax
movq 0x10(%rsp), %r14
movq 0x18(%rsp), %rax
jne 0x137d6
cmpb $0x4e, 0x1(%rax)
jne 0x137d6
movq %r14, %rdi
callq 0x14d35
movzbl 0x8(%rsp), %ecx
xorl %eax, %eax
addl $-0x24, %ecx
cmpl $0x1c, %ecx
ja 0x13708
movl $0x10000007, %edx       # imm = 0x10000007
btl %ecx, %edx
jae 0x13708
movq 0x8(%rsp), %rax
cmpl $0x0, 0x24(%rsp)
je 0x1393c
movl $0x6, (%r12)
movsbl %al, %edx
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rcx
callq 0x14072
cmpl $0x0, (%rbx)
jne 0x13336
cmpl $0x0, 0x24(%rsp)
je 0x13962
leaq 0x38(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq %rbx, %rdx
callq 0x2f457
cmpl $0x0, (%rbx)
jne 0x13336
movq 0x28(%rsp), %rdi
callq 0x2f56e
movl $0x148, %edx            # imm = 0x148
movq 0x30(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x121b0
movl $0x0, 0x8(%r12)
movb $0x1, 0xc(%r12)
jmp 0x13984
movq 0x18(%rsp), %rax
cmpb $0x45, 0x1(%rax)
movq 0x10(%rsp), %r14
jne 0x137d6
cmpb $0x43, 0x2(%rax)
jne 0x137d6
movq %rax, %rdi
leaq 0x5e936(%rip), %rsi     # 0x720d8
callq 0x12160
testl %eax, %eax
movq 0x18(%rsp), %rax
je 0x137d6
movq %r14, %rdi
movq %rax, %r14
callq 0x14d35
movsbl 0x8(%rsp), %ecx
movq %r15, %rdi
movq %r12, %rsi
movq %r14, %rdx
movq %rbx, %r8
callq 0x13f6d
jmp 0x13336
movq %rax, 0x38(%rsp)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
movl $0x10, %ecx
leaq 0x38(%rsp), %rdi
leaq 0x874(%rip), %r8        # 0x14067
callq 0x122a0
testq %rax, %rax
je 0x13891
movl 0x8(%rax), %ecx
cmpl $0x3, %ecx
jne 0x138da
movq 0x360(%r15), %rcx
movq 0x40(%r15), %rax
cmpq %rcx, %rax
jae 0x13845
movq 0x368(%r15), %rdx
negq %rcx
incq %rax
cmpb $0xa, -0x1(%rdx,%rax)
je 0x13845
movq %rax, 0x40(%r15)
leaq (%rcx,%rax), %rsi
incq %rsi
incq %rax
cmpq $0x1, %rsi
jne 0x1382a
movq %r15, %rdi
movq %rbx, %rsi
callq 0x139f9
cmpl $0x0, (%rbx)
sete %r13b
jne 0x13339
movq 0x40(%r15), %rax
movq 0x360(%r15), %rcx
cmpq %rcx, %rax
je 0x13339
movq 0x368(%r15), %rdx
cmpb $0xa, (%rdx,%rax)
jne 0x13818
incq %rax
movq %rax, 0x40(%r15)
incl 0x38(%r15)
movb $0x1, %r13b
jmp 0x13339
movq 0x10(%rsp), %rdi
callq 0x14d35
testb %r13b, %r13b
je 0x138f4
movl $0x6, (%r12)
movq 0x8(%rsp), %rdx
leal -0x27(%rdx), %eax
xorl %r13d, %r13d
cmpb $-0x3, %al
movzbl %dl, %eax
movl %eax, %ecx
cmovbl %r13d, %ecx
cmpb $0x40, %dl
cmovel %eax, %ecx
movsbl %cl, %edx
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rcx
callq 0x14072
jmp 0x13339
movl $0x1, (%r12)
movl %ecx, 0x8(%r12)
movb 0xc(%rax), %al
movb %al, 0xc(%r12)
jmp 0x13336
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movl $0x9, %ecx
callq 0x13ed0
cmpl $0x0, (%rbx)
jne 0x13336
movq %r12, %rdi
callq 0x12ad0
movq 0x30(%r15), %r8
movl 0x38(%r15), %r9d
movq %rbx, %rdi
movl $0xa, %esi
movq %rax, %rdx
leaq 0x604e3(%rip), %rcx     # 0x73e15
pushq $0x379                  # imm = 0x379
jmp 0x1351f
movq 0x30(%r15), %r8
movl 0x38(%r15), %r9d
movq %rbx, %rdi
movl $0xb, %esi
movq 0x18(%rsp), %rdx
leaq 0x604bd(%rip), %rcx     # 0x73e15
pushq $0x346                  # imm = 0x346
jmp 0x1351f
movq 0x28(%rsp), %rax
cmpl $0x4, (%rax)
jne 0x13991
movl $0x1, 0x8(%r12)
movb $0x1, 0xc(%r12)
movl $0x8, 0x10(%r12)
movl $0x1, (%r12)
jmp 0x13336
movq %r12, %rdi
callq 0x12ad0
movq 0x30(%r15), %r8
movl 0x38(%r15), %r9d
movq %rbx, %rdi
movl $0xb, %esi
movq %rax, %rdx
leaq 0x60462(%rip), %rcx     # 0x73e15
pushq $0x2cc                  # imm = 0x2CC
jmp 0x1351f
movq %r12, %rdi
callq 0x12be9
movq 0x350(%r15), %rdi
callq 0x12a38
movq $0x0, 0x350(%r15)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x14d01
addq $0xc48, %rsp            # imm = 0xC48
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq