// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x68, %rsp
movq 0x78(%rsp), %rax
movq 0x70(%rsp), %rax
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movl %edx, 0x54(%rsp)
movq %rcx, 0x48(%rsp)
movq %r8, 0x40(%rsp)
movq %r9, 0x38(%rsp)
movq $0x0, 0x28(%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x60(%rsp), %rax
movq $0x0, 0x10(%rax)
movq 0x40(%rsp), %rax
movq 0x78(%rsp), %rcx
movq (%rax,%rcx,8), %rax
addq 0x38(%rsp), %rax
cmpq 0x48(%rsp), %rax
jne 0x23fd20
movl $0xff, %eax
movl %eax, 0x1c(%rsp)
jmp 0x23fd48
movq 0x58(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x78(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
addq 0x38(%rsp), %rsi
movl 0x54(%rsp), %edx
callq 0xa9da0
movzbl %al, %eax
movl %eax, 0x1c(%rsp)
movl 0x1c(%rsp), %eax
movb %al, 0x36(%rsp)
movq 0x40(%rsp), %rax
movq 0x20(%rsp), %rcx
movq (%rax,%rcx,8), %rax
addq 0x38(%rsp), %rax
cmpq 0x48(%rsp), %rax
jne 0x23fd75
movl $0xff, %eax
movl %eax, 0x18(%rsp)
jmp 0x23fd9d
movq 0x58(%rsp), %rdi
movq 0x40(%rsp), %rax
movq 0x20(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
addq 0x38(%rsp), %rsi
movl 0x54(%rsp), %edx
callq 0xa9da0
movzbl %al, %eax
movl %eax, 0x18(%rsp)
movl 0x18(%rsp), %eax
movb %al, 0x37(%rsp)
movq 0x60(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x60(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jb 0x23fdf1
movq 0x3fc1e0(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2d6249(%rip), %rsi    # 0x516013
leaq 0x337d97(%rip), %rdx    # 0x577b68
leaq 0x337dcd(%rip), %rcx    # 0x577ba5
leaq 0x337d70(%rip), %r8     # 0x577b4f
movl $0xac, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x23fdf3
movzbl 0x37(%rsp), %eax
cmpl $0xfe, %eax
jl 0x23fe56
movq 0x60(%rsp), %rax
cmpq $0x0, 0x10(%rax)
jbe 0x23fe30
movq 0x28(%rsp), %rcx
movq 0x60(%rsp), %rax
movq (%rax), %rax
movq 0x60(%rsp), %rdx
movq 0x10(%rdx), %rdx
subq $0x1, %rdx
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x8(%rax)
movq 0x28(%rsp), %rcx
addq $0x1, %rcx
movq 0x60(%rsp), %rax
movq (%rax), %rax
movq 0x60(%rsp), %rdx
imulq $0x18, 0x10(%rdx), %rdx
addq %rdx, %rax
movq %rcx, (%rax)
jmp 0x23ffd5
movq 0x60(%rsp), %rax
cmpq $0x0, 0x10(%rax)
jbe 0x23fe8b
movq 0x20(%rsp), %rcx
subq $0x1, %rcx
movq 0x60(%rsp), %rax
movq (%rax), %rax
movq 0x60(%rsp), %rdx
movq 0x10(%rdx), %rdx
subq $0x1, %rdx
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x8(%rax)
movq 0x20(%rsp), %rcx
movq 0x60(%rsp), %rax
movq (%rax), %rax
movq 0x60(%rsp), %rdx
imulq $0x18, 0x10(%rdx), %rdx
addq %rdx, %rax
movq %rcx, (%rax)
movb 0x37(%rsp), %cl
movq 0x60(%rsp), %rax
movq (%rax), %rax
movq 0x60(%rsp), %rsi
movq 0x10(%rsi), %rdx
movq %rdx, %rdi
addq $0x1, %rdi
movq %rdi, 0x10(%rsi)
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movb %cl, 0x10(%rax)
movzbl 0x37(%rsp), %eax
movzbl 0x36(%rsp), %ecx
cmpl %ecx, %eax
jne 0x23fee2
jmp 0x23ff33
movq 0x58(%rsp), %rdi
movl 0x54(%rsp), %esi
movq 0x48(%rsp), %rdx
movq 0x40(%rsp), %rcx
movb 0x37(%rsp), %r8b
movq 0x38(%rsp), %r9
movq 0x20(%rsp), %r10
movq 0x78(%rsp), %rax
movzbl %r8b, %r8d
movq %r10, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x23faa0
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x20(%rsp)
jmp 0x23fd50
jmp 0x23ff35
movq 0x60(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x60(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jb 0x23ff81
movq 0x3fc050(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2d60b9(%rip), %rsi    # 0x516013
leaq 0x337c07(%rip), %rdx    # 0x577b68
leaq 0x337c3d(%rip), %rcx    # 0x577ba5
leaq 0x337be0(%rip), %r8     # 0x577b4f
movl $0xbf, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x23ff83
movq 0x60(%rsp), %rax
cmpq $0x0, 0x10(%rax)
jbe 0x23ffb4
movq 0x78(%rsp), %rcx
movq 0x60(%rsp), %rax
movq (%rax), %rax
movq 0x60(%rsp), %rdx
movq 0x10(%rdx), %rdx
subq $0x1, %rdx
imulq $0x18, %rdx, %rdx
addq %rdx, %rax
movq %rcx, 0x8(%rax)
movq 0x78(%rsp), %rcx
addq $0x1, %rcx
movq 0x60(%rsp), %rax
movq (%rax), %rax
movq 0x60(%rsp), %rdx
imulq $0x18, 0x10(%rdx), %rdx
addq %rdx, %rax
movq %rcx, (%rax)
addq $0x68, %rsp
retq
nopw (%rax,%rax)