// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x48, %rsp
movb %r8b, %al
movl 0x58(%rsp), %r8d
movq 0x50(%rsp), %r8
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movl %edx, 0x2c(%rsp)
movq %rcx, 0x20(%rsp)
andb $0x1, %al
movb %al, 0x1f(%rsp)
movq %r9, 0x10(%rsp)
cmpq $0x1, 0x30(%rsp)
jne 0x2b7ee5
movq $0x0, 0x40(%rsp)
jmp 0x2b812e
movl $0x98, %edi
leaq 0x2d0c82(%rip), %rsi    # 0x588b73
movl $0x38c, %edx            # imm = 0x38C
callq 0xe80f0
movq %rax, 0x8(%rsp)
cmpl $0x0, 0x2c(%rsp)
jne 0x2b7f71
jmp 0x2b7f09
cmpq $0x2, 0x30(%rsp)
jae 0x2b7f49
movq 0x384088(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x25e0f1(%rip), %rsi    # 0x516013
leaq 0x2d0c61(%rip), %rdx    # 0x588b8a
leaq 0x2d0c72(%rip), %rcx    # 0x588ba2
leaq 0x2d0c3c(%rip), %r8     # 0x588b73
movl $0x38f, %r9d            # imm = 0x38F
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2b7f4b
movq 0x30(%rsp), %rax
addq $0x1, %rax
shlq %rax
movl %eax, %ecx
addl $0x1, %ecx
movq 0x8(%rsp), %rax
movl %ecx, (%rax)
movq 0x8(%rsp), %rax
movl $0x0, 0x7c(%rax)
jmp 0x2b7fcc
jmp 0x2b7f73
cmpq $0x0, 0x30(%rsp)
je 0x2b7fb3
movq 0x38401e(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x25e087(%rip), %rsi    # 0x516013
leaq 0x2d0c20(%rip), %rdx    # 0x588bb3
leaq 0x2d0c08(%rip), %rcx    # 0x588ba2
leaq 0x2d0bd2(%rip), %r8     # 0x588b73
movl $0x395, %r9d            # imm = 0x395
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2b7fb5
movq 0x8(%rsp), %rax
movl $0x0, (%rax)
movl 0x2c(%rsp), %ecx
movq 0x8(%rsp), %rax
movl %ecx, 0x7c(%rax)
movq 0x8(%rsp), %rax
movl (%rax), %eax
imulq $0x18, %rax, %rdi
leaq 0x2d0b95(%rip), %rsi    # 0x588b73
movl $0x39b, %edx            # imm = 0x39B
callq 0xe80f0
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x28(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x38(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x30(%rax)
jmp 0x2b801d
movq 0x8(%rsp), %rax
movq $0x0, 0x10(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x20(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x18(%rax)
movq 0x8(%rsp), %rax
movl $0x0, 0x4(%rax)
movq 0x20(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x40(%rax)
movq 0x20(%rsp), %rdi
callq 0xac770
movb %al, %cl
movq 0x8(%rsp), %rax
andb $0x1, %cl
movb %cl, 0x7a(%rax)
movl 0x58(%rsp), %ecx
movq 0x8(%rsp), %rax
movl %ecx, 0x58(%rax)
movq 0x10(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x48(%rax)
movq 0x50(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x50(%rax)
movq 0x20(%rsp), %rdi
callq 0xa9d00
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x60(%rax)
movb 0x1f(%rsp), %cl
movq 0x8(%rsp), %rax
andb $0x1, %cl
movb %cl, 0x78(%rax)
movq 0x38(%rsp), %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x90(%rax)
testb $0x1, 0x1f(%rsp)
je 0x2b80fc
movq 0x8(%rsp), %rax
movq $0x0, 0x88(%rax)
movq 0x8(%rsp), %rax
movq $0x0, 0x80(%rax)
jmp 0x2b8124
callq 0xb4b00
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x80(%rax)
callq 0xb4b00
movq %rax, %rcx
movq 0x8(%rsp), %rax
movq %rcx, 0x88(%rax)
movq 0x8(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x40(%rsp), %rax
addq $0x48, %rsp
retq
nopl (%rax,%rax)