// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x68, %rsp
movl %edi, 0x64(%rsp)
movq %rsi, 0x58(%rsp)
movl %edx, 0x54(%rsp)
movq %rcx, 0x48(%rsp)
movq %r8, 0x40(%rsp)
movq $0x0, 0x38(%rsp)
movq $0x0, 0x30(%rsp)
movq $0x0, 0x28(%rsp)
movq $0x0, 0x20(%rsp)
movq $0x0, 0x18(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x10(%rsp)
movl $0x0, 0xc(%rsp)
cmpq $0x0, 0x40(%rsp)
je 0x3ec7a
movq 0x40(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x3ec42
jmp 0x3ec7a
movq 0x5fd357(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4d73c0(%rip), %rsi    # 0x516013
leaq 0x4d7565(%rip), %rdx    # 0x5161bf
leaq 0x4e17a5(%rip), %rcx    # 0x520406
leaq 0x4e172d(%rip), %r8     # 0x520395
movl $0x50, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x3ec7c
movq 0x10(%rsp), %rax
movq (%rax), %rdi
callq 0x1d48f0
testb $0x1, %al
jne 0x3ec8f
jmp 0x3ecb8
movq 0x10(%rsp), %rax
movq (%rax), %rdi
movq 0x40(%rsp), %rsi
callq 0x1d4960
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x18(%rsp)
jne 0x3ecb6
movl $0xffffffff, 0xc(%rsp)  # imm = 0xFFFFFFFF
jmp 0x3ecb8
cmpl $0x0, 0xc(%rsp)
jne 0x3ed67
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, 0x38(%rsp)
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x38(%rsp)
jne 0x3ed2b
movq 0x5fd2a6(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4d730f(%rip), %rsi    # 0x516013
leaq 0x4e1713(%rip), %rdx    # 0x52041e
leaq 0x4e16f4(%rip), %rcx    # 0x520406
leaq 0x4e167c(%rip), %r8     # 0x520395
movl $0x5d, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x3ed2d
movq 0x38(%rsp), %rdi
callq 0x1745c0
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq 0x1d6a90
movq %rax, 0x30(%rsp)
movq %rax, 0x20(%rsp)
cmpq $0x0, 0x30(%rsp)
jne 0x3ed65
movl $0xffffffff, 0xc(%rsp)  # imm = 0xFFFFFFFF
jmp 0x3ed67
cmpl $0x0, 0xc(%rsp)
jne 0x3ed8b
movq 0x20(%rsp), %rdi
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rsi
callq 0x176d50
movq %rax, 0x28(%rsp)
movq %rax, 0x20(%rsp)
cmpl $0x0, 0xc(%rsp)
jne 0x3eda5
movq 0x20(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x1b1f90
movl %eax, 0xc(%rsp)
movq 0x38(%rsp), %rdi
callq 0x1b1cb0
movq 0x30(%rsp), %rdi
callq 0x1b1cb0
movq 0x28(%rsp), %rdi
callq 0x1b1cb0
movq 0x18(%rsp), %rdi
callq 0x1c7bd0
movl 0xc(%rsp), %eax
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)