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

  itv.left = left;
  itv.right = right;
  totallength = gt_encseq_total_length(suffixarray->encseq);
  *witnessposition = ULONG_MAX;
  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,
                                         offset,
                                         itv.left,
                                         itv.right))
    {
      if (itv.left == itv.right)
      {
        *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, 0x40(%rsp)
movq 0x60(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x58(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rdi
callq 0xa9d00
movq %rax, 0x20(%rsp)
movq 0x50(%rsp), %rax
movq $-0x1, (%rax)
movq 0x48(%rsp), %rax
movq %rax, 0x28(%rsp)
jmp 0x237e92
movq 0x30(%rsp), %rax
cmpq 0x38(%rsp), %rax
jbe 0x237ed6
movq 0x4040fb(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2de164(%rip), %rsi    # 0x516013
leaq 0x33f116(%rip), %rdx    # 0x576fcc
leaq 0x33f154(%rip), %rcx    # 0x577011
leaq 0x33f133(%rip), %r8     # 0x576ff7
movl $0x7e, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x237ed8
movq 0x28(%rsp), %rax
cmpq 0x80(%rsp), %rax
jae 0x237f4b
movq 0x28(%rsp), %rax
movzbl (%rax), %eax
cmpl $0xfe, %eax
jge 0x237f4b
movq 0x40(%rsp), %rax
movq (%rax), %rdi
movq 0x40(%rsp), %rax
movl 0x48(%rax), %esi
movq 0x20(%rsp), %rdx
movq 0x40(%rsp), %rax
movq 0x58(%rax), %rcx
movq 0x28(%rsp), %rax
movb (%rax), %r9b
movq 0x68(%rsp), %r11
movq 0x30(%rsp), %r10
movq 0x38(%rsp), %rax
leaq 0x30(%rsp), %r8
movzbl %r9b, %r9d
movq %r11, (%rsp)
movq %r10, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x23f8c0
testb $0x1, %al
jne 0x237f73
movq 0x30(%rsp), %rax
cmpq 0x38(%rsp), %rax
jne 0x237f71
movq 0x40(%rsp), %rax
movq 0x58(%rax), %rax
movq 0x30(%rsp), %rcx
movq (%rax,%rcx,8), %rcx
movq 0x50(%rsp), %rax
movq %rcx, (%rax)
jmp 0x237f96
jmp 0x237f75
movq 0x28(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x28(%rsp)
movq 0x68(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x68(%rsp)
jmp 0x237e90
movq 0x68(%rsp), %rax
addq $0x78, %rsp
retq