// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/bcktab.c
// Function: gt_bcktab_delete
void gt_bcktab_delete(GtBcktab *bcktab)
{
  if (bcktab == NULL)
  {
    return;
  }
  /*showbcktab(bcktabptr);*/
  if (bcktab->allocated)
  {
    gt_Sfxmappedrange_delete(bcktab->mappedleftborder);
    bcktab->mappedleftborder = NULL;
    gt_Sfxmappedrange_delete(bcktab->mappedcountspecialcodes);
    bcktab->mappedcountspecialcodes = NULL;
    gt_free(bcktab->ulongcountspecialcodes);
    gt_free(bcktab->uintcountspecialcodes);
    gt_free(bcktab->leftborder.ulongbounds);
    gt_free(bcktab->leftborder.uintbounds);
    if (bcktab->ulongdistpfxidx != NULL)
    {
      gt_free(bcktab->ulongdistpfxidx[0]);
    }
    if (bcktab->uintdistpfxidx != NULL)
    {
      gt_free(bcktab->uintdistpfxidx[0]);
    }
  } else
  {
    gt_assert(bcktab->mappedleftborder == NULL);
    gt_assert(bcktab->mappedcountspecialcodes == NULL);
    if (bcktab->mappedptr != NULL)
    {
      gt_fa_xmunmap(bcktab->mappedptr);
    }
    bcktab->mappedptr = NULL;
    if (bcktab->ulongdistpfxidx != NULL)
    {
      bcktab->ulongdistpfxidx[0] = NULL;
    }
    if (bcktab->uintdistpfxidx != NULL)
    {
      bcktab->uintdistpfxidx[0] = NULL;
    }
  }
  bcktab->leftborder.ulongbounds = NULL;
  bcktab->leftborder.uintbounds = NULL;
  bcktab->ulongcountspecialcodes = NULL;
  bcktab->uintcountspecialcodes = NULL;
  gt_free(bcktab->ulongdistpfxidx);
  bcktab->ulongdistpfxidx = NULL;
  gt_free(bcktab->uintdistpfxidx);
  bcktab->uintdistpfxidx = NULL;
  gt_multimappower_delete(bcktab->multimappower);
  gt_free(bcktab->filltable);
  bcktab->filltable = NULL;
  gt_free(bcktab->basepower);
  bcktab->basepower = NULL;
  gt_free(bcktab->qgrambuffer);
  bcktab->qgrambuffer = NULL;
  gt_free(bcktab);
}

// Assembly:
pushq %r15
pushq %r14
pushq %rbx
testq %rdi, %rdi
je 0x18b600
movq %rdi, %rbx
movq 0xb0(%rdi), %rdi
cmpb $0x1, 0xa0(%rbx)
jne 0x18b606
callq 0x1ef400
xorl %r14d, %r14d
movq %r14, 0xb0(%rbx)
movq 0xb8(%rbx), %rdi
callq 0x1ef400
movq %r14, 0xb8(%rbx)
movq 0x20(%rbx), %rdi
leaq 0x212da1(%rip), %r14    # 0x39e326
movq %r14, %rsi
movl $0x33c, %edx            # imm = 0x33C
callq 0x1045eb
movq 0x10(%rbx), %rdi
movq %r14, %rsi
movl $0x33d, %edx            # imm = 0x33D
callq 0x1045eb
movq 0x8(%rbx), %rdi
movq %r14, %rsi
movl $0x33e, %edx            # imm = 0x33E
callq 0x1045eb
movq (%rbx), %rdi
movq %r14, %rsi
movl $0x33f, %edx            # imm = 0x33F
callq 0x1045eb
movq 0x28(%rbx), %rax
testq %rax, %rax
je 0x18b5e1
movq (%rax), %rdi
leaq 0x212d4f(%rip), %rsi    # 0x39e326
movl $0x342, %edx            # imm = 0x342
callq 0x1045eb
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x18b659
movq (%rax), %rdi
leaq 0x212d32(%rip), %rsi    # 0x39e326
movl $0x346, %edx            # imm = 0x346
callq 0x1045eb
jmp 0x18b659
popq %rbx
popq %r14
popq %r15
retq
testq %rdi, %rdi
jne 0x18b6fe
cmpq $0x0, 0xb8(%rbx)
jne 0x18b703
movq 0xa8(%rbx), %rdi
testq %rdi, %rdi
je 0x18b62e
callq 0xfdc54
movq $0x0, 0xa8(%rbx)
movq 0x28(%rbx), %rax
testq %rax, %rax
je 0x18b649
movq $0x0, (%rax)
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x18b659
movq $0x0, (%rax)
xorl %r15d, %r15d
movq %r15, 0x20(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
movq %r15, 0x10(%rbx)
movq 0x28(%rbx), %rdi
leaq 0x212cb1(%rip), %r14    # 0x39e326
movq %r14, %rsi
movl $0x35e, %edx            # imm = 0x35E
callq 0x1045eb
movq %r15, 0x28(%rbx)
movq 0x18(%rbx), %rdi
movq %r14, %rsi
movl $0x360, %edx            # imm = 0x360
callq 0x1045eb
movq %r15, 0x18(%rbx)
movq 0x68(%rbx), %rdi
callq 0x1b64ea
movq 0x78(%rbx), %rdi
movq %r14, %rsi
movl $0x363, %edx            # imm = 0x363
callq 0x1045eb
movq %r15, 0x78(%rbx)
movq 0x70(%rbx), %rdi
movq %r14, %rsi
movl $0x365, %edx            # imm = 0x365
callq 0x1045eb
movq %r15, 0x70(%rbx)
movq 0x80(%rbx), %rdi
movq %r14, %rsi
movl $0x367, %edx            # imm = 0x367
callq 0x1045eb
movq %r15, 0x80(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
movl $0x369, %edx            # imm = 0x369
popq %rbx
popq %r14
popq %r15
jmp 0x1045eb
callq 0x5bacb
callq 0x5bb04