// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/tools/gt_sfxmap.c
// Function: gt_sfxmap_runner
static int gt_sfxmap_runner(GT_UNUSED int argc,
                            GT_UNUSED const char **argv,
                            GT_UNUSED int parsed_args,
                            void *tool_arguments, GtError *err)
{
  bool haserr = false;
  Sfxmapoptions *arguments = tool_arguments;
  GtLogger *logger;

  gt_error_check(err);
  logger = gt_logger_new(arguments->verbose, GT_LOGGER_DEFLT_PREFIX, stdout);
  if (gt_str_length(arguments->esaindexname) > 0)
  {
    if (arguments->compressedesa)
    {
      if (gt_sfxmap_compressedesa(gt_str_get(arguments->esaindexname),
                                   err) != 0)
      {
        haserr = true;
      }
    } else
    {
      if (arguments->compresslcp)
      {
        if (gt_sfxmap_compresslcp(gt_str_get(arguments->esaindexname),
                                  logger,err) != 0)
        {
          haserr = true;
        }
      } else
      {
        if (gt_sfxmap_esa(arguments,logger,err) != 0)
        {
          haserr = true;
        }
      }
    }
  }
  if (!haserr && gt_str_length(arguments->pckindexname) > 0)
  {
    if (gt_sfxmap_pck(arguments,logger,err) != 0)
    {
      haserr = true;
    }
  }
  if (!haserr && gt_str_array_size(arguments->streamesq) > 0)
  {
    if (gt_sfxmap_stream_esq(arguments,err) != 0)
    {
      haserr = true;
    }
  }
  if (!haserr && arguments->sortmaxdepth > 0)
  {
    if (gt_sfxmap_performsortmaxdepth(arguments,logger,err) != 0)
    {
      haserr = true;
    }
  }
  if (!haserr && arguments->diffcovercheck)
  {
    if (gt_sfxmap_run_diffcover_check(arguments, err) != 0)
    {
      haserr = true;
    }
  }
  if (!haserr && (arguments->enumlcpitvs || arguments->enumlcpitvtree ||
                  arguments->enumlcpitvtreeBU))
  {
    if (arguments->enumlcpitvtreeBU)
    {
      if (gt_runenumlcpvalues_bottomup(gt_str_get(arguments->esaindexname),
                                       logger, err) != 0)
      {
        haserr = true;
      }
    } else
    {
      if (gt_runenumlcpvalues_process(gt_str_get(arguments->esaindexname),
                                      arguments->enumlcpitvs ? showlcpinterval
                                                             : NULL,
                                      NULL,
                                     logger, err) != 0)
      {
        haserr = true;
      }
    }
  }
  if (!haserr && arguments->scanesa > 0)
  {
    if (gt_runscanesa(gt_str_get(arguments->esaindexname),arguments->scanesa,
                      logger,err) != 0)
    {
      haserr = true;
    }
  }
  if (!haserr && arguments->spmitv)
  {
    if (gt_process_spmitv(gt_str_get(arguments->esaindexname),logger,err) != 0)
    {
      haserr = true;
    }
  }
  if (!haserr && arguments->ownencseq2file)
  {
    if (gt_encseq_check_external_twobitencoding_to_file(
                                 gt_str_get(arguments->esaindexname), err) != 0)
    {
      haserr = true;
    }
  }
  gt_logger_delete(logger);
  return haserr ? -1 : 0;
}

// Assembly:
subq $0x48, %rsp
movl %edi, 0x44(%rsp)
movq %rsi, 0x38(%rsp)
movl %edx, 0x34(%rsp)
movq %rcx, 0x28(%rsp)
movq %r8, 0x20(%rsp)
movb $0x0, 0x1f(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x6980a
movq 0x20(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x697d2
jmp 0x6980a
movq 0x5d27c7(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4ac830(%rip), %rsi    # 0x516013
leaq 0x4ac9d5(%rip), %rdx    # 0x5161bf
leaq 0x4c132f(%rip), %rcx    # 0x52ab20
leaq 0x4c0df2(%rip), %r8     # 0x52a5ea
movl $0x597, %r9d            # imm = 0x597
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x6980c
movq 0x10(%rsp), %rax
movb 0x2(%rax), %al
movq 0x5d271d(%rip), %rcx    # 0x63bf38
movq (%rcx), %rdx
leaq 0x4ae0c7(%rip), %rsi    # 0x5178ec
andb $0x1, %al
movzbl %al, %edi
callq 0xe7870
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x11dfa0
cmpq $0x0, %rax
jbe 0x698d9
movq 0x10(%rsp), %rax
testb $0x1, 0x12(%rax)
je 0x6987e
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x20(%rsp), %rsi
callq 0x69b40
cmpl $0x0, %eax
je 0x6987c
movb $0x1, 0x1f(%rsp)
jmp 0x698d7
movq 0x10(%rsp), %rax
testb $0x1, 0x13(%rax)
je 0x698b5
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x8(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x6a160
cmpl $0x0, %eax
je 0x698b3
movb $0x1, 0x1f(%rsp)
jmp 0x698d5
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x6a570
cmpl $0x0, %eax
je 0x698d3
movb $0x1, 0x1f(%rsp)
jmp 0x698d5
jmp 0x698d7
jmp 0x698d9
testb $0x1, 0x1f(%rsp)
jne 0x69914
movq 0x10(%rsp), %rax
movq 0x28(%rax), %rdi
callq 0x11dfa0
cmpq $0x0, %rax
jbe 0x69914
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x6ae40
cmpl $0x0, %eax
je 0x69912
movb $0x1, 0x1f(%rsp)
jmp 0x69914
testb $0x1, 0x1f(%rsp)
jne 0x6994a
movq 0x10(%rsp), %rax
movq 0x40(%rax), %rdi
callq 0x11fcc0
cmpq $0x0, %rax
jbe 0x6994a
movq 0x10(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x6b640
cmpl $0x0, %eax
je 0x69948
movb $0x1, 0x1f(%rsp)
jmp 0x6994a
testb $0x1, 0x1f(%rsp)
jne 0x6997c
movq 0x10(%rsp), %rax
cmpl $0x0, 0x30(%rax)
jbe 0x6997c
movq 0x10(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x6b940
cmpl $0x0, %eax
je 0x6997a
movb $0x1, 0x1f(%rsp)
jmp 0x6997c
testb $0x1, 0x1f(%rsp)
jne 0x699a9
movq 0x10(%rsp), %rax
testb $0x1, 0x10(%rax)
je 0x699a9
movq 0x10(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x6bc30
cmpl $0x0, %eax
je 0x699a7
movb $0x1, 0x1f(%rsp)
jmp 0x699a9
testb $0x1, 0x1f(%rsp)
jne 0x69a5c
movq 0x10(%rsp), %rax
testb $0x1, 0xd(%rax)
jne 0x699d9
movq 0x10(%rsp), %rax
testb $0x1, 0xe(%rax)
jne 0x699d9
movq 0x10(%rsp), %rax
testb $0x1, 0xf(%rax)
je 0x69a5c
movq 0x10(%rsp), %rax
testb $0x1, 0xf(%rax)
je 0x69a10
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x8(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x2327f0
cmpl $0x0, %eax
je 0x69a0e
movb $0x1, 0x1f(%rsp)
jmp 0x69a5a
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x10(%rsp), %rax
movb 0xd(%rax), %cl
xorl %eax, %eax
movl %eax, %esi
leaq 0x230c(%rip), %rax      # 0x6bd40
testb $0x1, %cl
cmovneq %rax, %rsi
movq 0x8(%rsp), %rcx
movq 0x20(%rsp), %r8
xorl %eax, %eax
movl %eax, %edx
callq 0x2328f0
cmpl $0x0, %eax
je 0x69a58
movb $0x1, 0x1f(%rsp)
jmp 0x69a5a
jmp 0x69a5c
testb $0x1, 0x1f(%rsp)
jne 0x69aa2
movq 0x10(%rsp), %rax
cmpl $0x0, 0x34(%rax)
jbe 0x69aa2
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x10(%rsp), %rax
movl 0x34(%rax), %esi
movq 0x8(%rsp), %rdx
movq 0x20(%rsp), %rcx
callq 0x2329f0
cmpl $0x0, %eax
je 0x69aa0
movb $0x1, 0x1f(%rsp)
jmp 0x69aa2
testb $0x1, 0x1f(%rsp)
jne 0x69ae0
movq 0x10(%rsp), %rax
testb $0x1, 0x14(%rax)
je 0x69ae0
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x8(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x240140
cmpl $0x0, %eax
je 0x69ade
movb $0x1, 0x1f(%rsp)
jmp 0x69ae0
testb $0x1, 0x1f(%rsp)
jne 0x69b19
movq 0x10(%rsp), %rax
testb $0x1, 0x15(%rax)
je 0x69b19
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x20(%rsp), %rsi
callq 0xb7450
cmpl $0x0, %eax
je 0x69b17
movb $0x1, 0x1f(%rsp)
jmp 0x69b19
movq 0x8(%rsp), %rdi
callq 0xe7ed0
movb 0x1f(%rsp), %dl
xorl %eax, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
testb $0x1, %dl
cmovnel %ecx, %eax
addq $0x48, %rsp
retq
nopl (%rax)