// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/tools/gt_snpper.c
// Function: gt_snpper_runner
static int gt_snpper_runner(GT_UNUSED int argc, const char **argv,
                                 int parsed_args, void *tool_arguments,
                                 GtError *err)
{
  GtNodeStream *gff3_in_stream = NULL,
               *gvf_in_stream = NULL,
               *gvf_out_stream = NULL,
               *snp_annotator_stream = NULL;
  GtSnpperArguments *arguments = tool_arguments;
  GtRegionMapping *region_mapping = NULL;
  GtTransTable *tt = NULL;
  int had_err = 0;

  gt_error_check(err);
  gt_assert(arguments);

  if (!(tt = gt_trans_table_new(arguments->ttable, err)))
    had_err = -1;

  if (!had_err) {
    /* create GFF3 input stream */
    gff3_in_stream = gt_gff3_in_stream_new_sorted(argv[parsed_args]);
    if (!gff3_in_stream)
      had_err = -1;
  }

  if (!had_err) {
    /* create GVF input stream */
    gvf_in_stream = gt_gff3_in_stream_new_sorted(argv[parsed_args+1]);
    if (!gvf_in_stream)
      had_err = -1;
  }

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

  if (!had_err) {
    gt_assert(tt);
    snp_annotator_stream = gt_snp_annotator_stream_new(gvf_in_stream,
                                                       gff3_in_stream,
                                                       tt,
                                                       region_mapping);
    if (!snp_annotator_stream)
      had_err = -1;
  }

  if (!had_err) {
    gvf_out_stream = gt_gff3_out_stream_new(snp_annotator_stream,
                                            arguments->outfp);
    if (!gvf_out_stream)
      had_err = -1;
  }

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

  /* free */
  gt_node_stream_delete(snp_annotator_stream);
  gt_node_stream_delete(gff3_in_stream);
  gt_node_stream_delete(gvf_in_stream);
  gt_node_stream_delete(gvf_out_stream);
  gt_trans_table_delete(tt);
  gt_region_mapping_delete(region_mapping);

  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, %rbp
movq %rcx, %r13
movl %edx, %r14d
movq %rsi, %rbx
testq %r8, %r8
je 0x4f516
movq %rbp, %rdi
callq 0x89eb7
testb %al, %al
jne 0x4f652
testq %r13, %r13
je 0x4f628
movl 0x18(%r13), %edi
movq %rbp, %rsi
callq 0xb124a
movq %rax, (%rsp)
testq %rax, %rax
je 0x4f5bb
movslq %r14d, %r15
movq (%rbx,%r15,8), %rdi
callq 0xdef57
testq %rax, %rax
je 0x4f5bb
movq %rax, %r14
movq 0x8(%rbx,%r15,8), %rdi
callq 0xdef57
testq %rax, %rax
je 0x4f60e
movq %rax, %r12
movq (%r13), %rdi
movq %rbp, %rsi
callq 0x116b63
testq %rax, %rax
je 0x4f616
movq %rax, %r15
movq %r12, %rdi
movq %r14, %rsi
movq (%rsp), %rdx
movq %rax, %rcx
callq 0x11932a
testq %rax, %rax
je 0x4f61e
movq %rax, %rbx
movq 0x10(%r13), %rsi
movq %rax, %rdi
callq 0xe07df
testq %rax, %rax
je 0x4f623
movq %rax, %r13
movq %rax, %rdi
movq %rbp, %rsi
callq 0x102b93
movl %eax, %ebp
jmp 0x4f5cc
xorl %r13d, %r13d
xorl %r15d, %r15d
xorl %r14d, %r14d
xorl %r12d, %r12d
xorl %ebx, %ebx
pushq $-0x1
popq %rbp
movq %rbx, %rdi
callq 0x10297b
movq %r14, %rdi
callq 0x10297b
movq %r12, %rdi
callq 0x10297b
movq %r13, %rdi
callq 0x10297b
movq (%rsp), %rdi
callq 0xb168a
movq %r15, %rdi
callq 0x10f7de
movl %ebp, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
xorl %r13d, %r13d
xorl %r15d, %r15d
jmp 0x4f5c4
xorl %r13d, %r13d
xorl %r15d, %r15d
jmp 0x4f5c7
xorl %r13d, %r13d
jmp 0x4f5c7
xorl %r13d, %r13d
jmp 0x4f5c9
movq 0x3e8939(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2959da(%rip), %rsi    # 0x2e5013
leaq 0x2f9013(%rip), %rdx    # 0x348653
leaq 0x2aba1e(%rip), %rcx    # 0x2fb065
leaq 0x2ab93a(%rip), %r8     # 0x2faf88
pushq $0x70
jmp 0x4f67a
movq 0x3e890f(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2959b0(%rip), %rsi    # 0x2e5013
leaq 0x295b55(%rip), %rdx    # 0x2e51bf
leaq 0x2ab9f4(%rip), %rcx    # 0x2fb065
leaq 0x2ab910(%rip), %r8     # 0x2faf88
pushq $0x6f
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390