// File: /workspace/github_c_makefile_star2_O2/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 0x51fde
movq %r15, %rdi
callq 0x89eb7
testb %al, %al
jne 0x520d0
testq %r14, %r14
je 0x520a6
subl %ebp, %ebx
movslq %ebp, %rax
leaq (%r12,%rax,8), %rsi
movl %ebx, %edi
callq 0xdeebd
movq %rax, %rbx
movq 0x8(%r14), %rdi
movq %r15, %rsi
callq 0x116b63
testq %rax, %rax
je 0x5202c
movq %rax, %r13
cmpb $0x1, (%r14)
jne 0x52037
movq %rbx, %rdi
callq 0xb46bc
testb $0x1, (%r14)
movq %rax, %r12
movq %rbx, %rdi
cmovneq %rax, %rdi
jmp 0x5203d
pushq $-0x1
popq %rbp
xorl %r13d, %r13d
xorl %r12d, %r12d
jmp 0x5207d
xorl %r12d, %r12d
movq %rbx, %rdi
movq %r13, %rsi
callq 0x11da86
movq %rax, %r13
movq %rax, %rdi
movq %r15, %rsi
callq 0x102b93
testl %eax, %eax
je 0x5205b
movl %eax, %ebp
jmp 0x5207d
movq 0x18(%r14), %rsi
movq %r13, %rdi
callq 0x11dae2
xorl %ebp, %ebp
testb %al, %al
jne 0x5207d
leaq 0x2a9bab(%rip), %rdi    # 0x2fbc1f
xorl %ebp, %ebp
xorl %eax, %eax
callq 0xb2cd0
movq %r13, %rdi
callq 0x10297b
movq %r12, %rdi
callq 0x10297b
movq %rbx, %rdi
callq 0x10297b
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3e5ebb(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x292f5c(%rip), %rsi    # 0x2e5013
leaq 0x2f6595(%rip), %rdx    # 0x348653
leaq 0x2a9b41(%rip), %rcx    # 0x2fbc06
leaq 0x2a9a5d(%rip), %r8     # 0x2fbb29
pushq $0x60
jmp 0x520f8
movq 0x3e5e91(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x292f32(%rip), %rsi    # 0x2e5013
leaq 0x2930d7(%rip), %rdx    # 0x2e51bf
leaq 0x2a9b17(%rip), %rcx    # 0x2fbc06
leaq 0x2a9a33(%rip), %r8     # 0x2fbb29
pushq $0x5f
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
nop