// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/esa-minunique.c
// Function: gt_suffixarrayfindinterval
GtRange gt_suffixarrayfindinterval (const void *genericindex,
                                    GtUword offset,
                                    GtUword left,
                                    GtUword right,
                                    GtUword *matchlength,
                                    const GtUchar *qstart,
                                    const GtUchar *qend)
{
  const Suffixarray *suffixarray = (const Suffixarray *) genericindex;
  const GtUchar *qptr;
  GtUword totallength = gt_encseq_total_length(suffixarray->encseq);
  GtRange result;

  gt_assert(qstart < qend);
  for (qptr = qstart; /* Nothing */; qptr++, offset++)
  {
    Simplelcpinterval itv;

    if (qptr >= qend || GT_ISSPECIAL(*qptr) ||
        !gt_lcpintervalfindcharchildintv(suffixarray->encseq,
                                         suffixarray->readmode,
                                         totallength,
                                         suffixarray->suftab,
                                         &itv,
                                         *qptr,
                                         offset,
                                         left,
                                         right))
    {
      break;
    }
    gt_assert(itv.left <= itv.right);
    left = itv.left;
    right = itv.right;
  }
  *matchlength = (GtUword) (qptr - qstart);
  result.start = left;
  result.end = right;
  return result;
}

// Assembly:
subq $0x88, %rsp
movq 0x90(%rsp), %rax
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movq %rdx, 0x60(%rsp)
movq %rcx, 0x58(%rsp)
movq %r8, 0x50(%rsp)
movq %r9, 0x48(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rdi
callq 0xa9d00
movq %rax, 0x30(%rsp)
movq 0x48(%rsp), %rax
cmpq 0x90(%rsp), %rax
jb 0x238030
movq 0x403fa1(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2de00a(%rip), %rsi    # 0x516013
leaq 0x33d507(%rip), %rdx    # 0x575517
leaq 0x33f011(%rip), %rcx    # 0x577028
leaq 0x33efd9(%rip), %r8     # 0x576ff7
movl $0xa1, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x238032
movq 0x48(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x38(%rsp), %rax
cmpq 0x90(%rsp), %rax
jae 0x2380af
movq 0x38(%rsp), %rax
movzbl (%rax), %eax
cmpl $0xfe, %eax
jge 0x2380af
movq 0x40(%rsp), %rax
movq (%rax), %rdi
movq 0x40(%rsp), %rax
movl 0x48(%rax), %esi
movq 0x30(%rsp), %rdx
movq 0x40(%rsp), %rax
movq 0x58(%rax), %rcx
movq 0x38(%rsp), %rax
movb (%rax), %r9b
movq 0x68(%rsp), %r11
movq 0x60(%rsp), %r10
movq 0x58(%rsp), %rax
leaq 0x20(%rsp), %r8
movzbl %r9b, %r9d
movq %r11, (%rsp)
movq %r10, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x23f8c0
testb $0x1, %al
jne 0x2380b1
jmp 0x23812e
jmp 0x2380b3
movq 0x20(%rsp), %rax
cmpq 0x28(%rsp), %rax
jbe 0x2380f7
movq 0x403eda(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2ddf43(%rip), %rsi    # 0x516013
leaq 0x33eef5(%rip), %rdx    # 0x576fcc
leaq 0x33ef4a(%rip), %rcx    # 0x577028
leaq 0x33ef12(%rip), %r8     # 0x576ff7
movl $0xb3, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2380f9
movq 0x20(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0x38(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x38(%rsp)
movq 0x68(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x68(%rsp)
jmp 0x23803c
movq 0x38(%rsp), %rcx
movq 0x48(%rsp), %rax
subq %rax, %rcx
movq 0x50(%rsp), %rax
movq %rcx, (%rax)
movq 0x60(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x78(%rsp), %rax
movq 0x80(%rsp), %rdx
addq $0x88, %rsp
retq
nop