// File: /workspace/github_c_makefile_star2_O2/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 $0x48, %rsp
movq %rdx, %r14
movq %rsi, %r15
movl %edi, %ebp
callq 0xacb84
movq %rax, %rbx
testq %r14, %r14
je 0x3646b
movq %r14, %rdi
callq 0x89eb7
testb %al, %al
jne 0x3658f
movq %r14, %rdi
callq 0x89eb7
testb %al, %al
jne 0x365b9
leaq 0x2cf5eb(%rip), %rdi    # 0x305a5d
leaq 0x2bb962(%rip), %rsi    # 0x2f1ddb
callq 0x97df5
movq %rax, %r12
leaq 0x8(%rsp), %r13
pushq $0x2
popq %rdx
movq %rax, %rdi
movq %r13, %rsi
movq %rbx, %rcx
callq 0x1461a0
leaq 0x40(%rsp), %rdx
leaq 0x2f96cd(%rip), %rdi    # 0x32fb70
leaq 0x2bb191(%rip), %rsi    # 0x2f163b
xorl %ecx, %ecx
callq 0x9a997
movq %r12, %rdi
movq %rax, %rsi
callq 0x97f31
pushq $0x1
popq %rdx
movq %r12, %rdi
movl %edx, %esi
callq 0x98c6b
leaq 0x7c780(%rip), %r8      # 0xb2c50
leaq 0x4(%rsp), %rsi
movq %r12, %rdi
movl %ebp, %edx
movq %r15, %rcx
movq %r14, %r9
callq 0x98cb0
movl %eax, %ebp
movq %r13, %rdi
xorl %esi, %esi
callq 0x14627d
movq %r12, %rdi
callq 0x9a844
cmpl $0x1, %ebp
je 0x36507
cmpl $0x2, %ebp
jne 0x3650c
xorl %ebp, %ebp
jmp 0x3656d
movb $0x1, %bpl
jmp 0x3656d
movslq 0x4(%rsp), %rax
movq (%r15,%rax,8), %rsi
movq %rbx, %rdi
callq 0xacc8b
leaq 0x8(%rsp), %r12
movzbl 0x38(%r12), %edi
movq 0x401981(%rip), %rax    # 0x437eb0
movq (%rax), %rdx
leaq 0x2b039b(%rip), %rsi    # 0x2e68d4
callq 0x92b50
movq %rax, %r15
movq %r12, %rdi
movq %rax, %rsi
movq %r14, %rdx
callq 0x14326b
testq %rax, %rax
sete %bpl
je 0x36560
movq %rax, %rdi
callq 0x146b99
testq %r15, %r15
je 0x3656d
movq %r15, %rdi
callq 0x92fd0
testq %rbx, %rbx
je 0x3657a
movq %rbx, %rdi
callq 0xae103
movzbl %bpl, %eax
negl %eax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x4019d2(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2aea73(%rip), %rsi    # 0x2e5013
leaq 0x2aec18(%rip), %rdx    # 0x2e51bf
leaq 0x2bb85c(%rip), %rcx    # 0x2f1e0a
leaq 0x2bb86d(%rip), %r8     # 0x2f1e22
pushq $0x37
jmp 0x365e1
movq 0x4019a8(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x2aea49(%rip), %rsi    # 0x2e5013
leaq 0x2aebee(%rip), %rdx    # 0x2e51bf
leaq 0x2bb86e(%rip), %rcx    # 0x2f1e46
leaq 0x2bb843(%rip), %r8     # 0x2f1e22
pushq $0x61
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390
nop