// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/extended/script_filter.c
// Function: gt_script_filter_get_string
static const char *gt_script_filter_get_string(GtScriptFilter *script_filter,
                                              const char *name, GtError *err)
{
#ifndef NDEBUG
  int stack_size;
#endif
  gt_assert(script_filter && name);
  gt_error_check(err);

#ifndef NDEBUG
  stack_size = lua_gettop(script_filter->L);
#endif

  lua_getglobal(script_filter->L, name);
  if (lua_isnil(script_filter->L, -1)) {
    lua_pop(script_filter->L, 1);
    return gt_symbol("undefined");
  }
  /* execute callback if function is given */
  if (lua_isfunction(script_filter->L, -1))
  {
    int num_of_args = 0;
    if (lua_pcall(script_filter->L, num_of_args, 1, 0) != 0)
    {
      gt_error_set(err, "%s", lua_tostring(script_filter->L, -1));
      lua_pop(script_filter->L, 1);
      gt_assert(lua_gettop(script_filter->L) == stack_size);
      return NULL;
    }
  }

  if (lua_isnil(script_filter->L, -1) || !lua_isstring(script_filter->L, -1)) {
    lua_pop(script_filter->L, 1);
    gt_assert(lua_gettop(script_filter->L) == stack_size);
    gt_error_set(err, "script filter '%s': '%s' must return a string",
                 gt_str_get(script_filter->filename), name);
    return NULL;
  }

  /* retrieve string */
  return lua_tostring(script_filter->L, -1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x171b09
movq %rsi, %r15
testq %rsi, %rsi
je 0x171b09
movq %rdx, %r14
movq %rdi, %rbx
testq %rdx, %rdx
je 0x1719cd
movq %r14, %rdi
callq 0xfcc32
testb %al, %al
jne 0x171b0e
movq (%rbx), %rdi
callq 0x2235ac
movl %eax, %ebp
movq (%rbx), %rdi
movl $0xffffd8ee, %esi       # imm = 0xFFFFD8EE
movq %r15, %rdx
callq 0x224a06
movq (%rbx), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x223a4b
movq (%rbx), %rdi
testl %eax, %eax
je 0x171aa3
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x223a4b
cmpl $0x6, %eax
jne 0x171a68
movq (%rbx), %rdi
xorl %esi, %esi
movl $0x1, %edx
xorl %ecx, %ecx
callq 0x22537b
testl %eax, %eax
je 0x171a68
movq (%rbx), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %edx, %edx
callq 0x223ea8
leaq 0x257070(%rip), %rsi    # 0x3c8aa9
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0xfcb67
movq (%rbx), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x2235b9
movq (%rbx), %rdi
callq 0x2235ac
cmpl %ebp, %eax
je 0x171afc
callq 0x53808
movq (%rbx), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x223a4b
testl %eax, %eax
je 0x171ac3
movq (%rbx), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x223b1f
testl %eax, %eax
je 0x171ac3
movq (%rbx), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
xorl %edx, %edx
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x223ea8
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x2235b9
leaq 0x1eb888(%rip), %rdi    # 0x35d33c
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
jmp 0x11c5ff
movq (%rbx), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x2235b9
movq (%rbx), %rdi
callq 0x2235ac
cmpl %ebp, %eax
jne 0x171b13
movq 0x8(%rbx), %rdi
callq 0x11b0a1
leaq 0x220920(%rip), %rsi    # 0x39240c
movq %r14, %rdi
movq %rax, %rdx
movq %r15, %rcx
xorl %eax, %eax
callq 0xfcb67
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r14
popq %r15
popq %rbp
retq
callq 0x53796
callq 0x537cf
callq 0x53841