// File: /workspace/github_c_makefile_star2_O2/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, %rbx
movq %r8, %r14
movq %rcx, %r15
movl %edx, 0x8(%rsp)
movq %rsi, 0x10(%rsp)
movq %rdi, %r13
movq 0x58(%rsp), %rax
andq $0x0, 0x10(%rdi)
movq (%r8,%rax,8), %rsi
addq %r9, %rsi
movl $0xff, 0xc(%rsp)
cmpq %rcx, %rsi
je 0x153bb5
movq 0x10(%rsp), %rdi
movl 0x8(%rsp), %edx
callq 0x705e4
movzbl %al, %eax
movl %eax, 0xc(%rsp)
movq 0x50(%rsp), %rbp
xorl %r12d, %r12d
movq (%r14,%rbp,8), %rsi
addq %rbx, %rsi
movb $-0x1, %al
cmpq %r15, %rsi
je 0x153bd9
movq 0x10(%rsp), %rdi
movl 0x8(%rsp), %edx
callq 0x705e4
movq 0x8(%r13), %rsi
movq 0x10(%r13), %rcx
cmpq %rsi, %rcx
jae 0x153c92
movq (%r13), %rdx
cmpb $-0x2, %al
jae 0x153c4e
testq %rcx, %rcx
je 0x153c04
leaq -0x1(%rbp), %rdi
imulq $0x18, %rcx, %r8
movq %rdi, -0x10(%rdx,%r8)
movzbl %al, %r8d
imulq $0x18, %rcx, %rdi
movq %rbp, (%rdx,%rdi)
incq %rcx
movq %rcx, 0x10(%r13)
movb %al, 0x10(%rdx,%rdi)
cmpl %r8d, 0xc(%rsp)
je 0x153c69
movq 0x10(%rsp), %rdi
movl 0x8(%rsp), %esi
movq %r15, %rdx
movq %r14, %rcx
movq %rbx, %r9
pushq 0x58(%rsp)
pushq %rbp
callq 0x153a13
popq %rcx
popq %rdx
movq %rax, %r12
movq %rax, %rbp
incq %rbp
jmp 0x153bbd
testq %rcx, %rcx
je 0x153c5c
imulq $0x18, %rcx, %rax
movq %r12, -0x10(%rdx,%rax)
incq %r12
imulq $0x18, %rcx, %rax
movq %r12, (%rdx,%rax)
jmp 0x153c83
cmpq %rsi, %rcx
jae 0x153cca
imulq $0x18, %rcx, %rax
movq 0x58(%rsp), %rcx
movq %rcx, -0x10(%rdx,%rax)
incq %rcx
movq %rcx, (%rdx,%rax)
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2e42cf(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x191370(%rip), %rsi    # 0x2e5013
leaq 0x1f1a76(%rip), %rdx    # 0x345720
leaq 0x1f1aac(%rip), %rcx    # 0x34575d
leaq 0x1f1a4f(%rip), %r8     # 0x345707
movl $0xac, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0x2e4297(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x191338(%rip), %rsi    # 0x2e5013
leaq 0x1f1a3e(%rip), %rdx    # 0x345720
leaq 0x1f1a74(%rip), %rcx    # 0x34575d
leaq 0x1f1a17(%rip), %r8     # 0x345707
movl $0xbf, %r9d
jmp 0x153cbe