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

  pos = ESASUFFIXPTRGET(suftab,left) + offset;
  if (cc < SEQUENCE(encseq,pos))
  {
    return false;
  }
  pos = ESASUFFIXPTRGET(suftab,right) + offset;
  if (cc > SEQUENCE(encseq,pos))
  {
    return false;
  }
  itv->left = lcpintervalfindfirst(encseq,
                                   readmode,
                                   totallength,
                                   suftab,
                                   cc,
                                   offset,
                                   left,
                                   right);
  if (itv->left == ULONG_MAX)
  {
    return false;
  }
  itv->right = lcpintervalfindlast(encseq,
                                   readmode,
                                   totallength,
                                   suftab,
                                   cc,
                                   offset,
                                   itv->left + 1,
                                   right);
  if (itv->right == ULONG_MAX)
  {
    itv->right = itv->left;
  }
  return true;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
movq %r8, %rbx
movq %rdx, %r15
movl %esi, 0x8(%rsp)
movq %rdi, 0x10(%rsp)
movq 0x68(%rsp), %r13
movq %rcx, 0x18(%rsp)
movq (%rcx,%r13,8), %rsi
addq 0x60(%rsp), %rsi
movl $0xff, %eax
cmpq %rdx, %rsi
movl %r9d, 0xc(%rsp)
je 0x22bf95
movq 0x10(%rsp), %rdi
movl 0x8(%rsp), %edx
callq 0x2faf0
movl 0xc(%rsp), %r9d
movzbl %al, %eax
cmpl %r9d, %eax
ja 0x22c0e4
movq 0x70(%rsp), %r14
movq 0x18(%rsp), %rax
movq (%rax,%r14,8), %rsi
addq 0x60(%rsp), %rsi
movl $0xff, %eax
cmpq %r15, %rsi
je 0x22bfd1
movq 0x10(%rsp), %rdi
movl 0x8(%rsp), %edx
callq 0x2faf0
movl 0xc(%rsp), %r9d
movzbl %al, %eax
cmpl %r9d, %eax
jb 0x22c0e4
movq %rbx, 0x20(%rsp)
movq $-0x1, %r12
movq %r14, %rbp
cmpq %rbp, %r13
ja 0x22c04d
movq %rbp, %rbx
subq %r13, %rbx
incq %rbx
shrq %rbx
addq %r13, %rbx
movq 0x18(%rsp), %rax
movq (%rax,%rbx,8), %rsi
addq 0x60(%rsp), %rsi
movl $0xff, %eax
cmpq %r15, %rsi
je 0x22c02b
movq 0x10(%rsp), %rdi
movl 0x8(%rsp), %edx
callq 0x2faf0
movl 0xc(%rsp), %r9d
movzbl %al, %eax
cmpl %r9d, %eax
jae 0x22c03a
incq %rbx
movb $0x1, %al
movq %rbx, %r13
jmp 0x22c049
cmoveq %rbx, %r12
addq $-0x1, %rbx
setb %al
cmovbq %rbx, %rbp
testb %al, %al
jne 0x22bfe9
movq 0x20(%rsp), %rbp
movq %r12, (%rbp)
cmpq $-0x1, %r12
je 0x22c0e4
incq %r12
movq $-0x1, %r13
cmpq %r14, %r12
ja 0x22c0ce
movq %r14, %rbx
subq %r12, %rbx
incq %rbx
shrq %rbx
addq %r12, %rbx
movq 0x18(%rsp), %rax
movq (%rax,%rbx,8), %rsi
addq 0x60(%rsp), %rsi
movl $0xff, %eax
cmpq %r15, %rsi
je 0x22c0ac
movq 0x10(%rsp), %rdi
movl 0x8(%rsp), %edx
callq 0x2faf0
movl 0xc(%rsp), %r9d
movzbl %al, %eax
cmpl %r9d, %eax
jbe 0x22c0be
addq $-0x1, %rbx
setb %al
cmovbq %rbx, %r14
jmp 0x22c0ca
cmoveq %rbx, %r13
incq %rbx
movb $0x1, %al
movq %rbx, %r12
testb %al, %al
jne 0x22c06a
movq %r13, 0x8(%rbp)
movb $0x1, %al
cmpq $-0x1, %r13
jne 0x22c0e6
movq (%rbp), %rcx
movq %rcx, 0x8(%rbp)
jmp 0x22c0e6
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq