// File: /workspace/github_c_makefile_star2_O3/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 0x1e6a43
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
cmpq $-0x1, %rdx
je 0x1e696a
cmpq $0x0, 0x48(%r14)
jne 0x1e6a48
cmpq $0x0, 0x50(%r14)
jne 0x1e6a4d
cmpl $0x0, 0x4(%r14)
jne 0x1e6983
jmp 0x1e6a1c
cmpl $0x0, 0x4(%r14)
je 0x1e6a1c
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1e6b2d
movq %rax, %r15
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x1e6b6f
movl %eax, %ebp
movq %r14, %rdi
movl %eax, %esi
callq 0x1e6d66
testb %al, %al
je 0x1e6a52
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 0x1e6d83
movq %rax, %r12
movq %r14, %rdi
movq %rax, %rsi
callq 0x1e7140
movl %eax, %ebp
movq %r14, %rdi
movl %eax, %esi
callq 0x1e6d66
movq (%r13), %rdx
cmpq $0x100, %rdx            # imm = 0x100
setae %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x1e6a01
movb $0x1, %al
cmpb $0x0, 0x17(%rsp)
jne 0x1e6a34
movq 0x18(%rsp), %r8
movq %r15, (%rsp)
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rcx
movq %rbx, %r9
callq 0x1e7196
jmp 0x1e6a32
movq $0x0, 0x70(%r14)
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x1e6a57
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x763b5
callq 0x7630a
callq 0x76343
callq 0x7637c