// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/script_filter.c
// Function: gt_script_filter_validate
bool gt_script_filter_validate(GtScriptFilter *script_filter, GtError *err)
{
  const char *result;

#ifndef NDEBUG
  GT_UNUSED int stack_size;
#endif
  gt_assert(script_filter);
  gt_error_check(err);

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

  result = gt_script_filter_get_name(script_filter, err);
  if (result == gt_symbol("undefined")) {
    gt_error_set(err, "metadata 'name' not found");
    return false;
  }
  result = gt_script_filter_get_description(script_filter, err);
  if (result == gt_symbol("undefined")) {
    gt_error_set(err, "metadata 'description' not found");
    return false;
  }
  result = gt_script_filter_get_short_description(script_filter, err);
  if (result == gt_symbol("undefined")) {
    gt_error_set(err, "metadata 'short_descr' not found");
    return false;
  }
  result = gt_script_filter_get_author(script_filter, err);
  if (result == gt_symbol("undefined")) {
    gt_error_set(err, "metadata 'author' not found");
    return false;
  }
  result = gt_script_filter_get_email(script_filter, err);
  if (result == gt_symbol("undefined")) {
    gt_error_set(err, "metadata 'email' not found");
    return false;
  }
  result = gt_script_filter_get_version(script_filter, err);
  if (result == gt_symbol("undefined")) {
    gt_error_set(err, "metadata 'version' not found");
    return false;
  }

  lua_getglobal(script_filter->L, "filter");
  if (lua_isnil(script_filter->L, -1)) {
    gt_error_set(err, "function 'filter' is not defined");
    lua_pop(script_filter->L, 1);
    return false;
  }
  return true;
}

// Assembly:
subq $0x58, %rsp
movq %rdi, 0x48(%rsp)
movq %rsi, 0x40(%rsp)
cmpq $0x0, 0x48(%rsp)
jne 0x1d226e
movq 0x469d63(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x343dcc(%rip), %rsi    # 0x516013
leaq 0x392824(%rip), %rdx    # 0x564a72
leaq 0x39282b(%rip), %rcx    # 0x564a80
leaq 0x3927e0(%rip), %r8     # 0x564a3c
movl $0xdf, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1d2270
jmp 0x1d2272
cmpq $0x0, 0x40(%rsp)
je 0x1d22c2
movq 0x40(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x1d228a
jmp 0x1d22c2
movq 0x469d0f(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x343d78(%rip), %rsi    # 0x516013
leaq 0x343f1d(%rip), %rdx    # 0x5161bf
leaq 0x3927d7(%rip), %rcx    # 0x564a80
leaq 0x39278c(%rip), %r8     # 0x564a3c
movl $0xe0, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1d22c4
movq 0x48(%rsp), %rax
movq (%rax), %rdi
callq 0x333eb0
movl %eax, 0x34(%rsp)
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x1d1e00
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
leaq 0x35b94b(%rip), %rdi    # 0x52dc45
callq 0x120930
movq %rax, %rcx
movq 0x28(%rsp), %rax
cmpq %rcx, %rax
jne 0x1d2329
movq 0x40(%rsp), %rdi
leaq 0x392782(%rip), %rsi    # 0x564a9a
movb $0x0, %al
callq 0xd88c0
movb $0x0, 0x57(%rsp)
jmp 0x1d2529
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x1d2130
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x20(%rsp)
leaq 0x35b8f7(%rip), %rdi    # 0x52dc45
callq 0x120930
movq %rax, %rcx
movq 0x20(%rsp), %rax
cmpq %rcx, %rax
jne 0x1d237d
movq 0x40(%rsp), %rdi
leaq 0x392748(%rip), %rsi    # 0x564ab4
movb $0x0, %al
callq 0xd88c0
movb $0x0, 0x57(%rsp)
jmp 0x1d2529
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x1d2160
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x18(%rsp)
leaq 0x35b8a3(%rip), %rdi    # 0x52dc45
callq 0x120930
movq %rax, %rcx
movq 0x18(%rsp), %rax
cmpq %rcx, %rax
jne 0x1d23d1
movq 0x40(%rsp), %rdi
leaq 0x392715(%rip), %rsi    # 0x564ad5
movb $0x0, %al
callq 0xd88c0
movb $0x0, 0x57(%rsp)
jmp 0x1d2529
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x1d2190
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x10(%rsp)
leaq 0x35b84f(%rip), %rdi    # 0x52dc45
callq 0x120930
movq %rax, %rcx
movq 0x10(%rsp), %rax
cmpq %rcx, %rax
jne 0x1d2425
movq 0x40(%rsp), %rdi
leaq 0x3926e2(%rip), %rsi    # 0x564af6
movb $0x0, %al
callq 0xd88c0
movb $0x0, 0x57(%rsp)
jmp 0x1d2529
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x1d21c0
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x8(%rsp)
leaq 0x35b7fb(%rip), %rdi    # 0x52dc45
callq 0x120930
movq %rax, %rcx
movq 0x8(%rsp), %rax
cmpq %rcx, %rax
jne 0x1d2479
movq 0x40(%rsp), %rdi
leaq 0x3926aa(%rip), %rsi    # 0x564b12
movb $0x0, %al
callq 0xd88c0
movb $0x0, 0x57(%rsp)
jmp 0x1d2529
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x1d21f0
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
movq %rax, (%rsp)
leaq 0x35b7a8(%rip), %rdi    # 0x52dc45
callq 0x120930
movq %rax, %rcx
movq (%rsp), %rax
cmpq %rcx, %rax
jne 0x1d24c8
movq 0x40(%rsp), %rdi
leaq 0x392673(%rip), %rsi    # 0x564b2d
movb $0x0, %al
callq 0xd88c0
movb $0x0, 0x57(%rsp)
jmp 0x1d2529
movq 0x48(%rsp), %rax
movq (%rax), %rdi
movl $0xffffd8ee, %esi       # imm = 0xFFFFD8EE
leaq 0x357374(%rip), %rdx    # 0x529850
callq 0x336410
movq 0x48(%rsp), %rax
movq (%rax), %rdi
movl $0xffffffff, %esi       # imm = 0xFFFFFFFF
callq 0x3345d0
cmpl $0x0, %eax
jne 0x1d2524
movq 0x40(%rsp), %rdi
leaq 0x392646(%rip), %rsi    # 0x564b4a
movb $0x0, %al
callq 0xd88c0
movq 0x48(%rsp), %rax
movq (%rax), %rdi
movl $0xfffffffe, %esi       # imm = 0xFFFFFFFE
callq 0x333ed0
movb $0x0, 0x57(%rsp)
jmp 0x1d2529
movb $0x1, 0x57(%rsp)
movb 0x57(%rsp), %al
andb $0x1, %al
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)