// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/sfx-bltrie.c
// Function: blindtrie_nodestoppos_get
static GtUword blindtrie_nodestoppos_get(const GtBlindtrie *blindtrie,
                                               GtBlindtriesnodeptr node)
{
  const GtBlindtrienode *leafptr = blindtrie->spaceBlindtrienode + node;

  gt_assert(blindtrie_isleaf(blindtrie,node));
  if (leafptr->either2.nodestartstopposoffset
      != GT_TWOBITENCODINGSTARTSTOPOFFSETUNDEF)
  {
    GtUword nodestoppos;

    if (GT_ISDIRREVERSE(blindtrie->readmode))
    {
      if (leafptr->either2.nodestartstopposoffset == 0)
      {
        nodestoppos = 0;
      } else
      {
        gt_assert(GT_REVERSEPOS(blindtrie->totallength,
                                leafptr->either1.nodestartpos)+2
                  >= (GtUword) leafptr->either2.nodestartstopposoffset);
        nodestoppos
          = GT_REVERSEPOS(blindtrie->totallength,leafptr->either1.nodestartpos)
            + 2 - (GtUword) leafptr->either2.nodestartstopposoffset;
      }
    } else
    {
      if (leafptr->either2.nodestartstopposoffset == 0)
      {
        nodestoppos = blindtrie->totallength;
      } else
      {
        nodestoppos = leafptr->either1.nodestartpos +
                      (GtUword) leafptr->either2.nodestartstopposoffset
                      - 1;
      }
    }
    return nodestoppos;
  }
  return GT_BLTRIESTOPPOSUNDEF(blindtrie);
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x18(%rsp)
movl %esi, 0x14(%rsp)
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rax
movl 0x14(%rsp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0x8(%rsp)
movq 0x18(%rsp), %rdi
movl 0x14(%rsp), %esi
callq 0x2b9080
testb $0x1, %al
jne 0x2bb210
movq 0x380dc1(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x25ae2a(%rip), %rsi    # 0x516013
leaq 0x2cdb7d(%rip), %rdx    # 0x588d6d
leaq 0x2cdfd6(%rip), %rcx    # 0x5891cd
leaq 0x2cd975(%rip), %r8     # 0x588b73
movl $0xf7, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2bb212
movq 0x8(%rsp), %rax
cmpl $-0x1, 0x10(%rax)
je 0x2bb324
movq 0x18(%rsp), %rax
cmpl $0x1, 0x58(%rax)
je 0x2bb23b
movq 0x18(%rsp), %rax
cmpl $0x3, 0x58(%rax)
jne 0x2bb2e1
movq 0x8(%rsp), %rax
cmpl $0x0, 0x10(%rax)
jne 0x2bb253
movq $0x0, (%rsp)
jmp 0x2bb2df
jmp 0x2bb255
movq 0x18(%rsp), %rax
movq 0x60(%rax), %rax
subq $0x1, %rax
movq 0x8(%rsp), %rcx
subq 0x8(%rcx), %rax
addq $0x2, %rax
movq 0x8(%rsp), %rcx
movl 0x10(%rcx), %ecx
cmpq %rcx, %rax
jae 0x2bb2b4
movq 0x380d1d(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x25ad86(%rip), %rsi    # 0x516013
leaq 0x2cdf53(%rip), %rdx    # 0x5891e7
leaq 0x2cdf32(%rip), %rcx    # 0x5891cd
leaq 0x2cd8d1(%rip), %r8     # 0x588b73
movl $0x106, %r9d            # imm = 0x106
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2bb2b6
movq 0x18(%rsp), %rax
movq 0x60(%rax), %rax
subq $0x1, %rax
movq 0x8(%rsp), %rcx
subq 0x8(%rcx), %rax
addq $0x2, %rax
movq 0x8(%rsp), %rcx
movl 0x10(%rcx), %ecx
subq %rcx, %rax
movq %rax, (%rsp)
jmp 0x2bb319
movq 0x8(%rsp), %rax
cmpl $0x0, 0x10(%rax)
jne 0x2bb2fb
movq 0x18(%rsp), %rax
movq 0x60(%rax), %rax
movq %rax, (%rsp)
jmp 0x2bb317
movq 0x8(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x8(%rsp), %rcx
movl 0x10(%rcx), %ecx
addq %rcx, %rax
subq $0x1, %rax
movq %rax, (%rsp)
jmp 0x2bb319
movq (%rsp), %rax
movq %rax, 0x20(%rsp)
jmp 0x2bb332
movq 0x18(%rsp), %rax
movq 0x60(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
addq $0x28, %rsp
retq
nopl (%rax)