// File: /workspace/github_c_makefile_star2_O0/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 %rax
movq %rdi, (%rsp)
cmpq $0x0, (%rsp)
jne 0x204551
jmp 0x20485d
movq (%rsp), %rax
testb $0x1, 0xa0(%rax)
je 0x204656
movq (%rsp), %rax
movq 0xb0(%rax), %rdi
callq 0x2cca80
movq (%rsp), %rax
movq $0x0, 0xb0(%rax)
movq (%rsp), %rax
movq 0xb8(%rax), %rdi
callq 0x2cca80
movq (%rsp), %rax
movq $0x0, 0xb8(%rax)
movq (%rsp), %rax
movq 0x20(%rax), %rdi
leaq 0x36c863(%rip), %rsi    # 0x570e12
movl $0x33c, %edx            # imm = 0x33C
callq 0xe88c0
movq (%rsp), %rax
movq 0x10(%rax), %rdi
leaq 0x36c84a(%rip), %rsi    # 0x570e12
movl $0x33d, %edx            # imm = 0x33D
callq 0xe88c0
movq (%rsp), %rax
movq 0x8(%rax), %rdi
leaq 0x36c831(%rip), %rsi    # 0x570e12
movl $0x33e, %edx            # imm = 0x33E
callq 0xe88c0
movq (%rsp), %rax
movq (%rax), %rdi
leaq 0x36c819(%rip), %rsi    # 0x570e12
movl $0x33f, %edx            # imm = 0x33F
callq 0xe88c0
movq (%rsp), %rax
cmpq $0x0, 0x28(%rax)
je 0x20462a
movq (%rsp), %rax
movq 0x28(%rax), %rax
movq (%rax), %rdi
leaq 0x36c7f2(%rip), %rsi    # 0x570e12
movl $0x342, %edx            # imm = 0x342
callq 0xe88c0
movq (%rsp), %rax
cmpq $0x0, 0x18(%rax)
je 0x204651
movq (%rsp), %rax
movq 0x18(%rax), %rax
movq (%rax), %rdi
leaq 0x36c7cb(%rip), %rsi    # 0x570e12
movl $0x346, %edx            # imm = 0x346
callq 0xe88c0
jmp 0x20474d
jmp 0x204658
movq (%rsp), %rax
cmpq $0x0, 0xb0(%rax)
je 0x20469e
movq 0x437933(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x31199c(%rip), %rsi    # 0x516013
leaq 0x36c908(%rip), %rdx    # 0x570f86
leaq 0x36c922(%rip), %rcx    # 0x570fa7
leaq 0x36c786(%rip), %r8     # 0x570e12
movl $0x34a, %r9d            # imm = 0x34A
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2046a0
jmp 0x2046a2
movq (%rsp), %rax
cmpq $0x0, 0xb8(%rax)
je 0x2046e8
movq 0x4378e9(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x311952(%rip), %rsi    # 0x516013
leaq 0x36c8f0(%rip), %rdx    # 0x570fb8
leaq 0x36c8d8(%rip), %rcx    # 0x570fa7
leaq 0x36c73c(%rip), %r8     # 0x570e12
movl $0x34b, %r9d            # imm = 0x34B
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2046ea
movq (%rsp), %rax
cmpq $0x0, 0xa8(%rax)
je 0x204708
movq (%rsp), %rax
movq 0xa8(%rax), %rdi
callq 0xdb2a0
movq (%rsp), %rax
movq $0x0, 0xa8(%rax)
movq (%rsp), %rax
cmpq $0x0, 0x28(%rax)
je 0x204731
movq (%rsp), %rax
movq 0x28(%rax), %rax
movq $0x0, (%rax)
movq (%rsp), %rax
cmpq $0x0, 0x18(%rax)
je 0x20474b
movq (%rsp), %rax
movq 0x18(%rax), %rax
movq $0x0, (%rax)
jmp 0x20474d
movq (%rsp), %rax
movq $0x0, 0x8(%rax)
movq (%rsp), %rax
movq $0x0, (%rax)
movq (%rsp), %rax
movq $0x0, 0x20(%rax)
movq (%rsp), %rax
movq $0x0, 0x10(%rax)
movq (%rsp), %rax
movq 0x28(%rax), %rdi
leaq 0x36c687(%rip), %rsi    # 0x570e12
movl $0x35e, %edx            # imm = 0x35E
callq 0xe88c0
movq (%rsp), %rax
movq $0x0, 0x28(%rax)
movq (%rsp), %rax
movq 0x18(%rax), %rdi
leaq 0x36c662(%rip), %rsi    # 0x570e12
movl $0x360, %edx            # imm = 0x360
callq 0xe88c0
movq (%rsp), %rax
movq $0x0, 0x18(%rax)
movq (%rsp), %rax
movq 0x68(%rax), %rdi
callq 0x25db80
movq (%rsp), %rax
movq 0x78(%rax), %rdi
leaq 0x36c630(%rip), %rsi    # 0x570e12
movl $0x363, %edx            # imm = 0x363
callq 0xe88c0
movq (%rsp), %rax
movq $0x0, 0x78(%rax)
movq (%rsp), %rax
movq 0x70(%rax), %rdi
leaq 0x36c60b(%rip), %rsi    # 0x570e12
movl $0x365, %edx            # imm = 0x365
callq 0xe88c0
movq (%rsp), %rax
movq $0x0, 0x70(%rax)
movq (%rsp), %rax
movq 0x80(%rax), %rdi
leaq 0x36c5e3(%rip), %rsi    # 0x570e12
movl $0x367, %edx            # imm = 0x367
callq 0xe88c0
movq (%rsp), %rax
movq $0x0, 0x80(%rax)
movq (%rsp), %rdi
leaq 0x36c5bf(%rip), %rsi    # 0x570e12
movl $0x369, %edx            # imm = 0x369
callq 0xe88c0
popq %rax
retq
nop