// File: /workspace/github_c_makefile_star2_O1/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:
pushq %rbp
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
movl %ecx, %eax
movq %rsi, %r14
movq %rdi, %rbx
movb 0x38(%rsp), %r15b
movl 0x30(%rsp), %ebp
movq $0x0, 0x70(%rdi)
movl %ecx, 0x88(%rdi)
movl %r8d, 0x94(%rdi)
movq %rdx, 0x10(%rdi)
movl $0x1, %edi
shll %cl, %edi
leal (%rax,%rax), %esi
movl %esi, 0x8c(%rbx)
movl %edi, 0x7c(%rbx)
movl %edi, %ecx
shrl %ecx
movl %ecx, 0x80(%rbx)
movl $0x1, %r10d
movl %esi, %ecx
shll %cl, %r10d
movq %rdx, %r11
movl %eax, %ecx
shrq %cl, %r11
movl $0x1, %r12d
movl %r10d, 0x84(%rbx)
incq %r11
movq %r11, 0xa8(%rbx)
movl %esi, %ecx
shrq %cl, %rdx
movl %r8d, %ecx
shll %cl, %r12d
addq $0x2, %rdx
movq %rdx, 0xb0(%rbx)
movq %r12, 0xb8(%rbx)
decq %r12
movq %r12, 0x48(%rbx)
decl %edi
notq %rdi
movq %rdi, 0x38(%rbx)
decl %r10d
notq %r10
movq %r10, 0x40(%rbx)
movl %eax, 0x90(%rbx)
leal 0x1(%r9), %eax
movl %eax, 0x78(%rbx)
movl %ebp, 0x98(%rbx)
testl %ebp, %ebp
je 0x32202e
movl %r9d, %edi
movl %ebp, %esi
callq 0x10af8d
jmp 0x322030
xorl %eax, %eax
movq %rax, 0xc0(%rbx)
movl 0x78(%rbx), %ecx
leal 0x1(%rcx), %eax
movq 0xb0(%rbx), %rsi
imulq %rcx, %rsi
addq %rax, %rsi
shlq $0x3, %rsi
testb %r15b, %r15b
je 0x32206c
movq 0x10(%rbx), %rax
decq %rax
xorl %edx, %edx
divq 0xb8(%rbx)
leaq (%rsi,%rax,8), %rsi
addq $0x8, %rsi
testl %ebp, %ebp
je 0x32207e
movq 0xc0(%rbx), %rax
shlq $0x4, %rax
addq %rax, %rsi
testb %r15b, %r15b
je 0x3220bb
movabsq $0xffffffffffffffe, %rax # imm = 0xFFFFFFFFFFFFFFE
leaq 0x1(%rax), %rdx
xorl %edi, %edi
cmpq $0x0, 0x18(%r14)
setne %dil
cmovneq %rax, %rdx
negq %rdi
cmpq $0x0, 0x20(%r14)
cmovneq %rdx, %rdi
addq 0x10(%r14), %rdi
shlq $0x4, %rdi
addq %rdi, %rsi
addq $0x10, %rsi
imulq 0xa8(%rbx), %rcx
addq %rsi, %rcx
movq %rcx, 0xa0(%rbx)
popq %rbx
popq %r12
popq %r14
popq %r15
popq %rbp
retq
nop