// File: /workspace/github_c_makefile_star2_O2/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, %ebx
movq %rdx, %r12
movl %esi, %r15d
movl %edi, %ebp
leaq 0x209f74(%rip), %rsi    # 0x33e686
movl $0xc0, %edi
movl $0x196, %edx            # imm = 0x196
callq 0x93160
movq %rax, %r14
xorps %xmm0, %xmm0
movups %xmm0, (%rax)
movups %xmm0, 0x10(%rax)
movups %xmm0, 0x20(%rax)
andq $0x0, 0xb8(%rax)
movups %xmm0, 0xa8(%rax)
movl %r15d, 0x48(%rax)
movb %bl, 0xa1(%rax)
movl %ebp, %edi
movl %r15d, %esi
callq 0x1649cf
movq %rax, 0x70(%r14)
movl %ebp, 0x4c(%r14)
movq %rax, %rdi
movl %r15d, %esi
callq 0x135c92
movq %rax, 0x40(%r14)
movl %ebp, %edi
movl %r15d, %esi
callq 0x164aec
movq %rax, 0x78(%r14)
movq 0x70(%r14), %rax
movl %r15d, %r13d
movq (%rax,%r13,8), %rcx
movq %rcx, 0x58(%r14)
leal -0x1(%r15), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, 0x60(%r14)
movl %ebp, %edi
movl %r15d, %esi
callq 0x164b59
movq %rax, 0x68(%r14)
callq 0x6be41
movq %rax, 0x38(%r14)
shrq $0x20, %r12
setne 0xa2(%r14)
testb $0x7, %al
jne 0x134815
movb $0x0, 0xa0(%r14)
leaq 0x209ebb(%rip), %rsi    # 0x33e686
movq %r13, %rdi
movl $0x1ae, %edx            # imm = 0x1AE
callq 0x93160
movq %rax, 0x80(%r14)
movq 0x58(%r14), %rsi
movq 0x60(%r14), %rdx
movzbl 0xa2(%r14), %ecx
movq 0x70(%r14), %r8
movzbl %bl, %r9d
movl %r15d, %edi
callq 0x1343dc
movq %rax, 0x30(%r14)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x30374c(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1b07ed(%rip), %rsi    # 0x2e5013
leaq 0x20a2c7(%rip), %rdx    # 0x33eaf4
leaq 0x20a2e9(%rip), %rcx    # 0x33eb1d
leaq 0x209e4b(%rip), %r8     # 0x33e686
movl $0x1ac, %r9d            # imm = 0x1AC
xorl %eax, %eax
callq 0x17a50
callq 0x17390