// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/core/radix_sort.c
// Function: gt_radixbuffer_new
static GtRadixbuffer *gt_radixbuffer_new(GtRadixelemtype elemtype)
{
  GtRadixbuffer *rbuf;
  size_t thissize;

  rbuf = gt_malloc(sizeof *rbuf);
  rbuf->size = sizeof *rbuf;
  rbuf->log_bufsize = 5;
  rbuf->buf_size = 1UL << rbuf->log_bufsize;
  gt_assert(rbuf->buf_size <= UINT8_MAX);
  rbuf->cachesize = (UINT8_MAX+1) << rbuf->log_bufsize;
  rbuf->elemtype = elemtype;
  if (elemtype <= GtRadixelemtypeGtuint64keyPair)
  {
    rbuf->unitsize = 0;
  } else
  {
    rbuf->unitsize = (size_t) elemtype -
                     (size_t) GtRadixelemtypeGtuint64keyPair;
  }
  rbuf->tmpvalue_ptr = rbuf->tmpswap_ptr = NULL;
  if (elemtype == GtRadixelemtypeGtUwordPair)
  {
    thissize = sizeof (*rbuf->values.ulongpairptr) * rbuf->cachesize;
    rbuf->values.ulongpairptr = gt_malloc(thissize);
  } else
  {
    if (elemtype == GtRadixelemtypeGtUword)
    {
      thissize = sizeof *rbuf->values.ulongptr * rbuf->cachesize;
      rbuf->values.ulongptr = gt_malloc(thissize);
    } else
    {
      if (elemtype == GtRadixelemtypeGtuint64keyPair)
      {
        thissize = sizeof *rbuf->values.uint64keypairptr * rbuf->cachesize;
        rbuf->values.uint64keypairptr = gt_malloc(thissize);
      } else
      {
        rbuf->tmpvalue_ptr = gt_malloc(rbuf->unitsize);
        rbuf->tmpswap_ptr = gt_malloc(rbuf->unitsize);
        thissize = sizeof *rbuf->values.flbaptr * rbuf->unitsize *
                   rbuf->cachesize;
        rbuf->values.flbaptr = gt_malloc(thissize);
        thissize += 2 * rbuf->unitsize;
      }
    }
  }
  rbuf->size += thissize;
  rbuf->startofbin = gt_malloc(sizeof *rbuf->startofbin * (UINT8_MAX + 2));
  rbuf->size += sizeof *rbuf->startofbin * (UINT8_MAX + 2);
  rbuf->endofbin = gt_malloc(sizeof *rbuf->endofbin * (UINT8_MAX + 1));
  rbuf->size += sizeof *rbuf->endofbin * (UINT8_MAX + 1);
  rbuf->nextidx = gt_malloc(sizeof *rbuf->nextidx * (UINT8_MAX + 1));
  rbuf->size += sizeof *rbuf->nextidx * (UINT8_MAX + 1);
  rbuf->countcached = rbuf->countuncached = rbuf->countinsertionsort = 0;
  return rbuf;
}

// Assembly:
subq $0x18, %rsp
movl %edi, 0x14(%rsp)
movl $0x70, %edi
leaq 0x43ebf7(%rip), %rsi    # 0x5407eb
movl $0x10c, %edx            # imm = 0x10C
callq 0xe80f0
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq $0x70, 0x50(%rax)
movq 0x8(%rsp), %rax
movl $0x5, 0x40(%rax)
movq 0x8(%rsp), %rax
movl 0x40(%rax), %eax
movl %eax, %ecx
movl $0x1, %eax
shlq %cl, %rax
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, (%rax)
movq 0x8(%rsp), %rax
cmpq $0xff, (%rax)
jbe 0x101c7f
movq 0x53a352(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4143bb(%rip), %rsi    # 0x516013
leaq 0x43eccd(%rip), %rdx    # 0x54092c
leaq 0x43ece2(%rip), %rcx    # 0x540948
leaq 0x43eb7e(%rip), %r8     # 0x5407eb
movl $0x110, %r9d            # imm = 0x110
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x101c81
movq 0x8(%rsp), %rax
movl 0x40(%rax), %ecx
movl $0x100, %eax            # imm = 0x100
shll %cl, %eax
movslq %eax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x8(%rax)
movl 0x14(%rsp), %ecx
movq 0x8(%rsp), %rax
movl %ecx, 0x44(%rax)
cmpl $0x2, 0x14(%rsp)
ja 0x101cbe
movq 0x8(%rsp), %rax
movq $0x0, 0x58(%rax)
jmp 0x101cd1
movl 0x14(%rsp), %eax
movl %eax, %ecx
subq $0x2, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x58(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x68(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x60(%rax)
cmpl $0x1, 0x14(%rsp)
jne 0x101d29
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
shlq $0x4, %rax
movq %rax, (%rsp)
movq (%rsp), %rdi
leaq 0x43eadd(%rip), %rsi    # 0x5407eb
movl $0x11f, %edx            # imm = 0x11F
callq 0xe80f0
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x48(%rax)
jmp 0x101e45
cmpl $0x0, 0x14(%rsp)
jne 0x101d67
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
shlq $0x3, %rax
movq %rax, (%rsp)
movq (%rsp), %rdi
leaq 0x43ea9f(%rip), %rsi    # 0x5407eb
movl $0x125, %edx            # imm = 0x125
callq 0xe80f0
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x48(%rax)
jmp 0x101e43
cmpl $0x2, 0x14(%rsp)
jne 0x101da5
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
shlq $0x4, %rax
movq %rax, (%rsp)
movq (%rsp), %rdi
leaq 0x43ea61(%rip), %rsi    # 0x5407eb
movl $0x12b, %edx            # imm = 0x12B
callq 0xe80f0
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x48(%rax)
jmp 0x101e41
movq 0x8(%rsp), %rax
movq 0x58(%rax), %rdi
leaq 0x43ea36(%rip), %rsi    # 0x5407eb
movl $0x12e, %edx            # imm = 0x12E
callq 0xe80f0
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x60(%rax)
movq 0x8(%rsp), %rax
movq 0x58(%rax), %rdi
leaq 0x43ea10(%rip), %rsi    # 0x5407eb
movl $0x12f, %edx            # imm = 0x12F
callq 0xe80f0
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x68(%rax)
movq 0x8(%rsp), %rax
movq 0x58(%rax), %rax
shlq $0x0, %rax
movq 0x8(%rsp), %rcx
imulq 0x8(%rcx), %rax
movq %rax, (%rsp)
movq (%rsp), %rdi
leaq 0x43e9d4(%rip), %rsi    # 0x5407eb
movl $0x132, %edx            # imm = 0x132
callq 0xe80f0
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x48(%rax)
movq 0x8(%rsp), %rax
movq 0x58(%rax), %rax
shlq %rax
addq (%rsp), %rax
movq %rax, (%rsp)
jmp 0x101e43
jmp 0x101e45
movq (%rsp), %rcx
movq 0x8(%rsp), %rax
addq 0x50(%rax), %rcx
movq %rcx, 0x50(%rax)
movl $0x404, %edi            # imm = 0x404
leaq 0x43e989(%rip), %rsi    # 0x5407eb
movl $0x138, %edx            # imm = 0x138
callq 0xe80f0
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x28(%rax)
movq 0x8(%rsp), %rax
movq 0x50(%rax), %rcx
addq $0x404, %rcx            # imm = 0x404
movq %rcx, 0x50(%rax)
movl $0x400, %edi            # imm = 0x400
leaq 0x43e953(%rip), %rsi    # 0x5407eb
movl $0x13a, %edx            # imm = 0x13A
callq 0xe80f0
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x30(%rax)
movq 0x8(%rsp), %rax
movq 0x50(%rax), %rcx
addq $0x400, %rcx            # imm = 0x400
movq %rcx, 0x50(%rax)
movl $0x100, %edi            # imm = 0x100
leaq 0x43e91d(%rip), %rsi    # 0x5407eb
movl $0x13c, %edx            # imm = 0x13C
callq 0xe80f0
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x38(%rax)
movq 0x8(%rsp), %rax
movq 0x50(%rax), %rcx
addq $0x100, %rcx            # imm = 0x100
movq %rcx, 0x50(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x20(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x18(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x10(%rax)
movq 0x8(%rsp), %rax
addq $0x18, %rsp
retq
nopl (%rax)