// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/ft-front-prune.c
// Function: gt_sequenceobject_esr_get
static GtUchar gt_sequenceobject_esr_get(GtFtSequenceObject *seq,GtUword idx)
{
  gt_assert(idx < seq->substringlength);
  if (idx >= seq->cache_num_positions)
  {
    const GtUword addamount = 16UL;
    GtUword cidx, tostore = GT_MIN(seq->cache_num_positions + addamount,
                                seq->substringlength);

    if (tostore > seq->sequence_cache->allocated)
    {
      seq->sequence_cache->allocated += addamount;
      seq->sequence_cache->space
        = gt_realloc(seq->sequence_cache->space,
                     sizeof (GtUchar) * seq->sequence_cache->allocated);
      seq->cache_ptr = (GtUchar *) seq->sequence_cache->space;
    }
    for (cidx = seq->cache_num_positions; cidx < tostore; cidx++)
    {
      seq->cache_ptr[cidx]
        = gt_encseq_reader_next_encoded_char(seq->encseqreader);
    }
    seq->cache_num_positions = tostore;
  }
  gt_assert(seq->cache_ptr != NULL && idx < seq->cache_num_positions);
  return seq->cache_ptr[idx];
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rcx
cmpq 0x30(%rcx), %rax
jb 0x4d06a6
movq 0x16b92b(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x45994(%rip), %rsi     # 0x516013
leaq 0xe8db8(%rip), %rdx     # 0x5b943e
leaq 0xe8dcc(%rip), %rcx     # 0x5b9459
leaq 0xe8cbe(%rip), %r8      # 0x5b9352
movl $0x93, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4d06a8
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rcx
cmpq 0x40(%rcx), %rax
jb 0x4d07dd
movq $0x10, 0x20(%rsp)
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rax
addq $0x10, %rax
movq 0x30(%rsp), %rcx
cmpq 0x30(%rcx), %rax
jae 0x4d06f1
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rax
addq $0x10, %rax
movq %rax, 0x8(%rsp)
jmp 0x4d06ff
movq 0x30(%rsp), %rax
movq 0x30(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq 0x30(%rsp), %rcx
movq 0x28(%rcx), %rcx
cmpq 0x10(%rcx), %rax
jbe 0x4d0784
movq 0x30(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x10(%rax), %rcx
addq $0x10, %rcx
movq %rcx, 0x10(%rax)
movq 0x30(%rsp), %rax
movq 0x28(%rax), %rax
movq (%rax), %rdi
movq 0x30(%rsp), %rax
movq 0x28(%rax), %rax
movq 0x10(%rax), %rsi
shlq $0x0, %rsi
leaq 0xe8bfc(%rip), %rdx     # 0x5b9352
movl $0x9f, %ecx
callq 0xe8540
movq %rax, %rcx
movq 0x30(%rsp), %rax
movq 0x28(%rax), %rax
movq %rcx, (%rax)
movq 0x30(%rsp), %rax
movq 0x28(%rax), %rax
movq (%rax), %rcx
movq 0x30(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
cmpq 0x10(%rsp), %rax
jae 0x4d07cf
movq 0x30(%rsp), %rax
movq 0x18(%rax), %rdi
callq 0xaae30
movb %al, %dl
movq 0x30(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x18(%rsp), %rcx
movb %dl, (%rax,%rcx)
movq 0x18(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x18(%rsp)
jmp 0x4d0792
movq 0x10(%rsp), %rcx
movq 0x30(%rsp), %rax
movq %rcx, 0x40(%rax)
jmp 0x4d07df
movq 0x30(%rsp), %rax
cmpq $0x0, 0x20(%rax)
je 0x4d07fb
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rcx
cmpq 0x40(%rcx), %rax
jb 0x4d0833
movq 0x16b79e(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x45807(%rip), %rsi     # 0x516013
leaq 0xe8c60(%rip), %rdx     # 0x5b9473
leaq 0xe8c3f(%rip), %rcx     # 0x5b9459
leaq 0xe8b31(%rip), %r8      # 0x5b9352
movl $0xa9, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4d0835
movq 0x30(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x28(%rsp), %rcx
movb (%rax,%rcx), %al
addq $0x38, %rsp
retq
nopl (%rax,%rax)