// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/match/sfx-bltrie.c
// Function: gt_blindtrie_retrieve
bool gt_blindtrie_retrieve(GtBlindtrie *blindtrie,
                           GtUword currentstartpos,
                           GtUword currenttwobitencodingstoppos)
{
  gt_assert(!blindtrie->cmpcharbychar);
  if (currenttwobitencodingstoppos != ULONG_MAX)
  {
    gt_assert(blindtrie->esr1 == NULL);
    gt_assert(blindtrie->esr2 == NULL);
  }
  if (blindtrie->nextfreeBlindtrienode == 0)
  {
    blindtrie->sortmaxdepthminusoffset = 0;
    blindtrie_makeroot(blindtrie,currentstartpos,currenttwobitencodingstoppos);
    return false;
  } else
  {
    GtBlindtriesnodeptr leafinsubtrie, splitnode;
    GtBlindtriesymbol mm_oldsuffix, mm_newsuffix;
    bool mm_oldsuffixisseparator;
    GtUword lcp;

    if (currenttwobitencodingstoppos == ULONG_MAX)
    {
      currenttwobitencodingstoppos
        = blindtrie_currenttwobitencodingstoppos_get(blindtrie,currentstartpos);
    }
    leafinsubtrie = blindtrie_findcompanion(blindtrie,currentstartpos,
                                            currenttwobitencodingstoppos);
    gt_assert(blindtrie_isleaf(blindtrie,leafinsubtrie));
    lcp = blindtrie_getlcp(&mm_oldsuffix,
                           &mm_oldsuffixisseparator,
                           &mm_newsuffix,
                           blindtrie,
                           leafinsubtrie,
                           currentstartpos,
                           currenttwobitencodingstoppos);
    splitnode = blindtrie_findsplitnode(blindtrie,lcp);
    if (blindtrie_isleaf(blindtrie,splitnode) && GT_ISUNIQUEINT(mm_oldsuffix) &&
        mm_oldsuffixisseparator)
    {
      return true;
    }
    blindtrie_insertatsplitnode(blindtrie,
                                splitnode,
                                mm_oldsuffix,
                                lcp,
                                mm_newsuffix,
                                currentstartpos,
                                currenttwobitencodingstoppos);
    return false;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x28, %rsp
cmpb $0x1, 0x78(%rdi)
je 0x1f0199
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
cmpq $-0x1, %rdx
je 0x1f00ba
cmpq $0x0, 0x48(%r14)
jne 0x1f019e
cmpq $0x0, 0x50(%r14)
jne 0x1f01a3
cmpl $0x0, 0x4(%r14)
je 0x1f0172
cmpq $-0x1, %r15
jne 0x1f00d9
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1f0282
movq %rax, %r15
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x1f02c4
movl %eax, %ebp
movq %r14, %rdi
movl %eax, %esi
callq 0x1f04d3
testb %al, %al
je 0x1f01a8
movq %r15, (%rsp)
leaq 0x20(%rsp), %r13
leaq 0x17(%rsp), %rsi
leaq 0x18(%rsp), %rdx
movq %r13, %rdi
movq %r14, %rcx
movl %ebp, %r8d
movq %rbx, %r9
callq 0x1f04f0
movq %rax, %r12
movq %r14, %rdi
movq %rax, %rsi
callq 0x1f08ac
movl %eax, %ebp
movq %r14, %rdi
movl %eax, %esi
callq 0x1f04d3
movq (%r13), %rdx
cmpq $0x100, %rdx            # imm = 0x100
setae %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x1f0157
movb $0x1, %al
cmpb $0x0, 0x17(%rsp)
jne 0x1f018a
movq 0x18(%rsp), %r8
movq %r15, (%rsp)
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rcx
movq %rbx, %r9
callq 0x1f0902
jmp 0x1f0188
movq $0x0, 0x70(%r14)
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x1f01ad
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x78042
callq 0x77f97
callq 0x77fd0
callq 0x78009