// File: /workspace/github_c_makefile_star2_O1/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, %r14
movq %rdi, %rbx
movq 0x48(%rdi), %rax
movq $0x0, 0x8(%rax)
movl $0x4801, %ebp           # imm = 0x4801
movslq (%rbx), %r15
cmpq $0x21, %r15
jg 0xbafc
cmpl $0xa, %r15d
je 0xbaf2
cmpl $0xd, %r15d
jne 0xbb1d
movq %rbx, %rdi
callq 0xc24a
jmp 0xbadd
cmpl $0x2d, %r15d
jg 0xbbd7
jne 0xbbfc
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xbb2c
callq 0xba6c
jmp 0xbb3b
cmpl $-0x1, %r15d
jne 0xbc24
jmp 0xbf2a
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
cmpl $0x2d, %eax
jne 0xbf6e
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xbb57
callq 0xba6c
jmp 0xbb66
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
cmpl $0x5b, %eax
jne 0xbbc4
movq %rbx, %rdi
callq 0xc2cd
movq 0x48(%rbx), %rcx
movq $0x0, 0x8(%rcx)
testl %eax, %eax
js 0xbbc4
movq %rbx, %rdi
xorl %esi, %esi
movl %eax, %edx
callq 0xc352
movq 0x48(%rbx), %rax
movq $0x0, 0x8(%rax)
jmp 0xbadd
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xbbb3
callq 0xba6c
jmp 0xbbc2
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl (%rbx), %eax
incl %eax
cmpl $0xe, %eax
ja 0xbba2
btl %eax, %ebp
jae 0xbba2
jmp 0xbadd
cmpl $0x3d, %r15d
jg 0xbc0a
cmpl $0x2e, %r15d
je 0xbd0c
cmpl $0x3c, %r15d
je 0xbcac
cmpl $0x3d, %r15d
jne 0xbc24
jmp 0xbcdc
cmpl $0x22, %r15d
je 0xbc65
cmpl $0x27, %r15d
jne 0xbc24
jmp 0xbc65
cmpl $0x3e, %r15d
je 0xbcf4
cmpl $0x5b, %r15d
je 0xbc8a
cmpl $0x7e, %r15d
je 0xbcc4
callq 0x32f0
movq %rax, %r12
movq (%rax), %rax
movzwl (%rax,%r15,2), %eax
btl $0xd, %eax
jae 0xbf79
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xbc4f
callq 0xba6c
jmp 0xbc5e
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
jmp 0xbadd
movq %rbx, %rdi
movl %r15d, %esi
callq 0xc548
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xbd31
callq 0xba6c
movl %eax, %esi
jmp 0xbd40
movq %rbx, %rdi
callq 0xc2cd
testl %eax, %eax
js 0xc13a
movq %rbx, %rdi
movq %r14, %rsi
movl %eax, %edx
callq 0xc352
jmp 0xbf63
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xc015
callq 0xba6c
jmp 0xc024
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xc04d
callq 0xba6c
jmp 0xc05c
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xc085
callq 0xba6c
jmp 0xc094
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xc0bd
callq 0xba6c
jmp 0xc0cc
movq %rbx, %rdi
movl $0x2e, %esi
callq 0xc548
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xc0f5
callq 0xba6c
jmp 0xc104
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %esi
movl %esi, (%rbx)
cmpl %r15d, %esi
jne 0xbd67
movq %rbx, %rdi
callq 0xc548
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xbf35
callq 0xba6c
jmp 0xbf44
leaq 0x8442(%rip), %rbp      # 0x141b0
cmpl $0x5b, %esi
jle 0xbd8c
cmpl $0x5c, %esi
jne 0xbda7
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xbddd
callq 0xba6c
movl %eax, %r12d
jmp 0xbded
cmpl $-0x1, %esi
je 0xc22d
cmpl $0xa, %esi
je 0xc219
cmpl $0xd, %esi
je 0xc219
movq %rbx, %rdi
callq 0xc548
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xbdc0
callq 0xba6c
jmp 0xbdcf
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl (%rbx), %esi
cmpl %r15d, %esi
jne 0xbd6e
jmp 0xbd47
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %r12d
movl %r12d, (%rbx)
cmpl $0x61, %r12d
jg 0xbe0a
cmpl $0xc, %r12d
jg 0xbe25
cmpl $-0x1, %r12d
je 0xbdd1
cmpl $0xa, %r12d
je 0xbe3c
jmp 0xbe6c
leal -0x6e(%r12), %eax
cmpl $0x8, %eax
ja 0xbe56
movslq (%rbp,%rax,4), %rax
addq %rbp, %rax
jmpq *%rax
movl $0xa, %esi
jmp 0xbda7
cmpl $0xd, %r12d
je 0xbe3c
movl $0x7, %esi
cmpl $0x61, %r12d
je 0xbda7
jmp 0xbe6c
movq %rbx, %rdi
movl $0xa, %esi
callq 0xc548
movq %rbx, %rdi
callq 0xc24a
jmp 0xbdd1
cmpl $0x66, %r12d
je 0xbeaa
cmpl $0x62, %r12d
jne 0xbe6c
movl $0x8, %esi
jmp 0xbda7
callq 0x32f0
movq %rax, %r13
movq (%rax), %rax
movslq %r12d, %rcx
testb $0x8, 0x1(%rax,%rcx,2)
jne 0xbeb4
movq %rbx, %rdi
movl %r12d, %esi
jmp 0xbdaa
movl $0x9, %esi
jmp 0xbda7
movl $0xd, %esi
jmp 0xbda7
movl $0xb, %esi
jmp 0xbda7
movl $0xc, %esi
jmp 0xbda7
movq %r14, (%rsp)
xorl %r12d, %r12d
movl $0x3, %ebp
movl (%rbx), %r14d
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xbed4
callq 0xba6c
jmp 0xbee3
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
leal (%r12,%r12,4), %ecx
leal (%r14,%rcx,2), %r12d
addl $-0x30, %r12d
movl %eax, (%rbx)
decl %ebp
je 0xbf02
movq (%r13), %rcx
cltq
testb $0x8, 0x1(%rcx,%rax,2)
jne 0xbec0
cmpl $0x100, %r12d           # imm = 0x100
jge 0xc241
movq %rbx, %rdi
movl %r12d, %esi
callq 0xc548
movq (%rsp), %r14
leaq 0x828b(%rip), %rbp      # 0x141b0
jmp 0xbdd1
movl $0x11f, %r15d           # imm = 0x11F
jmp 0xc207
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 0xc749
movq %rax, (%r14)
movl $0x11e, %r15d           # imm = 0x11E
jmp 0xc207
movl $0x2d, %r15d
jmp 0xc207
btl $0xb, %eax
jb 0xc171
cmpl $0x5f, %r15d
je 0xbfa8
andl $0x400, %eax            # imm = 0x400
jne 0xbfa8
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xc1eb
callq 0xba6c
jmp 0xc1fa
movl (%rbx), %esi
movq %rbx, %rdi
callq 0xc548
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xbfc3
callq 0xba6c
jmp 0xbfd2
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
cmpl $0x5f, %eax
je 0xbfa8
movq (%r12), %rcx
cltq
movzwl (%rcx,%rax,2), %eax
andl $0x8, %eax
jne 0xbfa8
movq 0x48(%rbx), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %rbx, %rdi
callq 0xc749
movzbl 0xa(%rax), %r15d
testl %r15d, %r15d
je 0xc1fe
orl $0x100, %r15d           # imm = 0x100
jmp 0xc207
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x3c, %r15d
cmpl $0x3d, %eax
jne 0xc207
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xc187
callq 0xba6c
jmp 0xc196
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x7e, %r15d
cmpl $0x3d, %eax
jne 0xc207
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xc1a0
callq 0xba6c
jmp 0xc1af
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x3d, %r15d
cmpl $0x3d, %eax
jne 0xc207
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xc1b9
callq 0xba6c
jmp 0xc1c8
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x3e, %r15d
cmpl $0x3d, %eax
jne 0xc207
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xc1d2
callq 0xba6c
jmp 0xc1e1
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
leaq 0x853f(%rip), %rsi      # 0x1464c
movq %rbx, %rdi
callq 0xc5ca
testl %eax, %eax
je 0xc155
leaq 0x852c(%rip), %rsi      # 0x1464c
movq %rbx, %rdi
callq 0xc5ca
cmpl $0x1, %eax
movl $0x117, %r15d           # imm = 0x117
sbbl $0x0, %r15d
jmp 0xc207
movl $0x5b, %r15d
cmpl $-0x1, %eax
je 0xc207
leaq 0x88ef(%rip), %rsi      # 0x14a3f
jmp 0xc220
callq 0x32f0
movq (%rax), %rax
movslq (%rbx), %rcx
movl $0x2e, %r15d
testb $0x8, 0x1(%rax,%rcx,2)
je 0xc207
movq %rbx, %rdi
movq %r14, %rsi
callq 0xc61d
movl $0x11c, %r15d           # imm = 0x11C
jmp 0xc207
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x11a, %r15d           # imm = 0x11A
jmp 0xc207
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x11b, %r15d           # imm = 0x11B
jmp 0xc207
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x118, %r15d           # imm = 0x118
jmp 0xc207
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x119, %r15d           # imm = 0x119
jmp 0xc207
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
jmp 0xc207
movq %rax, (%r14)
movl $0x11d, %r15d           # imm = 0x11D
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x889e(%rip), %rsi      # 0x14abe
movq %rbx, %rdi
movl $0x11e, %edx            # imm = 0x11E
callq 0xc4a9
leaq 0x888a(%rip), %rsi      # 0x14abe
movq %rbx, %rdi
movl $0x11f, %edx            # imm = 0x11F
callq 0xc4a9
leaq 0x8888(%rip), %rsi      # 0x14ad0
jmp 0xc220