// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/tools/gt_readjoiner_spmtest.c
// Function: gt_readjoiner_spmtest_runner
static int gt_readjoiner_spmtest_runner(GT_UNUSED int argc,
    GT_UNUSED const char **argv, GT_UNUSED int parsed_args,
    void *tool_arguments, GT_UNUSED GtError *err)
{
  GtReadjoinerSpmtestArguments *arguments = tool_arguments;
  GtEncseqLoader *el = NULL;
  GtEncseq *reads = NULL;
  GtLogger *verbose_logger;
  int had_err = 0;

  gt_error_check(err);
  gt_assert(arguments);

  if (arguments->test == GT_READJOINER_SPMTEST_SHOWLIST)
  {
    GtStr *fn = NULL;
    fn = gt_str_clone(arguments->readset);
    gt_str_append_cstr(fn, GT_READJOINER_SUFFIX_SPMLIST);
    had_err = gt_spmlist_parse(gt_str_get(fn), 0, gt_spmproc_show_ascii,
        NULL, err);
    gt_str_delete(fn);
    return had_err;
  }
  verbose_logger = gt_logger_new(arguments->verbose, GT_LOGGER_DEFLT_PREFIX,
      stderr);
  el = gt_encseq_loader_new();
  gt_encseq_loader_drop_description_support(el);
  gt_encseq_loader_disable_autosupport(el);
  if (!arguments->singlestrand)
    gt_encseq_loader_mirror(el);
  reads = gt_encseq_loader_load(el, gt_str_get(arguments->readset), err);
  if (reads == NULL)
    had_err = -1;
  else
  {
    Sequentialsuffixarrayreader *ssar = NULL;
    switch (arguments->test)
    {
      case GT_READJOINER_SPMTEST_BRUTEFORCE:
        gt_rdj_pairwise_exact(GT_OVLFIND_SPM, reads, !arguments->singlestrand,
            false, false, (GtUword)arguments->minmatchlength, true,
            gt_spmproc_show_ascii, NULL, false, NULL, NULL, NULL);
        break;
      case GT_READJOINER_SPMTEST_KMP:
        gt_rdj_pairwise_exact(GT_OVLFIND_SPM, reads, !arguments->singlestrand,
            false, true, (GtUword)arguments->minmatchlength, true,
            gt_spmproc_show_ascii, NULL, false, NULL, NULL, NULL);
        break;
      case GT_READJOINER_SPMTEST_GUSFIELD:
        ssar = gt_newSequentialsuffixarrayreaderfromfile(gt_str_get(
              arguments->readset), SARR_LCPTAB | SARR_SUFTAB | SARR_SSPTAB |
            SARR_ESQTAB, false, verbose_logger, err);
        if (gt_error_is_set(err))
          had_err = -1;
        else
          gt_rdj_gusfield(ssar, (GtUword)arguments->minmatchlength, true,
              true, arguments->singlestrand ? 0 :
              GT_DIV2(gt_encseq_num_of_sequences(reads)), gt_spmproc_show_ascii,
              NULL);
        if (ssar != NULL)
          gt_freeSequentialsuffixarrayreader(&ssar);
        break;
      default:
        gt_assert(false);
    }
    gt_encseq_delete(reads);
  }
  gt_encseq_loader_delete(el);
  gt_logger_delete(verbose_logger);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x48, %rsp
movq %r8, %r12
movq %rcx, %r13
testq %r8, %r8
je 0x3e91f
movq %r12, %rdi
callq 0x89eb7
testb %al, %al
jne 0x3eb8d
testq %r13, %r13
je 0x3eb5f
cmpl $0x0, 0x10(%r13)
je 0x3ea0b
movzbl 0x19(%r13), %edi
movq 0x3f9629(%rip), %rbp    # 0x437f68
movq (%rbp), %rdx
leaq 0x2a7f8a(%rip), %rsi    # 0x2e68d4
callq 0x92b50
movq %rax, %rbx
callq 0x791cd
movq %rax, %r14
movq %rax, %rdi
callq 0x7cece
movq %r14, %rdi
callq 0x7d046
cmpb $0x0, 0x18(%r13)
jne 0x3e979
movq %r14, %rdi
callq 0x7d003
movq (%r13), %rdi
callq 0xad1fa
movq %r14, %rdi
movq %rax, %rsi
movq %r12, %rdx
callq 0x7921d
testq %rax, %rax
je 0x3ea55
movq %rax, %r15
andq $0x0, 0x40(%rsp)
movl 0x10(%r13), %eax
cmpl $0x3, %eax
je 0x3eaae
cmpl $0x2, %eax
je 0x3ea5e
cmpl $0x1, %eax
jne 0x3ebc5
movzbl 0x18(%r13), %edx
movl 0x14(%r13), %r9d
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rsp)
leaq 0x13f0d7(%rip), %rax    # 0x17dab0
andq $0x0, 0x30(%rsp)
movq %rax, 0x8(%rsp)
andl $0x0, 0x18(%rsp)
andq $0x0, 0x10(%rsp)
movl $0x1, (%rsp)
xorl $0x1, %edx
xorl %r12d, %r12d
xorl %edi, %edi
movq %r15, %rsi
xorl %ecx, %ecx
xorl %r8d, %r8d
jmp 0x3eaa4
movq (%r13), %rdi
callq 0xad442
movq %rax, %rbx
leaq 0x2b54e1(%rip), %rsi    # 0x2f3eff
movq %rax, %rdi
callq 0xacbfb
movq %rbx, %rdi
callq 0xad1fa
leaq 0x13f07b(%rip), %rdx    # 0x17dab0
movq %rax, %rdi
xorl %esi, %esi
xorl %ecx, %ecx
movq %r12, %r8
callq 0x17d808
movl %eax, %ebp
movq %rbx, %rdi
callq 0xae103
movl %ebp, %eax
jmp 0x3eb50
pushq $-0x1
popq %r12
jmp 0x3eb3d
movzbl 0x18(%r13), %edx
movl 0x14(%r13), %r9d
xorps %xmm0, %xmm0
movups %xmm0, 0x20(%rsp)
andq $0x0, 0x30(%rsp)
andl $0x0, 0x18(%rsp)
andq $0x0, 0x10(%rsp)
leaq 0x13f029(%rip), %rax    # 0x17dab0
movq %rax, 0x8(%rsp)
movl $0x1, (%rsp)
xorl $0x1, %edx
xorl %r12d, %r12d
pushq $0x1
popq %r8
xorl %edi, %edi
movq %r15, %rsi
xorl %ecx, %ecx
callq 0x17abd4
jmp 0x3eb35
movq (%r13), %rdi
callq 0xad1fa
movq %rax, %rdi
movl $0x87, %esi
xorl %edx, %edx
movq %rbx, %rcx
movq %r12, %r8
callq 0x1516ac
movq %rax, %rbp
movq %rax, 0x40(%rsp)
movq %r12, %rdi
callq 0x89eb7
testb %al, %al
je 0x3eae6
pushq $-0x1
popq %r12
jmp 0x3eb26
movl 0x14(%r13), %esi
xorl %r12d, %r12d
cmpb $0x0, 0x18(%r13)
je 0x3eaf9
xorl %r8d, %r8d
jmp 0x3eb0d
movq %r15, %rdi
movq %rsi, %r13
callq 0x705a1
movq %r13, %rsi
movq %rax, %r8
shrq %r8
andq $0x0, (%rsp)
leaq 0x13ef97(%rip), %r9     # 0x17dab0
pushq $0x1
popq %rcx
movq %rbp, %rdi
movl %ecx, %edx
callq 0x179e48
testq %rbp, %rbp
je 0x3eb35
leaq 0x40(%rsp), %rdi
callq 0x1517e5
movq %r15, %rdi
callq 0x735fd
movq %r14, %rdi
callq 0x79f01
movq %rbx, %rdi
callq 0x92fd0
movl %r12d, %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3f9402(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2a64a3(%rip), %rsi    # 0x2e5013
leaq 0x309adc(%rip), %rdx    # 0x348653
leaq 0x2b61a3(%rip), %rcx    # 0x2f4d21
leaq 0x2b5fd8(%rip), %r8     # 0x2f4b5d
movl $0x96, %r9d
jmp 0x3ebb9
movq 0x3f93d4(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2a6475(%rip), %rsi    # 0x2e5013
leaq 0x2a661a(%rip), %rdx    # 0x2e51bf
leaq 0x2b6175(%rip), %rcx    # 0x2f4d21
leaq 0x2b5faa(%rip), %r8     # 0x2f4b5d
movl $0x95, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq (%rbp), %rdi
leaq 0x2a6443(%rip), %rsi    # 0x2e5013
leaq 0x2e7e15(%rip), %rdx    # 0x3269ec
leaq 0x2b6143(%rip), %rcx    # 0x2f4d21
leaq 0x2b5f78(%rip), %r8     # 0x2f4b5d
movl $0xca, %r9d
jmp 0x3ebb9
nopl (%rax)