// File: /workspace/github_c_makefile_star2_O2/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 0x1b88ba
movq %r15, %rdi
callq 0x89eb7
testb %al, %al
jne 0x1b8a09
testq %r12, %r12
je 0x1b89df
callq 0x791cd
movq %rax, 0x10(%rsp)
movq %rax, %rdi
movq %r14, %rsi
movq %r15, %rdx
callq 0x7921d
movq %rax, %r14
testq %rax, %rax
je 0x1b897f
movl %r13d, %edi
notl %edi
addl %ebp, %edi
leaq (%rbx,%r13,8), %rsi
addq $0x8, %rsi
callq 0xdeebd
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 0x1bc6c2
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 0x1bb628
testq %rax, %rax
je 0x1b898f
movq %rax, %r13
movq (%r12), %rsi
movq %rax, %rdi
callq 0xe07df
movq %rax, %rbx
movq %rax, %rdi
movq %r15, %rsi
callq 0x102b93
movl %eax, %r15d
jmp 0x1b8996
xorl %r12d, %r12d
xorl %ebx, %ebx
xorl %ebp, %ebp
xorl %r13d, %r13d
pushq $-0x1
popq %r15
jmp 0x1b899b
xorl %r13d, %r13d
pushq $-0x1
popq %r15
movq 0x8(%rsp), %r12
movq %r13, %rdi
callq 0x10297b
movq %rbp, %rdi
callq 0x10297b
movq %r12, %rdi
callq 0x10297b
movq %rbx, %rdi
callq 0x10297b
movq 0x10(%rsp), %rdi
callq 0x79f01
movq %r14, %rdi
callq 0x735fd
movl %r15d, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x27f582(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x12c623(%rip), %rsi    # 0x2e5013
leaq 0x18fc5c(%rip), %rdx    # 0x348653
leaq 0x1a5dc6(%rip), %rcx    # 0x35e7c4
leaq 0x1a5c3b(%rip), %r8     # 0x35e640
pushq $0x72
jmp 0x1b8a31
movq 0x27f558(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x12c5f9(%rip), %rsi    # 0x2e5013
leaq 0x12c79e(%rip), %rdx    # 0x2e51bf
leaq 0x1a5d9c(%rip), %rcx    # 0x35e7c4
leaq 0x1a5c11(%rip), %r8     # 0x35e640
pushq $0x71
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
nop