// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/esa-splititv.c
// Function: gt_lcpintervalfindcharchildintv
bool gt_lcpintervalfindcharchildintv(const GtEncseq *encseq,
                                     GtReadmode readmode,
                                     GtUword totallength,
                                     const ESASuffixptr *suftab,
                                     Simplelcpinterval *itv,
                                     GtUchar cc,
                                     GtUword offset,
                                     GtUword left,
                                     GtUword right)
{
  GtUchar leftcc, rightcc;
  GtUword pos, rightbound, leftbound = left;

  pos = ESASUFFIXPTRGET(suftab,right) + offset;
  rightcc = SEQUENCE(encseq,pos);
  while (true)
  {
    pos = ESASUFFIXPTRGET(suftab,leftbound) + offset;
    leftcc = SEQUENCE(encseq,pos);
    if (leftcc == rightcc)
    {
      break;
    }
    rightbound = lcpintervalfindrightbound(encseq,readmode,
                                           totallength,suftab,leftcc,
                                           offset,leftbound,right);
    if (leftcc == cc)
    {
      itv->left = leftbound;
      itv->right = rightbound;
      return true;
    }
    if (leftcc > cc)
    {
      return false;
    }
    leftbound = rightbound+1;
  }
  if (leftcc == cc)
  {
    itv->left = leftbound;
    itv->right = right;
    return true;
  }
  return false;
}

// Assembly:
subq $0x68, %rsp
movb %r9b, %al
movq 0x80(%rsp), %r9
movq 0x78(%rsp), %r9
movq 0x70(%rsp), %r9
movq %rdi, 0x58(%rsp)
movl %esi, 0x54(%rsp)
movq %rdx, 0x48(%rsp)
movq %rcx, 0x40(%rsp)
movq %r8, 0x38(%rsp)
movb %al, 0x37(%rsp)
movq 0x78(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x40(%rsp), %rax
movq 0x80(%rsp), %rcx
movq (%rax,%rcx,8), %rax
addq 0x70(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
cmpq 0x48(%rsp), %rax
jne 0x23f931
movl $0xff, %eax
movl %eax, 0x14(%rsp)
jmp 0x23f94b
movq 0x58(%rsp), %rdi
movq 0x28(%rsp), %rsi
movl 0x54(%rsp), %edx
callq 0xa9da0
movzbl %al, %eax
movl %eax, 0x14(%rsp)
movl 0x14(%rsp), %eax
movb %al, 0x35(%rsp)
movq 0x40(%rsp), %rax
movq 0x18(%rsp), %rcx
movq (%rax,%rcx,8), %rax
addq 0x70(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
cmpq 0x48(%rsp), %rax
jne 0x23f982
movl $0xff, %eax
movl %eax, 0x10(%rsp)
jmp 0x23f99c
movq 0x58(%rsp), %rdi
movq 0x28(%rsp), %rsi
movl 0x54(%rsp), %edx
callq 0xa9da0
movzbl %al, %eax
movl %eax, 0x10(%rsp)
movl 0x10(%rsp), %eax
movb %al, 0x36(%rsp)
movzbl 0x36(%rsp), %eax
movzbl 0x35(%rsp), %ecx
cmpl %ecx, %eax
jne 0x23f9b7
jmp 0x23fa50
movq 0x58(%rsp), %rdi
movl 0x54(%rsp), %esi
movq 0x48(%rsp), %rdx
movq 0x40(%rsp), %rcx
movb 0x36(%rsp), %r8b
movq 0x70(%rsp), %r9
movq 0x18(%rsp), %r10
movq 0x80(%rsp), %rax
movzbl %r8b, %r8d
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x23faa0
movq %rax, 0x20(%rsp)
movzbl 0x36(%rsp), %eax
movzbl 0x37(%rsp), %ecx
cmpl %ecx, %eax
jne 0x23fa28
movq 0x18(%rsp), %rcx
movq 0x38(%rsp), %rax
movq %rcx, (%rax)
movq 0x20(%rsp), %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x8(%rax)
movb $0x1, 0x67(%rsp)
jmp 0x23fa88
movzbl 0x36(%rsp), %eax
movzbl 0x37(%rsp), %ecx
cmpl %ecx, %eax
jle 0x23fa3d
movb $0x0, 0x67(%rsp)
jmp 0x23fa88
movq 0x20(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x18(%rsp)
jmp 0x23f953
movzbl 0x36(%rsp), %eax
movzbl 0x37(%rsp), %ecx
cmpl %ecx, %eax
jne 0x23fa83
movq 0x18(%rsp), %rcx
movq 0x38(%rsp), %rax
movq %rcx, (%rax)
movq 0x80(%rsp), %rcx
movq 0x38(%rsp), %rax
movq %rcx, 0x8(%rax)
movb $0x1, 0x67(%rsp)
jmp 0x23fa88
movb $0x0, 0x67(%rsp)
movb 0x67(%rsp), %al
andb $0x1, %al
addq $0x68, %rsp
retq
nopw %cs:(%rax,%rax)