// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/match/sfx-bltrie.c
// Function: gt_blindtrie_suffixsort
void gt_blindtrie_suffixsort(GtBlindtrie *blindtrie,
                             GtUword subbucketleft,
                             GtLcpvalues *tableoflcpvalues,
                             GtUword numberofsuffixes,
                             GtUword offset,
                             GtUword sortmaxdepth,
                             GtProcessunsortedsuffixrange
                               processunsortedsuffixrange,
                             void *processunsortedsuffixrangeinfo)
{
  GtUword idx, currentstartpos;

  gt_blindtrie_reset(blindtrie);
  for (idx=0; idx < numberofsuffixes; idx++)
  {
    currentstartpos = gt_suffixsortspace_get(blindtrie->sssp,subbucketleft,idx);
    gt_blindtrie_insertsuffix(blindtrie,
                              offset,
                              sortmaxdepth,
                              currentstartpos + offset);
#ifdef SKDEBUG
    blindtrie_showstate(blindtrie,
                        subbucketleft,
                        idx+1,
                        offset);
#endif
  }
  gt_blindtrie2sorting(blindtrie,
                       subbucketleft,
                       tableoflcpvalues,
                       offset,
                       sortmaxdepth,
                       processunsortedsuffixrange,
                       processunsortedsuffixrangeinfo);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x68, %rsp
movq %rdx, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movq %rdi, %r12
movl $0x0, 0x4(%rdi)
movq $0x0, 0x20(%rdi)
testq %rcx, %rcx
movq %r8, 0x28(%rsp)
movq %r9, 0x40(%rsp)
je 0x1efb97
movq %r9, %r14
movq %r8, %rbx
movq %rcx, %r13
leaq -0x1(%r9), %rax
movq %rax, 0x20(%rsp)
movq %r9, %rax
subq %r8, %rax
movq %rax, 0x18(%rsp)
xorl %ebp, %ebp
movq 0x90(%r12), %rdi
movq 0x30(%rsp), %rsi
movq %rbp, %rdx
callq 0x206063
cmpq %rbx, 0x20(%rsp)
jb 0x1f004b
movq %rax, %r15
addq %rbx, %r15
cmpl $0x0, 0x4(%r12)
je 0x1efa61
movq 0x70(%r12), %rax
testq %rax, %rax
je 0x1efa79
addq %r15, %rax
movq 0x60(%r12), %rcx
cmpq %rcx, %rax
cmovaeq %rcx, %rax
jmp 0x1efa7e
testq %r14, %r14
je 0x1efb67
movq 0x18(%rsp), %rax
movq %rax, 0x70(%r12)
jmp 0x1efb70
movq 0x60(%r12), %rax
cmpq %r15, %rax
jbe 0x1efb0d
movq %r12, %rdi
movq %r15, %rsi
callq 0x1f0282
movq %rax, %r14
movq %r12, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x1f02c4
movl %eax, %ebx
movq %r12, %rdi
movl %eax, %esi
callq 0x1f04d3
testb %al, %al
je 0x1f005f
movq %r14, (%rsp)
leaq 0x60(%rsp), %rdi
xorl %esi, %esi
leaq 0x58(%rsp), %rdx
movq %r12, %rcx
movl %ebx, %r8d
movq %r15, %r9
callq 0x1f04f0
movq %rax, %rbx
movq %r12, %rdi
movq %rax, %rsi
callq 0x1f08ac
movq 0x60(%rsp), %rdx
movq 0x58(%rsp), %r8
movq %r14, (%rsp)
movq %r12, %rdi
movl %eax, %esi
movq %rbx, %rcx
movq %r15, %r9
callq 0x1f0902
movq 0x28(%rsp), %rbx
movq 0x40(%rsp), %r14
jmp 0x1efb8b
movq 0x30(%r12), %rax
cmpq %rax, 0x38(%r12)
jb 0x1efb45
leaq 0x20(%rax), %rcx
movq %rcx, 0x30(%r12)
movq 0x28(%r12), %rdi
leaq 0x100(,%rax,8), %rsi
leaq 0x1cf808(%rip), %rdx    # 0x3bf33e
movl $0x47e, %ecx            # imm = 0x47E
callq 0x1094e6
movq %rax, 0x28(%r12)
movq 0x28(%r12), %rax
testq %rax, %rax
je 0x1f005a
movq 0x38(%r12), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x38(%r12)
movq %r15, (%rax,%rcx,8)
jmp 0x1efb8b
movq $0x0, 0x70(%r12)
movq $0x0, 0x38(%r12)
movq %r12, %rdi
movq %r15, %rsi
movq $-0x1, %rdx
callq 0x1f01ad
incq %rbp
cmpq %rbp, %r13
jne 0x1efa18
movq $0x0, 0x20(%r12)
cmpq $0x0, 0x18(%r12)
jne 0x1efbd1
movq $0x80, 0x18(%r12)
movq 0x10(%r12), %rdi
leaq 0x1cf781(%rip), %rdx    # 0x3bf33e
movl $0x200, %esi            # imm = 0x200
movl $0x31c, %ecx            # imm = 0x31C
callq 0x1094e6
movq %rax, 0x10(%r12)
movq 0x10(%r12), %rax
testq %rax, %rax
je 0x1f0069
movq 0x20(%r12), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x20(%r12)
movl $0x0, (%rax,%rcx,4)
xorl %r13d, %r13d
movq %r12, %rdi
xorl %esi, %esi
callq 0x1f0b7f
movq %r12, %rdi
movl %eax, %esi
callq 0x1f04d3
movl %eax, %r15d
movq %r12, %rdi
xorl %esi, %esi
callq 0x1f0b7f
movl %eax, 0x14(%rsp)
movq 0x90(%r12), %rdi
callq 0x2061f2
movq 0x30(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0x48(%rsp)
leaq (,%rcx,4), %rdx
xorl %ecx, %ecx
xorl %esi, %esi
xorl %eax, %eax
movq %rdx, 0x50(%rsp)
movq %rcx, 0x20(%rsp)
leaq (%rdx,%rcx,4), %rbx
movl %eax, %ebp
movq %rsi, 0x18(%rsp)
movq %r12, %rdi
movl %r13d, %esi
callq 0x1f0bac
testb $0x1, %r15b
jne 0x1efd30
movq 0x20(%r12), %rax
testb $0x1, %bpl
je 0x1efca6
cmpq $0x1, %rax
je 0x1efef8
leaq -0x1(%rax), %rcx
movq %rcx, 0x20(%r12)
movq 0x10(%r12), %rcx
movl -0x4(%rcx,%rax,4), %esi
movq %r12, %rdi
callq 0x1f0c08
testl %eax, %eax
je 0x1efc59
jmp 0x1efeb9
movq 0x18(%r12), %rcx
cmpq %rcx, %rax
jb 0x1efcdf
leaq 0x80(%rcx), %rax
movq %rax, 0x18(%r12)
movq 0x10(%r12), %rdi
leaq 0x200(,%rcx,4), %rsi
leaq 0x1cf66e(%rip), %rdx    # 0x3bf33e
movl $0x36a, %ecx            # imm = 0x36A
callq 0x1094e6
movq %rax, 0x10(%r12)
movq 0x10(%r12), %rax
testq %rax, %rax
je 0x1f0064
movq 0x20(%r12), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x20(%r12)
movl 0x14(%rsp), %r14d
movl %r14d, (%rax,%rcx,4)
movq %r12, %rdi
movl %r14d, %esi
callq 0x1f0b7f
movq %r12, %rdi
movl %eax, %esi
callq 0x1f04d3
movl %eax, %r15d
movq %r12, %rdi
movl %r14d, %esi
callq 0x1f0b7f
movl %eax, 0x14(%rsp)
jmp 0x1efc59
movq 0x20(%rsp), %r14
testq %r14, %r14
movq 0x40(%rsp), %r8
je 0x1efde5
movq 0x38(%rsp), %rsi
testq %rsi, %rsi
movq 0x18(%rsp), %r9
je 0x1efdce
movq 0x8(%rsi), %rdx
testq %rdx, %rdx
je 0x1f006e
movq 0x30(%rsp), %rcx
addq %r14, %rcx
addq 0x20(%rsi), %rcx
cmpq 0x10(%rsi), %rcx
jae 0x1f006e
movq (%rsi), %rsi
testq %rsi, %rsi
je 0x1efd92
movabsq $-0x8000000000000000, %rdi # imm = 0x8000000000000000
shrq %cl, %rdi
shrq $0x6, %rcx
orq %rdi, (%rsi,%rcx,8)
movq 0x28(%rsp), %rcx
addq %rax, %rcx
movq %rcx, %rsi
shrq $0x20, %rsi
jne 0x1f0073
movq 0x38(%rsp), %rdi
movq 0x20(%rdi), %rsi
leaq (%rdx,%rsi,4), %rdx
movq 0x30(%rsp), %rsi
leaq (%rdx,%rsi,4), %rdx
movl %ecx, (%rdx,%r14,4)
cmpq $0xff, %rcx
jb 0x1efdce
incq 0x18(%rdi)
testq %r8, %r8
je 0x1efde0
addq 0x28(%rsp), %rax
cmpq %r8, %rax
jne 0x1efdec
incq %r9
movq %r9, %rax
jmp 0x1efe37
movq 0x18(%rsp), %rax
jmp 0x1efe37
jae 0x1f0078
cmpq $0x0, 0xa0(%rsp)
je 0x1efe35
movl $0x0, %eax
testq %r9, %r9
je 0x1efe37
movq 0x90(%r12), %rsi
movq 0x48(%rsp), %rax
addq %r14, %rax
movq %r9, %rdx
notq %rdx
addq %rax, %rdx
incq %r9
movq 0xa8(%rsp), %rdi
movq %r9, %rcx
callq *0xa0(%rsp)
xorl %eax, %eax
movq %rax, 0x18(%rsp)
movq %r12, %rdi
movl 0x14(%rsp), %r15d
movl %r15d, %esi
callq 0x1f0bda
movq 0x90(%r12), %rdi
subq 0x28(%rsp), %rax
movq 0x30(%rsp), %rsi
movq %r14, %rdx
movq %rax, %rcx
callq 0x2060df
incq %r14
movq %r14, 0x20(%rsp)
movq %r12, %rdi
movl %r15d, %esi
callq 0x1f0c08
movq 0x18(%rsp), %rsi
movl %eax, %r14d
addq $0x4, %rbx
xorl %r15d, %r15d
movb $0x1, %al
testl %r14d, %r14d
je 0x1efc52
movq %r12, %rdi
movl %r14d, %esi
callq 0x1f04d3
movq 0x18(%rsp), %rsi
movl %eax, %r15d
movq 0x20(%r12), %rcx
shlq $0x2, %rcx
addq 0x10(%r12), %rcx
jmp 0x1efede
movl %eax, %r14d
movq %r12, %rdi
movl %eax, %esi
callq 0x1f04d3
movq 0x20(%r12), %rcx
shlq $0x2, %rcx
addq 0x10(%r12), %rcx
movl %eax, %r15d
xorl %ebp, %ebp
movq 0x18(%rsp), %rsi
movl %r14d, 0x14(%rsp)
movl -0x4(%rcx), %r13d
movl %ebp, %eax
movq 0x20(%rsp), %rcx
movq 0x50(%rsp), %rdx
jmp 0x1efc49
movq 0xa0(%rsp), %r9
testq %r9, %r9
movq 0x20(%rsp), %rax
movq 0x18(%rsp), %r8
je 0x1eff48
testq %rax, %rax
je 0x1eff48
testq %r8, %r8
je 0x1eff48
movq 0x90(%r12), %rsi
movq 0x48(%rsp), %rcx
addq %rax, %rcx
movq %r8, %rdx
notq %rdx
addq %rcx, %rdx
incq %r8
movq 0xa8(%rsp), %rdi
movq %r8, %rcx
movq 0x40(%rsp), %r8
callq *%r9
movq 0x38(%r12), %rsi
testq %rsi, %rsi
movq 0x38(%rsp), %rbp
je 0x1f003c
cmpq $0x1, %rsi
je 0x1eff77
movq 0x28(%r12), %rdi
leaq 0xcba(%rip), %rcx       # 0x1f0c27
movl $0x8, %edx
callq 0x17f60
cmpq $0x0, 0x38(%r12)
je 0x1f003c
movq 0x30(%rsp), %rax
movq 0x20(%rsp), %rcx
leaq (%rax,%rcx), %r14
xorl %r15d, %r15d
movq 0x28(%rsp), %r13
shrq $0x20, %r13
testq %rbp, %rbp
je 0x1f0001
movq 0x8(%rbp), %rax
testq %rax, %rax
je 0x1f0050
leaq (%r14,%r15), %rcx
addq 0x20(%rbp), %rcx
cmpq 0x10(%rbp), %rcx
jae 0x1f0050
movq (%rbp), %rdx
testq %rdx, %rdx
je 0x1effdf
movabsq $-0x8000000000000000, %rsi # imm = 0x8000000000000000
shrq %cl, %rsi
shrq $0x6, %rcx
orq %rsi, (%rdx,%rcx,8)
testq %r13, %r13
jne 0x1f0055
movq 0x20(%rbp), %rcx
leaq (%rax,%rcx,4), %rax
movq 0x28(%rsp), %rcx
movl %ecx, (%rbx,%rax)
cmpq $0xff, %rcx
jb 0x1f0001
incq 0x18(%rbp)
movq 0x20(%rsp), %rax
leaq (%rax,%r15), %rdx
movq 0x28(%r12), %rax
movq 0x90(%r12), %rdi
movq (%rax,%r15,8), %rcx
subq 0x28(%rsp), %rcx
movq 0x30(%rsp), %rsi
callq 0x2060df
incq %r15
addq $0x4, %rbx
cmpq 0x38(%r12), %r15
jb 0x1eff9d
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x77dd7
callq 0x77e80
callq 0x77e49
callq 0x77d65
callq 0x77d9e
callq 0x77e10
callq 0x77f5e
callq 0x77eee
callq 0x77eb7
callq 0x77f25