// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/tools/gt_cds.c
// Function: gt_cds_runner
static int gt_cds_runner(GT_UNUSED int argc, const char **argv, int parsed_args,
                         void *tool_arguments, GtError *err)
{
  GtNodeStream *gff3_in_stream, *cds_stream = NULL, *gff3_out_stream = NULL;
  CDSArguments *arguments = tool_arguments;
  GtRegionMapping *region_mapping;
  int had_err = 0;

  gt_error_check(err);
  gt_assert(arguments);

  /* create gff3 input stream */
  gff3_in_stream = gt_gff3_in_stream_new_sorted(argv[parsed_args]);
  if (arguments->verbose && arguments->outfp)
    gt_gff3_in_stream_show_progress_bar((GtGFF3InStream*) gff3_in_stream);

  /* create region mapping */
  region_mapping = gt_seqid2file_region_mapping_new(arguments->s2fi, err);
  if (!region_mapping)
    had_err = -1;

  if (!had_err) {
    /* create CDS stream */
    cds_stream = gt_cds_stream_new(gff3_in_stream, region_mapping,
                                   arguments->minorflen, GT_CDS_SOURCE_TAG,
                                   arguments->start_codon,
                                   arguments->final_stop_codon,
                                   arguments->generic_start_codons);

    /* create gff3 output stream */
    gff3_out_stream = gt_gff3_out_stream_new(cds_stream, arguments->outfp);

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

  /* free */
  gt_node_stream_delete(gff3_out_stream);
  gt_node_stream_delete(cds_stream);
  gt_node_stream_delete(gff3_in_stream);

  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x10, %rsp
movq %r8, %r14
movq %rcx, %r15
movl %edx, %ebp
movq %rsi, %rbx
testq %r8, %r8
je 0x1abab
movq %r14, %rdi
callq 0x89eb7
testb %al, %al
jne 0x1ac8c
testq %r15, %r15
je 0x1ac62
movslq %ebp, %rax
movq (%rbx,%rax,8), %rdi
callq 0xdef57
movq %rax, %rbx
cmpb $0x1, 0x7(%r15)
jne 0x1abd9
cmpq $0x0, 0x18(%r15)
je 0x1abd9
movq %rbx, %rdi
callq 0xdeb22
movq 0x8(%r15), %rdi
movq %r14, %rsi
callq 0x116b63
testq %rax, %rax
je 0x1ac32
movl (%r15), %edx
movzbl 0x4(%r15), %r8d
movzbl 0x5(%r15), %r9d
movzbl 0x6(%r15), %ecx
movl %ecx, (%rsp)
leaq 0x2cb619(%rip), %rcx    # 0x2e621f
movq %rbx, %rdi
movq %rax, %rsi
callq 0xbd8b4
movq %rax, %r12
movq 0x18(%r15), %rsi
movq %rax, %rdi
callq 0xe07df
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0x102b93
movl %eax, %ebp
jmp 0x1ac3b
pushq $-0x1
popq %rbp
xorl %r15d, %r15d
xorl %r12d, %r12d
movq %r15, %rdi
callq 0x10297b
movq %r12, %rdi
callq 0x10297b
movq %rbx, %rdi
callq 0x10297b
movl %ebp, %eax
addq $0x10, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
movq 0x41d2ff(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2ca3a0(%rip), %rsi    # 0x2e5013
leaq 0x32d9d9(%rip), %rdx    # 0x348653
leaq 0x2cb590(%rip), %rcx    # 0x2e6211
leaq 0x2cb3db(%rip), %r8     # 0x2e6063
pushq $0x7a
jmp 0x1acb4
movq 0x41d2d5(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2ca376(%rip), %rsi    # 0x2e5013
leaq 0x2ca51b(%rip), %rdx    # 0x2e51bf
leaq 0x2cb566(%rip), %rcx    # 0x2e6211
leaq 0x2cb3b1(%rip), %r8     # 0x2e6063
pushq $0x79
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
nop