// File: /workspace/github_c_makefile_star2_O0/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:
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, 0x30(%rsp)
movq $0x0, 0x28(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x20(%rsp)
movl $0x0, 0x14(%rsp)
cmpq $0x0, 0x40(%rsp)
je 0x1e2df
movq 0x40(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x1e2a7
jmp 0x1e2df
movq 0x61dcf2(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4f7d5b(%rip), %rsi    # 0x516013
leaq 0x4f7f00(%rip), %rdx    # 0x5161bf
leaq 0x4f8f64(%rip), %rcx    # 0x51722a
leaq 0x4f8daf(%rip), %r8     # 0x51707c
movl $0x79, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1e2e1
jmp 0x1e2e3
cmpq $0x0, 0x20(%rsp)
jne 0x1e323
movq 0x61dcae(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4f7d17(%rip), %rsi    # 0x516013
leaq 0x55c85c(%rip), %rdx    # 0x57ab5f
leaq 0x4f8f20(%rip), %rcx    # 0x51722a
leaq 0x4f8d6b(%rip), %r8     # 0x51707c
movl $0x7a, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x1e325
movq 0x58(%rsp), %rax
movslq 0x54(%rsp), %rcx
movq (%rax,%rcx,8), %rdi
callq 0x1747b0
movq %rax, 0x38(%rsp)
movq 0x20(%rsp), %rax
testb $0x1, 0x7(%rax)
je 0x1e35e
movq 0x20(%rsp), %rax
cmpq $0x0, 0x18(%rax)
je 0x1e35e
movq 0x38(%rsp), %rdi
callq 0x1741e0
movq 0x20(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x40(%rsp), %rsi
callq 0x1d4960
movq %rax, 0x18(%rsp)
cmpq $0x0, 0x18(%rsp)
jne 0x1e386
movl $0xffffffff, 0x14(%rsp) # imm = 0xFFFFFFFF
cmpl $0x0, 0x14(%rsp)
jne 0x1e40c
movq 0x38(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rax
movl (%rax), %edx
movq 0x20(%rsp), %rax
movb 0x4(%rax), %r8b
movq 0x20(%rsp), %rax
movb 0x5(%rax), %r9b
movq 0x20(%rsp), %rax
movb 0x6(%rax), %al
leaq 0x4f8e79(%rip), %rcx    # 0x517238
andb $0x1, %r8b
andb $0x1, %r9b
andb $0x1, %al
movzbl %r8b, %r8d
movzbl %r9b, %r9d
movzbl %al, %eax
movl %eax, (%rsp)
callq 0x137d10
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rdi
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rsi
callq 0x176d50
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x1b1f90
movl %eax, 0x14(%rsp)
movq 0x28(%rsp), %rdi
callq 0x1b1cb0
movq 0x30(%rsp), %rdi
callq 0x1b1cb0
movq 0x38(%rsp), %rdi
callq 0x1b1cb0
movl 0x14(%rsp), %eax
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)