// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/ltr/gt_ltrclustering.c
// Function: gt_ltrclustering_runner
static int gt_ltrclustering_runner(int argc, const char **argv,
                                       int parsed_args, void *tool_arguments,
                                       GtError *err)
{
  GtLTRClusteringArguments *arguments = tool_arguments;
  GtNodeStream *gff3_in_stream      = NULL,
               *last_stream         = NULL,
               *ltr_cluster_stream  = NULL,
               *ltr_classify_stream = NULL,
               *gff3_out_stream     = NULL;
  GtEncseqLoader *el;
  GtEncseq *encseq;
  int had_err = 0, arg = parsed_args;
  const char *indexname = argv[arg];

  gt_error_check(err);
  gt_assert(arguments);
  arg++;

  el = gt_encseq_loader_new();
  encseq = gt_encseq_loader_load(el, indexname, err);

  if (!encseq)
    had_err = -1;
  if (!had_err) {
    last_stream = gff3_in_stream = gt_gff3_in_stream_new_unsorted(argc - arg,
                                                                  argv + arg);
    last_stream = ltr_cluster_stream = gt_ltr_cluster_stream_new(last_stream,
                                                         encseq,
                                                         GT_UNDEF_INT,
                                                         GT_UNDEF_INT,
                                                         GT_UNDEF_INT,
                                                         GT_UNDEF_INT,
                                                         GT_UNDEF_INT,
                                                         GT_UNDEF_INT,
                                                         GT_UNDEF_INT,
                                                         10,
                                                         GT_UNDEF_INT,
                                                         GT_UNDEF_INT,
                                                         arguments->plarge,
                                                         arguments->psmall,
                                                         NULL,
                                                         err);
    last_stream = ltr_classify_stream = gt_ltr_classify_stream_new(last_stream,
                                                                   NULL,
                                                                   NULL,
                                                                   NULL,
                                                                   NULL,
                                                                   err);

    if (!ltr_classify_stream)
      had_err = -1;
    else
      last_stream = gff3_out_stream = gt_gff3_out_stream_new(last_stream,
                                                          arguments->outfp);
  }
  if (!had_err)
    had_err = gt_node_stream_pull(last_stream, err);

  gt_node_stream_delete(ltr_classify_stream);
  gt_node_stream_delete(ltr_cluster_stream);
  gt_node_stream_delete(gff3_in_stream);
  gt_node_stream_delete(gff3_out_stream);
  gt_encseq_loader_delete(el);
  gt_encseq_delete(encseq);

  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r8, %r15
movq %rcx, %r12
movq %rsi, %rbx
movl %edi, %ebp
movslq %edx, %r13
movq (%rsi,%r13,8), %r14
testq %r8, %r8
je 0x2045e0
movq %r15, %rdi
callq 0xfcc32
testb %al, %al
jne 0x20470e
testq %r12, %r12
je 0x204709
callq 0xef0cd
movq %rax, 0x10(%rsp)
movq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0xef129
movq %rax, %r14
testq %rax, %rax
je 0x2046a5
movl %r13d, %edi
notl %edi
addl %ebp, %edi
leaq (%rbx,%r13,8), %rsi
addq $0x8, %rsi
callq 0x145cdf
movq %rax, %rdi
movl $0x80000000, %eax       # imm = 0x80000000
movq %rdi, 0x8(%rsp)
movq %r14, %rsi
movl $0x80000000, %edx       # imm = 0x80000000
movl $0x80000000, %ecx       # imm = 0x80000000
movl $0x80000000, %r8d       # imm = 0x80000000
movl $0x80000000, %r9d       # imm = 0x80000000
pushq %r15
pushq $0x0
pushq 0x18(%r12)
pushq 0x20(%r12)
pushq %rax
pushq %rax
pushq $0xa
pushq %rax
pushq %rax
pushq %rax
callq 0x208327
addq $0x50, %rsp
movq %rax, %rbp
xorl %ebx, %ebx
movq %rax, %rdi
xorl %esi, %esi
xorl %edx, %edx
xorl %ecx, %ecx
xorl %r8d, %r8d
movq %r15, %r9
callq 0x207227
testq %rax, %rax
je 0x2046b7
movq %rax, %r13
movq (%r12), %rsi
movq %rax, %rdi
callq 0x146fc0
movq %rax, %rbx
movq %rax, %rdi
movq %r15, %rsi
callq 0x162f5d
movl %eax, %r15d
jmp 0x2046c0
xorl %r12d, %r12d
xorl %ebx, %ebx
xorl %ebp, %ebp
xorl %r13d, %r13d
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
jmp 0x2046c5
xorl %r13d, %r13d
movl $0xffffffff, %r15d      # imm = 0xFFFFFFFF
movq 0x8(%rsp), %r12
movq %r13, %rdi
callq 0x162dee
movq %rbp, %rdi
callq 0x162dee
movq %r12, %rdi
callq 0x162dee
movq %rbx, %rdi
callq 0x162dee
movq 0x10(%rsp), %rdi
callq 0xefbe3
movq %r14, %rdi
callq 0xea375
movl %r15d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x7ff0a
callq 0x7fed3
nop