// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/sfx-run.c
// Function: run_packedindexconstruction
static int run_packedindexconstruction(GtLogger *logger,
                                       GtTimer *sfxprogress,
                                       bool withprogressbar,
                                       const Suffixeratoroptions *so,
                                       unsigned int prefixlength,
                                       const GtEncseq *encseq,
                                       const Sfxstrategy *sfxstrategy,
                                       GtError *err)
{
  sfxInterface *si;
  BWTSeq *bwtSeq;
  bool haserr = false;
  struct bwtParam finalcopy;
  struct bwtOptions bwtIdxParams =
                               gt_index_options_bwtIdxParams_value(so->idxopts);
  unsigned int numofchars
    = gt_alphabet_num_of_chars(gt_encseq_alphabet(encseq));

  finalcopy = bwtIdxParams.final;
  if (numofchars > 10U && finalcopy.seqParams.encParams.blockEnc.blockSize > 3U)
  {
    finalcopy.seqParams.encParams.blockEnc.blockSize = 3U;
  }
  gt_logger_log(logger, "run construction of packed index for: "
                        "blocksize=%u, blocks-per-bucket=%u, locfreq=%u",
                finalcopy.seqParams.encParams.blockEnc.blockSize,
                finalcopy.seqParams.encParams.blockEnc.bucketBlocks,
                finalcopy.locateInterval);
  si = gt_newSfxInterface(gt_index_options_readmode_value(so->idxopts),
                          prefixlength,
                          gt_index_options_numofparts_value(so->idxopts),
                          gt_index_options_maximumspace_value(so->idxopts),
                          sfxstrategy,
                          encseq,
                          sfxprogress,
                          withprogressbar,
                          gt_encseq_total_length(encseq) + 1,
                          logger,
                          err);
  if (si == NULL)
  {
    haserr = true;
  } else
  {
    bwtSeq = gt_createBWTSeqFromSfxI(&finalcopy, si, err);
    if (bwtSeq == NULL)
    {
      haserr = true;
    } else
    {
      gt_deleteBWTSeq(bwtSeq); /**< the actual object is not * used here */
    }
    gt_deleteSfxInterface(si);
  }
  return haserr ? -1 : 0;
}

// Assembly:
pushq %r14
pushq %rbx
subq $0x108, %rsp            # imm = 0x108
movb %dl, %al
movq 0x128(%rsp), %rdx
movq 0x120(%rsp), %rdx
movq %rdi, 0x100(%rsp)
movq %rsi, 0xf8(%rsp)
andb $0x1, %al
movb %al, 0xf7(%rsp)
movq %rcx, 0xe8(%rsp)
movl %r8d, 0xe4(%rsp)
movq %r9, 0xd8(%rsp)
movb $0x0, 0xc7(%rsp)
movq 0xe8(%rsp), %rax
movq 0x18(%rax), %rsi
leaq 0x60(%rsp), %rdi
callq 0x25cfb0
movq 0xd8(%rsp), %rdi
callq 0xb0f00
movq %rax, %rdi
callq 0x7e8c0
movl %eax, 0x5c(%rsp)
leaq 0x60(%rsp), %rsi
leaq 0x98(%rsp), %rdi
movl $0x28, %edx
callq 0x19610
cmpl $0xa, 0x5c(%rsp)
jbe 0x2d0127
cmpl $0x3, 0xa0(%rsp)
jbe 0x2d0127
movl $0x3, 0xa0(%rsp)
movq 0x100(%rsp), %rdi
movl 0xa0(%rsp), %edx
movl 0xa4(%rsp), %ecx
movl 0xac(%rsp), %r8d
leaq 0x2bbe36(%rip), %rsi    # 0x58bf82
movb $0x0, %al
callq 0xe7cd0
movq 0xe8(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x25ce80
movl %eax, 0x34(%rsp)
movl 0xe4(%rsp), %eax
movl %eax, 0x38(%rsp)
movq 0xe8(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x25cd70
movl %eax, 0x3c(%rsp)
movq 0xe8(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x25cd20
movq %rax, 0x40(%rsp)
movq 0x120(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0xd8(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0xf8(%rsp), %r14
movb 0xf7(%rsp), %bl
movq 0xd8(%rsp), %rdi
callq 0xa9d00
movl 0x34(%rsp), %edi
movl 0x38(%rsp), %esi
movl 0x3c(%rsp), %edx
movq 0x40(%rsp), %rcx
movq 0x48(%rsp), %r8
movq 0x50(%rsp), %r9
movq %rax, %r11
addq $0x1, %r11
movq 0x100(%rsp), %r10
movq 0x128(%rsp), %rax
andb $0x1, %bl
movq %r14, (%rsp)
movzbl %bl, %ebx
movl %ebx, 0x8(%rsp)
movq %r11, 0x10(%rsp)
movq %r10, 0x18(%rsp)
movq %rax, 0x20(%rsp)
callq 0x22deb0
movq %rax, 0xd0(%rsp)
cmpq $0x0, 0xd0(%rsp)
jne 0x2d0245
movb $0x1, 0xc7(%rsp)
jmp 0x2d0299
movq 0xd0(%rsp), %rsi
movq 0x128(%rsp), %rdx
leaq 0x98(%rsp), %rdi
callq 0x21f3c0
movq %rax, 0xc8(%rsp)
cmpq $0x0, 0xc8(%rsp)
jne 0x2d027f
movb $0x1, 0xc7(%rsp)
jmp 0x2d028c
movq 0xc8(%rsp), %rdi
callq 0x2261a0
movq 0xd0(%rsp), %rdi
callq 0x22ecb0
movb 0xc7(%rsp), %dl
xorl %eax, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
testb $0x1, %dl
cmovnel %ecx, %eax
addq $0x108, %rsp            # imm = 0x108
popq %rbx
popq %r14
retq
nopl (%rax,%rax)