// File: /workspace/github_c_makefile_star2_O2/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 0x2d8c9
movq %r14, %rdi
callq 0x89eb7
testb %al, %al
jne 0x2d9ee
testq %r15, %r15
je 0x2d9c4
subl %ebp, %ebx
movslq %ebp, %rax
leaq (%r12,%rax,8), %rsi
movl %ebx, %edi
callq 0xdeebd
movq %rax, %rbx
movq %rax, %rdi
callq 0xdeadd
movq (%r15), %rdi
callq 0x12ac14
movb $0x1, %bpl
testb %al, %al
je 0x2d91c
movq (%r15), %rdi
movq %r14, %rsi
callq 0x12ac6e
testq %rax, %rax
je 0x2d921
movq %rax, %r12
movq %rbx, %rdi
movq %rax, %rsi
callq 0xdeb67
jmp 0x2d926
xorl %r12d, %r12d
jmp 0x2d926
xorl %r12d, %r12d
xorl %ebp, %ebp
movq 0x8(%r15), %rdi
callq 0x12e504
testb %al, %al
je 0x2d95e
movq 0x8(%r15), %rdi
movq %r14, %rsi
callq 0x12e54d
movq %rax, %r13
testq %rax, %rax
sete %al
xorb $0x1, %bpl
orb %al, %bpl
jne 0x2d988
movq %rbx, %rdi
movq %r13, %rsi
callq 0xdebcf
jmp 0x2d966
xorl %r13d, %r13d
testb %bpl, %bpl
je 0x2d988
cmpb $0x1, 0x10(%r15)
jne 0x2d975
movq %rbx, %rdi
callq 0xdedc5
movq %rbx, %rdi
movq %r14, %rsi
callq 0x102b93
testl %eax, %eax
je 0x2d98d
movl %eax, %ebp
jmp 0x2d99b
pushq $-0x1
popq %rbp
jmp 0x2d99b
leaq 0x2c06f9(%rip), %rdi    # 0x2ee08d
callq 0x17b60
xorl %ebp, %ebp
movq %rbx, %rdi
callq 0x10297b
movq %r12, %rdi
callq 0x12a832
movq %r13, %rdi
callq 0x12e3a7
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x40a59d(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b763e(%rip), %rsi    # 0x2e5013
leaq 0x31ac77(%rip), %rdx    # 0x348653
leaq 0x2c0692(%rip), %rcx    # 0x2ee075
leaq 0x2c0627(%rip), %r8     # 0x2ee011
pushq $0x57
jmp 0x2da16
movq 0x40a573(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b7614(%rip), %rsi    # 0x2e5013
leaq 0x2b77b9(%rip), %rdx    # 0x2e51bf
leaq 0x2c0668(%rip), %rcx    # 0x2ee075
leaq 0x2c05fd(%rip), %r8     # 0x2ee011
pushq $0x56
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390