// File: /workspace/github_c_makefile_star2_O1/tylerneylon[P]APIsWithLua/lua/loadlib.c
// Function: ll_require
static int ll_require (lua_State *L) {
  const char *name = luaL_checkstring(L, 1);
  lua_settop(L, 1);  /* _LOADED table will be at index 2 */
  lua_getfield(L, LUA_REGISTRYINDEX, "_LOADED");
  lua_getfield(L, 2, name);  /* _LOADED[name] */
  if (lua_toboolean(L, -1))  /* is it there? */
    return 1;  /* package is already loaded */
  /* else must load package */
  lua_pop(L, 1);  /* remove 'getfield' result */
  findloader(L, name);
  lua_pushstring(L, name);  /* pass name as argument to module loader */
  lua_insert(L, -2);  /* name is 1st argument (before search data) */
  lua_call(L, 2, 1);  /* run loader to load module */
  if (!lua_isnil(L, -1))  /* non-nil return? */
    lua_setfield(L, 2, name);  /* _LOADED[name] = returned value */
  if (lua_getfield(L, 2, name) == LUA_TNIL) {   /* module set no 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 %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x2020, %rsp           # imm = 0x2020
movq %rdi, %rbx
movl $0x1, %esi
xorl %edx, %edx
callq 0x14535
movq %rax, %r14
movq %rbx, %rdi
movl $0x1, %esi
callq 0x5d51
leaq 0x1c0d(%rip), %rdx      # 0x22319
movq %rbx, %rdi
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
callq 0x6777
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %rdx
callq 0x6777
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x6223
testl %eax, %eax
jne 0x208d9
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x5d51
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x149f7
leaq 0x3470(%rip), %rdx      # 0x23bcd
movq %rbx, %rdi
movl $0xfff0b9d7, %esi       # imm = 0xFFF0B9D7
callq 0x6777
cmpl $0x5, %eax
je 0x20780
leaq 0x3565(%rip), %rsi      # 0x23cdb
movq %rbx, %rdi
xorl %eax, %eax
callq 0x13f8e
movl $0x1, %r15d
movq %rsp, %r12
leaq 0x356f(%rip), %r13      # 0x23cff
movq %rbx, %rdi
movl $0x3, %esi
movq %r15, %rdx
callq 0x684b
testl %eax, %eax
jne 0x207db
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x5d51
movq %r12, %rdi
callq 0x148ef
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %edx, %edx
callq 0x6249
movq %rbx, %rdi
movq %r13, %rsi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x13f8e
movq %rbx, %rdi
movq %r14, %rsi
callq 0x645b
movq %rbx, %rdi
movl $0x1, %esi
movl $0x2, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x6e22
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x5f7f
movq %rbx, %rdi
cmpl $0x6, %eax
je 0x20849
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x6008
movq %rbx, %rdi
testl %eax, %eax
je 0x20837
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x5d51
movq %r12, %rdi
callq 0x14958
jmp 0x20841
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x5d51
incq %r15
jmp 0x20790
movq %r14, %rsi
callq 0x645b
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl $0x1, %edx
callq 0x5da2
movq %rbx, %rdi
movl $0x2, %esi
movl $0x1, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x6e22
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x5f7f
testl %eax, %eax
je 0x2089b
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %rdx
callq 0x6b3f
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %rdx
callq 0x6777
testl %eax, %eax
jne 0x208d9
movq %rbx, %rdi
movl $0x1, %esi
callq 0x660e
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x5f5b
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %rdx
callq 0x6b3f
movl $0x1, %eax
addq $0x2020, %rsp           # imm = 0x2020
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nop