// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/core/radix_sort.c
// Function: gt_radixsort_delete
void gt_radixsort_delete(GtRadixsortinfo *radixsortinfo)
{
  if (radixsortinfo != NULL)
  {
#ifdef GT_THREADS_ENABLED
    const unsigned int threads = GT_THREADS_JOBS;

    if (threads > 1U)
    {
      unsigned int t;
      gt_free(radixsortinfo->lentab);
      gt_free(radixsortinfo->endindexes);
      for (t = 0; t < threads; t++)
      {
        GT_STACK_DELETE(&radixsortinfo->threadinfo[t].stack);
        gt_radixbuffer_delete(radixsortinfo->threadinfo[t].rbuf);
      }
      gt_free(radixsortinfo->threadinfo);
    }
#endif
    if (radixsortinfo->maxlen > 0)
    {
      if (radixsortinfo->elemtype == GtRadixelemtypeGtUwordPair)
      {
        gt_free(radixsortinfo->sortspace.ulongpairptr);
      } else
      {
        if (radixsortinfo->elemtype == GtRadixelemtypeGtUword)
        {
          gt_free(radixsortinfo->sortspace.ulongptr);
        } else
        {
          if (radixsortinfo->elemtype == GtRadixelemtypeGtuint64keyPair)
          {
            gt_free(radixsortinfo->sortspace.uint64keypairptr);
          } else
          {
            gt_free(radixsortinfo->sortspace.flbaptr);
          }
        }
      }
    }
    gt_radixbuffer_delete(radixsortinfo->rbuf);
    GT_STACK_DELETE(&radixsortinfo->stack);
    gt_free(radixsortinfo);
  }
}

// Assembly:
subq $0x18, %rsp
movq %rdi, 0x10(%rsp)
cmpq $0x0, 0x10(%rsp)
je 0x100b78
leaq 0x53ca6c(%rip), %rax    # 0x63d378
movl (%rax), %eax
movl %eax, 0xc(%rsp)
cmpl $0x1, 0xc(%rsp)
jbe 0x100a54
movq 0x10(%rsp), %rax
movq 0x3060(%rax), %rdi
leaq 0x43febb(%rip), %rsi    # 0x5407eb
movl $0x211, %edx            # imm = 0x211
callq 0xe88c0
movq 0x10(%rsp), %rax
movq 0x3068(%rax), %rdi
leaq 0x43fe9e(%rip), %rsi    # 0x5407eb
movl $0x212, %edx            # imm = 0x212
callq 0xe88c0
movl $0x0, 0x8(%rsp)
movl 0x8(%rsp), %eax
cmpl 0xc(%rsp), %eax
jae 0x100a37
movq 0x10(%rsp), %rax
movq 0x3070(%rax), %rax
movl 0x8(%rsp), %ecx
imulq $0x3048, %rcx, %rcx     # imm = 0x3048
addq %rcx, %rax
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movq 0x3070(%rcx), %rcx
movl 0x8(%rsp), %edx
imulq $0x3048, %rdx, %rdx     # imm = 0x3048
addq %rdx, %rcx
cmpq 0x18(%rcx), %rax
jbe 0x100a01
movq 0x10(%rsp), %rax
movq 0x3070(%rax), %rax
movl 0x8(%rsp), %ecx
imulq $0x3048, %rcx, %rcx     # imm = 0x3048
addq %rcx, %rax
movq 0x3028(%rax), %rdi
leaq 0x43fe19(%rip), %rsi    # 0x5407eb
movl $0x215, %edx            # imm = 0x215
callq 0xe88c0
movq 0x10(%rsp), %rax
movq 0x3070(%rax), %rax
movl 0x8(%rsp), %ecx
imulq $0x3048, %rcx, %rcx     # imm = 0x3048
addq %rcx, %rax
movq $0x0, 0x3028(%rax)
movq 0x10(%rsp), %rax
movq 0x3070(%rax), %rax
movl 0x8(%rsp), %ecx
imulq $0x3048, %rcx, %rcx     # imm = 0x3048
addq %rcx, %rax
movq 0x3038(%rax), %rdi
callq 0x100b80
movl 0x8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x8(%rsp)
jmp 0x10095f
movq 0x10(%rsp), %rax
movq 0x3070(%rax), %rdi
leaq 0x43fda1(%rip), %rsi    # 0x5407eb
movl $0x218, %edx            # imm = 0x218
callq 0xe88c0
movq 0x10(%rsp), %rax
cmpq $0x0, 0x3048(%rax)
jbe 0x100b11
movq 0x10(%rsp), %rax
cmpl $0x1, 0x3050(%rax)
jne 0x100a94
movq 0x10(%rsp), %rax
movq 0x3040(%rax), %rdi
leaq 0x43fd63(%rip), %rsi    # 0x5407eb
movl $0x21f, %edx            # imm = 0x21F
callq 0xe88c0
jmp 0x100b0f
movq 0x10(%rsp), %rax
cmpl $0x0, 0x3050(%rax)
jne 0x100ac1
movq 0x10(%rsp), %rax
movq 0x3040(%rax), %rdi
leaq 0x43fd36(%rip), %rsi    # 0x5407eb
movl $0x224, %edx            # imm = 0x224
callq 0xe88c0
jmp 0x100b0d
movq 0x10(%rsp), %rax
cmpl $0x2, 0x3050(%rax)
jne 0x100aee
movq 0x10(%rsp), %rax
movq 0x3040(%rax), %rdi
leaq 0x43fd09(%rip), %rsi    # 0x5407eb
movl $0x229, %edx            # imm = 0x229
callq 0xe88c0
jmp 0x100b0b
movq 0x10(%rsp), %rax
movq 0x3040(%rax), %rdi
leaq 0x43fcea(%rip), %rsi    # 0x5407eb
movl $0x22c, %edx            # imm = 0x22C
callq 0xe88c0
jmp 0x100b0d
jmp 0x100b0f
jmp 0x100b11
movq 0x10(%rsp), %rax
movq 0x3038(%rax), %rdi
callq 0x100b80
movq 0x10(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rsp), %rcx
cmpq 0x18(%rcx), %rax
jbe 0x100b62
movq 0x10(%rsp), %rax
movq 0x3028(%rax), %rdi
leaq 0x43fca3(%rip), %rsi    # 0x5407eb
movl $0x232, %edx            # imm = 0x232
callq 0xe88c0
movq 0x10(%rsp), %rax
movq $0x0, 0x3028(%rax)
movq 0x10(%rsp), %rdi
leaq 0x43fc7d(%rip), %rsi    # 0x5407eb
movl $0x233, %edx            # imm = 0x233
callq 0xe88c0
addq $0x18, %rsp
retq
nopl (%rax)