// File: /workspace/github_c_makefile_star2_O2/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 $0x178, %rsp            # imm = 0x178
movq %rdx, %rbx
movq %rsi, %r12
movq %rdi, %r15
leaq 0x8(%rsi), %r13
leaq 0x158(%rsi), %r14
leaq 0x10(%rsi), %rax
movq %rax, 0x28(%rsp)
pushq $0x8
popq %rdi
movabsq $0x100002600, %rbp      # imm = 0x100002600
movq %r14, 0x10(%rsp)
movq %r13, 0x20(%rsp)
movq 0x350(%r15), %rsi
testq %rsi, %rsi
jne 0x13954
movl (%r12), %eax
cmpl $0x6, %eax
je 0x12e74
cmpl $0x1, %eax
jne 0x12e7c
pushq $0x10
popq %rdi
addq %r12, %rdi
callq 0x2dc7c
andl $0x0, (%r12)
movl $0x150, %edx            # imm = 0x150
movq %r13, %rdi
xorl %esi, %esi
callq 0x12140
movl $0x8, 0x8(%r12)
movq %r14, %rdi
callq 0x14a1a
movq 0x360(%r15), %rax
movq 0x40(%r15), %r13
cmpq %rax, %r13
jae 0x12ede
movq 0x368(%r15), %rcx
movzbl (%rcx,%r13), %ecx
cmpl $0x9, %ecx
je 0x12ed5
cmpl $0x20, %ecx
je 0x12ed5
cmpl $0xd, %ecx
je 0x12ed5
cmpl $0xa, %ecx
jne 0x12ede
incl 0x38(%r15)
incq %r13
movq %r13, 0x40(%r15)
jmp 0x12eac
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1398d
cmpl $0x0, (%rbx)
jne 0x1397b
movq 0x40(%r15), %r13
movq 0x360(%r15), %rax
cmpq %rax, %r13
je 0x1397b
movq 0x368(%r15), %rcx
movzbl (%rcx,%r13), %ecx
cmpq $0x20, %rcx
ja 0x12f1e
btq %rcx, %rbp
jb 0x12eac
movq 0x368(%r15), %rax
movb (%rax,%r13), %r14b
movsbl %r14b, %edi
callq 0x13a5f
testb %al, %al
je 0x12f4e
movl $0x2, (%r12)
movq %r15, %rdi
movq %r12, %rsi
callq 0x13a85
jmp 0x131f6
movq %r14, 0x8(%rsp)
movzbl %r14b, %r14d
cmpl $0x3e, %r14d
ja 0x130f8
movl %r14d, %eax
movabsq $0x5400680000000000, %rcx # imm = 0x5400680000000000
btq %rax, %rcx
jae 0x12ffc
movl $0x2, (%r12)
movq %r15, %rdi
movq %r12, %rsi
callq 0x13a85
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1398d
cmpl $0x0, (%rbx)
jne 0x1397b
movq 0x40(%r15), %rax
cmpq 0x360(%r15), %rax
je 0x131f6
movq 0x368(%r15), %rcx
movzbl (%rcx,%rax), %eax
leal -0x30(%rax), %ecx
cmpb $0x2d, 0x8(%rsp)
jne 0x130d9
cmpb $0x9, %cl
ja 0x130d9
cmpq $0x0, 0x350(%r15)
je 0x1316c
movq %rbx, %rdi
pushq $0xf
popq %rsi
leaq 0x59067(%rip), %rdx     # 0x6c054
movl $0x1ac, %ecx            # imm = 0x1AC
callq 0x1429e
jmp 0x131f6
cmpq $0x22, %rax
jne 0x130f8
incq %r13
movq %r13, 0x40(%r15)
movl $0x3, (%r12)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1398d
cmpl $0x0, (%rbx)
jne 0x1397b
movq 0x40(%r15), %rax
movq 0x360(%r15), %rcx
cmpq %rcx, %rax
je 0x1344f
movq 0x10(%rsp), %r14
cmpq %rcx, %rax
jae 0x130b4
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x13abf
cmpl $0x0, (%rbx)
jne 0x1397b
movq 0x368(%r15), %rcx
movq 0x40(%r15), %rax
cmpb $0x22, -0x1(%rcx,%rax)
jne 0x130ab
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1398d
cmpl $0x0, (%rbx)
movq 0x10(%rsp), %r14
jne 0x130ba
movq 0x40(%r15), %rax
movq 0x360(%r15), %rcx
cmpq %rcx, %rax
je 0x130ba
movq 0x368(%r15), %rdx
cmpb $0x22, (%rdx,%rax)
jne 0x130ba
incq %rax
movq %rax, 0x40(%r15)
jmp 0x13042
movq 0x360(%r15), %rcx
jmp 0x1303d
je 0x13015
movq %r14, %rdi
callq 0x14804
leaq -0x1(%rax), %rsi
movq %r14, %rdi
pushq $0x1
popq %rdx
movq %rbx, %rcx
callq 0x1491c
jmp 0x131f6
cmpb $0x2e, 0x8(%rsp)
jne 0x13143
cmpb $0x9, %cl
ja 0x13143
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x13b05
jmp 0x131f6
movq 0x8(%rsp), %rax
addl $-0x30, %eax
cmpb $0x9, %al
ja 0x1321d
movl $0x4, (%r12)
movq %r15, %rdi
movq %r12, %rsi
callq 0x13a85
movq %r15, %rdi
movq %r12, %rsi
leaq 0xab9(%rip), %rdx       # 0x13be1
movq %rbx, %rcx
callq 0x13b5b
testb %al, %al
je 0x131f6
movq %r15, %rdi
movq %r12, %rsi
jmp 0x131eb
cmpl $0x2d, %eax
je 0x12f3e
cmpl $0x3c, %eax
je 0x1331a
cmpl $0x3e, %eax
je 0x1332a
cmpl $0x3d, %eax
je 0x12f3e
jmp 0x131f6
movq %rbx, %rdi
callq 0x12aab
movq %rax, 0x350(%r15)
cmpl $0x0, (%rbx)
jne 0x1397b
movl $0x4, (%rax)
movq %r15, %rdi
movq %rax, %rsi
callq 0x13a85
movq 0x350(%r15), %rsi
movq %r15, %rdi
leaq 0xa3b(%rip), %rdx       # 0x13be1
movq %rbx, %rcx
callq 0x13b5b
testb %al, %al
je 0x131f6
movq 0x350(%r15), %rdi
movq %rbx, %rsi
callq 0x12a73
cmpl $0x0, (%rbx)
jne 0x1397b
movq %rax, %rdi
leaq 0x58ef9(%rip), %rsi     # 0x6c0cd
callq 0x12160
movq 0x350(%r15), %rsi
testl %eax, %eax
je 0x1333f
movq %r15, %rdi
pushq $0xa
popq %rdx
movq %rbx, %rcx
callq 0x13c07
xorl %r14d, %r14d
cmpl $0x0, (%rbx)
jne 0x1397b
testb %r14b, %r14b
movq 0x10(%rsp), %r14
movq 0x20(%rsp), %r13
pushq $0x8
popq %rdi
jne 0x12e53
jmp 0x13970
cmpl $0x25, %r14d
je 0x1325b
cmpl $0x26, %r14d
jne 0x13294
movl $0x4, (%r12)
incq %r13
movq %r13, 0x40(%r15)
movq %r15, %rdi
movq %r12, %rsi
leaq 0xb22(%rip), %rdx       # 0x13d67
movq %rbx, %rcx
callq 0x13b5b
testb %al, %al
je 0x131f6
movq %r15, %rdi
movq %r12, %rsi
pushq $0x10
jmp 0x131ed
movl $0x4, (%r12)
incq %r13
movq %r13, 0x40(%r15)
movq %r15, %rdi
movq %r12, %rsi
leaq 0xb0a(%rip), %rdx       # 0x13d81
movq %rbx, %rcx
callq 0x13b5b
testb %al, %al
je 0x131f6
movq %r15, %rdi
movq %r12, %rsi
pushq $0x2
jmp 0x131ed
movq 0x8(%rsp), %r13
movl %r13d, %eax
andb $-0x21, %al
addb $-0x41, %al
cmpb $0x19, %al
ja 0x13369
movl $0x7, (%r12)
movq %r15, %rdi
movq %r12, %rsi
callq 0x13a85
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1398d
cmpl $0x0, (%rbx)
jne 0x131f6
movq 0x40(%r15), %rax
movq 0x360(%r15), %rcx
movb $0x1, %r14b
cmpq %rcx, %rax
je 0x13575
movq 0x368(%r15), %rdx
movb (%rdx,%rax), %dl
movq %rdx, %r13
andb $-0x21, %dl
addb $-0x41, %dl
cmpb $0x19, %dl
ja 0x134af
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x13abf
cmpl $0x0, (%rbx)
je 0x132bb
jmp 0x131f6
cmpb $0x3c, 0x8(%rsp)
je 0x12f3e
jmp 0x131f6
cmpl $0x3e, %r14d
je 0x1339a
cmpl $0x3c, %r14d
je 0x12f3e
jmp 0x131f6
movq %r12, %rdi
callq 0x12b39
movq 0x350(%r15), %rdi
callq 0x12996
andq $0x0, 0x350(%r15)
movl $0x80000000, 0x8(%r12)  # imm = 0x80000000
jmp 0x131f6
cmpb $0x5f, %r13b
jne 0x133e0
movl $0x6, (%r12)
movq %r15, %rdi
movq %r12, %rsi
callq 0x13a85
xorl %r14d, %r14d
movq %r15, %rdi
movq %r12, %rsi
xorl %edx, %edx
movq %rbx, %rcx
callq 0x13d98
jmp 0x131f9
movq %r15, %rdi
movq %r12, %rsi
callq 0x13a85
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1398d
cmpl $0x0, (%rbx)
jne 0x1397b
movq 0x40(%r15), %rax
cmpq 0x360(%r15), %rax
je 0x131f6
movq 0x368(%r15), %rcx
cmpb $0x3e, (%rcx,%rax)
je 0x12f3e
jmp 0x131f6
movl $0x7, (%r12)
movq %r15, %rdi
movq %r12, %rsi
callq 0x13a85
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1398d
cmpl $0x0, (%rbx)
jne 0x1397b
movq 0x40(%r15), %rax
cmpq 0x360(%r15), %rax
je 0x13476
movq 0x368(%r15), %rcx
movzbl (%rcx,%rax), %eax
cmpq $0x20, %rax
ja 0x1342b
btq %rax, %rbp
jb 0x13476
movsbl %al, %edi
callq 0x13a5f
testb %al, %al
jne 0x13476
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x13abf
cmpl $0x0, (%rbx)
je 0x133f3
jmp 0x1397b
movq %r12, %rdi
callq 0x12a25
movq 0x30(%r15), %r8
movl 0x38(%r15), %r9d
movq %rbx, %rdi
pushq $0x6
popq %rsi
movq %rax, %rdx
leaq 0x5a956(%rip), %rcx     # 0x6ddc5
pushq $0x21f                  # imm = 0x21F
jmp 0x1349b
movq %r12, %rdi
callq 0x12a25
movq 0x30(%r15), %r8
movl 0x38(%r15), %r9d
movq %rbx, %rdi
pushq $0xa
popq %rsi
movq %rax, %rdx
leaq 0x5a92f(%rip), %rcx     # 0x6ddc5
pushq $0x394                  # imm = 0x394
leaq 0x58bb2(%rip), %rax     # 0x6c054
pushq %rax
callq 0x140cd
popq %rax
popq %rcx
jmp 0x131f6
cmpq %rcx, %rax
jae 0x13575
movzbl %r13b, %eax
leal -0x25(%rax), %ecx
cmpl $0x2, %ecx
jb 0x1353f
cmpl $0x23, %eax
je 0x13558
cmpl $0x40, %eax
je 0x1353f
cmpl $0x24, %eax
jne 0x13575
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x13abf
cmpl $0x0, (%rbx)
jne 0x131f6
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1398d
cmpl $0x0, (%rbx)
jne 0x131f6
movq 0x40(%r15), %rax
movb $0x24, %r13b
cmpq 0x360(%r15), %rax
jae 0x13575
movq 0x368(%r15), %rcx
cmpb $0x23, (%rcx,%rax)
jne 0x13575
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x13abf
xorl %r14d, %r14d
cmpl $0x0, (%rbx)
jne 0x131f9
jmp 0x13575
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x13abf
cmpl $0x0, (%rbx)
jne 0x131f6
jmp 0x13575
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x13abf
xorl %r14d, %r14d
cmpl $0x0, (%rbx)
jne 0x131f9
movb $0x23, %r13b
movq %r12, %rdi
movq %rbx, %rsi
callq 0x12a73
cmpl $0x0, (%rbx)
jne 0x131f6
movzbl %r13b, %ecx
movl %ecx, 0x18(%rsp)
testb %r14b, %r14b
je 0x13702
movq %rax, %rdi
leaq 0x59a47(%rip), %rsi     # 0x6cfeb
pushq $0x4
popq %rdx
movq %rax, 0x8(%rsp)
callq 0x12060
movq 0x8(%rsp), %rcx
movl %eax, 0x1c(%rsp)
testl %eax, %eax
je 0x135e2
movzbl (%rcx), %eax
cmpl $0x52, %eax
je 0x1368b
cmpl $0x46, %eax
movq 0x8(%rsp), %rax
jne 0x13702
cmpb $0x4e, 0x1(%rax)
jne 0x13702
movq 0x10(%rsp), %rdi
callq 0x149da
xorl %eax, %eax
movl 0x18(%rsp), %ecx
addl $-0x24, %ecx
cmpl $0x1c, %ecx
ja 0x13614
movl %ecx, %edx
movl $0x10000007, %ecx       # imm = 0x10000007
btl %edx, %ecx
jae 0x13614
movl %r13d, %eax
cmpl $0x0, 0x1c(%rsp)
je 0x13842
movl $0x6, (%r12)
movsbl %al, %edx
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rcx
callq 0x13d98
cmpl $0x0, (%rbx)
jne 0x131f6
cmpl $0x0, 0x1c(%rsp)
je 0x13866
leaq 0x30(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq %rbx, %rdx
callq 0x2db73
cmpl $0x0, (%rbx)
jne 0x131f6
movq 0x20(%rsp), %rdi
callq 0x2dc7c
movl $0x148, %edx            # imm = 0x148
movq 0x28(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x121b0
andl $0x0, 0x8(%r12)
movb $0x1, 0xc(%r12)
jmp 0x13888
movq 0x8(%rsp), %rax
cmpb $0x45, 0x1(%rax)
jne 0x13702
cmpb $0x43, 0x2(%rax)
jne 0x13702
movq %rax, %rdi
leaq 0x58a32(%rip), %rsi     # 0x6c0d8
callq 0x12160
testl %eax, %eax
movq 0x8(%rsp), %rax
je 0x13702
movq 0x10(%rsp), %rdi
callq 0x149da
movl 0x18(%rsp), %eax
addl $-0x24, %eax
cmpl $0x1c, %eax
ja 0x138bf
movl %eax, %ecx
movl $0x10000007, %eax       # imm = 0x10000007
btl %ecx, %eax
jae 0x138bf
movq 0x30(%r15), %r8
movl 0x38(%r15), %r9d
movq %rbx, %rdi
pushq $0x6a
popq %rsi
movq 0x8(%rsp), %rdx
leaq 0x5a6cd(%rip), %rcx     # 0x6ddc5
pushq $0x2e4                  # imm = 0x2E4
jmp 0x1349b
movq %rax, 0x30(%rsp)
movq (%r15), %rsi
movq 0x8(%r15), %rdx
leaq 0x30(%rsp), %rdi
pushq $0x10
popq %rcx
leaq 0x670(%rip), %r8        # 0x13d8d
callq 0x122a0
testq %rax, %rax
je 0x137a5
movl 0x8(%rax), %ecx
cmpl $0x3, %ecx
jne 0x137e4
movq 0x360(%r15), %rcx
movq 0x40(%r15), %rax
cmpq %rcx, %rax
jae 0x13759
movq 0x368(%r15), %rdx
cmpb $0xa, (%rdx,%rax)
je 0x13759
incq %rax
movq %rax, 0x40(%r15)
jmp 0x1373e
movq %r15, %rdi
movq %rbx, %rsi
callq 0x1398d
cmpl $0x0, (%rbx)
sete %r14b
jne 0x131f9
movq 0x40(%r15), %rax
movq 0x360(%r15), %rcx
cmpq %rcx, %rax
je 0x131f9
movq 0x368(%r15), %rdx
cmpb $0xa, (%rdx,%rax)
jne 0x1373e
incq %rax
movq %rax, 0x40(%r15)
incl 0x38(%r15)
movb $0x1, %r14b
jmp 0x131f9
movq 0x10(%rsp), %rdi
callq 0x149da
testb %r14b, %r14b
je 0x137fe
movl $0x6, (%r12)
leal -0x27(%r13), %eax
xorl %r14d, %r14d
cmpb $-0x3, %al
movl 0x18(%rsp), %ecx
movl %ecx, %eax
cmovbl %r14d, %eax
cmpb $0x40, %r13b
cmovel %ecx, %eax
movsbl %al, %edx
movq %r15, %rdi
movq %r12, %rsi
jmp 0x1338d
movl $0x1, (%r12)
movl %ecx, 0x8(%r12)
movb 0xc(%rax), %al
movb %al, 0xc(%r12)
jmp 0x131f6
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
pushq $0x9
popq %rcx
callq 0x13cf0
cmpl $0x0, (%rbx)
jne 0x131f6
movq %r12, %rdi
callq 0x12a25
movq 0x30(%r15), %r8
movl 0x38(%r15), %r9d
movq %rbx, %rdi
pushq $0xa
popq %rsi
movq %rax, %rdx
leaq 0x5a58d(%rip), %rcx     # 0x6ddc5
pushq $0x379                  # imm = 0x379
jmp 0x1349b
movq 0x30(%r15), %r8
movl 0x38(%r15), %r9d
movq %rbx, %rdi
pushq $0xb
popq %rsi
movq 0x8(%rsp), %rdx
leaq 0x5a569(%rip), %rcx     # 0x6ddc5
pushq $0x346                  # imm = 0x346
jmp 0x1349b
movq 0x20(%rsp), %rax
cmpl $0x4, (%rax)
jne 0x13895
movl $0x1, 0x8(%r12)
movb $0x1, 0xc(%r12)
movl $0x8, 0x10(%r12)
movl $0x1, (%r12)
jmp 0x131f6
movq %r12, %rdi
callq 0x12a25
movq 0x30(%r15), %r8
movl 0x38(%r15), %r9d
movq %rbx, %rdi
pushq $0xb
popq %rsi
movq %rax, %rdx
leaq 0x5a510(%rip), %rcx     # 0x6ddc5
pushq $0x2cc                  # imm = 0x2CC
jmp 0x1349b
movq 0x8(%rsp), %rdi
callq 0x120f0
cmpq $0x3, %rax
je 0x136de
movsbl %r13b, %edx
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rcx
callq 0x13e79
movzbl %al, %eax
addl $-0x24, %eax
cmpl $0x1c, %eax
ja 0x1391e
movl $0x10000007, %ecx       # imm = 0x10000007
btl %eax, %ecx
jae 0x1391e
movq 0x30(%r15), %r8
movl 0x38(%r15), %r9d
movq %rbx, %rdi
pushq $0x6a
popq %rsi
movq 0x8(%rsp), %rdx
leaq 0x5a4b1(%rip), %rcx     # 0x6ddc5
pushq $0x2eb                  # imm = 0x2EB
jmp 0x1349b
movq %r15, %rdi
movq %r12, %rsi
movq %rbx, %rdx
pushq $0x9
popq %rcx
callq 0x13cf0
movl $0x1, (%r12)
movl $0x2, 0x8(%r12)
movb $0x1, 0xc(%r12)
movl $0x8, 0x10(%r12)
jmp 0x131f6
movq %r12, %rdi
callq 0x12b39
movq 0x350(%r15), %rdi
callq 0x12996
andq $0x0, 0x350(%r15)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x149a8
addq $0x178, %rsp            # imm = 0x178
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq