// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x88, %rsp
movl %edi, 0x84(%rsp)
movq %rsi, 0x78(%rsp)
movq %rdx, 0x70(%rsp)
movq $0x0, 0x28(%rsp)
movq $0x0, 0x20(%rsp)
movb $0x0, 0x1b(%rsp)
movq $0x0, 0x10(%rsp)
callq 0x11d4a0
movq %rax, 0x20(%rsp)
jmp 0x49b94
cmpq $0x0, 0x70(%rsp)
je 0x49be4
movq 0x70(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x49bac
jmp 0x49be4
movq 0x5f23ed(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4cc456(%rip), %rsi    # 0x516013
leaq 0x4cc5fb(%rip), %rdx    # 0x5161bf
leaq 0x4d92af(%rip), %rcx    # 0x522e7a
leaq 0x4d92c0(%rip), %r8     # 0x522e92
movl $0x37, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x49be6
movb $0x0, 0xf(%rsp)
movl 0x84(%rsp), %esi
movq 0x78(%rsp), %rdx
movq 0x20(%rsp), %r8
movq 0x70(%rsp), %r9
leaq 0x1c(%rsp), %rdi
leaq 0x30(%rsp), %rcx
callq 0x49d10
movl %eax, %ecx
movl %ecx, 0x8(%rsp)
testl %eax, %eax
je 0x49c32
jmp 0x49c1c
movl 0x8(%rsp), %eax
subl $0x1, %eax
je 0x49c34
jmp 0x49c27
movl 0x8(%rsp), %eax
subl $0x2, %eax
je 0x49c40
jmp 0x49c45
jmp 0x49c45
movb $0x1, 0x1b(%rsp)
movb $0x1, 0xf(%rsp)
jmp 0x49c45
movb $0x1, 0xf(%rsp)
testb $0x1, 0xf(%rsp)
je 0x49c4e
jmp 0x49cbd
movq 0x20(%rsp), %rdi
movq 0x78(%rsp), %rax
movslq 0x1c(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x11d650
movb 0x68(%rsp), %al
movq 0x5f22c7(%rip), %rcx    # 0x63bf38
movq (%rcx), %rdx
leaq 0x4cdc71(%rip), %rsi    # 0x5178ec
andb $0x1, %al
movzbl %al, %edi
callq 0xe7870
movq %rax, 0x10(%rsp)
leaq 0x30(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x70(%rsp), %rdx
callq 0x21eb70
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x28(%rsp)
sete %al
andb $0x1, %al
movb %al, 0x1b(%rsp)
testb $0x1, 0x1b(%rsp)
je 0x49cbb
jmp 0x49cbd
jmp 0x49cbd
cmpq $0x0, 0x28(%rsp)
je 0x49ccf
movq 0x28(%rsp), %rdi
callq 0x2261a0
cmpq $0x0, 0x10(%rsp)
je 0x49ce1
movq 0x10(%rsp), %rdi
callq 0xe7ed0
cmpq $0x0, 0x20(%rsp)
je 0x49cf3
movq 0x20(%rsp), %rdi
callq 0x11f560
movb 0x1b(%rsp), %dl
xorl %eax, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
testb $0x1, %dl
cmovnel %ecx, %eax
addq $0x88, %rsp
retq
nopl (%rax)