// File: /workspace/github_c_makefile_star2_O1/zhou-yuxin[P]redis-aof-no-cow/deps/lua/src/luac.c
// Function: pmain
static int pmain(lua_State* L)
{
 struct Smain* s = (struct Smain*)lua_touserdata(L, 1);
 int argc=s->argc;
 char** argv=s->argv;
 const Proto* f;
 int i;
 if (!lua_checkstack(L,argc)) fatal("too many input files");
 for (i=0; i<argc; i++)
 {
  const char* filename=IS("-") ? NULL : argv[i];
  if (luaL_loadfile(L,filename)!=0) fatal(lua_tostring(L,-1));
 }
 f=combine(L,argc);
 if (listing) luaU_print(f,listing>1);
 if (dumping)
 {
  FILE* D= (output==NULL) ? stdout : fopen(output,"wb");
  if (D==NULL) cannot("open");
  lua_lock(L);
  luaU_dump(L,f,writer,D,stripping);
  lua_unlock(L);
  if (ferror(D)) cannot("write");
  if (fclose(D)) cannot("close");
 }
 return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %esi
callq 0x384d
movl (%rax), %r15d
movq 0x8(%rax), %r13
movq %rbx, %rdi
movl %r15d, %esi
callq 0x31b6
testl %eax, %eax
je 0x298b
testl %r15d, %r15d
jle 0x27bf
xorl %ebp, %ebp
leaq 0x10d5a(%rip), %r14     # 0x134e6
movq (%r13,%rbp,8), %r12
movq %r12, %rdi
movq %r14, %rsi
callq 0x2150
testl %eax, %eax
movl $0x0, %esi
cmovneq %r12, %rsi
movq %rbx, %rdi
callq 0xec7c
testl %eax, %eax
jne 0x2983
incq %rbp
cmpq %rbp, %r15
jne 0x278c
cmpl $0x1, %r15d
jne 0x27d6
movq 0x10(%rbx), %rax
movq -0x10(%rax), %rax
movq 0x20(%rax), %r14
jmp 0x28ed
movslq %r15d, %r12
movq %rbx, %rdi
callq 0x69cd
movq %rax, %r14
movq 0x10(%rbx), %rax
movq %r14, (%rax)
movl $0x9, 0x8(%rax)
movq 0x38(%rbx), %rax
subq 0x10(%rbx), %rax
cmpq $0x10, %rax
jg 0x280d
movq %rbx, %rdi
movl $0x1, %esi
callq 0x585e
addq $0x10, 0x10(%rbx)
leaq 0xf9d7(%rip), %rsi      # 0x121f0
movl $0x7, %edx
movq %rbx, %rdi
callq 0xaaa7
movq %rax, 0x40(%r14)
movb $0x1, 0x73(%r14)
leaq 0x1(,%r12,2), %r13
cmpl $-0x1, %r15d
jl 0x2852
movq %r13, %rcx
shlq $0x2, %rcx
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x7b56
jmp 0x285a
movq %rbx, %rdi
callq 0x7ba2
movq %rax, 0x18(%r14)
movl %r13d, 0x50(%r14)
cmpl $-0x1, %r15d
jl 0x287d
shlq $0x3, %r12
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %r12, %rcx
callq 0x7b56
jmp 0x2885
movq %rbx, %rdi
callq 0x7ba2
movq %rax, 0x20(%r14)
movl %r15d, 0x58(%r14)
testl %r15d, %r15d
jle 0x28e0
movl %r15d, %eax
notl %eax
movslq %eax, %rcx
leaq (%r15,%r15), %rdx
shlq $0x4, %rcx
movl $0x24, %esi
xorl %eax, %eax
movq 0x10(%rbx), %rdi
addq %rcx, %rdi
movq (%rdi,%rax,8), %rdi
movq 0x20(%rdi), %rdi
movq 0x20(%r14), %r8
movq %rdi, (%r8,%rax,4)
movq 0x18(%r14), %rdi
movl %esi, (%rdi,%rax,4)
movl $0x80401c, 0x4(%rdi,%rax,4) # imm = 0x80401C
addq $0x2, %rax
addl $0x4000, %esi           # imm = 0x4000
cmpq %rax, %rdx
jne 0x28a9
jmp 0x28e2
xorl %eax, %eax
movq 0x18(%r14), %rcx
movl $0x80001e, (%rcx,%rax,4) # imm = 0x80001E
movl 0x17885(%rip), %eax     # 0x1a178
testl %eax, %eax
je 0x2908
xorl %esi, %esi
cmpl $0x2, %eax
setge %sil
movq %r14, %rdi
callq 0x2a34
cmpb $0x0, 0x1786d(%rip)     # 0x1a17c
jne 0x2972
movq 0x17848(%rip), %rdi     # 0x1a160
testq %rdi, %rdi
je 0x292e
leaq 0xf8bd(%rip), %rsi      # 0x121e1
callq 0x21e0
movq %rax, %r15
jmp 0x2938
movq 0x1769b(%rip), %rax     # 0x19fd0
movq (%rax), %r15
testq %r15, %r15
je 0x2990
movzbl 0x1783b(%rip), %r8d     # 0x1a180
leaq 0xbe(%rip), %rdx        # 0x2a0a
movq %rbx, %rdi
movq %r14, %rsi
movq %r15, %rcx
callq 0x62f8
movq %r15, %rdi
callq 0x2070
testl %eax, %eax
jne 0x299c
movq %r15, %rdi
callq 0x20c0
testl %eax, %eax
jne 0x29a8
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq %rbx, %rdi
callq 0x2304
callq 0x2339
leaq 0x1080c(%rip), %rdi     # 0x131a3
callq 0x29b4
leaq 0xf841(%rip), %rdi      # 0x121e4
callq 0x29b4
leaq 0xf83b(%rip), %rdi      # 0x121ea
callq 0x29b4