// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/bcktab.c
// Function: gt_bcktab_new
GtBcktab *gt_bcktab_new(unsigned int numofchars,
                        unsigned int prefixlength,
                        GtUword maxvalue,
                        bool storespecialcodes,
                        bool withspecialsuffixes,
                        GtLogger *logger,
                        GtError *err)
{
  GtBcktab *bcktab;
  bool haserr = false;

  bcktab = gt_bcktab_new_withinit(numofchars,prefixlength,maxvalue,
                                  withspecialsuffixes);
  bcktab->allocated = true;
  if (storespecialcodes && bcktab->numofallcodes > 0 &&
      bcktab->numofallcodes-1 > (GtUword) GT_MAXCODEVALUE)
  {
    gt_error_set(err,"alphasize^prefixlength-1 = " FormatGtCodetype
                     " does not fit into %u"
                     " bits: choose smaller value for prefixlength",
                     bcktab->numofallcodes-1,
                     GT_CODEBITS);
    haserr = true;
  }
  if (!haserr)
  {
    size_t allocsize_bounds, allocsize_countspecialcodes = 0;
    if (bcktab->useulong)
    {
      allocsize_bounds = sizeof (*bcktab->leftborder.ulongbounds) *
                         (bcktab->numofallcodes+1);
      bcktab->leftborder.ulongbounds = gt_malloc(allocsize_bounds);
      memset(bcktab->leftborder.ulongbounds,0,allocsize_bounds);
      if (withspecialsuffixes)
      {
        allocsize_countspecialcodes = sizeof (*bcktab->ulongcountspecialcodes) *
                                      bcktab->numofspecialcodes;
        bcktab->ulongcountspecialcodes = gt_malloc(allocsize_countspecialcodes);
        memset(bcktab->ulongcountspecialcodes,0,allocsize_countspecialcodes);
      }
    } else
    {
      allocsize_bounds = sizeof (*bcktab->leftborder.uintbounds) *
                         (bcktab->numofallcodes+1);
      bcktab->leftborder.uintbounds = gt_malloc(allocsize_bounds);
      memset(bcktab->leftborder.uintbounds,0,allocsize_bounds);
      if (withspecialsuffixes)
      {
        allocsize_countspecialcodes = sizeof (*bcktab->uintcountspecialcodes) *
                                      bcktab->numofspecialcodes;
        bcktab->uintcountspecialcodes = gt_malloc(allocsize_countspecialcodes);
        memset(bcktab->uintcountspecialcodes,0,allocsize_countspecialcodes);
      }
    }
    gt_logger_log(logger,"sizeof (leftborder)="GT_WU" bytes",
                (GtUword) allocsize_bounds);
    if (withspecialsuffixes)
    {
      gt_logger_log(logger,"sizeof (countspecialcodes)="GT_WU" bytes",
                (GtUword) allocsize_countspecialcodes);
      allocdistpfxidxcounts(bcktab,prefixlength,logger);
    }
    gt_logger_log(logger,"sizeof (bcktab)=" Formatuint64_t " bytes",
              PRINTuint64_tcast(gt_bcktab_sizeoftable(numofchars,
                                                      prefixlength,
                                                      maxvalue,
                                                      withspecialsuffixes)));
  }
  if (haserr)
  {
    gt_bcktab_delete(bcktab);
    return NULL;
  }
  return bcktab;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %r14
movl %r8d, %ebp
movl %ecx, %r15d
movq %rdx, %r13
movl %esi, %r12d
movl %edi, 0xc(%rsp)
movl %r8d, %ecx
callq 0x1346f6
movq %rax, %rbx
movb $0x1, 0xa0(%rax)
testl %r15d, %r15d
je 0x134494
movq 0x58(%rbx), %rdx
testq %rdx, %rdx
je 0x134494
decq %rdx
cmpq $0xfffffff, %rdx        # imm = 0xFFFFFFF
jbe 0x134494
movq 0x50(%rsp), %rdi
leaq 0x20a274(%rip), %rsi    # 0x33e6ef
pushq $0x1c
popq %rcx
xorl %eax, %eax
callq 0x89dbb
movq %rbx, %rdi
callq 0x13484d
xorl %ebx, %ebx
jmp 0x1346ac
movq %r13, 0x10(%rsp)
movq 0x58(%rbx), %rax
cmpb $0x1, 0xa2(%rbx)
jne 0x134501
leaq 0x8(,%rax,8), %r15
leaq 0x20a1d1(%rip), %rsi    # 0x33e686
movq %r15, %rdi
movl $0x1da, %edx            # imm = 0x1DA
callq 0x93160
movq %rax, 0x8(%rbx)
xorl %r13d, %r13d
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x17380
testb %bpl, %bpl
je 0x134562
movq 0x60(%rbx), %r13
shlq $0x3, %r13
leaq 0x20a198(%rip), %rsi    # 0x33e686
movq %r13, %rdi
movl $0x1e0, %edx            # imm = 0x1E0
callq 0x93160
movq %rax, 0x20(%rbx)
jmp 0x134555
leaq 0x4(,%rax,4), %r15
leaq 0x20a176(%rip), %rsi    # 0x33e686
movq %r15, %rdi
movl $0x1e7, %edx            # imm = 0x1E7
callq 0x93160
movq %rax, (%rbx)
xorl %r13d, %r13d
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x17380
testb %bpl, %bpl
je 0x134562
movq 0x60(%rbx), %r13
shlq $0x2, %r13
leaq 0x20a142(%rip), %rsi    # 0x33e686
movq %r13, %rdi
movl $0x1ed, %edx            # imm = 0x1ED
callq 0x93160
movq %rax, 0x10(%rbx)
movq %rax, %rdi
xorl %esi, %esi
movq %r13, %rdx
callq 0x17380
leaq 0x20a1e6(%rip), %rsi    # 0x33e74f
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x92e71
testb %bpl, %bpl
je 0x134683
leaq 0x20a1e7(%rip), %rsi    # 0x33e76d
movq %r14, %rdi
movq %r13, %rdx
xorl %eax, %eax
callq 0x92e71
cmpb $0x0, 0xa1(%rbx)
je 0x1346be
cmpl $0x3, %r12d
jb 0x134683
cmpq $0x0, 0x40(%rbx)
je 0x134683
leal -0x1(%r12), %edi
shlq $0x3, %rdi
cmpb $0x1, 0xa2(%rbx)
jne 0x13461c
leaq 0x20a0b8(%rip), %r13    # 0x33e686
movq %r13, %rsi
movl $0x179, %edx            # imm = 0x179
callq 0x93160
movq %rax, 0x28(%rbx)
movq 0x40(%rbx), %r15
shlq $0x3, %r15
movq %r15, %rdi
movq %r13, %rsi
movl $0x17b, %edx            # imm = 0x17B
callq 0x93160
movq %rax, %r13
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x17380
movq 0x28(%rbx), %rdi
movq 0x70(%rbx), %rdx
movq %r13, %rsi
movl %r12d, %ecx
callq 0x134ee6
jmp 0x13466f
leaq 0x20a063(%rip), %r13    # 0x33e686
movq %r13, %rsi
movl $0x181, %edx            # imm = 0x181
callq 0x93160
movq %rax, 0x18(%rbx)
movq 0x40(%rbx), %r15
shlq $0x2, %r15
movq %r15, %rdi
movq %r13, %rsi
movl $0x183, %edx            # imm = 0x183
callq 0x93160
movq %rax, %r13
movq %rax, %rdi
xorl %esi, %esi
movq %r15, %rdx
callq 0x17380
movq 0x18(%rbx), %rdi
movq 0x70(%rbx), %rdx
movq %r13, %rsi
movl %r12d, %ecx
callq 0x134f05
leaq 0x20a4f0(%rip), %rsi    # 0x33eb66
movq %r14, %rdi
movq %r15, %rdx
xorl %eax, %eax
callq 0x92e71
movzbl %bpl, %ecx
movl 0xc(%rsp), %edi
movl %r12d, %esi
movq 0x10(%rsp), %rdx
callq 0x134344
leaq 0x20a0f3(%rip), %rsi    # 0x33e792
movq %r14, %rdi
movq %rax, %rdx
xorl %eax, %eax
callq 0x92e71
movq %rbx, %rax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x3038a3(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1b0944(%rip), %rsi    # 0x2e5013
leaq 0x20a45e(%rip), %rdx    # 0x33eb34
leaq 0x20a473(%rip), %rcx    # 0x33eb50
leaq 0x209fa2(%rip), %r8     # 0x33e686
movl $0x16e, %r9d            # imm = 0x16E
xorl %eax, %eax
callq 0x17a50
callq 0x17390