// File: /workspace/github_c_makefile_star2_O3/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 0x91d(%rip), %rcx       # 0x3dfe
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 0x8d7(%rip), %rsi       # 0x3e84
movq %rbx, %rdi
xorl %edx, %edx
callq 0x3e18
testl %eax, %eax
je 0x35c7
movq %rbx, %rdi
callq 0x4017
xorl %ebx, %ebx
jmp 0x35d9
movq 0x20(%rbx), %rax
leaq -0x2c2(%rip), %rcx      # 0x3310
movq %rcx, 0x98(%rax)
leaq 0x18470(%rip), %r12     # 0x1ba50
leaq 0x5b46(%rip), %r15      # 0x912d
movq %rbx, %rdi
movq %r15, %rsi
xorl %edx, %edx
callq 0x904e
movq (%r12), %rsi
movq 0x18(%r12), %r15
movq %rbx, %rdi
callq 0x38e9
movq 0x10(%rbx), %rsi
addq $-0x20, %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x53b2
addq $0x10, %r12
testq %r15, %r15
jne 0x35e7
leaq 0x12c77(%rip), %rsi     # 0x1629e
leaq 0x18162(%rip), %rdx     # 0x1b790
movq %rbx, %rdi
callq 0x3780
movl $0x8, %r15d
cmpl $0x2, %ebp
jl 0x3764
movl $0x1, %r15d
movq %rbx, %rdi
movl $0x1, %esi
callq 0x38a5
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x38e9
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
xorl %edx, %edx
callq 0x3930
leaq 0x11f8e(%rip), %rdx     # 0x15608
movq %rbx, %rdi
movl $0xffffd8ee, %esi       # imm = 0xFFFFD8EE
callq 0x39af
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x3a0b
testl %eax, %eax
jne 0x3776
cmpl $0x2, %ebp
je 0x36bd
movl %ebp, %r12d
movl $0x2, %r13d
movq (%r14,%r13,8), %rsi
movq %rbx, %rdi
callq 0x38e9
incq %r13
cmpq %r13, %r12
jne 0x36a9
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 0x1105c(%rip), %rsi     # 0x14745
movq %rbx, %rdi
xorl %r8d, %r8d
callq 0xb24e
testl %eax, %eax
jne 0x3776
movq 0x20(%rbx), %rax
movq 0xb0(%rax), %rbx
movq 0x40(%rbx), %rsi
movq %rbx, %rdi
callq 0x44b4
movq %rbx, %rdi
movl $0x1, %esi
callq 0x8f0e
movq $0x0, 0xb0(%rbx)
leaq 0x11025(%rip), %r14     # 0x14753
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 0x3e18
testl %eax, %eax
jne 0x372e
movq %rbx, %rdi
callq 0x4017
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 0x3764