// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/fmi-keyval.c
// Function: gt_computefmkeyvalues
void gt_computefmkeyvalues (Fmindex *fm,
                            const GtSpecialcharinfo *specialcharinfo,
                            GtUword bwtlength,
                            unsigned int log2bsize,
                            unsigned int log2markdist,
                            unsigned int numofchars,
                            unsigned int suffixlength,
                            bool storeindexpos)
{
  fm->mappedptr = NULL;
  fm->log2bsize = log2bsize;
  fm->log2markdist = log2markdist;
  fm->bwtlength = bwtlength;
  fm->log2superbsize = GT_MULT2 (fm->log2bsize);
  fm->bsize = (unsigned int) GT_POW2 (fm->log2bsize);
  fm->bsizehalve = GT_DIV2(fm->bsize);
  fm->superbsize = (unsigned int) GT_POW2 (fm->log2superbsize);
  fm->nofblocks = (GtUword) (fm->bwtlength / fm->bsize) + 1;
  fm->nofsuperblocks = (GtUword) (fm->bwtlength / fm->superbsize) + 2;
  fm->markdist = (GtUword) GT_POW2 (fm->log2markdist);
  fm->markdistminus1 = (GtUword) (fm->markdist - 1);
  fm->negatebsizeones = ~ (GtUword) (fm->bsize - 1);
  fm->negatesuperbsizeones = ~ (GtUword) (fm->superbsize - 1);
  fm->log2superbsizeminuslog2bsize = fm->log2superbsize - fm->log2bsize;
  fm->mapsize = numofchars+1;
  fm->suffixlength = suffixlength;
  if (fm->suffixlength > 0)
  {
    fm->numofcodes = gt_power_for_small_exponents(fm->mapsize-1,
                                                  fm->suffixlength);
  } else
  {
    fm->numofcodes = 0;
  }
  fm->sizeofindex = determinefmindexsize (fm,
                                          specialcharinfo,
                                          suffixlength,
                                          storeindexpos);
}

// Assembly:
subq $0x28, %rsp
movb 0x38(%rsp), %al
movl 0x30(%rsp), %r10d
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movl %ecx, 0xc(%rsp)
movl %r8d, 0x8(%rsp)
movl %r9d, 0x4(%rsp)
andb $0x1, %al
movb %al, 0x3(%rsp)
movq 0x20(%rsp), %rax
movq $0x0, 0x70(%rax)
movl 0xc(%rsp), %ecx
movq 0x20(%rsp), %rax
movl %ecx, 0x88(%rax)
movl 0x8(%rsp), %ecx
movq 0x20(%rsp), %rax
movl %ecx, 0x94(%rax)
movq 0x10(%rsp), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x20(%rsp), %rax
movl 0x88(%rax), %ecx
shll %ecx
movq 0x20(%rsp), %rax
movl %ecx, 0x8c(%rax)
movq 0x20(%rsp), %rax
movl 0x88(%rax), %ecx
movl $0x1, %eax
shll %cl, %eax
movl %eax, %ecx
movq 0x20(%rsp), %rax
movl %ecx, 0x7c(%rax)
movq 0x20(%rsp), %rax
movl 0x7c(%rax), %ecx
shrl %ecx
movq 0x20(%rsp), %rax
movl %ecx, 0x80(%rax)
movq 0x20(%rsp), %rax
movl 0x8c(%rax), %ecx
movl $0x1, %eax
shll %cl, %eax
movl %eax, %ecx
movq 0x20(%rsp), %rax
movl %ecx, 0x84(%rax)
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x20(%rsp), %rcx
movl 0x7c(%rcx), %ecx
xorl %edx, %edx
divq %rcx
movq %rax, %rcx
addq $0x1, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0xa8(%rax)
movq 0x20(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x20(%rsp), %rcx
movl 0x84(%rcx), %ecx
xorl %edx, %edx
divq %rcx
movq %rax, %rcx
addq $0x2, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0xb0(%rax)
movq 0x20(%rsp), %rax
movl 0x94(%rax), %ecx
movl $0x1, %eax
shll %cl, %eax
movl %eax, %eax
movl %eax, %ecx
movq 0x20(%rsp), %rax
movq %rcx, 0xb8(%rax)
movq 0x20(%rsp), %rax
movq 0xb8(%rax), %rcx
subq $0x1, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x48(%rax)
movq 0x20(%rsp), %rax
movl 0x7c(%rax), %eax
subl $0x1, %eax
movl %eax, %eax
movl %eax, %ecx
xorq $-0x1, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x38(%rax)
movq 0x20(%rsp), %rax
movl 0x84(%rax), %eax
subl $0x1, %eax
movl %eax, %eax
movl %eax, %ecx
xorq $-0x1, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x40(%rax)
movq 0x20(%rsp), %rax
movl 0x8c(%rax), %ecx
movq 0x20(%rsp), %rax
subl 0x88(%rax), %ecx
movq 0x20(%rsp), %rax
movl %ecx, 0x90(%rax)
movl 0x4(%rsp), %ecx
addl $0x1, %ecx
movq 0x20(%rsp), %rax
movl %ecx, 0x78(%rax)
movl 0x30(%rsp), %ecx
movq 0x20(%rsp), %rax
movl %ecx, 0x98(%rax)
movq 0x20(%rsp), %rax
cmpl $0x0, 0x98(%rax)
jbe 0x4c15d5
movq 0x20(%rsp), %rax
movl 0x78(%rax), %edi
subl $0x1, %edi
movq 0x20(%rsp), %rax
movl 0x98(%rax), %esi
callq 0xec720
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0xc0(%rax)
jmp 0x4c15e5
movq 0x20(%rsp), %rax
movq $0x0, 0xc0(%rax)
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
movl 0x30(%rsp), %edx
movb 0x3(%rsp), %al
andb $0x1, %al
movzbl %al, %ecx
callq 0x4c1620
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0xa0(%rax)
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)