// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/tools/gt_packedindex_trsuftab.c
// Function: gt_packedindex_trsuftab
extern int
gt_packedindex_trsuftab(int argc, const char *argv[], GtError *err)
{
  struct trSufTabOptions params;
  BWTSeq *bwtSeq = NULL;
  GtStr *inputProject = NULL;
  int parsedArgs;
  bool had_err = false;
  GtLogger *logger = NULL;
  inputProject = gt_str_new();

  do {
    gt_error_check(err);
    {
      bool exitNow = false;
      switch (parseTrSufTabOptions(&parsedArgs, argc, argv, &params,
                                   inputProject, err))
      {
      case GT_OPTION_PARSER_OK:
        break;
      case GT_OPTION_PARSER_ERROR:
        had_err = true;
        exitNow = true;
        break;
      case GT_OPTION_PARSER_REQUESTS_EXIT:
        exitNow = true;
        break;
      }
      if (exitNow)
        break;
    }
    gt_str_set(inputProject, argv[parsedArgs]);
    logger = gt_logger_new(params.verboseOutput,
                           GT_LOGGER_DEFLT_PREFIX, stdout);
    bwtSeq = gt_trSuftab2BWTSeq(&params.idx.final, logger, err);
    had_err = bwtSeq == NULL;
    if (had_err)
      break;
  } while (0);
  if (bwtSeq) gt_deleteBWTSeq(bwtSeq);
  if (logger) gt_logger_delete(logger);
  if (inputProject) gt_str_delete(inputProject);
  return had_err?-1:0;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x58, %rsp
movq %rdx, %r14
movq %rsi, 0x10(%rsp)
movl %edi, %ebp
callq 0x1208f8
movq %rax, %r15
testq %r14, %r14
je 0xb4d62
movq %r14, %rdi
callq 0x101a9a
testb %al, %al
jne 0xb4eab
testq %r14, %r14
je 0xb4d62
movq %r14, %rdi
callq 0x101a9a
testb %al, %al
jne 0xb4eb0
leaq 0x2b9fa9(%rip), %rdi    # 0x36ed12
leaq 0x2a6093(%rip), %rsi    # 0x35ae03
callq 0x10cc4e
movq %rax, %r12
leaq 0x18(%rsp), %r13
movq %rax, %rdi
movq %r13, %rsi
movl $0x2, %edx
movq %r15, %rcx
callq 0x1a3b34
leaq 0x50(%rsp), %rdx
leaq 0x2e3ebe(%rip), %rdi    # 0x398c5a
leaq 0x2a58c0(%rip), %rsi    # 0x35a663
xorl %ebx, %ebx
xorl %ecx, %ecx
callq 0x10f451
movq %r12, %rdi
movq %rax, %rsi
callq 0x10cd10
movq %r12, %rdi
movl $0x1, %esi
movl $0x1, %edx
callq 0x10d784
leaq 0x705f8(%rip), %r8      # 0x1253c8
leaq 0xc(%rsp), %rsi
movq %r12, %rdi
movl %ebp, %edx
movq 0x10(%rsp), %rcx
movq %r14, %r9
callq 0x10d796
movl %eax, %ebp
movq %r13, %rdi
xorl %esi, %esi
callq 0x1a3c1f
movq %r12, %rdi
callq 0x10f2d0
cmpl $0x2, %ebp
je 0xb4e10
movl $0x0, %eax
cmpl $0x1, %ebp
jne 0xb4e14
movb $0x1, %bl
movb $0x1, %al
jmp 0xb4e14
movb $0x1, %al
xorl %ebx, %ebx
testb %al, %al
movq %r15, %r13
je 0xb4e22
xorl %edi, %edi
xorl %r15d, %r15d
jmp 0xb4e73
movslq 0xc(%rsp), %rax
movq 0x10(%rsp), %rcx
movq (%rcx,%rax,8), %rsi
movq %r13, %rdi
callq 0x1209e4
leaq 0x18(%rsp), %r12
movzbl 0x38(%r12), %edi
movq 0x40f09e(%rip), %rax    # 0x4c3ee8
movq (%rax), %rdx
leaq 0x29aa80(%rip), %rsi    # 0x34f8d4
callq 0x108ed0
movq %rax, %r15
movq %r12, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x1a148d
movq %rax, %rdi
testq %rax, %rax
sete %bl
testq %rdi, %rdi
je 0xb4e7d
callq 0x1a430c
testq %r15, %r15
je 0xb4e8a
movq %r15, %rdi
callq 0x10916a
testq %r13, %r13
je 0xb4e97
movq %r13, %rdi
callq 0x121b03
movzbl %bl, %eax
negl %eax
addq $0x58, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x1d29c
callq 0x1d265
nopl (%rax)