// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x58, %rsp
movq %rdi, 0x50(%rsp)
cmpq $0x0, 0x50(%rsp)
jne 0xad0d9
movq 0x106f30(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0xb0fb4(%rip), %rsi     # 0x15e066
leaq 0xbdd45(%rip), %rdx     # 0x16adfe
leaq 0xc68b1(%rip), %rcx     # 0x173971
leaq 0xc6554(%rip), %r8      # 0x17361b
movl $0x33, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xad0db
movq 0x50(%rsp), %rdi
movl $0x1, %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x558e0
movq %rax, 0x28(%rsp)
movq 0x50(%rsp), %rdi
movl $0x2, %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x558e0
movq %rax, 0x20(%rsp)
movq 0x50(%rsp), %rdi
movl $0x3, %esi
callq 0x55c40
movq %rax, 0x40(%rsp)
movq 0x50(%rsp), %rdi
movl $0x4, %esi
callq 0x55c40
movq %rax, 0x38(%rsp)
movb $0x1, %al
cmpq $0x0, 0x40(%rsp)
movb %al, 0x7(%rsp)
ja 0xad161
movq 0x50(%rsp), %rdi
movl $0x3, %esi
leaq 0xc6834(%rip), %rdx     # 0x173986
callq 0x55420
cmpl $0x0, %eax
setne %al
movb %al, 0x7(%rsp)
movb 0x7(%rsp), %al
movb $0x1, %al
cmpq $0x0, 0x38(%rsp)
movb %al, 0x6(%rsp)
ja 0xad193
movq 0x50(%rsp), %rdi
movl $0x4, %esi
leaq 0xc6802(%rip), %rdx     # 0x173986
callq 0x55420
cmpl $0x0, %eax
setne %al
movb %al, 0x6(%rsp)
movb 0x6(%rsp), %al
movq 0x40(%rsp), %rcx
movb $0x1, %al
cmpq 0x38(%rsp), %rcx
movb %al, 0x5(%rsp)
jbe 0xad1c9
movq 0x50(%rsp), %rdi
movl $0x3, %esi
leaq 0xc67d8(%rip), %rdx     # 0x173992
callq 0x55420
cmpl $0x0, %eax
setne %al
movb %al, 0x5(%rsp)
movb 0x5(%rsp), %al
movq 0x50(%rsp), %rdi
movl $0x5, %esi
leaq 0x10(%rsp), %rdx
callq 0x558e0
movq %rax, 0x18(%rsp)
movb $0x1, %al
cmpq $0x1, 0x10(%rsp)
movb %al, 0x4(%rsp)
je 0xad214
movq 0x50(%rsp), %rdi
movl $0x5, %esi
leaq 0xc679f(%rip), %rdx     # 0x1739a4
callq 0x55420
cmpl $0x0, %eax
setne %al
movb %al, 0x4(%rsp)
movb 0x4(%rsp), %al
movq 0x18(%rsp), %rax
movsbl (%rax), %edi
callq 0x1b830
movl %eax, %ecx
movl %ecx, 0x34(%rsp)
movb $0x1, %al
cmpl $0x4, %ecx
movb %al, 0x3(%rsp)
jne 0xad256
movq 0x50(%rsp), %rdi
movl $0x5, %esi
leaq 0xc677e(%rip), %rdx     # 0x1739c5
callq 0x55420
cmpl $0x0, %eax
setne %al
movb %al, 0x3(%rsp)
movb 0x3(%rsp), %al
movq 0x50(%rsp), %rdi
movl $0x8, %esi
callq 0x53950
movq %rax, 0x48(%rsp)
movq 0x28(%rsp), %rdi
callq 0x18f70
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x40(%rsp), %rdx
movq 0x38(%rsp), %rcx
movl 0x34(%rsp), %r8d
callq 0x20580
movq %rax, %rcx
movq 0x48(%rsp), %rax
movq %rcx, (%rax)
movq 0x8(%rsp), %rdi
callq 0x1afc0
movq 0x48(%rsp), %rax
cmpq $0x0, (%rax)
jne 0xad2f3
movq 0x106d16(%rip), %rax    # 0x1b3fd8
movq (%rax), %rdi
leaq 0xb0d9a(%rip), %rsi     # 0x15e066
leaq 0xc6701(%rip), %rdx     # 0x1739d4
leaq 0xc6697(%rip), %rcx     # 0x173971
leaq 0xc633a(%rip), %r8      # 0x17361b
movl $0x45, %r9d
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0xad2f5
movq 0x50(%rsp), %rdi
movl $0xffffd8f0, %esi       # imm = 0xFFFFD8F0
leaq 0xc6331(%rip), %rdx     # 0x173637
callq 0x51640
movq 0x50(%rsp), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x523f0
movl $0x1, %eax
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)