// File: /workspace/github_c_makefile_star2_O3/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 0x212f38(%rip), %rsi    # 0x39e326
movl $0xc0, %edi
movl $0x196, %edx            # imm = 0x196
callq 0x104226
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 0x1b62c7
movq %rax, 0x70(%rbx)
movl %r12d, 0x4c(%rbx)
leal -0x1(%r14), %ebp
cmpl $0x3, %r14d
jb 0x18b461
movl $0x1, %edx
xorl %ecx, %ecx
addq (%rax,%rdx,8), %rcx
incq %rdx
cmpq %rdx, %rbp
jne 0x18b453
jmp 0x18b463
xorl %ecx, %ecx
movq %rcx, 0x40(%rbx)
movl %r12d, %edi
movl %r14d, %esi
callq 0x1b6394
movq %rax, 0x78(%rbx)
movq 0x70(%rbx), %rax
movl %r14d, %r13d
movq (%rax,%r13,8), %rcx
movq %rcx, 0x58(%rbx)
movq (%rax,%rbp,8), %rax
movq %rax, 0x60(%rbx)
movl %r12d, %edi
movl %r14d, %esi
callq 0x1b6403
movq %rax, 0x68(%rbx)
callq 0xe3e95
movq %rax, 0x38(%rbx)
shrq $0x20, %r15
setne 0xa2(%rbx)
testb $0x7, %al
jne 0x18b52e
movb $0x0, 0xa0(%rbx)
leaq 0x212e64(%rip), %rsi    # 0x39e326
movq %r13, %rdi
movl $0x1ae, %edx            # imm = 0x1AE
callq 0x104226
movq %rax, 0x80(%rbx)
movb 0xa2(%rbx), %cl
movq 0x58(%rbx), %rax
incq %rax
cmpb $0x0, 0x4(%rsp)
je 0x18b512
addq 0x60(%rbx), %rax
cmpl $0x3, %r14d
jb 0x18b50d
movq 0x70(%rbx), %rsi
movl $0x1, %edi
xorl %edx, %edx
addq (%rsi,%rdi,8), %rdx
incq %rdi
cmpq %rdi, %rbp
jne 0x18b4ff
jmp 0x18b50f
xorl %edx, %edx
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 0x5ba92