// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x58, %rsp
movl %edi, 0x54(%rsp)
movq %rsi, 0x48(%rsp)
movl %edx, 0x44(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x30(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x28(%rsp)
movq $0x0, 0x20(%rsp)
movq $0x0, 0x18(%rsp)
movl $0x0, 0xc(%rsp)
cmpq $0x0, 0x30(%rsp)
je 0x3c05f
movq 0x30(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x3c027
jmp 0x3c05f
movq 0x5fff72(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4d9fdb(%rip), %rsi    # 0x516013
leaq 0x4da180(%rip), %rdx    # 0x5161bf
leaq 0x4e30cf(%rip), %rcx    # 0x51f115
leaq 0x4e3064(%rip), %r8     # 0x51f0b1
movl $0x56, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x3c061
jmp 0x3c063
cmpq $0x0, 0x28(%rsp)
jne 0x3c0a3
movq 0x5fff2e(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4d9f97(%rip), %rsi    # 0x516013
leaq 0x53eadc(%rip), %rdx    # 0x57ab5f
leaq 0x4e308b(%rip), %rcx    # 0x51f115
leaq 0x4e3020(%rip), %r8     # 0x51f0b1
movl $0x57, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x3c0a5
movl 0x54(%rsp), %edi
subl 0x44(%rsp), %edi
movq 0x48(%rsp), %rsi
movslq 0x44(%rsp), %rax
shlq $0x3, %rax
addq %rax, %rsi
callq 0x1746b0
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rdi
callq 0x174180
movq 0x28(%rsp), %rax
movq (%rax), %rdi
callq 0x1f4a40
testb $0x1, %al
jne 0x3c0e5
jmp 0x3c124
movq 0x28(%rsp), %rax
movq (%rax), %rdi
movq 0x30(%rsp), %rsi
callq 0x1f4ad0
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0x3c10c
movl $0xffffffff, 0xc(%rsp)  # imm = 0xFFFFFFFF
cmpl $0x0, 0xc(%rsp)
jne 0x3c122
movq 0x10(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x174240
jmp 0x3c124
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rdi
callq 0x1fa900
testb $0x1, %al
jne 0x3c138
jmp 0x3c178
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x30(%rsp), %rsi
callq 0x1fa970
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x18(%rsp)
jne 0x3c160
movl $0xffffffff, 0xc(%rsp)  # imm = 0xFFFFFFFF
cmpl $0x0, 0xc(%rsp)
jne 0x3c176
movq 0x10(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x1742c0
jmp 0x3c178
cmpl $0x0, 0xc(%rsp)
jne 0x3c194
movq 0x28(%rsp), %rax
testb $0x1, 0x10(%rax)
je 0x3c194
movq 0x10(%rsp), %rdi
callq 0x174560
cmpl $0x0, 0xc(%rsp)
jne 0x3c1ae
movq 0x10(%rsp), %rdi
movq 0x30(%rsp), %rsi
callq 0x1b1f90
movl %eax, 0xc(%rsp)
cmpl $0x0, 0xc(%rsp)
jne 0x3c1c3
leaq 0x4e2f71(%rip), %rdi    # 0x51f12d
movb $0x0, %al
callq 0x19070
movq 0x10(%rsp), %rdi
callq 0x1b1cb0
movq 0x20(%rsp), %rdi
callq 0x1f4420
movq 0x18(%rsp), %rdi
callq 0x1fa710
movl 0xc(%rsp), %eax
addq $0x58, %rsp
retq
nopw (%rax,%rax)