// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/fmi-mkindex.c
// Function: runmkfmindex
static int runmkfmindex(Mkfmcallinfo *mkfmcallinfo,GtLogger *logger,
                        GtError *err)
{
  Fmindex fm;
  unsigned int log2bsize,
               log2markdist;
  bool haserr = false;
  GtSpecialcharinfo specialcharinfo;

  gt_error_check(err);
  GT_INITARRAY(&fm.specpos, GtPairBwtidx);
  fm.bfreq = NULL;
  fm.superbfreq = NULL;
  fm.tfreq = NULL;
  fm.markpostable = NULL;
  fm.boundarray = NULL;
  fm.suffixlength = 0;

  if (levedescl2levelnum(gt_str_get(mkfmcallinfo->leveldesc),
                        &log2bsize,
                        &log2markdist) != 0)
  {
    gt_error_set(err,"undefined level \"%s\"",
                      gt_str_get(mkfmcallinfo->leveldesc));
    haserr = true;
  }
  if (!haserr && gt_sufbwt2fmindex(&fm,
                                   &specialcharinfo,
                                   log2bsize,
                                   log2markdist,
                                   gt_str_get(mkfmcallinfo->outfmindex),
                                   mkfmcallinfo->indexnametab,
                                   mkfmcallinfo->noindexpos ? false : true,
                                   logger,
                                   err) != 0)
  {
    haserr = true;
  }
  if (!haserr && gt_saveFmindex(gt_str_get(mkfmcallinfo->outfmindex),
                                &fm,
                                &specialcharinfo,
                                mkfmcallinfo->noindexpos ? false : true,
                                err) < 0)
  {
    haserr = true;
  }
  freeconstructedfmindex(&fm);
  return haserr ? -1 : 0;
}

// Assembly:
subq $0x198, %rsp            # imm = 0x198
movq %rdi, 0x190(%rsp)
movq %rsi, 0x188(%rsp)
movq %rdx, 0x180(%rsp)
movb $0x0, 0xa7(%rsp)
cmpq $0x0, 0x180(%rsp)
je 0x24d34d
movq 0x180(%rsp), %rdi
callq 0xd8a60
testb $0x1, %al
jne 0x24d315
jmp 0x24d34d
movq 0x3eec84(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2c8ced(%rip), %rsi    # 0x516013
leaq 0x2c8e92(%rip), %rdx    # 0x5161bf
leaq 0x32bd41(%rip), %rcx    # 0x579075
leaq 0x32bb8a(%rip), %r8     # 0x578ec5
movl $0xc1, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x24d34f
jmp 0x24d351
movq $0x0, 0x100(%rsp)
movq $0x0, 0x110(%rsp)
movq $0x0, 0x108(%rsp)
movq $0x0, 0xb8(%rsp)
movq $0x0, 0xd0(%rsp)
movq $0x0, 0xc8(%rsp)
movq $0x0, 0xd8(%rsp)
movq $0x0, 0x178(%rsp)
movl $0x0, 0x148(%rsp)
movq 0x190(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
leaq 0xac(%rsp), %rsi
leaq 0xa8(%rsp), %rdx
callq 0x24d840
cmpl $0x0, %eax
je 0x24d426
movq 0x180(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x190(%rsp), %rax
movq 0x10(%rax), %rdi
callq 0x11dee0
movq 0x28(%rsp), %rdi
movq %rax, %rdx
leaq 0x32bc6b(%rip), %rsi    # 0x579082
movb $0x0, %al
callq 0xd88c0
movb $0x1, 0xa7(%rsp)
testb $0x1, 0xa7(%rsp)
jne 0x24d4d5
movl 0xac(%rsp), %eax
movl %eax, 0x20(%rsp)
movl 0xa8(%rsp), %eax
movl %eax, 0x24(%rsp)
movq 0x190(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x11dee0
movl 0x20(%rsp), %edx
movl 0x24(%rsp), %ecx
movq %rax, %r8
movq 0x190(%rsp), %rax
movq 0x8(%rax), %r9
movq 0x190(%rsp), %rax
movb (%rax), %dil
movl $0x1, %eax
xorl %esi, %esi
testb $0x1, %dil
cmovnel %esi, %eax
cmpl $0x0, %eax
setne %sil
movq 0x188(%rsp), %rdi
movq 0x180(%rsp), %r10
movq %rsp, %rax
movq %r10, 0x10(%rax)
movq %rdi, 0x8(%rax)
movzbl %sil, %esi
andl $0x1, %esi
movl %esi, (%rax)
leaq 0xb0(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x24de80
cmpl $0x0, %eax
je 0x24d4d5
movb $0x1, 0xa7(%rsp)
testb $0x1, 0xa7(%rsp)
jne 0x24d53d
movq 0x190(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0x11dee0
movq %rax, %rdi
movq 0x190(%rsp), %rax
movb (%rax), %dl
movl $0x1, %eax
xorl %ecx, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
cmpl $0x0, %eax
setne %al
movq 0x180(%rsp), %r8
movzbl %al, %ecx
andl $0x1, %ecx
leaq 0xb0(%rsp), %rsi
leaq 0x30(%rsp), %rdx
callq 0x24da10
cmpl $0x0, %eax
jge 0x24d53d
movb $0x1, 0xa7(%rsp)
leaq 0xb0(%rsp), %rdi
callq 0x24d930
movb 0xa7(%rsp), %dl
xorl %eax, %eax
movl $0xffffffff, %ecx       # imm = 0xFFFFFFFF
testb $0x1, %dl
cmovnel %ecx, %eax
addq $0x198, %rsp            # imm = 0x198
retq
nopw %cs:(%rax,%rax)