// File: /workspace/github_c_makefile_star2_O1/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, %rbx
movl %edx, %r12d
movq %rsi, %r14
movl %edi, %ebp
testq %r8, %r8
je 0xcf2fe
movq %r15, %rdi
callq 0x101a9a
testb %al, %al
jne 0xcf3c3
testq %rbx, %rbx
je 0xcf3be
subl %r12d, %ebp
movslq %r12d, %rax
leaq (%r14,%rax,8), %rsi
movl %ebp, %edi
callq 0x14d00b
movq %rax, %r14
movq 0x8(%rbx), %rdi
movq %r15, %rsi
callq 0x17b3bd
testq %rax, %rax
je 0xcf341
movq %rax, %r13
cmpb $0x1, (%rbx)
jne 0xcf34e
movq %r14, %rdi
callq 0x126660
movq %rax, %r12
jmp 0xcf351
movl $0xffffffff, %ebp       # imm = 0xFFFFFFFF
xorl %r12d, %r12d
xorl %r13d, %r13d
jmp 0xcf373
xorl %r12d, %r12d
cmpb $0x0, (%rbx)
movq %r14, %rdi
cmovneq %r12, %rdi
movq %r13, %rsi
callq 0x181095
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
callq 0x16adca
movl %eax, %ebp
testl %ebp, %ebp
jne 0xcf395
movq 0x18(%rbx), %rsi
movq %r13, %rdi
callq 0x1810f1
testb %al, %al
jne 0xcf395
leaq 0x2959db(%rip), %rdi    # 0x364d69
xorl %eax, %eax
callq 0x125448
movq %r13, %rdi
callq 0x16ac6e
movq %r12, %rdi
callq 0x16ac6e
movq %r14, %rdi
callq 0x16ac6e
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x21542
callq 0x2150b