LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O1/mincebert[P]maketzx/maketzx.c
// Function: WriteTZXText
void WriteTZXText(void)
{
  byte count;
  text[1]=strlen(descr);
  for (count=0; count<sizeof(text); count++) PutData(&outfile,text[count],1);
  for (count=0; count<text[1]; count++) PutData(&outfile,descr[count],1);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
leaq 0x13ff7(%rip), %rbx     # 0x1c270
movq %rbx, %rdi
callq 0x10a0
movb %al, 0x6f09(%rip)       # 0xf190
xorl %r15d, %r15d
leaq 0x6efe(%rip), %r12      # 0xf18f
leaq 0xb100(%rip), %r14      # 0x13398
movzbl (%r15,%r12), %esi
movq %r14, %rdi
movl $0x1, %edx
callq 0x1e21
incq %r15
cmpq $0x1, %r15
je 0x8298
cmpb $0x0, 0x6ed6(%rip)      # 0xf190
je 0x82e7
xorl %r15d, %r15d
leaq 0xb0d2(%rip), %r14      # 0x13398
movzbl (%r15,%rbx), %esi
movq %r14, %rdi
movl $0x1, %edx
callq 0x1e21
incq %r15
movzbl 0x6eae(%rip), %eax      # 0xf190
cmpq %rax, %r15
jb 0x82c6
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/antonblanchard[P]will-it-scale/tests/readseek1.c
// Function: testcase
void testcase(unsigned long long *iterations, unsigned long nr)
{
	char buf[BUFLEN];
	char tmpfile[] = "/tmp/willitscale.XXXXXX";
	int fd = mkstemp(tmpfile);

	memset(buf, 0, sizeof(buf));
	assert(fd >= 0);
	assert(write(fd, buf, sizeof(buf)) == sizeof(buf));
	unlink(tmpfile);

	while (1) {
		lseek(fd, 0, SEEK_SET);
		assert(read(fd, buf, BUFLEN) == BUFLEN);

		(*iterations)++;
	}
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
subq $0x1020, %rsp           # imm = 0x1020
movq %rdi, %rbx
movaps 0x71f(%rip), %xmm0      # 0x3320
movq %rsp, %rdi
movaps %xmm0, (%rdi)
movabsq $0x5858585858582e, %rax # imm = 0x5858585858582E
movq %rax, 0x10(%rdi)
callq 0x21e0
movl %eax, %ebp
leaq 0x20(%rsp), %rdi
movl $0x1000, %edx           # imm = 0x1000
xorl %esi, %esi
callq 0x2140
testl %ebp, %ebp
js 0x2cc7
leaq 0x20(%rsp), %rsi
movl $0x1000, %edx           # imm = 0x1000
movl %ebp, %edi
callq 0x20d0
cmpq $0x1000, %rax           # imm = 0x1000
jne 0x2ce6
movq %rsp, %rdi
callq 0x2080
movl %ebp, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2120
leaq 0x20(%rsp), %rsi
movl $0x1000, %edx           # imm = 0x1000
movl %ebp, %edi
callq 0x2160
cmpq $0x1000, %rax           # imm = 0x1000
jne 0x2ca8
leaq 0x20(%rsp), %r14
incq (%rbx)
movl %ebp, %edi
xorl %esi, %esi
xorl %edx, %edx
callq 0x2120
movl $0x1000, %edx           # imm = 0x1000
movl %ebp, %edi
movq %r14, %rsi
callq 0x2160
cmpq $0x1000, %rax           # imm = 0x1000
je 0x2c83
leaq 0x649(%rip), %rdi       # 0x32f8
leaq 0x5d2(%rip), %rsi       # 0x3288
leaq 0x5dd(%rip), %rcx       # 0x329a
movl $0x18, %edx
callq 0x2130
leaq 0x5b2(%rip), %rdi       # 0x3280
leaq 0x5b3(%rip), %rsi       # 0x3288
leaq 0x5be(%rip), %rcx       # 0x329a
movl $0x12, %edx
callq 0x2130
leaq 0x5e0(%rip), %rdi       # 0x32cd
leaq 0x594(%rip), %rsi       # 0x3288
leaq 0x59f(%rip), %rcx       # 0x329a
movl $0x13, %edx
callq 0x2130
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: panic
static int panic(lua_State*L){
(void)L;
fprintf(stderr,"PANIC: unprotected error in call to Lua API (%s)\n",
lua_tostring(L,-1));
return 0;
}

// Assembly:
pushq %rbx
movq 0x17ce0(%rip), %rax     # 0x1aff8
movq (%rax), %rbx
pushq $-0x1
popq %rsi
xorl %edx, %edx
callq 0x3c5a
leaq 0x1159e(%rip), %rsi     # 0x148ca
movq %rbx, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x3180
xorl %eax, %eax
popq %rbx
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: lua_pushstring
static void lua_pushstring(lua_State*L,const char*s){
if(s==NULL)
lua_pushnil(L);
else
lua_pushlstring(L,s,strlen(s));
}

// Assembly:
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
testq %rsi, %rsi
je 0x3918
movq %rsi, %r14
movq %rsi, %rdi
callq 0x30e0
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x90a1
movq 0x10(%rbx), %rax
movl $0x0, 0x8(%rax)
addq $0x10, %rax
movq %rax, 0x10(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: lua_rawseti
static void lua_rawseti(lua_State*L,int idx,int n){
StkId o;
api_checknelems(L,1);
o=index2adr(L,idx);
luai_apicheck(L,ttistable(o));
setobj(L,luaH_setnum(L,hvalue(o),n),L->top-1);
luaC_barriert(L,hvalue(o),L->top-1);
L->top--;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebp
movq %rdi, %rbx
callq 0x975f
movq %rax, %r14
movq 0x10(%rbx), %r15
movq (%rax), %rsi
movq %rbx, %rdi
movl %ebp, %edx
callq 0x74cb
movq -0x10(%r15), %rcx
movq %rcx, (%rax)
movl -0x8(%r15), %ecx
movl %ecx, 0x8(%rax)
movq 0x10(%rbx), %rax
cmpl $0x4, -0x8(%rax)
jl 0x399b
movq -0x10(%rax), %rax
testb $0x3, 0x9(%rax)
je 0x399b
movq (%r14), %rax
movb 0x9(%rax), %cl
testb $0x4, %cl
je 0x399b
movq 0x20(%rbx), %rdx
andb $-0x5, %cl
movb %cl, 0x9(%rax)
movq 0x40(%rdx), %rcx
movq %rcx, 0x30(%rax)
movq %rax, 0x40(%rdx)
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: lua_setfield
static void lua_setfield(lua_State*L,int idx,const char*k){
StkId t;
TValue key;
api_checknelems(L,1);
t=index2adr(L,idx);
api_checkvalidindex(L,t);
setsvalue(L,&key,luaS_new(L,k));
luaV_settable(L,t,&key,L->top-1);
L->top--;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0x10, %rsp
movq %rdx, %r14
movq %rdi, %rbx
callq 0x975f
movq %rax, %r15
movq %r14, %rdi
callq 0x30e0
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x412b
movq %rsp, %rdx
movq %rax, (%rdx)
movl $0x4, 0x8(%rdx)
movq 0x10(%rbx), %rcx
addq $-0x10, %rcx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x6fc6
addq $-0x10, 0x10(%rbx)
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: lua_pcall
static int lua_pcall(lua_State*L,int nargs,int nresults,int errfunc){
struct CallS c;
int status;
ptrdiff_t func;
api_checknelems(L,nargs+1);
checkresults(L,nargs,nresults);
if(errfunc==0)
func=0;
else{
StkId o=index2adr(L,errfunc);
api_checkvalidindex(L,o);
func=savestack(L,o);
}
c.func=L->top-(nargs+1);
c.nresults=nresults;
status=luaD_pcall(L,f_call,&c,savestack(L,c.func),func);
adjustresults(L,nresults);
return status;
}

// Assembly:
pushq %rbp
pushq %rbx
subq $0x18, %rsp
movl %edx, %ebp
movq %rdi, %rbx
notl %esi
movslq %esi, %rcx
shlq $0x4, %rcx
addq 0x10(%rdi), %rcx
leaq 0x8(%rsp), %rdx
movq %rcx, (%rdx)
movl %ebp, 0x8(%rdx)
subq 0x40(%rdi), %rcx
leaq 0xfcf0(%rip), %rsi      # 0x13924
xorl %r8d, %r8d
callq 0xa8f2
cmpl $-0x1, %ebp
jne 0x3c53
movq 0x10(%rbx), %rcx
movq 0x28(%rbx), %rdx
cmpq 0x10(%rdx), %rcx
jb 0x3c53
movq %rcx, 0x10(%rdx)
addq $0x18, %rsp
popq %rbx
popq %rbp
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: lua_tolstring
static const char*lua_tolstring(lua_State*L,int idx,size_t*len){
StkId o=index2adr(L,idx);
if(!ttisstring(o)){
if(!luaV_tostring(L,o)){
if(len!=NULL)*len=0;
return NULL;
}
luaC_checkGC(L);
o=index2adr(L,idx);
}
if(len!=NULL)*len=tsvalue(o)->len;
return svalue(o);
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movq %rdx, %rbx
movl %esi, %ebp
movq %rdi, %r14
callq 0x975f
cmpl $0x4, 0x8(%rax)
je 0x3ca0
movq %r14, %rdi
movq %rax, %rsi
callq 0x5064
testl %eax, %eax
je 0x3cbb
movq 0x20(%r14), %rax
movq 0x78(%rax), %rcx
cmpq 0x70(%rax), %rcx
jb 0x3c96
movq %r14, %rdi
callq 0x68ed
movq %r14, %rdi
movl %ebp, %esi
callq 0x975f
testq %rbx, %rbx
je 0x3caf
movq (%rax), %rcx
movq 0x10(%rcx), %rcx
movq %rcx, (%rbx)
movq (%rax), %rax
addq $0x18, %rax
popq %rbx
popq %r14
popq %rbp
retq
testq %rbx, %rbx
je 0x3cc7
movq $0x0, (%rbx)
xorl %eax, %eax
jmp 0x3cb6
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: l_alloc
static void*l_alloc(void*ud,void*ptr,size_t osize,size_t nsize){
(void)ud;
(void)osize;
if(nsize==0){
free(ptr);
return NULL;
}
else
return realloc(ptr,nsize);
}

// Assembly:
movq %rsi, %rdi
testq %rcx, %rcx
je 0x3cdb
movq %rcx, %rsi
jmp 0x3230
pushq %rax
callq 0x3040
xorl %eax, %eax
popq %rcx
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaD_rawrunprotected
static int luaD_rawrunprotected(lua_State*L,Pfunc f,void*ud){
struct lua_longjmp lj;
lj.status=0;
lj.previous=L->errorJmp;
L->errorJmp=&lj;
LUAI_TRY(L,&lj,
(*f)(L,ud);
);
L->errorJmp=lj.previous;
return lj.status;
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
subq $0xe0, %rsp
movq %rdx, %r15
movq %rsi, %r14
movq %rdi, %rbx
leaq 0x8(%rsp), %rax
movl $0x0, 0xd0(%rax)
movq 0xa8(%rdi), %rcx
movq %rcx, (%rax)
movq %rax, 0xa8(%rdi)
leaq 0x10(%rsp), %rdi
callq 0x3160
testl %eax, %eax
jne 0x3d31
movq %rbx, %rdi
movq %r15, %rsi
callq *%r14
movq 0x8(%rsp), %rax
movq %rax, 0xa8(%rbx)
movl 0xd8(%rsp), %eax
addq $0xe0, %rsp
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: f_luaopen
static void f_luaopen(lua_State*L,void*ud){
global_State*g=G(L);
UNUSED(ud);
stack_init(L,L);
sethvalue(L,gt(L),luaH_new(L,0,2));
sethvalue(L,registry(L),luaH_new(L,0,2));
luaS_resize(L,32);
luaT_init(L);
luaX_init(L);
luaS_fix(luaS_newliteral(L,"not enough memory"));
g->GCthreshold=4*g->totalbytes;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movq 0x20(%rdi), %r15
xorl %r12d, %r12d
movl $0x140, %ecx            # imm = 0x140
xorl %esi, %esi
xorl %edx, %edx
callq 0x42ab
movq %rax, 0x50(%rbx)
movq %rax, 0x28(%rbx)
movl $0x8, 0x5c(%rbx)
addq $0x118, %rax            # imm = 0x118
movq %rax, 0x48(%rbx)
movl $0x2d0, %ecx            # imm = 0x2D0
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x42ab
movq %rax, 0x40(%rbx)
movl $0x2d, 0x58(%rbx)
movq %rax, 0x10(%rbx)
leaq 0x270(%rax), %rcx
movq %rcx, 0x38(%rbx)
movq 0x28(%rbx), %rcx
movq %rax, 0x8(%rcx)
leaq 0x10(%rax), %rdx
movq %rdx, 0x10(%rbx)
movl $0x0, 0x8(%rax)
movq %rdx, (%rcx)
movq %rdx, 0x18(%rbx)
addq $0x150, %rax            # imm = 0x150
movq %rax, 0x10(%rcx)
movq %rbx, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x3fc8
movq %rax, 0x78(%rbx)
movl $0x5, %ebp
movl %ebp, 0x80(%rbx)
movq 0x20(%rbx), %r14
movq %rbx, %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x3fc8
movq %rax, 0xa0(%r14)
movl %ebp, 0xa8(%r14)
movq %rbx, %rdi
movl $0x20, %esi
callq 0x404e
leaq 0x16a8d(%rip), %r13     # 0x1a8c0
movq (%r12,%r13), %r14
movq %r14, %rdi
callq 0x30e0
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x412b
movq 0x20(%rbx), %rcx
movq %rax, 0x128(%rcx,%r12)
movq 0x20(%rbx), %rax
movq 0x128(%rax,%r12), %rax
orb $0x20, 0x9(%rax)
addq $0x8, %r12
cmpq $0x88, %r12
jne 0x3e33
movb $0x1, %bpl
xorl %r12d, %r12d
leaq 0x16acd(%rip), %r13     # 0x1a950
movq (%r12,%r13), %r14
movq %r14, %rdi
callq 0x30e0
movq %rbx, %rdi
movq %r14, %rsi
movq %rax, %rdx
callq 0x412b
orb $0x20, 0x9(%rax)
movb %bpl, 0xa(%rax)
addq $0x8, %r12
incb %bpl
cmpq $0xa8, %r12
jne 0x3e83
leaq 0x10733(%rip), %rsi     # 0x145ef
movl $0x11, %edx
movq %rbx, %rdi
callq 0x412b
orb $0x20, 0x9(%rax)
movq 0x78(%r15), %rax
shlq $0x2, %rax
movq %rax, 0x70(%r15)
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: close_state
static void close_state(lua_State*L){
global_State*g=G(L);
luaF_close(L,L->stack);
luaC_freeall(L);
luaM_freearray(L,G(L)->strt.hash,G(L)->strt.size,TString*);
luaZ_freebuffer(L,&g->buff);
freestack(L,L);
(*g->frealloc)(g->ud,fromstate(L),state_size(LG),0);
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rdi, %rbx
movq 0x20(%rdi), %r15
movq 0x40(%rdi), %rsi
callq 0x438e
movq 0x20(%rbx), %r14
movb $0x43, 0x20(%r14)
leaq 0x28(%r14), %rsi
movq %rbx, %rdi
movq $-0x3, %rdx
callq 0x86de
cmpl $0x0, 0xc(%r14)
jle 0x3f4f
xorl %r12d, %r12d
xorl %r13d, %r13d
movq (%r14), %rsi
addq %r12, %rsi
movq %rbx, %rdi
movq $-0x3, %rdx
callq 0x86de
incq %r13
movslq 0xc(%r14), %rax
addq $0x8, %r12
cmpq %rax, %r13
jl 0x3f2a
movq 0x20(%rbx), %r12
movslq 0xc(%r12), %r14
shlq $0x3, %r14
movq (%r12), %rsi
movq 0x18(%r12), %rdi
movq %r14, %rdx
xorl %ecx, %ecx
callq *0x10(%r12)
subq %r14, 0x78(%r12)
movq 0x58(%r15), %rsi
movq 0x68(%r15), %r14
movq 0x20(%rbx), %r12
movq 0x18(%r12), %rdi
movq %r14, %rdx
xorl %ecx, %ecx
callq *0x10(%r12)
subq %r14, 0x78(%r12)
movq %rax, 0x58(%r15)
movq $0x0, 0x68(%r15)
movq %rbx, %rdi
movq %rbx, %rsi
callq 0x8bee
movq 0x10(%r15), %rax
movq 0x18(%r15), %rdi
movl $0x268, %edx            # imm = 0x268
movq %rbx, %rsi
xorl %ecx, %ecx
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
jmpq *%rax
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaH_new
static Table*luaH_new(lua_State*L,int narray,int nhash){
Table*t=luaM_new(L,Table);
luaC_link(L,obj2gco(t),5);
t->metatable=NULL;
t->flags=cast_byte(~0);
t->array=NULL;
t->sizearray=0;
t->lsizenode=0;
t->node=cast(Node*,(&dummynode_));
setarrayvector(L,t,narray);
setnodevector(L,t,nhash);
return t;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movl %edx, %ebx
movl %esi, %ebp
movq %rdi, %r14
movl $0x40, %ecx
xorl %esi, %esi
xorl %edx, %edx
callq 0x42ab
movq %rax, %r15
movq 0x20(%r14), %rax
movq 0x28(%rax), %rcx
movq %rcx, (%r15)
movq %r15, 0x28(%rax)
movb 0x20(%rax), %al
andb $0x3, %al
movb %al, 0x9(%r15)
movb $0x5, 0x8(%r15)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%r15)
movw $0xff, 0xa(%r15)
movl $0x0, 0x38(%r15)
leaq 0x1040e(%rip), %rax     # 0x14430
movq %rax, 0x20(%r15)
movq %r14, %rdi
movq %r15, %rsi
movl %ebp, %edx
callq 0x7dd4
movq %r14, %rdi
movq %r15, %rsi
movl %ebx, %edx
callq 0x7e3f
movq %r15, %rax
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: luaS_resize
static void luaS_resize(lua_State*L,int newsize){
GCObject**newhash;
stringtable*tb;
int i;
if(G(L)->gcstate==2)
return;
newhash=luaM_newvector(L,newsize,GCObject*);
tb=&G(L)->strt;
for(i=0;i<newsize;i++)newhash[i]=NULL;
for(i=0;i<tb->size;i++){
GCObject*p=tb->hash[i];
while(p){
GCObject*next=p->gch.next;
unsigned int h=gco2ts(p)->hash;
int h1=lmod(h,newsize);
p->gch.next=newhash[h1];
newhash[h1]=p;
p=next;
}
}
luaM_freearray(L,tb->hash,tb->size,TString*);
tb->size=newsize;
tb->hash=newhash;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq 0x20(%rdi), %rax
cmpb $0x2, 0x21(%rax)
je 0x4110
movl %esi, %ebx
movq %rdi, %r14
cmpl $-0x1, %esi
jl 0x411a
movslq %ebx, %r12
leaq (,%r12,8), %rcx
movq %r14, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x42ab
movq %rax, %r15
movq 0x20(%r14), %r13
testl %ebx, %ebx
jle 0x40a5
movl %ebx, %edx
shlq $0x3, %rdx
movq %r15, %rdi
xorl %esi, %esi
callq 0x3100
movl 0xc(%r13), %ecx
testl %ecx, %ecx
jle 0x40e8
decq %r12
xorl %eax, %eax
movq (%r13), %rcx
movq (%rcx,%rax,8), %rcx
testq %rcx, %rcx
je 0x40dc
movq (%rcx), %rdx
movslq 0xc(%rcx), %rsi
andq %r12, %rsi
movq (%r15,%rsi,8), %rdi
movq %rdi, (%rcx)
movq %rcx, (%r15,%rsi,8)
movq %rdx, %rcx
testq %rdx, %rdx
jne 0x40bf
incq %rax
movslq 0xc(%r13), %rcx
cmpq %rcx, %rax
jl 0x40b2
movq (%r13), %rsi
movslq %ecx, %r12
shlq $0x3, %r12
movq 0x20(%r14), %r14
movq 0x18(%r14), %rdi
movq %r12, %rdx
xorl %ecx, %ecx
callq *0x10(%r14)
subq %r12, 0x78(%r14)
movl %ebx, 0xc(%r13)
movq %r15, (%r13)
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
leaq 0x104f8(%rip), %rsi     # 0x14619
movq %r14, %rdi
xorl %eax, %eax
callq 0x46c4
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaS_newlstr
static TString*luaS_newlstr(lua_State*L,const char*str,size_t l){
GCObject*o;
unsigned int h=cast(unsigned int,l);
size_t step=(l>>5)+1;
size_t l1;
for(l1=l;l1>=step;l1-=step)
h=h^((h<<5)+(h>>2)+cast(unsigned char,str[l1-1]));
for(o=G(L)->strt.hash[lmod(h,G(L)->strt.size)];
o!=NULL;
o=o->gch.next){
TString*ts=rawgco2ts(o);
if(ts->tsv.len==l&&(memcmp(str,getstr(ts),l)==0)){
if(isdead(G(L),o))changewhite(o);
return ts;
}
}
return newlstr(L,str,l,h);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdx, %r14
movq %rsi, %r15
testq %rdx, %rdx
je 0x4178
movq %r14, %rax
shrq $0x5, %rax
movq %rax, %rcx
notq %rcx
movq %r14, %rdx
movl %r14d, %ebp
movl %ebp, %esi
shll $0x5, %esi
movl %ebp, %r8d
shrl $0x2, %r8d
addl %esi, %r8d
movzbl -0x1(%r15,%rdx), %esi
addl %r8d, %esi
xorl %esi, %ebp
addq %rcx, %rdx
cmpq %rax, %rdx
ja 0x4154
jmp 0x417b
movl %r14d, %ebp
movq %rdi, (%rsp)
movq 0x20(%rdi), %rax
movslq 0xc(%rax), %rcx
decq %rcx
movslq %ebp, %r13
andq %rcx, %r13
shlq $0x3, %r13
addq (%rax), %r13
movq (%r13), %r13
testq %r13, %r13
je 0x41e7
movb $0x1, %bl
cmpq %r14, 0x10(%r13)
jne 0x41de
leaq 0x18(%r13), %rsi
movq %r15, %rdi
movq %r14, %rdx
callq 0x3200
testl %eax, %eax
jne 0x41de
movb 0x9(%r13), %al
movq (%rsp), %rcx
movq 0x20(%rcx), %rcx
movb 0x20(%rcx), %cl
notb %cl
andb %al, %cl
testb $0x3, %cl
je 0x41d9
xorb $0x3, %al
movb %al, 0x9(%r13)
xorl %ebx, %ebx
movq %r13, %r12
testb %bl, %bl
jne 0x4197
jmp 0x4287
leaq 0x1b(%r14), %rax
cmpq $0x19, %rax
jbe 0x4299
leaq 0x19(%r14), %rcx
xorl %ebx, %ebx
movq (%rsp), %r13
movq %r13, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x42ab
movq %rax, %r12
movq %r14, 0x10(%rax)
movl %ebp, 0xc(%rax)
movq 0x20(%r13), %rax
movb 0x20(%rax), %al
andb $0x3, %al
movb %al, 0x9(%r12)
movb $0x4, 0x8(%r12)
movb %bl, 0xa(%r12)
leaq 0x18(%r12), %rdi
movq %r15, %rsi
movq %r14, %rdx
callq 0x31b0
movb %bl, 0x18(%r12,%r14)
movq 0x20(%r13), %rax
movl 0xc(%rax), %ecx
decl %ecx
andl %ebp, %ecx
movq (%rax), %rdx
movq (%rdx,%rcx,8), %rdx
movq %rdx, (%r12)
movq (%rax), %rdx
movq %r12, (%rdx,%rcx,8)
movl 0x8(%rax), %ecx
movl 0xc(%rax), %esi
incl %ecx
cmpl %esi, %ecx
setbe %dl
movl %ecx, 0x8(%rax)
cmpl $0x3fffffff, %esi       # imm = 0x3FFFFFFF
setge %al
orb %dl, %al
jne 0x4287
addl %esi, %esi
movq %r13, %rdi
callq 0x404e
movq %r12, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x10379(%rip), %rsi     # 0x14619
movq (%rsp), %rdi
xorl %eax, %eax
callq 0x46c4
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaM_realloc_
static void*luaM_realloc_(lua_State*L,void*block,size_t osize,size_t nsize){
global_State*g=G(L);
block=(*g->frealloc)(g->ud,block,osize,nsize);
if(block==NULL&&nsize>0)
luaD_throw(L,4);
g->totalbytes=(g->totalbytes-osize)+nsize;
return block;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rcx, %rbx
movq %rdx, %r14
movq %rdi, %r15
movq 0x20(%rdi), %r12
movq 0x18(%r12), %rdi
callq *0x10(%r12)
testq %rbx, %rbx
je 0x42d4
testq %rax, %rax
je 0x42e8
subq %r14, %rbx
addq %rbx, 0x78(%r12)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
movq %r15, %rdi
movl $0x4, %esi
callq 0x42f5
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaD_throw
static void luaD_throw(lua_State*L,int errcode){
if(L->errorJmp){
L->errorJmp->status=errcode;
LUAI_THROW(L,L->errorJmp);
}
else{
L->status=cast_byte(errcode);
if(G(L)->panic){
resetstack(L,errcode);
G(L)->panic(L);
}
exit(EXIT_FAILURE);
}
}

// Assembly:
pushq %rbp
pushq %r14
pushq %rbx
movl %esi, %ebp
movq %rdi, %rbx
movq 0xa8(%rdi), %rdi
testq %rdi, %rdi
jne 0x437a
movb %bpl, 0xa(%rbx)
movq 0x20(%rbx), %rax
cmpq $0x0, 0x98(%rax)
je 0x4370
leaq 0xa8(%rbx), %r14
movq 0x50(%rbx), %rax
movq %rax, 0x28(%rbx)
movq (%rax), %rsi
movq %rsi, 0x18(%rbx)
movq %rbx, %rdi
callq 0x438e
movq 0x18(%rbx), %rdx
movq %rbx, %rdi
movl %ebp, %esi
callq 0x447b
movzwl 0x62(%rbx), %eax
movw %ax, 0x60(%rbx)
movb $0x1, 0x65(%rbx)
movq %rbx, %rdi
callq 0x44e4
xorps %xmm0, %xmm0
movups %xmm0, (%r14)
movq 0x20(%rbx), %rax
movq %rbx, %rdi
callq *0x98(%rax)
movl $0x1, %edi
callq 0x32a0
movl %ebp, 0xd0(%rdi)
addq $0x8, %rdi
movl $0x1, %esi
callq 0x3240
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaF_close
static void luaF_close(lua_State*L,StkId level){
UpVal*uv;
global_State*g=G(L);
while(L->openupval!=NULL&&(uv=ngcotouv(L->openupval))->v>=level){
GCObject*o=obj2gco(uv);
L->openupval=uv->next;
if(isdead(g,o))
luaF_freeupval(L,uv);
else{
unlinkupval(uv);
setobj(L,&uv->u.value,uv->v);
uv->v=&uv->u.value;
luaC_linkupval(L,uv);
}
}
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
movq %rsi, %rbx
movq 0x98(%rdi), %rsi
testq %rsi, %rsi
je 0x4475
movq %rdi, %r14
movq 0x20(%rdi), %r15
cmpq %rbx, 0x10(%rsi)
jb 0x4475
movq (%rsi), %rax
movq %rax, 0x98(%r14)
movb 0x20(%r15), %al
notb %al
andb 0x9(%rsi), %al
testb $0x3, %al
je 0x43db
movq %r14, %rdi
callq 0x4557
jmp 0x445e
leaq 0x18(%rsi), %rax
movq 0x18(%rsi), %rcx
movq 0x20(%rsi), %rdx
movq %rcx, 0x18(%rdx)
movq 0x18(%rsi), %rcx
movq 0x20(%rsi), %rdx
movq %rdx, 0x20(%rcx)
movq 0x10(%rsi), %rcx
movq (%rcx), %rdx
movq %rdx, 0x18(%rsi)
movl 0x8(%rcx), %ecx
movl %ecx, 0x20(%rsi)
movq %rax, 0x10(%rsi)
movq 0x20(%r14), %rdx
movq 0x28(%rdx), %rcx
movq %rcx, (%rsi)
movq %rsi, 0x28(%rdx)
movb 0x9(%rsi), %cl
testb $0x7, %cl
jne 0x445e
cmpb $0x1, 0x21(%rdx)
jne 0x4454
movl %ecx, %edx
orb $0x4, %dl
movb %dl, 0x9(%rsi)
cmpl $0x4, 0x20(%rsi)
jl 0x445e
movq (%rax), %rax
testb $0x3, 0x9(%rax)
je 0x445e
movq 0x20(%r14), %rdi
cmpb $0x1, 0x21(%rdi)
jne 0x4470
movq %rax, %rsi
callq 0x4593
jmp 0x445e
movb 0x20(%rdx), %al
andb $0x3, %al
orb %cl, %al
movb %al, 0x9(%rsi)
movq 0x98(%r14), %rsi
testq %rsi, %rsi
jne 0x43ad
jmp 0x4475
movb 0x20(%rdi), %al
jmp 0x4457
popq %rbx
popq %r14
popq %r15
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x44a5
cmpl $0x5, %esi
je 0x44b5
cmpl $0x4, %esi
jne 0x44d4
leaq 0x10151(%rip), %rsi     # 0x145ef
movl $0x11, %edx
jmp 0x44c1
movq 0x10(%r14), %rax
movq -0x10(%rax), %rcx
movq %rcx, (%rbx)
movl -0x8(%rax), %eax
jmp 0x44d1
leaq 0x10145(%rip), %rsi     # 0x14601
movl $0x17, %edx
movq %r14, %rdi
callq 0x412b
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_O1/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 0x4556
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 0x454f
shlq $0x3, %rax
leaq (%rax,%rax,4), %rdx
movl $0xc3500, %ecx          # imm = 0xC3500
movq %rbx, %rdi
movq %r14, %rsi
callq 0x42ab
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_O1/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(%rbx), %al
andb $-0x4, %al
movb %al, 0x9(%rbx)
movzbl 0x8(%rbx), %ecx
cmpl $0x7, %ecx
jne 0x45d6
movq 0x10(%rbx), %rsi
orb $0x4, %al
movb %al, 0x9(%rbx)
testq %rsi, %rsi
je 0x45ca
testb $0x3, 0x9(%rsi)
je 0x45ca
movq %r14, %rdi
callq 0x4593
movq 0x18(%rbx), %rbx
testb $0x3, 0x9(%rbx)
jne 0x459d
jmp 0x461b
addl $-0x5, %ecx
cmpl $0x5, %ecx
ja 0x461b
leaq 0xfa2b(%rip), %rax      # 0x14010
movslq (%rax,%rcx,4), %rcx
addq %rax, %rcx
jmpq *%rcx
movq 0x38(%r14), %rax
movq %rax, 0x30(%rbx)
jmp 0x4617
movq 0x38(%r14), %rax
movq %rax, 0x68(%rbx)
jmp 0x4617
movq 0x38(%r14), %rax
movq %rax, 0xa0(%rbx)
jmp 0x4617
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 0x463e
movq (%rax), %rsi
testb $0x3, 0x9(%rsi)
je 0x463e
movq %r14, %rdi
callq 0x4593
leaq 0x18(%rbx), %rax
cmpq %rax, 0x10(%rbx)
jne 0x461b
orb $0x4, 0x9(%rbx)
jmp 0x461b
// File: /workspace/github_c_makefile_star2_O1/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 0x46b3
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 0x42ab
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 0xff5f(%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: 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 0x472d
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 0x47c2
movq %rax, %r14
movq 0x28(%rbx), %r15
movq 0x8(%r15), %rax
cmpl $0x6, 0x8(%rax)
jne 0x47ba
movq (%rax), %rax
cmpb $0x0, 0xa(%rax)
jne 0x47ba
movq %rbx, %rdi
movq %r15, %rsi
callq 0x4af0
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 0x4b52
leaq 0xfe98(%rip), %rsi      # 0x14640
movq %rbx, %rdi
movq %r15, %rdx
movl %ebp, %ecx
movq %r14, %r8
xorl %eax, %eax
callq 0x4c39
movq %rbx, %rdi
callq 0x4a5f
// File: /workspace/github_c_makefile_star2_O1/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 0x4ad6
movq 0x40(%rbx), %rcx
cmpl $0x6, 0x8(%rcx,%rax)
jne 0x4ae3
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 0x38(%rbx), %rax
subq 0x10(%rbx), %rax
cmpq $0x10, %rax
jg 0x4ab9
movq %rbx, %rdi
movl $0x1, %esi
callq 0x4d13
movq 0x10(%rbx), %rsi
leaq 0x10(%rsi), %rax
movq %rax, 0x10(%rbx)
addq $-0x10, %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x523c
movq %rbx, %rdi
movl $0x2, %esi
callq 0x42f5
movq %rbx, %rdi
movl $0x5, %esi
callq 0x42f5
// File: /workspace/github_c_makefile_star2_O1/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), %rcx
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpl $0x6, 0x8(%rcx)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
jne 0x4b35
movq (%rcx), %rdx
cmpb $0x0, 0xa(%rdx)
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
jne 0x4b35
cmpq %rsi, 0x28(%rdi)
jne 0x4b20
movq 0x30(%rdi), %rdx
movq %rdx, 0x18(%rsi)
movq 0x18(%rsi), %rdx
movq (%rcx), %rsi
movq 0x20(%rsi), %rsi
subq 0x18(%rsi), %rdx
shrq $0x2, %rdx
decl %edx
testl %edx, %edx
js 0x4b4e
movq (%rcx), %rax
movq 0x20(%rax), %rax
movq 0x28(%rax), %rax
testq %rax, %rax
je 0x4b4f
movl %edx, %ecx
movl (%rax,%rcx,4), %eax
retq
xorl %eax, %eax
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x4b89
cmpl $0x3d, %eax
jne 0x4bc2
incq %r14
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x3060
movb $0x0, -0x1(%rbx,%r15)
jmp 0x4c33
incq %r14
addq $-0x8, %r15
movq %r14, %rdi
callq 0x30e0
movb $0x0, (%rbx)
subq %r15, %rax
jbe 0x4bb2
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 0xfa85(%rip), %rsi      # 0x1464e
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 0x4c15
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x3120
movq %rbx, %rdi
callq 0x30e0
movl $0x2e2e2e, (%rbx,%rax)  # imm = 0x2E2E2E
jmp 0x4c20
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_O1/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 0x5053
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 0x42ab
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 0x4ff7
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 0x4fdd
movq 0x28(%rbx), %rax
movq 0x50(%rbx), %rcx
cmpq %rax, %rcx
ja 0x5039
movq 0x40(%rbx), %rdx
movq 0x10(%rcx), %rsi
subq %r14, %rsi
addq %rdx, %rsi
movq %rsi, 0x10(%rcx)
movq (%rcx), %rsi
movq 0x8(%rcx), %rdi
subq %r14, %rsi
addq %rdx, %rsi
movq %rsi, (%rcx)
subq %r14, %rdi
addq %rdx, %rdi
movq %rdi, 0x8(%rcx)
addq $0x28, %rcx
cmpq %rax, %rcx
jbe 0x5008
movq 0x18(%rbx), %rax
subq %r14, %rax
addq 0x40(%rbx), %rax
movq %rax, 0x18(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
leaq 0xf5bf(%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: 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 0x50c1
pushq %r15
pushq %r14
pushq %rbx
subq $0x20, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movsd (%rsi), %xmm0
leaq 0xf5fb(%rip), %rsi      # 0x14681
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 0x412b
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_O1/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 0x5120
cmpl $0x0, 0x8(%rax)
jne 0x50f4
movq %r12, %rdi
movq %rbx, %rsi
movl %ebp, %edx
callq 0x5120
cmpl $0x0, 0x8(%rax)
je 0x5115
movq %r12, %rdi
movq %r15, %rsi
movq %rax, %rdx
movq %r14, %rcx
movq %rbx, %r8
callq 0x519e
movl $0x1, %eax
jmp 0x5117
xorl %eax, %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: 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 0x512f
cmpl $0x5, %eax
jne 0x5138
movq (%rsi), %rax
addq $0x10, %rax
jmp 0x5146
movq 0x20(%rdi), %rcx
leaq (%rcx,%rax,8), %rax
addq $0xe0, %rax
movq (%rax), %rsi
leaq 0xf2d0(%rip), %rax      # 0x14420
testq %rsi, %rsi
je 0x5199
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 0x5190
cmpq %rdx, 0x10(%rcx)
je 0x519a
movq 0x20(%rcx), %rcx
testq %rcx, %rcx
jne 0x5184
retq
movq %rcx, %rax
retq
// File: /workspace/github_c_makefile_star2_O1/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 0x38(%rdi), %rax
subq 0x10(%rdi), %rax
cmpq $0x30, %rax
jg 0x51fb
movq %r14, %rdi
movl $0x3, %esi
callq 0x4d13
subq %r15, %rbx
movq 0x10(%r14), %rsi
leaq 0x30(%rsi), %rax
movq %rax, 0x10(%r14)
movq %r14, %rdi
movl $0x1, %edx
callq 0x523c
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_O1/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 0x6dff
addl %esi, %esi
movq %rbx, %rdi
callq 0x464e
cmpl $0x4e21, 0x5c(%rbx)     # imm = 0x4E21
jge 0x6e0c
movq 0x28(%rbx), %rax
addq $0x28, %rax
movq %rax, 0x28(%rbx)
popq %rbx
retq
movq %rbx, %rdi
movl $0x5, %esi
callq 0x42f5
leaq 0xd876(%rip), %rsi      # 0x14689
movq %rbx, %rdi
xorl %eax, %eax
callq 0x46c4
// File: /workspace/github_c_makefile_star2_O1/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), %rdx
movq 0x8(%rcx), %r8
movl 0x20(%rcx), %eax
movq %rdx, 0x18(%rdi)
movq -0x10(%rcx), %rcx
movq %rcx, 0x30(%rdi)
movl %eax, %ecx
testl %eax, %eax
je 0x6e6d
cmpq 0x10(%rdi), %rsi
jae 0x6e6d
leaq 0x10(%r8), %rdx
movq (%rsi), %r9
movq %r9, (%r8)
movl 0x8(%rsi), %r9d
movl %r9d, 0x8(%r8)
addq $0x10, %rsi
movq %rdx, %r8
decl %ecx
jne 0x6e46
xorl %ecx, %ecx
jmp 0x6e70
movq %r8, %rdx
testl %ecx, %ecx
jle 0x6e88
incl %ecx
movl $0x0, 0x8(%rdx)
addq $0x10, %rdx
decl %ecx
cmpl $0x1, %ecx
jg 0x6e76
movq %rdx, 0x10(%rdi)
incl %eax
retq
// File: /workspace/github_c_makefile_star2_O1/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
subq $0x18, %rsp
movq %rcx, %r14
movq %rdx, 0x10(%rsp)
movq %rsi, %r12
movq %rdi, 0x8(%rsp)
movl $0x64, %r15d
movslq 0x8(%r12), %rbx
cmpq $0x5, %rbx
jne 0x6eea
movq (%r12), %rbx
movq %rbx, %rdi
movq 0x10(%rsp), %rsi
callq 0x759e
movq %rax, %rbp
cmpl $0x0, 0x8(%rax)
je 0x6f07
movq (%rbp), %rax
movq %rax, (%r14)
movl 0x8(%rbp), %eax
movl %eax, 0x8(%r14)
xorl %eax, %eax
jmp 0x6f3c
movq 0x8(%rsp), %rdi
movq %r12, %rsi
xorl %edx, %edx
callq 0x5120
movq %rax, %r13
cmpl $0x0, 0x8(%rax)
jne 0x6f40
jmp 0x6fa1
movq 0x10(%rbx), %rdi
testq %rdi, %rdi
je 0x6f32
testb $0x1, 0xa(%rdi)
jne 0x6f32
movq 0x8(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x128(%rax), %rdx
xorl %esi, %esi
callq 0x7682
movq %rax, %r13
jmp 0x6f35
xorl %r13d, %r13d
movb $0x1, %al
testq %r13, %r13
je 0x6f77
testb %al, %al
je 0x6f61
movb $0x1, %al
cmpl $0x6, 0x8(%r13)
jne 0x6f65
movq 0x8(%rsp), %rdi
movq %r14, %rsi
movq %r13, %rdx
movq %r12, %rcx
movq 0x10(%rsp), %r8
callq 0x519e
xorl %eax, %eax
jmp 0x6f68
movq %r13, %r12
testb %al, %al
je 0x6f7f
decl %r15d
jne 0x6eb3
jmp 0x6f8e
xorl %r13d, %r13d
jmp 0x6ed8
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xd7ac(%rip), %rsi      # 0x14741
movq 0x8(%rsp), %rdi
xorl %eax, %eax
callq 0x46c4
leaq 0x138b8(%rip), %rax     # 0x1a860
movq (%rax,%rbx,8), %rcx
leaq 0xd6e5(%rip), %rsi      # 0x14698
leaq 0xe1be(%rip), %rdx      # 0x15178
movq 0x8(%rsp), %rdi
xorl %eax, %eax
callq 0x46c4
// File: /workspace/github_c_makefile_star2_O1/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaV_settable
static void luaV_settable(lua_State*L,const TValue*t,TValue*key,StkId val){
int loop;
TValue temp;
for(loop=0;loop<100;loop++){
const TValue*tm;
if(ttistable(t)){
Table*h=hvalue(t);
TValue*oldval=luaH_set(L,h,key);
if(!ttisnil(oldval)||
(tm=fasttm(L,h->metatable,TM_NEWINDEX))==NULL){
setobj(L,oldval,val);
h->flags=0;
luaC_barriert(L,h,val);
return;
}
}
else if(ttisnil(tm=luaT_gettmbyobj(L,t,TM_NEWINDEX)))
luaG_typeerror(L,t,"index");
if(ttisfunction(tm)){
callTM(L,tm,t,key,val);
return;
}
setobj(L,&temp,tm);
t=&temp;
}
luaG_runerror(L,"loop in settable");
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %rdx, 0x10(%rsp)
movq %rsi, %r12
movq %rdi, %rbx
movl $0x64, %r14d
movq %rcx, 0x8(%rsp)
movslq 0x8(%r12), %r15
cmpq $0x5, %r15
jne 0x7057
movq (%r12), %rbp
movq %rbx, %rdi
movq %rbp, %rsi
movq 0x10(%rsp), %rdx
callq 0x7852
movq %rax, %r15
cmpl $0x0, 0x8(%rax)
movq 0x8(%rsp), %rcx
je 0x707a
movq (%rcx), %rax
movq %rax, (%r15)
movl 0x8(%rcx), %eax
movl %eax, 0x8(%r15)
movb $0x0, 0xa(%rbp)
cmpl $0x4, 0x8(%rcx)
jl 0x7053
movq (%rcx), %rax
testb $0x3, 0x9(%rax)
je 0x7053
movb 0x9(%rbp), %al
testb $0x4, %al
je 0x7053
movq 0x20(%rbx), %rdx
andb $-0x5, %al
movb %al, 0x9(%rbp)
movq 0x40(%rdx), %rax
movq %rax, 0x30(%rbp)
movq %rbp, 0x40(%rdx)
xorl %eax, %eax
jmp 0x70b6
movq %rbx, %rdi
movq %r12, %rsi
movl $0x1, %edx
callq 0x5120
movq %rax, %r13
cmpl $0x0, 0x8(%rax)
movq 0x8(%rsp), %rcx
jne 0x70be
jmp 0x719e
movq 0x10(%rbp), %rdi
testq %rdi, %rdi
je 0x70a8
testb $0x2, 0xa(%rdi)
jne 0x70a8
movq 0x20(%rbx), %rax
movq 0x130(%rax), %rdx
movl $0x1, %esi
callq 0x7682
movq 0x8(%rsp), %rcx
movq %rax, %r13
jmp 0x70ab
xorl %r13d, %r13d
movb $0x1, %al
testq %r13, %r13
je 0x7176
testb %al, %al
je 0x7164
movl 0x8(%r13), %eax
cmpl $0x6, %eax
jne 0x714d
movq 0x10(%rbx), %rax
movq (%r13), %rdx
movq %rdx, (%rax)
movl 0x8(%r13), %edx
movl %edx, 0x8(%rax)
movq 0x10(%rbx), %rax
movq (%r12), %rdx
movq %rdx, 0x10(%rax)
movl 0x8(%r12), %edx
movl %edx, 0x18(%rax)
movq 0x10(%rbx), %rax
movq 0x10(%rsp), %rsi
movq (%rsi), %rdx
movq %rdx, 0x20(%rax)
movl 0x8(%rsi), %edx
movl %edx, 0x28(%rax)
movq 0x10(%rbx), %rax
movq (%rcx), %rdx
movq %rdx, 0x30(%rax)
movl 0x8(%rcx), %ecx
movl %ecx, 0x38(%rax)
movq 0x38(%rbx), %rax
subq 0x10(%rbx), %rax
cmpq $0x40, %rax
jg 0x7133
movq %rbx, %rdi
movl $0x4, %esi
callq 0x4d13
movq 0x10(%rbx), %rsi
leaq 0x40(%rsi), %rax
movq %rax, 0x10(%rbx)
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %edx, %edx
callq 0x523c
jmp 0x7166
movq (%r13), %rdx
movq %rdx, 0x18(%rsp)
movl %eax, 0x20(%rsp)
movb $0x1, %bpl
leaq 0x18(%rsp), %r12
jmp 0x7166
xorl %ebp, %ebp
testb %bpl, %bpl
je 0x717e
decl %r14d
jne 0x6fea
jmp 0x718d
xorl %r13d, %r13d
jmp 0x7017
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xd5be(%rip), %rsi      # 0x14752
movq %rbx, %rdi
xorl %eax, %eax
callq 0x46c4
leaq 0x136bb(%rip), %rax     # 0x1a860
movq (%rax,%r15,8), %rcx
leaq 0xd4e8(%rip), %rsi      # 0x14698
leaq 0xdfc1(%rip), %rdx      # 0x15178
movq %rbx, %rdi
xorl %eax, %eax
callq 0x46c4
// File: /workspace/github_c_makefile_star2_O1/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 0x747e
testq %rax, %rax
je 0x722b
movq %rax, %rbp
leaq 0x18(%rsp), %rsi
movq %r15, %rdi
callq 0x747e
testq %rax, %rax
je 0x722b
movsd (%rbp), %xmm0
movsd (%rax), %xmm1
addl $-0x5, %r13d
leaq 0xcedb(%rip), %rax      # 0x140f4
movslq (%rax,%r13,4), %rcx
addq %rax, %rcx
jmpq *%rcx
addsd %xmm1, %xmm0
jmp 0x72d7
movq %r14, %rdi
movq %r12, %rsi
movq %r15, %rdx
movq %rbx, %rcx
movl %r13d, %r8d
callq 0x50c2
testl %eax, %eax
jne 0x72e2
leaq 0x38(%rsp), %rsi
movq %r12, %rdi
callq 0x747e
testq %rax, %rax
cmoveq %r12, %r15
movslq 0x8(%r15), %rax
leaq 0x135fa(%rip), %rcx     # 0x1a860
movq (%rcx,%rax,8), %rcx
leaq 0xd427(%rip), %rsi      # 0x14698
leaq 0xd511(%rip), %rdx      # 0x14789
movq %r14, %rdi
xorl %eax, %eax
callq 0x46c4
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 0x72d7
mulsd %xmm1, %xmm0
jmp 0x72d7
divsd %xmm1, %xmm0
jmp 0x72d7
subsd %xmm1, %xmm0
jmp 0x72d7
callq 0x30c0
jmp 0x72d7
xorpd 0xd2d9(%rip), %xmm0     # 0x145b0
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_O1/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 0x7319
movq 0x18(%rbx), %rax
leal -0x1(%r12), %ecx
shlq $0x4, %rcx
cmpl $0x0, 0x8(%rax,%rcx)
je 0x736a
leaq 0xd110(%rip), %rax      # 0x14430
cmpq %rax, 0x20(%rbx)
je 0x73e1
leal 0x1(%r12), %r14d
movq %rbx, %rdi
movl %r14d, %esi
callq 0x76d7
cmpl $0x0, 0x8(%rax)
je 0x73a5
leal (%r14,%r14), %r15d
cmpl $0x7ffffffe, %r15d      # imm = 0x7FFFFFFE
jae 0x73e6
movq %rbx, %rdi
movl %r15d, %esi
callq 0x76d7
cmpl $0x0, 0x8(%rax)
movl %r14d, %r12d
movl %r15d, %r14d
jne 0x7340
jmp 0x73a8
xorl %r14d, %r14d
cmpl $0x1, %r12d
je 0x7401
xorl %ecx, %ecx
leal (%rcx,%r12), %r14d
shrl %r14d
leal -0x1(%r14), %edx
shlq $0x4, %rdx
cmpl $0x0, 0x8(%rax,%rdx)
jne 0x7395
movl %r14d, %r12d
movl %ecx, %r14d
movl %r12d, %edx
subl %r14d, %edx
movl %r14d, %ecx
cmpl $0x1, %edx
ja 0x7379
jmp 0x7401
movl %r14d, %r15d
movl %r15d, %eax
subl %r12d, %eax
cmpl $0x2, %eax
jb 0x73e1
leal (%r15,%r12), %r14d
shrl %r14d
movq %rbx, %rdi
movl %r14d, %esi
callq 0x76d7
cmpl $0x0, 0x8(%rax)
jne 0x73d1
movl %r14d, %r15d
movl %r12d, %r14d
movl %r15d, %eax
subl %r14d, %eax
movl %r14d, %r12d
cmpl $0x1, %eax
ja 0x73b3
jmp 0x7401
movl %r12d, %r14d
jmp 0x7401
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
leal 0x2(%r14), %esi
movq %rbx, %rdi
callq 0x76d7
incl %r14d
cmpl $0x0, 0x8(%rax)
jne 0x73ec
movl %r14d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq