// File: /workspace/github_c_makefile_star2_O2/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 %rdi, %rbx
movq 0x48(%rdi), %rax
andq $0x0, 0x8(%rax)
movq %rsi, %r13
pushq $0x2d
popq %r14
movl $0x4801, %r12d          # imm = 0x4801
movl (%rbx), %ebp
cmpl $-0x1, %ebp
je 0xaecb
cmpl $0xa, %ebp
je 0xadd0
cmpl $0x7e, %ebp
je 0xaed5
cmpl $0x22, %ebp
je 0xae96
cmpl $0x27, %ebp
je 0xae96
cmpl $0x2d, %ebp
je 0xaddd
cmpl $0x2e, %ebp
je 0xb144
cmpl $0x3c, %ebp
je 0xb114
cmpl $0x3d, %ebp
je 0xb12c
cmpl $0x3e, %ebp
je 0xaeb3
cmpl $0x5b, %ebp
je 0xaeed
cmpl $0xd, %ebp
je 0xadd0
callq 0x32e0
movq %rax, %r15
movq (%rax), %rax
movslq %ebp, %rcx
movzwl (%rax,%rcx,2), %eax
btl $0xd, %eax
jae 0xb1a2
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xadba
callq 0xacb0
movl %eax, %ebp
jmp 0xadc9
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %ebp
movl %ebp, (%rbx)
jmp 0xad23
movq %rbx, %rdi
callq 0xb458
jmp 0xad21
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xadee
callq 0xacb0
jmp 0xadfd
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
cmpl $0x2d, %eax
jne 0xb40a
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xae19
callq 0xacb0
jmp 0xae28
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
cmpl $0x5b, %eax
jne 0xae84
movq %rbx, %rdi
callq 0xb4d8
movq 0x48(%rbx), %rcx
andq $0x0, 0x8(%rcx)
testl %eax, %eax
js 0xae5e
movq %rbx, %rdi
xorl %esi, %esi
movl %eax, %edx
callq 0xb563
movq 0x48(%rbx), %rax
andq $0x0, 0x8(%rax)
jmp 0xad21
movl (%rbx), %eax
jmp 0xae84
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xae73
callq 0xacb0
jmp 0xae82
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
incl %eax
cmpl $0xe, %eax
ja 0xae62
btl %eax, %r12d
jae 0xae62
jmp 0xad21
movq %rbx, %rdi
movl %ebp, %esi
callq 0xb756
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xaf0f
callq 0xacb0
movl %eax, %esi
jmp 0xaf1e
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xb23c
callq 0xacb0
jmp 0xb24b
movl $0x11f, %ebp            # imm = 0x11F
jmp 0xb40d
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xb271
callq 0xacb0
jmp 0xb280
movq %rbx, %rdi
callq 0xb4d8
testl %eax, %eax
js 0xb350
movq %rbx, %rdi
movq %r13, %rsi
movl %eax, %edx
callq 0xb563
jmp 0xb198
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %esi
movl %esi, (%rbx)
pushq $0x7
popq %r14
pushq $0xa
popq %r15
movq %r13, (%rsp)
cmpl %ebp, %esi
je 0xb0f9
cmpl $0x5c, %esi
je 0xaf6f
cmpl $0xd, %esi
je 0xb41e
cmpl $0xa, %esi
je 0xb41e
cmpl $-0x1, %esi
je 0xb432
movq %rbx, %rdi
callq 0xb756
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xafda
callq 0xacb0
movl %eax, %esi
jmp 0xafe9
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xaf83
callq 0xacb0
movl %eax, %r12d
jmp 0xaf93
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %r12d
movl %r12d, (%rbx)
leal -0x6e(%r12), %eax
cmpl $0x8, %eax
jbe 0xaff0
cmpl $-0x1, %r12d
je 0xb081
cmpl $0xa, %r12d
je 0xb005
cmpl $0xd, %r12d
je 0xb005
movl %r14d, %esi
cmpl $0x61, %r12d
je 0xb068
cmpl $0x66, %r12d
je 0xb065
cmpl $0x62, %r12d
jne 0xb01a
pushq $0x8
jmp 0xb067
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %esi
movl %esi, (%rbx)
jmp 0xaf2c
leaq 0x71b9(%rip), %rcx      # 0x121b0
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movl %r15d, %esi
jmp 0xb068
movq %rbx, %rdi
movl %r15d, %esi
callq 0xb756
movq %rbx, %rdi
callq 0xb458
jmp 0xb081
callq 0x32e0
movq %rax, %r13
movq (%rax), %rax
movslq %r12d, %rcx
testb $0x8, 0x1(%rax,%rcx,2)
jne 0xb088
movq %rbx, %rdi
movl %r12d, %esi
callq 0xb756
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
movq (%rsp), %r13
jb 0xb07a
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
jmp 0xb07f
pushq $0xb
jmp 0xb067
pushq $0xd
jmp 0xb067
pushq $0x9
jmp 0xb067
pushq $0xc
popq %rsi
movq %rbx, %rdi
callq 0xb756
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xb048
callq 0xacb0
movl %eax, (%rbx)
movl (%rbx), %esi
jmp 0xaf2c
xorl %r15d, %r15d
pushq $0x3
popq %r14
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xb0a0
callq 0xacb0
jmp 0xb0af
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
imull $0xa, %r15d, %ecx
leal (%r12,%rcx), %r15d
addl $-0x30, %r15d
movl %eax, (%rbx)
decl %r14d
je 0xb0d3
movq (%r13), %rcx
movslq %eax, %rdx
testb $0x8, 0x1(%rcx,%rdx,2)
movl %eax, %r12d
jne 0xb08f
cmpl $0x100, %r15d           # imm = 0x100
jge 0xb446
movq %rbx, %rdi
movl %r15d, %esi
callq 0xb756
movq (%rsp), %r13
pushq $0x7
popq %r14
pushq $0xa
popq %r15
jmp 0xb081
movq %rbx, %rdi
movl %ebp, %esi
callq 0xb756
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xb169
callq 0xacb0
jmp 0xb178
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xb2a6
callq 0xacb0
jmp 0xb2b5
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xb2db
callq 0xacb0
jmp 0xb2ea
pushq $0x2e
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0xb756
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xb30d
callq 0xacb0
jmp 0xb31c
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 0xb935
movq %rax, (%r13)
movl $0x11e, %ebp            # imm = 0x11E
jmp 0xb40d
btl $0xb, %eax
jb 0xb377
cmpl $0x5f, %ebp
je 0xb1d0
andl $0x400, %eax            # imm = 0x400
jne 0xb1d0
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xb3ec
callq 0xacb0
jmp 0xb3fb
movq %rbx, %rdi
movl %ebp, %esi
callq 0xb756
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xb1ed
callq 0xacb0
movl %eax, %ebp
jmp 0xb1fc
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %ebp
movl %ebp, (%rbx)
cmpl $0x5f, %ebp
je 0xb1d0
movq (%r15), %rax
movslq %ebp, %rcx
movzwl (%rax,%rcx,2), %eax
andl $0x8, %eax
jne 0xb1d0
movq 0x48(%rbx), %rax
movq (%rax), %rsi
movq 0x8(%rax), %rdx
movq %rbx, %rdi
callq 0xb935
movzbl 0xa(%rax), %ebp
testl %ebp, %ebp
je 0xb3ff
orl $0x100, %ebp            # imm = 0x100
jmp 0xb40d
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
cmpl $0x3d, %eax
jne 0xb26a
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xb38c
callq 0xacb0
jmp 0xb39b
pushq $0x3e
jmp 0xb35b
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
cmpl $0x3d, %eax
jne 0xb29f
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xb3a4
callq 0xacb0
jmp 0xb3b3
pushq $0x7e
jmp 0xb35b
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
cmpl $0x3d, %eax
jne 0xb2d4
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xb3bc
callq 0xacb0
jmp 0xb3cb
pushq $0x3c
jmp 0xb35b
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
cmpl $0x3d, %eax
jne 0xb309
movq 0x40(%rbx), %rdi
subq $0x1, (%rdi)
jae 0xb3d4
callq 0xacb0
jmp 0xb3e3
pushq $0x3d
jmp 0xb35b
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
leaq 0x734f(%rip), %rsi      # 0x12674
movq %rbx, %rdi
callq 0xb7c3
testl %eax, %eax
je 0xb361
leaq 0x733c(%rip), %rsi      # 0x12674
movq %rbx, %rdi
callq 0xb7c3
cmpl $0x1, %eax
movl $0x117, %ebp            # imm = 0x117
sbbl $0x0, %ebp
jmp 0xb40d
cmpl $-0x1, %eax
jne 0xb44f
pushq $0x5b
popq %rbp
jmp 0xb40d
callq 0x32e0
movq (%rax), %rax
movslq (%rbx), %rcx
testb $0x8, 0x1(%rax,%rcx,2)
je 0xb40d
movq %rbx, %rdi
movq %r13, %rsi
callq 0xb814
movl $0x11c, %ebp            # imm = 0x11C
jmp 0xb40d
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x119, %ebp            # imm = 0x119
jmp 0xb40d
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x11b, %ebp            # imm = 0x11B
jmp 0xb40d
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x11a, %ebp            # imm = 0x11A
jmp 0xb40d
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
movl $0x118, %ebp            # imm = 0x118
jmp 0xb40d
movq 0x8(%rdi), %rax
leaq 0x1(%rax), %rcx
movq %rcx, 0x8(%rdi)
movzbl (%rax), %eax
movl %eax, (%rbx)
jmp 0xb40d
movq %rax, (%r13)
movl $0x11d, %ebp            # imm = 0x11D
jmp 0xb40d
movl %r14d, %ebp
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x76c1(%rip), %rsi      # 0x12ae6
movq %rbx, %rdi
movl $0x11e, %edx            # imm = 0x11E
callq 0xb6bb
leaq 0x76ad(%rip), %rsi      # 0x12ae6
movq %rbx, %rdi
movl $0x11f, %edx            # imm = 0x11F
callq 0xb6bb
leaq 0x76ab(%rip), %rsi      # 0x12af8
jmp 0xb425
leaq 0x7611(%rip), %rsi      # 0x12a67
jmp 0xb425