LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaV_lessthan
static int luaV_lessthan(lua_State*L,const TValue*l,const TValue*r){
int res;
if(ttype(l)!=ttype(r))
return luaG_ordererror(L,l,r);
else if(ttisnumber(l))
return luai_numlt(nvalue(l),nvalue(r));
else if(ttisstring(l))
return l_strcmp(rawtsvalue(l),rawtsvalue(r))<0;
else if((res=call_orderTM(L,l,r,TM_LT))!=-1)
return res;
return luaG_ordererror(L,l,r);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r15
movl 0x8(%rsi), %eax
cmpl 0x8(%rdx), %eax
jne 0x7468
cmpl $0x4, %eax
je 0x7440
cmpl $0x3, %eax
jne 0x7450
movsd (%rbx), %xmm0
xorl %eax, %eax
ucomisd (%r14), %xmm0
seta %al
jmp 0x7478
movq (%r14), %rdi
movq (%rbx), %rsi
callq 0x802d
shrl $0x1f, %eax
jmp 0x7478
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0xd, %ecx
callq 0x80ad
cmpl $-0x1, %eax
jne 0x7478
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
callq 0x7fee
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaV_tonumber
static const TValue*luaV_tonumber(const TValue*obj,TValue*n){
lua_Number num;
if(ttisnumber(obj))return obj;
if(ttisstring(obj)&&luaO_str2d(svalue(obj),&num)){
setnvalue(n,num);
return n;
}
else
return NULL;
}

// Assembly:
pushq %rbx
subq $0x10, %rsp
movl 0x8(%rdi), %eax
cmpl $0x3, %eax
je 0x74bf
cmpl $0x4, %eax
jne 0x74bb
movq %rsi, %rbx
movq (%rdi), %rdi
addq $0x18, %rdi
leaq 0x8(%rsp), %rsi
callq 0x8139
testl %eax, %eax
je 0x74bb
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rbx)
movl $0x3, 0x8(%rbx)
jmp 0x74c2
xorl %ebx, %ebx
jmp 0x74c2
movq %rdi, %rbx
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaH_setnum
static TValue*luaH_setnum(lua_State*L,Table*t,int key){
const TValue*p=luaH_getnum(t,key);
if(p!=(&luaO_nilobject_))
return cast(TValue*,p);
else{
TValue k;
setnvalue(&k,cast_num(key));
return newkey(L,t,&k);
}
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x10, %rsp
movl %edx, %ebp
movq %rsi, %rbx
movq %rdi, %r14
movq %rsi, %rdi
movl %edx, %esi
callq 0x76d7
leaq 0xcf34(%rip), %rcx      # 0x14420
cmpq %rcx, %rax
jne 0x750e
cvtsi2sd %ebp, %xmm0
movq %rsp, %rdx
movsd %xmm0, (%rdx)
movl $0x3, 0x8(%rdx)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x78c4
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaF_newLclosure
static Closure*luaF_newLclosure(lua_State*L,int nelems,Table*e){
Closure*c=cast(Closure*,luaM_malloc(L,sizeLclosure(nelems)));
luaC_link(L,obj2gco(c),6);
c->l.isC=0;
c->l.env=e;
c->l.nupvalues=cast_byte(nelems);
while(nelems--)c->l.upvals[nelems]=NULL;
return c;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r15
movl %esi, %ebx
movq %rdi, %r12
leal 0x28(,%rbx,8), %ecx
xorl %esi, %esi
xorl %edx, %edx
callq 0x42ab
movq %rax, %r14
movq 0x20(%r12), %rax
movq 0x28(%rax), %rcx
movq %rcx, (%r14)
movq %r14, 0x28(%rax)
movb 0x20(%rax), %al
andb $0x3, %al
movb %al, 0x9(%r14)
movb $0x6, 0x8(%r14)
movb $0x0, 0xa(%r14)
movq %r15, 0x18(%r14)
movb %bl, 0xb(%r14)
testl %ebx, %ebx
je 0x758f
leal -0x1(%rbx), %eax
movslq %eax, %rcx
shlq $0x3, %rcx
shlq $0x3, %rax
subq %rax, %rcx
leaq (%rcx,%r14), %rdi
addq $0x28, %rdi
movl %ebx, %edx
shlq $0x3, %rdx
xorl %esi, %esi
callq 0x3100
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaH_get
static const TValue*luaH_get(Table*t,const TValue*key){
switch(ttype(key)){
case 0:return(&luaO_nilobject_);
case 4:return luaH_getstr(t,rawtsvalue(key));
case 3:{
int k;
lua_Number n=nvalue(key);
lua_number2int(k,n);
if(luai_numeq(cast_num(k),nvalue(key)))
return luaH_getnum(t,k);
}
default:{
Node*n=mainposition(t,key);
do{
if(luaO_rawequalObj(key2tval(n),key))
return gval(n);
else n=gnext(n);
}while(n);
return(&luaO_nilobject_);
}
}
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl 0x8(%rsi), %eax
leaq 0xce6d(%rip), %r12      # 0x14420
testl %eax, %eax
je 0x7670
movq %rsi, %rbx
movq %rdi, %r15
cmpl $0x3, %eax
je 0x7608
cmpl $0x4, %eax
jne 0x7649
movq (%rbx), %rax
movb 0xb(%r15), %cl
movq $-0x1, %rdx
shlq %cl, %rdx
notl %edx
andl 0xc(%rax), %edx
movslq %edx, %rcx
leaq (%rcx,%rcx,4), %r14
shlq $0x3, %r14
addq 0x20(%r15), %r14
cmpl $0x4, 0x18(%r14)
jne 0x75fd
cmpq %rax, 0x10(%r14)
je 0x7673
movq 0x20(%r14), %r14
testq %r14, %r14
jne 0x75f0
jmp 0x7670
movsd (%rbx), %xmm1
cvttpd2dq %xmm1, %xmm0
cvtdq2pd %xmm0, %xmm0
ucomisd %xmm0, %xmm1
jne 0x7641
jp 0x7641
cvttsd2si %xmm1, %esi
movq %r15, %rdi
movapd %xmm1, 0x10(%rsp)
movapd %xmm0, (%rsp)
callq 0x76d7
movapd (%rsp), %xmm0
movapd 0x10(%rsp), %xmm1
movq %rax, %r14
ucomisd %xmm0, %xmm1
jne 0x7649
jnp 0x7673
movq %r15, %rdi
movq %rbx, %rsi
callq 0x7752
movq %rax, %r14
leaq 0x10(%r14), %rdi
movq %rbx, %rsi
callq 0x7805
testl %eax, %eax
jne 0x7673
movq 0x20(%r14), %r14
testq %r14, %r14
jne 0x7657
movq %r12, %r14
movq %r14, %rax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaT_gettm
static const TValue*luaH_getstr(Table*t,TString*key){
Node*n=hashstr(t,key);
do{
if(ttisstring(gkey(n))&&rawtsvalue(gkey(n))==key)
return gval(n);
else n=gnext(n);
}while(n);
return(&luaO_nilobject_);
}

// Assembly:
movb 0xb(%rdi), %cl
movq $-0x1, %rax
shlq %cl, %rax
notl %eax
andl 0xc(%rdx), %eax
cltq
leaq (%rax,%rax,4), %rax
shlq $0x3, %rax
addq 0x20(%rdi), %rax
leaq 0xcd77(%rip), %rcx      # 0x14420
cmpl $0x4, 0x18(%rax)
jne 0x76b5
cmpq %rdx, 0x10(%rax)
je 0x76c1
movq 0x20(%rax), %rax
testq %rax, %rax
jne 0x76a9
movq %rcx, %rax
cmpl $0x0, 0x8(%rax)
je 0x76c8
retq
movl $0x1, %eax
movl %esi, %ecx
shll %cl, %eax
orb %al, 0xa(%rdi)
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaH_getnum
static const TValue*luaH_getnum(Table*t,int key){
if(cast(unsigned int,key-1)<cast(unsigned int,t->sizearray))
return&t->array[key-1];
else{
lua_Number nk=cast_num(key);
Node*n=hashnum(t,nk);
do{
if(ttisnumber(gkey(n))&&luai_numeq(nvalue(gkey(n)),nk))
return gval(n);
else n=gnext(n);
}while(n);
return(&luaO_nilobject_);
}
}

// Assembly:
leal -0x1(%rsi), %eax
cmpl 0x38(%rdi), %eax
jae 0x76ea
cltq
shlq $0x4, %rax
addq 0x18(%rdi), %rax
retq
cvtsi2sd %esi, %xmm0
testl %esi, %esi
je 0x7727
movq %xmm0, %rdx
movq %rdx, %rax
movb 0xb(%rdi), %cl
movq $-0x1, %rsi
shlq %cl, %rsi
shrq $0x20, %rax
addl %edx, %eax
notq %rsi
orq $0x1, %rsi
xorl %edx, %edx
divq %rsi
leaq (%rdx,%rdx,4), %rax
shlq $0x3, %rax
addq 0x20(%rdi), %rax
jmp 0x772b
movq 0x20(%rdi), %rax
leaq 0xccee(%rip), %rcx      # 0x14420
cmpl $0x3, 0x18(%rax)
jne 0x7745
movsd 0x10(%rax), %xmm1
ucomisd %xmm0, %xmm1
jne 0x7745
jnp 0x76e9
movq 0x20(%rax), %rax
testq %rax, %rax
jne 0x7732
movq %rcx, %rax
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: mainposition
static Node*mainposition(const Table*t,const TValue*key){
switch(ttype(key)){
case 3:
return hashnum(t,nvalue(key));
case 4:
return hashstr(t,rawtsvalue(key));
case 1:
return hashboolean(t,bvalue(key));
case 2:
return hashpointer(t,pvalue(key));
default:
return hashpointer(t,gcvalue(key));
}
}

// Assembly:
movl 0x8(%rsi), %eax
decl %eax
cmpl $0x3, %eax
ja 0x7781
leaq 0xc9ad(%rip), %rcx      # 0x14110
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb 0xb(%rdi), %cl
movq $-0x1, %rax
shlq %cl, %rax
notl %eax
andl (%rsi), %eax
cltq
jmp 0x77cf
movb 0xb(%rdi), %cl
movq $-0x1, %r8
shlq %cl, %r8
movl (%rsi), %eax
notq %r8
orq $0x1, %r8
xorl %edx, %edx
divq %r8
leaq (%rdx,%rdx,4), %rax
jmp 0x77d3
movsd (%rsi), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x77dc
jp 0x77dc
movq 0x20(%rdi), %rax
retq
movq (%rsi), %rax
movb 0xb(%rdi), %cl
movq $-0x1, %rdx
shlq %cl, %rdx
notl %edx
andl 0xc(%rax), %edx
movslq %edx, %rax
leaq (%rax,%rax,4), %rax
shlq $0x3, %rax
addq 0x20(%rdi), %rax
retq
movq %xmm0, %rdx
movq %rdx, %rax
movb 0xb(%rdi), %cl
movq $-0x1, %rsi
shlq %cl, %rsi
shrq $0x20, %rax
addl %edx, %eax
notq %rsi
orq $0x1, %rsi
xorl %edx, %edx
divq %rsi
jmp 0x779c
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaO_rawequalObj
static int luaO_rawequalObj(const TValue*t1,const TValue*t2){
if(ttype(t1)!=ttype(t2))return 0;
else switch(ttype(t1)){
case 0:
return 1;
case 3:
return luai_numeq(nvalue(t1),nvalue(t2));
case 1:
return bvalue(t1)==bvalue(t2);
case 2:
return pvalue(t1)==pvalue(t2);
default:
return gcvalue(t1)==gcvalue(t2);
}
}

// Assembly:
movl 0x8(%rdi), %eax
cmpl 0x8(%rsi), %eax
jne 0x7828
cmpl $0x3, %eax
ja 0x782c
movl %eax, %eax
leaq 0xc905(%rip), %rcx      # 0x14120
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb $0x1, %al
jmp 0x784e
xorl %eax, %eax
jmp 0x784e
movq (%rdi), %rax
cmpq (%rsi), %rax
jmp 0x7838
movl (%rdi), %eax
cmpl (%rsi), %eax
sete %al
jmp 0x784e
movsd (%rsi), %xmm0
cmpeqsd (%rdi), %xmm0
movq %xmm0, %rax
andl $0x1, %eax
movzbl %al, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaH_set
static TValue*luaH_set(lua_State*L,Table*t,const TValue*key){
const TValue*p=luaH_get(t,key);
t->flags=0;
if(p!=(&luaO_nilobject_))
return cast(TValue*,p);
else{
if(ttisnil(key))luaG_runerror(L,"table index is nil");
else if(ttisnumber(key)&&luai_numisnan(nvalue(key)))
luaG_runerror(L,"table index is NaN");
return newkey(L,t,key);
}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r14
movq %rsi, %r15
movq %rdi, %rbx
movq %rsi, %rdi
movq %rdx, %rsi
callq 0x759e
movb $0x0, 0xa(%r15)
leaq 0xcba9(%rip), %rcx      # 0x14420
cmpq %rcx, %rax
je 0x7882
popq %rbx
popq %r14
popq %r15
retq
movl 0x8(%r14), %eax
cmpl $0x3, %eax
je 0x7898
testl %eax, %eax
jne 0x78a3
leaq 0xcecd(%rip), %rsi      # 0x14763
jmp 0x78ba
movsd (%r14), %xmm0
ucomisd %xmm0, %xmm0
jp 0x78b3
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x78c4
leaq 0xcebc(%rip), %rsi      # 0x14776
movq %rbx, %rdi
xorl %eax, %eax
callq 0x46c4
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: countint
static int countint(const TValue*key,int*nums){
int k=arrayindex(key);
if(0<k&&k<=(1<<(32-2))){
nums[ceillog2(k)]++;
return 1;
}
else
return 0;
}

// Assembly:
cmpl $0x3, 0x8(%rdi)
jne 0x7be2
movsd (%rdi), %xmm0
cvttpd2dq %xmm0, %xmm1
cvtdq2pd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x7be2
jnp 0x7c32
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
decl %ecx
xorl %eax, %eax
cmpl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
ja 0x7c31
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x100, %ecx            # imm = 0x100
jb 0x7c14
movl %ecx, %edx
addl $0x8, %eax
shrl $0x8, %edx
cmpl $0xffff, %ecx           # imm = 0xFFFF
movl %edx, %ecx
ja 0x7c02
jmp 0x7c16
movl %ecx, %edx
movl %edx, %ecx
leaq 0xc841(%rip), %rdx      # 0x14460
movzbl (%rcx,%rdx), %ecx
cltq
addq %rcx, %rax
incl 0x4(%rsi,%rax,4)
movl $0x1, %eax
retq
cvttsd2si %xmm0, %ecx
jmp 0x7be7
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: resize
static void resize(lua_State*L,Table*t,int nasize,int nhsize){
int i;
int oldasize=t->sizearray;
int oldhsize=t->lsizenode;
Node*nold=t->node;
if(nasize>oldasize)
setarrayvector(L,t,nasize);
setnodevector(L,t,nhsize);
if(nasize<oldasize){
t->sizearray=nasize;
for(i=nasize;i<oldasize;i++){
if(!ttisnil(&t->array[i]))
setobj(L,luaH_setnum(L,t,i+1),&t->array[i]);
}
luaM_reallocvector(L,t->array,oldasize,nasize,TValue);
}
for(i=twoto(oldhsize)-1;i>=0;i--){
Node*old=nold+i;
if(!ttisnil(gval(old)))
setobj(L,luaH_set(L,t,key2tval(old)),gval(old));
}
if(nold!=(&dummynode_))
luaM_freearray(L,nold,twoto(oldhsize),Node);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movl %edx, %ebp
movq %rsi, %r12
movq %rdi, %rbx
movslq 0x38(%rsi), %r15
movzbl 0xb(%rsi), %r13d
movq 0x20(%rsi), %r14
cmpl %edx, %r15d
jge 0x7c73
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
movl %ecx, (%rsp)
callq 0x7dd4
movl (%rsp), %ecx
movq %rbx, %rdi
movq %r12, %rsi
movl %ecx, %edx
callq 0x7e3f
cmpl %ebp, %r15d
jle 0x7d31
movq %r13, 0x18(%rsp)
movq %r14, 0x20(%rsp)
movl %ebp, 0x38(%r12)
movslq %ebp, %rax
movq %rbp, (%rsp)
leal 0x1(%rbp), %r14d
shlq $0x4, %rax
movq %r15, %r13
movq %rax, 0x8(%rsp)
leaq 0x8(%rax), %r15
movq %r13, 0x10(%rsp)
negl %r13d
movq 0x18(%r12), %rbp
cmpl $0x0, (%rbp,%r15)
je 0x7ce6
movq %rbx, %rdi
movq %r12, %rsi
movl %r14d, %edx
callq 0x74cb
movq -0x8(%rbp,%r15), %rcx
movq %rcx, (%rax)
movl (%rbp,%r15), %ecx
movl %ecx, 0x8(%rax)
addq $0x10, %r15
leal (%r14,%r13), %eax
incl %eax
movl %r14d, %ecx
incl %ecx
movl %ecx, %r14d
cmpl $0x1, %eax
jne 0x7cbb
cmpl $-0x1, (%rsp)
jl 0x7dc3
movq 0x18(%r12), %rsi
movq 0x10(%rsp), %rdx
shlq $0x4, %rdx
movq %rbx, %rdi
movq 0x8(%rsp), %rcx
callq 0x42ab
movq %rax, 0x18(%r12)
movq 0x20(%rsp), %r14
movq 0x18(%rsp), %r13
movl $0x1, %eax
movq %r13, %rbp
movl %ebp, %ecx
shlq %cl, %rax
decl %eax
movq %r14, %r13
js 0x7d86
movl %eax, %r15d
leaq (%r15,%r15,4), %rax
incq %r15
leaq 0x10(,%rax,8), %r14
addq %r13, %r14
cmpl $0x0, -0x8(%r14)
je 0x7d7d
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x7852
movq -0x10(%r14), %rcx
movq %rcx, (%rax)
movl -0x8(%r14), %ecx
movl %ecx, 0x8(%rax)
addq $-0x28, %r14
decq %r15
jg 0x7d5a
leaq 0xc6a3(%rip), %rax      # 0x14430
cmpq %rax, %r13
je 0x7db4
movl $0x28, %r14d
movl %ebp, %ecx
shlq %cl, %r14
movq 0x20(%rbx), %rbx
movq 0x18(%rbx), %rdi
movq %r13, %rsi
movq %r14, %rdx
xorl %ecx, %ecx
callq *0x10(%rbx)
subq %r14, 0x78(%rbx)
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xc84f(%rip), %rsi      # 0x14619
movq %rbx, %rdi
xorl %eax, %eax
callq 0x46c4
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: setarrayvector
static void setarrayvector(lua_State*L,Table*t,int size){
int i;
luaM_reallocvector(L,t->array,t->sizearray,size,TValue);
for(i=t->sizearray;i<size;i++)
setnilvalue(&t->array[i]);
t->sizearray=size;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
cmpl $-0x1, %edx
jl 0x7e31
movl %edx, %ebx
movq %rsi, %r14
movq 0x18(%rsi), %rsi
movslq 0x38(%r14), %rdx
shlq $0x4, %rdx
movslq %ebx, %r15
movq %r15, %rcx
shlq $0x4, %rcx
callq 0x42ab
movq %rax, 0x18(%r14)
movslq 0x38(%r14), %rcx
cmpl %ebx, %ecx
jge 0x7e27
subq %rcx, %r15
shlq $0x4, %rcx
addq %rcx, %rax
addq $0x8, %rax
movl $0x0, (%rax)
addq $0x10, %rax
decq %r15
jne 0x7e18
movl %ebx, 0x38(%r14)
popq %rbx
popq %r14
popq %r15
retq
leaq 0xc7e1(%rip), %rsi      # 0x14619
xorl %eax, %eax
callq 0x46c4
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: setnodevector
static void setnodevector(lua_State*L,Table*t,int size){
int lsize;
if(size==0){
t->node=cast(Node*,(&dummynode_));
lsize=0;
}
else{
int i;
lsize=ceillog2(size);
if(lsize>(32-2))
luaG_runerror(L,"table overflow");
size=twoto(lsize);
t->node=luaM_newvector(L,size,Node);
for(i=0;i<size;i++){
Node*n=gnode(t,i);
gnext(n)=NULL;
setnilvalue(gkey(n));
setnilvalue(gval(n));
}
}
t->lsizenode=cast_byte(lsize);
t->lastfree=gnode(t,size);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
testl %edx, %edx
je 0x7e77
decl %edx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x100, %edx            # imm = 0x100
jb 0x7e8d
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %edx, %ecx
addl $0x8, %eax
shrl $0x8, %ecx
cmpl $0xffff, %edx           # imm = 0xFFFF
movl %ecx, %edx
ja 0x7e65
jmp 0x7e8f
leaq 0xc5b2(%rip), %rax      # 0x14430
movq %rax, 0x20(%rbx)
xorl %r14d, %r14d
xorl %r15d, %r15d
jmp 0x7f1f
movl %edx, %ecx
movl %ecx, %ecx
leaq 0xc5c8(%rip), %rdx      # 0x14460
movzbl (%rcx,%rdx), %ecx
leal (%rax,%rcx), %edx
cmpl $0x1e, %edx
jge 0x7f3d
leal (%rax,%rcx), %r14d
incl %r14d
movl $0x1, %r12d
movl %r14d, %ecx
shlq %cl, %r12
movabsq $0x100000000, %rax      # imm = 0x100000000
movq %rax, %r15
shlq %cl, %r15
addq %r15, %rax
js 0x7f46
movq %r15, %rax
sarq $0x1d, %rax
leaq (%rax,%rax,4), %rcx
xorl %r13d, %r13d
xorl %esi, %esi
xorl %edx, %edx
callq 0x42ab
movq %rax, 0x20(%rbx)
testl %r12d, %r12d
jle 0x7f1b
andl $0x7fffffff, %r12d      # imm = 0x7FFFFFFF
movl $0x20, %eax
movq 0x20(%rbx), %rcx
movq $0x0, (%rcx,%rax)
movl %r13d, -0x8(%rcx,%rax)
movl %r13d, -0x18(%rcx,%rax)
addq $0x28, %rax
decq %r12
jne 0x7efc
sarq $0x20, %r15
movb %r14b, 0xb(%rbx)
leaq (%r15,%r15,4), %rax
shlq $0x3, %rax
addq 0x20(%rbx), %rax
movq %rax, 0x28(%rbx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0xcc2e(%rip), %rsi      # 0x14b72
jmp 0x7f4d
leaq 0xc6cc(%rip), %rsi      # 0x14619
xorl %eax, %eax
callq 0x46c4
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: get_compTM
static const TValue*get_compTM(lua_State*L,Table*mt1,Table*mt2,
TMS event){
const TValue*tm1=fasttm(L,mt1,event);
const TValue*tm2;
if(tm1==NULL)return NULL;
if(mt1==mt2)return tm1;
tm2=fasttm(L,mt2,event);
if(tm2==NULL)return NULL;
if(luaO_rawequalObj(tm1,tm2))
return tm1;
return NULL;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r12
movq %rdi, %r15
testq %rsi, %rsi
je 0x7f8f
testb $0x10, 0xa(%r12)
jne 0x7f8f
movq 0x20(%r15), %rax
movq 0x148(%rax), %rdx
movq %r12, %rdi
movl $0x4, %esi
callq 0x7682
movq %rax, %rbx
jmp 0x7f91
xorl %ebx, %ebx
testq %rbx, %rbx
je 0x7fdd
cmpq %r14, %r12
je 0x7fdf
testq %r14, %r14
je 0x7fc4
testb $0x10, 0xa(%r14)
jne 0x7fc4
movq 0x20(%r15), %rax
movq 0x148(%rax), %rdx
movq %r14, %rdi
movl $0x4, %esi
callq 0x7682
movq %rax, %rsi
jmp 0x7fc6
xorl %esi, %esi
testq %rsi, %rsi
je 0x7fdd
movq %rbx, %rdi
callq 0x7805
xorl %ecx, %ecx
testl %eax, %eax
cmoveq %rcx, %rbx
jmp 0x7fdf
xorl %ebx, %ebx
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaG_ordererror
static int luaG_ordererror(lua_State*L,const TValue*p1,const TValue*p2){
const char*t1=luaT_typenames[ttype(p1)];
const char*t2=luaT_typenames[ttype(p2)];
if(t1[2]==t2[2])
luaG_runerror(L,"attempt to compare two %s values",t1);
else
luaG_runerror(L,"attempt to compare %s with %s",t1,t2);
return 0;
}

// Assembly:
pushq %rax
movq %rdx, %rax
movslq 0x8(%rsi), %rcx
leaq 0x12863(%rip), %rsi     # 0x1a860
movq (%rsi,%rcx,8), %rdx
movslq 0x8(%rax), %rax
movq (%rsi,%rax,8), %rcx
movb 0x2(%rdx), %al
cmpb 0x2(%rcx), %al
jne 0x801f
leaq 0xc787(%rip), %rsi      # 0x1479f
xorl %eax, %eax
callq 0x46c4
leaq 0xc79a(%rip), %rsi      # 0x147c0
xorl %eax, %eax
callq 0x46c4
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: l_strcmp
static int l_strcmp(const TString*ls,const TString*rs){
const char*l=getstr(ls);
size_t ll=ls->tsv.len;
const char*r=getstr(rs);
size_t lr=rs->tsv.len;
for(;;){
int temp=strcoll(l,r);
if(temp!=0)return temp;
else{
size_t len=strlen(l);
if(len==lr)
return(len==ll)?0:1;
else if(len==ll)
return-1;
len++;
l+=len;ll-=len;r+=len;lr-=len;
}
}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rdi), %r15
addq $0x18, %r14
movq 0x10(%rsi), %r12
addq $0x18, %rbx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x3210
testl %eax, %eax
je 0x8060
xorl %ecx, %ecx
movl %eax, %ebp
jmp 0x809e
movq %r14, %rdi
callq 0x30e0
cmpq %r12, %rax
jne 0x8078
xorl %ebp, %ebp
cmpq %r15, %rax
setne %bpl
jmp 0x8082
cmpq %r15, %rax
jne 0x8086
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
xorl %ecx, %ecx
jmp 0x809e
leaq 0x1(%rax), %rcx
addq %rax, %r14
incq %r14
subq %rcx, %r15
addq %rax, %rbx
incq %rbx
subq %rcx, %r12
movb $0x1, %cl
testb %cl, %cl
jne 0x804b
movl %ebp, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: call_orderTM
static int call_orderTM(lua_State*L,const TValue*p1,const TValue*p2,
TMS event){
const TValue*tm1=luaT_gettmbyobj(L,p1,event);
const TValue*tm2;
if(ttisnil(tm1))return-1;
tm2=luaT_gettmbyobj(L,p2,event);
if(!luaO_rawequalObj(tm1,tm2))
return-1;
callTMres(L,L->top,tm1,p1,p2);
return!l_isfalse(L->top);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %r14
movl %ecx, %edx
callq 0x5120
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpl $0x0, 0x8(%rax)
je 0x8128
movq %rax, %r13
movq %r14, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x5120
movq %r13, %rdi
movq %rax, %rsi
callq 0x7805
testl %eax, %eax
je 0x8128
movq 0x10(%r14), %rsi
movq %r14, %rdi
movq %r13, %rdx
movq %r12, %rcx
movq %r15, %r8
callq 0x519e
movq 0x10(%r14), %rax
movl 0x8(%rax), %ebx
testl %ebx, %ebx
je 0x8128
cmpl $0x1, %ebx
jne 0x8123
xorl %ebx, %ebx
cmpl $0x0, (%rax)
setne %bl
jmp 0x8128
movl $0x1, %ebx
movl %ebx, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaO_str2d
static int luaO_str2d(const char*s,lua_Number*result){
char*endptr;
*result=lua_str2number(s,&endptr);
if(endptr==s)return 0;
if(*endptr=='x'||*endptr=='X')
*result=cast_num(strtoul(s,&endptr,16));
if(*endptr=='\0')return 1;
while(isspace(cast(unsigned char,*endptr)))endptr++;
if(*endptr!='\0')return 0;
return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x8(%rsp), %r15
movq %r15, %rsi
callq 0x30b0
movsd %xmm0, (%rbx)
movq (%r15), %rax
cmpq %r14, %rax
je 0x81d9
movzbl (%rax), %eax
orl $0x20, %eax
cmpl $0x78, %eax
jne 0x81a3
leaq 0x8(%rsp), %rsi
movq %r14, %rdi
movl $0x10, %edx
callq 0x3260
movq %rax, %xmm0
punpckldq 0xc405(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0xc40d(%rip), %xmm0     # 0x145a0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd %xmm1, (%rbx)
movq 0x8(%rsp), %rax
cmpb $0x0, (%rax)
je 0x81dd
callq 0x32f0
movq (%rax), %rcx
movq 0x8(%rsp), %rax
decq %rax
movzbl 0x1(%rax), %edx
incq %rax
testb $0x20, 0x1(%rcx,%rdx,2)
jne 0x81bd
movq %rax, 0x8(%rsp)
xorl %eax, %eax
testb %dl, %dl
sete %al
jmp 0x81e2
xorl %eax, %eax
jmp 0x81e2
movl $0x1, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: GCTM
static void GCTM(lua_State*L){
global_State*g=G(L);
GCObject*o=g->tmudata->gch.next;
Udata*udata=rawgco2u(o);
const TValue*tm;
if(o==g->tmudata)
g->tmudata=NULL;
else
g->tmudata->gch.next=udata->uv.next;
udata->uv.next=g->mainthread->next;
g->mainthread->next=o;
makewhite(g,o);
tm=fasttm(L,udata->uv.metatable,TM_GC);
if(tm!=NULL){
lu_byte oldah=L->allowhook;
lu_mem oldt=g->GCthreshold;
L->allowhook=0;
g->GCthreshold=2*g->totalbytes;
setobj(L,L->top,tm);
setuvalue(L,L->top+1,udata);
L->top+=2;
luaD_call(L,L->top-2,0);
L->allowhook=oldah;
g->GCthreshold=oldt;
}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rdi), %r14
movq 0x50(%r14), %rax
movq (%rax), %r15
cmpq %rax, %r15
je 0x89f5
movq (%r15), %rcx
movq %rcx, (%rax)
jmp 0x89fd
movq $0x0, 0x50(%r14)
movq 0xb0(%r14), %rax
movq (%rax), %rax
movq %rax, (%r15)
movq 0xb0(%r14), %rax
movq %r15, (%rax)
movb 0x9(%r15), %al
andb $-0x8, %al
movb 0x20(%r14), %cl
andb $0x3, %cl
orb %al, %cl
movb %cl, 0x9(%r15)
movq 0x10(%r15), %rdi
testq %rdi, %rdi
je 0x8a4d
testb $0x4, 0xa(%rdi)
jne 0x8a4d
movq 0x20(%rbx), %rax
movq 0x138(%rax), %rdx
movl $0x2, %esi
callq 0x7682
jmp 0x8a4f
xorl %eax, %eax
testq %rax, %rax
je 0x8aa8
movb 0x65(%rbx), %bpl
movq 0x70(%r14), %r12
movb $0x0, 0x65(%rbx)
movq 0x78(%r14), %rcx
addq %rcx, %rcx
movq %rcx, 0x70(%r14)
movq 0x10(%rbx), %rcx
movq (%rax), %rdx
movq %rdx, (%rcx)
movl 0x8(%rax), %eax
movl %eax, 0x8(%rcx)
movq 0x10(%rbx), %rax
movq %r15, 0x10(%rax)
movl $0x7, 0x18(%rax)
movq 0x10(%rbx), %rsi
leaq 0x20(%rsi), %rax
movq %rax, 0x10(%rbx)
movq %rbx, %rdi
xorl %edx, %edx
callq 0x523c
movb %bpl, 0x65(%rbx)
movq %r12, 0x70(%r14)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaC_separateudata
static size_t luaC_separateudata(lua_State*L,int all){
global_State*g=G(L);
size_t deadmem=0;
GCObject**p=&g->mainthread->next;
GCObject*curr;
while((curr=*p)!=NULL){
if(!(iswhite(curr)||all)||isfinalized(gco2u(curr)))
p=&curr->gch.next;
else if(fasttm(L,gco2u(curr)->metatable,TM_GC)==NULL){
markfinalized(gco2u(curr));
p=&curr->gch.next;
}
else{
deadmem+=sizeudata(gco2u(curr));
markfinalized(gco2u(curr));
*p=curr->gch.next;
if(g->tmudata==NULL)
g->tmudata=curr->gch.next=curr;
else{
curr->gch.next=g->tmudata->gch.next;
g->tmudata->gch.next=curr;
g->tmudata=curr;
}
}
}
return deadmem;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq 0x20(%rdi), %r12
movq 0xb0(%r12), %rbp
movq (%rbp), %r13
testq %r13, %r13
je 0x8b9f
movl %esi, %ebx
movq %rdi, %r14
xorl %r15d, %r15d
movzbl 0x9(%r13), %eax
testb $0x8, %al
jne 0x8b83
andl $0x3, %eax
orl %ebx, %eax
je 0x8b83
movq 0x10(%r13), %rdi
testq %rdi, %rdi
je 0x8b7e
testb $0x4, 0xa(%rdi)
jne 0x8b7e
movq 0x20(%r14), %rax
movq 0x138(%rax), %rdx
movl $0x2, %esi
callq 0x7682
testq %rax, %rax
je 0x8b7e
movq (%r13), %rax
movq 0x20(%r13), %rcx
orb $0x8, 0x9(%r13)
addq %rcx, %r15
addq $0x28, %r15
movq %rax, (%rbp)
movq 0x50(%r12), %rax
testq %rax, %rax
je 0x8b91
movq (%rax), %rax
movq %rax, (%r13)
movq 0x50(%r12), %rax
movq %r13, (%rax)
jmp 0x8b95
orb $0x8, 0x9(%r13)
movq %r13, %rbp
movq (%r13), %r13
testq %r13, %r13
jne 0x8b12
jmp 0x8ba2
movq %r13, (%r13)
movq %r13, 0x50(%r12)
movq %rbp, %r13
jmp 0x8b83
xorl %r15d, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: iscleared
static int iscleared(const TValue*o,int iskey){
if(!iscollectable(o))return 0;
if(ttisstring(o)){
stringmark(rawtsvalue(o));
return 0;
}
return iswhite(gcvalue(o))||
(ttisuserdata(o)&&(!iskey&&isfinalized(uvalue(o))));
}

// Assembly:
movl 0x8(%rdi), %edx
xorl %eax, %eax
cmpl $0x4, %edx
jl 0x8bd8
movq (%rdi), %rdi
movzbl 0x9(%rdi), %ecx
jne 0x8bce
andb $-0x4, %cl
movb %cl, 0x9(%rdi)
retq
movl $0x1, %eax
testb $0x3, %cl
je 0x8bd9
retq
xorl $0x7, %edx
orl %edx, %esi
movl $0x0, %eax
jne 0x8bd8
shrl $0x3, %ecx
andl $0x1, %ecx
movl %ecx, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: lua_pushcclosure
static void lua_pushcclosure(lua_State*L,lua_CFunction fn,int n){
Closure*cl;
luaC_checkGC(L);
api_checknelems(L,n);
cl=luaF_newCclosure(L,n,getcurrenv(L));
cl->c.f=fn;
L->top-=n;
while(n--)
setobj(L,&cl->c.upvalue[n],L->top+n);
setclvalue(L,L->top,cl);
api_incr_top(L);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x20(%rdi), %rax
movq 0x78(%rax), %rcx
cmpq 0x70(%rax), %rcx
jb 0x8c76
movq %rbx, %rdi
callq 0x68ed
movq 0x28(%rbx), %rax
cmpq 0x50(%rbx), %rax
je 0x8c8d
movq 0x8(%rax), %rax
movq (%rax), %rax
addq $0x18, %rax
jmp 0x8c91
leaq 0x78(%rbx), %rax
movq (%rax), %r15
movl %ebp, %ecx
shll $0x4, %ecx
addl $0x28, %ecx
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x42ab
movq 0x20(%rbx), %rcx
movq 0x28(%rcx), %rdx
movq %rdx, (%rax)
movq %rax, 0x28(%rcx)
movb 0x20(%rcx), %cl
andb $0x3, %cl
movb %cl, 0x9(%rax)
movb $0x6, 0x8(%rax)
movb $0x1, 0xa(%rax)
movq %r15, 0x18(%rax)
movb %bpl, 0xb(%rax)
movq %r14, 0x20(%rax)
movl %ebp, %ecx
shlq $0x4, %rcx
subq %rcx, 0x10(%rbx)
testl %ebp, %ebp
je 0x8d0b
movslq %ebp, %rcx
movq %rcx, %rdx
shlq $0x4, %rdx
movq 0x10(%rbx), %rsi
movq -0x10(%rsi,%rdx), %rdi
movq %rdi, 0x18(%rax,%rdx)
movl -0x8(%rsi,%rdx), %esi
movl %esi, 0x20(%rax,%rdx)
addq $-0x10, %rdx
decq %rcx
jne 0x8cec
movq 0x10(%rbx), %rcx
movq %rax, (%rcx)
movl $0x6, 0x8(%rcx)
addq $0x10, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaopen_io
static int luaopen_io(lua_State*L){
createmeta(L);
newfenv(L,io_fclose);
lua_replace(L,(-10001));
luaL_register(L,"io",iolib);
newfenv(L,io_noclose);
createstdfile(L,stdin,1,"stdin");
createstdfile(L,stdout,2,"stdout");
createstdfile(L,stderr,0,"stderr");
lua_pop(L,1);
lua_getfield(L,-1,"popen");
newfenv(L,io_pclose);
lua_setfenv(L,-2);
lua_pop(L,1);
return 1;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
leaq 0xc105(%rip), %rdx      # 0x14f89
movl $0xffffd8f0, %esi       # imm = 0xFFFFD8F0
callq 0x107d1
movq 0x10(%rbx), %rcx
leaq -0x10(%rcx), %rax
leaq 0xb583(%rip), %rdx      # 0x14420
cmpq %rdx, %rax
je 0x8ee0
cmpl $0x0, -0x8(%rcx)
jne 0x8ee0
movq %rax, 0x10(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0x38a8
movq 0x10(%rbx), %rax
movq -0x10(%rax), %rcx
movq %rcx, (%rax)
movl -0x8(%rax), %ecx
movl %ecx, 0x8(%rax)
addq $0x10, 0x10(%rbx)
leaq 0xc0b6(%rip), %rdx      # 0x14f89
movq %rbx, %rdi
movl $0xffffd8f0, %esi       # imm = 0xFFFFD8F0
callq 0x39ab
movq 0x10(%rbx), %rax
movq -0x10(%rax), %rcx
movq %rcx, (%rax)
movl -0x8(%rax), %ecx
movl %ecx, 0x8(%rax)
addq $0x10, 0x10(%rbx)
leaq 0xb8ed(%rip), %rdx      # 0x147ea
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x39ab
leaq 0x11d5f(%rip), %rdx     # 0x1ac70
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3783
leaq 0x76f8(%rip), %rsi      # 0x1061a
movq %rbx, %rdi
callq 0x105de
movq %rbx, %rdi
movl $0xffffd8ef, %esi       # imm = 0xFFFFD8EF
callq 0x10651
leaq 0xb9be(%rip), %rsi      # 0x148fc
leaq 0x11c8b(%rip), %rdx     # 0x1abd0
movq %rbx, %rdi
callq 0x3783
leaq 0x77d6(%rip), %rsi      # 0x1072a
movq %rbx, %rdi
callq 0x105de
movq 0x12075(%rip), %rax     # 0x1afd8
movq (%rax), %rsi
leaq 0xc362(%rip), %rcx      # 0x152cf
movq %rbx, %rdi
movl $0x1, %edx
callq 0x10756
movq 0x1204f(%rip), %rax     # 0x1afd0
movq (%rax), %rsi
leaq 0xbfea(%rip), %rcx      # 0x14f75
movq %rbx, %rdi
movl $0x2, %edx
callq 0x10756
movq 0x12059(%rip), %rax     # 0x1aff8
movq (%rax), %rsi
leaq 0xbfd3(%rip), %rcx      # 0x14f7c
movq %rbx, %rdi
xorl %edx, %edx
callq 0x10756
addq $-0x10, 0x10(%rbx)
leaq 0xbfc4(%rip), %rdx      # 0x14f83
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x107d1
leaq 0x7856(%rip), %rsi      # 0x10829
movq %rbx, %rdi
callq 0x105de
movq %rbx, %rdi
callq 0xf90a
addq $-0x10, 0x10(%rbx)
movl $0x1, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaB_ipairs
static int luaB_ipairs(lua_State*L){
luaL_checktype(L,1,5);
lua_pushvalue(L,lua_upvalueindex(1));
lua_pushvalue(L,1);
lua_pushinteger(L,0);
return 3;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x1, %esi
movl $0x5, %edx
callq 0xf886
movq 0x10(%rbx), %rax
movq 0x28(%rbx), %rcx
movq 0x8(%rcx), %rcx
movq (%rcx), %rcx
cmpb $0x0, 0xb(%rcx)
leaq 0x28(%rcx), %rcx
leaq 0xb2ba(%rip), %rdx      # 0x14420
cmoveq %rdx, %rcx
movq (%rcx), %rsi
movq %rsi, (%rax)
movl 0x8(%rcx), %ecx
movl %ecx, 0x8(%rax)
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rcx
leaq 0x10(%rax), %rsi
movq %rsi, 0x10(%rbx)
cmpq %rsi, %rcx
cmovbq %rcx, %rdx
movq (%rdx), %rcx
movq %rcx, 0x10(%rax)
movl 0x8(%rdx), %ecx
movl %ecx, 0x18(%rax)
movq 0x10(%rbx), %rax
leaq 0x10(%rax), %rcx
movq %rcx, 0x10(%rbx)
movq $0x0, 0x10(%rax)
movl $0x3, 0x18(%rax)
addq $0x10, 0x10(%rbx)
movl $0x3, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: ipairsaux
static int ipairsaux(lua_State*L){
int i=luaL_checkint(L,2);
luaL_checktype(L,1,5);
i++;
lua_pushinteger(L,i);
lua_rawgeti(L,1,i);
return(lua_isnil(L,-1))?0:2;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdi, %r14
movl $0x2, %ebx
movl $0x2, %esi
callq 0xa770
movq %rax, %r15
movq %r14, %rdi
movl $0x1, %esi
movl $0x5, %edx
callq 0xf886
incl %r15d
movq 0x10(%r14), %rax
cvtsi2sd %r15d, %xmm0
movsd %xmm0, (%rax)
movl $0x3, 0x8(%rax)
addq $0x10, 0x10(%r14)
movq %r14, %rdi
movl $0x1, %esi
movl %r15d, %edx
callq 0xfb01
movq 0x10(%r14), %rax
leaq -0x10(%rax), %rcx
leaq 0xb1f8(%rip), %rdx      # 0x14420
cmpq %rdx, %rcx
je 0x9238
xorl %ebx, %ebx
cmpl $0x0, -0x8(%rax)
setne %bl
addl %ebx, %ebx
movl %ebx, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaB_pairs
static int luaB_pairs(lua_State*L){
luaL_checktype(L,1,5);
lua_pushvalue(L,lua_upvalueindex(1));
lua_pushvalue(L,1);
lua_pushnil(L);
return 3;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x1, %esi
movl $0x5, %edx
callq 0xf886
movq 0x10(%rbx), %rax
movq 0x28(%rbx), %rcx
movq 0x8(%rcx), %rcx
movq (%rcx), %rcx
leaq 0x28(%rcx), %rdx
cmpb $0x0, 0xb(%rcx)
leaq 0xb1af(%rip), %rcx      # 0x14420
cmoveq %rcx, %rdx
movq (%rdx), %rsi
movq %rsi, (%rax)
movl 0x8(%rdx), %edx
movl %edx, 0x8(%rax)
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rdx
leaq 0x10(%rax), %rsi
cmpq %rsi, %rdx
cmovbq %rdx, %rcx
movq %rsi, 0x10(%rbx)
movq (%rcx), %rdx
movq %rdx, 0x10(%rax)
movl 0x8(%rcx), %ecx
movl %ecx, 0x18(%rax)
movq 0x10(%rbx), %rax
leaq 0x10(%rax), %rcx
movq %rcx, 0x10(%rbx)
movl $0x0, 0x18(%rax)
addq $0x20, %rax
movq %rax, 0x10(%rbx)
movl $0x3, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaB_next
static int luaB_next(lua_State*L){
luaL_checktype(L,1,5);
lua_settop(L,2);
if(lua_next(L,1))
return 2;
else{
lua_pushnil(L);
return 1;
}
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %r12
movl $0x1, %esi
movl $0x5, %edx
callq 0xf886
movq 0x10(%r12), %rcx
movq 0x18(%r12), %rbp
leaq 0x20(%rbp), %rax
cmpq %rax, %rcx
jae 0x930c
movl $0x0, 0x8(%rcx)
addq $0x10, %rcx
cmpq %rax, %rcx
jb 0x92f7
movq %rcx, 0x10(%r12)
movq %rax, 0x10(%r12)
movq (%rbp), %r14
movl 0x18(%rbp), %ebx
testl %ebx, %ebx
je 0x93c2
leaq 0x10(%rbp), %r15
cmpl $0x3, %ebx
jne 0x9342
movsd (%r15), %xmm0
cvttpd2dq %xmm0, %xmm1
cvtdq2pd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x9342
jnp 0x94d4
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
testl %eax, %eax
jle 0x9351
cmpl 0x38(%r14), %eax
jle 0x93c9
movq %r12, (%rsp)
movq %r14, %rdi
movq %r15, %rsi
callq 0x7752
movq %rax, %r12
leaq 0x10(%r12), %r13
movq %r13, %rdi
movq %r15, %rsi
callq 0x7805
testl %eax, %eax
jne 0x93a9
cmpl $0x4, %ebx
jl 0x938d
cmpl $0xb, 0x18(%r12)
jne 0x938d
movq (%r13), %rax
cmpq (%r15), %rax
je 0x93a9
movq 0x20(%r12), %r12
testq %r12, %r12
jne 0x9363
leaq 0xbb02(%rip), %rsi      # 0x14ea0
movq (%rsp), %rdi
xorl %eax, %eax
callq 0x46c4
subq 0x20(%r14), %r12
shrq $0x3, %r12
imull $0xcccccccd, %r12d, %eax # imm = 0xCCCCCCCD
addl 0x38(%r14), %eax
movq (%rsp), %r12
jmp 0x93cb
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x93cb
decl %eax
movslq 0x38(%r14), %rsi
movslq %eax, %rdx
leaq 0x1(%rdx), %rax
cmpq %rsi, %rax
movq %rsi, %rdi
cmovgq %rax, %rdi
shlq $0x4, %rdx
cmpq %rsi, %rax
jge 0x9418
movq 0x18(%r14), %r8
incq %rax
leaq 0x10(%rdx), %rcx
cmpl $0x0, 0x18(%r8,%rdx)
movq %rcx, %rdx
je 0x93e4
xorps %xmm0, %xmm0
cvtsi2sd %eax, %xmm0
movsd %xmm0, 0x10(%rbp)
movl $0x3, 0x18(%rbp)
addq 0x18(%r14), %rcx
jmp 0x947d
movzbl 0xb(%r14), %ecx
movl $0x1, %r8d
shlq %cl, %r8
subl %esi, %edi
movb $0x1, %dl
cmpl %r8d, %edi
jge 0x948c
subl %esi, %eax
movq 0x20(%r14), %rsi
movabsq $0x100000000, %rdi      # imm = 0x100000000
shlq %cl, %rdi
cltq
sarq $0x20, %rdi
leaq (,%rax,8), %rcx
leaq (%rcx,%rcx,4), %rcx
cmpl $0x0, 0x8(%rsi,%rcx)
jne 0x9469
incq %rax
addq $0x28, %rcx
cmpq %rdi, %rax
jl 0x9454
jmp 0x948c
movq 0x10(%rsi,%rcx), %rax
movq %rax, 0x10(%rbp)
movl 0x18(%rsi,%rcx), %eax
movl %eax, 0x18(%rbp)
addq 0x20(%r14), %rcx
movq (%rcx), %rax
movq %rax, 0x20(%rbp)
movl 0x8(%rcx), %eax
movl %eax, 0x28(%rbp)
xorl %edx, %edx
movl %edx, %eax
xorb $0x1, %al
movzbl %al, %eax
shll $0x5, %eax
movq 0x10(%r12), %rcx
addq %rax, %rcx
addq $-0x10, %rcx
movq %rcx, 0x10(%r12)
movl $0x2, %eax
testb %dl, %dl
je 0x94c5
movl $0x0, 0x8(%rcx)
addq $0x10, %rcx
movq %rcx, 0x10(%r12)
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cvttsd2si %xmm0, %eax
jmp 0x9347
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: lua_setmetatable
static int lua_setmetatable(lua_State*L,int objindex){
TValue*obj;
Table*mt;
api_checknelems(L,1);
obj=index2adr(L,objindex);
api_checkvalidindex(L,obj);
if(ttisnil(L->top-1))
mt=NULL;
else{
luai_apicheck(L,ttistable(L->top-1));
mt=hvalue(L->top-1);
}
switch(ttype(obj)){
case 5:{
hvalue(obj)->metatable=mt;
if(mt)
luaC_objbarriert(L,hvalue(obj),mt);
break;
}
case 7:{
uvalue(obj)->metatable=mt;
if(mt)
luaC_objbarrier(L,rawuvalue(obj),mt);
break;
}
default:{
G(L)->mt[ttype(obj)]=mt;
break;
}
}
L->top--;
return 1;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
callq 0x975f
movq 0x10(%rbx), %rcx
cmpl $0x0, -0x8(%rcx)
je 0x94f6
movq -0x10(%rcx), %rsi
jmp 0x94f8
xorl %esi, %esi
movslq 0x8(%rax), %rcx
cmpq $0x7, %rcx
je 0x953c
cmpl $0x5, %ecx
jne 0x956a
movq (%rax), %rcx
movq %rsi, 0x10(%rcx)
testq %rsi, %rsi
je 0x9576
testb $0x3, 0x9(%rsi)
je 0x9576
movq (%rax), %rax
movb 0x9(%rax), %cl
testb $0x4, %cl
je 0x9576
movq 0x20(%rbx), %rdx
andb $-0x5, %cl
movb %cl, 0x9(%rax)
movq 0x40(%rdx), %rcx
movq %rcx, 0x30(%rax)
movq %rax, 0x40(%rdx)
jmp 0x9576
movq (%rax), %rcx
movq %rsi, 0x10(%rcx)
testq %rsi, %rsi
je 0x9576
testb $0x3, 0x9(%rsi)
je 0x9576
movq (%rax), %rax
movb 0x9(%rax), %cl
testb $0x4, %cl
je 0x9576
movq 0x20(%rbx), %rdi
cmpb $0x1, 0x21(%rdi)
jne 0x957d
callq 0x4593
jmp 0x9576
movq 0x20(%rbx), %rax
movq %rsi, 0xe0(%rax,%rcx,8)
addq $-0x10, 0x10(%rbx)
popq %rbx
retq
andb $-0x8, %cl
movb 0x20(%rdi), %dl
andb $0x3, %dl
orb %cl, %dl
movb %dl, 0x9(%rax)
jmp 0x9576
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaB_newproxy
static int luaB_newproxy(lua_State*L){
lua_settop(L,1);
lua_newuserdata(L,0);
if(lua_toboolean(L,1)==0)
return 1;
else if(lua_isboolean(L,1)){
lua_newtable(L);
lua_pushvalue(L,-1);
lua_pushboolean(L,1);
lua_rawset(L,lua_upvalueindex(1));
}
else{
int validproxy=0;
if(lua_getmetatable(L,1)){
lua_rawget(L,lua_upvalueindex(1));
validproxy=lua_toboolean(L,-1);
lua_pop(L,1);
}
luaL_argcheck(L,validproxy,1,"boolean or proxy expected");
lua_getmetatable(L,1);
}
lua_setmetatable(L,2);
return 1;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x10(%rdi), %rdx
movq 0x18(%rdi), %rcx
leaq 0x10(%rcx), %rax
cmpq %rax, %rdx
jae 0x95c0
movq %rdx, %rsi
movl $0x0, 0x8(%rdx)
addq $0x10, %rdx
cmpq %rcx, %rsi
jb 0x95a9
movq %rdx, 0x10(%rbx)
movq %rax, 0x10(%rbx)
movq %rbx, %rdi
xorl %esi, %esi
callq 0xfb36
movq 0x18(%rbx), %rax
cmpq 0x10(%rbx), %rax
leaq 0xae43(%rip), %r14      # 0x14420
cmovaeq %r14, %rax
movl 0x8(%rax), %ecx
testl %ecx, %ecx
je 0x9736
cmpl $0x1, %ecx
jne 0x96b8
cmpl $0x0, (%rax)
je 0x9736
cmpl $0x1, %ecx
jne 0x96b8
movq %rbx, %rdi
xorl %esi, %esi
callq 0x38a8
movq 0x10(%rbx), %rax
movq -0x10(%rax), %rcx
movq %rcx, (%rax)
movl -0x8(%rax), %ecx
movl %ecx, 0x8(%rax)
movq 0x10(%rbx), %rax
leaq 0x10(%rax), %rcx
movq %rcx, 0x10(%rbx)
movl $0x1, %ecx
movl %ecx, 0x10(%rax)
movl %ecx, 0x18(%rax)
movq 0x10(%rbx), %r12
movq 0x28(%rbx), %rax
leaq 0x10(%r12), %rcx
movq %rcx, 0x10(%rbx)
movq 0x8(%rax), %rax
movq (%rax), %rax
leaq 0x28(%rax), %r15
cmpb $0x0, 0xb(%rax)
cmoveq %r14, %r15
movq (%r15), %rsi
leaq -0x10(%r12), %rdx
movq %rbx, %rdi
callq 0x7852
movq (%r12), %rcx
movq %rcx, (%rax)
movl 0x8(%r12), %ecx
movl %ecx, 0x8(%rax)
movq 0x10(%rbx), %rax
cmpl $0x4, -0x8(%rax)
jl 0x96b1
movq -0x10(%rax), %rax
testb $0x3, 0x9(%rax)
je 0x96b1
movq (%r15), %rax
movb 0x9(%rax), %cl
testb $0x4, %cl
je 0x96b1
movq 0x20(%rbx), %rdx
andb $-0x5, %cl
movb %cl, 0x9(%rax)
movq 0x40(%rdx), %rcx
movq %rcx, 0x30(%rax)
movq %rax, 0x40(%rdx)
addq $-0x20, 0x10(%rbx)
jmp 0x9729
movq %rbx, %rdi
callq 0xf9a2
testl %eax, %eax
je 0x974b
movq 0x10(%rbx), %r15
movq 0x28(%rbx), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
leaq 0x28(%rax), %rcx
cmpb $0x0, 0xb(%rax)
cmoveq %r14, %rcx
movq (%rcx), %rdi
leaq -0x10(%r15), %rsi
callq 0x759e
movq (%rax), %rcx
movq %rcx, -0x10(%r15)
movl 0x8(%rax), %eax
movl %eax, -0x8(%r15)
movq 0x10(%rbx), %rcx
movl -0x8(%rcx), %edx
leaq -0x10(%rcx), %rax
cmpl $0x1, %edx
je 0x9717
testl %edx, %edx
je 0x9747
movq %rax, 0x10(%rbx)
jmp 0x9721
cmpl $0x0, -0x10(%rcx)
movq %rax, 0x10(%rbx)
je 0x974b
movq %rbx, %rdi
callq 0xf9a2
movq %rbx, %rdi
movl $0x2, %esi
callq 0x94dd
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %rax, 0x10(%rbx)
leaq 0xb764(%rip), %rdx      # 0x14eb6
movq %rbx, %rdi
movl $0x1, %esi
callq 0xa173
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: index2adr
static TValue*index2adr(lua_State*L,int idx){
if(idx>0){
TValue*o=L->base+(idx-1);
luai_apicheck(L,idx<=L->ci->top-L->base);
if(o>=L->top)return cast(TValue*,(&luaO_nilobject_));
else return o;
}
else if(idx>(-10000)){
luai_apicheck(L,idx!=0&&-idx<=L->top-L->base);
return L->top+idx;
}
else switch(idx){
case(-10000):return registry(L);
case(-10001):{
Closure*func=curr_func(L);
sethvalue(L,&L->env,func->c.env);
return&L->env;
}
case(-10002):return gt(L);
default:{
Closure*func=curr_func(L);
idx=(-10002)-idx;
return(idx<=func->c.nupvalues)
?&func->c.upvalue[idx-1]
:cast(TValue*,(&luaO_nilobject_));
}
}
}

// Assembly:
testl %esi, %esi
jle 0x9784
movq 0x18(%rdi), %rax
movl %esi, %ecx
shlq $0x4, %rcx
addq %rax, %rcx
addq $-0x10, %rcx
cmpq 0x10(%rdi), %rcx
leaq 0xaca1(%rip), %rax      # 0x14420
cmovbq %rcx, %rax
retq
cmpl $0xffffd8f1, %esi       # imm = 0xFFFFD8F1
jl 0x9798
movslq %esi, %rax
shlq $0x4, %rax
addq 0x10(%rdi), %rax
retq
cmpl $0xffffd8ee, %esi       # imm = 0xFFFFD8EE
je 0x97e2
cmpl $0xffffd8ef, %esi       # imm = 0xFFFFD8EF
je 0x97ba
cmpl $0xffffd8f0, %esi       # imm = 0xFFFFD8F0
jne 0x97ea
movl $0xa0, %eax
addq 0x20(%rdi), %rax
retq
movq 0x28(%rdi), %rax
movq 0x8(%rax), %rax
movq (%rax), %rcx
leaq 0x88(%rdi), %rax
movq 0x18(%rcx), %rcx
movq %rcx, 0x88(%rdi)
movl $0x5, 0x90(%rdi)
retq
addq $0x78, %rdi
movq %rdi, %rax
retq
movq 0x28(%rdi), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
movl $0xffffd8ee, %ecx       # imm = 0xFFFFD8EE
subl %esi, %ecx
movzbl 0xb(%rax), %edx
movl $0xffffd8ed, %edi       # imm = 0xFFFFD8ED
subl %esi, %edi
movslq %edi, %rsi
shlq $0x4, %rsi
cmpl %edx, %ecx
leaq 0x28(%rax,%rsi), %rcx
leaq 0xac04(%rip), %rax      # 0x14420
cmovleq %rcx, %rax
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaB_assert
static int luaB_assert(lua_State*L){
luaL_checkany(L,1);
if(!lua_toboolean(L,1))
return luaL_error(L,"%s",luaL_optstring(L,2,"assertion failed!"));
return lua_gettop(L);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x1, %esi
callq 0xa010
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rcx
cmpq %rax, %rcx
leaq 0xabdf(%rip), %rdx      # 0x14420
cmovbq %rcx, %rdx
movl 0x8(%rdx), %esi
cmpl $0x1, %esi
je 0x985a
testl %esi, %esi
je 0x985f
subq %rcx, %rax
shrq $0x4, %rax
popq %rbx
retq
cmpl $0x0, (%rdx)
jne 0x9851
leaq 0xb113(%rip), %rdx      # 0x14979
movq %rbx, %rdi
movl $0x2, %esi
xorl %ecx, %ecx
callq 0xa10c
leaq 0xadcb(%rip), %rsi      # 0x14647
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xa049
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaB_error
static int luaB_error(lua_State*L){
int level=luaL_optint(L,2,1);
lua_settop(L,1);
if(lua_isstring(L,1)&&level>0){
luaL_where(L,level);
lua_pushvalue(L,1);
lua_concat(L,2);
}
return lua_error(L);
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %edx
movl $0x2, %esi
callq 0xa737
movq 0x10(%rbx), %rsi
movq 0x18(%rbx), %rcx
leaq 0x10(%rcx), %rdx
cmpq %rdx, %rsi
jae 0x98c7
movq %rsi, %rdi
movl $0x0, 0x8(%rsi)
addq $0x10, %rsi
cmpq %rcx, %rdi
jb 0x98b0
movq %rsi, 0x10(%rbx)
movq %rdx, 0x10(%rbx)
leaq 0xab4e(%rip), %r14      # 0x14420
cmpq %r14, %rcx
jne 0x98db
xorl %ecx, %ecx
jmp 0x98e7
movl 0x8(%rcx), %ecx
addl $-0x3, %ecx
cmpl $0x2, %ecx
setb %cl
testl %eax, %eax
setg %dl
andb %cl, %dl
cmpb $0x1, %dl
jne 0x992b
movq %rbx, %rdi
movl %eax, %esi
callq 0xa517
movq 0x10(%rbx), %rax
movq 0x18(%rbx), %rcx
cmpq %rax, %rcx
cmovbq %rcx, %r14
movq (%r14), %rcx
movq %rcx, (%rax)
movl 0x8(%r14), %ecx
movl %ecx, 0x8(%rax)
addq $0x10, 0x10(%rbx)
movq %rbx, %rdi
movl $0x2, %esi
callq 0xa57b
movq %rbx, %rdi
callq 0x4a5f
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaB_loadstring
static int luaB_loadstring(lua_State*L){
size_t l;
const char*s=luaL_checklstring(L,1,&l);
const char*chunkname=luaL_optstring(L,2,s);
return load_aux(L,luaL_loadbuffer(L,s,l,chunkname));
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x18, %rsp
movq %rdi, %rbx
movl $0x1, %ebp
movq %rsp, %r14
movl $0x1, %esi
movq %r14, %rdx
callq 0xa6a8
movq %rax, %r15
movq %rbx, %rdi
movl $0x2, %esi
movq %rax, %rdx
xorl %ecx, %ecx
callq 0xa10c
movq (%r14), %rcx
leaq 0x8(%rsp), %rdx
movq %r15, (%rdx)
movq %rcx, 0x8(%rdx)
leaq 0xf01(%rip), %rsi       # 0xa8d7
movq %rbx, %rdi
movq %rax, %rcx
callq 0xa84c
testl %eax, %eax
je 0x9a0a
movq 0x10(%rbx), %rax
movl $0x0, 0x8(%rax)
addq $0x10, %rax
movq %rax, 0x10(%rbx)
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0xa80f
movl $0x2, %ebp
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaB_pcall
static int luaB_pcall(lua_State*L){
int status;
luaL_checkany(L,1);
status=lua_pcall(L,lua_gettop(L)-1,(-1),0);
lua_pushboolean(L,(status==0));
lua_insert(L,1);
return lua_gettop(L);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl $0x1, %esi
callq 0xa010
movq 0x10(%rbx), %rsi
subq 0x18(%rbx), %rsi
shrq $0x4, %rsi
decl %esi
movq %rbx, %rdi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x3c06
xorl %ecx, %ecx
testl %eax, %eax
sete %cl
movq 0x10(%rbx), %rax
movl %ecx, (%rax)
movl $0x1, 0x8(%rax)
addq $0x10, 0x10(%rbx)
movq %rbx, %rdi
movl $0x1, %esi
callq 0xa80f
movq 0x10(%rbx), %rax
subq 0x18(%rbx), %rax
shrq $0x4, %rax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaB_rawget
static int luaB_rawget(lua_State*L){
luaL_checktype(L,1,5);
luaL_checkany(L,2);
lua_settop(L,2);
lua_rawget(L,1);
return 1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %esi
movl $0x5, %edx
callq 0xf886
movq %rbx, %rdi
movl $0x2, %esi
callq 0xa010
movq 0x10(%rbx), %rcx
movq 0x18(%rbx), %r14
leaq 0x20(%r14), %rax
cmpq %rax, %rcx
jae 0x9abc
movl $0x0, 0x8(%rcx)
addq $0x10, %rcx
cmpq %rax, %rcx
jb 0x9aa8
movq %rcx, 0x10(%rbx)
movq %rax, 0x10(%rbx)
movq (%r14), %rdi
leaq 0x10(%r14), %rsi
callq 0x759e
movq (%rax), %rcx
movq %rcx, 0x10(%r14)
movl 0x8(%rax), %eax
movl %eax, 0x18(%r14)
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
retq