// File: /workspace/github_c_makefile_star2_O1/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, %rbx
movq %rcx, %r15
movl %edx, %r12d
movq %rsi, %r14
movl %edi, %ebp
testq %r8, %r8
je 0xad189
movq %rbx, %rdi
callq 0x101a9a
testb %al, %al
jne 0xad29f
testq %r15, %r15
je 0xad29a
subl %r12d, %ebp
movslq %r12d, %rax
leaq (%r14,%rax,8), %rsi
movl %ebp, %edi
callq 0x14d00b
movq %rax, %r14
movq %rax, %rdi
callq 0x14ce4e
movq (%r15), %rdi
callq 0x18bace
movb $0x1, %bpl
testb %al, %al
je 0xad1e1
movq (%r15), %rdi
movq %rbx, %rsi
callq 0x18baf7
xorl %r12d, %r12d
testq %rax, %rax
movq %rax, (%rsp)
je 0xad1ee
movq %r14, %rdi
movq %rax, %rsi
callq 0x14ce76
jmp 0xad1f6
movq $0x0, (%rsp)
xorl %r12d, %r12d
jmp 0xad1f6
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
xorl %ebp, %ebp
movq 0x8(%r15), %rdi
callq 0x18e712
testb %al, %al
je 0xad237
movq 0x8(%r15), %rdi
movq %rbx, %rsi
callq 0x18e72a
movq %rax, %r13
testq %rax, %rax
sete %al
xorb $0x1, %bpl
movl $0xffffffff, %r12d      # imm = 0xFFFFFFFF
orb %al, %bpl
jne 0xad23a
movq %r14, %rdi
movq %r13, %rsi
callq 0x14cead
xorl %r12d, %r12d
jmp 0xad23a
xorl %r13d, %r13d
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
testl %r12d, %r12d
jne 0xad260
cmpb $0x1, 0x10(%r15)
jne 0xad253
movq %r14, %rdi
callq 0x14cfac
movq %r14, %rdi
movq %rbx, %rsi
callq 0x16adca
movl %eax, %ebp
testl %ebp, %ebp
jne 0xad270
leaq 0x2a9e52(%rip), %rdi    # 0x3570bd
callq 0x17bd0
movq %r14, %rdi
callq 0x16ac6e
movq (%rsp), %rdi
callq 0x18b883
movq %r13, %rdi
callq 0x18e605
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1b9f5
callq 0x1b9be