// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/eis-bwtseq-construct.c
// Function: gt_availBWTSeq
BWTSeq *
gt_availBWTSeq(const struct bwtParam *params, GtLogger *verbosity,
            GtError *err)
{
  struct BWTSeq *bwtSeq = NULL;
  Suffixarray suffixArray;
  GtUword len;
  gt_assert(params && err);
  gt_error_check(err);
  if (streamsuffixarray(&suffixArray, SARR_SUFTAB | SARR_BWTTAB
                        | SARR_ESQTAB, gt_str_get(params->projectName),
                        verbosity, err))
  {
    gt_error_unset(err);
    if (streamsuffixarray(&suffixArray, SARR_SUFTAB | SARR_ESQTAB,
                          gt_str_get(params->projectName), verbosity, err))
    {
      GtEncseqMetadata *emd = NULL;
      gt_error_unset(err);
      emd = gt_encseq_metadata_new(gt_str_get(params->projectName), err);
      if (emd == NULL)
        return NULL;
      len = gt_encseq_metadata_total_length(emd);
      gt_encseq_metadata_delete(emd);
    } else {
      len = gt_encseq_total_length(suffixArray.encseq) + 1;
    }
  } else {
    len = gt_encseq_total_length(suffixArray.encseq) + 1;
  }
  bwtSeq = gt_availBWTSeqFromSA(params, &suffixArray, len, err);
  gt_freesuffixarray(&suffixArray);
  return bwtSeq;
}

// Assembly:
subq $0x138, %rsp            # imm = 0x138
movq %rdi, 0x128(%rsp)
movq %rsi, 0x120(%rsp)
movq %rdx, 0x118(%rsp)
movq $0x0, 0x110(%rsp)
cmpq $0x0, 0x128(%rsp)
je 0x21e801
cmpq $0x0, 0x118(%rsp)
jne 0x21e839
movq 0x41d798(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2f7801(%rip), %rsi    # 0x516013
leaq 0x355bb8(%rip), %rdx    # 0x5743d1
leaq 0x355afc(%rip), %rcx    # 0x57431c
leaq 0x355b04(%rip), %r8     # 0x57432b
movl $0x25, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x21e83b
jmp 0x21e83d
cmpq $0x0, 0x118(%rsp)
je 0x21e893
movq 0x118(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x21e85b
jmp 0x21e893
movq 0x41d73e(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2f77a7(%rip), %rsi    # 0x516013
leaq 0x2f794c(%rip), %rdx    # 0x5161bf
leaq 0x355aa2(%rip), %rcx    # 0x57431c
leaq 0x355aaa(%rip), %r8     # 0x57432b
movl $0x26, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x21e895
movq 0x128(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x11dee0
movq %rax, %rdx
movq 0x120(%rsp), %rcx
movq 0x118(%rsp), %r8
leaq 0x10(%rsp), %rdi
movl $0xb, %esi
callq 0x233500
cmpl $0x0, %eax
je 0x21e996
movq 0x118(%rsp), %rdi
callq 0xd8ac0
movq 0x128(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x11dee0
movq %rax, %rdx
movq 0x120(%rsp), %rcx
movq 0x118(%rsp), %r8
leaq 0x10(%rsp), %rdi
movl $0x3, %esi
callq 0x233500
cmpl $0x0, %eax
je 0x21e981
movq $0x0, (%rsp)
movq 0x118(%rsp), %rdi
callq 0xd8ac0
movq 0x128(%rsp), %rax
movq 0x20(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x118(%rsp), %rsi
callq 0xd4e10
movq %rax, (%rsp)
cmpq $0x0, (%rsp)
jne 0x21e968
movq $0x0, 0x130(%rsp)
jmp 0x21e9ea
movq (%rsp), %rdi
callq 0xd66d0
movq %rax, 0x8(%rsp)
movq (%rsp), %rdi
callq 0xd6ae0
jmp 0x21e994
movq 0x10(%rsp), %rdi
callq 0xa9d00
addq $0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0x21e9a9
movq 0x10(%rsp), %rdi
callq 0xa9d00
addq $0x1, %rax
movq %rax, 0x8(%rsp)
movq 0x128(%rsp), %rdi
movq 0x8(%rsp), %rdx
movq 0x118(%rsp), %rcx
leaq 0x10(%rsp), %rsi
callq 0x21ea00
movq %rax, 0x110(%rsp)
leaq 0x10(%rsp), %rdi
callq 0x233320
movq 0x110(%rsp), %rax
movq %rax, 0x130(%rsp)
movq 0x130(%rsp), %rax
addq $0x138, %rsp            # imm = 0x138
retq
nopw (%rax,%rax)