// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/match/sfx-bltrie.c
// Function: gt_blindtrie_new
GtBlindtrie *gt_blindtrie_new(GtSuffixsortspace *suffixsortspace,
                              GtUword maxnumofsuffixes,
                              unsigned int nodenumberincrement,
                              const GtEncseq *encseq,
                              bool cmpcharbychar,
                              GtEncseqReader *esr1,
                              GtEncseqReader *esr2,
                              GtReadmode readmode)
{
  GtBlindtrie *blindtrie;

  if (maxnumofsuffixes == 1UL)
  {
    return NULL;
  }
  blindtrie = gt_malloc(sizeof (*blindtrie));
  if (nodenumberincrement == 0)
  {
    gt_assert(maxnumofsuffixes >= 2UL);
    blindtrie->allocatedBlindtrienode
      = (GtBlindtriesnodeptr) GT_MULT2(maxnumofsuffixes + 1) + 1;
    blindtrie->nodenumberincrement = 0;
  } else
  {
    gt_assert(maxnumofsuffixes == 0);
    blindtrie->allocatedBlindtrienode = 0;
    blindtrie->nodenumberincrement = nodenumberincrement;
  }
  blindtrie->spaceBlindtrienode
    = gt_malloc(sizeof (*blindtrie->spaceBlindtrienode) *
                blindtrie->allocatedBlindtrienode);
  /*
  printf("# sizeof (blindtrie)="GT_WU"\n",
            (GtUword) (sizeof (GtBlindtrie) +
                             blindtrie->allocatedBlindtrienode *
                             sizeof (GtBlindtrienode)));
  */
  GT_INITARRAY (&blindtrie->overflowsuffixes, GtUword);
  GT_INITARRAY (&blindtrie->stack, GtBlindtriesnodeptr);
  blindtrie->nextfreeBlindtrienode = 0;
  blindtrie->encseq = encseq;
  blindtrie->has_twobitencoding_stoppos_support
    = gt_encseq_has_twobitencoding_stoppos_support(encseq);
  blindtrie->readmode = readmode;
  blindtrie->esr1 = esr1;
  blindtrie->esr2 = esr2;
  blindtrie->totallength = gt_encseq_total_length(encseq);
  blindtrie->cmpcharbychar = cmpcharbychar;
  blindtrie->sssp = suffixsortspace;
  if (cmpcharbychar)
  {
    blindtrie->vtk1 = blindtrie->vtk2 = NULL;
  } else
  {
    blindtrie->vtk1 = gt_Viatwobitkeyvalues_new();
    blindtrie->vtk2 = gt_Viatwobitkeyvalues_new();
  }
  return blindtrie;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpq $0x1, %rsi
jne 0x1ef78c
xorl %ebx, %ebx
jmp 0x1ef881
movq %r9, %r12
movl %r8d, %ebp
movq %rcx, %r15
movl %edx, %r13d
movq %rsi, %r14
movq %rdi, (%rsp)
leaq 0x1cfb98(%rip), %rsi    # 0x3bf33e
movl $0x98, %edi
movl $0x38c, %edx            # imm = 0x38C
callq 0x1092b2
movq %rax, %rbx
testl %r13d, %r13d
je 0x1ef7c9
xorl %eax, %eax
testq %r14, %r14
je 0x1ef7dd
callq 0x77cba
testq %r14, %r14
je 0x1ef893
leal 0x3(,%r14,2), %eax
xorl %r13d, %r13d
movl 0x48(%rsp), %r14d
movl %eax, (%rbx)
movl %r13d, 0x7c(%rbx)
movl %eax, %eax
shlq $0x3, %rax
leaq (%rax,%rax,2), %rdi
leaq 0x1cfb45(%rip), %rsi    # 0x3bf33e
movl $0x39b, %edx            # imm = 0x39B
callq 0x1092b2
movq %rax, 0x8(%rbx)
movl $0x0, 0x4(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x10(%rbx)
movups %xmm0, 0x20(%rbx)
movups %xmm0, 0x30(%rbx)
movq %r15, 0x40(%rbx)
movq %r15, %rdi
callq 0xed937
movb %al, 0x7a(%rbx)
movl %r14d, 0x58(%rbx)
movq %r12, 0x48(%rbx)
movq 0x40(%rsp), %rax
movq %rax, 0x50(%rbx)
movq %r15, %rdi
callq 0xec1d8
movq %rax, 0x60(%rbx)
movb %bpl, 0x78(%rbx)
movq (%rsp), %rax
movq %rax, 0x90(%rbx)
testb %bpl, %bpl
je 0x1ef869
xorps %xmm0, %xmm0
movups %xmm0, 0x80(%rbx)
jmp 0x1ef881
callq 0xf1970
movq %rax, 0x80(%rbx)
callq 0xf1970
movq %rax, 0x88(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x77cf3