// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/eis-encidxseq-construct.c
// Function: gt_createEncIdxSeqFromSASeqSrc
static EISeq *
gt_createEncIdxSeqFromSASeqSrc(SASeqSrc *src,
                            const char *projectName,
                            const struct seqBaseParam *params,
                            size_t numExtHeaders, const uint16_t *headerIDs,
                            const uint32_t *extHeaderSizes,
                            headerWriteFunc *extHeaderCallbacks,
                            void **headerCBData, bitInsertFunc biFunc,
                            BitOffset cwExtBitsPerPos,
                            varExtBitsEstimator biVarBits, void *cbState,
                            GtError *err)
{
  SeqDataReader readSfxBWTSym;
  MRAEnc *alphabet;
  struct encIdxSeq *newSeqIdx;
  if (!SDRIsValid(readSfxBWTSym
                  = SASSCreateReader(src, SFX_REQUEST_BWTTAB)))
    return NULL;
  alphabet = SASSNewMRAEnc(src);
  newSeqIdx = gt_createEncIdxSeqGen(SASSGetLength(src), projectName,
                                 alphabet, SASSGetSeqStats(src),
                                 readSfxBWTSym, params,
                                 numExtHeaders, headerIDs, extHeaderSizes,
                                 extHeaderCallbacks, headerCBData, biFunc,
                                 cwExtBitsPerPos, biVarBits,
                                 cbState, err);
  if (!newSeqIdx)
    gt_MRAEncDelete(alphabet);
  return newSeqIdx;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xf8, %rsp
movq 0x160(%rsp), %rax
movq 0x158(%rsp), %rax
movq 0x150(%rsp), %rax
movq 0x148(%rsp), %rax
movq 0x140(%rsp), %rax
movq 0x138(%rsp), %rax
movq 0x130(%rsp), %rax
movq %rdi, 0xe8(%rsp)
movq %rsi, 0xe0(%rsp)
movq %rdx, 0xd8(%rsp)
movq %rcx, 0xd0(%rsp)
movq %r8, 0xc8(%rsp)
movq %r9, 0xc0(%rsp)
movq 0xe8(%rsp), %rdi
movl $0x2, %esi
callq 0x229530
movq %rax, 0x80(%rsp)
movq %rdx, 0x88(%rsp)
movq 0x80(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0x88(%rsp), %rax
movq %rax, 0xb8(%rsp)
movq 0xb0(%rsp), %rax
movq %rax, 0x90(%rsp)
movq 0xb8(%rsp), %rax
movq %rax, 0x98(%rsp)
movq 0x90(%rsp), %rdi
movq 0x98(%rsp), %rsi
callq 0x229510
cmpl $0x0, %eax
jne 0x228ea6
movq $0x0, 0xf0(%rsp)
jmp 0x228fed
movq 0xe8(%rsp), %rdi
callq 0x229570
movq %rax, 0xa8(%rsp)
movq 0xe8(%rsp), %rdi
callq 0x229590
movq %rax, 0x58(%rsp)
movq 0xe0(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0xa8(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0xe8(%rsp), %rdi
callq 0x2295a0
movq 0x58(%rsp), %rdi
movq 0x60(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq %rax, %rcx
movq 0xd8(%rsp), %rax
movq 0xd0(%rsp), %r8
movq %r8, 0x70(%rsp)
movq 0xc8(%rsp), %rbp
movq 0xc0(%rsp), %r13
movq 0x130(%rsp), %r12
movq 0x138(%rsp), %r15
movq 0x140(%rsp), %r14
movq 0x148(%rsp), %rbx
movq 0x150(%rsp), %r11
movq 0x158(%rsp), %r10
movq 0x160(%rsp), %r8
movq %r8, 0x78(%rsp)
movq 0xb0(%rsp), %r8
movq 0xb8(%rsp), %r9
movq %rax, (%rsp)
movq 0x70(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x78(%rsp), %rax
movq %rbp, 0x10(%rsp)
movq %r13, 0x18(%rsp)
movq %r12, 0x20(%rsp)
movq %r15, 0x28(%rsp)
movq %r14, 0x30(%rsp)
movq %rbx, 0x38(%rsp)
movq %r11, 0x40(%rsp)
movq %r10, 0x48(%rsp)
movq %rax, 0x50(%rsp)
callq 0x229170
movq %rax, 0xa0(%rsp)
cmpq $0x0, 0xa0(%rsp)
jne 0x228fdd
movq 0xa8(%rsp), %rdi
callq 0x22b660
movq 0xa0(%rsp), %rax
movq %rax, 0xf0(%rsp)
movq 0xf0(%rsp), %rax
addq $0xf8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopw (%rax,%rax)