// File: /workspace/github_c_makefile_star2_O1/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, %r14
leaq 0x10(%rsi), %rax
movq %rax, 0x30(%rsp)
leaq 0x8(%rsi), %rax
movq %rax, 0x20(%rsp)
leaq 0x158(%rsi), %r15
movabsq $0x100002600, %r13      # imm = 0x100002600
movq 0x350(%r14), %rsi
testq %rsi, %rsi
jne 0x13a0d
movl (%r12), %eax
movq 0x20(%rsp), %rdi
cmpl $0x6, %eax
je 0x12f3f
cmpl $0x1, %eax
jne 0x12f44
movq 0x30(%rsp), %rdi
callq 0x2f843
movl $0x0, (%r12)
movl $0x150, %edx            # imm = 0x150
movq 0x20(%rsp), %rdi
xorl %esi, %esi
callq 0x12140
movl $0x8, 0x8(%r12)
movq %r15, %rdi
callq 0x14dc2
movq 0x360(%r14), %rax
movq 0x40(%r14), %rcx
cmpq %rax, %rcx
jae 0x12fc3
movq 0x368(%r14), %rdx
negq %rax
incq %rcx
movzbl -0x1(%rdx,%rcx), %esi
cmpl $0xc, %esi
jg 0x12fa5
cmpl $0x9, %esi
je 0x12faf
cmpl $0xa, %esi
jne 0x12fc3
incl 0x38(%r14)
jmp 0x12faf
cmpl $0xd, %esi
je 0x12faf
cmpl $0x20, %esi
jne 0x12fc3
movq %rcx, 0x40(%r14)
leaq (%rax,%rcx), %rsi
incq %rsi
incq %rcx
cmpq $0x1, %rsi
jne 0x12f8b
movq %r14, %rdi
movq %rbx, %rsi
callq 0x13a49
movl (%rbx), %eax
testl %eax, %eax
jne 0x13a37
movq 0x40(%r14), %rcx
cmpq 0x360(%r14), %rcx
je 0x13000
movq 0x368(%r14), %rdx
movzbl (%rdx,%rcx), %ecx
cmpq $0x20, %rcx
ja 0x13000
btq %rcx, %r13
jb 0x12f6e
testl %eax, %eax
jne 0x13a37
movq 0x40(%r14), %rbp
cmpq 0x360(%r14), %rbp
je 0x13a37
movq %r12, 0x10(%rsp)
movq 0x368(%r14), %rax
movb (%rax,%rbp), %r12b
movsbl %r12b, %edi
callq 0x13b20
testb %al, %al
je 0x13062
movq 0x10(%rsp), %r12
movl $0x2, (%r12)
leaq 0x38(%rsp), %rbp
movq %rbp, %rdi
callq 0x14404
movq %r14, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x13cb6
xorl %ebp, %ebp
jmp 0x130de
movq %r15, (%rsp)
movzbl %r12b, %r15d
cmpl $0x3e, %r15d
movq %r12, %rdx
movq 0x10(%rsp), %r12
ja 0x13225
movl %r15d, %eax
movabsq $0x5400680000000000, %rcx # imm = 0x5400680000000000
btq %rax, %rcx
jae 0x130f5
movq %rdx, 0x18(%rsp)
movl $0x2, (%r12)
leaq 0x38(%rsp), %rbp
movq %rbp, %rdi
callq 0x14404
movq %r14, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x13cb6
movq %r14, %rdi
movq %rbx, %rsi
callq 0x13a49
cmpl $0x0, (%rbx)
jne 0x130d8
movq 0x40(%r14), %rax
cmpq 0x360(%r14), %rax
jne 0x131d0
xorl %ebp, %ebp
movq (%rsp), %r15
cmpl $0x0, (%rbx)
jne 0x13a37
testb %bpl, %bpl
jne 0x12f17
jmp 0x13a2c
cmpq $0x22, %rax
jne 0x13225
incq %rbp
movq %rbp, 0x40(%r14)
movl $0x3, (%r12)
movq (%rsp), %r15
movq %r14, %rdi
movq %rbx, %rsi
callq 0x13a49
cmpl $0x0, (%rbx)
jne 0x1305e
movq 0x40(%r14), %rax
movq 0x360(%r14), %rcx
cmpq %rcx, %rax
je 0x134d2
jae 0x131a6
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x13cb6
cmpl $0x0, (%rbx)
jne 0x1305e
movq 0x368(%r14), %rax
movq 0x40(%r14), %rcx
cmpb $0x22, -0x1(%rax,%rcx)
jne 0x13196
movq %r14, %rdi
movq %rbx, %rsi
callq 0x13a49
cmpl $0x0, (%rbx)
jne 0x131af
movq 0x40(%r14), %rax
cmpq 0x360(%r14), %rax
je 0x131af
movq 0x368(%r14), %rcx
cmpb $0x22, (%rcx,%rax)
jne 0x131af
incq %rax
movq %rax, 0x40(%r14)
movq 0x40(%r14), %rax
movq 0x360(%r14), %rcx
cmpq %rcx, %rax
jb 0x1313c
cmpq %rcx, %rax
je 0x13112
movq %r15, %rdi
callq 0x14ba1
leaq -0x1(%rax), %rsi
movl $0x1, %edx
movq %r15, %rdi
movq %rbx, %rcx
callq 0x14cbb
jmp 0x1305e
movq 0x368(%r14), %rcx
movzbl (%rcx,%rax), %eax
leal -0x30(%rax), %ecx
movq 0x18(%rsp), %rdx
cmpb $0x2d, %dl
jne 0x1327d
cmpb $0x9, %cl
ja 0x1327d
cmpq $0x0, 0x350(%r14)
movq (%rsp), %r15
movq %rbx, %rdi
je 0x13330
movl $0xf, %esi
leaq 0x5ee3e(%rip), %rdx     # 0x72054
movl $0x1ac, %ecx            # imm = 0x1AC
callq 0x145f4
jmp 0x1305e
leal -0x30(%rdx), %eax
cmpb $0x9, %al
ja 0x1329a
movl $0x4, (%r12)
leaq 0x38(%rsp), %r15
movq %r15, %rdi
callq 0x14404
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
callq 0x13cb6
movq %r14, %rdi
movq %r12, %rsi
leaq 0xba8(%rip), %rdx       # 0x13e04
movq %rbx, %rcx
callq 0x13d7c
testb %al, %al
movq (%rsp), %r15
je 0x1305e
movq %r14, %rdi
movq %r12, %rsi
movl $0xa, %edx
jmp 0x132e9
cmpb $0x2e, %dl
jne 0x132f6
cmpb $0x9, %cl
ja 0x132f6
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x13cfe
jmp 0x130d8
cmpl $0x25, %r15d
je 0x133c7
cmpl $0x26, %r15d
jne 0x1340b
movl $0x4, (%r12)
incq %rbp
movq %rbp, 0x40(%r14)
movq %r14, %rdi
movq %r12, %rsi
leaq 0xccd(%rip), %rdx       # 0x13f97
movq %rbx, %rcx
callq 0x13d7c
testb %al, %al
movq (%rsp), %r15
je 0x1305e
movq %r14, %rdi
movq %r12, %rsi
movl $0x10, %edx
movq %rbx, %rcx
callq 0x13e2d
jmp 0x1305e
xorl %ebp, %ebp
cmpl $0x3c, %eax
jg 0x134a3
cmpl $0x2d, %eax
movq (%rsp), %r15
je 0x13043
cmpl $0x3c, %eax
jne 0x130de
cmpb $0x3c, %dl
jne 0x1305e
movq %r14, %rdi
movq %r12, %rsi
callq 0x13c7c
jmp 0x1305e
callq 0x12b56
movq %rax, 0x350(%r14)
cmpl $0x0, (%rbx)
jne 0x1305e
movl $0x4, (%rax)
leaq 0x38(%rsp), %rdi
movq %rax, %rbp
callq 0x14404
movq %r14, %rdi
movq %rbp, %rsi
leaq 0x38(%rsp), %rdx
callq 0x13cb6
movq 0x350(%r14), %rsi
movq %r14, %rdi
leaq 0xa8b(%rip), %rdx       # 0x13e04
movq %rbx, %rcx
callq 0x13d7c
testb %al, %al
je 0x1305e
movq 0x350(%r14), %rdi
movq %rbx, %rsi
callq 0x12b1e
cmpl $0x0, (%rbx)
jne 0x1305e
movq %rax, %rdi
leaq 0x5ed22(%rip), %rsi     # 0x720cd
callq 0x12160
movq 0x350(%r14), %rsi
testl %eax, %eax
je 0x13795
movq %r14, %rdi
jmp 0x13276
movl $0x4, (%r12)
incq %rbp
movq %rbp, 0x40(%r14)
movq %r14, %rdi
movq %r12, %rsi
leaq 0xbce(%rip), %rdx       # 0x13fb1
movq %rbx, %rcx
callq 0x13d7c
testb %al, %al
je 0x130d8
movq %r14, %rdi
movq %r12, %rsi
movl $0x2, %edx
movq %rbx, %rcx
callq 0x13e2d
jmp 0x130d8
movl %edx, %eax
andb $-0x21, %al
addb $-0x41, %al
cmpb $0x19, %al
movq (%rsp), %r15
ja 0x134ba
movq %rdx, 0x18(%rsp)
movl $0x7, (%r12)
leaq 0x38(%rsp), %rbp
movq %rbp, %rdi
callq 0x14404
movq %r14, %rdi
movq %r12, %rsi
movq %rbp, %rdx
callq 0x13cb6
movq %r14, %rdi
movq %rbx, %rsi
callq 0x13a49
cmpl $0x0, (%rbx)
jne 0x1305e
movq 0x40(%r14), %rax
movq 0x360(%r14), %rcx
cmpq %rcx, %rax
je 0x1353c
movq 0x368(%r14), %rdx
movb (%rdx,%rax), %dl
movq %rdx, 0x18(%rsp)
andb $-0x21, %dl
addb $-0x41, %dl
cmpb $0x19, %dl
ja 0x1353c
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x13cb6
cmpl $0x0, (%rbx)
je 0x13445
jmp 0x1305e
cmpl $0x3e, %eax
je 0x1350f
cmpl $0x3d, %eax
movq (%rsp), %r15
je 0x13043
jmp 0x130de
movq %r14, %rdi
movq %r12, %rsi
cmpb $0x5f, %dl
jne 0x1352f
movq %rbx, %rdx
callq 0x13b46
jmp 0x1305e
movq %r12, %rdi
callq 0x12ad0
movq 0x30(%r14), %r8
movl 0x38(%r14), %r9d
movq %rbx, %rdi
movl $0x6, %esi
movq %rax, %rdx
leaq 0x60901(%rip), %rcx     # 0x73df5
pushq $0x21f                  # imm = 0x21F
leaq 0x5eb54(%rip), %rax     # 0x72054
pushq %rax
callq 0x1442a
addq $0x10, %rsp
jmp 0x1305e
cmpl $0x3e, %r15d
je 0x13582
cmpl $0x3c, %r15d
jne 0x130d8
movq %r14, %rdi
movq %r12, %rsi
callq 0x13c7c
jmp 0x130d8
movq %rbx, %rdx
callq 0x13b9d
jmp 0x1305e
cmpq %rcx, %rax
jae 0x13654
movzbl 0x18(%rsp), %eax
cmpl $0x24, %eax
jle 0x135cc
movb $0x1, %cl
movl %ecx, 0xc(%rsp)
leal -0x25(%rax), %ecx
cmpl $0x2, %ecx
jb 0x13566
cmpl $0x40, %eax
jne 0x1365a
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x13cb6
cmpl $0x0, (%rbx)
jne 0x1305e
jmp 0x1365a
movq %r14, %rdi
movq %r12, %rsi
callq 0x13c7c
movq %r14, %rdi
movq %rbx, %rsi
callq 0x13a49
cmpl $0x0, (%rbx)
movq (%rsp), %r15
jne 0x1305e
movq 0x40(%r14), %rax
cmpq 0x360(%r14), %rax
je 0x1305e
movq 0x368(%r14), %rcx
cmpb $0x3e, (%rcx,%rax)
jne 0x1305e
jmp 0x13320
cmpl $0x23, %eax
je 0x1362e
cmpl $0x24, %eax
jne 0x13654
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x13cb6
cmpl $0x0, (%rbx)
jne 0x1305e
movb $0x1, %al
movl %eax, 0xc(%rsp)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x13a49
cmpl $0x0, (%rbx)
jne 0x1305e
movq 0x40(%r14), %rax
cmpq 0x360(%r14), %rax
jae 0x139b9
movq 0x368(%r14), %rcx
cmpb $0x23, (%rcx,%rax)
movq (%rsp), %r15
movq 0x10(%rsp), %r12
jne 0x1365a
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
callq 0x13cb6
movl $0x0, 0xc(%rsp)
cmpl $0x0, (%rbx)
movl $0x0, %ebp
jne 0x130de
jmp 0x1365a
movb $0x1, %al
movl %eax, 0xc(%rsp)
movq %r12, %rdi
movq %rbx, %rsi
callq 0x12b1e
cmpl $0x0, (%rbx)
jne 0x1305e
movl 0xc(%rsp), %ebp
testb %bpl, %bpl
je 0x136dd
movl %ebp, 0xc(%rsp)
movl $0x4, %edx
movq %rax, %rdi
leaq 0x5f961(%rip), %rsi     # 0x72feb
movq %rax, %rbp
callq 0x12060
movl %eax, 0x2c(%rsp)
testl %eax, %eax
je 0x137c2
movl $0x2, %edx
movq %rbp, %rdi
leaq 0x5fe1b(%rip), %rsi     # 0x734c8
callq 0x12060
testl %eax, %eax
je 0x137c2
movl $0x3, %edx
movq %rbp, %rdi
leaq 0x62111(%rip), %rsi     # 0x757da
callq 0x12060
testl %eax, %eax
movq %rbp, %rax
movl 0xc(%rsp), %ebp
je 0x13942
movq %rax, 0x38(%rsp)
movq (%r14), %rsi
movq 0x8(%r14), %rdx
movl $0x10, %ecx
leaq 0x38(%rsp), %rdi
leaq 0x9bd(%rip), %r8        # 0x140b7
callq 0x122a0
testq %rax, %rax
je 0x13877
movl 0x8(%rax), %ecx
cmpl $0x3, %ecx
jne 0x138bc
movq 0x360(%r14), %rax
movq 0x40(%r14), %rcx
cmpq %rax, %rcx
jae 0x1374c
movq 0x368(%r14), %rdx
negq %rax
incq %rcx
cmpb $0xa, -0x1(%rdx,%rcx)
je 0x1374c
movq %rcx, 0x40(%r14)
leaq (%rax,%rcx), %rsi
incq %rsi
incq %rcx
cmpq $0x1, %rsi
jne 0x13731
movq %r14, %rdi
movq %rbx, %rsi
callq 0x13a49
cmpl $0x0, (%rbx)
sete %bpl
jne 0x130de
movq 0x40(%r14), %rax
movb $0x1, %bpl
cmpq 0x360(%r14), %rax
je 0x130de
movq 0x368(%r14), %rcx
cmpb $0xa, (%rcx,%rax)
jne 0x13714
incq %rax
movq %rax, 0x40(%r14)
incl 0x38(%r14)
jmp 0x130de
movq %r12, %rdi
callq 0x12be9
movq 0x350(%r14), %rdi
callq 0x12a38
movq $0x0, 0x350(%r14)
movl $0x80000000, 0x8(%r12)  # imm = 0x80000000
jmp 0x1305e
movq %r15, %rdi
callq 0x14d7f
movq 0x18(%rsp), %rsi
movzbl %sil, %ecx
xorl %eax, %eax
addl $-0x24, %ecx
cmpl $0x1c, %ecx
ja 0x137f4
movl $0x10000007, %edx       # imm = 0x10000007
btl %ecx, %edx
jae 0x137f4
movl %esi, %eax
cmpl $0x0, 0x2c(%rsp)
je 0x1391e
movl $0x6, (%r12)
movsbl %al, %edx
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rcx
callq 0x140c2
cmpl $0x0, (%rbx)
jne 0x1305e
cmpl $0x0, 0x2c(%rsp)
je 0x13989
leaq 0x38(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq %rbx, %rdx
callq 0x2f72e
cmpl $0x0, (%rbx)
movq (%rsp), %r15
movq 0x10(%rsp), %r12
jne 0x1305e
movq 0x20(%rsp), %rdi
callq 0x2f843
movl $0x148, %edx            # imm = 0x148
movq 0x30(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0x121b0
movl $0x0, 0x8(%r12)
movb $0x1, 0xc(%r12)
jmp 0x139aa
movq %r15, %rdi
callq 0x14d7f
testb %bpl, %bpl
je 0x138d6
movl $0x6, (%r12)
movq 0x18(%rsp), %rdx
leal -0x27(%rdx), %eax
xorl %ebp, %ebp
cmpb $-0x3, %al
movzbl %dl, %eax
movl %eax, %ecx
cmovbl %ebp, %ecx
cmpb $0x40, %dl
cmovel %eax, %ecx
movsbl %cl, %edx
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rcx
callq 0x140c2
jmp 0x130de
movl $0x1, (%r12)
movl %ecx, 0x8(%r12)
movb 0xc(%rax), %al
movb %al, 0xc(%r12)
jmp 0x1305e
movq %r14, %rdi
movq %r12, %rsi
movq %rbx, %rdx
movl $0x9, %ecx
callq 0x13f20
cmpl $0x0, (%rbx)
jne 0x1305e
movq %r12, %rdi
callq 0x12ad0
movq 0x30(%r14), %r8
movl 0x38(%r14), %r9d
movq %rbx, %rdi
movl $0xa, %esi
movq %rax, %rdx
leaq 0x604e1(%rip), %rcx     # 0x73df5
pushq $0x379                  # imm = 0x379
jmp 0x134f9
movq 0x30(%r14), %r8
movl 0x38(%r14), %r9d
movq %rbx, %rdi
movl $0xb, %esi
movq %rbp, %rdx
leaq 0x604bd(%rip), %rcx     # 0x73df5
pushq $0x346                  # imm = 0x346
jmp 0x134f9
movq %rax, %rdi
leaq 0x5e78c(%rip), %rsi     # 0x720d8
movq %rax, %rbp
callq 0x12160
testl %eax, %eax
movq %rbp, %rax
movl 0xc(%rsp), %ebp
je 0x136dd
movq %r15, %rdi
movq %rax, %rbp
callq 0x14d7f
movsbl 0x18(%rsp), %ecx
movq %r14, %rdi
movq %r12, %rsi
movq %rbp, %rdx
movq %rbx, %r8
callq 0x13fbd
jmp 0x1305e
movq 0x20(%rsp), %rax
cmpl $0x4, (%rax)
jne 0x139c7
movq 0x10(%rsp), %rax
movl $0x1, 0x8(%rax)
movb $0x1, 0xc(%rax)
movl $0x8, 0x10(%rax)
movq 0x10(%rsp), %r12
movl $0x1, (%r12)
jmp 0x13a04
movq (%rsp), %r15
movq 0x10(%rsp), %r12
jmp 0x1365a
movq 0x10(%rsp), %r12
movq %r12, %rdi
callq 0x12ad0
movq 0x30(%r14), %r8
movl 0x38(%r14), %r9d
movq %rbx, %rdi
movl $0xb, %esi
movq %rax, %rdx
leaq 0x60407(%rip), %rcx     # 0x73df5
pushq $0x2cc                  # imm = 0x2CC
leaq 0x5e65a(%rip), %rax     # 0x72054
pushq %rax
callq 0x1442a
addq $0x10, %rsp
movq (%rsp), %r15
jmp 0x1305e
movq %r12, %rdi
callq 0x12be9
movq 0x350(%r14), %rdi
callq 0x12a38
movq $0x0, 0x350(%r14)
movq %r15, %rdi
movq %rbx, %rsi
callq 0x14d4b
addq $0xc48, %rsp            # imm = 0xC48
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq