// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/tools/gt_readjoiner_correct.c
// Function: gt_readjoiner_correct_runner
static int gt_readjoiner_correct_runner(GT_UNUSED int argc,
    GT_UNUSED const char **argv, GT_UNUSED int parsed_args,
    void *tool_arguments, GT_UNUSED GtError *err)
{
  GtReadjoinerCorrectArguments *arguments = tool_arguments;
  Sequentialsuffixarrayreader *ssar;
  GtLogger *logger;
  int had_err = 0;

  gt_error_check(err);
  gt_assert(arguments);
  logger = gt_logger_new(true, GT_LOGGER_DEFLT_PREFIX, stderr);

  ssar = gt_newSequentialsuffixarrayreaderfromfile(
      gt_str_get(arguments->indexname), SARR_LCPTAB | SARR_SUFTAB |
      SARR_ESQTAB | SARR_SSPTAB, true, logger, err);
  if (ssar == NULL)
    had_err = -1;
  else
  {
    GtStr *indexname_corrected = gt_str_clone(arguments->indexname);
    gt_str_append_cstr(arguments->indexname, GT_READJOINER_CORRECT_TAG);
    had_err = gt_errfind(ssar, gt_encseqSequentialsuffixarrayreader(ssar),
           arguments->k, arguments->c, arguments->debug_value,
           arguments->edit_twobitencoding, gt_str_get(indexname_corrected),
           err);
    gt_freeSequentialsuffixarrayreader(&ssar);
    gt_str_delete(indexname_corrected);
  }
  gt_logger_delete(logger);
  return had_err;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %rbx
movq %rcx, %r15
testq %r8, %r8
je 0x3ade1
movq %rbx, %rdi
callq 0x89eb7
testb %al, %al
jne 0x3af03
movq 0x3fd180(%rip), %rax    # 0x437f68
movq (%rax), %rdx
testq %r15, %r15
je 0x3aedb
leaq 0x2abad9(%rip), %rsi    # 0x2e68d4
pushq $0x1
popq %rbp
movl %ebp, %edi
callq 0x92b50
movq %rax, %r14
movq 0x10(%r15), %rdi
callq 0xad1fa
movq %rax, %rdi
movl $0x87, %esi
movl %ebp, %edx
movq %r14, %rcx
movq %rbx, %r8
callq 0x1516ac
movq %rax, 0x20(%rsp)
testq %rax, %rax
je 0x3aebf
movq %rax, %r13
movq 0x10(%r15), %rdi
callq 0xad442
movq %rax, %r12
movq 0x10(%r15), %rdi
leaq 0x2b8899(%rip), %rsi    # 0x2f36e7
callq 0xacbfb
movq %r13, %rdi
callq 0x151c21
movq %rax, %rbp
movq (%r15), %rax
movq %rax, 0x10(%rsp)
movq %r14, 0x18(%rsp)
movq 0x8(%r15), %r14
movq 0x18(%r15), %rax
movq %rax, 0x8(%rsp)
movzbl 0x20(%r15), %r15d
movq %r12, %rdi
callq 0xad1fa
movq %r13, %rdi
movq %rbp, %rsi
movq 0x10(%rsp), %rdx
movq %r14, %rcx
movq 0x18(%rsp), %r14
movq 0x8(%rsp), %r8
movl %r15d, %r9d
pushq %rbx
pushq %rax
callq 0x1790d5
popq %rcx
popq %rdx
movl %eax, %ebx
leaq 0x20(%rsp), %rdi
callq 0x1517e5
movq %r12, %rdi
callq 0xae103
jmp 0x3aec2
pushq $-0x1
popq %rbx
movq %r14, %rdi
callq 0x92fd0
movl %ebx, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x2aa131(%rip), %rsi    # 0x2e5013
leaq 0x30d76a(%rip), %rax    # 0x348653
leaq 0x2b87da(%rip), %rcx    # 0x2f36ca
leaq 0x2b86f5(%rip), %r8     # 0x2f35ec
pushq $0x66
popq %r9
movq %rdx, %rdi
movq %rax, %rdx
jmp 0x3af2d
movq 0x3fd05e(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2aa0ff(%rip), %rsi    # 0x2e5013
leaq 0x2aa2a4(%rip), %rdx    # 0x2e51bf
leaq 0x2b87a8(%rip), %rcx    # 0x2f36ca
leaq 0x2b86c3(%rip), %r8     # 0x2f35ec
pushq $0x65
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
nopl (%rax)