// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/sfx-bltrie.c
// Function: blindtrie_makeroot
static void blindtrie_makeroot(GtBlindtrie *blindtrie,
                               GtUword currentstartpos,
                               GtUword currenttwobitencodingstoppos)
{
  GtBlindtriesymbol firstchar;

  gt_assert(blindtrie->nextfreeBlindtrienode == GT_BLINDTRIE_ROOTIDX);
  (void) blindtrie_newnode(blindtrie);
  blindtrie_firstchar_set(blindtrie,GT_BLINDTRIE_ROOTIDX,
                          false,0); /* firstchar of root will never be used */
  blindtrie_setdepth(blindtrie,GT_BLINDTRIE_ROOTIDX,0);
  /*blindtrie_rightsibling_set(blindtrie,root,GT_BLINDTRIE_REFNULL); */
  if (blindtrie_isleftofboundary(blindtrie,currentstartpos,0))
  {
    /* Random access */
    firstchar = (GtBlindtriesymbol)
                gt_encseq_get_encoded_char(blindtrie->encseq,
                                           currentstartpos,
                                           blindtrie->readmode);
    if (GT_BLINDTRIECHAR_GT_ISSPECIAL(firstchar))
    {
      firstchar = GT_UNIQUEINT(currentstartpos);
    }
    if (currenttwobitencodingstoppos == ULONG_MAX)
    {
      currenttwobitencodingstoppos
        = blindtrie_currenttwobitencodingstoppos_get(blindtrie,currentstartpos);
    }
  } else
  {
    firstchar = GT_UNIQUEINT(currentstartpos);
    currenttwobitencodingstoppos = GT_BLTRIESTOPPOSUNDEF(blindtrie);
  }
  blindtrie_firstchild_set(blindtrie,GT_BLINDTRIE_ROOTIDX,
                           blindtrie_newleaf(blindtrie,currentstartpos,
                                             currenttwobitencodingstoppos,
                                             firstchar,GT_BLINDTRIE_REFNULL));
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x20(%rsp), %rax
cmpl $0x0, 0x4(%rax)
je 0x2b8a66
movq 0x38356b(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x25d5d4(%rip), %rsi    # 0x516013
leaq 0x2d03d5(%rip), %rdx    # 0x588e1b
leaq 0x2d0407(%rip), %rcx    # 0x588e54
leaq 0x2d011f(%rip), %r8     # 0x588b73
movl $0x176, %r9d            # imm = 0x176
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2b8a68
movq 0x20(%rsp), %rdi
callq 0x2ba3c0
movq 0x20(%rsp), %rdi
xorl %edx, %edx
xorl %eax, %eax
movl %eax, %ecx
movl %edx, %esi
callq 0x2ba4c0
movq 0x20(%rsp), %rdi
xorl %esi, %esi
xorl %eax, %eax
movl %eax, %edx
callq 0x2ba560
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
xorl %eax, %eax
movl %eax, %edx
callq 0x2b96c0
testb $0x1, %al
jne 0x2b8aad
jmp 0x2b8b09
movq 0x20(%rsp), %rax
movq 0x40(%rax), %rdi
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rax
movl 0x58(%rax), %edx
callq 0xa9da0
movzbl %al, %eax
movq %rax, 0x8(%rsp)
cmpq $0xfe, 0x8(%rsp)
jb 0x2b8aeb
movq 0x18(%rsp), %rax
addq $0x100, %rax            # imm = 0x100
movq %rax, 0x8(%rsp)
cmpq $-0x1, 0x10(%rsp)
jne 0x2b8b07
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
callq 0x2b8b60
movq %rax, 0x10(%rsp)
jmp 0x2b8b27
movq 0x18(%rsp), %rax
addq $0x100, %rax            # imm = 0x100
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rax
movq 0x60(%rax), %rax
movq %rax, 0x10(%rsp)
movq 0x20(%rsp), %rax
movq %rax, (%rsp)
movq 0x20(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdx
movq 0x8(%rsp), %rcx
xorl %r8d, %r8d
callq 0x2ba660
movq (%rsp), %rdi
movl %eax, %edx
xorl %esi, %esi
callq 0x2ba5e0
addq $0x28, %rsp
retq
nop