// File: /workspace/github_c_makefile_star2_O2/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
pushq %rax
movq %rsi, %r14
movl %edi, %ebp
movl $0x268, %edi            # imm = 0x268
callq 0x31c0
testq %rax, %rax
je 0x3549
movq %rax, %rbx
andq $0x0, (%rax)
addq $0xb8, %rax
movb $0x8, 0x8(%rbx)
movb $0x21, 0xd8(%rbx)
movw $0x61, 0x9(%rbx)
movq %rax, 0x20(%rbx)
andq $0x0, 0x40(%rbx)
andl $0x0, 0x58(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0xa8(%rbx)
movw $0x100, 0x64(%rbx)      # imm = 0x100
movups %xmm0, 0x68(%rbx)
andq $0x0, 0x98(%rbx)
andq $0x0, 0x50(%rbx)
andl $0x0, 0x80(%rbx)
movups %xmm0, 0x28(%rbx)
andq $0x0, 0x5c(%rbx)
leaq 0x748(%rip), %rax       # 0x3bba
movq %rax, 0xc8(%rbx)
andq $0x0, 0xd0(%rbx)
movq %rbx, 0x168(%rbx)
leaq 0x170(%rbx), %rax
movq %rax, 0x188(%rbx)
movq %rax, 0x190(%rbx)
andl $0x0, 0x160(%rbx)
andq $0x0, 0x110(%rbx)
andq $0x0, 0x150(%rbx)
movb $0x0, 0xd9(%rbx)
movups %xmm0, 0xb8(%rbx)
movups %xmm0, 0x120(%rbx)
movq %rbx, 0xe0(%rbx)
andl $0x0, 0xdc(%rbx)
movq %rbx, %rax
addq $0xe0, %rax
movq %rax, 0xe8(%rbx)
movups %xmm0, 0xf0(%rbx)
movups %xmm0, 0x100(%rbx)
movq $0x268, 0x130(%rbx) # imm = 0x268
movabsq $0xc8000000c8, %rax     # imm = 0xC8000000C8
movq %rax, 0x148(%rbx)
andq $0x0, 0x140(%rbx)
pushq $0x33
popq %rax
cmpq $0x3c, %rax
je 0x352c
andq $0x0, (%rbx,%rax,8)
incq %rax
jmp 0x351c
leaq 0x73a(%rip), %rsi       # 0x3c6d
movq %rbx, %rdi
xorl %edx, %edx
callq 0x3c01
testl %eax, %eax
je 0x354d
movq %rbx, %rdi
callq 0x3dfa
xorl %ebx, %ebx
jmp 0x355f
movq 0x20(%rbx), %rax
leaq 0x67c(%rip), %rcx       # 0x3bd4
movq %rcx, 0x98(%rax)
leaq 0x174f2(%rip), %r12     # 0x1aa58
pushq $0x1
popq %r15
movq (%r12), %rsi
testq %rsi, %rsi
je 0x359d
movq %rbx, %rdi
xorl %edx, %edx
callq 0x8511
movq -0x8(%r12), %rsi
movq %rbx, %rdi
callq 0x3820
movq %rbx, %rdi
movl %r15d, %esi
xorl %edx, %edx
callq 0x85eb
addq $0x10, %r12
jmp 0x356a
leaq 0xfcfa(%rip), %rsi      # 0x1329e
leaq 0x171e5(%rip), %rdx     # 0x1a790
movq %rbx, %rdi
callq 0x36e4
cmpl $0x2, %ebp
jge 0x35c1
pushq $0x8
popq %r15
jmp 0x36a5
pushq $0x1
popq %r15
movq %rbx, %rdi
movl %r15d, %esi
callq 0x37dc
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x3820
pushq $-0x2
popq %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x3864
leaq 0xf018(%rip), %rdx      # 0x12608
movq %rbx, %rdi
movl $0xffffd8ee, %esi       # imm = 0xFFFFD8EE
callq 0x38e3
movq 0x8(%r14), %rsi
movq %rbx, %rdi
callq 0x393f
testl %eax, %eax
jne 0x36b7
movl %ebp, %r12d
pushq $0x2
popq %r13
cmpq %r13, %r12
je 0x362e
movq (%r14,%r13,8), %rsi
movq %rbx, %rdi
callq 0x3820
incq %r13
jmp 0x3618
addl $-0x2, %ebp
movq %rbx, %rdi
movl %ebp, %esi
xorl %edx, %edx
callq 0x3af8
testl %eax, %eax
jne 0x36b7
movq 0x20(%rbx), %rax
movq 0xb0(%rax), %rbx
movq 0x40(%rbx), %rsi
movq %rbx, %rdi
callq 0x4235
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x83d4
andq $0x0, 0xb0(%rbx)
leaq 0xe356(%rip), %r14      # 0x119c8
movq 0x50(%rbx), %rax
movq %rax, 0x28(%rbx)
movq (%rax), %rax
movq %rax, 0x10(%rbx)
movq %rax, 0x18(%rbx)
andl $0x0, 0x60(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
xorl %edx, %edx
callq 0x3c01
testl %eax, %eax
jne 0x3672
movq %rbx, %rdi
callq 0x3dfa
xorl %r15d, %r15d
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x1793a(%rip), %rax     # 0x1aff8
movq (%rax), %r14
pushq $-0x1
popq %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x3b4c
leaq 0xef37(%rip), %rsi      # 0x1260c
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x3170
jmp 0x36a5