// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/core/radix_sort.c
// Function: gt_radixsort_new
static GtRadixsortinfo *gt_radixsort_new(GtRadixelemtype elemtype,
                                         GtUword maxlen)
{
  GtRadixsortinfo *radixsortinfo = gt_malloc(sizeof *radixsortinfo);

  radixsortinfo->size = sizeof *radixsortinfo;
  radixsortinfo->rbuf = gt_radixbuffer_new(elemtype);
  radixsortinfo->size += gt_radixbuffer_size(radixsortinfo->rbuf);
  radixsortinfo->elemtype = elemtype;
  radixsortinfo->maxlen = maxlen;
  if (maxlen > 0)
  {
    size_t thissize;

    if (elemtype == GtRadixelemtypeGtUwordPair)
    {
      thissize = sizeof *radixsortinfo->sortspace.ulongpairptr * maxlen;
      radixsortinfo->sortspace.ulongpairptr = gt_malloc(thissize);
    } else
    {
      if (elemtype == GtRadixelemtypeGtUword)
      {
        thissize = sizeof *radixsortinfo->sortspace.ulongptr * maxlen;
        radixsortinfo->sortspace.ulongptr = gt_malloc(thissize);
      } else
      {
        if (elemtype == GtRadixelemtypeGtuint64keyPair)
        {
          thissize = sizeof *radixsortinfo->sortspace.uint64keypairptr * maxlen;
          radixsortinfo->sortspace.uint64keypairptr = gt_malloc(thissize);
        } else
        {
          thissize = sizeof *radixsortinfo->sortspace.flbaptr *
                     radixsortinfo->rbuf->unitsize * maxlen;
          radixsortinfo->sortspace.flbaptr = gt_malloc(thissize);
        }
      }
    }
    radixsortinfo->size += thissize;
  }
  GT_STACK_INIT(&radixsortinfo->stack,32UL);
  radixsortinfo->size += sizeof radixsortinfo->stack;
#ifdef GT_THREADS_ENABLED
  {
    const unsigned int threads = GT_THREADS_JOBS;

    if (threads > 1U)
    {
      unsigned int t;
      radixsortinfo->lentab
        = gt_malloc(sizeof *radixsortinfo->lentab * (UINT8_MAX+1));
      radixsortinfo->size += sizeof *radixsortinfo->lentab * (UINT8_MAX+1);
      radixsortinfo->endindexes
        = gt_malloc(sizeof *radixsortinfo->endindexes * threads);
      radixsortinfo->size += sizeof *radixsortinfo->endindexes * threads;
      radixsortinfo->threadinfo
        = gt_malloc(sizeof *radixsortinfo->threadinfo * threads);
      radixsortinfo->size += sizeof *radixsortinfo->threadinfo * threads;
      for (t = 0; t < threads; t++)
      {
        GT_STACK_INIT(&radixsortinfo->threadinfo[t].stack,32UL);
        radixsortinfo->size += sizeof (radixsortinfo->threadinfo[t].stack);
        radixsortinfo->threadinfo[t].rbuf = gt_radixbuffer_new(elemtype);
        radixsortinfo->size
          += gt_radixbuffer_size(radixsortinfo->threadinfo[t].rbuf);
      }
    }
  }
#endif
  return radixsortinfo;
}

// Assembly:
subq $0x38, %rsp
movl %edi, 0x34(%rsp)
movq %rsi, 0x28(%rsp)
movl $0x3078, %edi           # imm = 0x3078
leaq 0x440602(%rip), %rsi    # 0x5407eb
movl $0x1a8, %edx            # imm = 0x1A8
callq 0xe80f0
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
movq $0x3078, 0x3058(%rax) # imm = 0x3078
movl 0x34(%rsp), %edi
callq 0x101be0
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x3038(%rax)
movq 0x20(%rsp), %rax
movq 0x3038(%rax), %rdi
callq 0x101f30
movq %rax, %rcx
movq 0x20(%rsp), %rax
addq 0x3058(%rax), %rcx
movq %rcx, 0x3058(%rax)
movl 0x34(%rsp), %ecx
movq 0x20(%rsp), %rax
movl %ecx, 0x3050(%rax)
movq 0x28(%rsp), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x3048(%rax)
cmpq $0x0, 0x28(%rsp)
jbe 0x10038d
cmpl $0x1, 0x34(%rsp)
jne 0x1002b2
movq 0x28(%rsp), %rax
shlq $0x4, %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
leaq 0x440557(%rip), %rsi    # 0x5407eb
movl $0x1b6, %edx            # imm = 0x1B6
callq 0xe80f0
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x3040(%rax)
jmp 0x100375
cmpl $0x0, 0x34(%rsp)
jne 0x1002f1
movq 0x28(%rsp), %rax
shlq $0x3, %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
leaq 0x440518(%rip), %rsi    # 0x5407eb
movl $0x1bc, %edx            # imm = 0x1BC
callq 0xe80f0
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x3040(%rax)
jmp 0x100373
cmpl $0x2, 0x34(%rsp)
jne 0x10032d
movq 0x28(%rsp), %rax
shlq $0x4, %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
leaq 0x4404d9(%rip), %rsi    # 0x5407eb
movl $0x1c2, %edx            # imm = 0x1C2
callq 0xe80f0
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x3040(%rax)
jmp 0x100371
movq 0x20(%rsp), %rax
movq 0x3038(%rax), %rax
movq 0x58(%rax), %rax
shlq $0x0, %rax
imulq 0x28(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
leaq 0x440493(%rip), %rsi    # 0x5407eb
movl $0x1c7, %edx            # imm = 0x1C7
callq 0xe80f0
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x3040(%rax)
jmp 0x100373
jmp 0x100375
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %rax
addq 0x3058(%rax), %rcx
movq %rcx, 0x3058(%rax)
movq 0x20(%rsp), %rax
movq $0x200, 0x18(%rax)      # imm = 0x200
movq 0x20(%rsp), %rax
movq $0x20, 0x20(%rax)
movq 0x20(%rsp), %rax
movq 0x18(%rax), %rcx
movq 0x20(%rsp), %rax
movq %rcx, (%rax)
movq 0x20(%rsp), %rax
movq $0x0, 0x10(%rax)
movq 0x20(%rsp), %rax
movq $0x0, 0x8(%rax)
movq 0x20(%rsp), %rcx
addq $0x28, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x3028(%rax)
movq 0x20(%rsp), %rax
movq $0x0, 0x3030(%rax)
movq 0x20(%rsp), %rax
cmpq $0x0, 0x3030(%rax)
je 0x100464
movq 0x20(%rsp), %rax
movq $0x0, 0x3030(%rax)
movq $0x0, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
cmpq 0x18(%rcx), %rax
jae 0x100462
movq 0x20(%rsp), %rax
movq 0x3030(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x3028(%rcx), %rdi
imulq $0x18, 0x10(%rsp), %rcx
addq %rcx, %rdi
callq *%rax
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x10041f
jmp 0x100464
movq 0x20(%rsp), %rax
movq 0x3058(%rax), %rcx
addq $0x3038, %rcx           # imm = 0x3038
movq %rcx, 0x3058(%rax)
leaq 0x53cef3(%rip), %rax    # 0x63d378
movl (%rax), %eax
movl %eax, 0xc(%rsp)
cmpl $0x1, 0xc(%rsp)
jbe 0x10080c
movl $0x800, %edi            # imm = 0x800
leaq 0x440349(%rip), %rsi    # 0x5407eb
movl $0x1d7, %edx            # imm = 0x1D7
callq 0xe80f0
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x3060(%rax)
movq 0x20(%rsp), %rax
movq 0x3058(%rax), %rcx
addq $0x800, %rcx            # imm = 0x800
movq %rcx, 0x3058(%rax)
movl 0xc(%rsp), %eax
movl %eax, %edi
shlq $0x3, %rdi
leaq 0x440305(%rip), %rsi    # 0x5407eb
movl $0x1da, %edx            # imm = 0x1DA
callq 0xe80f0
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x3068(%rax)
movl 0xc(%rsp), %eax
movl %eax, %ecx
shlq $0x3, %rcx
movq 0x20(%rsp), %rax
addq 0x3058(%rax), %rcx
movq %rcx, 0x3058(%rax)
movl 0xc(%rsp), %eax
imulq $0x3048, %rax, %rdi     # imm = 0x3048
leaq 0x4402bd(%rip), %rsi    # 0x5407eb
movl $0x1dd, %edx            # imm = 0x1DD
callq 0xe80f0
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x3070(%rax)
movl 0xc(%rsp), %eax
imulq $0x3048, %rax, %rcx     # imm = 0x3048
movq 0x20(%rsp), %rax
addq 0x3058(%rax), %rcx
movq %rcx, 0x3058(%rax)
movl $0x0, 0x8(%rsp)
movl 0x8(%rsp), %eax
cmpl 0xc(%rsp), %eax
jae 0x10080a
movq 0x20(%rsp), %rax
movq 0x3070(%rax), %rax
movl 0x8(%rsp), %ecx
imulq $0x3048, %rcx, %rcx     # imm = 0x3048
addq %rcx, %rax
movq $0x200, 0x18(%rax)      # imm = 0x200
movq 0x20(%rsp), %rax
movq 0x3070(%rax), %rax
movl 0x8(%rsp), %ecx
imulq $0x3048, %rcx, %rcx     # imm = 0x3048
addq %rcx, %rax
movq $0x20, 0x20(%rax)
movq 0x20(%rsp), %rax
movq 0x3070(%rax), %rax
movl 0x8(%rsp), %ecx
imulq $0x3048, %rcx, %rcx     # imm = 0x3048
addq %rcx, %rax
movq 0x18(%rax), %rcx
movq 0x20(%rsp), %rax
movq 0x3070(%rax), %rax
movl 0x8(%rsp), %edx
imulq $0x3048, %rdx, %rdx     # imm = 0x3048
addq %rdx, %rax
movq %rcx, (%rax)
movq 0x20(%rsp), %rax
movq 0x3070(%rax), %rax
movl 0x8(%rsp), %ecx
imulq $0x3048, %rcx, %rcx     # imm = 0x3048
addq %rcx, %rax
movq $0x0, 0x10(%rax)
movq 0x20(%rsp), %rax
movq 0x3070(%rax), %rax
movl 0x8(%rsp), %ecx
imulq $0x3048, %rcx, %rcx     # imm = 0x3048
addq %rcx, %rax
movq $0x0, 0x8(%rax)
movq 0x20(%rsp), %rax
movq 0x3070(%rax), %rcx
movl 0x8(%rsp), %eax
imulq $0x3048, %rax, %rax     # imm = 0x3048
addq %rax, %rcx
addq $0x28, %rcx
movq 0x20(%rsp), %rax
movq 0x3070(%rax), %rax
movl 0x8(%rsp), %edx
imulq $0x3048, %rdx, %rdx     # imm = 0x3048
addq %rdx, %rax
movq %rcx, 0x3028(%rax)
movq 0x20(%rsp), %rax
movq 0x3070(%rax), %rax
movl 0x8(%rsp), %ecx
imulq $0x3048, %rcx, %rcx     # imm = 0x3048
addq %rcx, %rax
movq $0x0, 0x3030(%rax)
movq 0x20(%rsp), %rax
movq 0x3070(%rax), %rax
movl 0x8(%rsp), %ecx
imulq $0x3048, %rcx, %rcx     # imm = 0x3048
addq %rcx, %rax
cmpq $0x0, 0x3030(%rax)
je 0x100777
movq 0x20(%rsp), %rax
movq 0x3070(%rax), %rax
movl 0x8(%rsp), %ecx
imulq $0x3048, %rcx, %rcx     # imm = 0x3048
addq %rcx, %rax
movq $0x0, 0x3030(%rax)
movq $0x0, (%rsp)
movq (%rsp), %rax
movq 0x20(%rsp), %rcx
movq 0x3070(%rcx), %rcx
movl 0x8(%rsp), %edx
imulq $0x3048, %rdx, %rdx     # imm = 0x3048
addq %rdx, %rcx
cmpq 0x18(%rcx), %rax
jae 0x100775
movq 0x20(%rsp), %rax
movq 0x3070(%rax), %rax
movl 0x8(%rsp), %ecx
imulq $0x3048, %rcx, %rcx     # imm = 0x3048
addq %rcx, %rax
movq 0x3030(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x3070(%rcx), %rcx
movl 0x8(%rsp), %edx
imulq $0x3048, %rdx, %rdx     # imm = 0x3048
addq %rdx, %rcx
movq 0x3028(%rcx), %rdi
imulq $0x18, (%rsp), %rcx
addq %rcx, %rdi
callq *%rax
movq (%rsp), %rax
addq $0x1, %rax
movq %rax, (%rsp)
jmp 0x1006f7
jmp 0x100777
movq 0x20(%rsp), %rax
movq 0x3058(%rax), %rcx
addq $0x3038, %rcx           # imm = 0x3038
movq %rcx, 0x3058(%rax)
movl 0x34(%rsp), %edi
callq 0x101be0
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq 0x3070(%rax), %rax
movl 0x8(%rsp), %edx
imulq $0x3048, %rdx, %rdx     # imm = 0x3048
addq %rdx, %rax
movq %rcx, 0x3038(%rax)
movq 0x20(%rsp), %rax
movq 0x3070(%rax), %rax
movl 0x8(%rsp), %ecx
imulq $0x3048, %rcx, %rcx     # imm = 0x3048
addq %rcx, %rax
movq 0x3038(%rax), %rdi
callq 0x101f30
movq %rax, %rcx
movq 0x20(%rsp), %rax
addq 0x3058(%rax), %rcx
movq %rcx, 0x3058(%rax)
movl 0x8(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x8(%rsp)
jmp 0x10056d
jmp 0x10080c
movq 0x20(%rsp), %rax
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)