// File: /workspace/github_c_makefile_star2_O1/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 0x193c76
movq %rdi, %rbx
movq 0xb0(%rdi), %rdi
cmpb $0x1, 0xa0(%rbx)
jne 0x193c7c
callq 0x1f8bb6
xorl %r14d, %r14d
movq %r14, 0xb0(%rbx)
movq 0xb8(%rbx), %rdi
callq 0x1f8bb6
movq %r14, 0xb8(%rbx)
movq 0x20(%rbx), %rdi
leaq 0x213c23(%rip), %r14    # 0x3a781e
movq %r14, %rsi
movl $0x33c, %edx            # imm = 0x33C
callq 0x109670
movq 0x10(%rbx), %rdi
movq %r14, %rsi
movl $0x33d, %edx            # imm = 0x33D
callq 0x109670
movq 0x8(%rbx), %rdi
movq %r14, %rsi
movl $0x33e, %edx            # imm = 0x33E
callq 0x109670
movq (%rbx), %rdi
movq %r14, %rsi
movl $0x33f, %edx            # imm = 0x33F
callq 0x109670
movq 0x28(%rbx), %rax
testq %rax, %rax
je 0x193c57
movq (%rax), %rdi
leaq 0x213bd1(%rip), %rsi    # 0x3a781e
movl $0x342, %edx            # imm = 0x342
callq 0x109670
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x193ccf
movq (%rax), %rdi
leaq 0x213bb4(%rip), %rsi    # 0x3a781e
movl $0x346, %edx            # imm = 0x346
callq 0x109670
jmp 0x193ccf
popq %rbx
popq %r14
popq %r15
retq
testq %rdi, %rdi
jne 0x193d74
cmpq $0x0, 0xb8(%rbx)
jne 0x193d79
movq 0xa8(%rbx), %rdi
testq %rdi, %rdi
je 0x193ca4
callq 0x102b12
movq $0x0, 0xa8(%rbx)
movq 0x28(%rbx), %rax
testq %rax, %rax
je 0x193cbf
movq $0x0, (%rax)
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x193ccf
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 0x213b33(%rip), %r14    # 0x3a781e
movq %r14, %rsi
movl $0x35e, %edx            # imm = 0x35E
callq 0x109670
movq %r15, 0x28(%rbx)
movq 0x18(%rbx), %rdi
movq %r14, %rsi
movl $0x360, %edx            # imm = 0x360
callq 0x109670
movq %r15, 0x18(%rbx)
movq 0x68(%rbx), %rdi
callq 0x1bef6c
movq 0x78(%rbx), %rdi
movq %r14, %rsi
movl $0x363, %edx            # imm = 0x363
callq 0x109670
movq %r15, 0x78(%rbx)
movq 0x70(%rbx), %rdi
movq %r14, %rsi
movl $0x365, %edx            # imm = 0x365
callq 0x109670
movq %r15, 0x70(%rbx)
movq 0x80(%rbx), %rdi
movq %r14, %rsi
movl $0x367, %edx            # imm = 0x367
callq 0x109670
movq %r15, 0x80(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
movl $0x369, %edx            # imm = 0x369
popq %rbx
popq %r14
popq %r15
jmp 0x109670
callq 0x5cde9
callq 0x5ce22