// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/tools/gt_gff3validator.c
// Function: gt_gff3validator_runner
static int gt_gff3validator_runner(int argc, const char **argv, int parsed_args,
                                   void *tool_arguments, GtError *err)
{
  GFF3ValidatorArguments *arguments = tool_arguments;
  GtTypeChecker *type_checker = NULL;
  GtXRFChecker *xrf_checker = NULL;
  GtNodeStream *gff3_in_stream;
  int had_err = 0;

  gt_error_check(err);
  gt_assert(arguments);

  /* create a GFF3 input stream */
  gff3_in_stream = gt_gff3_in_stream_new_unsorted(argc - parsed_args,
                                                  argv + parsed_args);
  gt_gff3_in_stream_check_id_attributes((GtGFF3InStream*) gff3_in_stream);

  /* set different type checker if necessary */
  if (gt_typecheck_info_option_used(arguments->tci)) {
    type_checker = gt_typecheck_info_create_type_checker(arguments->tci, err);
    if (!type_checker)
      had_err = -1;
    if (!had_err)
      gt_gff3_in_stream_set_type_checker(gff3_in_stream, type_checker);
  }

  /* set XRF checker */
  if (gt_xrfcheck_info_option_used(arguments->xci)) {
    xrf_checker = gt_xrfcheck_info_create_xrf_checker(arguments->xci, err);
    if (!xrf_checker)
      had_err = -1;
    if (!had_err)
      gt_gff3_in_stream_set_xrf_checker(gff3_in_stream, xrf_checker);
  }
  /* enable strict mode (if necessary) */
  if (!had_err && arguments->strict)
    gt_gff3_in_stream_enable_strict_mode((GtGFF3InStream*) gff3_in_stream);

  /* pull the features through the stream and free them afterwards */
  if (!had_err)
    had_err = gt_node_stream_pull(gff3_in_stream, err);

  if (!had_err)
    printf("input is valid GFF3\n");

  /* free */
  gt_node_stream_delete(gff3_in_stream);
  gt_type_checker_delete(type_checker);
  gt_xrf_checker_delete(xrf_checker);

  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r14
movq %rcx, %r15
movl %edx, %ebp
movq %rsi, %r12
movl %edi, %ebx
testq %r8, %r8
je 0xaadcc
movq %r14, %rdi
callq 0xfcc32
testb %al, %al
jne 0xaaf03
testq %r15, %r15
je 0xaaefe
subl %ebp, %ebx
movslq %ebp, %rax
leaq (%r12,%rax,8), %rsi
movl %ebx, %edi
callq 0x145cdf
movq %rax, %rbx
movq %rax, %rdi
callq 0x145b22
movq (%r15), %rdi
callq 0x1833be
testb %al, %al
je 0xaae20
movq (%r15), %rdi
movq %r14, %rsi
callq 0x1833e7
testq %rax, %rax
je 0xaaea9
movq %rax, %r12
movq %rbx, %rdi
movq %rax, %rsi
callq 0x145b4a
jmp 0xaae23
xorl %r12d, %r12d
movq 0x8(%r15), %rdi
callq 0x1860ea
testb %al, %al
je 0xaae6e
movq %r12, (%rsp)
leaq 0x8(%r15), %rax
movb $0x1, %r12b
movq (%rax), %rdi
movq %r14, %rsi
callq 0x186102
movq %rax, %r13
testq %rax, %rax
sete %al
xorb $0x1, %r12b
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
orb %al, %r12b
jne 0xaae93
movq %rbx, %rdi
movq %r13, %rsi
callq 0x145b81
movq (%rsp), %r12
jmp 0xaae71
xorl %r13d, %r13d
cmpb $0x1, 0x10(%r15)
jne 0xaae80
movq %rbx, %rdi
callq 0x145c80
movq %rbx, %rdi
movq %r14, %rsi
callq 0x162f5d
testl %eax, %eax
je 0xaae99
movl %eax, %ebp
jmp 0xaaed5
movq (%rsp), %r12
jmp 0xaaed5
leaq 0x2a31ed(%rip), %rdi    # 0x34e08d
callq 0x17bd0
xorl %ebp, %ebp
jmp 0xaaed5
movq 0x8(%r15), %rdi
callq 0x1860ea
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
xorl %r12d, %r12d
testb %al, %al
je 0xaaed2
movq $0x0, (%rsp)
leaq 0x8(%r15), %rax
xorl %r12d, %r12d
jmp 0xaae3b
xorl %r13d, %r13d
movq %rbx, %rdi
callq 0x162dee
movq %r12, %rdi
callq 0x183173
movq %r13, %rdi
callq 0x185fde
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1b8f9
callq 0x1b8c2