LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O3/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaD_seterrorobj
static void luaD_seterrorobj(lua_State*L,int errcode,StkId oldtop){
switch(errcode){
case 4:{
setsvalue(L,oldtop,luaS_newliteral(L,"not enough memory"));
break;
}
case 5:{
setsvalue(L,oldtop,luaS_newliteral(L,"error in error handling"));
break;
}
case 3:
case 2:{
setobj(L,oldtop,L->top-1);
break;
}
}
L->top=oldtop+1;
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdx, %rbx
movq %rdi, %r14
leal -0x2(%rsi), %eax
cmpl $0x2, %eax
jb 0x45c1
cmpl $0x5, %esi
je 0x45d1
cmpl $0x4, %esi
jne 0x45f0
leaq 0x1105d(%rip), %rsi     # 0x15617
movl $0x11, %edx
jmp 0x45dd
movq 0x10(%r14), %rax
movq -0x10(%rax), %rcx
movq %rcx, (%rbx)
movl -0x8(%rax), %eax
jmp 0x45ed
leaq 0x11051(%rip), %rsi     # 0x15629
movl $0x17, %edx
movq %r14, %rdi
callq 0x4265
movq %rax, (%rbx)
movl $0x4, %eax
movl %eax, 0x8(%rbx)
addq $0x10, %rbx
movq %rbx, 0x10(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: restore_stack_limit
static void restore_stack_limit(lua_State*L){
if(L->size_ci>20000){
int inuse=cast_int(L->ci-L->base_ci);
if(inuse+1<20000)
luaD_reallocCI(L,20000);
}
}

// Assembly:
movslq 0x5c(%rdi), %rax
cmpq $0x4e21, %rax           # imm = 0x4E21
jl 0x4672
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x28(%rdi), %rcx
movq 0x50(%rdi), %r14
subq %r14, %rcx
shrq $0x3, %rcx
imull $0xcccccccd, %ecx, %ecx # imm = 0xCCCCCCCD
cmpl $0x4e1e, %ecx           # imm = 0x4E1E
jg 0x466b
shlq $0x3, %rax
leaq (%rax,%rax,4), %rdx
movl $0xc3500, %ecx          # imm = 0xC3500
movq %rbx, %rdi
movq %r14, %rsi
callq 0x43d1
movq %rax, 0x50(%rbx)
movl $0x4e20, 0x5c(%rbx)     # imm = 0x4E20
movq 0x28(%rbx), %rcx
subq %r14, %rcx
addq %rax, %rcx
movq %rcx, 0x28(%rbx)
addq $0xc34d8, %rax          # imm = 0xC34D8
movq %rax, 0x48(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O3/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: reallymarkobject
static void reallymarkobject(global_State*g,GCObject*o){
white2gray(o);
switch(o->gch.tt){
case 4:{
return;
}
case 7:{
Table*mt=gco2u(o)->metatable;
gray2black(o);
if(mt)markobject(g,mt);
markobject(g,gco2u(o)->env);
return;
}
case(8+2):{
UpVal*uv=gco2uv(o);
markvalue(g,uv->v);
if(uv->v==&uv->u.value)
gray2black(o);
return;
}
case 6:{
gco2cl(o)->c.gclist=g->gray;
g->gray=o;
break;
}
case 5:{
gco2h(o)->gclist=g->gray;
g->gray=o;
break;
}
case 8:{
gco2th(o)->gclist=g->gray;
g->gray=o;
break;
}
case(8+1):{
gco2p(o)->gclist=g->gray;
g->gray=o;
break;
}
default:;
}
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rsi, %rbx
movq %rdi, %r14
movb 0x9(%rsi), %al
andb $-0x4, %al
movb %al, 0x9(%rbx)
movzbl 0x8(%rbx), %ecx
cmpl $0x7, %ecx
jne 0x46ef
movq 0x10(%rbx), %rsi
orb $0x4, %al
movb %al, 0x9(%rbx)
testq %rsi, %rsi
je 0x46e2
testb $0x3, 0x9(%rsi)
je 0x46e2
movq %r14, %rdi
callq 0x46ab
movq 0x18(%rbx), %rbx
movb 0x9(%rbx), %al
testb $0x3, %al
jne 0x46b8
jmp 0x4734
addl $-0x5, %ecx
cmpl $0x5, %ecx
ja 0x4734
leaq 0x10982(%rip), %rax     # 0x15080
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq 0x38(%r14), %rax
movq %rax, 0x30(%rbx)
jmp 0x4730
movq 0x38(%r14), %rax
movq %rax, 0x68(%rbx)
jmp 0x4730
movq 0x38(%r14), %rax
movq %rax, 0xa0(%rbx)
jmp 0x4730
movq 0x38(%r14), %rax
movq %rax, 0x10(%rbx)
movq %rbx, 0x38(%r14)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
movq 0x10(%rbx), %rax
cmpl $0x4, 0x8(%rax)
jl 0x475b
movq (%rax), %rsi
testb $0x3, 0x9(%rsi)
je 0x475b
movq %r14, %rdi
callq 0x46ab
movq 0x10(%rbx), %rax
leaq 0x18(%rbx), %rcx
cmpq %rcx, %rax
jne 0x4734
orb $0x4, 0x9(%rbx)
jmp 0x4734
// File: /workspace/github_c_makefile_star2_O3/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaD_reallocCI
static void luaD_reallocCI(lua_State*L,int newsize){
CallInfo*oldci=L->base_ci;
luaM_reallocvector(L,L->base_ci,L->size_ci,newsize,CallInfo);
L->size_ci=newsize;
L->ci=(L->ci-oldci)+L->base_ci;
L->end_ci=L->base_ci+L->size_ci-1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $-0x1, %esi
jl 0x47cf
movl %esi, %ebp
movq 0x50(%rbx), %r14
movslq 0x5c(%rbx), %rax
shlq $0x3, %rax
leaq (%rax,%rax,4), %rdx
movslq %esi, %rax
shlq $0x3, %rax
leaq (%rax,%rax,4), %r15
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rcx
callq 0x43d1
movq %rax, 0x50(%rbx)
movl %ebp, 0x5c(%rbx)
movq 0x28(%rbx), %rcx
subq %r14, %rcx
addq %rax, %rcx
movq %rcx, 0x28(%rbx)
addq %r15, %rax
addq $-0x28, %rax
movq %rax, 0x48(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10e6b(%rip), %rsi     # 0x15641
movq %rbx, %rdi
xorl %eax, %eax
callq 0x47e0
// File: /workspace/github_c_makefile_star2_O3/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaG_runerror
static void luaG_runerror(lua_State*L,const char*fmt,...){
va_list argp;
va_start(argp,fmt);
addinfo(L,luaO_pushvfstring(L,fmt,argp));
va_end(argp);
luaG_errormsg(L);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x118, %rsp            # imm = 0x118
movq %rdi, %rbx
leaq 0x60(%rsp), %rdi
movq %rdx, 0x10(%rdi)
movq %rcx, 0x18(%rdi)
movq %r8, 0x20(%rdi)
movq %r9, 0x28(%rdi)
testb %al, %al
je 0x4849
movaps %xmm0, 0x90(%rsp)
movaps %xmm1, 0xa0(%rsp)
movaps %xmm2, 0xb0(%rsp)
movaps %xmm3, 0xc0(%rsp)
movaps %xmm4, 0xd0(%rsp)
movaps %xmm5, 0xe0(%rsp)
movaps %xmm6, 0xf0(%rsp)
movaps %xmm7, 0x100(%rsp)
movq %rsp, %rdx
movq %rdi, 0x10(%rdx)
leaq 0x140(%rsp), %rax
movq %rax, 0x8(%rdx)
movabsq $0x3000000010, %rax     # imm = 0x3000000010
movq %rax, (%rdx)
movq %rbx, %rdi
callq 0x48de
movq %rax, %r14
movq 0x28(%rbx), %r15
movq 0x8(%r15), %rax
cmpl $0x6, 0x8(%rax)
jne 0x48d6
movq (%rax), %rax
cmpb $0x0, 0xa(%rax)
jne 0x48d6
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4c4e
movl %eax, %ebp
movq 0x8(%r15), %rax
movq (%rax), %rax
movq 0x20(%rax), %rax
movq 0x40(%rax), %rsi
addq $0x18, %rsi
leaq 0x20(%rsp), %r15
movl $0x3c, %edx
movq %r15, %rdi
callq 0x4ca9
leaq 0x10da4(%rip), %rsi     # 0x15668
movq %rbx, %rdi
movq %r15, %rdx
movl %ebp, %ecx
movq %r14, %r8
xorl %eax, %eax
callq 0x4d90
movq %rbx, %rdi
callq 0x4bb1
// File: /workspace/github_c_makefile_star2_O3/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaG_errormsg
static void luaG_errormsg(lua_State*L){
if(L->errfunc!=0){
StkId errfunc=restorestack(L,L->errfunc);
if(!ttisfunction(errfunc))luaD_throw(L,5);
setobj(L,L->top,L->top-1);
setobj(L,L->top-1,errfunc);
incr_top(L);
luaD_call(L,L->top-2,1);
}
luaD_throw(L,2);
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movq 0xb0(%rdi), %rax
testq %rax, %rax
je 0x4c34
movq 0x40(%rbx), %rcx
cmpl $0x6, 0x8(%rcx,%rax)
jne 0x4c41
movq 0x10(%rbx), %rdx
movq -0x10(%rdx), %rsi
movq %rsi, (%rdx)
movl -0x8(%rdx), %esi
movl %esi, 0x8(%rdx)
movq 0x10(%rbx), %rdx
movq (%rcx,%rax), %rsi
movq %rsi, -0x10(%rdx)
movl 0x8(%rcx,%rax), %eax
movl %eax, -0x8(%rdx)
movq 0x10(%rbx), %rsi
movq 0x38(%rbx), %rax
subq %rsi, %rax
cmpq $0x10, %rax
jg 0x4c1b
movl 0x58(%rbx), %eax
leal 0x1(%rax), %ecx
leal (%rax,%rax), %esi
testl %eax, %eax
cmovlel %ecx, %esi
movq %rbx, %rdi
callq 0x50e7
movq 0x10(%rbx), %rsi
leaq 0x10(%rsi), %rax
movq %rax, 0x10(%rbx)
addq $-0x10, %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x53b2
movq %rbx, %rdi
movl $0x2, %esi
callq 0x441b
movq %rbx, %rdi
movl $0x5, %esi
callq 0x441b
// File: /workspace/github_c_makefile_star2_O3/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: currentline
static int currentpc(lua_State*L,CallInfo*ci){
if(!isLua(ci))return-1;
if(ci==L->ci)
ci->savedpc=L->savedpc;
return pcRel(ci->savedpc,ci_func(ci)->l.p);
}

// Assembly:
movq 0x8(%rsi), %r8
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x6, 0x8(%r8)
jne 0x4c67
movq (%r8), %rdx
cmpb $0x0, 0xa(%rdx)
je 0x4c68
retq
cmpq %rsi, 0x28(%rdi)
je 0x4c74
movq 0x18(%rsi), %rcx
jmp 0x4c7f
movq 0x30(%rdi), %rcx
movq %rcx, 0x18(%rsi)
movq (%r8), %rdx
movq 0x20(%rdx), %rdx
subq 0x18(%rdx), %rcx
shrq $0x2, %rcx
testl %ecx, %ecx
jle 0x4c67
movq 0x28(%rdx), %rax
testq %rax, %rax
je 0x4ca6
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
addq %rdx, %rcx
movl %ecx, %ecx
movl (%rax,%rcx,4), %eax
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaO_chunkid
static void luaO_chunkid(char*out,const char*source,size_t bufflen){
if(*source=='='){
strncpy(out,source+1,bufflen);
out[bufflen-1]='\0';
}
else{
if(*source=='@'){
size_t l;
source++;
bufflen-=sizeof(" '...' ");
l=strlen(source);
strcpy(out,"");
if(l>bufflen){
source+=(l-bufflen);
strcat(out,"...");
}
strcat(out,source);
}
else{
size_t len=strcspn(source,"\n\r");
bufflen-=sizeof(" [string \"...\"] ");
if(len>bufflen)len=bufflen;
strcpy(out,"[string \"");
if(source[len]!='\0'){
strncat(out,source,len);
strcat(out,"...");
}
else
strcat(out,source);
strcat(out,"\"]");
}
}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
movzbl (%rsi), %eax
cmpl $0x40, %eax
je 0x4ce0
cmpl $0x3d, %eax
jne 0x4d19
incq %r14
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x3060
movb $0x0, -0x1(%rbx,%r15)
jmp 0x4d8a
incq %r14
addq $-0x8, %r15
movq %r14, %rdi
callq 0x30e0
movb $0x0, (%rbx)
subq %r15, %rax
jbe 0x4d09
addq %rax, %r14
movq %rbx, %rdi
callq 0x30e0
movl $0x2e2e2e, (%rbx,%rax)  # imm = 0x2E2E2E
movq %rbx, %rdi
movq %r14, %rsi
popq %rbx
popq %r14
popq %r15
jmp 0x3280
leaq 0x10956(%rip), %rsi     # 0x15676
movq %r14, %rdi
callq 0x3130
addq $-0x11, %r15
cmpq %r15, %rax
cmovbq %rax, %r15
movabsq $0x20676e697274735b, %rax # imm = 0x20676E697274735B
movq %rax, (%rbx)
movw $0x22, 0x8(%rbx)
cmpb $0x0, (%r14,%r15)
je 0x4d6c
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x3120
movq %rbx, %rdi
callq 0x30e0
movl $0x2e2e2e, (%rbx,%rax)  # imm = 0x2E2E2E
jmp 0x4d77
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3280
movq %rbx, %rdi
callq 0x30e0
movw $0x5d22, (%rbx,%rax)    # imm = 0x5D22
movb $0x0, 0x2(%rbx,%rax)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaD_reallocstack
static void luaD_reallocstack(lua_State*L,int newsize){
TValue*oldstack=L->stack;
int realsize=newsize+1+5;
luaM_reallocvector(L,L->stack,L->stacksize,realsize,TValue);
L->stacksize=realsize;
L->stack_last=L->stack+newsize;
correctstack(L,oldstack);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
cmpl $-0x7, %esi
jl 0x51bb
movl %esi, %ebp
movslq %esi, %r15
addl $0x6, %ebp
shlq $0x4, %r15
movq 0x40(%rbx), %r14
movslq 0x58(%rbx), %rdx
shlq $0x4, %rdx
leaq 0x60(%r15), %rcx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x43d1
movq %rax, 0x40(%rbx)
movl %ebp, 0x58(%rbx)
addq %rax, %r15
movq %r15, 0x38(%rbx)
movq 0x10(%rbx), %rdx
movq 0x98(%rbx), %rcx
subq %r14, %rdx
addq %rax, %rdx
movq %rdx, 0x10(%rbx)
testq %rcx, %rcx
je 0x5167
movq 0x10(%rcx), %rax
subq %r14, %rax
addq 0x40(%rbx), %rax
movq (%rcx), %rdx
movq %rax, 0x10(%rcx)
movq %rdx, %rcx
testq %rdx, %rdx
jne 0x5149
movq 0x40(%rbx), %rax
movq 0x28(%rbx), %rcx
movq 0x50(%rbx), %rdx
cmpq %rcx, %rdx
ja 0x51a2
movq 0x10(%rdx), %rsi
subq %r14, %rsi
addq %rax, %rsi
movq %rsi, 0x10(%rdx)
movq (%rdx), %rsi
movq 0x8(%rdx), %rdi
subq %r14, %rsi
addq %rax, %rsi
movq %rsi, (%rdx)
subq %r14, %rdi
addq %rax, %rdi
movq %rdi, 0x8(%rdx)
addq $0x28, %rdx
jmp 0x516f
movq 0x18(%rbx), %rcx
subq %r14, %rcx
addq %rcx, %rax
movq %rax, 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0x1047f(%rip), %rsi     # 0x15641
movq %rbx, %rdi
xorl %eax, %eax
callq 0x47e0
// File: /workspace/github_c_makefile_star2_O3/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaV_tostring
static int luaV_tostring(lua_State*L,StkId obj){
if(!ttisnumber(obj))
return 0;
else{
char s[32];
lua_Number n=nvalue(obj);
lua_number2str(s,n);
setsvalue(L,obj,luaS_new(L,s));
return 1;
}
}

// Assembly:
xorl %eax, %eax
cmpl $0x3, 0x8(%rsi)
jne 0x5229
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movsd (%rsi), %xmm0
leaq 0x104bb(%rip), %rsi     # 0x156a9
movq %rsp, %r15
movq %r15, %rdi
movb $0x1, %al
callq 0x3290
movq %r15, %rdi
callq 0x30e0
movq %r14, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x4265
movq %rax, (%rbx)
movl $0x4, 0x8(%rbx)
movl $0x1, %eax
addq $0x20, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: call_binTM
static int call_binTM(lua_State*L,const TValue*p1,const TValue*p2,
StkId res,TMS event){
const TValue*tm=luaT_gettmbyobj(L,p1,event);
if(ttisnil(tm))
tm=luaT_gettmbyobj(L,p2,event);
if(ttisnil(tm))return 0;
callTMres(L,res,tm,p1,p2);
return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %r8d, %ebp
movq %rcx, %r15
movq %rdx, %rbx
movq %rsi, %r14
movq %rdi, %r12
movl %r8d, %edx
callq 0x5288
cmpl $0x0, 0x8(%rax)
jne 0x5262
movq %r12, %rdi
movq %rbx, %rsi
movl %ebp, %edx
callq 0x5288
cmpl $0x0, 0x8(%rax)
je 0x5284
movq %r12, %rdi
movq %r15, %rsi
movq %rax, %rdx
movq %r14, %rcx
movq %rbx, %r8
callq 0x5306
movl $0x1, %eax
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
xorl %eax, %eax
jmp 0x527b
// File: /workspace/github_c_makefile_star2_O3/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaT_gettmbyobj
static const TValue*luaT_gettmbyobj(lua_State*L,const TValue*o,TMS event){
Table*mt;
switch(ttype(o)){
case 5:
mt=hvalue(o)->metatable;
break;
case 7:
mt=uvalue(o)->metatable;
break;
default:
mt=G(L)->mt[ttype(o)];
}
return(mt?luaH_getstr(mt,G(L)->tmname[event]):(&luaO_nilobject_));
}

// Assembly:
movslq 0x8(%rsi), %rax
cmpq $0x7, %rax
je 0x5297
cmpl $0x5, %eax
jne 0x52a0
movq (%rsi), %rax
addq $0x10, %rax
jmp 0x52ae
movq 0x20(%rdi), %rcx
leaq (%rcx,%rax,8), %rax
addq $0xe0, %rax
movq (%rax), %rsi
leaq 0x101e0(%rip), %rax     # 0x15498
testq %rsi, %rsi
je 0x5301
movq 0x20(%rdi), %rcx
movl %edx, %edx
movq 0x128(%rcx,%rdx,8), %rdx
movb 0xb(%rsi), %cl
movq $-0x1, %rdi
shlq %cl, %rdi
notl %edi
andl 0xc(%rdx), %edi
movslq %edi, %rcx
leaq (%rcx,%rcx,4), %rcx
shlq $0x3, %rcx
addq 0x20(%rsi), %rcx
cmpl $0x4, 0x18(%rcx)
jne 0x52f8
cmpq %rdx, 0x10(%rcx)
je 0x5302
movq 0x20(%rcx), %rcx
testq %rcx, %rcx
jne 0x52ec
retq
movq %rcx, %rax
retq
// File: /workspace/github_c_makefile_star2_O3/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: callTMres
static void callTMres(lua_State*L,StkId res,const TValue*f,
const TValue*p1,const TValue*p2){
ptrdiff_t result=savestack(L,res);
setobj(L,L->top,f);
setobj(L,L->top+1,p1);
setobj(L,L->top+2,p2);
luaD_checkstack(L,3);
L->top+=3;
luaD_call(L,L->top-3,1);
res=restorestack(L,result);
L->top--;
setobj(L,res,L->top);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq %rdi, %r14
movq 0x10(%rdi), %rax
movq 0x40(%rdi), %r15
movq (%rdx), %rsi
movq %rsi, (%rax)
movl 0x8(%rdx), %edx
movl %edx, 0x8(%rax)
movq 0x10(%rdi), %rax
movq (%rcx), %rdx
movq %rdx, 0x10(%rax)
movl 0x8(%rcx), %ecx
movl %ecx, 0x18(%rax)
movq 0x10(%rdi), %rax
movq (%r8), %rcx
movq %rcx, 0x20(%rax)
movl 0x8(%r8), %ecx
movl %ecx, 0x28(%rax)
movq 0x10(%rdi), %rsi
movq 0x38(%rdi), %rax
subq %rsi, %rax
cmpq $0x30, %rax
jg 0x5375
movl 0x58(%r14), %eax
leal 0x3(%rax), %ecx
leal (%rax,%rax), %esi
cmpl $0x3, %eax
cmovll %ecx, %esi
movq %r14, %rdi
callq 0x50e7
movq 0x10(%r14), %rsi
subq %r15, %rbx
leaq 0x30(%rsi), %rax
movq %rax, 0x10(%r14)
movq %r14, %rdi
movl $0x1, %edx
callq 0x53b2
movq 0x10(%r14), %rax
movq 0x40(%r14), %rcx
leaq -0x10(%rax), %rdx
movq %rdx, 0x10(%r14)
movq -0x10(%rax), %rdx
movq %rdx, (%rcx,%rbx)
movl -0x8(%rax), %eax
movl %eax, 0x8(%rcx,%rbx)
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: growCI
static CallInfo*growCI(lua_State*L){
if(L->size_ci>20000)
luaD_throw(L,5);
else{
luaD_reallocCI(L,2*L->size_ci);
if(L->size_ci>20000)
luaG_runerror(L,"stack overflow");
}
return++L->ci;
}

// Assembly:
pushq %rbx
movq %rdi, %rbx
movl 0x5c(%rdi), %esi
cmpl $0x4e21, %esi           # imm = 0x4E21
jge 0x70f2
addl %esi, %esi
movq %rbx, %rdi
callq 0x476a
cmpl $0x4e21, 0x5c(%rbx)     # imm = 0x4E21
jge 0x70ff
movq 0x28(%rbx), %rax
addq $0x28, %rax
movq %rax, 0x28(%rbx)
popq %rbx
retq
movq %rbx, %rdi
movl $0x5, %esi
callq 0x441b
leaq 0xe5ab(%rip), %rsi      # 0x156b1
movq %rbx, %rdi
xorl %eax, %eax
callq 0x47e0
// File: /workspace/github_c_makefile_star2_O3/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaD_poscall
static int luaD_poscall(lua_State*L,StkId firstResult){
StkId res;
int wanted,i;
CallInfo*ci;
ci=L->ci--;
res=ci->func;
wanted=ci->nresults;
L->base=(ci-1)->base;
L->savedpc=(ci-1)->savedpc;
for(i=wanted;i!=0&&firstResult<L->top;i--)
setobj(L,res++,firstResult++);
while(i-->0)
setnilvalue(res++);
L->top=res;
return(wanted-(-1));
}

// Assembly:
movq 0x28(%rdi), %rcx
leaq -0x28(%rcx), %rax
movq %rax, 0x28(%rdi)
movq -0x28(%rcx), %r8
movq 0x8(%rcx), %rdx
movl 0x20(%rcx), %eax
movq %r8, 0x18(%rdi)
movq -0x10(%rcx), %rcx
movq %rcx, 0x30(%rdi)
testl %eax, %eax
je 0x718a
leal 0x1(%rax), %ecx
xorl %r9d, %r9d
cmpq 0x10(%rdi), %rsi
jae 0x7166
leaq 0x10(%rdx), %r8
movq (%rsi), %r10
movq %r10, (%rdx)
movl 0x8(%rsi), %r10d
movl %r10d, 0x8(%rdx)
incl %r9d
addq $0x10, %rsi
movq %r8, %rdx
cmpl %r9d, %eax
jne 0x713d
jmp 0x718d
movl %eax, %esi
subl %r9d, %esi
testl %esi, %esi
jle 0x718a
subl %r9d, %ecx
movq %rdx, %r8
movl $0x0, 0x8(%r8)
addq $0x10, %r8
decl %ecx
cmpl $0x1, %ecx
ja 0x7175
jmp 0x718d
movq %rdx, %r8
movq %r8, 0x10(%rdi)
incl %eax
retq
// File: /workspace/github_c_makefile_star2_O3/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaV_gettable
static void luaV_gettable(lua_State*L,const TValue*t,TValue*key,StkId val){
int loop;
for(loop=0;loop<100;loop++){
const TValue*tm;
if(ttistable(t)){
Table*h=hvalue(t);
const TValue*res=luaH_get(h,key);
if(!ttisnil(res)||
(tm=fasttm(L,h->metatable,TM_INDEX))==NULL){
setobj(L,val,res);
return;
}
}
else if(ttisnil(tm=luaT_gettmbyobj(L,t,TM_INDEX)))
luaG_typeerror(L,t,"index");
if(ttisfunction(tm)){
callTMres(L,val,tm,t,key);
return;
}
t=tm;
}
luaG_runerror(L,"loop in gettable");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, (%rsp)
movq %rdx, %r15
movq %rsi, %r12
movq %rdi, %rbx
movl 0x8(%rsi), %ebp
movl $0x64, %r14d
cmpl $0x5, %ebp
jne 0x71fd
movq (%r12), %rbp
movq %rbp, %rdi
movq %r15, %rsi
callq 0x7876
movq %rax, %r13
cmpl $0x0, 0x8(%rax)
jne 0x7231
movq 0x10(%rbp), %rdi
testq %rdi, %rdi
je 0x7231
testb $0x1, 0xa(%rdi)
jne 0x7231
movq 0x20(%rbx), %rax
movq 0x128(%rax), %rdx
xorl %esi, %esi
callq 0x792f
testq %rax, %rax
je 0x7231
movl 0x8(%rax), %ecx
jmp 0x7211
movq %rbx, %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x5288
movl 0x8(%rax), %ecx
testl %ecx, %ecx
je 0x7275
cmpl $0x6, %ecx
je 0x7252
movl %ecx, %ebp
movq %rax, %r12
decl %r14d
jne 0x71b5
leaq 0xe542(%rip), %rsi      # 0x15769
movq %rbx, %rdi
xorl %eax, %eax
callq 0x47e0
movq (%r13), %rax
movq (%rsp), %rcx
movq %rax, (%rcx)
movl 0x8(%r13), %eax
movl %eax, 0x8(%rcx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
movq (%rsp), %rsi
movq %rax, %rdx
movq %r12, %rcx
movq %r15, %r8
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x5306
movslq %ebp, %rax
leaq 0x145e1(%rip), %rcx     # 0x1b860
movq (%rcx,%rax,8), %rcx
leaq 0xe436(%rip), %rsi      # 0x156c0
leaq 0xef0f(%rip), %rdx      # 0x161a0
movq %rbx, %rdi
xorl %eax, %eax
callq 0x47e0
// File: /workspace/github_c_makefile_star2_O3/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: Arith
static void Arith(lua_State*L,StkId ra,const TValue*rb,
const TValue*rc,TMS op){
TValue tempb,tempc;
const TValue*b,*c;
if((b=luaV_tonumber(rb,&tempb))!=NULL&&
(c=luaV_tonumber(rc,&tempc))!=NULL){
lua_Number nb=nvalue(b),nc=nvalue(c);
switch(op){
case TM_ADD:setnvalue(ra,luai_numadd(nb,nc));break;
case TM_SUB:setnvalue(ra,luai_numsub(nb,nc));break;
case TM_MUL:setnvalue(ra,luai_nummul(nb,nc));break;
case TM_DIV:setnvalue(ra,luai_numdiv(nb,nc));break;
case TM_MOD:setnvalue(ra,luai_nummod(nb,nc));break;
case TM_POW:setnvalue(ra,luai_numpow(nb,nc));break;
case TM_UNM:setnvalue(ra,luai_numunm(nb));break;
default:break;
}
}
else if(!call_binTM(L,rb,rc,ra,op))
luaG_aritherror(L,rb,rc);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movl %r8d, %r13d
movq %rcx, %r15
movq %rdx, %r12
movq %rsi, %rbx
movq %rdi, %r14
leaq 0x28(%rsp), %rsi
movq %rdx, %rdi
callq 0x7756
testq %rax, %rax
je 0x7500
movq %rax, %rbp
leaq 0x18(%rsp), %rsi
movq %r15, %rdi
callq 0x7756
testq %rax, %rax
je 0x7500
movsd (%rbp), %xmm0
movsd (%rax), %xmm1
addl $-0x5, %r13d
leaq 0xdc76(%rip), %rax      # 0x15164
movslq (%rax,%r13,4), %rcx
addq %rax, %rcx
jmpq *%rcx
addsd %xmm1, %xmm0
jmp 0x75ac
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %rbx, %rcx
movl %r13d, %r8d
callq 0x522a
testl %eax, %eax
jne 0x75b7
leaq 0x38(%rsp), %rsi
movq %r12, %rdi
callq 0x7756
testq %rax, %rax
cmoveq %r12, %r15
movslq 0x8(%r15), %rax
leaq 0x14325(%rip), %rcx     # 0x1b860
movq (%rcx,%rax,8), %rcx
leaq 0xe17a(%rip), %rsi      # 0x156c0
leaq 0xe264(%rip), %rdx      # 0x157b1
movq %r14, %rdi
xorl %eax, %eax
callq 0x47e0
movapd %xmm0, (%rsp)
movapd (%rsp), %xmm0
divsd %xmm1, %xmm0
movsd %xmm1, 0x10(%rsp)
callq 0x3270
mulsd 0x10(%rsp), %xmm0
movapd (%rsp), %xmm1
subsd %xmm0, %xmm1
movapd %xmm1, (%rsp)
movapd (%rsp), %xmm0
jmp 0x75ac
mulsd %xmm1, %xmm0
jmp 0x75ac
divsd %xmm1, %xmm0
jmp 0x75ac
subsd %xmm1, %xmm0
jmp 0x75ac
callq 0x30c0
jmp 0x75ac
xorpd 0xdab4(%rip), %xmm0     # 0x15060
movsd %xmm0, (%rbx)
movl $0x3, 0x8(%rbx)
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaH_getn
static int luaH_getn(Table*t){
unsigned int j=t->sizearray;
if(j>0&&ttisnil(&t->array[j-1])){
unsigned int i=0;
while(j-i>1){
unsigned int m=(i+j)/2;
if(ttisnil(&t->array[m-1]))j=m;
else i=m;
}
return i;
}
else if(t->node==(&dummynode_))
return j;
else return unbound_search(t,j);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl 0x38(%rdi), %r12d
testl %r12d, %r12d
je 0x75ee
movq 0x18(%rbx), %rax
leal -0x1(%r12), %ecx
shlq $0x4, %rcx
cmpl $0x0, 0x8(%rax,%rcx)
je 0x763f
leaq 0xdeb3(%rip), %rax      # 0x154a8
cmpq %rax, 0x20(%rbx)
je 0x76b6
leal 0x1(%r12), %r14d
movq %rbx, %rdi
movl %r14d, %esi
callq 0x7984
cmpl $0x0, 0x8(%rax)
je 0x767a
leal (%r14,%r14), %r15d
cmpl $0x7ffffffe, %r15d      # imm = 0x7FFFFFFE
jae 0x76bb
movq %rbx, %rdi
movl %r15d, %esi
callq 0x7984
cmpl $0x0, 0x8(%rax)
movl %r14d, %r12d
movl %r15d, %r14d
jne 0x7615
jmp 0x767d
xorl %r14d, %r14d
cmpl $0x1, %r12d
je 0x76d6
xorl %ecx, %ecx
leal (%rcx,%r12), %r14d
shrl %r14d
leal -0x1(%r14), %edx
shlq $0x4, %rdx
cmpl $0x0, 0x8(%rax,%rdx)
jne 0x766a
movl %r14d, %r12d
movl %ecx, %r14d
movl %r12d, %edx
subl %r14d, %edx
movl %r14d, %ecx
cmpl $0x1, %edx
ja 0x764e
jmp 0x76d6
movl %r14d, %r15d
movl %r15d, %eax
subl %r12d, %eax
cmpl $0x2, %eax
jb 0x76b6
leal (%r15,%r12), %r14d
shrl %r14d
movq %rbx, %rdi
movl %r14d, %esi
callq 0x7984
cmpl $0x0, 0x8(%rax)
jne 0x76a6
movl %r14d, %r15d
movl %r12d, %r14d
movl %r15d, %eax
subl %r14d, %eax
movl %r14d, %r12d
cmpl $0x1, %eax
ja 0x7688
jmp 0x76d6
movl %r12d, %r14d
jmp 0x76d6
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
leal 0x2(%r14), %esi
movq %rbx, %rdi
callq 0x7984
incl %r14d
cmpl $0x0, 0x8(%rax)
jne 0x76c1
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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), %esi
movl 0x8(%rdx), %edx
cmpl %edx, %esi
jne 0x7746
cmpl $0x4, %esi
je 0x7717
cmpl $0x3, %esi
jne 0x7727
movsd (%rbx), %xmm0
xorl %eax, %eax
ucomisd (%r14), %xmm0
seta %al
jmp 0x7750
movq (%r14), %rdi
movq (%rbx), %rsi
callq 0x82fe
shrl $0x1f, %eax
jmp 0x7750
movq %r15, %rdi
movq %r14, %rsi
movq %rbx, %rdx
movl $0xd, %ecx
callq 0x8382
cmpl $-0x1, %eax
jne 0x7750
movl 0x8(%r14), %esi
movl 0x8(%rbx), %edx
movq %r15, %rdi
callq 0x82c3
xorl %eax, %eax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x7797
cmpl $0x4, %eax
jne 0x7793
movq %rsi, %rbx
movq (%rdi), %rdi
addq $0x18, %rdi
leaq 0x8(%rsp), %rsi
callq 0x840e
testl %eax, %eax
je 0x7793
movsd 0x8(%rsp), %xmm0
movsd %xmm0, (%rbx)
movl $0x3, 0x8(%rbx)
jmp 0x779a
xorl %ebx, %ebx
jmp 0x779a
movq %rdi, %rbx
movq %rbx, %rax
addq $0x10, %rsp
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x7984
leaq 0xdcd4(%rip), %rcx      # 0x15498
cmpq %rcx, %rax
jne 0x77e6
cvtsi2sd %ebp, %xmm0
movq %rsp, %rdx
movsd %xmm0, (%rdx)
movl $0x3, 0x8(%rdx)
movq %r14, %rdi
movq %rbx, %rsi
callq 0x7b71
addq $0x10, %rsp
popq %rbx
popq %r14
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O3/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 %rbx
movl 0x8(%rsi), %eax
leaq 0xdc13(%rip), %rbx      # 0x15498
testl %eax, %eax
je 0x7926
movq %rsi, %r14
cmpl $0x3, %eax
je 0x78d5
cmpl $0x4, %eax
jne 0x78f8
movq (%r14), %rax
movb 0xb(%rdi), %cl
movq $-0x1, %rdx
shlq %cl, %rdx
notl %edx
andl 0xc(%rax), %edx
movslq %edx, %rcx
leaq (%rcx,%rcx,4), %rcx
shlq $0x3, %rcx
addq 0x20(%rdi), %rcx
cmpl $0x4, 0x18(%rcx)
jne 0x78ca
cmpq %rax, 0x10(%rcx)
je 0x7923
movq 0x20(%rcx), %rcx
testq %rcx, %rcx
jne 0x78be
jmp 0x7926
movsd (%r14), %xmm0
cvttpd2dq %xmm0, %xmm1
cvtdq2pd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x78f8
jp 0x78f8
cvttsd2si %xmm0, %esi
popq %rbx
popq %r14
popq %r15
jmp 0x7984
movq %r14, %rsi
callq 0x79ff
movq %rax, %r15
leaq 0x10(%r15), %rdi
movq %r14, %rsi
callq 0x7ab2
testl %eax, %eax
jne 0x791e
movq 0x20(%r15), %r15
testq %r15, %r15
jne 0x7903
jmp 0x7926
movq %r15, %rbx
jmp 0x7926
movq %rcx, %rbx
movq %rbx, %rax
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaT_gettm
static const TValue*luaT_gettm(Table*events,TMS event,TString*ename){
const TValue*tm=luaH_getstr(events,ename);
if(ttisnil(tm)){
events->flags|=cast_byte(1u<<event);
return NULL;
}
else return tm;
}

// 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 0xdb42(%rip), %rcx      # 0x15498
cmpl $0x4, 0x18(%rax)
jne 0x7962
cmpq %rdx, 0x10(%rax)
je 0x796e
movq 0x20(%rax), %rax
testq %rax, %rax
jne 0x7956
movq %rcx, %rax
cmpl $0x0, 0x8(%rax)
je 0x7975
retq
movl $0x1, %eax
movl %esi, %ecx
shll %cl, %eax
orb %al, 0xa(%rdi)
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x7997
cltq
shlq $0x4, %rax
addq 0x18(%rdi), %rax
retq
cvtsi2sd %esi, %xmm0
testl %esi, %esi
je 0x79d4
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 0x79d8
movq 0x20(%rdi), %rax
leaq 0xdab9(%rip), %rcx      # 0x15498
cmpl $0x3, 0x18(%rax)
jne 0x79f2
movsd 0x10(%rax), %xmm1
ucomisd %xmm0, %xmm1
jne 0x79f2
jnp 0x7996
movq 0x20(%rax), %rax
testq %rax, %rax
jne 0x79df
movq %rcx, %rax
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x7a2e
leaq 0xd770(%rip), %rcx      # 0x15180
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 0x7a7c
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 0x7a80
movsd (%rsi), %xmm0
xorpd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x7a89
jp 0x7a89
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 0x7a49
// File: /workspace/github_c_makefile_star2_O3/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 0x7ad5
cmpl $0x3, %eax
ja 0x7ad9
movl %eax, %eax
leaq 0xd6c8(%rip), %rcx      # 0x15190
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movb $0x1, %al
jmp 0x7afb
xorl %eax, %eax
jmp 0x7afb
movq (%rdi), %rax
cmpq (%rsi), %rax
jmp 0x7ae5
movl (%rdi), %eax
cmpl (%rsi), %eax
sete %al
jmp 0x7afb
movsd (%rsi), %xmm0
cmpeqsd (%rdi), %xmm0
movq %xmm0, %rax
andl $0x1, %eax
movzbl %al, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x7876
movb $0x0, 0xa(%r15)
leaq 0xd974(%rip), %rcx      # 0x15498
cmpq %rcx, %rax
je 0x7b2f
popq %rbx
popq %r14
popq %r15
retq
movl 0x8(%r14), %eax
cmpl $0x3, %eax
je 0x7b45
testl %eax, %eax
jne 0x7b50
leaq 0xdc48(%rip), %rsi      # 0x1578b
jmp 0x7b67
movsd (%r14), %xmm0
ucomisd %xmm0, %xmm0
jp 0x7b60
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
popq %rbx
popq %r14
popq %r15
jmp 0x7b71
leaq 0xdc37(%rip), %rsi      # 0x1579e
movq %rbx, %rdi
xorl %eax, %eax
callq 0x47e0
// File: /workspace/github_c_makefile_star2_O3/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:
xorl %eax, %eax
cmpl $0x3, 0x8(%rdi)
jne 0x7e6b
movsd (%rdi), %xmm0
cvttpd2dq %xmm0, %xmm1
cvtdq2pd %xmm1, %xmm1
ucomisd %xmm1, %xmm0
jne 0x7e6b
jnp 0x7e6c
retq
cvttsd2si %xmm0, %ecx
decl %ecx
cmpl $0x3fffffff, %ecx       # imm = 0x3FFFFFFF
ja 0x7e6b
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x100, %ecx            # imm = 0x100
jb 0x7e9b
movl %ecx, %edx
addl $0x8, %eax
shrl $0x8, %edx
cmpl $0xffff, %ecx           # imm = 0xFFFF
movl %edx, %ecx
ja 0x7e89
jmp 0x7e9d
movl %ecx, %edx
movl %edx, %ecx
leaq 0xd62a(%rip), %rdx      # 0x154d0
movzbl (%rcx,%rdx), %ecx
cltq
addq %rcx, %rax
incl 0x4(%rsi,%rax,4)
movl $0x1, %eax
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x7ef4
movq %rbx, %rdi
movq %r12, %rsi
movl %ebp, %edx
movl %ecx, (%rsp)
callq 0x8055
movl (%rsp), %ecx
movq %rbx, %rdi
movq %r12, %rsi
movl %ecx, %edx
callq 0x81ae
cmpl %ebp, %r15d
jle 0x7fb2
movq %r13, 0x18(%rsp)
movq %r14, 0x20(%rsp)
movl %ebp, 0x38(%r12)
movslq %ebp, %rax
movq %r15, 0x10(%rsp)
movl %r15d, %r13d
negl %r13d
movq %rbp, (%rsp)
leal 0x1(%rbp), %r14d
shlq $0x4, %rax
movq %rax, 0x8(%rsp)
leaq 0x8(%rax), %r15
movq 0x18(%r12), %rbp
cmpl $0x0, (%rbp,%r15)
je 0x7f67
movq %rbx, %rdi
movq %r12, %rsi
movl %r14d, %edx
callq 0x77a3
movq -0x8(%rbp,%r15), %rcx
movq %rcx, (%rax)
movl (%rbp,%r15), %ecx
movl %ecx, 0x8(%rax)
leal (%r14,%r13), %eax
incl %eax
movl %r14d, %ecx
incl %ecx
addq $0x10, %r15
movl %ecx, %r14d
cmpl $0x1, %eax
jne 0x7f3c
cmpl $-0x1, (%rsp)
jl 0x8044
movq 0x18(%r12), %rsi
movq 0x10(%rsp), %rdx
shlq $0x4, %rdx
movq %rbx, %rdi
movq 0x8(%rsp), %rcx
callq 0x43d1
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 0x8007
movl %eax, %r15d
leaq (%r15,%r15,4), %rax
incq %r15
leaq 0x10(,%rax,8), %r14
addq %r13, %r14
cmpl $0x0, -0x8(%r14)
je 0x7ffe
movq %rbx, %rdi
movq %r12, %rsi
movq %r14, %rdx
callq 0x7aff
movq -0x10(%r14), %rcx
movq %rcx, (%rax)
movl -0x8(%r14), %ecx
movl %ecx, 0x8(%rax)
addq $-0x28, %r14
decq %r15
jg 0x7fdb
leaq 0xd49a(%rip), %rax      # 0x154a8
cmpq %rax, %r13
je 0x8035
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 0xd5f6(%rip), %rsi      # 0x15641
movq %rbx, %rdi
xorl %eax, %eax
callq 0x47e0
// File: /workspace/github_c_makefile_star2_O3/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 0x81a0
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 0x43d1
movq %rax, 0x18(%r14)
movslq 0x38(%r14), %rdx
cmpl %ebx, %edx
jge 0x8196
subq %rdx, %r15
leaq 0x3(%r15), %rcx
andq $-0x4, %rcx
decq %r15
movq %r15, %xmm0
pshufd $0x44, %xmm0, %xmm0     # xmm0 = xmm0[0,1,0,1]
shlq $0x4, %rdx
addq %rdx, %rax
addq $0x38, %rax
xorl %edx, %edx
movdqa 0xcf50(%rip), %xmm1     # 0x15010
movdqa 0xcf58(%rip), %xmm2     # 0x15020
movdqa 0xcf60(%rip), %xmm3     # 0x15030
pxor %xmm3, %xmm0
pcmpeqd %xmm4, %xmm4
movq %rdx, %xmm5
pshufd $0x44, %xmm5, %xmm5     # xmm5 = xmm5[0,1,0,1]
movdqa %xmm5, %xmm6
por %xmm2, %xmm6
pxor %xmm3, %xmm6
movdqa %xmm6, %xmm7
pcmpgtd %xmm0, %xmm7
pcmpeqd %xmm0, %xmm6
pshufd $0xf5, %xmm6, %xmm8     # xmm8 = xmm6[1,1,3,3]
pand %xmm7, %xmm8
pshufd $0xf5, %xmm7, %xmm6     # xmm6 = xmm7[1,1,3,3]
por %xmm8, %xmm6
movd %xmm6, %esi
notl %esi
testb $0x1, %sil
je 0x8122
movl $0x0, -0x30(%rax)
pxor %xmm4, %xmm6
pextrw $0x4, %xmm6, %esi
testb $0x1, %sil
je 0x8138
movl $0x0, -0x20(%rax)
por %xmm1, %xmm5
pxor %xmm3, %xmm5
movdqa %xmm5, %xmm6
pcmpgtd %xmm0, %xmm6
pcmpeqd %xmm0, %xmm5
pshufd $0xf5, %xmm5, %xmm7     # xmm7 = xmm5[1,1,3,3]
pand %xmm6, %xmm7
pshufd $0xf5, %xmm6, %xmm5     # xmm5 = xmm6[1,1,3,3]
por %xmm7, %xmm5
pxor %xmm4, %xmm5
pextrw $0x0, %xmm5, %esi
testb $0x1, %sil
je 0x8174
movl $0x0, -0x10(%rax)
pextrw $0x4, %xmm5, %esi
testb $0x1, %sil
je 0x8185
movl $0x0, (%rax)
addq $0x4, %rdx
addq $0x40, %rax
cmpq %rdx, %rcx
jne 0x80d8
movl %ebx, 0x38(%r14)
popq %rbx
popq %r14
popq %r15
retq
leaq 0xd49a(%rip), %rsi      # 0x15641
xorl %eax, %eax
callq 0x47e0
// File: /workspace/github_c_makefile_star2_O3/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 0x81e6
decl %edx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x100, %edx            # imm = 0x100
jb 0x81fc
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
movl %edx, %ecx
addl $0x8, %eax
shrl $0x8, %ecx
cmpl $0xffff, %edx           # imm = 0xFFFF
movl %ecx, %edx
ja 0x81d4
jmp 0x81fe
leaq 0xd2bb(%rip), %rax      # 0x154a8
movq %rax, 0x20(%rbx)
xorl %r14d, %r14d
xorl %r15d, %r15d
jmp 0x8292
movl %edx, %ecx
movl %ecx, %ecx
leaq 0xd2c9(%rip), %rdx      # 0x154d0
movzbl (%rcx,%rdx), %ecx
leal (%rax,%rcx), %edx
cmpl $0x1e, %edx
jge 0x82ac
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 0x82b5
movq %r15, %rax
sarq $0x1d, %rax
leaq (%rax,%rax,4), %rcx
xorl %r13d, %r13d
xorl %esi, %esi
xorl %edx, %edx
callq 0x43d1
movq %rax, 0x20(%rbx)
testl %r12d, %r12d
jle 0x828e
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 0x826b
movq 0x20(%rbx), %rax
sarq $0x20, %r15
movb %r14b, 0xb(%rbx)
leaq (%r15,%r15,4), %rcx
leaq (%rax,%rcx,8), %rax
movq %rax, 0x28(%rbx)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0xd8e7(%rip), %rsi      # 0x15b9a
jmp 0x82bc
leaq 0xd385(%rip), %rsi      # 0x15641
xorl %eax, %eax
callq 0x47e0
// File: /workspace/github_c_makefile_star2_O3/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
movl %edx, %eax
movslq %esi, %rcx
leaq 0x13590(%rip), %rsi     # 0x1b860
movq (%rsi,%rcx,8), %rdx
cltq
movq (%rsi,%rax,8), %rcx
movb 0x2(%rdx), %al
cmpb 0x2(%rcx), %al
jne 0x82f0
leaq 0xd4de(%rip), %rsi      # 0x157c7
xorl %eax, %eax
callq 0x47e0
leaq 0xd4f1(%rip), %rsi      # 0x157e8
xorl %eax, %eax
callq 0x47e0
// File: /workspace/github_c_makefile_star2_O3/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 %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r12
movq %rdi, %r15
leaq 0x18(%rdi), %rbx
leaq 0x18(%rsi), %r14
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3210
testl %eax, %eax
je 0x832f
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq 0x10(%r12), %r12
movq 0x10(%r15), %r15
movq %rbx, %rdi
callq 0x30e0
cmpq %r12, %rax
je 0x8371
cmpq %r15, %rax
je 0x837b
leaq 0x1(%rax), %rcx
addq %rax, %rbx
incq %rbx
subq %rcx, %r15
addq %rax, %r14
incq %r14
subq %rcx, %r12
movq %rbx, %rdi
movq %r14, %rsi
callq 0x3210
testl %eax, %eax
je 0x8338
jmp 0x8323
xorl %eax, %eax
cmpq %r15, %r12
setne %al
jmp 0x8323
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
jmp 0x8323
// File: /workspace/github_c_makefile_star2_O3/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 0x5288
movl $0xffffffff, %ebx       # imm = 0xFFFFFFFF
cmpl $0x0, 0x8(%rax)
je 0x83fd
movq %rax, %r13
movq %r14, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x5288
movq %r13, %rdi
movq %rax, %rsi
callq 0x7ab2
testl %eax, %eax
je 0x83fd
movq 0x10(%r14), %rsi
movq %r14, %rdi
movq %r13, %rdx
movq %r12, %rcx
movq %r15, %r8
callq 0x5306
movq 0x10(%r14), %rax
movl 0x8(%rax), %ebx
testl %ebx, %ebx
je 0x83fd
cmpl $0x1, %ebx
jne 0x83f8
xorl %ebx, %ebx
cmpl $0x0, (%rax)
setne %bl
jmp 0x83fd
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_O3/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), %r15
cmpq %r14, %r15
je 0x84a7
movzbl (%r15), %eax
movl %eax, %ecx
orl $0x20, %ecx
cmpl $0x78, %ecx
jne 0x8484
leaq 0x8(%rsp), %r15
movq %r14, %rdi
movq %r15, %rsi
movl $0x10, %edx
callq 0x3260
movq %rax, %xmm0
punpckldq 0xcbda(%rip), %xmm0 # xmm0 = xmm0[0],mem[0],xmm0[1],mem[1]
subpd 0xcbe2(%rip), %xmm0     # 0x15050
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movsd %xmm1, (%rbx)
movq (%r15), %r15
movb (%r15), %al
testb %al, %al
je 0x84ab
callq 0x32f0
movq (%rax), %rax
movzbl (%r15), %ecx
incq %r15
testb $0x20, 0x1(%rax,%rcx,2)
jne 0x8490
xorl %eax, %eax
testb %cl, %cl
sete %al
jmp 0x84b0
xorl %eax, %eax
jmp 0x84b0
movl $0x1, %eax
addq $0x10, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O3/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 0x8e21
movq (%r15), %rcx
movq %rcx, (%rax)
jmp 0x8e29
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 0x8ed0
testb $0x4, 0xa(%rdi)
jne 0x8ed0
movq 0x20(%rbx), %rax
movq 0x138(%rax), %rdx
movl $0x2, %esi
callq 0x792f
testq %rax, %rax
je 0x8ed0
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 0x53b2
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_O3/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 0x8fd6
movl %esi, %ebx
movq %rdi, %r14
xorl %r15d, %r15d
movzbl 0x9(%r13), %ecx
testb $0x8, %cl
jne 0x8fb6
movl %ecx, %eax
andl $0x3, %eax
orl %ebx, %eax
je 0x8fb6
movq 0x10(%r13), %rdi
testq %rdi, %rdi
je 0x8faf
testb $0x4, 0xa(%rdi)
jne 0x8faf
movq 0x20(%r14), %rax
movq 0x138(%rax), %rdx
movl $0x2, %esi
callq 0x792f
movb 0x9(%r13), %cl
testq %rax, %rax
je 0x8faf
movq (%r13), %rax
movq 0x20(%r13), %rdx
addq %rdx, %r15
addq $0x28, %r15
orb $0x8, %cl
movb %cl, 0x9(%r13)
movq %rax, (%rbp)
movq 0x50(%r12), %rax
testq %rax, %rax
je 0x8fc8
movq (%rax), %rax
movq %rax, (%r13)
movq 0x50(%r12), %rax
movq %r13, (%rax)
jmp 0x8fcc
orb $0x8, %cl
movb %cl, 0x9(%r13)
movq %r13, %rbp
movq (%r13), %r13
testq %r13, %r13
jne 0x8f3a
jmp 0x8fd9
movq %r13, (%r13)
movq %r13, 0x50(%r12)
movq %rbp, %r13
jmp 0x8fb6
xorl %r15d, %r15d
movq %r15, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq