// File: /workspace/github_c_makefile_star2_O2/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 %r14
pushq %rbx
pushq %rax
testq %rdi, %rdi
je 0x134918
movq %rdi, %rbx
movq 0xb0(%rdi), %rdi
cmpb $0x1, 0xa0(%rbx)
jne 0x134920
callq 0x1a04c6
andq $0x0, 0xb0(%rbx)
movq 0xb8(%rbx), %rdi
callq 0x1a04c6
andq $0x0, 0xb8(%rbx)
movq 0x20(%rbx), %rdi
leaq 0x209de9(%rip), %r14    # 0x33e686
movq %r14, %rsi
movl $0x33c, %edx            # imm = 0x33C
callq 0x936f9
movq 0x10(%rbx), %rdi
movq %r14, %rsi
movl $0x33d, %edx            # imm = 0x33D
callq 0x936f9
movq 0x8(%rbx), %rdi
movq %r14, %rsi
movl $0x33e, %edx            # imm = 0x33E
callq 0x936f9
movq (%rbx), %rdi
movq %r14, %rsi
movl $0x33f, %edx            # imm = 0x33F
callq 0x936f9
movq 0x28(%rbx), %rax
testq %rax, %rax
je 0x1348f9
movq (%rax), %rdi
leaq 0x209d97(%rip), %rsi    # 0x33e686
movl $0x342, %edx            # imm = 0x342
callq 0x936f9
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x13496a
movq (%rax), %rdi
leaq 0x209d7a(%rip), %rsi    # 0x33e686
movl $0x346, %edx            # imm = 0x346
callq 0x936f9
jmp 0x13496a
addq $0x8, %rsp
popq %rbx
popq %r14
retq
testq %rdi, %rdi
jne 0x134a15
cmpq $0x0, 0xb8(%rbx)
jne 0x134a43
movq 0xa8(%rbx), %rdi
testq %rdi, %rdi
je 0x134948
callq 0x8b9fa
andq $0x0, 0xa8(%rbx)
movq 0x28(%rbx), %rax
testq %rax, %rax
je 0x13495d
andq $0x0, (%rax)
movq 0x18(%rbx), %rax
testq %rax, %rax
je 0x13496a
andq $0x0, (%rax)
andq $0x0, 0x20(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, (%rbx)
andq $0x0, 0x10(%rbx)
movq 0x28(%rbx), %rdi
leaq 0x209d01(%rip), %r14    # 0x33e686
movq %r14, %rsi
movl $0x35e, %edx            # imm = 0x35E
callq 0x936f9
andq $0x0, 0x28(%rbx)
movq 0x18(%rbx), %rdi
movq %r14, %rsi
movl $0x360, %edx            # imm = 0x360
callq 0x936f9
andq $0x0, 0x18(%rbx)
movq 0x68(%rbx), %rdi
callq 0x164c86
movq 0x78(%rbx), %rdi
movq %r14, %rsi
movl $0x363, %edx            # imm = 0x363
callq 0x936f9
andq $0x0, 0x78(%rbx)
movq 0x70(%rbx), %rdi
movq %r14, %rsi
movl $0x365, %edx            # imm = 0x365
callq 0x936f9
andq $0x0, 0x70(%rbx)
movq 0x80(%rbx), %rdi
movq %r14, %rsi
movl $0x367, %edx            # imm = 0x367
callq 0x936f9
andq $0x0, 0x80(%rbx)
movq %rbx, %rdi
movq %r14, %rsi
movl $0x369, %edx            # imm = 0x369
addq $0x8, %rsp
popq %rbx
popq %r14
jmp 0x936f9
movq 0x30354c(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1b05ed(%rip), %rsi    # 0x2e5013
leaq 0x209dcd(%rip), %rdx    # 0x33e7fa
leaq 0x209de7(%rip), %rcx    # 0x33e81b
leaq 0x209c4b(%rip), %r8     # 0x33e686
movl $0x34a, %r9d            # imm = 0x34A
jmp 0x134a6f
movq 0x30351e(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1b05bf(%rip), %rsi    # 0x2e5013
leaq 0x209dd1(%rip), %rdx    # 0x33e82c
leaq 0x209db9(%rip), %rcx    # 0x33e81b
leaq 0x209c1d(%rip), %r8     # 0x33e686
movl $0x34b, %r9d            # imm = 0x34B
xorl %eax, %eax
callq 0x17a50
callq 0x17390