// File: /workspace/github_c_makefile_star2_O1/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, %r14
movl %edx, %ebp
movl %esi, %r15d
movl %edi, 0x4(%rsp)
movq 0xb8(%rsp), %rdi
testq %rdi, %rdi
je 0x1a7925
callq 0x101a9a
testb %al, %al
jne 0x1a7c0f
movl %r15d, 0x8(%rsp)
movl %ebp, 0xc(%rsp)
movq %r14, 0x28(%rsp)
leaq 0x2058fc(%rip), %rdx    # 0x3ad236
movl $0x1, %edi
movl $0x120, %esi            # imm = 0x120
movl $0xf2, %ecx
callq 0x1093ef
testq %rax, %rax
je 0x1a7bf8
movq %rax, %r14
movq %rbx, 0x20(%rsp)
movq 0xa8(%rsp), %rax
movq 0x90(%rsp), %r12
movq %rax, (%r14)
leaq 0x304(%rip), %rax       # 0x1a7c7d
movq %rax, 0x10(%r14)
leaq -0xd0b(%rip), %rax      # 0x1a6c79
movq %rax, 0x8(%r14)
leaq 0x2fc(%rip), %rax       # 0x1a7c8b
movq %rax, 0x18(%r14)
leaq 0x2ff(%rip), %rax       # 0x1a7c99
movq %rax, 0x20(%r14)
leaq 0x26f(%rip), %rax       # 0x1a7c14
movq %rax, 0x28(%r14)
movq %r14, 0x30(%r14)
leaq 0x2ed(%rip), %rax       # 0x1a7ca1
movq %rax, 0x38(%r14)
leaq 0x2e7(%rip), %rax       # 0x1a7ca6
movq %rax, 0x40(%r14)
movq $0x0, 0x48(%r14)
leaq 0x50(%r14), %rdi
leaq 0x2d5(%rip), %r8        # 0x1a7cab
xorl %r13d, %r13d
movl $0x8, %ecx
xorl %esi, %esi
movl $0x1, %edx
movq %r14, %r9
callq 0x1a6cc0
leaq 0xb0(%r14), %rdi
callq 0x1a6be3
movl 0x4(%rsp), %eax
movl %eax, 0xc0(%r14)
movq %r12, 0xe0(%r14)
movq %r12, %rdi
callq 0xf02da
movq %rax, %r15
movq %rax, 0xd8(%r14)
leaq 0x205812(%rip), %rsi    # 0x3ad236
movl $0x810, %edi            # imm = 0x810
movl $0xb8, %edx
callq 0x1092b2
movq %rax, %rbp
movq %r12, %rdi
callq 0xec1e8
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 0xd3713
testl %eax, %eax
je 0x1a7a91
movl %eax, %ebx
xorl %r15d, %r15d
xorl %r13d, %r13d
movzbl %r15b, %esi
movq %r12, %rdi
callq 0xf02fa
movq (%rbp), %rcx
movq %rax, (%rcx,%r15,8)
addq %rax, %r13
incq %r15
cmpq %r15, %rbx
jne 0x1a7a72
movl 0x18(%rsp), %eax
addq %rax, %r13
movq (%rbp), %rcx
addq %rax, 0x7f8(%rcx)
movq 0xa8(%rsp), %rax
subq %r13, %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 0x28(%rsp), %r8
movq 0x20(%rsp), %r9
pushq 0xb8(%rsp)
pushq 0xb8(%rsp)
pushq %rax
pushq 0xb0(%rsp)
callq 0x2022b4
addq $0x20, %rsp
movq %rax, 0xf0(%r14)
testq %rax, %rax
je 0x1a7bfd
movb $0x0, 0xf8(%r14)
xorps %xmm0, %xmm0
movups %xmm0, 0x108(%r14)
movq $0x0, 0x118(%r14)
cmpq $0x0, 0x10(%rsp)
je 0x1a7be6
movq 0x88(%rsp), %r12
addq $0x8, %r12
xorl %ebx, %ebx
leaq 0x30(%rsp), %r15
movq 0x80(%rsp), %rax
movl (%rax,%rbx,4), %ebp
leaq 0x50(%r14), %r13
movq %r15, %rdi
movq %r14, %rsi
movl %ebp, %edx
callq 0x1a7fd3
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 0x1a6d64
addq $0x20, %rsp
movq %rax, -0x8(%r12)
movq %rdx, (%r12)
testq %rdx, %rdx
jne 0x1a7bd4
movq 0xe8(%r14), %rdi
testq %rdi, %rdi
je 0x1a7bb8
leaq 0x205688(%rip), %rsi    # 0x3ad236
movl $0xd4, %edx
callq 0x109670
testq %r14, %r14
je 0x1a7bd1
movq %r14, %rdi
leaq 0x20566f(%rip), %rsi    # 0x3ad236
movl $0x115, %edx            # imm = 0x115
callq 0x109670
xorl %r14d, %r14d
incq %rbx
addq $0x10, %r12
cmpq %rbx, 0x10(%rsp)
jne 0x1a7b4c
movq %r14, %rax
addq $0x48, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x61ece
movq %r14, %rdi
addq $0xe8, %rdi
movq %r14, %rsi
callq 0x61e9d
callq 0x61e64