// File: /workspace/github_c_makefile_star2_O3/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, 0x8(%rsp)
movq %r8, %rbx
movq %rcx, %r14
movq %rdx, %r12
movq %rdi, %rbp
movq 0x68(%rsp), %rax
movq %rax, (%rsp)
movq 0x60(%rsp), %r9
cmpq $0x0, 0x10(%rdi)
jne 0x1f6405
cmpq $0x0, 0x8(%rbp)
je 0x1f6554
cmpq $0x2, %r14
movq %rsi, 0x10(%rsp)
jb 0x1f64f7
leaq (%r12,%rsi), %rax
movq %rax, 0x18(%rsp)
leaq (,%r12,4), %rax
movq %rax, 0x20(%rsp)
movl $0x1, %r15d
xorl %eax, %eax
movq 0x10(%rbp), %rcx
testq %rcx, %rcx
je 0x1f6442
movzwl (%rcx,%r15,2), %ecx
jmp 0x1f649e
movq 0x8(%rbp), %rdi
testq %rdi, %rdi
je 0x1f654a
movq 0x8(%rdi), %rdx
testq %rdx, %rdx
je 0x1f654a
movq 0x20(%rdi), %rsi
leaq (%r12,%r15), %rcx
addq %rsi, %rcx
cmpq 0x10(%rdi), %rcx
jae 0x1f654a
movq (%rdi), %rdi
testq %rdi, %rdi
je 0x1f6491
movq %rcx, %r8
shrq $0x6, %r8
movq (%rdi,%r8,8), %rdi
shlq %cl, %rdi
shrq $0x3f, %rdi
je 0x1f654f
leaq (%rdx,%rsi,4), %rcx
addq 0x20(%rsp), %rcx
movl (%rcx,%r15,4), %ecx
cmpq %rbx, %rcx
jae 0x1f64e3
testq %r9, %r9
sete %cl
leaq -0x1(%r15), %rdx
cmpq %rdx, %rax
setae %dl
orb %cl, %dl
movq %r15, %rcx
jne 0x1f64e6
movq 0x18(%rsp), %rcx
leaq (%rcx,%rax), %rdx
movq %r15, %rcx
subq %rax, %rcx
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %rbx, %r8
movq %r9, %r13
callq *%r9
movq %r13, %r9
movq %r15, %rcx
jmp 0x1f64e6
movq %rax, %rcx
incq %r15
movq %rcx, %rax
cmpq %r15, %r14
jne 0x1f6432
jmp 0x1f64f9
xorl %ecx, %ecx
leaq -0x1(%r14), %rax
cmpq %rax, %rcx
setae %al
testq %r9, %r9
sete %dl
orb %al, %dl
jne 0x1f653b
addq 0x10(%rsp), %r12
addq %rcx, %r12
subq %rcx, %r14
movq (%rsp), %rdi
movq 0x8(%rsp), %rsi
movq %r12, %rdx
movq %r14, %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
callq 0x7be07
callq 0x7bdd0
callq 0x7be3e