// File: /workspace/github_c_makefile_star2_O2/genometools[P]genometools/src/match/eis-suffixerator-interface.c
// Function: gt_newSfxInterfaceWithReaders
sfxInterface *
gt_newSfxInterfaceWithReaders(GtReadmode readmode,
                              unsigned int prefixlength,
                              unsigned int numofparts,
                              GtUword maximumspace,
                              const Sfxstrategy *sfxstrategy,
                              size_t numReaders,
                              enum sfxDataRequest readerRequests[],
                              SeqDataReader readers[],
                              const GtEncseq *encseq,
                              GtTimer *sfxprogress,
                              bool withprogressbar,
                              GtUword length,
                              GtLogger *verbosity, GtError *err)
{
  sfxInterface *sfxi = NULL;
  size_t idx;

  gt_error_check(err);
  sfxi = gt_calloc(1, sizeof (*sfxi));
  {
    RandomSeqAccessor origSeqAccess = { gt_SfxIGetOrigSeq, sfxi };
    initSASeqSrc(&sfxi->baseClass, length, SfxIBaseRequest2XltorFunc, NULL,
                 SfxIBaseGetRot0Pos, SfxIBaseGetSeqStats,
                 origSeqAccess, gt_deleteSfxInterfaceBase, SfxIBaseNewMRAEnc,
                 SfxIGenerate, sfxi);
  }
  sfxi->readmode = readmode;
  sfxi->encseq = encseq;
  sfxi->alpha = gt_encseq_alphabet(encseq);
  sfxi->stats = newSeqStatsFromCharDist(encseq,sfxi->alpha, length);
  if (!(sfxi->sfi = gt_Sfxiterator_new(encseq,
                                       readmode,
                                       prefixlength,
                                       numofparts,
                                       maximumspace,
                                       sfxstrategy,
                                       sfxprogress,
                                       withprogressbar,
                                       verbosity,
                                       err)))
  {
    gt_newSfxInterfaceWithReadersErrRet();
  }
  sfxi->rot0Pos.defined = false;

  sfxi->lastGeneratedStart = sfxi->lastGeneratedLen = 0;
  sfxi->lastGeneratedSufTabSegment = NULL;

  for (idx = 0; idx < numReaders; ++idx)
  {
    readers[idx] = gt_SfxIRegisterReader(sfxi, readerRequests[idx]);
    if (!readers[idx].readData)
    {
      gt_newSfxInterfaceWithReadersErrRet();
    }
  }
  return sfxi;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x38, %rsp
movq %r9, %rbx
movq %r8, %r14
movq %rcx, %r15
movl %edx, %ebp
movl %esi, %r12d
movl %edi, 0xc(%rsp)
movq 0xa8(%rsp), %rdi
testq %rdi, %rdi
je 0x14a6fb
callq 0x89eb7
testb %al, %al
jne 0x14a9ab
movl %r12d, 0x10(%rsp)
movl %ebp, 0x14(%rsp)
movq %r15, 0x20(%rsp)
movq %r14, 0x28(%rsp)
movq %rbx, 0x30(%rsp)
leaq 0x1f991c(%rip), %rdx    # 0x344036
pushq $0x1
popq %rdi
movl $0x120, %esi            # imm = 0x120
movl $0xf2, %ecx
callq 0x9334a
testq %rax, %rax
je 0x14a97f
movq %rax, %r14
movq 0x98(%rsp), %rax
movq 0x80(%rsp), %rbx
movq 0x78(%rsp), %r13
movq %rax, (%r14)
leaq 0x371(%rip), %rax       # 0x14aac8
movq %rax, 0x10(%r14)
leaq -0x10bd(%rip), %rax     # 0x1496a5
movq %rax, 0x8(%r14)
leaq 0x369(%rip), %rax       # 0x14aad6
movq %rax, 0x18(%r14)
leaq 0x36c(%rip), %rax       # 0x14aae4
movq %rax, 0x20(%r14)
leaq 0x285(%rip), %rax       # 0x14aa08
movq %rax, 0x28(%r14)
movq %r14, 0x30(%r14)
leaq 0x35a(%rip), %rax       # 0x14aaec
movq %rax, 0x38(%r14)
leaq 0x354(%rip), %rax       # 0x14aaf1
movq %rax, 0x40(%r14)
andq $0x0, 0x48(%r14)
leaq 0x50(%r14), %rdi
leaq 0x345(%rip), %r8        # 0x14aaf6
xorl %r15d, %r15d
pushq $0x1
popq %rdx
pushq $0x8
popq %rcx
xorl %esi, %esi
movq %r14, %r9
callq 0x1496ec
movq %r14, %rdi
addq $0xb0, %rdi
callq 0x1495e8
movl 0xc(%rsp), %eax
movl %eax, 0xc0(%r14)
movq %rbx, 0xe0(%r14)
movq %rbx, %rdi
callq 0x754dd
movq %rax, %r12
movq %rax, 0xd8(%r14)
leaq 0x1f9838(%rip), %rsi    # 0x344036
movl $0x810, %edi            # imm = 0x810
movl $0xb8, %edx
callq 0x93160
movq %rax, %rbp
movq %rbx, %rdi
callq 0x705a1
movq %rax, 0x18(%rsp)
movl $0x1, 0x8(%rbp)
leaq 0x10(%rbp), %rdi
movq %rdi, (%rbp)
movl $0x800, %edx            # imm = 0x800
xorl %esi, %esi
callq 0x17380
movq %r12, %rdi
callq 0x56c8e
movl %eax, %r12d
xorl %ebx, %ebx
cmpq %r15, %r12
je 0x14a86b
movzbl %r15b, %esi
movq 0x80(%rsp), %rdi
callq 0x754fd
movq (%rbp), %rcx
movq %rax, (%rcx,%r15,8)
addq %rax, %rbx
incq %r15
jmp 0x14a845
movl 0x18(%rsp), %eax
movq (%rbp), %rcx
addq %rax, 0x7f8(%rcx)
addq %rax, %rbx
movq 0x98(%rsp), %rax
subq %rbx, %rax
incq %rax
movq %rax, 0x7f0(%rcx)
movq %rbp, 0xe8(%r14)
movzbl 0x90(%rsp), %eax
movq 0x80(%rsp), %rdi
movl 0xc(%rsp), %esi
movl 0x10(%rsp), %edx
movl 0x14(%rsp), %ecx
movq 0x20(%rsp), %r8
movq 0x28(%rsp), %r9
pushq 0xa8(%rsp)
pushq 0xa8(%rsp)
pushq %rax
pushq 0xa0(%rsp)
callq 0x1ab581
addq $0x20, %rsp
movq %rax, 0xf0(%r14)
testq %rax, %rax
je 0x14a9e3
movb $0x0, 0xf8(%r14)
xorps %xmm0, %xmm0
andq $0x0, 0x118(%r14)
movups %xmm0, 0x108(%r14)
addq $0x8, %r13
xorl %r12d, %r12d
leaq 0x1f971f(%rip), %r15    # 0x344036
movq 0x30(%rsp), %rbx
movq 0x70(%rsp), %rbp
cmpq %r12, %rbx
je 0x14a96d
movl (%rbp,%r12,4), %esi
movq %r14, %rdi
callq 0x14ad3e
movq %rax, -0x8(%r13)
movq %rdx, (%r13)
testq %rdx, %rdx
jne 0x14a964
movq 0xe8(%r14), %rdi
testq %rdi, %rdi
je 0x14a951
callq 0x14ad2d
movq %r14, %rdi
movq %r15, %rsi
movl $0x115, %edx            # imm = 0x115
callq 0x936f9
xorl %r14d, %r14d
incq %r12
addq $0x10, %r13
jmp 0x14a921
movq %r14, %rax
addq $0x38, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2ed5e2(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19a683(%rip), %rsi    # 0x2e5013
leaq 0x1b38ae(%rip), %rdx    # 0x2fe245
leaq 0x1f8693(%rip), %rcx    # 0x343031
leaq 0x1f8699(%rip), %r8     # 0x34303e
pushq $0x69
popq %r9
jmp 0x14a9d7
movq 0x2ed5b6(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x19a657(%rip), %rsi    # 0x2e5013
leaq 0x19a7fc(%rip), %rdx    # 0x2e51bf
leaq 0x1f964e(%rip), %rcx    # 0x344018
leaq 0x1f9665(%rip), %r8     # 0x344036
movl $0xf1, %r9d
xorl %eax, %eax
callq 0x17a50
callq 0x17390
movq 0xe8(%r14), %rdi
testq %rdi, %rdi
je 0x14a9f4
callq 0x14ad2d
leaq 0x1f963b(%rip), %rsi    # 0x344036
movq %r14, %rdi
movl $0x109, %edx            # imm = 0x109
callq 0x936f9