// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/tools/gt_regioncov.c
// Function: gt_regioncov
int gt_regioncov(int argc, const char **argv, GtError *err)
{
  GtNodeVisitor *regioncov_visitor;
  GtNodeStream *gff3_in_stream;
  GtGenomeNode *gn;
  RegionCovArguments arguments;
  int parsed_args, had_err = 0;
  gt_error_check(err);

  /* option parsing */
  switch (parse_options(&parsed_args, &arguments, argc, argv, err)) {
    case GT_OPTION_PARSER_OK: break;
    case GT_OPTION_PARSER_ERROR:
      return -1;
    case GT_OPTION_PARSER_REQUESTS_EXIT:
      return 0;
  }

  /* create gff3 input stream */
  gt_assert(parsed_args < argc);
  gff3_in_stream = gt_gff3_in_stream_new_sorted(argv[parsed_args]);
  if (arguments.verbose)
    gt_gff3_in_stream_show_progress_bar((GtGFF3InStream*) gff3_in_stream);

  /* create region coverage visitor */
  regioncov_visitor = gt_regioncov_visitor_new(arguments.max_feature_dist);

  /* pull the features through the stream and free them afterwards */
  while (!(had_err = gt_node_stream_next(gff3_in_stream, &gn, err)) && gn) {
      had_err = gt_genome_node_accept(gn, regioncov_visitor, err);
      gt_genome_node_delete(gn);
  }

  /* show region coverage */
  if (!had_err)
    gt_regioncov_visitor_show_coverage(regioncov_visitor);

  /* free */
  gt_node_visitor_delete(regioncov_visitor);
  gt_node_stream_delete(gff3_in_stream);

  return had_err;
}

// Assembly:
subq $0x58, %rsp
movl %edi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movl $0x0, 0x10(%rsp)
cmpq $0x0, 0x40(%rsp)
je 0x5795a
movq 0x40(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x57922
jmp 0x5795a
movq 0x5e4677(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4be6e0(%rip), %rsi    # 0x516013
leaq 0x4be885(%rip), %rdx    # 0x5161bf
leaq 0x4ce63f(%rip), %rcx    # 0x525f80
leaq 0x4ce645(%rip), %r8     # 0x525f8d
movl $0x3f, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x5795c
movl 0x50(%rsp), %edx
movq 0x48(%rsp), %rcx
movq 0x40(%rsp), %r8
leaq 0x14(%rsp), %rdi
leaq 0x18(%rsp), %rsi
callq 0x57ad0
movl %eax, %ecx
movl %ecx, 0xc(%rsp)
testl %eax, %eax
je 0x5799b
jmp 0x57985
movl 0xc(%rsp), %eax
subl $0x1, %eax
je 0x5799d
jmp 0x57990
movl 0xc(%rsp), %eax
subl $0x2, %eax
je 0x579aa
jmp 0x579b7
jmp 0x579b7
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x57ac2
movl $0x0, 0x54(%rsp)
jmp 0x57ac2
jmp 0x579b9
movl 0x14(%rsp), %eax
cmpl 0x50(%rsp), %eax
jl 0x579fb
movq 0x5e45d6(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4be63f(%rip), %rsi    # 0x516013
leaq 0x4ce5cb(%rip), %rdx    # 0x525fa6
leaq 0x4ce59e(%rip), %rcx    # 0x525f80
leaq 0x4ce5a4(%rip), %r8     # 0x525f8d
movl $0x4b, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x579fd
movq 0x48(%rsp), %rax
movslq 0x14(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x1747b0
movq %rax, 0x30(%rsp)
testb $0x1, 0x20(%rsp)
je 0x57a26
movq 0x30(%rsp), %rdi
callq 0x1741e0
movq 0x18(%rsp), %rdi
callq 0x1cb030
movq %rax, 0x38(%rsp)
movq 0x30(%rsp), %rdi
movq 0x40(%rsp), %rdx
leaq 0x28(%rsp), %rsi
callq 0x1b1d90
movl %eax, %ecx
movl %ecx, 0x10(%rsp)
xorl %eax, %eax
cmpl $0x0, %ecx
movb %al, 0xb(%rsp)
jne 0x57a67
cmpq $0x0, 0x28(%rsp)
setne %al
movb %al, 0xb(%rsp)
movb 0xb(%rsp), %al
testb $0x1, %al
jne 0x57a71
jmp 0x57a95
movq 0x28(%rsp), %rdi
movq 0x38(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq 0x171f90
movl %eax, 0x10(%rsp)
movq 0x28(%rsp), %rdi
callq 0x173180
jmp 0x57a35
cmpl $0x0, 0x10(%rsp)
jne 0x57aa6
movq 0x38(%rsp), %rdi
callq 0x1cb0a0
movq 0x38(%rsp), %rdi
callq 0x1b29d0
movq 0x30(%rsp), %rdi
callq 0x1b1cb0
movl 0x10(%rsp), %eax
movl %eax, 0x54(%rsp)
movl 0x54(%rsp), %eax
addq $0x58, %rsp
retq
nopl (%rax,%rax)