// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/sfx-shortreadsort.c
// Function: gt_shortreadsort_sssp_add_unsorted
void gt_shortreadsort_sssp_add_unsorted(const GtShortreadsortworkinfo *srsw,
                                        GtUword bucketleftidx,
                                        GtUword subbucketleft,
                                        GtUword width,
                                        GtUword maxdepth,
                                        GtSuffixsortspace *sssp,
                                        GtProcessunsortedsuffixrange
                                          processunsortedsuffixrange,
                                        void *processunsortedsuffixrangeinfo)
{
  GtUword idx, lcpvalue, laststart = 0;

  gt_assert(srsw->mediumsizelcpvalues != NULL || srsw->sssplcpvalues != NULL);
  for (idx = 1UL; idx < width; idx++)
  {
    lcpvalue = srsw->mediumsizelcpvalues != NULL
                 ? (GtUword) srsw->mediumsizelcpvalues[idx]
                 : gt_lcptab_getvalue(srsw->sssplcpvalues,subbucketleft,idx);
    if (lcpvalue < maxdepth)
    {
      if (laststart < idx-1)
      {
        if (processunsortedsuffixrange != NULL)
        {
          processunsortedsuffixrange(processunsortedsuffixrangeinfo,
                                     sssp,
                                     bucketleftidx + subbucketleft + laststart,
                                     idx - laststart,maxdepth);
        }
      }
      laststart = idx;
    }
  }
  if (laststart < width-1)
  {
    if (processunsortedsuffixrange != NULL)
    {
      processunsortedsuffixrange(processunsortedsuffixrangeinfo,
                                 sssp,
                                 bucketleftidx + subbucketleft + laststart,
                                 width - laststart,maxdepth);
    }
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r9, 0x18(%rsp)
movq %r8, %rbx
movq %rcx, %r15
movq %rdi, %r14
movq 0x68(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x60(%rsp), %r9
cmpq $0x0, 0x10(%rdi)
jne 0x1a8934
cmpq $0x0, 0x8(%r14)
je 0x1a8a10
movq %rdx, 0x20(%rsp)
addq %rdx, %rsi
movq %rsi, 0x10(%rsp)
pushq $0x1
popq %r13
xorl %r12d, %r12d
movq %r9, %rbp
cmpq %r15, %r13
jae 0x1a89c1
movq 0x10(%r14), %rax
testq %rax, %rax
je 0x1a8960
movzwl (%rax,%r13,2), %eax
jmp 0x1a8974
movq 0x8(%r14), %rdi
movq 0x20(%rsp), %rsi
movq %r13, %rdx
callq 0x1a8a48
movq %rbp, %r9
cmpq %rbx, %rax
jae 0x1a89b6
testq %r9, %r9
sete %al
leaq -0x1(%r13), %rcx
cmpq %rcx, %r12
setae %cl
orb %al, %cl
movq %r13, %rax
jne 0x1a89b9
movq 0x10(%rsp), %rax
leaq (%rax,%r12), %rdx
movq %r13, %rcx
subq %r12, %rcx
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %rbx, %r8
callq *%rbp
movq %rbp, %r9
movq %r13, %rax
jmp 0x1a89b9
movq %r12, %rax
incq %r13
movq %rax, %r12
jmp 0x1a894b
testq %r9, %r9
sete %al
leaq -0x1(%r15), %rcx
cmpq %rcx, %r12
setae %cl
orb %al, %cl
jne 0x1a8a01
movq 0x10(%rsp), %rdx
addq %r12, %rdx
subq %r12, %r15
movq 0x8(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq %r15, %rcx
movq %rbx, %r8
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmpq *%r9
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x28f551(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x13c5f2(%rip), %rsi    # 0x2e5013
leaq 0x1b19f6(%rip), %rdx    # 0x35a41e
leaq 0x1b1a30(%rip), %rcx    # 0x35a45f
leaq 0x1b19ca(%rip), %r8     # 0x35a400
movl $0x28d, %r9d            # imm = 0x28D
xorl %eax, %eax
callq 0x17a50
callq 0x17390