LLM4Binary/decompile-bench-makefile huggingface dataset:
// File: /workspace/github_c_makefile_star2_O0/mincebert[P]maketzx/maketzx.c
// Function: WriteTZXNormalBlock
void WriteTZXNormalBlock(word datalen)
{
  word count;
  PushFilePointers();
  stdspeed[1]=Lo(mspause); stdspeed[2]=Hi(mspause);
  stdspeed[3]=Lo(datalen); stdspeed[4]=Hi(datalen);
  for (count=0; count<sizeof(stdspeed); count++) PutData(&outfile,stdspeed[count],1);
  ResetTempFile();
  for (count=0; count<datalen; count++) PutData(&outfile,GetData(&tempfile),1);
  PopFilePointers();
  lseek(inpfile.handle,filepos,SEEK_SET);
  inpfile.bufpoint=0;
  ResetTempFile();
}

// Assembly:
subq $0x18, %rsp
movl %edi, 0x14(%rsp)
callq 0x18e0
movsd 0x8a4b(%rip), %xmm0     # 0x13200
movsd 0x528b(%rip), %xmm2     # 0xfa48
movsd %xmm2, 0x8(%rsp)
movaps %xmm0, %xmm1
subsd %xmm2, %xmm1
cvttsd2si %xmm1, %rax
cvttsd2si %xmm0, %rdi
movq %rdi, %rcx
sarq $0x3f, %rcx
andq %rcx, %rax
orq %rax, %rdi
callq 0x2560
movsd 0x8(%rsp), %xmm2
movb %al, 0x8947(%rip)       # 0x13139
movsd 0x8a06(%rip), %xmm0     # 0x13200
movaps %xmm0, %xmm1
subsd %xmm2, %xmm1
cvttsd2si %xmm1, %rax
cvttsd2si %xmm0, %rdi
movq %rdi, %rcx
sarq $0x3f, %rcx
andq %rcx, %rax
orq %rax, %rdi
callq 0x2520
movb %al, 0x8917(%rip)       # 0x1313a
movl 0x14(%rsp), %eax
movl %eax, %edi
callq 0x2560
movb %al, 0x8907(%rip)       # 0x1313b
movl 0x14(%rsp), %eax
movl %eax, %edi
callq 0x2520
movb %al, 0x88f7(%rip)       # 0x1313c
movl $0x0, 0x10(%rsp)
movl 0x10(%rsp), %eax
cmpq $0x5, %rax
jae 0xa886
movl 0x10(%rsp), %eax
movl %eax, %ecx
leaq 0xcb14(%rip), %rdi      # 0x17378
movl $0x1, %edx
leaq 0x88c8(%rip), %rax      # 0x13138
movzbl (%rax,%rcx), %esi
callq 0x2440
movl 0x10(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x10(%rsp)
jmp 0xa84d
callq 0x18a0
movl $0x0, 0x10(%rsp)
movl 0x10(%rsp), %eax
cmpl 0x14(%rsp), %eax
jae 0xa8ca
leaq 0x10bf4(%rip), %rdi     # 0x1b498
callq 0x2370
leaq 0xcac8(%rip), %rdi      # 0x17378
movl $0x1, %edx
movzbl %al, %esi
callq 0x2440
movl 0x10(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x10(%rsp)
jmp 0xa893
callq 0x1a10
movzbl 0x898a(%rip), %edi      # 0x13260
movq 0x88eb(%rip), %rsi      # 0x131c8
xorl %edx, %edx
callq 0x10b0
movl $0x0, 0x8a72(%rip)      # 0x13360
callq 0x18a0
addq $0x18, %rsp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0x1040, %rsp           # imm = 0x1040
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movq 0x1346(%rip), %rax      # 0x4320
movq %rax, -0x1030(%rbp)
movq 0x1340(%rip), %rax      # 0x4328
movq %rax, -0x1028(%rbp)
movq 0x133a(%rip), %rax      # 0x4330
movq %rax, -0x1020(%rbp)
leaq -0x1030(%rbp), %rdi
callq 0x21d0
movl %eax, -0x1034(%rbp)
leaq -0x1010(%rbp), %rdi
xorl %esi, %esi
movl $0x1000, %edx           # imm = 0x1000
callq 0x2130
cmpl $0x0, -0x1034(%rbp)
jl 0x302d
jmp 0x304c
leaq 0x124c(%rip), %rdi      # 0x4280
leaq 0x124d(%rip), %rsi      # 0x4288
movl $0x12, %edx
leaq 0x1253(%rip), %rcx      # 0x429a
callq 0x2120
movl -0x1034(%rbp), %edi
leaq -0x1010(%rbp), %rsi
movl $0x1000, %edx           # imm = 0x1000
callq 0x20c0
cmpq $0x1000, %rax           # imm = 0x1000
jne 0x306d
jmp 0x308c
leaq 0x1259(%rip), %rdi      # 0x42cd
leaq 0x120d(%rip), %rsi      # 0x4288
movl $0x13, %edx
leaq 0x1213(%rip), %rcx      # 0x429a
callq 0x2120
leaq -0x1030(%rbp), %rdi
callq 0x2080
movl -0x1034(%rbp), %edi
xorl %eax, %eax
movl %eax, %esi
xorl %edx, %edx
callq 0x2110
movl -0x1034(%rbp), %edi
leaq -0x1010(%rbp), %rsi
movl $0x1000, %edx           # imm = 0x1000
callq 0x2150
cmpq $0x1000, %rax           # imm = 0x1000
jne 0x30ca
jmp 0x30e9
leaq 0x1227(%rip), %rdi      # 0x42f8
leaq 0x11b0(%rip), %rsi      # 0x4288
movl $0x18, %edx
leaq 0x11b6(%rip), %rcx      # 0x429a
callq 0x2120
movq -0x8(%rbp), %rax
movq (%rax), %rcx
addq $0x1, %rcx
movq %rcx, (%rax)
jmp 0x3098
// File: /workspace/github_c_makefile_star2_O0/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: main
int main(int argc,char**argv){
lua_State*L=luaL_newstate();
int i;
luaL_openlibs(L);
luaL_register(L,"bit",bitlib);
if(argc<2)return sizeof(void*);
lua_createtable(L,0,1);
lua_pushstring(L,argv[1]);
lua_rawseti(L,-2,0);
lua_setglobal(L,"arg");
if(luaL_loadfile(L,argv[1]))
goto err;
for(i=2;i<argc;i++)
lua_pushstring(L,argv[i]);
if(lua_pcall(L,argc-2,0,0)){
err:
fprintf(stderr,"Error: %s\n",lua_tostring(L,-1));
return 1;
}
lua_close(L);
return 0;
}

// Assembly:
subq $0x28, %rsp
movl $0x0, 0x24(%rsp)
movl %edi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
callq 0x3550
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rdi
callq 0x3590
movq 0x10(%rsp), %rdi
leaq 0x20038(%rip), %rsi     # 0x2344d
leaq 0x25364(%rip), %rdx     # 0x28780
callq 0x3600
cmpl $0x2, 0x20(%rsp)
jge 0x3435
movl $0x8, 0x24(%rsp)
jmp 0x353f
movq 0x10(%rsp), %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0x3630
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rsi
callq 0x36c0
movq 0x10(%rsp), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
xorl %edx, %edx
callq 0x3720
movq 0x10(%rsp), %rdi
movl $0xffffd8ee, %esi       # imm = 0xFFFFD8EE
leaq 0x1f31d(%rip), %rdx     # 0x22798
callq 0x3800
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rsi
callq 0x38b0
cmpl $0x0, %eax
je 0x349a
jmp 0x34ed
movl $0x2, 0xc(%rsp)
movl 0xc(%rsp), %eax
cmpl 0x20(%rsp), %eax
jge 0x34d1
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rax
movslq 0xc(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x36c0
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x34a2
movq 0x10(%rsp), %rdi
movl 0x20(%rsp), %esi
subl $0x2, %esi
xorl %ecx, %ecx
movl %ecx, %edx
callq 0x3b70
cmpl $0x0, %eax
je 0x352d
jmp 0x34ed
movq 0x25b04(%rip), %rax     # 0x28ff8
movq (%rax), %rax
movq %rax, (%rsp)
movq 0x10(%rsp), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %eax, %eax
movl %eax, %edx
callq 0x3c60
movq (%rsp), %rdi
movq %rax, %rdx
leaq 0x1f280(%rip), %rsi     # 0x2279c
movb $0x0, %al
callq 0x3190
movl $0x1, 0x24(%rsp)
jmp 0x353f
movq 0x10(%rsp), %rdi
callq 0x3d30
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
addq $0x28, %rsp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaL_openlibs
static void luaL_openlibs(lua_State*L){
const luaL_Reg*lib=lualibs;
for(;lib->func;lib++){
lua_pushcfunction(L,lib->func);
lua_pushstring(L,lib->name);
lua_call(L,1,0);
}
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
leaq 0x254a0(%rip), %rax     # 0x28a40
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
cmpq $0x0, 0x8(%rax)
je 0x35f9
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rsi
xorl %edx, %edx
callq 0xf340
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rax
movq (%rax), %rsi
callq 0x36c0
movq 0x10(%rsp), %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0xf480
movq 0x8(%rsp), %rax
addq $0x10, %rax
movq %rax, 0x8(%rsp)
jmp 0x35a5
addq $0x18, %rsp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
cmpq $0x0, 0x18(%rsp)
jne 0x36e2
movq 0x20(%rsp), %rdi
callq 0x11870
jmp 0x3712
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rdi
callq 0x30f0
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq %rax, %rdx
callq 0xf860
addq $0x28, %rsp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movl %esi, 0x1c(%rsp)
movl %edx, 0x18(%rsp)
movq 0x20(%rsp), %rdi
movl 0x1c(%rsp), %esi
callq 0xfd90
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
addq $-0x10, %rax
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rax
movq (%rax), %rsi
movl 0x18(%rsp), %edx
callq 0xb640
movq %rax, (%rsp)
movq (%rsp), %rax
movq 0x8(%rsp), %rcx
movq (%rcx), %rcx
movq %rcx, (%rax)
movq 0x8(%rsp), %rax
movl 0x8(%rax), %ecx
movq (%rsp), %rax
movl %ecx, 0x8(%rax)
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
cmpl $0x4, -0x8(%rax)
jl 0x37dc
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
movq -0x10(%rax), %rax
movzbl 0x9(%rax), %eax
andl $0x3, %eax
cmpl $0x0, %eax
je 0x37dc
movq 0x10(%rsp), %rax
movq (%rax), %rax
movzbl 0x9(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x37dc
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rax
movq (%rax), %rsi
callq 0xb6d0
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rcx
addq $-0x10, %rcx
movq %rcx, 0x10(%rax)
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movl %esi, 0x3c(%rsp)
movq %rdx, 0x30(%rsp)
movq 0x40(%rsp), %rdi
movl 0x3c(%rsp), %esi
callq 0xfd90
movq %rax, 0x28(%rsp)
leaq 0x18(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x40(%rsp), %rax
movq %rax, (%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x30(%rsp), %rdi
callq 0x30f0
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %rax, %rdx
callq 0x49c0
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, (%rax)
movq 0x10(%rsp), %rax
movl $0x4, 0x8(%rax)
movq 0x40(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rcx
addq $-0x10, %rcx
leaq 0x18(%rsp), %rdx
callq 0xaac0
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rcx
addq $-0x10, %rcx
movq %rcx, 0x10(%rax)
addq $0x48, %rsp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movl %esi, 0x3c(%rsp)
movl %edx, 0x38(%rsp)
movl %ecx, 0x34(%rsp)
cmpl $0x0, 0x34(%rsp)
jne 0x3b97
movq $0x0, 0x10(%rsp)
jmp 0x3bc0
movq 0x40(%rsp), %rdi
movl 0x34(%rsp), %esi
callq 0xfd90
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq 0x40(%rsp), %rcx
movq 0x40(%rcx), %rcx
subq %rcx, %rax
movq %rax, 0x10(%rsp)
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movl 0x3c(%rsp), %ecx
addl $0x1, %ecx
movslq %ecx, %rdx
xorl %ecx, %ecx
subq %rdx, %rcx
shlq $0x4, %rcx
addq %rcx, %rax
movq %rax, 0x20(%rsp)
movl 0x38(%rsp), %eax
movl %eax, 0x28(%rsp)
movq 0x40(%rsp), %rdi
movq 0x20(%rsp), %rcx
movq 0x40(%rsp), %rax
movq 0x40(%rax), %rax
subq %rax, %rcx
movq 0x10(%rsp), %r8
leaq 0x1d6e2(%rip), %rsi     # 0x212f0
leaq 0x20(%rsp), %rdx
callq 0x11ba0
movl %eax, 0x1c(%rsp)
cmpl $-0x1, 0x38(%rsp)
jne 0x3c51
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x40(%rsp), %rcx
movq 0x28(%rcx), %rcx
cmpq 0x10(%rcx), %rax
jb 0x3c51
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rcx
movq 0x40(%rsp), %rax
movq 0x28(%rax), %rax
movq %rcx, 0x10(%rax)
movl 0x1c(%rsp), %eax
addq $0x48, %rsp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movl %esi, 0x14(%rsp)
movq %rdx, 0x8(%rsp)
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
callq 0xfd90
movq %rax, (%rsp)
movq (%rsp), %rax
cmpl $0x4, 0x8(%rax)
je 0x3cf8
movq 0x18(%rsp), %rdi
movq (%rsp), %rsi
callq 0x6790
cmpl $0x0, %eax
jne 0x3cc0
cmpq $0x0, 0x8(%rsp)
je 0x3cb5
movq 0x8(%rsp), %rax
movq $0x0, (%rax)
movq $0x0, 0x20(%rsp)
jmp 0x3d23
movq 0x18(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x78(%rax), %rax
movq 0x18(%rsp), %rcx
movq 0x20(%rcx), %rcx
cmpq 0x70(%rcx), %rax
jb 0x3ce6
movq 0x18(%rsp), %rdi
callq 0xa270
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
callq 0xfd90
movq %rax, (%rsp)
cmpq $0x0, 0x8(%rsp)
je 0x3d13
movq (%rsp), %rax
movq (%rax), %rax
movq 0x10(%rax), %rcx
movq 0x8(%rsp), %rax
movq %rcx, (%rax)
movq (%rsp), %rax
movq (%rax), %rax
addq $0x18, %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
addq $0x28, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: lua_close
static void lua_close(lua_State*L){
L=G(L)->mainthread;
luaF_close(L,L->stack);
luaC_separateudata(L,1);
L->errfunc=0;
do{
L->ci=L->base_ci;
L->base=L->top=L->ci->base;
L->nCcalls=L->baseCcalls=0;
}while(luaD_rawrunprotected(L,callallgcTM,NULL)!=0);
close_state(L);
}

// Assembly:
pushq %rax
movq %rdi, (%rsp)
movq (%rsp), %rax
movq 0x20(%rax), %rax
movq 0xb0(%rax), %rax
movq %rax, (%rsp)
movq (%rsp), %rdi
movq (%rsp), %rax
movq 0x40(%rax), %rsi
callq 0x4d10
movq (%rsp), %rdi
movl $0x1, %esi
callq 0xe930
movq (%rsp), %rax
movq $0x0, 0xb0(%rax)
movq (%rsp), %rax
movq 0x50(%rax), %rcx
movq (%rsp), %rax
movq %rcx, 0x28(%rax)
movq (%rsp), %rax
movq 0x28(%rax), %rax
movq (%rax), %rcx
movq (%rsp), %rax
movq %rcx, 0x10(%rax)
movq (%rsp), %rax
movq %rcx, 0x18(%rax)
movq (%rsp), %rax
movw $0x0, 0x62(%rax)
movq (%rsp), %rax
movw $0x0, 0x60(%rax)
movq (%rsp), %rdi
leaq 0x1d570(%rip), %rsi     # 0x21330
xorl %eax, %eax
movl %eax, %edx
callq 0x4250
cmpl $0x0, %eax
jne 0x3d76
movq (%rsp), %rdi
callq 0x4400
popq %rax
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdx, 0x8(%rsp)
movq %rcx, (%rsp)
cmpq $0x0, (%rsp)
jne 0x40a3
movq 0x10(%rsp), %rdi
callq 0x3030
movq $0x0, 0x20(%rsp)
jmp 0x40b6
movq 0x10(%rsp), %rdi
movq (%rsp), %rsi
callq 0x3220
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
addq $0x28, %rsp
retq
// File: /workspace/github_c_makefile_star2_O0/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: lua_atpanic
static lua_CFunction lua_atpanic(lua_State*L,lua_CFunction panicf){
lua_CFunction old;
old=G(L)->panic;
G(L)->panic=panicf;
return old;
}

// Assembly:
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
movq -0x8(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x98(%rax), %rax
movq %rax, -0x18(%rsp)
movq -0x10(%rsp), %rcx
movq -0x8(%rsp), %rax
movq 0x20(%rax), %rax
movq %rcx, 0x98(%rax)
movq -0x18(%rsp), %rax
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x24ee8(%rip), %rax     # 0x28ff8
movq (%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %eax, %eax
movl %eax, %edx
callq 0x3c60
movq 0x8(%rsp), %rdi
movq %rax, %rdx
leaq 0x1e96b(%rip), %rsi     # 0x22aa5
movb $0x0, %al
callq 0x3190
xorl %eax, %eax
addq $0x18, %rsp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: preinit_state
static void preinit_state(lua_State*L,global_State*g){
G(L)=g;
L->stack=NULL;
L->stacksize=0;
L->errorJmp=NULL;
L->hook=NULL;
L->hookmask=0;
L->basehookcount=0;
L->allowhook=1;
resethookcount(L);
L->openupval=NULL;
L->size_ci=0;
L->nCcalls=L->baseCcalls=0;
L->status=0;
L->base_ci=L->ci=NULL;
L->savedpc=NULL;
L->errfunc=0;
setnilvalue(gt(L));
}

// Assembly:
movq %rdi, -0x8(%rsp)
movq %rsi, -0x10(%rsp)
movq -0x10(%rsp), %rcx
movq -0x8(%rsp), %rax
movq %rcx, 0x20(%rax)
movq -0x8(%rsp), %rax
movq $0x0, 0x40(%rax)
movq -0x8(%rsp), %rax
movl $0x0, 0x58(%rax)
movq -0x8(%rsp), %rax
movq $0x0, 0xa8(%rax)
movq -0x8(%rsp), %rax
movq $0x0, 0x70(%rax)
movq -0x8(%rsp), %rax
movb $0x0, 0x64(%rax)
movq -0x8(%rsp), %rax
movl $0x0, 0x68(%rax)
movq -0x8(%rsp), %rax
movb $0x1, 0x65(%rax)
movq -0x8(%rsp), %rax
movl 0x68(%rax), %ecx
movq -0x8(%rsp), %rax
movl %ecx, 0x6c(%rax)
movq -0x8(%rsp), %rax
movq $0x0, 0x98(%rax)
movq -0x8(%rsp), %rax
movl $0x0, 0x5c(%rax)
movq -0x8(%rsp), %rax
movw $0x0, 0x62(%rax)
movq -0x8(%rsp), %rax
movw $0x0, 0x60(%rax)
movq -0x8(%rsp), %rax
movb $0x0, 0xa(%rax)
movq -0x8(%rsp), %rax
movq $0x0, 0x28(%rax)
movq -0x8(%rsp), %rax
movq $0x0, 0x50(%rax)
movq -0x8(%rsp), %rax
movq $0x0, 0x30(%rax)
movq -0x8(%rsp), %rax
movq $0x0, 0xb0(%rax)
movq -0x8(%rsp), %rax
movl $0x0, 0x80(%rax)
retq
nop
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0xf8, %rsp
movq %rdi, 0xf0(%rsp)
movq %rsi, 0xe8(%rsp)
movq %rdx, 0xe0(%rsp)
movl $0x0, 0xd8(%rsp)
movq 0xf0(%rsp), %rax
movq 0xa8(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0xf0(%rsp), %rax
leaq 0x8(%rsp), %rcx
movq %rcx, 0xa8(%rax)
leaq 0x8(%rsp), %rdi
addq $0x8, %rdi
callq 0x3170
cmpl $0x0, %eax
jne 0x42cf
movq 0xe8(%rsp), %rax
movq 0xf0(%rsp), %rdi
movq 0xe0(%rsp), %rsi
callq *%rax
movq 0x8(%rsp), %rcx
movq 0xf0(%rsp), %rax
movq %rcx, 0xa8(%rax)
movl 0xd8(%rsp), %eax
addq $0xf8, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x44d0
movq 0x20(%rsp), %rax
addq $0x78, %rax
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x4620
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, (%rax)
movq 0x8(%rsp), %rax
movl $0x5, 0x8(%rax)
movq 0x20(%rsp), %rax
movq 0x20(%rax), %rax
addq $0xa0, %rax
movq %rax, (%rsp)
movq 0x20(%rsp), %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0x4620
movq %rax, %rcx
movq (%rsp), %rax
movq %rcx, (%rax)
movq (%rsp), %rax
movl $0x5, 0x8(%rax)
movq 0x20(%rsp), %rdi
movl $0x20, %esi
callq 0x46d0
movq 0x20(%rsp), %rdi
callq 0x4870
movq 0x20(%rsp), %rdi
callq 0x4920
movq 0x20(%rsp), %rdi
leaq 0x1e3de(%rip), %rsi     # 0x227a7
movl $0x11, %edx
callq 0x49c0
movzbl 0x9(%rax), %ecx
orl $0x20, %ecx
movb %cl, 0x9(%rax)
movq 0x10(%rsp), %rax
movq 0x78(%rax), %rcx
shlq $0x2, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x70(%rax)
addq $0x28, %rsp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rdi
movq 0x10(%rsp), %rax
movq 0x40(%rax), %rsi
callq 0x4d10
movq 0x10(%rsp), %rdi
callq 0xf2b0
movq 0x10(%rsp), %rdi
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rax
movq (%rax), %rsi
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rax
movslq 0xc(%rax), %rdx
shlq $0x3, %rdx
xorl %eax, %eax
movl %eax, %ecx
callq 0x4b30
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rax
movq 0x58(%rax), %rsi
movq 0x8(%rsp), %rax
movq 0x68(%rax), %rdx
shlq $0x0, %rdx
xorl %eax, %eax
movl %eax, %ecx
callq 0x4b30
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x58(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x68(%rax)
movq 0x10(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0xf0e0
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rsp), %rcx
movq 0x18(%rcx), %rdi
movq 0x10(%rsp), %rsi
movl $0x268, %edx            # imm = 0x268
xorl %ecx, %ecx
callq *%rax
addq $0x18, %rsp
retq
// File: /workspace/github_c_makefile_star2_O0/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: stack_init
static void stack_init(lua_State*L1,lua_State*L){
L1->base_ci=luaM_newvector(L,8,CallInfo);
L1->ci=L1->base_ci;
L1->size_ci=8;
L1->end_ci=L1->base_ci+L1->size_ci-1;
L1->stack=luaM_newvector(L,(2*20)+5,TValue);
L1->stacksize=(2*20)+5;
L1->top=L1->stack;
L1->stack_last=L1->stack+(L1->stacksize-5)-1;
L1->ci->func=L1->top;
setnilvalue(L1->top++);
L1->base=L1->ci->base=L1->top;
L1->ci->top=L1->top+20;
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq %rsi, 0x8(%rsp)
movq 0x8(%rsp), %rdi
xorl %eax, %eax
movl %eax, %edx
movl $0x140, %ecx            # imm = 0x140
movq %rdx, %rsi
callq 0x4b30
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x50(%rax)
movq 0x10(%rsp), %rax
movq 0x50(%rax), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x28(%rax)
movq 0x10(%rsp), %rax
movl $0x8, 0x5c(%rax)
movq 0x10(%rsp), %rax
movq 0x50(%rax), %rcx
movq 0x10(%rsp), %rax
movslq 0x5c(%rax), %rax
imulq $0x28, %rax, %rax
addq %rax, %rcx
addq $-0x28, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x48(%rax)
movq 0x8(%rsp), %rdi
xorl %eax, %eax
movl %eax, %edx
movl $0x2d0, %ecx            # imm = 0x2D0
movq %rdx, %rsi
callq 0x4b30
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x40(%rax)
movq 0x10(%rsp), %rax
movl $0x2d, 0x58(%rax)
movq 0x10(%rsp), %rax
movq 0x40(%rax), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x10(%rsp), %rax
movq 0x40(%rax), %rcx
movq 0x10(%rsp), %rax
movl 0x58(%rax), %eax
subl $0x5, %eax
cltq
shlq $0x4, %rax
addq %rax, %rcx
addq $-0x10, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x38(%rax)
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rcx
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
movq %rcx, 0x8(%rax)
movq 0x10(%rsp), %rcx
movq 0x10(%rcx), %rax
movq %rax, %rdx
addq $0x10, %rdx
movq %rdx, 0x10(%rcx)
movl $0x0, 0x8(%rax)
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rcx
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
movq %rcx, (%rax)
movq 0x10(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rcx
addq $0x140, %rcx            # imm = 0x140
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
movq %rcx, 0x10(%rax)
addq $0x18, %rsp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movl %esi, 0xc(%rsp)
movl %edx, 0x8(%rsp)
movq 0x10(%rsp), %rdi
xorl %eax, %eax
movl %eax, %edx
movl $0x40, %ecx
movq %rdx, %rsi
callq 0x4b30
movq %rax, (%rsp)
movq 0x10(%rsp), %rdi
movq (%rsp), %rsi
movl $0x5, %edx
callq 0xd320
movq (%rsp), %rax
movq $0x0, 0x10(%rax)
movq (%rsp), %rax
movb $-0x1, 0xa(%rax)
movq (%rsp), %rax
movq $0x0, 0x18(%rax)
movq (%rsp), %rax
movl $0x0, 0x38(%rax)
movq (%rsp), %rax
movb $0x0, 0xb(%rax)
movq (%rsp), %rax
leaq 0x1df4c(%rip), %rcx     # 0x225e8
movq %rcx, 0x20(%rax)
movq 0x10(%rsp), %rdi
movq (%rsp), %rsi
movl 0xc(%rsp), %edx
callq 0xca60
movq 0x10(%rsp), %rdi
movq (%rsp), %rsi
movl 0x8(%rsp), %edx
callq 0xcb30
movq (%rsp), %rax
addq $0x18, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movl %esi, 0x3c(%rsp)
movq 0x40(%rsp), %rax
movq 0x20(%rax), %rax
movzbl 0x21(%rax), %eax
cmpl $0x2, %eax
jne 0x46f4
jmp 0x4867
movl 0x3c(%rsp), %eax
addl $0x1, %eax
cltq
movabsq $0x1fffffffffffffff, %rcx # imm = 0x1FFFFFFFFFFFFFFF
cmpq %rcx, %rax
ja 0x472c
movq 0x40(%rsp), %rdi
movslq 0x3c(%rsp), %rcx
shlq $0x3, %rcx
xorl %eax, %eax
movl %eax, %edx
movq %rdx, %rsi
callq 0x4b30
movq %rax, (%rsp)
jmp 0x473a
movq 0x40(%rsp), %rdi
callq 0x5480
movq %rax, (%rsp)
movq (%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x40(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x28(%rsp)
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
cmpl 0x3c(%rsp), %eax
jge 0x4782
movq 0x30(%rsp), %rax
movslq 0x24(%rsp), %rcx
movq $0x0, (%rax,%rcx,8)
movl 0x24(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x24(%rsp)
jmp 0x4759
movl $0x0, 0x24(%rsp)
movl 0x24(%rsp), %eax
movq 0x28(%rsp), %rcx
cmpl 0xc(%rcx), %eax
jge 0x482b
movq 0x28(%rsp), %rax
movq (%rax), %rax
movslq 0x24(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x18(%rsp)
je 0x4819
movq 0x18(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rax
movl 0xc(%rax), %eax
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %eax
movl 0x3c(%rsp), %ecx
subl $0x1, %ecx
andl %ecx, %eax
movl %eax, 0x8(%rsp)
movq 0x30(%rsp), %rax
movslq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rcx
movq 0x18(%rsp), %rax
movq %rcx, (%rax)
movq 0x18(%rsp), %rdx
movq 0x30(%rsp), %rax
movslq 0x8(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x10(%rsp), %rax
movq %rax, 0x18(%rsp)
jmp 0x47b2
jmp 0x481b
movl 0x24(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x24(%rsp)
jmp 0x478a
movq 0x40(%rsp), %rdi
movq 0x28(%rsp), %rax
movq (%rax), %rsi
movq 0x28(%rsp), %rax
movslq 0xc(%rax), %rdx
shlq $0x3, %rdx
xorl %eax, %eax
movl %eax, %ecx
callq 0x4b30
movl 0x3c(%rsp), %ecx
movq 0x28(%rsp), %rax
movl %ecx, 0xc(%rax)
movq 0x30(%rsp), %rcx
movq 0x28(%rsp), %rax
movq %rcx, (%rax)
addq $0x48, %rsp
retq
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaT_init
static void luaT_init(lua_State*L){
static const char*const luaT_eventname[]={
"__index","__newindex",
"__gc","__mode","__eq",
"__add","__sub","__mul","__div","__mod",
"__pow","__unm","__len","__lt","__le",
"__concat","__call"
};
int i;
for(i=0;i<TM_N;i++){
G(L)->tmname[i]=luaS_new(L,luaT_eventname[i]);
luaS_fix(G(L)->tmname[i]);
}
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movl $0x0, 0x1c(%rsp)
cmpl $0x11, 0x1c(%rsp)
jge 0x491b
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rsp)
movslq 0x1c(%rsp), %rcx
leaq 0x2400e(%rip), %rax     # 0x288b0
movq (%rax,%rcx,8), %rax
movq %rax, 0x10(%rsp)
movslq 0x1c(%rsp), %rcx
leaq 0x23ff9(%rip), %rax     # 0x288b0
movq (%rax,%rcx,8), %rdi
callq 0x30f0
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq %rax, %rdx
callq 0x49c0
movq %rax, %rdx
movq 0x20(%rsp), %rax
movq 0x20(%rax), %rax
movslq 0x1c(%rsp), %rcx
movq %rdx, 0x128(%rax,%rcx,8)
movq 0x20(%rsp), %rax
movq 0x20(%rax), %rax
movslq 0x1c(%rsp), %rcx
movq 0x128(%rax,%rcx,8), %rax
movzbl 0x9(%rax), %ecx
orl $0x20, %ecx
movb %cl, 0x9(%rax)
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x4881
addq $0x28, %rsp
retq
// File: /workspace/github_c_makefile_star2_O0/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaX_init
static void luaX_init(lua_State*L){
int i;
for(i=0;i<(cast(int,TK_WHILE-257+1));i++){
TString*ts=luaS_new(L,luaX_tokens[i]);
luaS_fix(ts);
ts->tsv.reserved=cast_byte(i+1);
}
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movl $0x0, 0x1c(%rsp)
cmpl $0x15, 0x1c(%rsp)
jge 0x49ae
movq 0x20(%rsp), %rax
movq %rax, (%rsp)
movslq 0x1c(%rsp), %rcx
leaq 0x23ff3(%rip), %rax     # 0x28940
movq (%rax,%rcx,8), %rax
movq %rax, 0x8(%rsp)
movslq 0x1c(%rsp), %rcx
leaq 0x23fde(%rip), %rax     # 0x28940
movq (%rax,%rcx,8), %rdi
callq 0x30f0
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %rax, %rdx
callq 0x49c0
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movzbl 0x9(%rax), %ecx
orl $0x20, %ecx
movb %cl, 0x9(%rax)
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movb %al, %cl
movq 0x10(%rsp), %rax
movb %cl, 0xa(%rax)
movl 0x1c(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x1c(%rsp)
jmp 0x4931
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movq %rdx, 0x28(%rsp)
movq 0x28(%rsp), %rax
movl %eax, 0x1c(%rsp)
movq 0x28(%rsp), %rax
shrq $0x5, %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
cmpq 0x10(%rsp), %rax
jb 0x4a46
movl 0x1c(%rsp), %eax
movl 0x1c(%rsp), %ecx
shll $0x5, %ecx
movl 0x1c(%rsp), %edx
shrl $0x2, %edx
addl %edx, %ecx
movq 0x30(%rsp), %rdx
movq 0x8(%rsp), %rsi
subq $0x1, %rsi
movzbl (%rdx,%rsi), %edx
addl %edx, %ecx
xorl %ecx, %eax
movl %eax, 0x1c(%rsp)
movq 0x10(%rsp), %rcx
movq 0x8(%rsp), %rax
subq %rcx, %rax
movq %rax, 0x8(%rsp)
jmp 0x49f8
movq 0x38(%rsp), %rax
movq 0x20(%rax), %rax
movq (%rax), %rax
movl 0x1c(%rsp), %ecx
movq 0x38(%rsp), %rdx
movq 0x20(%rdx), %rdx
movl 0xc(%rdx), %edx
subl $0x1, %edx
andl %edx, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x4b04
movq 0x20(%rsp), %rax
movq %rax, (%rsp)
movq (%rsp), %rax
movq 0x10(%rax), %rax
cmpq 0x28(%rsp), %rax
jne 0x4af0
movq 0x30(%rsp), %rdi
movq (%rsp), %rsi
addq $0x18, %rsi
movq 0x28(%rsp), %rdx
callq 0x3150
cmpl $0x0, %eax
jne 0x4af0
movq 0x20(%rsp), %rax
movzbl 0x9(%rax), %eax
movq 0x38(%rsp), %rcx
movq 0x20(%rcx), %rcx
movzbl 0x20(%rcx), %ecx
xorl $0x3, %ecx
andl %ecx, %eax
andl $0x3, %eax
cmpl $0x0, %eax
je 0x4ae5
movq 0x20(%rsp), %rax
movzbl 0x9(%rax), %ecx
xorl $0x3, %ecx
movb %cl, 0x9(%rax)
movq (%rsp), %rax
movq %rax, 0x40(%rsp)
jmp 0x4b21
jmp 0x4af2
movq 0x20(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x20(%rsp)
jmp 0x4a73
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %rsi
movq 0x28(%rsp), %rdx
movl 0x1c(%rsp), %ecx
callq 0xf140
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
addq $0x48, %rsp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq %rcx, 0x8(%rsp)
movq 0x20(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, (%rsp)
movq (%rsp), %rax
movq 0x10(%rax), %rax
movq (%rsp), %rcx
movq 0x18(%rcx), %rdi
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rcx
callq *%rax
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x18(%rsp)
jne 0x4b9a
cmpq $0x0, 0x8(%rsp)
jbe 0x4b9a
movq 0x20(%rsp), %rdi
movl $0x4, %esi
callq 0x4bc0
movq (%rsp), %rax
movq 0x78(%rax), %rcx
subq 0x10(%rsp), %rcx
addq 0x8(%rsp), %rcx
movq (%rsp), %rax
movq %rcx, 0x78(%rax)
movq 0x18(%rsp), %rax
addq $0x28, %rsp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movl %esi, 0xc(%rsp)
movq 0x10(%rsp), %rax
cmpq $0x0, 0xa8(%rax)
je 0x4c0c
movl 0xc(%rsp), %ecx
movq 0x10(%rsp), %rax
movq 0xa8(%rax), %rax
movl %ecx, 0xd0(%rax)
movq 0x10(%rsp), %rax
movq 0xa8(%rax), %rdi
addq $0x8, %rdi
movl $0x1, %esi
callq 0x3230
movl 0xc(%rsp), %eax
movb %al, %cl
movq 0x10(%rsp), %rax
movb %cl, 0xa(%rax)
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rax
cmpq $0x0, 0x98(%rax)
je 0x4c52
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %esi
callq 0x4c60
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x98(%rax), %rax
movq 0x10(%rsp), %rdi
callq *%rax
movl $0x1, %edi
callq 0x3290
nopl (%rax)
// File: /workspace/github_c_makefile_star2_O0/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: resetstack
static void resetstack(lua_State*L,int status){
L->ci=L->base_ci;
L->base=L->ci->base;
luaF_close(L,L->base);
luaD_seterrorobj(L,status,L->base);
L->nCcalls=L->baseCcalls;
L->allowhook=1;
restore_stack_limit(L);
L->errfunc=0;
L->errorJmp=NULL;
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movl %esi, 0xc(%rsp)
movq 0x10(%rsp), %rax
movq 0x50(%rax), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x28(%rax)
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
movq (%rax), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x18(%rax)
movq 0x10(%rsp), %rdi
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rsi
callq 0x4d10
movq 0x10(%rsp), %rdi
movl 0xc(%rsp), %esi
movq 0x10(%rsp), %rax
movq 0x18(%rax), %rdx
callq 0x4e30
movq 0x10(%rsp), %rax
movw 0x62(%rax), %cx
movq 0x10(%rsp), %rax
movw %cx, 0x60(%rax)
movq 0x10(%rsp), %rax
movb $0x1, 0x65(%rax)
movq 0x10(%rsp), %rdi
callq 0x4f40
movq 0x10(%rsp), %rax
movq $0x0, 0xb0(%rax)
movq 0x10(%rsp), %rax
movq $0x0, 0xa8(%rax)
addq $0x18, %rsp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq 0x40(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x40(%rsp), %rcx
xorl %eax, %eax
cmpq $0x0, 0x98(%rcx)
movb %al, 0xf(%rsp)
je 0x4d62
movq 0x40(%rsp), %rax
movq 0x98(%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x10(%rax), %rax
cmpq 0x38(%rsp), %rax
setae %al
movb %al, 0xf(%rsp)
movb 0xf(%rsp), %al
testb $0x1, %al
jne 0x4d6f
jmp 0x4e29
movq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rax
movq (%rax), %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x98(%rax)
movq 0x20(%rsp), %rax
movzbl 0x9(%rax), %eax
movq 0x28(%rsp), %rcx
movzbl 0x20(%rcx), %ecx
xorl $0x3, %ecx
andl %ecx, %eax
andl $0x3, %eax
cmpl $0x0, %eax
je 0x4dbd
movq 0x40(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x4fa0
jmp 0x4e24
movq 0x30(%rsp), %rdi
callq 0x4ff0
movq 0x30(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x30(%rsp), %rax
addq $0x18, %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
movq (%rcx), %rcx
movq %rcx, (%rax)
movq 0x18(%rsp), %rax
movl 0x8(%rax), %ecx
movq 0x10(%rsp), %rax
movl %ecx, 0x8(%rax)
movq 0x30(%rsp), %rcx
addq $0x18, %rcx
movq 0x30(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x40(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x5030
jmp 0x4d2c
addq $0x48, %rsp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movl %esi, 0x3c(%rsp)
movq %rdx, 0x30(%rsp)
movl 0x3c(%rsp), %eax
movl %eax, 0xc(%rsp)
addl $-0x2, %eax
subl $0x2, %eax
jb 0x4ee3
jmp 0x4e58
movl 0xc(%rsp), %eax
subl $0x4, %eax
je 0x4e71
jmp 0x4e63
movl 0xc(%rsp), %eax
subl $0x5, %eax
je 0x4eaa
jmp 0x4f1f
movq 0x30(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x40(%rsp), %rdi
leaq 0x1d920(%rip), %rsi     # 0x227a7
movl $0x11, %edx
callq 0x49c0
movq %rax, %rcx
movq 0x28(%rsp), %rax
movq %rcx, (%rax)
movq 0x28(%rsp), %rax
movl $0x4, 0x8(%rax)
jmp 0x4f1f
movq 0x30(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x40(%rsp), %rdi
leaq 0x1d8f9(%rip), %rsi     # 0x227b9
movl $0x17, %edx
callq 0x49c0
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, (%rax)
movq 0x20(%rsp), %rax
movl $0x4, 0x8(%rax)
jmp 0x4f1f
movq 0x40(%rsp), %rax
movq 0x10(%rax), %rax
addq $-0x10, %rax
movq %rax, 0x18(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
movq (%rcx), %rcx
movq %rcx, (%rax)
movq 0x18(%rsp), %rax
movl 0x8(%rax), %ecx
movq 0x10(%rsp), %rax
movl %ecx, 0x8(%rax)
movq 0x30(%rsp), %rcx
addq $0x10, %rcx
movq 0x40(%rsp), %rax
movq %rcx, 0x10(%rax)
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
movq 0x10(%rsp), %rax
cmpl $0x4e20, 0x5c(%rax)     # imm = 0x4E20
jle 0x4f99
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x10(%rsp), %rcx
movq 0x50(%rcx), %rcx
subq %rcx, %rax
movl $0x28, %ecx
cqto
idivq %rcx
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %eax
addl $0x1, %eax
cmpl $0x4e20, %eax           # imm = 0x4E20
jge 0x4f97
movq 0x10(%rsp), %rdi
movl $0x4e20, %esi           # imm = 0x4E20
callq 0x5390
jmp 0x4f99
addq $0x18, %rsp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaC_linkupval
static void luaC_linkupval(lua_State*L,UpVal*uv){
global_State*g=G(L);
GCObject*o=obj2gco(uv);
o->gch.next=g->rootgc;
g->rootgc=o;
if(isgray(o)){
if(g->gcstate==1){
gray2black(o);
luaC_barrier(L,uv,uv->v);
}
else{
makewhite(g,o);
}
}
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rcx
movq 0x8(%rsp), %rax
movq %rcx, (%rax)
movq 0x8(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x28(%rax)
movq 0x8(%rsp), %rax
movzbl 0x9(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
jne 0x513c
movq 0x8(%rsp), %rax
movzbl 0x9(%rax), %eax
andl $0x3, %eax
cmpl $0x0, %eax
jne 0x513c
movq 0x10(%rsp), %rax
movzbl 0x21(%rax), %eax
cmpl $0x1, %eax
jne 0x5111
movq 0x8(%rsp), %rax
movzbl 0x9(%rax), %ecx
orl $0x4, %ecx
movb %cl, 0x9(%rax)
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
cmpl $0x4, 0x8(%rax)
jl 0x510f
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movzbl 0x9(%rax), %eax
andl $0x3, %eax
cmpl $0x0, %eax
je 0x510f
movq 0x18(%rsp), %rax
movzbl 0x9(%rax), %eax
andl $0x4, %eax
cmpl $0x0, %eax
je 0x510f
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rdx
callq 0x5150
jmp 0x513a
movq 0x8(%rsp), %rax
movzbl 0x9(%rax), %eax
andl $0xf8, %eax
movq 0x10(%rsp), %rcx
movzbl 0x20(%rcx), %ecx
andl $0x3, %ecx
movzbl %cl, %ecx
orl %ecx, %eax
movb %al, %cl
movq 0x8(%rsp), %rax
movb %cl, 0x9(%rax)
jmp 0x513c
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: luaC_barrierf
static void luaC_barrierf(lua_State*L,GCObject*o,GCObject*v){
global_State*g=G(L);
if(g->gcstate==1)
reallymarkobject(g,v);
else
makewhite(g,o);
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x20(%rsp), %rax
movq 0x20(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movzbl 0x21(%rax), %eax
cmpl $0x1, %eax
jne 0x5190
movq 0x8(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x51c0
jmp 0x51b9
movq 0x18(%rsp), %rax
movzbl 0x9(%rax), %eax
andl $0xf8, %eax
movq 0x8(%rsp), %rcx
movzbl 0x20(%rcx), %ecx
andl $0x3, %ecx
movzbl %cl, %ecx
orl %ecx, %eax
movb %al, %cl
movq 0x18(%rsp), %rax
movb %cl, 0x9(%rax)
addq $0x28, %rsp
retq
nop
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x18(%rsp), %rax
movb 0x9(%rax), %cl
andb $-0x4, %cl
movb %cl, 0x9(%rax)
movq 0x18(%rsp), %rax
movzbl 0x8(%rax), %eax
addl $-0x4, %eax
movl %eax, %ecx
movq %rcx, (%rsp)
subl $0x6, %eax
ja 0x5381
movq (%rsp), %rax
leaq 0x1ce0e(%rip), %rcx     # 0x22010
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
jmp 0x5383
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rax
movzbl 0x9(%rax), %ecx
orl $0x4, %ecx
movb %cl, 0x9(%rax)
cmpq $0x0, 0x10(%rsp)
je 0x5257
movq 0x10(%rsp), %rax
movzbl 0x9(%rax), %eax
andl $0x3, %eax
cmpl $0x0, %eax
je 0x5255
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x51c0
jmp 0x5257
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rax
movzbl 0x9(%rax), %eax
andl $0x3, %eax
cmpl $0x0, %eax
je 0x527f
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rax
movq 0x18(%rax), %rsi
callq 0x51c0
jmp 0x5383
movq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rax
cmpl $0x4, 0x8(%rax)
jl 0x52cb
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rax
movzbl 0x9(%rax), %eax
andl $0x3, %eax
cmpl $0x0, %eax
je 0x52cb
movq 0x20(%rsp), %rdi
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rax
movq (%rax), %rsi
callq 0x51c0
movq 0x8(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x8(%rsp), %rcx
addq $0x18, %rcx
cmpq %rcx, %rax
jne 0x52f1
movq 0x18(%rsp), %rax
movzbl 0x9(%rax), %ecx
orl $0x4, %ecx
movb %cl, 0x9(%rax)
jmp 0x5383
movq 0x20(%rsp), %rax
movq 0x38(%rax), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x38(%rax)
jmp 0x5383
movq 0x20(%rsp), %rax
movq 0x38(%rax), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x30(%rax)
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x38(%rax)
jmp 0x5383
movq 0x20(%rsp), %rax
movq 0x38(%rax), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0xa0(%rax)
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x38(%rax)
jmp 0x5383
movq 0x20(%rsp), %rax
movq 0x38(%rax), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x68(%rax)
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x38(%rax)
jmp 0x5383
jmp 0x5383
addq $0x28, %rsp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movl %esi, 0x1c(%rsp)
movq 0x20(%rsp), %rax
movq 0x50(%rax), %rax
movq %rax, 0x10(%rsp)
movl 0x1c(%rsp), %eax
addl $0x1, %eax
cltq
movabsq $0x666666666666666, %rcx # imm = 0x666666666666666
cmpq %rcx, %rax
ja 0x53f3
movq 0x20(%rsp), %rdi
movq 0x20(%rsp), %rax
movq 0x50(%rax), %rsi
movq 0x20(%rsp), %rax
movslq 0x5c(%rax), %rax
imulq $0x28, %rax, %rdx
movslq 0x1c(%rsp), %rax
imulq $0x28, %rax, %rcx
callq 0x4b30
movq %rax, 0x8(%rsp)
jmp 0x5402
movq 0x20(%rsp), %rdi
callq 0x5480
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x50(%rax)
movl 0x1c(%rsp), %ecx
movq 0x20(%rsp), %rax
movl %ecx, 0x5c(%rax)
movq 0x20(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x10(%rsp), %rcx
subq %rcx, %rax
movl $0x28, %ecx
cqto
idivq %rcx
movq %rax, %rcx
movq 0x20(%rsp), %rax
imulq $0x28, %rcx, %rcx
addq 0x50(%rax), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x28(%rax)
movq 0x20(%rsp), %rax
movq 0x50(%rax), %rcx
movq 0x20(%rsp), %rax
movslq 0x5c(%rax), %rax
imulq $0x28, %rax, %rax
addq %rax, %rcx
addq $-0x28, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x48(%rax)
addq $0x28, %rsp
retq
nopl (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/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:
subq $0xe8, %rsp
testb %al, %al
je 0x54df
movaps %xmm0, 0x40(%rsp)
movaps %xmm1, 0x50(%rsp)
movaps %xmm2, 0x60(%rsp)
movaps %xmm3, 0x70(%rsp)
movaps %xmm4, 0x80(%rsp)
movaps %xmm5, 0x90(%rsp)
movaps %xmm6, 0xa0(%rsp)
movaps %xmm7, 0xb0(%rsp)
movq %r9, 0x38(%rsp)
movq %r8, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movq %rdi, 0xe0(%rsp)
movq %rsi, 0xd8(%rsp)
leaq 0x10(%rsp), %rax
movq %rax, 0xd0(%rsp)
leaq 0xf0(%rsp), %rax
movq %rax, 0xc8(%rsp)
movl $0x30, 0xc4(%rsp)
movl $0x10, 0xc0(%rsp)
movq 0xe0(%rsp), %rdi
movq %rdi, 0x8(%rsp)
movq 0xd8(%rsp), %rsi
leaq 0xc0(%rsp), %rdx
callq 0x5620
movq 0x8(%rsp), %rdi
movq %rax, %rsi
callq 0x5580
movq 0xe0(%rsp), %rdi
callq 0x5c10
addq $0xe8, %rsp
retq
nopw (%rax,%rax)
// File: /workspace/github_c_makefile_star2_O0/zenkj[P]luajit-arm64/src/host/minilua.c
// Function: addinfo
static void addinfo(lua_State*L,const char*msg){
CallInfo*ci=L->ci;
if(isLua(ci)){
char buff[60];
int line=currentline(L,ci);
luaO_chunkid(buff,getstr(getluaproto(ci)->source),60);
luaO_pushfstring(L,"%s:%d: %s",buff,line,msg);
}
}

// Assembly:
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movq 0x60(%rsp), %rax
movq 0x28(%rax), %rax
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rax
cmpl $0x6, 0x8(%rax)
jne 0x561a
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rax
movq (%rax), %rax
cmpb $0x0, 0xa(%rax)
jne 0x561a
movq 0x60(%rsp), %rdi
movq 0x50(%rsp), %rsi
callq 0x5d50
movl %eax, 0xc(%rsp)
leaq 0x10(%rsp), %rax
movq %rax, (%rsp)
movq 0x50(%rsp), %rdi
callq 0x5f70
movq (%rsp), %rdi
movq 0x40(%rax), %rsi
addq $0x18, %rsi
movl $0x3c, %edx
callq 0x5de0
movq 0x60(%rsp), %rdi
leaq 0x10(%rsp), %rdx
movl 0xc(%rsp), %ecx
movq 0x58(%rsp), %r8
leaq 0x1d1e5(%rip), %rsi     # 0x227f8
movb $0x0, %al
callq 0x5fc0
addq $0x68, %rsp
retq
nop