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

  gt_error_check(err);
  gt_assert(arguments);

  /* create a gff3 input stream */
  gff3_in_stream = gt_gff3_in_stream_new_unsorted(argc - parsed_args,
                                                  argv + parsed_args);
  if (arguments->verbose && arguments->outfp)
    gt_gff3_in_stream_show_progress_bar((GtGFF3InStream*) gff3_in_stream);
  /* add automatically generated sequence IDs later to avoid collisions */
  gt_gff3_in_stream_disable_add_ids(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 seqid to md5 stream */
    id_to_md5_stream =
      gt_id_to_md5_stream_new(gff3_in_stream, region_mapping,
                              arguments->substitute_target_ids);

    /* create add IDs stream */
    add_ids_stream = gt_add_ids_stream_new(id_to_md5_stream);

    /* create gff3 output stream */
    gff3_out_stream = gt_gff3_out_stream_new(add_ids_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(add_ids_stream);
  gt_node_stream_delete(id_to_md5_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, %ebp
movq %rsi, %r12
movl %edi, %ebx
testq %r8, %r8
je 0x2f003
movq %r14, %rdi
callq 0x89eb7
testb %al, %al
jne 0x2f0f0
testq %r15, %r15
je 0x2f0c6
subl %ebp, %ebx
movslq %ebp, %rax
leaq (%r12,%rax,8), %rsi
movl %ebx, %edi
callq 0xdeebd
movq %rax, %rbx
cmpb $0x1, (%r15)
jne 0x2f034
cmpq $0x0, 0x18(%r15)
je 0x2f034
movq %rbx, %rdi
callq 0xdeb22
movq %rbx, %rdi
callq 0xded65
movq 0x8(%r15), %rdi
movq %r14, %rsi
callq 0x116b63
testq %rax, %rax
je 0x2f089
movzbl 0x1(%r15), %edx
movq %rbx, %rdi
movq %rax, %rsi
callq 0xf2800
movq %rax, %r12
movq %rax, %rdi
callq 0xb3d71
movq %rax, %r13
movq 0x18(%r15), %rsi
movq %rax, %rdi
callq 0xe07df
movq %rax, %r15
movq %rax, %rdi
movq %r14, %rsi
callq 0x102b93
movl %eax, %ebp
jmp 0x2f095
pushq $-0x1
popq %rbp
xorl %r15d, %r15d
xorl %r13d, %r13d
xorl %r12d, %r12d
movq %r15, %rdi
callq 0x10297b
movq %r13, %rdi
callq 0x10297b
movq %r12, %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 0x408e9b(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b5f3c(%rip), %rsi    # 0x2e5013
leaq 0x319575(%rip), %rdx    # 0x348653
leaq 0x2c0041(%rip), %rcx    # 0x2ef126
leaq 0x2bff71(%rip), %r8     # 0x2ef05d
pushq $0x63
jmp 0x2f118
movq 0x408e71(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2b5f12(%rip), %rsi    # 0x2e5013
leaq 0x2b60b7(%rip), %rdx    # 0x2e51bf
leaq 0x2c0017(%rip), %rcx    # 0x2ef126
leaq 0x2bff47(%rip), %r8     # 0x2ef05d
pushq $0x62
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
nop