// File: /workspace/github_c_makefile_star2_O2/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 0x195b51
movq %rdx, %r15
movq %rsi, %rbx
movq %rdi, %r14
cmpq $-0x1, %rdx
je 0x195a7b
cmpq $0x0, 0x48(%r14)
jne 0x195b82
cmpq $0x0, 0x50(%r14)
jne 0x195bb0
cmpl $0x0, 0x4(%r14)
jne 0x195a94
jmp 0x195b2d
cmpl $0x0, 0x4(%r14)
je 0x195b2d
movq %r14, %rdi
movq %rbx, %rsi
callq 0x195d16
movq %rax, %r15
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x195d58
movl %eax, %ebp
movq %r14, %rdi
movl %eax, %esi
callq 0x195fa6
testb %al, %al
je 0x195bde
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 0x195ff4
movq %rax, %r12
movq %r14, %rdi
movq %rax, %rsi
callq 0x19648b
movl %eax, %ebp
movq %r14, %rdi
movl %eax, %esi
callq 0x195fa6
movq (%r13), %rdx
cmpq $0x100, %rdx            # imm = 0x100
setae %cl
andb %al, %cl
cmpb $0x1, %cl
jne 0x195b12
movb $0x1, %al
cmpb $0x0, 0x17(%rsp)
jne 0x195b42
movq 0x18(%rsp), %r8
movq %r15, (%rsp)
movq %r14, %rdi
movl %ebp, %esi
movq %r12, %rcx
movq %rbx, %r9
callq 0x1964da
jmp 0x195b40
andq $0x0, 0x70(%r14)
movq %r14, %rdi
movq %rbx, %rsi
movq %r15, %rdx
callq 0x195c16
xorl %eax, %eax
addq $0x28, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2a2410(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x14f4b1(%rip), %rsi    # 0x2e5013
leaq 0x1c0691(%rip), %rdx    # 0x3561fa
leaq 0x1c06a4(%rip), %rcx    # 0x356214
leaq 0x1c0607(%rip), %r8     # 0x35617e
movl $0x4e7, %r9d            # imm = 0x4E7
jmp 0x195c0a
movq 0x2a23df(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x14f480(%rip), %rsi    # 0x2e5013
leaq 0x1c0690(%rip), %rdx    # 0x35622a
leaq 0x1c0673(%rip), %rcx    # 0x356214
leaq 0x1c05d6(%rip), %r8     # 0x35617e
movl $0x4ea, %r9d            # imm = 0x4EA
jmp 0x195c0a
movq 0x2a23b1(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x14f452(%rip), %rsi    # 0x2e5013
leaq 0x1c067a(%rip), %rdx    # 0x356242
leaq 0x1c0645(%rip), %rcx    # 0x356214
leaq 0x1c05a8(%rip), %r8     # 0x35617e
movl $0x4eb, %r9d            # imm = 0x4EB
jmp 0x195c0a
movq 0x2a2383(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x14f424(%rip), %rsi    # 0x2e5013
leaq 0x1c0664(%rip), %rdx    # 0x35625a
leaq 0x1c0617(%rip), %rcx    # 0x356214
leaq 0x1c057a(%rip), %r8     # 0x35617e
movl $0x500, %r9d            # imm = 0x500
xorl %eax, %eax
callq 0x17a50
callq 0x17390