// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/gtlua/genome_node_lua.c
// Function: feature_node_lua_new
static int feature_node_lua_new(lua_State *L)
{
  GtGenomeNode **gf;
  GtUword startpos, endpos;
  GtStrand strand;
  const char *seqid, *type, *strand_str;
  size_t length;
  GtStr *seqid_str;
  gt_assert(L);
  /* get/check parameters */
  seqid = luaL_checkstring(L, 1);
  type = luaL_checkstring(L, 2);
  startpos = luaL_checklong(L, 3);
  endpos   = luaL_checklong(L, 4);
  luaL_argcheck(L, startpos > 0, 3, "must be > 0");
  luaL_argcheck(L, endpos > 0, 4, "must be > 0");
  luaL_argcheck(L, startpos <= endpos, 3, "must be <= endpos");
  strand_str = luaL_checklstring(L, 5, &length);
  luaL_argcheck(L, length == 1, 5, "strand string must have length 1");
  luaL_argcheck(L, (strand = gt_strand_get(strand_str[0])) !=
                    GT_NUM_OF_STRAND_TYPES, 5, "invalid strand");
  /* construct object */
  gf = lua_newuserdata(L, sizeof (GtGenomeNode*));
  seqid_str = gt_str_new_cstr(seqid);
  *gf = gt_feature_node_new(seqid_str, type, startpos, endpos, strand);
  gt_str_delete(seqid_str);
  gt_assert(*gf);
  luaL_getmetatable(L, GENOME_NODE_METATABLE);
  lua_setmetatable(L, -2);
  return 1;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
testq %rdi, %rdi
je 0x68fba
movq %rdi, %rbx
pushq $0x1
popq %rsi
xorl %edx, %edx
callq 0x3adee
movq %rax, %r15
pushq $0x2
popq %rsi
movq %rbx, %rdi
xorl %edx, %edx
callq 0x3adee
movq %rax, 0x8(%rsp)
pushq $0x3
popq %rsi
movq %rbx, %rdi
callq 0x3b001
movq %rax, %r12
pushq $0x4
popq %rsi
movq %rbx, %rdi
callq 0x3b001
movq %rax, %r13
testq %r12, %r12
jne 0x68ecb
leaq 0x75c16(%rip), %rdx     # 0xdead6
pushq $0x3
popq %rsi
movq %rbx, %rdi
callq 0x3ab1c
testq %r13, %r13
jne 0x68ee2
leaq 0x75bff(%rip), %rdx     # 0xdead6
pushq $0x4
popq %rsi
movq %rbx, %rdi
callq 0x3ab1c
cmpq %r13, %r12
jbe 0x68ef9
leaq 0x75bf4(%rip), %rdx     # 0xdeae2
pushq $0x3
popq %rsi
movq %rbx, %rdi
callq 0x3ab1c
pushq $0x5
popq %rsi
leaq 0x10(%rsp), %r14
movq %rbx, %rdi
movq %r14, %rdx
callq 0x3adee
movq %rax, %rbp
cmpq $0x1, (%r14)
je 0x68f27
leaq 0x75bd8(%rip), %rdx     # 0xdeaf4
pushq $0x5
popq %rsi
movq %rbx, %rdi
callq 0x3ab1c
movsbl (%rbp), %edi
callq 0x158a4
movl %eax, %ebp
cmpl $0x4, %eax
jne 0x68f49
leaq 0x75bd7(%rip), %rdx     # 0xdeb15
pushq $0x5
popq %rsi
movq %rbx, %rdi
callq 0x3ab1c
pushq $0x8
popq %rsi
movq %rbx, %rdi
callq 0x39c01
movq %rax, %r14
movq %r15, %rdi
callq 0x13da9
movq %rax, %r15
movq %rax, %rdi
movq 0x8(%rsp), %rsi
movq %r12, %rdx
movq %r13, %rcx
movl %ebp, %r8d
callq 0x18cbb
movq %rax, (%r14)
movq %r15, %rdi
callq 0x152db
cmpq $0x0, (%r14)
je 0x68fe4
leaq 0x757f7(%rip), %rdx     # 0xde787
movq %rbx, %rdi
movl $0xffffd8f0, %esi       # imm = 0xFFFFD8F0
callq 0x38a63
pushq $-0x2
popq %rsi
movq %rbx, %rdi
callq 0x3914f
pushq $0x1
popq %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0xc4ff7(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x6109b(%rip), %rsi     # 0xca066
leaq 0x6da24(%rip), %rdx     # 0xd69f6
leaq 0x75ae8(%rip), %rcx     # 0xdeac1
leaq 0x7578b(%rip), %r8      # 0xde76b
pushq $0x33
jmp 0x6900c
movq 0xc4fcd(%rip), %rax     # 0x12dfb8
movq (%rax), %rdi
leaq 0x61071(%rip), %rsi     # 0xca066
leaq 0x75b28(%rip), %rdx     # 0xdeb24
leaq 0x75abe(%rip), %rcx     # 0xdeac1
leaq 0x75761(%rip), %r8      # 0xde76b
pushq $0x45
popq %r9
xorl %eax, %eax
callq 0xb8c0
callq 0xb300