// File: /workspace/github_c_makefile_star2_O0/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:
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, 0x20(%rsp)
movq $0x0, 0x18(%rsp)
movl $0x0, 0xc(%rsp)
cmpq $0x0, 0x40(%rsp)
je 0x1f16f
movq 0x40(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x1f137
jmp 0x1f16f
movq 0x61ce62(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4f6ecb(%rip), %rsi    # 0x516013
leaq 0x4f7070(%rip), %rdx    # 0x5161bf
leaq 0x4f88a4(%rip), %rcx    # 0x5179fa
leaq 0x4f8792(%rip), %r8     # 0x5178ef
movl $0x64, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1f171
jmp 0x1f173
cmpq $0x0, 0x38(%rsp)
jne 0x1f1b3
movq 0x61ce1e(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4f6e87(%rip), %rsi    # 0x516013
leaq 0x55b9cc(%rip), %rdx    # 0x57ab5f
leaq 0x4f8860(%rip), %rcx    # 0x5179fa
leaq 0x4f874e(%rip), %r8     # 0x5178ef
movl $0x65, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1f1b5
movq 0x58(%rsp), %rax
movl 0x54(%rsp), %ecx
addl $0x1, %ecx
movslq %ecx, %rcx
movq (%rax,%rcx,8), %rdi
callq 0x1747b0
movq %rax, 0x30(%rsp)
movq 0x38(%rsp), %rax
testb $0x1, 0x1(%rax)
je 0x1f1f3
movq 0x38(%rsp), %rax
cmpq $0x0, 0x10(%rax)
je 0x1f1f3
movq 0x30(%rsp), %rdi
callq 0x1741e0
movq 0x58(%rsp), %rax
movslq 0x54(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x11d510
movq %rax, 0x10(%rsp)
movq 0x30(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x40(%rsp), %rdx
callq 0x139dc0
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x28(%rsp)
jne 0x1f234
movl $0xffffffff, 0xc(%rsp)  # imm = 0xFFFFFFFF
movq 0x10(%rsp), %rdi
callq 0x11f560
cmpl $0x0, 0xc(%rsp)
jne 0x1f292
movq 0x38(%rsp), %rax
testb $0x1, (%rax)
je 0x1f278
movq 0x28(%rsp), %rdi
callq 0x1da550
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rdi
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rsi
callq 0x176d50
movq %rax, 0x18(%rsp)
jmp 0x1f290
movq 0x28(%rsp), %rdi
movq 0x38(%rsp), %rax
movq 0x10(%rax), %rsi
callq 0x176d50
movq %rax, 0x18(%rsp)
jmp 0x1f292
cmpl $0x0, 0xc(%rsp)
jne 0x1f2ac
movq 0x18(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x1b1f90
movl %eax, 0xc(%rsp)
movq 0x18(%rsp), %rdi
callq 0x1b1cb0
movq 0x28(%rsp), %rdi
callq 0x1b1cb0
movq 0x20(%rsp), %rdi
callq 0x1b1cb0
movq 0x30(%rsp), %rdi
callq 0x1b1cb0
movl 0xc(%rsp), %eax
addq $0x68, %rsp
retq
nopl (%rax)