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

  gt_assert(node < blindtrie->nextfreeBlindtrienode);
  leafptr->either1.nodestartpos = currentstartpos;
  if (currenttwobitencodingstoppos != GT_BLTRIESTOPPOSUNDEF(blindtrie))
  {
    if (GT_ISDIRREVERSE(blindtrie->readmode))
    {
      gt_assert(GT_REVERSEPOS(blindtrie->totallength,currentstartpos) + 1 >=
                currenttwobitencodingstoppos);
      if (currenttwobitencodingstoppos == 0)
      {
        leafptr->either2.nodestartstopposoffset = 0;
      } else
      {
        GtUword tmp = GT_REVERSEPOS(blindtrie->totallength,
                                          currentstartpos) + 2
                                          - currenttwobitencodingstoppos;
        gt_assert(tmp > 0 &&
                  tmp < (GtUword) GT_TWOBITENCODINGSTARTSTOPOFFSETUNDEF);
        leafptr->either2.nodestartstopposoffset = (unsigned int) tmp;
      }
    } else
    {
      gt_assert(currentstartpos <= currenttwobitencodingstoppos);
      if (currenttwobitencodingstoppos == blindtrie->totallength)
      {
        leafptr->either2.nodestartstopposoffset = 0;
      } else
      {
        GtUword tmp = currenttwobitencodingstoppos - currentstartpos + 1;

        gt_assert(tmp > 0 &&
                  tmp < (GtUword) GT_TWOBITENCODINGSTARTSTOPOFFSETUNDEF);
        leafptr->either2.nodestartstopposoffset = (unsigned int) tmp;
      }
    }
  } else
  {
    leafptr->either2.nodestartstopposoffset
      = GT_TWOBITENCODINGSTARTSTOPOFFSETUNDEF;
  }
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movl %esi, 0x2c(%rsp)
movq %rdx, 0x20(%rsp)
movq %rcx, 0x18(%rsp)
movq 0x30(%rsp), %rax
movq 0x8(%rax), %rax
movl 0x2c(%rsp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0x10(%rsp)
movl 0x2c(%rsp), %eax
movq 0x30(%rsp), %rcx
cmpl 0x4(%rcx), %eax
jb 0x2ba7f6
movq 0x3817db(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x25b844(%rip), %rsi    # 0x516013
leaq 0x2cebd3(%rip), %rdx    # 0x5893a9
leaq 0x2ce7af(%rip), %rcx    # 0x588f8c
leaq 0x2ce38f(%rip), %r8     # 0x588b73
movl $0xc1, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2ba7f8
movq 0x20(%rsp), %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x18(%rsp), %rax
movq 0x30(%rsp), %rcx
cmpq 0x60(%rcx), %rax
je 0x2ba9fb
movq 0x30(%rsp), %rax
cmpl $0x1, 0x58(%rax)
je 0x2ba834
movq 0x30(%rsp), %rax
cmpl $0x3, 0x58(%rax)
jne 0x2ba925
jmp 0x2ba836
movq 0x30(%rsp), %rax
movq 0x60(%rax), %rax
subq $0x1, %rax
subq 0x20(%rsp), %rax
addq $0x1, %rax
cmpq 0x18(%rsp), %rax
jae 0x2ba88b
movq 0x381746(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x25b7af(%rip), %rsi    # 0x516013
leaq 0x2ce738(%rip), %rdx    # 0x588fa3
leaq 0x2ce71a(%rip), %rcx    # 0x588f8c
leaq 0x2ce2fa(%rip), %r8     # 0x588b73
movl $0xc8, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2ba88d
cmpq $0x0, 0x18(%rsp)
jne 0x2ba8a3
movq 0x10(%rsp), %rax
movl $0x0, 0x10(%rax)
jmp 0x2ba920
movq 0x30(%rsp), %rax
movq 0x60(%rax), %rax
subq $0x1, %rax
subq 0x20(%rsp), %rax
addq $0x2, %rax
subq 0x18(%rsp), %rax
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jbe 0x2ba8d7
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, 0x8(%rsp)
jb 0x2ba90f
movq 0x3816c2(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x25b72b(%rip), %rsi    # 0x516013
leaq 0x2ce70e(%rip), %rdx    # 0x588ffd
leaq 0x2ce696(%rip), %rcx    # 0x588f8c
leaq 0x2ce276(%rip), %r8     # 0x588b73
movl $0xd2, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2ba911
movq 0x8(%rsp), %rax
movl %eax, %ecx
movq 0x10(%rsp), %rax
movl %ecx, 0x10(%rax)
jmp 0x2ba9f9
jmp 0x2ba927
movq 0x20(%rsp), %rax
cmpq 0x18(%rsp), %rax
jbe 0x2ba96b
movq 0x381666(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x25b6cf(%rip), %rsi    # 0x516013
leaq 0x2ce6f3(%rip), %rdx    # 0x58903e
leaq 0x2ce63a(%rip), %rcx    # 0x588f8c
leaq 0x2ce21a(%rip), %r8     # 0x588b73
movl $0xd7, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2ba96d
movq 0x18(%rsp), %rax
movq 0x30(%rsp), %rcx
cmpq 0x60(%rcx), %rax
jne 0x2ba98b
movq 0x10(%rsp), %rax
movl $0x0, 0x10(%rax)
jmp 0x2ba9f7
movq 0x18(%rsp), %rax
subq 0x20(%rsp), %rax
addq $0x1, %rax
movq %rax, (%rsp)
cmpq $0x0, (%rsp)
jbe 0x2ba9af
movl $0xffffffff, %eax       # imm = 0xFFFFFFFF
cmpq %rax, (%rsp)
jb 0x2ba9e7
movq 0x3815ea(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x25b653(%rip), %rsi    # 0x516013
leaq 0x2ce636(%rip), %rdx    # 0x588ffd
leaq 0x2ce5be(%rip), %rcx    # 0x588f8c
leaq 0x2ce19e(%rip), %r8     # 0x588b73
movl $0xe0, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2ba9e9
movq (%rsp), %rax
movl %eax, %ecx
movq 0x10(%rsp), %rax
movl %ecx, 0x10(%rax)
jmp 0x2ba9f9
jmp 0x2baa07
movq 0x10(%rsp), %rax
movl $0xffffffff, 0x10(%rax) # imm = 0xFFFFFFFF
addq $0x38, %rsp
retq
nopl (%rax)