// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/sfx-bltrie.c
// Function: blindtrie_cmpcharbychar_getlcp
static GtUword blindtrie_cmpcharbychar_getlcp(
                                 GtBlindtriesymbol *mm_oldsuffix,
                                 bool *mm_oldsuffixisseparator,
                                 GtBlindtriesymbol *mm_newsuffix,
                                 const GtBlindtrie *blindtrie,
                                 GtUword leafpos,
                                 GtUword currentstartpos)
{
  GtUword lcp;
  GtBlindtriesymbol cc1, cc2;

  if (blindtrie_isleftofboundary(blindtrie,leafpos,0))
  {
    gt_encseq_reader_reinit_with_readmode(blindtrie->esr1,blindtrie->encseq,
                                          blindtrie->readmode,leafpos);
  }
  if (blindtrie_isleftofboundary(blindtrie,currentstartpos,0))
  {
    gt_encseq_reader_reinit_with_readmode(blindtrie->esr2,blindtrie->encseq,
                                          blindtrie->readmode,currentstartpos);
  }
  for (lcp = 0; /* Nothing */; lcp++)
  {
    if (blindtrie_isleftofboundary(blindtrie,leafpos,lcp))
    {
      cc1 = (GtBlindtriesymbol)
            gt_encseq_reader_next_encoded_char(blindtrie->esr1);
      if (GT_BLINDTRIECHAR_GT_ISSPECIAL(cc1))
      {
        if (mm_oldsuffixisseparator != NULL)
        {
          *mm_oldsuffixisseparator = (cc1 == GT_SEPARATOR) ? true : false;
        }
        cc1 = GT_UNIQUEINT(leafpos + lcp);
      }
    } else
    {
      if (mm_oldsuffixisseparator != NULL)
      {
        *mm_oldsuffixisseparator = true;
      }
      cc1 = GT_UNIQUEINT(leafpos + lcp);
    }
    if (blindtrie_isleftofboundary(blindtrie,currentstartpos,lcp))
    {
      cc2 = (GtBlindtriesymbol)
            gt_encseq_reader_next_encoded_char(blindtrie->esr2);
      if (GT_BLINDTRIECHAR_GT_ISSPECIAL(cc2))
      {
        cc2 = GT_UNIQUEINT(currentstartpos + lcp);
      }
    } else
    {
      cc2 = GT_UNIQUEINT(currentstartpos + lcp);
    }
    if (blindtrie_comparecharacters(cc1,cc2) != 0)
    {
      *mm_oldsuffix = cc1;
      *mm_newsuffix = cc2;
      break;
    }
  }
  gt_assert(blindtrie->sortmaxdepthminusoffset == 0 ||
            lcp <= blindtrie->sortmaxdepthminusoffset);
  return lcp;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movq %rdx, 0x30(%rsp)
movq %rcx, 0x28(%rsp)
movq %r8, 0x20(%rsp)
movq %r9, 0x18(%rsp)
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x2b96c0
testb $0x1, %al
jne 0x2baccb
jmp 0x2bacef
movq 0x28(%rsp), %rax
movq 0x48(%rax), %rdi
movq 0x28(%rsp), %rax
movq 0x40(%rax), %rsi
movq 0x28(%rsp), %rax
movl 0x58(%rax), %edx
movq 0x20(%rsp), %rcx
callq 0xabdb0
movq 0x28(%rsp), %rdi
movq 0x18(%rsp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x2b96c0
testb $0x1, %al
jne 0x2bad08
jmp 0x2bad2c
movq 0x28(%rsp), %rax
movq 0x50(%rax), %rdi
movq 0x28(%rsp), %rax
movq 0x40(%rax), %rsi
movq 0x28(%rsp), %rax
movl 0x58(%rax), %edx
movq 0x18(%rsp), %rcx
callq 0xabdb0
movq $0x0, 0x10(%rsp)
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x2b96c0
testb $0x1, %al
jne 0x2bad4f
jmp 0x2badb5
movq 0x28(%rsp), %rax
movq 0x48(%rax), %rdi
callq 0xaae30
movzbl %al, %eax
movq %rax, 0x8(%rsp)
cmpq $0xfe, 0x8(%rsp)
jb 0x2badb3
cmpq $0x0, 0x38(%rsp)
je 0x2bad9e
movq 0x8(%rsp), %rdx
xorl %eax, %eax
movl $0x1, %ecx
cmpq $0xff, %rdx
cmovel %ecx, %eax
cmpl $0x0, %eax
setne %cl
movq 0x38(%rsp), %rax
andb $0x1, %cl
movb %cl, (%rax)
movq 0x20(%rsp), %rax
addq 0x10(%rsp), %rax
addq $0x100, %rax            # imm = 0x100
movq %rax, 0x8(%rsp)
jmp 0x2badda
cmpq $0x0, 0x38(%rsp)
je 0x2badc5
movq 0x38(%rsp), %rax
movb $0x1, (%rax)
movq 0x20(%rsp), %rax
addq 0x10(%rsp), %rax
addq $0x100, %rax            # imm = 0x100
movq %rax, 0x8(%rsp)
movq 0x28(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x2b96c0
testb $0x1, %al
jne 0x2badf4
jmp 0x2bae29
movq 0x28(%rsp), %rax
movq 0x50(%rax), %rdi
callq 0xaae30
movzbl %al, %eax
movq %rax, (%rsp)
cmpq $0xfe, (%rsp)
jb 0x2bae27
movq 0x18(%rsp), %rax
addq 0x10(%rsp), %rax
addq $0x100, %rax            # imm = 0x100
movq %rax, (%rsp)
jmp 0x2bae3d
movq 0x18(%rsp), %rax
addq 0x10(%rsp), %rax
addq $0x100, %rax            # imm = 0x100
movq %rax, (%rsp)
movq 0x8(%rsp), %rdi
movq (%rsp), %rsi
callq 0x2babc0
cmpl $0x0, %eax
je 0x2bae6b
movq 0x8(%rsp), %rcx
movq 0x40(%rsp), %rax
movq %rcx, (%rax)
movq (%rsp), %rcx
movq 0x30(%rsp), %rax
movq %rcx, (%rax)
jmp 0x2bae80
jmp 0x2bae6d
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x2bad35
jmp 0x2bae82
movq 0x28(%rsp), %rax
cmpq $0x0, 0x70(%rax)
je 0x2baed6
movq 0x10(%rsp), %rax
movq 0x28(%rsp), %rcx
cmpq 0x70(%rcx), %rax
jbe 0x2baed6
movq 0x3810fb(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x25b164(%rip), %rsi    # 0x516013
leaq 0x2ce250(%rip), %rdx    # 0x589106
leaq 0x2ce29e(%rip), %rcx    # 0x58915b
leaq 0x2cdcaf(%rip), %r8     # 0x588b73
movl $0x28a, %r9d            # imm = 0x28A
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2baed8
movq 0x10(%rsp), %rax
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)