// File: /workspace/github_c_makefile_star2_O1/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %r14
movl %edi, %ebp
movl $0x268, %edi            # imm = 0x268
callq 0x31d0
movq %rax, %rbx
xorl %eax, %eax
testq %rbx, %rbx
je 0x35c3
leaq 0xb8(%rbx), %rcx
movq %rax, (%rbx)
movb $0x8, 0x8(%rbx)
movb $0x21, 0xd8(%rbx)
movw $0x61, 0x9(%rbx)
movq %rcx, 0x20(%rbx)
movq %rax, 0x40(%rbx)
movl %eax, 0x58(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0xa8(%rbx)
movw $0x100, 0x64(%rbx)      # imm = 0x100
movups %xmm0, 0x68(%rbx)
movq %rax, 0x98(%rbx)
movq %rax, 0x50(%rbx)
movl %eax, 0x80(%rbx)
movups %xmm0, 0x28(%rbx)
movq %rax, 0x5c(%rbx)
leaq 0x7ea(%rip), %rcx       # 0x3ccb
movq %rcx, 0xc8(%rbx)
movq %rax, 0xd0(%rbx)
movq %rbx, 0x168(%rbx)
leaq 0x170(%rbx), %rcx
movq %rcx, 0x188(%rbx)
movq %rcx, 0x190(%rbx)
movl %eax, 0x160(%rbx)
movq %rax, 0x110(%rbx)
movq %rax, 0x150(%rbx)
movb $0x0, 0xd9(%rbx)
movq %rbx, %rcx
addq $0xe0, %rcx
movups %xmm0, 0xb8(%rbx)
movups %xmm0, 0x120(%rbx)
movq %rbx, 0xe0(%rbx)
movl %eax, 0xdc(%rbx)
movq %rcx, 0xe8(%rbx)
movups %xmm0, 0xf0(%rbx)
movups %xmm0, 0x100(%rbx)
movq $0x268, 0x130(%rbx) # imm = 0x268
movabsq $0xc8000000c8, %rcx     # imm = 0xC8000000C8
movq %rcx, 0x148(%rbx)
movq %rax, 0x140(%rbx)
movups %xmm0, 0x198(%rbx)
movups %xmm0, 0x1a8(%rbx)
movups %xmm0, 0x1b8(%rbx)
movups %xmm0, 0x1c8(%rbx)
movq %rax, 0x1d8(%rbx)
leaq 0x7a4(%rip), %rsi       # 0x3d51
movq %rbx, %rdi
xorl %edx, %edx
callq 0x3ce5
testl %eax, %eax
je 0x35c5
movq %rbx, %rdi
callq 0x3ee8
xorl %ebx, %ebx
testq %rbx, %rbx
je 0x35dc
movq 0x20(%rbx), %rax
leaq -0x2c5(%rip), %rcx      # 0x3310
movq %rcx, 0x98(%rax)
leaq 0x1746d(%rip), %r12     # 0x1aa50
leaq 0x573f(%rip), %r15      # 0x8d29
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x8c51
movq (%r12), %rsi
movq 0x18(%r12), %r15
movq %rbx, %rdi
callq 0x38ec
movq 0x10(%rbx), %rsi
addq $-0x20, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x523c
addq $0x10, %r12
testq %r15, %r15
jne 0x35ea
leaq 0x11c4c(%rip), %rsi     # 0x15276
leaq 0x1715f(%rip), %rdx     # 0x1a790
movq %rbx, %rdi
callq 0x3783
movl $0x8, %r15d
cmpl $0x2, %ebp
jl 0x3767
movl $0x1, %r15d
movq %rbx, %rdi
movl $0x1, %esi
callq 0x38a8
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x38ec
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
xorl %edx, %edx
callq 0x3933
leaq 0x10f63(%rip), %rdx     # 0x145e0
movq %rbx, %rdi
movl $0xffffd8ee, %esi       # imm = 0xFFFFD8EE
callq 0x39ab
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x3a07
testl %eax, %eax
jne 0x3779
cmpl $0x2, %ebp
je 0x36c0
movl %ebp, %r12d
movl $0x2, %r13d
movq (%r14,%r13,8), %rsi
movq %rbx, %rdi
callq 0x38ec
incq %r13
cmpq %r13, %r12
jne 0x36ac
movl $0x1, %eax
subl %ebp, %eax
movslq %eax, %rcx
shlq $0x4, %rcx
addq 0x10(%rbx), %rcx
leaq 0x8(%rsp), %rdx
movq %rcx, (%rdx)
movl $0x0, 0x8(%rdx)
subq 0x40(%rbx), %rcx
leaq 0x10238(%rip), %rsi     # 0x13924
movq %rbx, %rdi
xorl %r8d, %r8d
callq 0xa8f2
testl %eax, %eax
jne 0x3779
movq 0x20(%rbx), %rax
movq 0xb0(%rax), %rbx
movq 0x40(%rbx), %rsi
movq %rbx, %rdi
callq 0x438e
movq %rbx, %rdi
movl $0x1, %esi
callq 0x8ae6
movq $0x0, 0xb0(%rbx)
leaq 0x10201(%rip), %r14     # 0x13932
movq 0x50(%rbx), %rax
movq %rax, 0x28(%rbx)
movq (%rax), %rax
movq %rax, 0x10(%rbx)
movq %rax, 0x18(%rbx)
movl $0x0, 0x60(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3ce5
testl %eax, %eax
jne 0x3731
movq %rbx, %rdi
callq 0x3ee8
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x333d
jmp 0x3767