// File: /workspace/github_c_makefile_star2_O3/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 $0x48, %rsp
movq %r9, 0x10(%rsp)
movq %r8, %rbx
movq %rcx, %r15
movl %edx, %ebp
movl %esi, %r12d
movl %edi, %r13d
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x19f1dc
callq 0xfcc32
testb %al, %al
jne 0x19f4bf
leaq 0x204ae3(%rip), %rdx    # 0x3a3cc6
movl $0x1, %edi
movl $0x120, %esi            # imm = 0x120
movl $0xf2, %ecx
callq 0x10436a
testq %rax, %rax
je 0x19f4a8
movq %rax, %r14
movl %r12d, 0x8(%rsp)
movl %ebp, 0xc(%rsp)
movq %r15, 0x20(%rsp)
movq %rbx, 0x28(%rsp)
movq 0xa8(%rsp), %rax
movq 0x90(%rsp), %r12
movq %rax, (%r14)
leaq 0x2fd(%rip), %rax       # 0x19f52d
movq %rax, 0x10(%r14)
leaq -0xd26(%rip), %rax      # 0x19e515
movq %rax, 0x8(%r14)
leaq 0x2f5(%rip), %rax       # 0x19f53b
movq %rax, 0x18(%r14)
leaq 0x2f8(%rip), %rax       # 0x19f549
movq %rax, 0x20(%r14)
leaq 0x268(%rip), %rax       # 0x19f4c4
movq %rax, 0x28(%r14)
movq %r14, 0x30(%r14)
leaq 0x2e6(%rip), %rax       # 0x19f551
movq %rax, 0x38(%r14)
leaq 0x2e0(%rip), %rax       # 0x19f556
movq %rax, 0x40(%r14)
movq $0x0, 0x48(%r14)
leaq 0x50(%r14), %rdi
leaq 0x2ce(%rip), %r8        # 0x19f55b
movl $0x8, %ecx
xorl %esi, %esi
movl $0x1, %edx
movq %r14, %r9
callq 0x19e55c
leaq 0xb0(%r14), %rdi
callq 0x19e47f
movl %r13d, 0x4(%rsp)
movl %r13d, 0xc0(%r14)
movq %r12, 0xe0(%r14)
movq %r12, %rdi
callq 0xebcd9
movq %rax, %r15
movq %rax, 0xd8(%r14)
leaq 0x2049ed(%rip), %rsi    # 0x3a3cc6
movl $0x810, %edi            # imm = 0x810
movl $0xb8, %edx
callq 0x104226
movq %rax, %rbp
movq %r12, %rdi
callq 0xe7bac
movq %rax, 0x18(%rsp)
movl $0x1, 0x8(%rbp)
leaq 0x10(%rbp), %rdi
movq %rdi, (%rbp)
movl $0x800, %edx            # imm = 0x800
xorl %esi, %esi
callq 0x173a0
movq %r15, %rdi
callq 0xd11be
testl %eax, %eax
je 0x19f348
movl %eax, %r15d
xorl %r13d, %r13d
xorl %ebx, %ebx
movzbl %r13b, %esi
movq %r12, %rdi
callq 0xebcf9
movq (%rbp), %rcx
movq %rax, (%rcx,%r13,8)
addq %rax, %rbx
incq %r13
cmpq %r13, %r15
jne 0x19f327
jmp 0x19f34e
movq (%rbp), %rcx
xorl %ebx, %ebx
movl 0x18(%rsp), %eax
addq %rax, 0x7f8(%rcx)
addq %rax, %rbx
movq 0xa8(%rsp), %rax
subq %rbx, %rax
incq %rax
movq %rax, 0x7f0(%rcx)
movq %rbp, 0xe8(%r14)
movzbl 0xa0(%rsp), %eax
movq %r12, %rdi
movl 0x4(%rsp), %esi
movl 0x8(%rsp), %edx
movl 0xc(%rsp), %ecx
movq 0x20(%rsp), %r8
movq 0x28(%rsp), %r9
pushq 0xb8(%rsp)
pushq 0xb8(%rsp)
pushq %rax
pushq 0xb0(%rsp)
callq 0x1f8b92
addq $0x20, %rsp
movq %rax, 0xf0(%r14)
testq %rax, %rax
je 0x19f4ad
movb $0x0, 0xf8(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x108(%r14)
movq $0x0, 0x118(%r14)
cmpq $0x0, 0x10(%rsp)
je 0x19f496
movq 0x88(%rsp), %r12
addq $0x8, %r12
xorl %ebx, %ebx
leaq 0x2048bf(%rip), %r15    # 0x3a3cc6
movq 0x80(%rsp), %rax
movl (%rax,%rbx,4), %ebp
leaq 0x50(%r14), %r13
leaq 0x30(%rsp), %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x19f883
subq $0x20, %rsp
movq 0x60(%rsp), %rax
movq %rax, 0x10(%rsp)
movups 0x50(%rsp), %xmm0
movups %xmm0, (%rsp)
movq %r13, %rdi
movl %ebp, %esi
callq 0x19e600
addq $0x20, %rsp
movq %rax, -0x8(%r12)
movq %rdx, (%r12)
testq %rdx, %rdx
jne 0x19f484
movq 0xe8(%r14), %rdi
testq %rdi, %rdi
je 0x19f471
movq %r15, %rsi
movl $0xd4, %edx
callq 0x1045eb
movq %r14, %rdi
movq %r15, %rsi
movl $0x115, %edx            # imm = 0x115
callq 0x1045eb
xorl %r14d, %r14d
incq %rbx
addq $0x10, %r12
cmpq %rbx, 0x10(%rsp)
jne 0x19f407
movq %r14, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x609ec
movq %r14, %rdi
addq $0xe8, %rdi
movq %r14, %rsi
callq 0x609bb
callq 0x60982