// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/esa-minunique.c
// Function: gt_suffixarraymstats
GtUword gt_suffixarraymstats (const void *genericindex,
                                    GtUword offset,
                                    GtUword left,
                                    GtUword right,
                                    GtUword *witnessposition,
                                    const GtUchar *qstart,
                                    const GtUchar *qend)
{
  Simplelcpinterval itv;
  const GtUchar *qptr;
  const Suffixarray *suffixarray = (const Suffixarray *) genericindex;
  GtUword totallength;

  itv.left = left;
  itv.right = right;
  totallength = gt_encseq_total_length(suffixarray->encseq);
  for (qptr = qstart; /* Nothing */; qptr++, offset++)
  {
    gt_assert(itv.left <= itv.right);
    if (qptr >= qend || GT_ISSPECIAL(*qptr) ||
        !gt_lcpintervalfindcharchildintv(suffixarray->encseq,
                                      suffixarray->readmode,
                                      totallength,
                                      suffixarray->suftab,
                                      &itv,
                                      *qptr,
                                      (GtUword) offset,
                                      itv.left,itv.right))
    {
      if (witnessposition != NULL)
      {
        *witnessposition = ESASUFFIXPTRGET(suffixarray->suftab,itv.left);
      }
      break;
    }
  }
  return offset;
}

// Assembly:
subq $0x78, %rsp
movq 0x80(%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, 0x28(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x28(%rsp), %rax
movq (%rax), %rdi
callq 0xa9d00
movq %rax, 0x20(%rsp)
movq 0x48(%rsp), %rax
movq %rax, 0x30(%rsp)
jmp 0x237d16
movq 0x38(%rsp), %rax
cmpq 0x40(%rsp), %rax
jbe 0x237d5a
movq 0x404277(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2de2e0(%rip), %rsi    # 0x516013
leaq 0x33f292(%rip), %rdx    # 0x576fcc
leaq 0x33f2a1(%rip), %rcx    # 0x576fe2
leaq 0x33f2af(%rip), %r8     # 0x576ff7
movl $0x56, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x237d5c
movq 0x30(%rsp), %rax
cmpq 0x80(%rsp), %rax
jae 0x237dcf
movq 0x30(%rsp), %rax
movzbl (%rax), %eax
cmpl $0xfe, %eax
jge 0x237dcf
movq 0x28(%rsp), %rax
movq (%rax), %rdi
movq 0x28(%rsp), %rax
movl 0x48(%rax), %esi
movq 0x20(%rsp), %rdx
movq 0x28(%rsp), %rax
movq 0x58(%rax), %rcx
movq 0x30(%rsp), %rax
movb (%rax), %r9b
movq 0x68(%rsp), %r11
movq 0x38(%rsp), %r10
movq 0x40(%rsp), %rax
leaq 0x38(%rsp), %r8
movzbl %r9b, %r9d
movq %r11, (%rsp)
movq %r10, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x23f8c0
testb $0x1, %al
jne 0x237df3
cmpq $0x0, 0x50(%rsp)
je 0x237df1
movq 0x28(%rsp), %rax
movq 0x58(%rax), %rax
movq 0x38(%rsp), %rcx
movq (%rax,%rcx,8), %rcx
movq 0x50(%rsp), %rax
movq %rcx, (%rax)
jmp 0x237e16
jmp 0x237df5
movq 0x30(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x30(%rsp)
movq 0x68(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x68(%rsp)
jmp 0x237d14
movq 0x68(%rsp), %rax
addq $0x78, %rsp
retq