// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/eis-blockcomp.c
// Function: blockCompSeqGetBlock
static Symbol *
blockCompSeqGetBlock(struct blockCompositionSeq *seqIdx, GtUword blockNum,
                     struct blockEncIdxSeqHint *hint, int queryRangeEnc,
                     struct superBlock *sBlockPreFetch,
                     Symbol *blockPA)
{
  struct superBlock *sBlock;
  BitOffset varDataMemOffset, cwIdxMemOffset;
  GT_UNUSED GtUword relBlockNum;
  unsigned blockSize;
  Symbol *block;
  gt_assert(seqIdx);
  blockSize = seqIdx->blockSize;
  if (blockNum * blockSize >= EISLength(&seqIdx->baseClass))
    return NULL;
  if (sBlockPreFetch)
    sBlock = sBlockPreFetch;
  else
  {
    GtUword bucketNum = bucketNumFromBlockNum(seqIdx, blockNum);
#ifdef USE_SBLOCK_CACHE
    sBlock = cacheFetchSuperBlock(seqIdx, bucketNum,
                                  &hint->sBlockCache);
#else
    sBlock = fetchSuperBlock(seqIdx, bucketNum, NULL);
#endif
  }
  relBlockNum = blockNum % seqIdx->bucketBlocks;
  if (blockPA)
    block = blockPA;
  else
    block = gt_calloc(sizeof (Symbol), blockSize);
  walkCompIndicesPrefix(seqIdx, sBlock, blockNum % seqIdx->bucketBlocks,
                        cwIdxMemOffset, , varDataMemOffset);
  unpackBlock(seqIdx, sBlock, cwIdxMemOffset, varDataMemOffset, block,
              blockSize);
  if (queryRangeEnc)
    gt_SRLApplyRangesToSubString(seqIdx->rangeEncs,
                              block, blockNum * blockSize, blockSize,
                              blockNum * blockSize, &hint->rangeHint);
#ifndef USE_SBLOCK_CACHE
  if (!sBlockPreFetch)
    deleteSuperBlock(sBlock);
#endif
  return block;
}

// Assembly:
subq $0x88, %rsp
movq %rdi, 0x78(%rsp)
movq %rsi, 0x70(%rsp)
movq %rdx, 0x68(%rsp)
movl %ecx, 0x64(%rsp)
movq %r8, 0x58(%rsp)
movq %r9, 0x50(%rsp)
cmpq $0x0, 0x78(%rsp)
jne 0x4ad3a4
movq 0x18ec2d(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x68c96(%rip), %rsi     # 0x516013
leaq 0x109333(%rip), %rdx    # 0x5b66b7
leaq 0x109729(%rip), %rcx    # 0x5b6ab4
leaq 0x108b76(%rip), %r8     # 0x5b5f08
movl $0x44a, %r9d            # imm = 0x44A
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4ad3a6
movq 0x78(%rsp), %rax
movl 0xb4(%rax), %eax
movl %eax, 0x2c(%rsp)
movq 0x70(%rsp), %rax
movl 0x2c(%rsp), %ecx
imulq %rcx, %rax
movq %rax, (%rsp)
movq 0x78(%rsp), %rdi
callq 0x4ad5b0
movq %rax, %rcx
movq (%rsp), %rax
cmpq %rcx, %rax
jb 0x4ad3ed
movq $0x0, 0x80(%rsp)
jmp 0x4ad59d
cmpq $0x0, 0x58(%rsp)
je 0x4ad401
movq 0x58(%rsp), %rax
movq %rax, 0x48(%rsp)
jmp 0x4ad42e
movq 0x78(%rsp), %rdi
movq 0x70(%rsp), %rsi
callq 0x4ad5c0
movq %rax, 0x18(%rsp)
movq 0x78(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x68(%rsp), %rdx
callq 0x4ac400
movq %rax, 0x48(%rsp)
movq 0x70(%rsp), %rax
movq 0x78(%rsp), %rcx
movl 0xb0(%rcx), %ecx
xorl %edx, %edx
divq %rcx
movq %rdx, 0x30(%rsp)
cmpq $0x0, 0x50(%rsp)
je 0x4ad45c
movq 0x50(%rsp), %rax
movq %rax, 0x20(%rsp)
jmp 0x4ad47d
movl 0x2c(%rsp), %eax
movl %eax, %esi
movl $0x1, %edi
leaq 0x108a9a(%rip), %rdx    # 0x5b5f08
movl $0x45e, %ecx            # imm = 0x45E
callq 0xe83c0
movq %rax, 0x20(%rsp)
jmp 0x4ad47f
movq 0x48(%rsp), %rdi
movq 0x78(%rsp), %rsi
xorl %edx, %edx
callq 0x4ac510
movq %rax, 0x38(%rsp)
movq 0x48(%rsp), %rax
movl (%rax), %eax
movq %rax, 0x40(%rsp)
movq 0x70(%rsp), %rax
movq 0x78(%rsp), %rcx
movl 0xb0(%rcx), %ecx
xorl %edx, %edx
divq %rcx
movl %edx, %eax
movl %eax, 0x14(%rsp)
movq 0x78(%rsp), %rax
movl 0x68(%rax), %eax
movl %eax, 0x10(%rsp)
cmpl $0x0, 0x14(%rsp)
je 0x4ad526
movq 0x48(%rsp), %rax
movq 0x10(%rax), %rdi
movq 0x38(%rsp), %rsi
movl 0x10(%rsp), %edx
callq 0x473e40
movl %eax, 0xc(%rsp)
movq 0x78(%rsp), %rax
movq 0x50(%rax), %rax
movl 0xc(%rsp), %ecx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movl 0x8(%rax), %eax
addq 0x40(%rsp), %rax
movq %rax, 0x40(%rsp)
movl 0x10(%rsp), %eax
addq 0x38(%rsp), %rax
movq %rax, 0x38(%rsp)
movl 0x14(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0x14(%rsp)
jmp 0x4ad4c8
jmp 0x4ad528
jmp 0x4ad52a
movq 0x78(%rsp), %rdi
movq 0x48(%rsp), %rsi
movq 0x38(%rsp), %rdx
movq 0x40(%rsp), %rcx
movq 0x20(%rsp), %r8
movl 0x2c(%rsp), %r9d
callq 0x4aced0
cmpl $0x0, 0x64(%rsp)
je 0x4ad590
movq 0x78(%rsp), %rax
movq 0x70(%rax), %rdi
movq 0x20(%rsp), %rsi
movq 0x70(%rsp), %rdx
movl 0x2c(%rsp), %eax
imulq %rax, %rdx
movl 0x2c(%rsp), %eax
movl %eax, %ecx
movq 0x70(%rsp), %r8
movl 0x2c(%rsp), %eax
imulq %rax, %r8
movq 0x68(%rsp), %r9
addq $0x20, %r9
callq 0x4b2410
movq 0x20(%rsp), %rax
movq %rax, 0x80(%rsp)
movq 0x80(%rsp), %rax
addq $0x88, %rsp
retq
nopl (%rax)