// File: /workspace/github_c_makefile_star2_O3/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 %r9, 0x30(%rsp)
movq %rdx, 0x38(%rsp)
movq %rsi, 0x20(%rsp)
movq %rdi, %r12
movl $0x0, 0x4(%rdi)
movq $0x0, 0x20(%rdi)
testq %rcx, %rcx
movq %r8, 0x28(%rsp)
je 0x1e6419
movq %r8, %r14
movq %rcx, %r13
movq 0x30(%rsp), %rbx
movq %rbx, %rax
subq %r8, %rax
xorl %ebp, %ebp
subq $0x1, %rbx
cmovbq %rbp, %rax
movq %rax, 0x8(%rsp)
movq %rbx, 0x18(%rsp)
movq 0x90(%r12), %rdi
movq 0x20(%rsp), %rsi
movq %rbp, %rdx
callq 0x1fc965
cmpq %r14, %rbx
jb 0x1e68f4
movq %rax, %r15
addq %r14, %r15
cmpl $0x0, 0x4(%r12)
je 0x1e62ee
movq 0x70(%r12), %rax
testq %rax, %rax
je 0x1e6318
addq %r15, %rax
movq 0x60(%r12), %rcx
cmpq %rcx, %rax
cmovaeq %rcx, %rax
jmp 0x1e631d
movq 0x8(%rsp), %rax
movq %rax, 0x70(%r12)
movq $0x0, 0x38(%r12)
movq %r12, %rdi
movq %r15, %rsi
movq $-0x1, %rdx
callq 0x1e6a57
jmp 0x1e640d
movq 0x60(%r12), %rax
cmpq %r15, %rax
jbe 0x1e63b3
movq %r13, %rbx
movq %r12, %rdi
movq %r15, %rsi
callq 0x1e6b2d
movq %rax, %r14
movq %r12, %rdi
movq %r15, %rsi
movq %rax, %rdx
callq 0x1e6b6f
movl %eax, %r13d
movq %r12, %rdi
movl %eax, %esi
callq 0x1e6d66
testb %al, %al
je 0x1e6903
movq %r14, (%rsp)
leaq 0x60(%rsp), %rdi
xorl %esi, %esi
leaq 0x58(%rsp), %rdx
movq %r12, %rcx
movl %r13d, %r8d
movq %r15, %r9
callq 0x1e6d83
movq %rax, %r13
movq %r12, %rdi
movq %rax, %rsi
callq 0x1e7140
movq 0x60(%rsp), %rdx
movq 0x58(%rsp), %r8
movq %r14, (%rsp)
movq %r12, %rdi
movl %eax, %esi
movq %r13, %rcx
movq %r15, %r9
callq 0x1e7196
movq 0x28(%rsp), %r14
movq %rbx, %r13
movq 0x18(%rsp), %rbx
jmp 0x1e640d
movq 0x30(%r12), %rax
cmpq %rax, 0x38(%r12)
jae 0x1e63c6
movq 0x28(%r12), %rax
jmp 0x1e63f2
leaq 0x20(%rax), %rcx
movq %rcx, 0x30(%r12)
movq 0x28(%r12), %rdi
leaq 0x100(,%rax,8), %rsi
leaq 0x1cf93b(%rip), %rdx    # 0x3b5d1e
movl $0x47e, %ecx            # imm = 0x47E
callq 0x104461
movq %rax, 0x28(%r12)
testq %rax, %rax
je 0x1e68fe
movq 0x38(%r12), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x38(%r12)
movq %r15, (%rax,%rcx,8)
incq %rbp
cmpq %rbp, %r13
jne 0x1e62a7
movq $0x0, 0x20(%r12)
cmpq $0x0, 0x18(%r12)
je 0x1e6431
movq 0x10(%r12), %rax
jmp 0x1e645a
movq $0x80, 0x18(%r12)
movq 0x10(%r12), %rdi
leaq 0x1cf8d8(%rip), %rdx    # 0x3b5d1e
movl $0x200, %esi            # imm = 0x200
movl $0x31c, %ecx            # imm = 0x31C
callq 0x104461
movq %rax, 0x10(%r12)
testq %rax, %rax
je 0x1e690d
movq 0x20(%r12), %rcx
leaq 0x1(%rcx), %rdx
movq %rdx, 0x20(%r12)
movl $0x0, (%rax,%rcx,4)
movq $0x0, 0x48(%rsp)
movq %r12, %rdi
xorl %esi, %esi
callq 0x1e7428
movq %r12, %rdi
movl %eax, %esi
callq 0x1e6d66
movl %eax, %r15d
movq %r12, %rdi
xorl %esi, %esi
callq 0x1e7428
movl %eax, 0x14(%rsp)
movq 0x90(%r12), %rdi
callq 0x1fcaf4
movq 0x20(%rsp), %rcx
addq %rcx, %rax
movq %rax, 0x40(%rsp)
leaq (,%rcx,4), %rdx
xorl %ecx, %ecx
xorl %ebx, %ebx
xorl %eax, %eax
movq %rdx, 0x50(%rsp)
movq %rcx, 0x8(%rsp)
leaq (%rdx,%rcx,4), %rbp
movq %rbx, 0x18(%rsp)
movl %eax, %r13d
movq 0x48(%rsp), %rbx
movq %r12, %rdi
movl %ebx, %esi
callq 0x1e7455
testb $0x1, %r15b
jne 0x1e65ca
movq 0x20(%r12), %rax
testb $0x1, %r13b
je 0x1e653b
cmpq $0x1, %rax
je 0x1e679b
leaq -0x1(%rax), %rcx
movq %rcx, 0x20(%r12)
movq 0x10(%r12), %rcx
movl -0x4(%rcx,%rax,4), %esi
movq %r12, %rdi
callq 0x1e74b1
movb $0x1, %r13b
xorl %r15d, %r15d
testl %eax, %eax
je 0x1e64e9
jmp 0x1e6738
movq 0x18(%r12), %rcx
cmpq %rcx, %rax
jae 0x1e654c
movq 0x10(%r12), %rax
jmp 0x1e657b
leaq 0x80(%rcx), %rax
movq %rax, 0x18(%r12)
movq 0x10(%r12), %rdi
leaq 0x200(,%rcx,4), %rsi
leaq 0x1cf7b2(%rip), %rdx    # 0x3b5d1e
movl $0x36a, %ecx            # imm = 0x36A
callq 0x104461
movq %rax, 0x10(%r12)
testq %rax, %rax
je 0x1e6908
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 0x1e7428
movq %r12, %rdi
movl %eax, %esi
callq 0x1e6d66
movl %eax, %r15d
movq %r12, %rdi
movl %r14d, %esi
callq 0x1e7428
movl %eax, 0x14(%rsp)
xorl %r13d, %r13d
jmp 0x1e64e9
movq 0x8(%rsp), %r9
testq %r9, %r9
movq 0x38(%rsp), %rdi
movq 0x30(%rsp), %r8
je 0x1e667f
testq %rdi, %rdi
je 0x1e6663
movq 0x8(%rdi), %rdx
testq %rdx, %rdx
je 0x1e6912
movq 0x20(%rsp), %rcx
addq %r9, %rcx
addq 0x20(%rdi), %rcx
cmpq 0x10(%rdi), %rcx
jae 0x1e6912
movq (%rdi), %rsi
testq %rsi, %rsi
je 0x1e662c
movabsq $-0x8000000000000000, %rdi # imm = 0x8000000000000000
shrq %cl, %rdi
shrq $0x6, %rcx
orq %rdi, (%rsi,%rcx,8)
movq 0x38(%rsp), %rdi
movq 0x28(%rsp), %rcx
addq %rax, %rcx
movq %rcx, %rsi
shrq $0x20, %rsi
jne 0x1e6917
movq 0x20(%rdi), %rsi
leaq (%rdx,%rsi,4), %rdx
movq 0x20(%rsp), %rsi
leaq (%rdx,%rsi,4), %rdx
movl %ecx, (%rdx,%r9,4)
cmpq $0xff, %rcx
jb 0x1e6663
incq 0x18(%rdi)
testq %r8, %r8
je 0x1e667f
addq 0x28(%rsp), %rax
cmpq %r8, %rax
movq 0x18(%rsp), %r9
jne 0x1e66e3
incq %r9
movq %r9, %rbx
jmp 0x1e6684
movq 0x18(%rsp), %rbx
movq %r12, %rdi
movl 0x14(%rsp), %r15d
movl %r15d, %esi
callq 0x1e7483
movq 0x90(%r12), %rdi
subq 0x28(%rsp), %rax
movq 0x20(%rsp), %rsi
movq 0x8(%rsp), %r14
movq %r14, %rdx
movq %rax, %rcx
callq 0x1fc9e1
incq %r14
movq %r14, 0x8(%rsp)
movq %r12, %rdi
movl %r15d, %esi
callq 0x1e74b1
movl %eax, %r14d
addq $0x4, %rbp
xorl %r15d, %r15d
movb $0x1, %al
testl %r14d, %r14d
je 0x1e64dc
jmp 0x1e677d
jae 0x1e691c
cmpq $0x0, 0xa0(%rsp)
je 0x1e6731
movl $0x0, %ebx
testq %r9, %r9
je 0x1e6684
movq 0x90(%r12), %rsi
movq 0x8(%rsp), %rax
movq 0x40(%rsp), %rcx
addq %rcx, %rax
movq %r9, %rdx
notq %rdx
addq %rax, %rdx
incq %r9
movq 0xa8(%rsp), %rdi
movq %r9, %rcx
callq *0xa0(%rsp)
xorl %ebx, %ebx
jmp 0x1e6684
movl %eax, %r14d
movq %r12, %rdi
movl %eax, %esi
callq 0x1e6d66
movq 0x20(%r12), %rcx
shlq $0x2, %rcx
addq 0x10(%r12), %rcx
movl %eax, %r15d
xorl %r13d, %r13d
movq 0x18(%rsp), %rbx
movl %r14d, 0x14(%rsp)
movl -0x4(%rcx), %eax
movq %rax, 0x48(%rsp)
movl %r13d, %eax
movq 0x8(%rsp), %rcx
movq 0x50(%rsp), %rdx
jmp 0x1e64d3
movq %r12, %rdi
movl %r14d, %esi
callq 0x1e6d66
movl %eax, %r15d
movq 0x20(%r12), %rcx
shlq $0x2, %rcx
addq 0x10(%r12), %rcx
jmp 0x1e675e
movq 0xa0(%rsp), %rax
testq %rax, %rax
movq 0x8(%rsp), %r8
movq 0x18(%rsp), %r9
je 0x1e67ef
testq %r8, %r8
je 0x1e67ef
testq %r9, %r9
je 0x1e67ef
movq 0x90(%r12), %rsi
movq 0x40(%rsp), %rcx
addq %r8, %rcx
movq %r9, %rdx
notq %rdx
addq %rcx, %rdx
incq %r9
movq 0xa8(%rsp), %rdi
movq %r9, %rcx
movq 0x30(%rsp), %r8
callq *%rax
movq 0x8(%rsp), %r8
movq 0x38(%r12), %rsi
testq %rsi, %rsi
movq 0x28(%rsp), %r13
je 0x1e68e0
cmpq $0x1, %rsi
je 0x1e682f
movq 0x28(%r12), %rdi
leaq 0xcbc(%rip), %rcx       # 0x1e74d0
movl $0x8, %edx
callq 0x17f60
movq 0x8(%rsp), %r8
cmpq $0x0, 0x38(%r12)
je 0x1e68e0
movq 0x20(%rsp), %rax
leaq (%rax,%r8), %rbx
xorl %r14d, %r14d
movq %r13, %r15
shrq $0x20, %r15
movq 0x38(%rsp), %rdi
testq %rdi, %rdi
je 0x1e68a7
movq 0x8(%rdi), %rax
testq %rax, %rax
je 0x1e68ef
leaq (%rbx,%r14), %rcx
addq 0x20(%rdi), %rcx
cmpq 0x10(%rdi), %rcx
jae 0x1e68ef
movq (%rdi), %rdx
testq %rdx, %rdx
je 0x1e6888
movabsq $-0x8000000000000000, %rsi # imm = 0x8000000000000000
shrq %cl, %rsi
shrq $0x6, %rcx
orq %rsi, (%rdx,%rcx,8)
testq %r15, %r15
jne 0x1e68f9
movq 0x20(%rdi), %rcx
leaq (%rax,%rcx,4), %rax
movl %r13d, (%rbp,%rax)
cmpq $0xff, %r13
jb 0x1e68a7
incq 0x18(%rdi)
leaq (%r8,%r14), %rdx
movq 0x28(%r12), %rax
movq 0x90(%r12), %rdi
movq (%rax,%r14,8), %rcx
subq %r13, %rcx
movq 0x20(%rsp), %rsi
callq 0x1fc9e1
movq 0x8(%rsp), %r8
incq %r14
addq $0x4, %rbp
cmpq 0x38(%r12), %r14
jb 0x1e6842
addq $0x68, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x761f3
callq 0x7614a
callq 0x761bc
callq 0x760d8
callq 0x76111
callq 0x76183
callq 0x762d1
callq 0x76261
callq 0x7622a
callq 0x76298