// File: /workspace/github_c_makefile_star2_O0/gplessis[P]dotdeb-redis/deps/lua/src/lauxlib.c
// Function: luaL_loadfile
LUALIB_API int luaL_loadfile (lua_State *L, const char *filename) {
  LoadF lf;
  int status, readstatus;
  int c;
  int fnameindex = lua_gettop(L) + 1;  /* index of filename on the stack */
  lf.extraline = 0;
  if (filename == NULL) {
    lua_pushliteral(L, "=stdin");
    lf.f = stdin;
  }
  else {
    lua_pushfstring(L, "@%s", filename);
    lf.f = fopen(filename, "r");
    if (lf.f == NULL) return errfile(L, "open", fnameindex);
  }
  c = getc(lf.f);
  if (c == '#') {  /* Unix exec. file? */
    lf.extraline = 1;
    while ((c = getc(lf.f)) != EOF && c != '\n') ;  /* skip first line */
    if (c == '\n') c = getc(lf.f);
  }
  if (c == LUA_SIGNATURE[0] && filename) {  /* binary file? */
    lf.f = freopen(filename, "rb", lf.f);  /* reopen in binary mode */
    if (lf.f == NULL) return errfile(L, "reopen", fnameindex);
    /* skip eventual `#!...' */
   while ((c = getc(lf.f)) != EOF && c != LUA_SIGNATURE[0]) ;
    lf.extraline = 0;
  }
  ungetc(c, lf.f);
  status = lua_load(L, getF, &lf, lua_tostring(L, -1));
  readstatus = ferror(lf.f);
  if (filename) fclose(lf.f);  /* close file (even in case of errors) */
  if (readstatus) {
    lua_settop(L, fnameindex);  /* ignore results from `lua_load' */
    return errfile(L, "read", fnameindex);
  }
  lua_remove(L, fnameindex);
  return status;
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x2050, %rsp           # imm = 0x2050
movq %rdi, -0x10(%rbp)
movq %rsi, -0x18(%rbp)
movq -0x10(%rbp), %rdi
callq 0x6a80
addl $0x1, %eax
movl %eax, -0x2038(%rbp)
movl $0x0, -0x2028(%rbp)
cmpq $0x0, -0x18(%rbp)
jne 0x1ba9e
movq -0x10(%rbp), %rdi
leaq 0xf79e(%rip), %rsi      # 0x2b21f
movl $0x6, %edx
callq 0x78d0
movq 0x1b546(%rip), %rax     # 0x36fd8
movq (%rax), %rax
movq %rax, -0x2020(%rbp)
jmp 0x1baf5
movq -0x10(%rbp), %rdi
movq -0x18(%rbp), %rdx
leaq 0x10548(%rip), %rsi     # 0x2bff5
movb $0x0, %al
callq 0x7a10
movq -0x18(%rbp), %rdi
leaq 0x11591(%rip), %rsi     # 0x2d050
callq 0x5430
movq %rax, -0x2020(%rbp)
cmpq $0x0, -0x2020(%rbp)
jne 0x1baf3
movq -0x10(%rbp), %rdi
movl -0x2038(%rbp), %edx
leaq 0x10518(%rip), %rsi     # 0x2bffe
callq 0x1bd00
movl %eax, -0x4(%rbp)
jmp 0x1bcf1
jmp 0x1baf5
movq -0x2020(%rbp), %rdi
callq 0x5530
movl %eax, -0x2034(%rbp)
cmpl $0x23, -0x2034(%rbp)
jne 0x1bb76
movl $0x1, -0x2028(%rbp)
movq -0x2020(%rbp), %rdi
callq 0x5530
movl %eax, %ecx
movl %ecx, -0x2034(%rbp)
xorl %eax, %eax
cmpl $-0x1, %ecx
movb %al, -0x2039(%rbp)
je 0x1bb4b
cmpl $0xa, -0x2034(%rbp)
setne %al
movb %al, -0x2039(%rbp)
movb -0x2039(%rbp), %al
testb $0x1, %al
jne 0x1bb57
jmp 0x1bb59
jmp 0x1bb1a
cmpl $0xa, -0x2034(%rbp)
jne 0x1bb74
movq -0x2020(%rbp), %rdi
callq 0x5530
movl %eax, -0x2034(%rbp)
jmp 0x1bb76
movl -0x2034(%rbp), %eax
movsbl 0x101a9(%rip), %ecx     # 0x2bd2c
cmpl %ecx, %eax
jne 0x1bc2f
cmpq $0x0, -0x18(%rbp)
je 0x1bc2f
movq -0x18(%rbp), %rdi
movq -0x2020(%rbp), %rdx
leaq 0x10451(%rip), %rsi     # 0x2bff9
callq 0x51c0
movq %rax, -0x2020(%rbp)
cmpq $0x0, -0x2020(%rbp)
jne 0x1bbdc
movq -0x10(%rbp), %rdi
movl -0x2038(%rbp), %edx
leaq 0x1042d(%rip), %rsi     # 0x2bffc
callq 0x1bd00
movl %eax, -0x4(%rbp)
jmp 0x1bcf1
jmp 0x1bbde
movq -0x2020(%rbp), %rdi
callq 0x5530
movl %eax, %ecx
movl %ecx, -0x2034(%rbp)
xorl %eax, %eax
cmpl $-0x1, %ecx
movb %al, -0x203a(%rbp)
je 0x1bc17
movl -0x2034(%rbp), %eax
movsbl 0x10120(%rip), %ecx     # 0x2bd2c
cmpl %ecx, %eax
setne %al
movb %al, -0x203a(%rbp)
movb -0x203a(%rbp), %al
testb $0x1, %al
jne 0x1bc23
jmp 0x1bc25
jmp 0x1bbde
movl $0x0, -0x2028(%rbp)
movl -0x2034(%rbp), %edi
movq -0x2020(%rbp), %rsi
callq 0x5380
movq -0x10(%rbp), %rax
movq %rax, -0x2048(%rbp)
movq -0x10(%rbp), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %eax, %eax
movl %eax, %edx
callq 0x74a0
movq -0x2048(%rbp), %rdi
movq %rax, %rcx
leaq 0x101(%rip), %rsi       # 0x1bd70
leaq -0x2028(%rbp), %rdx
callq 0x8950
movl %eax, -0x202c(%rbp)
movq -0x2020(%rbp), %rdi
callq 0x50d0
movl %eax, -0x2030(%rbp)
cmpq $0x0, -0x18(%rbp)
je 0x1bca6
movq -0x2020(%rbp), %rdi
callq 0x5140
cmpl $0x0, -0x2030(%rbp)
je 0x1bcd9
movq -0x10(%rbp), %rdi
movl -0x2038(%rbp), %esi
callq 0x6ab0
movq -0x10(%rbp), %rdi
movl -0x2038(%rbp), %edx
leaq 0xffc8(%rip), %rsi      # 0x2bc97
callq 0x1bd00
movl %eax, -0x4(%rbp)
jmp 0x1bcf1
movq -0x10(%rbp), %rdi
movl -0x2038(%rbp), %esi
callq 0x6b40
movl -0x202c(%rbp), %eax
movl %eax, -0x4(%rbp)
movl -0x4(%rbp), %eax
addq $0x2050, %rsp           # imm = 0x2050
popq %rbp
retq
nopl (%rax)