// File: /workspace/github_c_makefile_star2_O0/zhou-yuxin[P]redis-aof-no-cow/deps/lua/src/luac.c
// Function: doargs
static int doargs(int argc, char* argv[])
{
 int i;
 int version=0;
 if (argv[0]!=NULL && *argv[0]!=0) progname=argv[0];
 for (i=1; i<argc; i++)
 {
  if (*argv[i]!='-')			/* end of options; keep it */
   break;
  else if (IS("--"))			/* end of options; skip it */
  {
   ++i;
   if (version) ++version;
   break;
  }
  else if (IS("-"))			/* end of options; use stdin */
   break;
  else if (IS("-l"))			/* list */
   ++listing;
  else if (IS("-o"))			/* output file */
  {
   output=argv[++i];
   if (output==NULL || *output==0) usage(LUA_QL("-o") " needs argument");
   if (IS("-")) output=NULL;
  }
  else if (IS("-p"))			/* parse only */
   dumping=0;
  else if (IS("-s"))			/* strip debug information */
   stripping=1;
  else if (IS("-v"))			/* show version */
   ++version;
  else					/* unknown option */
   usage(argv[i]);
 }
 if (i==argc && (listing || !dumping))
 {
  dumping=0;
  argv[--i]=Output;
 }
 if (version)
 {
  printf("%s  %s\n",LUA_RELEASE,LUA_COPYRIGHT);
  if (version==argc-1) exit(EXIT_SUCCESS);
 }
 return i;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x20, %rsp
movl %edi, -0x4(%rbp)
movq %rsi, -0x10(%rbp)
movl $0x0, -0x18(%rbp)
movq -0x10(%rbp), %rax
cmpq $0x0, (%rax)
je 0x249d
movq -0x10(%rbp), %rax
movq (%rax), %rax
movsbl (%rax), %eax
cmpl $0x0, %eax
je 0x249d
movq -0x10(%rbp), %rax
movq (%rax), %rax
movq %rax, 0x23cbb(%rip)     # 0x26158
movl $0x1, -0x14(%rbp)
movl -0x14(%rbp), %eax
cmpl -0x4(%rbp), %eax
jge 0x2689
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rax
movsbl (%rax), %eax
cmpl $0x2d, %eax
je 0x24c9
jmp 0x2689
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x1bb59(%rip), %rsi     # 0x1e035
callq 0x2160
cmpl $0x0, %eax
jne 0x2503
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
cmpl $0x0, -0x18(%rbp)
je 0x24fe
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x2689
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x1d13d(%rip), %rsi     # 0x1f653
callq 0x2160
cmpl $0x0, %eax
jne 0x2525
jmp 0x2689
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x1bb00(%rip), %rsi     # 0x1e038
callq 0x2160
cmpl $0x0, %eax
jne 0x2556
movl 0x23c34(%rip), %eax     # 0x2617c
addl $0x1, %eax
movl %eax, 0x23c2b(%rip)     # 0x2617c
jmp 0x2673
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x1bad2(%rip), %rsi     # 0x1e03b
callq 0x2160
cmpl $0x0, %eax
jne 0x25e0
movq -0x10(%rbp), %rax
movl -0x14(%rbp), %ecx
addl $0x1, %ecx
movl %ecx, -0x14(%rbp)
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x23bd2(%rip)     # 0x26160
cmpq $0x0, 0x23bca(%rip)     # 0x26160
je 0x25a7
movq 0x23bc1(%rip), %rax     # 0x26160
movsbl (%rax), %eax
cmpl $0x0, %eax
jne 0x25b3
leaq 0x1ba90(%rip), %rdi     # 0x1e03e
callq 0x2710
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x1d08d(%rip), %rsi     # 0x1f653
callq 0x2160
cmpl $0x0, %eax
jne 0x25db
movq $0x0, 0x23b85(%rip) # 0x26160
jmp 0x2671
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x1ba5f(%rip), %rsi     # 0x1e052
callq 0x2160
cmpl $0x0, %eax
jne 0x2609
movl $0x0, 0x23b61(%rip)     # 0x26168
jmp 0x266f
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x1ba39(%rip), %rsi     # 0x1e055
callq 0x2160
cmpl $0x0, %eax
jne 0x2632
movl $0x1, 0x23b50(%rip)     # 0x26180
jmp 0x266d
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
leaq 0x1ba13(%rip), %rsi     # 0x1e058
callq 0x2160
cmpl $0x0, %eax
jne 0x265a
movl -0x18(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x18(%rbp)
jmp 0x266b
movq -0x10(%rbp), %rax
movslq -0x14(%rbp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x2710
jmp 0x266d
jmp 0x266f
jmp 0x2671
jmp 0x2673
jmp 0x2675
jmp 0x2677
jmp 0x2679
jmp 0x267b
movl -0x14(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x14(%rbp)
jmp 0x24a4
movl -0x14(%rbp), %eax
cmpl -0x4(%rbp), %eax
jne 0x26c8
cmpl $0x0, 0x23ae4(%rip)     # 0x2617c
jne 0x26a3
cmpl $0x0, 0x23ac7(%rip)     # 0x26168
jne 0x26c8
movl $0x0, 0x23abb(%rip)     # 0x26168
movq -0x10(%rbp), %rax
movl -0x14(%rbp), %ecx
addl $-0x1, %ecx
movl %ecx, -0x14(%rbp)
movslq %ecx, %rcx
leaq 0x23aa8(%rip), %rdx     # 0x2616c
movq %rdx, (%rax,%rcx,8)
cmpl $0x0, -0x18(%rbp)
je 0x2700
leaq 0x1b986(%rip), %rdi     # 0x1e05b
leaq 0x1b987(%rip), %rsi     # 0x1e063
leaq 0x1b98a(%rip), %rdx     # 0x1e06d
movb $0x0, %al
callq 0x2100
movl -0x18(%rbp), %eax
movl -0x4(%rbp), %ecx
subl $0x1, %ecx
cmpl %ecx, %eax
jne 0x26fe
xorl %edi, %edi
callq 0x2230
jmp 0x2700
movl -0x14(%rbp), %eax
addq $0x20, %rsp
popq %rbp
retq
nopl (%rax)