// File: /workspace/github_c_makefile_star2_O3/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: llex
static int llex(LexState*ls,SemInfo*seminfo){
luaZ_resetbuffer(ls->buff);
for(;;){
switch(ls->current){
case'\n':
case'\r':{
inclinenumber(ls);
continue;
}
case'-':{
next(ls);
if(ls->current!='-')return'-';
next(ls);
if(ls->current=='['){
int sep=skip_sep(ls);
luaZ_resetbuffer(ls->buff);
if(sep>=0){
read_long_string(ls,NULL,sep);
luaZ_resetbuffer(ls->buff);
continue;
}
}
while(!currIsNewline(ls)&&ls->current!=(-1))
next(ls);
continue;
}
case'[':{
int sep=skip_sep(ls);
if(sep>=0){
read_long_string(ls,seminfo,sep);
return TK_STRING;
}
else if(sep==-1)return'[';
else luaX_lexerror(ls,"invalid long string delimiter",TK_STRING);
}
case'=':{
next(ls);
if(ls->current!='=')return'=';
else{next(ls);return TK_EQ;}
}
case'<':{
next(ls);
if(ls->current!='=')return'<';
else{next(ls);return TK_LE;}
}
case'>':{
next(ls);
if(ls->current!='=')return'>';
else{next(ls);return TK_GE;}
}
case'~':{
next(ls);
if(ls->current!='=')return'~';
else{next(ls);return TK_NE;}
}
case'"':
case'\'':{
read_string(ls,ls->current,seminfo);
return TK_STRING;
}
case'.':{
save_and_next(ls);
if(check_next(ls,".")){
if(check_next(ls,"."))
return TK_DOTS;
else return TK_CONCAT;
}
else if(!isdigit(ls->current))return'.';
else{
read_numeral(ls,seminfo);
return TK_NUMBER;
}
}
case(-1):{
return TK_EOS;
}
default:{
if(isspace(ls->current)){
next(ls);
continue;
}
else if(isdigit(ls->current)){
read_numeral(ls,seminfo);
return TK_NUMBER;
}
else if(isalpha(ls->current)||ls->current=='_'){
TString*ts;
do{
save_and_next(ls);
}while(isalnum(ls->current)||ls->current=='_');
ts=luaX_newstring(ls,luaZ_buffer(ls->buff),
luaZ_bufflen(ls->buff));
if(ts->tsv.reserved>0)
return ts->tsv.reserved-1+257;
else{
seminfo->ts=ts;
return TK_NAME;
}
}
else{
int c=ls->current;
next(ls);
return c;
}
}
}
}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r13
movq %rdi, %rbx
movq 0x48(%rdi), %rax
movq $0x0, 0x8(%rax)
movl $0x4801, %r14d          # imm = 0x4801
movl (%rbx), %ebp
cmpl $0x2d, %ebp
jg 0xc4b6
cmpl $0x21, %ebp
jg 0xc4d7
cmpl $-0x1, %ebp
je 0xc8a7
cmpl $0xa, %ebp
je 0xc550
cmpl $0xd, %ebp
jne 0xc50b
jmp 0xc550
cmpl $0x3d, %ebp
jg 0xc4f0
cmpl $0x2e, %ebp
je 0xc651
cmpl $0x3c, %ebp
je 0xc8b1
cmpl $0x3d, %ebp
jne 0xc50b
jmp 0xc676
cmpl $0x22, %ebp
je 0xc61c
cmpl $0x27, %ebp
je 0xc61c
cmpl $0x2d, %ebp
jne 0xc50b
jmp 0xc55d
cmpl $0x3e, %ebp
je 0xc639
cmpl $0x5b, %ebp
je 0xc8e1
cmpl $0x7e, %ebp
je 0xc8c9
callq 0x32f0
movq %rax, %r15
movq (%rax), %rax
movslq %ebp, %rcx
movzwl (%rax,%rcx,2), %eax
btl $0xd, %eax
jae 0xc939
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xc53a
callq 0xc41c
movl %eax, %ebp
jmp 0xc549
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %ebp
movl %ebp, (%rbx)
jmp 0xc490
movq %rbx, %rdi
callq 0xcc05
jmp 0xc48e
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xc56e
callq 0xc41c
jmp 0xc57d
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
cmpl $0x2d, %eax
jne 0xcbbe
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xc599
callq 0xc41c
jmp 0xc5a8
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
cmpl $0x5b, %eax
jne 0xc60a
movq %rbx, %rdi
callq 0xcc88
movq 0x48(%rbx), %rcx
movq $0x0, 0x8(%rcx)
testl %eax, %eax
js 0xc5e4
movq %rbx, %rdi
xorl %esi, %esi
movl %eax, %edx
callq 0xcd0d
movq 0x48(%rbx), %rax
movq $0x0, 0x8(%rax)
jmp 0xc48e
movl (%rbx), %eax
jmp 0xc60a
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xc5f9
callq 0xc41c
jmp 0xc608
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
incl %eax
cmpl $0xe, %eax
ja 0xc5e8
btl %eax, %r14d
jae 0xc5e8
jmp 0xc48e
movq %rbx, %rdi
movl %ebp, %esi
callq 0xcf03
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xc68e
callq 0xc41c
movl %eax, %esi
jmp 0xc69d
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xc9d3
callq 0xc41c
jmp 0xc9e2
movq %rbx, %rdi
movl $0x2e, %esi
callq 0xcf03
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xca0a
callq 0xc41c
jmp 0xca19
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xca51
callq 0xc41c
jmp 0xca60
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %esi
movl %esi, (%rbx)
cmpl %ebp, %esi
jne 0xc6c5
movq %rbx, %rdi
movl %ebp, %esi
callq 0xcf03
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xc900
callq 0xc41c
jmp 0xc90f
leaq 0x8b54(%rip), %r14      # 0x15220
cmpl $0x5b, %esi
jle 0xc6ea
cmpl $0x5c, %esi
jne 0xc705
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xc736
callq 0xc41c
movl %eax, %r15d
jmp 0xc746
cmpl $-0x1, %esi
je 0xcbe8
cmpl $0xa, %esi
je 0xcbd4
cmpl $0xd, %esi
je 0xcbd4
movq %rbx, %rdi
callq 0xcf03
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xc720
callq 0xc41c
movl %eax, %esi
jmp 0xc72f
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %esi
movl %esi, (%rbx)
jmp 0xc820
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %r15d
movl %r15d, (%rbx)
cmpl $0x61, %r15d
jg 0xc767
cmpl $0xc, %r15d
jg 0xc780
cmpl $-0x1, %r15d
je 0xc81e
cmpl $0xa, %r15d
je 0xc793
jmp 0xc7bd
leal -0x6e(%r15), %eax
cmpl $0x8, %eax
ja 0xc7aa
movslq (%r14,%rax,4), %rax
addq %r14, %rax
jmpq *%rax
movl $0xa, %esi
jmp 0xc7f4
cmpl $0xd, %r15d
je 0xc793
movl $0x7, %esi
cmpl $0x61, %r15d
je 0xc7f4
jmp 0xc7bd
movq %rbx, %rdi
movl $0xa, %esi
callq 0xcf03
movq %rbx, %rdi
callq 0xcc05
jmp 0xc81e
cmpl $0x66, %r15d
je 0xc7ef
cmpl $0x62, %r15d
jne 0xc7bd
movl $0x8, %esi
jmp 0xc7f4
callq 0x32f0
movq %rax, %r12
movq (%rax), %rax
movslq %r15d, %rcx
testb $0x8, 0x1(%rax,%rcx,2)
jne 0xc82d
movq %rbx, %rdi
movl %r15d, %esi
jmp 0xc7f7
movl $0x9, %esi
jmp 0xc7f4
movl $0xd, %esi
jmp 0xc7f4
movl $0xb, %esi
jmp 0xc7f4
movl $0xc, %esi
movq %rbx, %rdi
callq 0xcf03
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xc80d
callq 0xc41c
jmp 0xc81c
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl (%rbx), %esi
cmpl %ebp, %esi
jne 0xc6cc
jmp 0xc6a3
movq %r13, (%rsp)
xorl %r13d, %r13d
movl $0x3, %r14d
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xc84b
callq 0xc41c
jmp 0xc85a
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
leal (%r13,%r13,4), %ecx
leal (%r15,%rcx,2), %r13d
addl $-0x30, %r13d
movl %eax, (%rbx)
decl %r14d
je 0xc87f
movq (%r12), %rcx
movslq %eax, %rdx
testb $0x8, 0x1(%rcx,%rdx,2)
movl %eax, %r15d
jne 0xc83a
cmpl $0x100, %r13d           # imm = 0x100
jge 0xcbfc
movq %rbx, %rdi
movl %r13d, %esi
callq 0xcf03
movq (%rsp), %r13
leaq 0x897e(%rip), %r14      # 0x15220
jmp 0xc81e
movl $0x11f, %ebp            # imm = 0x11F
jmp 0xcbc3
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xca88
callq 0xc41c
jmp 0xca97
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xcabf
callq 0xc41c
jmp 0xcace
movq %rbx, %rdi
callq 0xcc88
testl %eax, %eax
js 0xcb26
movq %rbx, %rdi
movq %r13, %rsi
movl %eax, %edx
callq 0xcd0d
jmp 0xc92f
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movq 0x48(%rbx), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
incq %rsi
addq $-0x2, %rdx
movq %rbx, %rdi
callq 0xd0f1
movq %rax, (%r13)
movl $0x11e, %ebp            # imm = 0x11E
jmp 0xcbc3
btl $0xb, %eax
jb 0xcb11
cmpl $0x5f, %ebp
je 0xc967
andl $0x400, %eax            # imm = 0x400
jne 0xc967
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xcba0
callq 0xc41c
jmp 0xcbaf
movq %rbx, %rdi
movl %ebp, %esi
callq 0xcf03
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xc984
callq 0xc41c
movl %eax, %ebp
jmp 0xc993
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %ebp
movl %ebp, (%rbx)
cmpl $0x5f, %ebp
je 0xc967
movq (%r15), %rax
movslq %ebp, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x8, %eax
jne 0xc967
movq 0x48(%rbx), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %rbx, %rdi
callq 0xd0f1
movzbl 0xa(%rax), %ebp
testl %ebp, %ebp
je 0xcbb3
orl $0x100, %ebp            # imm = 0x100
jmp 0xcbc3
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x3e, %ebp
cmpl $0x3d, %eax
jne 0xcbc3
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xcb40
callq 0xc41c
jmp 0xcb4f
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
leaq 0x8c52(%rip), %rsi      # 0x15674
movq %rbx, %rdi
callq 0xcf70
testl %eax, %eax
je 0xcaf6
leaq 0x8c3b(%rip), %rsi      # 0x15674
movq %rbx, %rdi
callq 0xcf70
cmpl $0x1, %eax
movl $0x117, %ebp            # imm = 0x117
sbbl $0x0, %ebp
jmp 0xcbc3
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x3d, %ebp
cmpl $0x3d, %eax
jne 0xcbc3
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xcb58
callq 0xc41c
jmp 0xcb67
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x3c, %ebp
cmpl $0x3d, %eax
jne 0xcbc3
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xcb70
callq 0xc41c
jmp 0xcb7f
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x7e, %ebp
cmpl $0x3d, %eax
jne 0xcbc3
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xcb88
callq 0xc41c
jmp 0xcb97
callq 0x32f0
movq (%rax), %rax
movslq (%rbx), %rcx
movl $0x2e, %ebp
testb $0x8, 0x1(%rax,%rcx,2)
je 0xcbc3
movq %rbx, %rdi
movq %r13, %rsi
callq 0xcfc3
movl $0x11c, %ebp            # imm = 0x11C
jmp 0xcbc3
movl $0x5b, %ebp
cmpl $-0x1, %eax
je 0xcbc3
leaq 0x8f2c(%rip), %rsi      # 0x15a67
jmp 0xcbdb
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x119, %ebp            # imm = 0x119
jmp 0xcbc3
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x118, %ebp            # imm = 0x118
jmp 0xcbc3
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x11a, %ebp            # imm = 0x11A
jmp 0xcbc3
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x11b, %ebp            # imm = 0x11B
jmp 0xcbc3
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
jmp 0xcbc3
movq %rax, (%r13)
movl $0x11d, %ebp            # imm = 0x11D
jmp 0xcbc3
movl $0x2d, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x8f0b(%rip), %rsi      # 0x15ae6
movq %rbx, %rdi
movl $0x11e, %edx            # imm = 0x11E
callq 0xce64
leaq 0x8ef7(%rip), %rsi      # 0x15ae6
movq %rbx, %rdi
movl $0x11f, %edx            # imm = 0x11F
callq 0xce64
leaq 0x8ef5(%rip), %rsi      # 0x15af8
jmp 0xcbdb