// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/tools/gt_inlineseq_add.c
// Function: gt_inlineseq_add_runner
static int gt_inlineseq_add_runner(int argc, const char **argv, int parsed_args,
                               void *tool_arguments, GtError *err)
{
  GtNodeStream *gff3_in_stream = NULL,
               *add_stream = NULL,
               *gff3_out_stream = NULL,
               *last_stream = NULL;
  GtRegionMapping *rm = NULL;
  InlineseqAddArguments *arguments = tool_arguments;
  int had_err = 0;
  gt_error_check(err);

  /* add region mapping if given */
  if (gt_seqid2file_option_used(arguments->s2fi)) {
    rm = gt_seqid2file_region_mapping_new(arguments->s2fi, err);
    if (!rm)
      had_err = -1;
  }

  if (!had_err) {
    last_stream = gff3_in_stream = gt_gff3_in_stream_new_unsorted(
                                                            argc - parsed_args,
                                                            argv + parsed_args);
    gt_assert(gff3_in_stream);
    gt_gff3_in_stream_enable_tidy_mode((GtGFF3InStream*) gff3_in_stream);

    last_stream = add_stream = gt_sequence_node_add_stream_new(last_stream, rm,
                                                               err);
    if (!add_stream) {
      had_err = -1;
    }
  }

  if (!had_err) {
    last_stream = gff3_out_stream = gt_gff3_out_stream_new(last_stream,
                                                           arguments->outfp);
  }

  if (!had_err)
    had_err = gt_node_stream_pull(last_stream, err);

  /* free */
  gt_node_stream_delete(gff3_in_stream);
  gt_node_stream_delete(add_stream);
  gt_node_stream_delete(gff3_out_stream);
  gt_region_mapping_delete(rm);

  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %r15
movq %rcx, %r12
movl %edx, %ebx
movq %rsi, %r13
movl %edi, %ebp
testq %r8, %r8
je 0x2f6fd
movq %r15, %rdi
callq 0x89eb7
testb %al, %al
jne 0x2f7ee
movq (%r12), %rdi
callq 0x116b18
testb %al, %al
je 0x2f72a
movq (%r12), %rdi
movq %r15, %rsi
callq 0x116b63
movq %rax, %r14
testq %rax, %rax
jne 0x2f72d
xorl %ebx, %ebx
xorl %r14d, %r14d
xorl %ebp, %ebp
xorl %r13d, %r13d
jmp 0x2f78e
xorl %r14d, %r14d
subl %ebx, %ebp
movslq %ebx, %rax
leaq (,%rax,8), %rsi
addq %r13, %rsi
movl %ebp, %edi
callq 0xdeebd
testq %rax, %rax
je 0x2f7c4
movq %rax, %r13
movq %rax, %rdi
callq 0xdee0c
movq %r13, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x118131
testq %rax, %rax
je 0x2f78a
movq %rax, %rbp
movq 0x10(%r12), %rsi
movq %rax, %rdi
callq 0xe07df
movq %rax, %rbx
movq %rax, %rdi
movq %r15, %rsi
callq 0x102b93
movl %eax, %r15d
jmp 0x2f792
xorl %ebx, %ebx
xorl %ebp, %ebp
pushq $-0x1
popq %r15
movq %r13, %rdi
callq 0x10297b
movq %rbp, %rdi
callq 0x10297b
movq %rbx, %rdi
callq 0x10297b
movq %r14, %rdi
callq 0x10f7de
movl %r15d, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x40879d(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b583e(%rip), %rsi    # 0x2e5013
leaq 0x2bfbb2(%rip), %rdx    # 0x2ef38e
leaq 0x2bfb93(%rip), %rcx    # 0x2ef376
leaq 0x2bfb1b(%rip), %r8     # 0x2ef305
pushq $0x5d
jmp 0x2f816
movq 0x408773(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b5814(%rip), %rsi    # 0x2e5013
leaq 0x2b59b9(%rip), %rdx    # 0x2e51bf
leaq 0x2bfb69(%rip), %rcx    # 0x2ef376
leaq 0x2bfaf1(%rip), %r8     # 0x2ef305
pushq $0x50
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390