// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/tools/gt_chseqids.c
// Function: gt_chseqids_runnter
static int gt_chseqids_runnter(GT_UNUSED int argc, const char **argv,
                               int parsed_args, void *tool_arguments,
                               GtError *err)
{
  ChseqidsArguments *arguments = tool_arguments;
  GtNodeStream *gff3_in_stream, *chseqids_stream, *sort_stream = NULL,
               *gff3_out_stream = NULL;
  GtStr *chseqids;
  int had_err = 0;

  gt_error_check(err);
  gt_assert(arguments);

  /* create the streams */
  gff3_in_stream = gt_gff3_in_stream_new_sorted(argv[parsed_args + 1]);
  if (arguments->verbose && arguments->outfp)
    gt_gff3_in_stream_show_progress_bar((GtGFF3InStream*) gff3_in_stream);
  chseqids = gt_str_new_cstr(argv[parsed_args]);
  chseqids_stream = gt_chseqids_stream_new(gff3_in_stream, chseqids, err);
  if (!chseqids_stream)
    had_err = -1;
  gt_str_delete(chseqids);
  if (!had_err) {
    if (arguments->sort) {
      sort_stream = gt_sort_stream_new(chseqids_stream);
      gff3_out_stream = gt_gff3_out_stream_new(sort_stream, arguments->outfp);
    }
    else {
      gff3_out_stream = gt_gff3_out_stream_new(chseqids_stream,
                                               arguments->outfp);
    }
  }

  /* pull the features through the stream and free them afterwards */
  if (!had_err)
    had_err = gt_node_stream_pull(gff3_out_stream, err);

  /* free */
  gt_node_stream_delete(gff3_out_stream);
  gt_node_stream_delete(chseqids_stream);
  gt_node_stream_delete(sort_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, %r14
movq %rcx, %r15
movl %edx, %ebx
movq %rsi, %r12
testq %r8, %r8
je 0x1b55c
movq %r14, %rdi
callq 0x89eb7
testb %al, %al
jne 0x1b65c
testq %r15, %r15
je 0x1b632
movslq %ebx, %r13
movq 0x8(%r12,%r13,8), %rdi
callq 0xdef57
movq %rax, %rbx
cmpb $0x1, 0x1(%r15)
jne 0x1b58b
cmpq $0x0, 0x10(%r15)
je 0x1b58b
movq %rbx, %rdi
callq 0xdeb22
movq (%r12,%r13,8), %rdi
callq 0xacbd1
movq %rax, %r13
movq %rbx, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0xbeb98
movq %rax, %r12
movq %r13, %rdi
callq 0xae103
testq %r12, %r12
je 0x1b5d7
cmpb $0x1, (%r15)
jne 0x1b5e2
movq %r12, %rdi
callq 0x11a5d8
movq %rax, %r13
movq 0x10(%r15), %rsi
movq %rax, %rdi
callq 0xe07df
movq %rax, %r15
jmp 0x1b5f4
xorl %r13d, %r13d
pushq $-0x1
popq %rbp
xorl %r15d, %r15d
jmp 0x1b601
movq 0x10(%r15), %rsi
movq %r12, %rdi
callq 0xe07df
movq %rax, %r15
xorl %r13d, %r13d
movq %r15, %rdi
movq %r14, %rsi
callq 0x102b93
movl %eax, %ebp
movq %r15, %rdi
callq 0x10297b
movq %r12, %rdi
callq 0x10297b
movq %r13, %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 0x41c92f(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2c99d0(%rip), %rsi    # 0x2e5013
leaq 0x32d009(%rip), %rdx    # 0x348653
leaq 0x2cb391(%rip), %rcx    # 0x2e69e2
leaq 0x2cb27f(%rip), %r8     # 0x2e68d7
pushq $0x65
jmp 0x1b684
movq 0x41c905(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2c99a6(%rip), %rsi    # 0x2e5013
leaq 0x2c9b4b(%rip), %rdx    # 0x2e51bf
leaq 0x2cb367(%rip), %rcx    # 0x2e69e2
leaq 0x2cb255(%rip), %r8     # 0x2e68d7
pushq $0x64
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
nop