// File: /workspace/github_c_makefile_star2_O3/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 0x14fff
movq %rax, %r14
movq %rbx, %rdi
movl $0x1, %esi
callq 0x5d4d
leaq 0x1e8b(%rip), %rdx      # 0x233a9
movq %rbx, %rdi
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
callq 0x6895
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %rdx
callq 0x6895
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x6333
testl %eax, %eax
jne 0x216eb
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x5d4d
movq %rsp, %rsi
movq %rbx, %rdi
callq 0x154c8
leaq 0x371e(%rip), %rdx      # 0x24c8d
movq %rbx, %rdi
movl $0xfff0b9d7, %esi       # imm = 0xFFF0B9D7
callq 0x6895
cmpl $0x5, %eax
je 0x21592
leaq 0x3813(%rip), %rsi      # 0x24d9b
movq %rbx, %rdi
xorl %eax, %eax
callq 0x14a62
movl $0x1, %r15d
movq %rsp, %r12
leaq 0x381d(%rip), %r13      # 0x24dbf
movq %rbx, %rdi
movl $0x3, %esi
movq %r15, %rdx
callq 0x6970
testl %eax, %eax
jne 0x215ed
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x5d4d
movq %r12, %rdi
callq 0x153c0
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %edx, %edx
callq 0x6359
movq %rbx, %rdi
movq %r13, %rsi
movq %r14, %rdx
movq %rax, %rcx
xorl %eax, %eax
callq 0x14a62
movq %rbx, %rdi
movq %r14, %rsi
callq 0x656b
movq %rbx, %rdi
movl $0x1, %esi
movl $0x2, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x6f67
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x608f
movq %rbx, %rdi
cmpl $0x6, %eax
je 0x2165b
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x6111
movq %rbx, %rdi
testl %eax, %eax
je 0x21649
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x5d4d
movq %r12, %rdi
callq 0x15429
jmp 0x21653
movl $0xfffffffd, %esi       # imm = 0xFFFFFFFD
callq 0x5d4d
incq %r15
jmp 0x215a2
movq %r14, %rsi
callq 0x656b
movq %rbx, %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
movl $0x1, %edx
callq 0x5eb2
movq %rbx, %rdi
movl $0x2, %esi
movl $0x1, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
callq 0x6f67
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x608f
testl %eax, %eax
je 0x216ad
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %rdx
callq 0x6c66
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %rdx
callq 0x6895
testl %eax, %eax
jne 0x216eb
movq %rbx, %rdi
movl $0x1, %esi
callq 0x6725
movq %rbx, %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x606b
movq %rbx, %rdi
movl $0x2, %esi
movq %r14, %rdx
callq 0x6c66
movl $0x1, %eax
addq $0x2020, %rsp           # imm = 0x2020
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nopl (%rax)