// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x98, %rsp
movl %edi, 0x94(%rsp)
movq %rsi, 0x88(%rsp)
movl %edx, 0x84(%rsp)
movq %rcx, 0x78(%rsp)
movq %r8, 0x70(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x68(%rsp)
movl $0x0, 0x54(%rsp)
cmpq $0x0, 0x70(%rsp)
je 0x50bb9
movq 0x70(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x50b81
jmp 0x50bb9
movq 0x5eb418(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4c5481(%rip), %rsi    # 0x516013
leaq 0x4c5626(%rip), %rdx    # 0x5161bf
leaq 0x4d3bfb(%rip), %rcx    # 0x52479b
leaq 0x4d3b16(%rip), %r8     # 0x5246bd
movl $0x65, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x50bbb
jmp 0x50bbd
cmpq $0x0, 0x68(%rsp)
jne 0x50bfd
movq 0x5eb3d4(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4c543d(%rip), %rsi    # 0x516013
leaq 0x529f82(%rip), %rdx    # 0x57ab5f
leaq 0x4d3bb7(%rip), %rcx    # 0x52479b
leaq 0x4d3ad2(%rip), %r8     # 0x5246bd
movl $0x66, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x50bff
movq 0x5eb39a(%rip), %rax    # 0x63bfa0
movq (%rax), %rdx
movl $0x1, %edi
leaq 0x4c6cd7(%rip), %rsi    # 0x5178ec
callq 0xe7870
movq %rax, 0x58(%rsp)
movq 0x68(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x58(%rsp), %rcx
movq 0x70(%rsp), %r8
movl $0x87, %esi
movl $0x1, %edx
callq 0x23b3e0
movq %rax, 0x60(%rsp)
cmpq $0x0, 0x60(%rsp)
jne 0x50c63
movl $0xffffffff, 0x54(%rsp) # imm = 0xFFFFFFFF
jmp 0x50d37
movq 0x68(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x11e280
movq %rax, 0x48(%rsp)
movq 0x68(%rsp), %rax
movq 0x10(%rax), %rdi
leaq 0x4d3b32(%rip), %rsi    # 0x5247b8
callq 0x11d550
movq 0x60(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x60(%rsp), %rdi
callq 0x23bd50
movq %rax, 0x28(%rsp)
movq 0x68(%rsp), %rax
movq (%rax), %rax
movq %rax, 0x30(%rsp)
movq 0x68(%rsp), %rax
movq 0x8(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x68(%rsp), %rax
movq 0x18(%rax), %rax
movq %rax, 0x40(%rsp)
movq 0x68(%rsp), %rax
movb 0x20(%rax), %al
movb %al, 0x1f(%rsp)
movq 0x48(%rsp), %rdi
callq 0x11dee0
movb 0x1f(%rsp), %r9b
movq 0x20(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x30(%rsp), %rdx
movq 0x38(%rsp), %rcx
movq 0x40(%rsp), %r8
movq %rax, %r10
movq 0x70(%rsp), %rax
andb $0x1, %r9b
movzbl %r9b, %r9d
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x282c90
movl %eax, 0x54(%rsp)
leaq 0x60(%rsp), %rdi
callq 0x23b5e0
movq 0x48(%rsp), %rdi
callq 0x11f560
movq 0x58(%rsp), %rdi
callq 0xe7ed0
movl 0x54(%rsp), %eax
addq $0x98, %rsp
retq
nopl (%rax)