// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/match/bcktab.c
// Function: gt_bcktab_new_withinit
static GtBcktab *gt_bcktab_new_withinit(unsigned int numofchars,
                                        unsigned int prefixlength,
                                        GtUword maxvalue,
                                        bool withspecialsuffixes)
{
  GtBcktab *bcktab;
  uint64_t sizeofrep_uint64_t;

  bcktab = gt_malloc(sizeof *bcktab);
  bcktab->mappedptr = NULL;
  bcktab->mappedleftborder = NULL;
  bcktab->leftborder.ulongbounds = NULL;
  bcktab->leftborder.uintbounds = NULL;
  bcktab->mappedcountspecialcodes = NULL;
  bcktab->ulongcountspecialcodes = NULL;
  bcktab->uintcountspecialcodes = NULL;
  bcktab->ulongdistpfxidx = NULL;
  bcktab->uintdistpfxidx = NULL;
  bcktab->prefixlength = prefixlength;
  bcktab->withspecialsuffixes = withspecialsuffixes;
  bcktab->basepower = gt_initbasepower(numofchars,prefixlength);
  bcktab->numofchars = numofchars;
  bcktab->numofdistpfxidxcounters
    = gt_bcktab_numofdistpfxidxcounters(bcktab->basepower,prefixlength);
  bcktab->filltable = gt_initfilltable(numofchars,prefixlength);
  bcktab->numofallcodes = bcktab->basepower[prefixlength];
  bcktab->numofspecialcodes = bcktab->basepower[prefixlength-1];
  bcktab->multimappower = gt_initmultimappower(numofchars,prefixlength);
  bcktab->pagesize = gt_pagesize();
  bcktab->useulong = gt_bcktab_useulong(maxvalue);
  gt_assert(bcktab->pagesize % sizeof (GtUword) == 0);
  bcktab->allocated = false;
  bcktab->qgrambuffer = gt_malloc(sizeof (*bcktab->qgrambuffer) * prefixlength);
  sizeofrep_uint64_t = gt_bcktab_sizeoftable_generic(
                                          prefixlength,
                                          bcktab->numofallcodes,
                                          bcktab->numofspecialcodes,
                                          bcktab->useulong,
                                          bcktab->basepower,
                                          true,
                                          withspecialsuffixes);
  bcktab->sizeofrep = CALLCASTFUNC(uint64_t,unsigned_long,sizeofrep_uint64_t);
  return bcktab;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, %ebp
movq %rdx, %r15
movl %esi, %r14d
movl %edi, %r12d
leaq 0x213dc5(%rip), %rsi    # 0x3a781e
movl $0xc0, %edi
movl $0x196, %edx            # imm = 0x196
callq 0x1092b2
movq %rax, %rbx
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
movups %xmm0, 0xa8(%rax)
movq $0x0, 0xb8(%rax)
movl %r14d, 0x48(%rax)
movl %ebp, 0x4(%rsp)
movb %bpl, 0xa1(%rax)
movl %r12d, %edi
movl %r14d, %esi
callq 0x1bed47
movq %rax, 0x70(%rbx)
movl %r12d, 0x4c(%rbx)
cmpl $0x3, %r14d
jb 0x193ad3
leal -0x1(%r14), %ecx
cmpl $0x2, %ecx
jb 0x193ad3
movl %ecx, %edx
movl $0x1, %esi
xorl %ecx, %ecx
addq (%rax,%rsi,8), %rcx
incq %rsi
cmpq %rsi, %rdx
jne 0x193ac5
jmp 0x193ad5
xorl %ecx, %ecx
movq %rcx, 0x40(%rbx)
movl %r12d, %edi
movl %r14d, %esi
callq 0x1bee14
movq %rax, 0x78(%rbx)
movq 0x70(%rbx), %rax
movl %r14d, %r13d
movq (%rax,%r13,8), %rcx
movq %rcx, 0x58(%rbx)
leal -0x1(%r14), %ebp
movq (%rax,%rbp,8), %rax
movq %rax, 0x60(%rbx)
movl %r12d, %edi
movl %r14d, %esi
callq 0x1bee83
movq %rax, 0x68(%rbx)
callq 0xe837d
movq %rax, 0x38(%rbx)
shrq $0x20, %r15
setne 0xa2(%rbx)
testb $0x7, %al
jne 0x193ba4
movb $0x0, 0xa0(%rbx)
leaq 0x213ce6(%rip), %rsi    # 0x3a781e
movq %r13, %rdi
movl $0x1ae, %edx            # imm = 0x1AE
callq 0x1092b2
movq %rax, 0x80(%rbx)
movb 0xa2(%rbx), %cl
movq 0x58(%rbx), %rax
incq %rax
cmpb $0x0, 0x4(%rsp)
je 0x193b88
addq 0x60(%rbx), %rax
cmpl $0x3, %r14d
jae 0x193b6e
xorl %edx, %edx
jmp 0x193b85
movq 0x70(%rbx), %rsi
movl $0x1, %edi
xorl %edx, %edx
addq (%rsi,%rdi,8), %rdx
incq %rdi
cmpq %rdi, %rbp
jne 0x193b79
addq %rdx, %rax
orb $0x2, %cl
shlq %cl, %rax
movq %rax, 0x30(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x5cdb0