// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x58, %rsp
movq 0x68(%rsp), %rax
movq 0x60(%rsp), %rax
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x30(%rsp)
movq %r9, 0x28(%rsp)
movq $0x0, 0x10(%rsp)
movq 0x50(%rsp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x2dcc05
movq 0x50(%rsp), %rax
cmpq $0x0, 0x8(%rax)
jne 0x2dcc05
movq 0x35f3cc(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x239435(%rip), %rsi    # 0x516013
leaq 0x2b0400(%rip), %rdx    # 0x58cfe5
leaq 0x2b043a(%rip), %rcx    # 0x58d026
leaq 0x2b03d4(%rip), %r8     # 0x58cfc7
movl $0x28d, %r9d            # imm = 0x28D
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2dcc07
movq $0x1, 0x20(%rsp)
movq 0x20(%rsp), %rax
cmpq 0x38(%rsp), %rax
jae 0x2dcce3
movq 0x50(%rsp), %rax
cmpq $0x0, 0x10(%rax)
je 0x2dcc45
movq 0x50(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x20(%rsp), %rcx
movzwl (%rax,%rcx,2), %eax
movq %rax, 0x8(%rsp)
jmp 0x2dcc62
movq 0x50(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x40(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x2dcd40
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
cmpq 0x30(%rsp), %rax
jae 0x2dccce
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jae 0x2dccc4
cmpq $0x0, 0x60(%rsp)
je 0x2dccc2
movq 0x60(%rsp), %rax
movq 0x68(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x48(%rsp), %rdx
addq 0x40(%rsp), %rdx
addq 0x10(%rsp), %rdx
movq 0x20(%rsp), %rcx
subq 0x10(%rsp), %rcx
movq 0x30(%rsp), %r8
callq *%rax
jmp 0x2dccc4
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
jmp 0x2dccd0
movq 0x20(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x20(%rsp)
jmp 0x2dcc10
movq 0x10(%rsp), %rax
movq 0x38(%rsp), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jae 0x2dcd2f
cmpq $0x0, 0x60(%rsp)
je 0x2dcd2d
movq 0x60(%rsp), %rax
movq 0x68(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x48(%rsp), %rdx
addq 0x40(%rsp), %rdx
addq 0x10(%rsp), %rdx
movq 0x38(%rsp), %rcx
subq 0x10(%rsp), %rcx
movq 0x30(%rsp), %r8
callq *%rax
jmp 0x2dcd2f
addq $0x58, %rsp
retq
nopw %cs:(%rax,%rax)