// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/initbasepower.c
// Function: gt_initmultimappower
GtCodetype **gt_initmultimappower(unsigned int numofchars,unsigned int qvalue)
{
  int offset;
  unsigned int mapindex;
  GtCodetype thepower = (GtCodetype) 1, *mmptr, **multimappower;

  gt_array2dim_malloc(multimappower,(GtUword) qvalue,numofchars);
  for (offset = (int) (qvalue - 1); offset>=0; offset--)
  {
    mmptr = multimappower[offset];
    mmptr[0] = 0;
    for (mapindex = 1U; mapindex < numofchars; mapindex++)
    {
      gt_assert(mmptr[mapindex-1] <= GT_CODETYPE_MAX - thepower);
      mmptr[mapindex] = mmptr[mapindex-1] + thepower;
    }
    gt_assert(thepower <= GT_CODETYPE_MAX/(GtUword) numofchars);
    thepower *= numofchars;
  }
  return multimappower;
}

// Assembly:
subq $0x38, %rsp
movl %edi, 0x34(%rsp)
movl %esi, 0x30(%rsp)
movq $0x1, 0x20(%rsp)
movl 0x30(%rsp), %eax
movl %eax, %edi
shlq $0x3, %rdi
leaq 0x31dd7e(%rip), %rsi    # 0x57b704
movl $0x5c, %edx
callq 0xe80f0
movq %rax, 0x10(%rsp)
movl 0x30(%rsp), %eax
movl %eax, %edi
shlq $0x3, %rdi
movl 0x34(%rsp), %eax
imulq %rax, %rdi
leaq 0x31dd56(%rip), %rsi    # 0x57b704
movl $0x5c, %edx
callq 0xe80f0
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, (%rax)
movq $0x1, 0x8(%rsp)
movq 0x8(%rsp), %rax
movl 0x30(%rsp), %ecx
cmpq %rcx, %rax
jae 0x25da15
movq 0x10(%rsp), %rax
movq 0x8(%rsp), %rcx
subq $0x1, %rcx
movq (%rax,%rcx,8), %rdx
movl 0x34(%rsp), %eax
shlq $0x3, %rax
addq %rax, %rdx
movq 0x10(%rsp), %rax
movq 0x8(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x8(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0x25d9cc
movl 0x30(%rsp), %eax
subl $0x1, %eax
movl %eax, 0x2c(%rsp)
cmpl $0x0, 0x2c(%rsp)
jl 0x25db75
movq 0x10(%rsp), %rax
movslq 0x2c(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
movq $0x0, (%rax)
movl $0x1, 0x28(%rsp)
movl 0x28(%rsp), %eax
cmpl 0x34(%rsp), %eax
jae 0x25daf3
jmp 0x25da62
movq 0x18(%rsp), %rax
movl 0x28(%rsp), %ecx
subl $0x1, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rax
movq $-0x1, %rcx
subq 0x20(%rsp), %rcx
cmpq %rcx, %rax
jbe 0x25dabd
movq 0x3de514(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2b857d(%rip), %rsi    # 0x516013
leaq 0x31dd0d(%rip), %rdx    # 0x57b7aa
leaq 0x31dd36(%rip), %rcx    # 0x57b7da
leaq 0x31dc59(%rip), %r8     # 0x57b704
movl $0x63, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x25dabf
movq 0x18(%rsp), %rax
movl 0x28(%rsp), %ecx
subl $0x1, %ecx
movl %ecx, %ecx
movq (%rax,%rcx,8), %rdx
addq 0x20(%rsp), %rdx
movq 0x18(%rsp), %rax
movl 0x28(%rsp), %ecx
movq %rdx, (%rax,%rcx,8)
movl 0x28(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x28(%rsp)
jmp 0x25da52
jmp 0x25daf5
movq 0x20(%rsp), %rax
movq %rax, (%rsp)
movl 0x34(%rsp), %eax
movl %eax, %ecx
movq $-0x1, %rax
xorl %edx, %edx
divq %rcx
movq %rax, %rcx
movq (%rsp), %rax
cmpq %rcx, %rax
jbe 0x25db54
movq 0x3de47d(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2b84e6(%rip), %rsi    # 0x516013
leaq 0x31dcbb(%rip), %rdx    # 0x57b7ef
leaq 0x31dc9f(%rip), %rcx    # 0x57b7da
leaq 0x31dbc2(%rip), %r8     # 0x57b704
movl $0x66, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x25db56
movl 0x34(%rsp), %eax
imulq 0x20(%rsp), %rax
movq %rax, 0x20(%rsp)
movl 0x2c(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0x2c(%rsp)
jmp 0x25da20
movq 0x10(%rsp), %rax
addq $0x38, %rsp
retq
nop