// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x68, %rsp
movl %edi, 0x64(%rsp)
movq %rsi, 0x58(%rsp)
movl %edx, 0x54(%rsp)
movq %rcx, 0x48(%rsp)
movq %r8, 0x40(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x38(%rsp)
movq $0x0, 0x30(%rsp)
movq $0x0, 0x28(%rsp)
movq $0x0, 0x20(%rsp)
movl $0x0, 0x14(%rsp)
cmpq $0x0, 0x40(%rsp)
je 0x76f58
movq 0x40(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x76f20
jmp 0x76f58
movq 0x5c5079(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x49f0e2(%rip), %rsi    # 0x516013
leaq 0x49f287(%rip), %rdx    # 0x5161bf
leaq 0x4b5ebe(%rip), %rcx    # 0x52cdfd
leaq 0x4b5dda(%rip), %r8     # 0x52cd20
movl $0x5f, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x76f5a
jmp 0x76f5c
cmpq $0x0, 0x38(%rsp)
jne 0x76f9c
movq 0x5c5035(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x49f09e(%rip), %rsi    # 0x516013
leaq 0x503be3(%rip), %rdx    # 0x57ab5f
leaq 0x4b5e7a(%rip), %rcx    # 0x52cdfd
leaq 0x4b5d96(%rip), %r8     # 0x52cd20
movl $0x60, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x76f9e
cmpl $0x0, 0x14(%rsp)
jne 0x76ff2
movl 0x64(%rsp), %edi
subl 0x54(%rsp), %edi
movq 0x58(%rsp), %rsi
movslq 0x54(%rsp), %rax
shlq $0x3, %rax
addq %rax, %rsi
callq 0x1746b0
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x40(%rsp), %rsi
callq 0x1d4960
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x18(%rsp)
jne 0x76ff0
movl $0xffffffff, 0x14(%rsp) # imm = 0xFFFFFFFF
jmp 0x76ff2
cmpl $0x0, 0x14(%rsp)
jne 0x77059
movq 0x38(%rsp), %rax
testb $0x1, (%rax)
je 0x77012
movq 0x30(%rsp), %rdi
callq 0x129200
movq %rax, 0x28(%rsp)
movq 0x38(%rsp), %rax
testb $0x1, (%rax)
je 0x77028
movq 0x28(%rsp), %rax
movq %rax, 0x8(%rsp)
jmp 0x77032
movq 0x30(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x1df420
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x1b1f90
movl %eax, 0x14(%rsp)
cmpl $0x0, 0x14(%rsp)
jne 0x77087
movq 0x20(%rsp), %rdi
movq 0x38(%rsp), %rax
movq 0x18(%rax), %rsi
callq 0x1df490
testb $0x1, %al
jne 0x77085
leaq 0x4b5d98(%rip), %rdi    # 0x52ce16
movb $0x0, %al
callq 0x1267d0
jmp 0x77087
movq 0x20(%rsp), %rdi
callq 0x1b1cb0
movq 0x28(%rsp), %rdi
callq 0x1b1cb0
movq 0x30(%rsp), %rdi
callq 0x1b1cb0
movl 0x14(%rsp), %eax
addq $0x68, %rsp
retq
nop