// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/gtlua/encseq_lua.c
// Function: gt_lua_open_encseq
int gt_lua_open_encseq(lua_State *L)
{
#ifndef NDEBUG
  int stack_size;
#endif
  gt_assert(L);
#ifndef NDEBUG
  stack_size = lua_gettop(L);
#endif
  luaL_newmetatable(L, ENCSEQ_METATABLE);
  lua_pushvalue(L, -1); /* duplicate the metatable */
  lua_setfield(L, -2, "__index");
  lua_pushstring(L, "__gc");
  lua_pushcfunction(L, encseq_lua_delete);
  lua_settable(L, -3);
  luaL_register(L, NULL, encseq_lib_m);
  gt_lua_export_metatable(L, ENCSEQ_METATABLE);

  luaL_newmetatable(L, ENCSEQ_BUFFER_METATABLE);
  lua_pushcfunction(L, encseq_lua_index_buffer);
  lua_setfield(L, -2, "__index");
  lua_pushstring(L, "__gc");
  lua_pushcfunction(L, encseq_lua_delete_buffer);
  lua_settable(L, -3);
  lua_pop(L, 1);

  luaL_newmetatable(L, ENCSEQ_READER_METATABLE);
  lua_pushvalue(L, -1); /* duplicate the metatable */
  lua_setfield(L, -2, "__index");
  lua_pushstring(L, "__gc");
  lua_pushcfunction(L, encseq_reader_lua_delete);
  lua_settable(L, -3);
  luaL_register(L, NULL, encseq_reader_lib_m);
  gt_lua_export_metatable(L, ENCSEQ_READER_METATABLE);

  luaL_newmetatable(L, ENCSEQ_ENCODER_METATABLE);
  lua_pushvalue(L, -1); /* duplicate the metatable */
  lua_setfield(L, -2, "__index");
  lua_pushstring(L, "__gc");
  lua_pushcfunction(L, encseq_encoder_lua_delete);
  lua_settable(L, -3);
  luaL_register(L, NULL, encseq_encoder_lib_m);
  gt_lua_export_metatable(L, ENCSEQ_ENCODER_METATABLE);

  luaL_newmetatable(L, ENCSEQ_LOADER_METATABLE);
  lua_pushvalue(L, -1); /* duplicate the metatable */
  lua_setfield(L, -2, "__index");
  lua_pushstring(L, "__gc");
  lua_pushcfunction(L, encseq_loader_lua_delete);
  lua_settable(L, -3);
  luaL_register(L, NULL, encseq_loader_lib_m);
  gt_lua_export_metatable(L, ENCSEQ_LOADER_METATABLE);

  luaL_newmetatable(L, ENCSEQ_BUILDER_METATABLE);
  lua_pushvalue(L, -1); /* duplicate the metatable */
  lua_setfield(L, -2, "__index");
  lua_pushstring(L, "__gc");
  lua_pushcfunction(L, encseq_builder_lua_delete);
  lua_settable(L, -3);
  luaL_register(L, NULL, encseq_builder_lib_m);
  gt_lua_export_metatable(L, ENCSEQ_BUILDER_METATABLE);

  luaL_register(L, "gt", encseq_lib_f);
  lua_pop(L, 1);
  gt_assert(lua_gettop(L) == stack_size);
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x90fa2
movq %rdi, %rbx
callq 0x377ed
movl %eax, 0x4(%rsp)
leaq 0x55c77(%rip), %r15     # 0xe694a
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3ae16
pushq $-0x1
popq %rsi
movq %rbx, %rdi
callq 0x37b39
leaq 0x4658e(%rip), %r12     # 0xd727e
pushq $-0x2
popq %r14
movq %rbx, %rdi
movl %r14d, %esi
movq %r12, %rdx
callq 0x38f41
leaq 0x45ec9(%rip), %r13     # 0xd6bd2
movq %rbx, %rdi
movq %r13, %rsi
callq 0x38431
leaq 0x2ed(%rip), %rsi       # 0x91008
movq %rbx, %rdi
xorl %edx, %edx
callq 0x38814
pushq $-0x3
popq %rbp
movq %rbx, %rdi
movl %ebp, %esi
callq 0x38d5e
leaq 0x9c4d7(%rip), %rdx     # 0x12d210
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3b11b
movq %rbx, %rdi
movq %r15, %rsi
callq 0x88975
leaq 0x55c08(%rip), %rsi     # 0xe695d
movq %rbx, %rdi
callq 0x3ae16
leaq 0x2c0(%rip), %rsi       # 0x91024
movq %rbx, %rdi
xorl %edx, %edx
callq 0x38814
movq %rbx, %rdi
movl %r14d, %esi
movq %r12, %rdx
callq 0x38f41
movq %rbx, %rdi
movq %r13, %rsi
callq 0x38431
leaq 0x312(%rip), %rsi       # 0x910a0
movq %rbx, %rdi
xorl %edx, %edx
callq 0x38814
movq %rbx, %rdi
movl %ebp, %esi
callq 0x38d5e
movq %rbx, %rdi
movl %r14d, %esi
callq 0x377fa
leaq 0x55bc3(%rip), %r15     # 0xe6977
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3ae16
movq %rbx, %rdi
pushq $-0x1
popq %rsi
callq 0x37b39
movq %rbx, %rdi
movl %r14d, %esi
movq %r12, %rdx
callq 0x38f41
movq %rbx, %rdi
movq %r13, %rsi
callq 0x38431
leaq 0x300(%rip), %rsi       # 0x910ea
movq %rbx, %rdi
xorl %edx, %edx
callq 0x38814
movq %rbx, %rdi
movl %ebp, %esi
callq 0x38d5e
leaq 0x9c57b(%rip), %rdx     # 0x12d380
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3b11b
movq %rbx, %rdi
movq %r15, %rsi
callq 0x88975
leaq 0x55b70(%rip), %r15     # 0xe6991
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3ae16
movq %rbx, %rdi
pushq $-0x1
popq %rsi
callq 0x37b39
movq %rbx, %rdi
movl %r14d, %esi
movq %r12, %rdx
callq 0x38f41
movq %rbx, %rdi
movq %r13, %rsi
callq 0x38431
leaq 0x2af(%rip), %rsi       # 0x91106
movq %rbx, %rdi
xorl %edx, %edx
callq 0x38814
movq %rbx, %rdi
movl %ebp, %esi
callq 0x38d5e
leaq 0x9c54e(%rip), %rdx     # 0x12d3c0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3b11b
movq %rbx, %rdi
movq %r15, %rsi
callq 0x88975
leaq 0x55b1e(%rip), %r15     # 0xe69ac
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3ae16
movq %rbx, %rdi
pushq $-0x1
popq %rsi
callq 0x37b39
movq %rbx, %rdi
movl %r14d, %esi
movq %r12, %rdx
callq 0x38f41
movq %rbx, %rdi
movq %r13, %rsi
callq 0x38431
leaq 0x25e(%rip), %rsi       # 0x91122
movq %rbx, %rdi
xorl %edx, %edx
callq 0x38814
movq %rbx, %rdi
movl %ebp, %esi
callq 0x38d5e
leaq 0x9c5e1(%rip), %rdx     # 0x12d4c0
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3b11b
movq %rbx, %rdi
movq %r15, %rsi
callq 0x88975
leaq 0x55acb(%rip), %r15     # 0xe69c6
movq %rbx, %rdi
movq %r15, %rsi
callq 0x3ae16
movq %rbx, %rdi
pushq $-0x1
popq %rsi
callq 0x37b39
movq %rbx, %rdi
movl %r14d, %esi
movq %r12, %rdx
callq 0x38f41
movq %rbx, %rdi
movq %r13, %rsi
callq 0x38431
leaq 0x20d(%rip), %rsi       # 0x9113e
movq %rbx, %rdi
xorl %edx, %edx
callq 0x38814
movq %rbx, %rdi
movl %ebp, %esi
callq 0x38d5e
leaq 0x9c634(%rip), %rdx     # 0x12d580
movq %rbx, %rdi
xorl %esi, %esi
callq 0x3b11b
movq %rbx, %rdi
movq %r15, %rsi
callq 0x88975
leaq 0x5930f(%rip), %rsi     # 0xea277
leaq 0x9c6a1(%rip), %rdx     # 0x12d610
movq %rbx, %rdi
callq 0x3b11b
movq %rbx, %rdi
movl %r14d, %esi
callq 0x377fa
movq %rbx, %rdi
callq 0x377ed
cmpl 0x4(%rsp), %eax
jne 0x90fd0
pushq $0x1
popq %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x9d00f(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x390b3(%rip), %rsi     # 0xca066
leaq 0x45a3c(%rip), %rdx     # 0xd69f6
leaq 0x5595f(%rip), %rcx     # 0xe6920
leaq 0x5596b(%rip), %r8      # 0xe6933
movl $0x3d3, %r9d            # imm = 0x3D3
jmp 0x90ffc
movq 0x9cfe1(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x39085(%rip), %rsi     # 0xca066
leaq 0x4cdf3(%rip), %rdx     # 0xddddb
leaq 0x55931(%rip), %rcx     # 0xe6920
leaq 0x5593d(%rip), %r8      # 0xe6933
movl $0x40e, %r9d            # imm = 0x40E
xorl %eax, %eax
callq 0xb8c0
callq 0xb300