// File: /workspace/github_c_makefile_star2_O1/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/lua.c
// Function: pmain
static int pmain (lua_State *L) {
  int argc = (int)lua_tointeger(L, 1);
  char **argv = (char **)lua_touserdata(L, 2);
  int script;
  int args[num_has];
  args[has_i] = args[has_v] = args[has_e] = args[has_E] = 0;
  if (argv[0] && argv[0][0]) progname = argv[0];
  script = collectargs(argv, args);
  if (script < 0) {  /* invalid arg? */
    print_usage(argv[-script]);
    return 0;
  }
  if (args[has_v]) print_version();
  if (args[has_E]) {  /* option '-E'? */
    lua_pushboolean(L, 1);  /* signal for libraries to ignore env. vars. */
    lua_setfield(L, LUA_REGISTRYINDEX, "LUA_NOENV");
  }
  /* open standard libraries */
  luaL_checkversion(L);
  lua_gc(L, LUA_GCSTOP, 0);  /* stop collector during initialization */
  luaL_openlibs(L);  /* open libraries */
  lua_gc(L, LUA_GCRESTART, 0);
  if (!args[has_E] && handle_luainit(L) != LUA_OK)
    return 0;  /* error running LUA_INIT */
  /* execute arguments -e and -l */
  if (!runargs(L, argv, (script > 0) ? script : argc)) return 0;
  /* execute main script (if there is one) */
  if (script && handle_script(L, argv, script) != LUA_OK) return 0;
  if (args[has_i])  /* -i option? */
    dotty(L);
  else if (script == 0 && !args[has_e] && !args[has_v]) {  /* no arguments? */
    if (lua_stdin_is_tty()) {
      print_version();
      dotty(L);
    }
    else dofile(L, NULL);  /* executes stdin as a file */
  }
  lua_pushboolean(L, 1);  /* signal no errors */
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %rdi, %rbx
xorl %r13d, %r13d
movl $0x1, %esi
xorl %edx, %edx
callq 0x7b1d
movq %rax, 0x10(%rsp)
movq %rbx, %rdi
movl $0x2, %esi
callq 0x7caf
movq %rax, %rsi
movq (%rax), %rax
testq %rax, %rax
je 0x6b26
cmpb $0x0, (%rax)
je 0x6b26
movq %rax, 0x267ea(%rip)     # 0x2d310
movq 0x8(%rsi), %rax
movl $0x0, %r15d
movl $0x0, %ebp
movl $0x0, %r12d
movl $0x0, %r14d
testq %rax, %rax
je 0x6c1a
movl $0x1, %r14d
xorl %r13d, %r13d
xorl %r15d, %r15d
xorl %ebp, %ebp
xorl %r12d, %r12d
cmpb $0x2d, (%rax)
jne 0x6c1a
movzbl 0x1(%rax), %ecx
cmpl $0x68, %ecx
jle 0x6b85
cmpl $0x69, %ecx
je 0x6bbf
cmpl $0x6c, %ecx
je 0x6ba2
cmpl $0x76, %ecx
jne 0x6c0c
movl %r12d, %ecx
jmp 0x6bca
cmpl $0x64, %ecx
jg 0x6b97
cmpl $0x45, %ecx
jne 0x6bf1
movl $0x1, %r13d
jmp 0x6bd8
cmpl $0x65, %ecx
jne 0x6c0c
movl $0x1, %r15d
cmpb $0x0, 0x2(%rax)
jne 0x6bd8
movslq %r14d, %rax
movq 0x8(%rsi,%rax,8), %rax
testq %rax, %rax
je 0x6c0c
cmpb $0x2d, (%rax)
je 0x6c0c
incl %r14d
jmp 0x6bd8
movl $0x1, %ecx
cmpb $0x0, 0x2(%rax)
jne 0x6c04
cmpb $0x0, 0x2(%rax)
jne 0x6c11
movl $0x1, %ebp
movl %ecx, %r12d
movslq %r14d, %rax
incl %r14d
movq 0x8(%rsi,%rax,8), %rax
testq %rax, %rax
jne 0x6b5b
xorl %r14d, %r14d
jmp 0x6c1a
testl %ecx, %ecx
je 0x6c1a
cmpl $0x2d, %ecx
jne 0x6c0c
cmpb $0x0, 0x2(%rax)
je 0x700f
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
jmp 0x6c1a
negl %r14d
jmp 0x6c1a
movl $0xffffffff, %r14d      # imm = 0xFFFFFFFF
movl %ecx, %r12d
testl %r14d, %r14d
js 0x6fd6
movq %rsi, 0x18(%rsp)
testl %ebp, %ebp
je 0x6c31
callq 0x7029
testl %r13d, %r13d
movl %ebp, 0xc(%rsp)
je 0x6ee5
movq %rbx, %rdi
movl $0x1, %esi
callq 0x7fe1
leaq 0x193ee(%rip), %rdx     # 0x20040
movq %rbx, %rdi
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
callq 0x833f
movsd 0x193a1(%rip), %xmm0    # 0x20008
movq %rbx, %rdi
callq 0xa0aa
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x8828
movq %rbx, %rdi
callq 0xe1f0
movq %rbx, %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0x8828
movl %r15d, 0x8(%rsp)
movl %r12d, 0x24(%rsp)
testl %r14d, %r14d
movq 0x10(%rsp), %rbp
cmovnel %r14d, %ebp
cmpl $0x2, %ebp
movq 0x18(%rsp), %rdx
jl 0x6d84
movl $0x1, %r12d
movq %rbp, %r15
movslq %r12d, %rax
movq (%rdx,%rax,8), %r13
movzbl 0x1(%r13), %ecx
cmpl $0x6c, %ecx
je 0x6ce6
cmpl $0x65, %ecx
jne 0x6d78
cmpb $0x0, 0x2(%r13)
je 0x6cf3
addq $0x2, %r13
jmp 0x6cfc
cmpb $0x0, 0x2(%r13)
je 0x6d1c
addq $0x2, %r13
jmp 0x6d25
leal 0x1(%rax), %r12d
movq 0x8(%rdx,%rax,8), %r13
movq %rbx, %rdi
movq %r13, %rsi
leaq 0x19560(%rip), %rdx     # 0x20269
callq 0x72ae
testl %eax, %eax
movq 0x18(%rsp), %rdx
je 0x6d78
jmp 0x6fde
leal 0x1(%rax), %r12d
movq 0x8(%rdx,%rax,8), %r13
movq %rbx, %rdi
leaq 0x1954a(%rip), %rsi     # 0x20279
callq 0x8033
movq %rbx, %rdi
movq %r13, %rsi
callq 0x7e16
movq %rbx, %rdi
movl $0x1, %esi
movl $0x1, %edx
callq 0x72f7
movl %eax, %ebp
testl %eax, %eax
jne 0x6fca
movq %rbx, %rdi
movq %r13, %rsi
callq 0x82a5
movq %rbx, %rdi
movl %ebp, %esi
callq 0x7381
movq 0x18(%rsp), %rdx
movq %r15, %rbp
incl %r12d
cmpl %ebp, %r12d
jl 0x6cbf
testl %r14d, %r14d
movl 0xc(%rsp), %r12d
movl 0x8(%rsp), %r15d
je 0x6f5c
xorl %r13d, %r13d
cmpq $0x0, (%rdx,%r13,8)
leaq 0x1(%r13), %r13
jne 0x6d9a
leaq -0x1(%r13), %r12
leal 0x1(%r14), %ecx
movl $0xfffffffe, %eax       # imm = 0xFFFFFFFE
subl %r14d, %eax
addq %r13, %rax
movq %rax, 0x28(%rsp)
movl %r13d, %esi
movq %r14, 0x10(%rsp)
subl %r14d, %esi
movl %ecx, %r14d
incl %esi
leaq 0x194b0(%rip), %rdx     # 0x20284
movq %rbx, %rdi
callq 0x9593
movl %r14d, %eax
movq %rax, 0x30(%rsp)
cmpl %r12d, %r14d
movq %rbx, %r15
jge 0x6e13
movq 0x18(%rsp), %rax
movq 0x30(%rsp), %rcx
leaq (%rax,%rcx,8), %rbx
movl %r14d, %ebp
movq (%rbx), %rsi
movq %r15, %rdi
callq 0x7e16
incl %ebp
addq $0x8, %rbx
cmpl %r12d, %ebp
jl 0x6dfd
movq %r15, %rdi
movq 0x28(%rsp), %rsi
movl %r14d, %edx
callq 0x81c0
cmpq $0x1, %r13
movq 0x18(%rsp), %r14
je 0x6e5f
leal -0x1(%r13), %r12d
movq 0x10(%rsp), %rbp
negl %ebp
xorl %ebx, %ebx
movq (%r14,%rbx,8), %rsi
movq %r15, %rdi
callq 0x7e16
leal (%rbx,%rbp), %edx
movq %r15, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x840d
incq %rbx
cmpq %rbx, %r12
jne 0x6e3b
leaq 0x1b7ee(%rip), %rsi     # 0x22654
movq %r15, %r12
movq %r15, %rdi
callq 0x82a5
movl 0x10(%rsp), %ebx
movq (%r14,%rbx,8), %rbp
leaq 0x1aa00(%rip), %rsi     # 0x21880
movq %rbp, %rdi
callq 0x62e0
testl %eax, %eax
jne 0x6ea5
movq -0x8(%r14,%rbx,8), %rdi
leaq 0x193e9(%rip), %rsi     # 0x20281
callq 0x62e0
xorl %ecx, %ecx
testl %eax, %eax
cmovneq %rcx, %rbp
movl 0x8(%rsp), %r15d
movq %r12, %rbx
movq %r12, %rdi
movq %rbp, %rsi
xorl %edx, %edx
callq 0x9aca
movl %eax, %ebp
movq 0x30(%rsp), %r12
subq %r13, %r12
movq %rbx, %rdi
movl %r12d, %esi
callq 0x779a
testl %ebp, %ebp
movq 0x10(%rsp), %r14
movq %rbx, %rdi
je 0x6f34
movl %r12d, %esi
callq 0x7697
jmp 0x6f45
movsd 0x1911b(%rip), %xmm0    # 0x20008
movq %rbx, %rdi
callq 0xa0aa
xorl %ebp, %ebp
movq %rbx, %rdi
xorl %esi, %esi
xorl %edx, %edx
callq 0x8828
movq %rbx, %rdi
callq 0xe1f0
movq %rbx, %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0x8828
leaq 0x192e7(%rip), %rdi     # 0x20208
callq 0x6040
testq %rax, %rax
je 0x6f6d
leaq 0x192d5(%rip), %rdx     # 0x20207
jmp 0x6f80
movq 0x28(%rsp), %rsi
movl $0xffffffff, %edx       # imm = 0xFFFFFFFF
callq 0x72f7
movl %eax, %ebp
movl 0xc(%rsp), %r12d
movq %rbx, %rdi
movl %ebp, %esi
callq 0x7381
testl %ebp, %ebp
jne 0x6fde
cmpl $0x0, 0x24(%rsp)
je 0x6f9a
movq %rbx, %rdi
callq 0x7060
jmp 0x6fec
leaq 0x192a2(%rip), %rdi     # 0x20216
callq 0x6040
leaq 0x19295(%rip), %rdx     # 0x20215
testq %rax, %rax
je 0x6fc1
cmpb $0x40, (%rax)
jne 0x6fb4
incq %rax
movq %rbx, %rdi
movq %rax, %rsi
callq 0x7288
jmp 0x6fbf
orl %r15d, %r14d
orl %r12d, %r14d
jne 0x6fec
xorl %edi, %edi
callq 0x60f0
testl %eax, %eax
je 0x6fe2
callq 0x7029
jmp 0x6f63
movq %rbx, %rdi
movq %rax, %rsi
callq 0x72ae
movl %eax, %ebp
testl %ebp, %ebp
jne 0x6fde
jmp 0x6c92
movq %rbx, %rdi
movl %ebp, %esi
callq 0x7381
jmp 0x6fde
movl %r14d, %edi
callq 0x6669
xorl %ebp, %ebp
jmp 0x6ffe
movq %rbx, %rdi
xorl %esi, %esi
callq 0x7288
movl $0x1, %ebp
movq %rbx, %rdi
movl $0x1, %esi
callq 0x7fe1
movl %ebp, %eax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movslq %r14d, %rax
incl %r14d
xorl %ecx, %ecx
cmpq $0x0, 0x8(%rsi,%rax,8)
cmovnel %r14d, %ecx
movl %ecx, %r14d
jmp 0x6c1a