// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/external/lua-5.1.5/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 0x5b1b3
movq %rax, %r14
movq 0x10(%rbx), %rdx
movq 0x18(%rbx), %rcx
leaq 0x10(%rcx), %rax
cmpq %rax, %rdx
jae 0x6b52c
movq %rdx, %rsi
movl $0x0, 0x8(%rdx)
addq $0x10, %rdx
cmpq %rcx, %rsi
jb 0x6b515
movq %rdx, 0x10(%rbx)
movq %rax, 0x10(%rbx)
leaq 0x826d6(%rip), %rdx     # 0xedc0d
movq %rbx, %rdi
movl $0xffffd8f0, %esi       # imm = 0xFFFFD8F0
callq 0x58b98
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %rdx
callq 0x58b98
movq 0x10(%rbx), %rax
movl -0x8(%rax), %edx
xorl %ecx, %ecx
cmpq $0x7, %rdx
ja 0x6b708
leaq 0x8205e(%rip), %rsi     # 0xed5cc
movslq (%rsi,%rdx,4), %rdi
addq %rsi, %rdi
jmpq *%rdi
cmpl $0x0, -0x10(%rax)
je 0x6b59c
cmpl $0x2, %edx
je 0x6b704
cmpl $0x7, %edx
jne 0x6b76f
movq -0x10(%rax), %rcx
addq $0x28, %rcx
jmp 0x6b708
leaq 0x826d4(%rip), %rdx     # 0xedc77
movq %rbx, %rdi
movl $0xffffd8ef, %esi       # imm = 0xFFFFD8EF
callq 0x58b98
movq 0x10(%rbx), %rax
leaq -0x10(%rax), %rcx
cmpq 0xe5a11(%rip), %rcx     # 0x150fd0
je 0x6b7ad
cmpl $0x5, -0x8(%rax)
jne 0x6b7ad
leaq 0x835a9(%rip), %rsi     # 0xeeb7f
movq %rbx, %rdi
xorl %edx, %edx
callq 0x58391
movl $0x1, %ebp
leaq 0x82124(%rip), %r15     # 0xed710
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl %ebp, %edx
callq 0x58cf6
movq 0x10(%rbx), %rax
leaq -0x10(%rax), %rcx
cmpq %r15, %rcx
je 0x6b612
cmpl $0x0, -0x8(%rax)
je 0x6b773
movq %rbx, %rdi
movq %r14, %rsi
callq 0x58568
movq 0x10(%rbx), %rsi
addq $-0x20, %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x594c2
movq 0x10(%rbx), %rcx
leaq -0x10(%rcx), %rax
cmpq %r15, %rax
je 0x6b655
cmpl $0x6, -0x8(%rcx)
je 0x6b66c
cmpq %r15, %rax
je 0x6b655
movl -0x8(%rcx), %ecx
addl $-0x5, %ecx
cmpl $-0x2, %ecx
jae 0x6b65d
movq %rax, 0x10(%rbx)
incl %ebp
jmp 0x6b5ec
movq %rbx, %rdi
movl $0x2, %esi
callq 0x59be2
jmp 0x6b659
leaq 0x82271(%rip), %r15     # 0xed8e4
movq %r15, (%rcx)
movl $0x2, 0x8(%rcx)
addq $0x10, 0x10(%rbx)
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %rdx
callq 0x59137
movq %rbx, %rdi
movq %r14, %rsi
callq 0x58568
movq 0x10(%rbx), %rsi
addq $-0x20, %rsi
movq %rbx, %rdi
movl $0x1, %edx
callq 0x594c2
movq 0x10(%rbx), %rax
leaq -0x10(%rax), %rcx
cmpq 0xe590f(%rip), %rcx     # 0x150fd0
je 0x6b6c9
cmpl $0x0, -0x8(%rax)
je 0x6b6d9
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %rdx
callq 0x59137
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %rdx
callq 0x58b98
movq 0x10(%rbx), %rax
movl -0x8(%rax), %ecx
cmpl $0x2, %ecx
je 0x6b728
cmpl $0x7, %ecx
jne 0x6b72e
movq -0x10(%rax), %rcx
addq $0x28, %rcx
jmp 0x6b730
movq -0x10(%rax), %rcx
leaq 0x821d5(%rip), %rax     # 0xed8e4
cmpq %rax, %rcx
je 0x6b799
movl $0x1, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
movq -0x10(%rax), %rcx
jmp 0x6b730
xorl %ecx, %ecx
cmpq %r15, %rcx
jne 0x6b718
movl $0x1, %ecx
movl %ecx, (%rax)
movl %ecx, 0x8(%rax)
movq 0x10(%rbx), %rax
leaq 0x10(%rax), %rcx
movq %rcx, 0x10(%rbx)
movq (%rax), %rcx
movq %rcx, 0x10(%rax)
movl 0x8(%rax), %ecx
movl %ecx, 0x18(%rax)
addq $0x10, 0x10(%rbx)
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %rdx
callq 0x59137
jmp 0x6b718
xorl %ecx, %ecx
jmp 0x6b708
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
xorl %edx, %edx
callq 0x58042
leaq 0x8348d(%rip), %rsi     # 0xeec16
movq %rbx, %rdi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x5af61
leaq 0x83429(%rip), %rsi     # 0xeebc9
movq %rbx, %rdi
movq %r14, %rdx
xorl %eax, %eax
callq 0x5af61
leaq 0x83440(%rip), %rsi     # 0xeebf4
movq %rbx, %rdi
xorl %eax, %eax
callq 0x5af61