// File: /workspace/github_c_makefile_star2_O0/bhk[P]tooltree/lua/../opensource/lua-5.2.3/src/loadlib.c
// Function: luaopen_package
LUAMOD_API int luaopen_package (lua_State *L) {
  /* create table CLIBS to keep track of loaded C libraries */
  luaL_getsubtable(L, LUA_REGISTRYINDEX, CLIBS);
  lua_createtable(L, 0, 1);  /* metatable for CLIBS */
  lua_pushcfunction(L, gctm);
  lua_setfield(L, -2, "__gc");  /* set finalizer for CLIBS table */
  lua_setmetatable(L, -2);
  /* create `package' table */
  luaL_newlib(L, pk_funcs);
  createsearcherstable(L);
#if defined(LUA_COMPAT_LOADERS)
  lua_pushvalue(L, -1);  /* make a copy of 'searchers' table */
  lua_setfield(L, -3, "loaders");  /* put it in field `loaders' */
#endif
  lua_setfield(L, -2, "searchers");  /* put it in field 'searchers' */
  /* set field 'path' */
  setpath(L, "path", LUA_PATHVERSION, LUA_PATH, LUA_PATH_DEFAULT);
  /* set field 'cpath' */
  setpath(L, "cpath", LUA_CPATHVERSION, LUA_CPATH, LUA_CPATH_DEFAULT);
  /* store config information */
  lua_pushliteral(L, LUA_DIRSEP "\n" LUA_PATH_SEP "\n" LUA_PATH_MARK "\n"
                     LUA_EXEC_DIR "\n" LUA_IGMARK "\n");
  lua_setfield(L, -2, "config");
  /* set field `loaded' */
  luaL_getsubtable(L, LUA_REGISTRYINDEX, "_LOADED");
  lua_setfield(L, -2, "loaded");
  /* set field `preload' */
  luaL_getsubtable(L, LUA_REGISTRYINDEX, "_PRELOAD");
  lua_setfield(L, -2, "preload");
  lua_pushglobaltable(L);
  lua_pushvalue(L, -2);  /* set 'package' as upvalue for next lib */
  luaL_setfuncs(L, ll_funcs, 1);  /* open lib into global table */
  lua_pop(L, 1);  /* pop global table */
  return 1;  /* return 'package' table */
}

// Assembly:
pushq %rax
movq %rdi, (%rsp)
movq (%rsp), %rdi
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
leaq 0x1dd94(%rip), %rdx     # 0x36029
callq 0xdf60
movq (%rsp), %rdi
xorl %esi, %esi
movl $0x1, %edx
callq 0xa780
movq (%rsp), %rdi
leaq 0x18b(%rip), %rsi       # 0x18440
xorl %edx, %edx
callq 0xa1e0
movq (%rsp), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
leaq 0x1dbcd(%rip), %rdx     # 0x35e99
callq 0xaad0
movq (%rsp), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0xae30
movq (%rsp), %rdi
xorl %esi, %esi
movl $0x2, %edx
callq 0xa780
movq (%rsp), %rdi
leaq 0x28026(%rip), %rsi     # 0x40320
xorl %edx, %edx
callq 0xdd90
movq (%rsp), %rdi
callq 0x184b0
movq (%rsp), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
leaq 0x1dd16(%rip), %rdx     # 0x36030
callq 0xaad0
movq (%rsp), %rdi
leaq 0x1ddb1(%rip), %rsi     # 0x360db
leaq 0x1dd09(%rip), %rdx     # 0x3603a
leaq 0x1dd0f(%rip), %rcx     # 0x36047
leaq 0x1dd11(%rip), %r8      # 0x36050
callq 0x18540
movq (%rsp), %rdi
leaq 0x1dd8b(%rip), %rsi     # 0x360da
leaq 0x1dd8a(%rip), %rdx     # 0x360e0
leaq 0x1dd91(%rip), %rcx     # 0x360ee
leaq 0x1dd94(%rip), %r8      # 0x360f8
callq 0x18540
movq (%rsp), %rdi
leaq 0x1ddc9(%rip), %rsi     # 0x3613d
movl $0xa, %edx
callq 0x9f40
movq (%rsp), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
leaq 0x1ddba(%rip), %rdx     # 0x36148
callq 0xaad0
movq (%rsp), %rdi
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
leaq 0x1d21b(%rip), %rdx     # 0x355be
callq 0xdf60
movq (%rsp), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
leaq 0x1dd97(%rip), %rdx     # 0x3614f
callq 0xaad0
movq (%rsp), %rdi
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
leaq 0x1d8cc(%rip), %rdx     # 0x35c99
callq 0xdf60
movq (%rsp), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
leaq 0x1dd74(%rip), %rdx     # 0x36156
callq 0xaad0
movq (%rsp), %rdi
movl $0xfff0b9d8, %esi       # imm = 0xFFF0B9D8
movl $0x2, %edx
callq 0xa660
movq (%rsp), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x92e0
movq (%rsp), %rdi
leaq 0x27f3d(%rip), %rsi     # 0x40350
movl $0x1, %edx
callq 0xdd90
movq (%rsp), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x8e50
movl $0x1, %eax
popq %rcx
retq
nopw %cs:(%rax,%rax)