// File: /workspace/github_c_makefile_star2_O3/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 $0x38, %rsp
movq %rsi, %r14
movq %rdi, %rbx
movq 0x78(%rsp), %rax
movq 0x70(%rsp), %rbp
movq $0x0, 0x10(%rdi)
movq %r8, 0x20(%rsp)
movq (%r8,%rax,8), %rsi
movq %r9, 0x28(%rsp)
addq %r9, %rsi
movl $0xff, 0xc(%rsp)
movq %rcx, 0x18(%rsp)
cmpq %rcx, %rsi
movl %edx, 0x8(%rsp)
movq %r14, 0x10(%rsp)
je 0x1a7504
movq %r14, %rdi
movl 0x8(%rsp), %edx
callq 0xe7bbc
movq 0x10(%rsp), %r14
movl 0x8(%rsp), %edx
movzbl %al, %eax
movl %eax, 0xc(%rsp)
movq 0x20(%rsp), %rax
movq (%rax,%rbp,8), %rsi
addq 0x28(%rsp), %rsi
cmpq 0x18(%rsp), %rsi
jne 0x1a7521
xorl %r13d, %r13d
jmp 0x1a75d9
xorl %r13d, %r13d
movq %rbx, 0x30(%rsp)
movq 0x20(%rsp), %r12
movq 0x28(%rsp), %r15
movq %r14, %rdi
callq 0xe7bbc
movq 0x8(%rbx), %rdx
movq 0x10(%rbx), %rcx
cmpq %rdx, %rcx
jae 0x1a762a
cmpb $-0x2, %al
jae 0x1a75e3
movq (%rbx), %rsi
testq %rcx, %rcx
je 0x1a7569
leaq -0x1(%rbp), %rdi
leaq (%rcx,%rcx,2), %r8
movq %rdi, -0x10(%rsi,%r8,8)
movzbl %al, %r8d
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 0x1a760e
movq 0x10(%rsp), %r14
movq %r14, %rdi
movl 0x8(%rsp), %r13d
movl %r13d, %esi
movq 0x18(%rsp), %rbx
movq %rbx, %rdx
movq %r12, %rcx
movq %r15, %r9
pushq 0x78(%rsp)
pushq %rbp
callq 0x1a7367
movl %r13d, %edx
addq $0x10, %rsp
movq %rax, %r13
movq 0x8(%r12,%rax,8), %rsi
addq %r15, %rsi
movq %rax, %rbp
incq %rbp
cmpq %rbx, %rsi
movq 0x30(%rsp), %rbx
jne 0x1a7533
movq 0x10(%rbx), %rcx
cmpq 0x8(%rbx), %rcx
jae 0x1a762a
movq (%rbx), %rax
testq %rcx, %rcx
je 0x1a75f4
leaq (%rcx,%rcx,2), %rdx
movq %r13, -0x10(%rax,%rdx,8)
incq %r13
leaq (%rcx,%rcx,2), %rcx
movq %r13, (%rax,%rcx,8)
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
cmpq %rdx, %rcx
jae 0x1a762f
leaq (%rcx,%rcx,2), %rax
movq 0x78(%rsp), %rcx
movq %rcx, -0x10(%rsi,%rax,8)
incq %rcx
movq %rcx, (%rsi,%rax,8)
jmp 0x1a75ff
callq 0x6315d
callq 0x63124