// File: /workspace/github_c_makefile_star2_O3/gplessis[P]dotdeb-redis/deps/lua/src/loadlib.c
// Function: ll_module
static int ll_module (lua_State *L) {
  const char *modname = luaL_checkstring(L, 1);
  int loaded = lua_gettop(L) + 1;  /* index of _LOADED table */
  lua_getfield(L, LUA_REGISTRYINDEX, "_LOADED");
  lua_getfield(L, loaded, modname);  /* get _LOADED[modname] */
  if (!lua_istable(L, -1)) {  /* not found? */
    lua_pop(L, 1);  /* remove previous result */
    /* try global variable (and create one if it does not exist) */
    if (luaL_findtable(L, LUA_GLOBALSINDEX, modname, 1) != NULL)
      return luaL_error(L, "name conflict for module " LUA_QS, modname);
    lua_pushvalue(L, -1);
    lua_setfield(L, loaded, modname);  /* _LOADED[modname] = new table */
  }
  /* check whether table already has a _NAME field */
  lua_getfield(L, -1, "_NAME");
  if (!lua_isnil(L, -1))  /* is table an initialized module? */
    lua_pop(L, 1);
  else {  /* no; initialize it */
    lua_pop(L, 1);
    modinit(L, modname);
  }
  lua_pushvalue(L, -1);
  setfenv(L);
  dooptions(L, loaded - 1);
  return 0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
subq $0x78, %rsp
movq %rdi, %rbx
movl $0x1, %esi
xorl %edx, %edx
callq 0x10b24
movq %rax, %r15
movq %rbx, %rdi
callq 0x54dc
movl %eax, %r14d
leal 0x1(%r14), %ebp
leaq 0x1655(%rip), %rdx      # 0x1bfd3
movq %rbx, %rdi
movl $0xffffd8f0, %esi       # imm = 0xFFFFD8F0
callq 0x5eef
movq %rbx, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x5eef
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x584a
cmpl $0x5, %eax
je 0x1aa09
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x54e9
movq %rbx, %rdi
movl $0xffffd8ee, %esi       # imm = 0xFFFFD8EE
movq %r15, %rdx
movl $0x1, %ecx
callq 0x1101d
testq %rax, %rax
je 0x1a9ef
leaq 0x1603(%rip), %rsi      # 0x1bfdb
movq %rbx, %rdi
movq %r15, %rdx
xorl %eax, %eax
addq $0x78, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x108d7
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x582a
movq %rbx, %rdi
movl %ebp, %esi
movq %r15, %rdx
callq 0x60cb
leaq 0x279a(%rip), %rdx      # 0x1d1aa
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x5eef
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x584a
movl %eax, %ebp
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x54e9
testl %ebp, %ebp
jne 0x1aab7
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x582a
leaq 0x275f(%rip), %rdx      # 0x1d1b0
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x60cb
movq %rbx, %rdi
movq %r15, %rsi
callq 0x5cb1
leaq 0x273a(%rip), %rdx      # 0x1d1aa
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x60cb
movq %r15, %rdi
movl $0x2e, %esi
callq 0x4190
leaq 0x1(%rax), %rdx
testq %rax, %rax
cmoveq %r15, %rdx
subq %r15, %rdx
movq %rbx, %rdi
movq %r15, %rsi
callq 0x5c5a
leaq 0x2709(%rip), %rdx      # 0x1d1b3
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x60cb
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x582a
movq %rsp, %rdx
movq %rbx, %rdi
movl $0x1, %esi
callq 0x6851
testl %eax, %eax
je 0x1aaff
leaq 0x1f8c(%rip), %rsi      # 0x1ca6b
movq %rsp, %rdx
movq %rbx, %rdi
callq 0x69ca
testl %eax, %eax
je 0x1aaff
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x5884
testl %eax, %eax
je 0x1ab10
leaq 0x26b6(%rip), %rsi      # 0x1d1bc
movq %rbx, %rdi
xorl %eax, %eax
callq 0x108d7
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x582a
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x628a
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x54e9
cmpl $0x2, %r14d
jl 0x1ab80
negl %r14d
movl $0x2, %r15d
movq %rbx, %rdi
movl %r15d, %esi
callq 0x582a
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x582a
movq %rbx, %rdi
movl $0x1, %esi
xorl %edx, %edx
callq 0x6305
leal (%r14,%r15), %eax
incl %eax
movl %r15d, %ecx
incl %ecx
movl %ecx, %r15d
cmpl $0x1, %eax
jne 0x1ab46
xorl %eax, %eax
addq $0x78, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq