// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/esa-seqread.c
// Function: gt_newSequentialsuffixarrayreaderfromfile
Sequentialsuffixarrayreader *gt_newSequentialsuffixarrayreaderfromfile(
                                        const char *indexname,
                                        unsigned int demand,
                                        bool scanfile,
                                        GtLogger *logger,
                                        GtError *err)
{
  Sequentialsuffixarrayreader *ssar;

  ssar = gt_malloc(sizeof *ssar);
  ssar->suffixarray = gt_malloc(sizeof *ssar->suffixarray);
  if ((scanfile ? streamsuffixarray : gt_mapsuffixarray)(ssar->suffixarray,
                                                         demand,
                                                         indexname,
                                                         logger,
                                                         err) != 0)
  {
    gt_free(ssar->suffixarray);
    gt_free(ssar);
    return NULL;
  }
  ssar->nextsuftabindex = 0;
  ssar->nextlcptabindex = 1UL;
  ssar->largelcpindex = 0;
  ssar->scanfile = scanfile;
  ssar->suftab = NULL;
  gt_assert(ssar->suffixarray != NULL);
  ssar->encseq = ssar->suffixarray->encseq;
  ssar->readmode = ssar->suffixarray->readmode;
  ssar->numberofsuffixes = gt_encseq_total_length(ssar->encseq) + 1;
  ssar->nonspecials = gt_encseq_total_length(ssar->encseq) -
                      gt_encseq_specialcharacters(ssar->encseq);
  ssar->extrainfo = NULL;
  return ssar;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movq %r8, (%rsp)
movq %rcx, %r15
movl %edx, %ebp
movl %esi, %r13d
movq %rdi, %r12
leaq 0x1f3b35(%rip), %r14    # 0x345202
pushq $0x58
popq %rdi
pushq $0x23
popq %rdx
movq %r14, %rsi
callq 0x93160
movq %rax, %rbx
pushq $0x24
popq %rdx
movl $0x100, %edi            # imm = 0x100
movq %r14, %rsi
callq 0x93160
movq %rax, (%rbx)
testl %ebp, %ebp
je 0x1516fe
leaq -0x4479(%rip), %r9      # 0x14d283
jmp 0x151705
leaq -0x38b7(%rip), %r9      # 0x14de4e
movq %rax, %rdi
movl %r13d, %esi
movq %r12, %rdx
movq %r15, %rcx
movq (%rsp), %r8
callq *%r9
testl %eax, %eax
je 0x151743
movq (%rbx), %rdi
leaq 0x1f3adc(%rip), %r14    # 0x345202
pushq $0x2b
popq %rdx
movq %r14, %rsi
callq 0x936f9
pushq $0x2c
popq %rdx
movq %rbx, %rdi
movq %r14, %rsi
callq 0x936f9
xorl %ebx, %ebx
jmp 0x15179d
andq $0x0, 0x18(%rbx)
movq $0x1, 0x20(%rbx)
xorps %xmm0, %xmm0
movups %xmm0, 0x28(%rbx)
movb %bpl, 0x40(%rbx)
movq (%rbx), %rax
testq %rax, %rax
je 0x1517af
movq (%rax), %rdi
movq %rdi, 0x38(%rbx)
movl 0x48(%rax), %eax
movl %eax, 0x50(%rbx)
callq 0x7055e
incq %rax
movq %rax, 0x10(%rbx)
movq 0x38(%rbx), %rdi
callq 0x7055e
movq %rax, %r14
movq 0x38(%rbx), %rdi
callq 0x760bc
subq %rax, %r14
movq %r14, 0x8(%rbx)
andq $0x0, 0x48(%rbx)
movq %rbx, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2e67b2(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x193853(%rip), %rsi    # 0x2e5013
leaq 0x1f3cb8(%rip), %rdx    # 0x34547f
leaq 0x1f3a4c(%rip), %rcx    # 0x34521a
leaq 0x1f3a2d(%rip), %r8     # 0x345202
pushq $0x34
popq %r9
xorl %eax, %eax
callq 0x17a50
callq 0x17390