// File: /workspace/github_c_makefile_star2_O2/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
pushq $0x1
popq %rsi
callq 0x36b1
movl (%rax), %r14d
movq 0x8(%rax), %r15
movq %rbx, %rdi
movl %r14d, %esi
callq 0x303e
testl %eax, %eax
je 0x2850
movslq %r14d, %r12
xorl %ebp, %ebp
testl %r14d, %r14d
movl $0x0, %r13d
cmovgl %r14d, %r13d
cmpq %rbp, %r13
je 0x2684
movq (%r15,%rbp,8), %rsi
cmpb $0x2d, (%rsi)
jne 0x2660
cmpb $0x0, 0x1(%rsi)
jne 0x2660
xorl %esi, %esi
movq %rbx, %rdi
callq 0xdfa5
incq %rbp
testl %eax, %eax
je 0x264a
pushq $-0x1
popq %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x35c1
movq %rax, %rdi
callq 0x25dd
cmpl $0x1, %r14d
jne 0x269b
movq 0x10(%rbx), %rax
movq -0x10(%rax), %rax
movq 0x20(%rax), %r15
jmp 0x27ba
movq %rbx, %rdi
callq 0x6656
movq %rax, %r15
movq 0x10(%rbx), %rax
movq %r15, (%rax)
movl $0x9, 0x8(%rax)
movq 0x10(%rbx), %rax
movq 0x38(%rbx), %rcx
subq %rax, %rcx
cmpq $0x10, %rcx
jg 0x26d4
pushq $0x1
popq %rsi
movq %rbx, %rdi
callq 0x568e
movq 0x10(%rbx), %rax
addq $0x10, %rax
movq %rax, 0x10(%rbx)
leaq 0xeb27(%rip), %rsi      # 0x1120a
pushq $0x7
popq %rdx
movq %rbx, %rdi
callq 0xa3c2
movq %rax, 0x40(%r15)
movb $0x1, 0x73(%r15)
movq %r12, %rbp
leaq 0x1(,%r12,2), %r12
cmpl $-0x1, %r14d
jl 0x2742
movq %r12, %rcx
shlq $0x2, %rcx
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x7702
movq %r15, %r8
addq $0x18, %r8
movq %rax, 0x18(%r15)
movl %r12d, 0x50(%r15)
shlq $0x3, %rbp
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
movq %rbp, %rcx
movq %r8, %rbp
callq 0x7702
jmp 0x2761
movq %rbx, %rdi
callq 0x774c
movq %r15, %rbp
addq $0x18, %rbp
movq %rax, 0x18(%r15)
movl %r12d, 0x50(%r15)
movq %rbx, %rdi
callq 0x774c
movq %rax, 0x20(%r15)
movl %r14d, 0x58(%r15)
notl %r14d
pushq $0x24
popq %rcx
xorl %eax, %eax
cmpq %rax, %r13
je 0x27af
movq 0x10(%rbx), %rdx
leal (%r14,%rax), %esi
movslq %esi, %rsi
shlq $0x4, %rsi
movq (%rdx,%rsi), %rdx
movq 0x20(%rdx), %rdx
movq 0x20(%r15), %rsi
movq %rdx, (%rsi,%rax,8)
movq 0x18(%r15), %rdx
movl %ecx, (%rdx,%rax,8)
movl $0x80401c, 0x4(%rdx,%rax,8) # imm = 0x80401C
incq %rax
addl $0x4000, %ecx           # imm = 0x4000
jmp 0x2771
movq (%rbp), %rcx
movl $0x80001e, (%rcx,%rax,8) # imm = 0x80001E
movl 0x179b0(%rip), %eax     # 0x1a170
testl %eax, %eax
je 0x27d5
xorl %esi, %esi
cmpl $0x2, %eax
setge %sil
movq %r15, %rdi
callq 0x28fc
cmpb $0x0, 0x17998(%rip)     # 0x1a174
jne 0x283f
movq 0x17973(%rip), %rdi     # 0x1a158
testq %rdi, %rdi
je 0x27fb
leaq 0xea0a(%rip), %rsi      # 0x111fb
callq 0x21d0
movq %rax, %r14
jmp 0x2805
movq 0x177ce(%rip), %rax     # 0x19fd0
movq (%rax), %r14
testq %r14, %r14
je 0x285c
movzbl 0x17966(%rip), %r8d     # 0x1a178
leaq 0xbb(%rip), %rdx        # 0x28d4
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rcx
callq 0x60d8
movq %r14, %rdi
callq 0x2070
testl %eax, %eax
jne 0x2868
movq %r14, %rdi
callq 0x20c0
testl %eax, %eax
jne 0x2874
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0xe98f(%rip), %rdi      # 0x111e6
callq 0x25dd
leaq 0xf980(%rip), %rdi      # 0x121e3
callq 0x2880
leaq 0xe98f(%rip), %rdi      # 0x111fe
callq 0x2880
leaq 0xe989(%rip), %rdi      # 0x11204
callq 0x2880