// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x58, %rsp
movq %rdi, 0x48(%rsp)
movq %rsi, 0x40(%rsp)
movq %rdx, 0x38(%rsp)
movq 0x48(%rsp), %rax
testb $0x1, 0x78(%rax)
je 0x2b8806
movq 0x3837cb(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x25d834(%rip), %rsi    # 0x516013
leaq 0x2d0409(%rip), %rdx    # 0x588bef
leaq 0x2d041c(%rip), %rcx    # 0x588c09
leaq 0x2d037f(%rip), %r8     # 0x588b73
movl $0x4e7, %r9d            # imm = 0x4E7
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2b8808
cmpq $-0x1, 0x38(%rsp)
je 0x2b88a6
jmp 0x2b8816
movq 0x48(%rsp), %rax
cmpq $0x0, 0x48(%rax)
je 0x2b885a
movq 0x383777(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x25d7e0(%rip), %rsi    # 0x516013
leaq 0x2d03e5(%rip), %rdx    # 0x588c1f
leaq 0x2d03c8(%rip), %rcx    # 0x588c09
leaq 0x2d032b(%rip), %r8     # 0x588b73
movl $0x4ea, %r9d            # imm = 0x4EA
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2b885c
jmp 0x2b885e
movq 0x48(%rsp), %rax
cmpq $0x0, 0x50(%rax)
je 0x2b88a2
movq 0x38372f(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x25d798(%rip), %rsi    # 0x516013
leaq 0x2d03b5(%rip), %rdx    # 0x588c37
leaq 0x2d0380(%rip), %rcx    # 0x588c09
leaq 0x2d02e3(%rip), %r8     # 0x588b73
movl $0x4eb, %r9d            # imm = 0x4EB
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2b88a4
jmp 0x2b88a6
movq 0x48(%rsp), %rax
cmpl $0x0, 0x4(%rax)
jne 0x2b88dc
movq 0x48(%rsp), %rax
movq $0x0, 0x70(%rax)
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x38(%rsp), %rdx
callq 0x2b8a10
movb $0x0, 0x57(%rsp)
jmp 0x2b89fd
cmpq $-0x1, 0x38(%rsp)
jne 0x2b88f8
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0x2b8b60
movq %rax, 0x38(%rsp)
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x38(%rsp), %rdx
callq 0x2b8c20
movl %eax, 0x34(%rsp)
movq 0x48(%rsp), %rdi
movl 0x34(%rsp), %esi
callq 0x2b9080
testb $0x1, %al
jne 0x2b895a
movq 0x383677(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x25d6e0(%rip), %rsi    # 0x516013
leaq 0x2d0315(%rip), %rdx    # 0x588c4f
leaq 0x2d02c8(%rip), %rcx    # 0x588c09
leaq 0x2d022b(%rip), %r8     # 0x588b73
movl $0x500, %r9d            # imm = 0x500
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2b895c
movq 0x48(%rsp), %rcx
movl 0x34(%rsp), %r8d
movq 0x40(%rsp), %r9
movq 0x38(%rsp), %rax
leaq 0x28(%rsp), %rdi
leaq 0x1f(%rsp), %rsi
leaq 0x20(%rsp), %rdx
movq %rax, (%rsp)
callq 0x2b9110
movq %rax, 0x10(%rsp)
movq 0x48(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x2b9260
movl %eax, 0x30(%rsp)
movq 0x48(%rsp), %rdi
movl 0x30(%rsp), %esi
callq 0x2b9080
testb $0x1, %al
jne 0x2b89b4
jmp 0x2b89cd
cmpq $0x100, 0x28(%rsp)      # imm = 0x100
jb 0x2b89cd
testb $0x1, 0x1f(%rsp)
je 0x2b89cd
movb $0x1, 0x57(%rsp)
jmp 0x2b89fd
movq 0x48(%rsp), %rdi
movl 0x30(%rsp), %esi
movq 0x28(%rsp), %rdx
movq 0x10(%rsp), %rcx
movq 0x20(%rsp), %r8
movq 0x40(%rsp), %r9
movq 0x38(%rsp), %rax
movq %rax, (%rsp)
callq 0x2b92f0
movb $0x0, 0x57(%rsp)
movb 0x57(%rsp), %al
andb $0x1, %al
addq $0x58, %rsp
retq
nopl (%rax,%rax)