// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/match/esa-splititv.c
// Function: gt_lcpintervalsplitwithoutspecial
void gt_lcpintervalsplitwithoutspecial(GtArrayBoundswithchar *bwci,
                                       const GtEncseq *encseq,
                                       GtReadmode readmode,
                                       GtUword totallength,
                                       const ESASuffixptr *suftab,
                                       GtUword parentoffset,
                                       GtUword parentleft,
                                       GtUword parentright)
{
  GtUchar leftcc, rightcc;
  GtUword rightbound = 0, leftbound = parentleft;

  /* call gt_lcpintervalextendlcp and verify if interval can be extended by
     some character */
  bwci->nextfreeBoundswithchar = 0;
  rightcc = SEQUENCE(encseq,ESASUFFIXPTRGET(suftab,parentright) + parentoffset);
  while (true)
  {
    leftcc = SEQUENCE(encseq,ESASUFFIXPTRGET(suftab,leftbound) + parentoffset);
    gt_assert(bwci->nextfreeBoundswithchar < bwci->allocatedBoundswithchar);
    if (GT_ISSPECIAL(leftcc))
    {
      ADDPREVIOUSRBOUND(rightbound);
      ADDCURRENTLBOUND(rightbound+1);
      return;
    }
    ADDPREVIOUSRBOUND(leftbound-1);
    ADDCURRENTLBOUND(leftbound);
    ADDCURRENTINCHAR(leftcc);
    if (leftcc == rightcc)
    {
      break;
    }
    rightbound = lcpintervalfindrightbound(encseq,readmode,totallength,suftab,
                                           leftcc,parentoffset,
                                           leftbound,parentright);
    leftbound = rightbound+1;
  }
  gt_assert(bwci->nextfreeBoundswithchar < bwci->allocatedBoundswithchar);
  ADDPREVIOUSRBOUND(parentright);
  ADDCURRENTLBOUND(parentright+1);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, %r14
movq %r8, %r15
movq %rcx, %r12
movl %edx, 0x8(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdi, %rbx
movq 0x58(%rsp), %rax
movq $0x0, 0x10(%rdi)
movq (%r8,%rax,8), %rsi
addq %r9, %rsi
movl $0xff, 0xc(%rsp)
cmpq %rcx, %rsi
je 0x1b0103
movq 0x10(%rsp), %rdi
movl 0x8(%rsp), %edx
callq 0xec1f8
movzbl %al, %eax
movl %eax, 0xc(%rsp)
movq 0x50(%rsp), %rbp
xorl %r13d, %r13d
movq (%r15,%rbp,8), %rsi
addq %r14, %rsi
movb $-0x1, %al
cmpq %r12, %rsi
je 0x1b0127
movq 0x10(%rsp), %rdi
movl 0x8(%rsp), %edx
callq 0xec1f8
movq 0x8(%rbx), %rdx
movq 0x10(%rbx), %rcx
cmpq %rdx, %rcx
jae 0x1b01f3
cmpb $-0x2, %al
jae 0x1b01a0
testq %rcx, %rcx
je 0x1b0151
leaq -0x1(%rbp), %rsi
movq (%rbx), %rdi
leaq (%rcx,%rcx,2), %r8
movq %rsi, -0x10(%rdi,%r8,8)
movzbl %al, %r8d
movq (%rbx), %rsi
leaq (%rcx,%rcx,2), %rdi
movq %rbp, (%rsi,%rdi,8)
incq %rcx
movq %rcx, 0x10(%rbx)
movb %al, 0x10(%rsi,%rdi,8)
cmpl %r8d, 0xc(%rsp)
je 0x1b01c1
movq 0x10(%rsp), %rdi
movl 0x8(%rsp), %esi
movq %r12, %rdx
movq %r15, %rcx
movq %r14, %r9
pushq 0x58(%rsp)
pushq %rbp
callq 0x1aff7b
addq $0x10, %rsp
movq %rax, %r13
movq %rax, %rbp
incq %rbp
jmp 0x1b010b
testq %rcx, %rcx
je 0x1b01b1
movq (%rbx), %rax
leaq (%rcx,%rcx,2), %rdx
movq %r13, -0x10(%rax,%rdx,8)
incq %r13
movq (%rbx), %rax
leaq (%rcx,%rcx,2), %rcx
movq %r13, (%rax,%rcx,8)
jmp 0x1b01e4
cmpq %rdx, %rcx
jae 0x1b01f8
testq %rcx, %rcx
movq 0x58(%rsp), %rdx
je 0x1b01d9
leaq (%rcx,%rcx,2), %rax
movq %rdx, -0x10(%rsi,%rax,8)
incq %rdx
leaq (%rcx,%rcx,2), %rax
movq %rdx, (%rsi,%rax,8)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x6483c
callq 0x64875