// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/tools/gt_splicesiteinfo.c
// Function: gt_splicesiteinfo_runner
static int gt_splicesiteinfo_runner(int argc, const char **argv,
                                    int parsed_args, void *tool_arguments,
                                    GtError *err)
{
  SpliceSiteInfoArguments *arguments = tool_arguments;
  GtNodeStream *gff3_in_stream = NULL,
               *add_introns_stream = NULL,
               *splice_site_info_stream = NULL;
  GtRegionMapping *region_mapping;
  int had_err = 0;

  gt_error_check(err);
  gt_assert(arguments);

  if (!had_err) {
    /* create gff3 input stream */
    gff3_in_stream = gt_gff3_in_stream_new_unsorted(argc - parsed_args,
                                                    argv + parsed_args);

    /* create region mapping */
    region_mapping = gt_seqid2file_region_mapping_new(arguments->s2fi, err);
    if (!region_mapping)
      had_err = -1;
  }

  if (!had_err) {
    /* create addintrons stream (if necessary) */
    if (arguments->addintrons)
      add_introns_stream = gt_add_introns_stream_new(gff3_in_stream);

    /* create extract feature stream */
    splice_site_info_stream = gt_splice_site_info_stream_new(
                                                          arguments->addintrons
                                                          ? add_introns_stream
                                                          : gff3_in_stream,
                                                          region_mapping);

    /* pull the features through the stream and free them afterwards */
    had_err = gt_node_stream_pull(splice_site_info_stream, err);
  }

  if (!had_err) {
    if (!gt_splice_site_info_stream_show(splice_site_info_stream,
                                         arguments->outfp)) {
      gt_warning("input file(s) contained no intron, use option -addintrons to "
                 "add introns automatically");
    }
  }

  /* free */
  gt_node_stream_delete(splice_site_info_stream);
  gt_node_stream_delete(add_introns_stream);
  gt_node_stream_delete(gff3_in_stream);

  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r15
movq %rcx, %r14
movl %edx, %ebp
movq %rsi, %r12
movl %edi, %ebx
testq %r8, %r8
je 0xccdd5
movq %r15, %rdi
callq 0xfcc32
testb %al, %al
jne 0xccea4
testq %r14, %r14
je 0xcce9f
subl %ebp, %ebx
movslq %ebp, %rax
leaq (%r12,%rax,8), %rsi
movl %ebx, %edi
callq 0x145cdf
movq %rax, %rbx
movq 0x8(%r14), %rdi
movq %r15, %rsi
callq 0x172fdd
testq %rax, %rax
je 0xcce23
movq %rax, %r13
cmpb $0x1, (%r14)
jne 0xcce30
movq %rbx, %rdi
callq 0x120894
testb $0x1, (%r14)
movq %rax, %r12
movq %rbx, %rdi
cmovneq %rax, %rdi
jmp 0xcce36
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
xorl %r13d, %r13d
xorl %r12d, %r12d
jmp 0xcce76
xorl %r12d, %r12d
movq %rbx, %rdi
movq %r13, %rsi
callq 0x178bc5
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
callq 0x162f5d
testl %eax, %eax
je 0xcce54
movl %eax, %ebp
jmp 0xcce76
movq 0x18(%r14), %rsi
movq %r13, %rdi
callq 0x178c21
xorl %ebp, %ebp
testb %al, %al
jne 0xcce76
leaq 0x28ee5c(%rip), %rdi    # 0x35bcc9
xorl %ebp, %ebp
xorl %eax, %eax
callq 0x11f68c
movq %r13, %rdi
callq 0x162dee
movq %r12, %rdi
callq 0x162dee
movq %rbx, %rdi
callq 0x162dee
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x2110d
callq 0x210d6
nopl (%rax)