// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/deps/lua/src/loadlib.c
// Function: ll_require
static int ll_require (lua_State *L) {
  const char *name = luaL_checkstring(L, 1);
  int i;
  lua_settop(L, 1);  /* _LOADED table will be at index 2 */
  lua_getfield(L, LUA_REGISTRYINDEX, "_LOADED");
  lua_getfield(L, 2, name);
  if (lua_toboolean(L, -1)) {  /* is it there? */
    if (lua_touserdata(L, -1) == sentinel)  /* check loops */
      luaL_error(L, "loop or previous error loading module " LUA_QS, name);
    return 1;  /* package is already loaded */
  }
  /* else must load it; iterate over available loaders */
  lua_getfield(L, LUA_ENVIRONINDEX, "loaders");
  if (!lua_istable(L, -1))
    luaL_error(L, LUA_QL("package.loaders") " must be a table");
  lua_pushliteral(L, "");  /* error message accumulator */
  for (i=1; ; i++) {
    lua_rawgeti(L, -2, i);  /* get a loader */
    if (lua_isnil(L, -1))
      luaL_error(L, "module " LUA_QS " not found:%s",
                    name, lua_tostring(L, -2));
    lua_pushstring(L, name);
    lua_call(L, 1, 1);  /* call it */
    if (lua_isfunction(L, -1))  /* did it find module? */
      break;  /* module loaded successfully */
    else if (lua_isstring(L, -1))  /* loader returned error message? */
      lua_concat(L, 2);  /* accumulate it */
    else
      lua_pop(L, 1);
  }
  lua_pushlightuserdata(L, sentinel);
  lua_setfield(L, 2, name);  /* _LOADED[name] = sentinel */
  lua_pushstring(L, name);  /* pass name as argument to module */
  lua_call(L, 1, 1);  /* run loaded module */
  if (!lua_isnil(L, -1))  /* non-nil return? */
    lua_setfield(L, 2, name);  /* _LOADED[name] = returned value */
  lua_getfield(L, 2, name);
  if (lua_touserdata(L, -1) == sentinel) {   /* module did not set a value? */
    lua_pushboolean(L, 1);  /* use true as result */
    lua_pushvalue(L, -1);  /* extra copy to be returned */
    lua_setfield(L, 2, name);  /* _LOADED[name] = true */
  }
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
movq %rdi, %rbx
movl $0x1, %esi
xorl %edx, %edx
callq 0x10b24
movq %rax, %r14
movq %rbx, %rdi
movl $0x1, %esi
callq 0x54e9
leaq 0x1419(%rip), %rdx      # 0x1bfd3
movq %rbx, %rdi
movl $0xffffd8f0, %esi       # imm = 0xFFFFD8F0
callq 0x5eef
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %rdx
callq 0x5eef
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x5a62
testl %eax, %eax
je 0x1ac1e
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x5b7b
leaq 0x2650(%rip), %rcx      # 0x1d24c
cmpq %rcx, %rax
jne 0x1adc0
leaq 0x25d8(%rip), %rsi      # 0x1d1e4
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x108d7
jmp 0x1adc0
leaq 0x2335(%rip), %rdx      # 0x1cf5a
movq %rbx, %rdi
movl $0xffffd8ef, %esi       # imm = 0xFFFFD8EF
callq 0x5eef
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x584a
cmpl $0x5, %eax
je 0x1ac55
leaq 0x25c4(%rip), %rsi      # 0x1d20f
movq %rbx, %rdi
xorl %eax, %eax
callq 0x108d7
leaq 0x2546(%rip), %rsi      # 0x1d1a2
movq %rbx, %rdi
xorl %edx, %edx
callq 0x5c5a
movl $0x1, %ebp
leaq 0x25bf(%rip), %r15      # 0x1d231
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl %ebp, %edx
callq 0x5f73
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x584a
testl %eax, %eax
jne 0x1acb4
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
xorl %edx, %edx
callq 0x5a88
movq %rbx, %rdi
movq %r15, %rsi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x108d7
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5cb1
movq %rbx, %rdi
movl $0x1, %esi
movl $0x1, %edx
callq 0x6305
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x584a
cmpl $0x6, %eax
je 0x1ad14
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x58d4
movq %rbx, %rdi
testl %eax, %eax
je 0x1ad03
movl $0x2, %esi
callq 0x65fa
jmp 0x1ad0d
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x54e9
incl %ebp
jmp 0x1ac72
leaq 0x2531(%rip), %r15      # 0x1d24c
movq %rbx, %rdi
movq %r15, %rsi
callq 0x5e97
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %rdx
callq 0x60cb
movq %rbx, %rdi
movq %r14, %rsi
callq 0x5cb1
movq %rbx, %rdi
movl $0x1, %esi
movl $0x1, %edx
callq 0x6305
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x584a
testl %eax, %eax
je 0x1ad74
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %rdx
callq 0x60cb
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %rdx
callq 0x5eef
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x5b7b
cmpq %r15, %rax
jne 0x1adc0
movq %rbx, %rdi
movl $0x1, %esi
callq 0x5e7d
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x582a
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %rdx
callq 0x60cb
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq