// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/sfx-enumcodes.c
// Function: gt_Enumcodeatposition_filledqgramcodestopatmax
bool gt_Enumcodeatposition_filledqgramcodestopatmax(
                                        GtCodetype *code,
                                        const Enumcodeatposition *ecp,
                                        unsigned int prefixindex,
                                        GtUword pos,
                                        GtCodetype stopcode)
{
  GtCodetype tmpcode;
  unsigned int idx;
  GtUchar cc;

  gt_assert(prefixindex > 0 && prefixindex < ecp->prefixlength);
  tmpcode = ecp->filltable[prefixindex];
  if (tmpcode > stopcode)
  {
    return false;
  }
  for (idx=0; idx<prefixindex; idx++)
  {
    gt_assert((GtUword) (pos + idx) < ecp->totallength);
    cc = gt_encseq_get_encoded_char_nospecial(ecp->encseq,
                                              pos + idx,
                                              ecp->readmode);
    gt_assert(GT_ISNOTSPECIAL(cc));
    tmpcode += ecp->multimappower[idx][cc];
    if (tmpcode > stopcode)
    {
      return false;
    }
  }
  *code = tmpcode;
  return true;
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x38(%rsp)
movq %rsi, 0x30(%rsp)
movl %edx, 0x2c(%rsp)
movq %rcx, 0x20(%rsp)
movq %r8, 0x18(%rsp)
cmpl $0x0, 0x2c(%rsp)
jbe 0x2c5d11
movl 0x2c(%rsp), %eax
movq 0x30(%rsp), %rcx
cmpl 0x3c(%rcx), %eax
jb 0x2c5d49
movq 0x376288(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2502f1(%rip), %rsi    # 0x516013
leaq 0x2c49d9(%rip), %rdx    # 0x58a702
leaq 0x2c4a54(%rip), %rcx    # 0x58a784
leaq 0x2c49b1(%rip), %r8     # 0x58a6e8
movl $0xc9, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2c5d4b
movq 0x30(%rsp), %rax
movq 0x48(%rax), %rax
movl 0x2c(%rsp), %ecx
movq (%rax,%rcx,8), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
cmpq 0x18(%rsp), %rax
jbe 0x2c5d77
movb $0x0, 0x47(%rsp)
jmp 0x2c5ea7
movl $0x0, 0xc(%rsp)
movl 0xc(%rsp), %eax
cmpl 0x2c(%rsp), %eax
jae 0x2c5e95
jmp 0x2c5d8f
movq 0x20(%rsp), %rax
movl 0xc(%rsp), %ecx
addq %rcx, %rax
movq 0x30(%rsp), %rcx
cmpq 0x20(%rcx), %rax
jb 0x2c5dde
movq 0x3761f3(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x25025c(%rip), %rsi    # 0x516013
leaq 0x2c499d(%rip), %rdx    # 0x58a75b
leaq 0x2c49bf(%rip), %rcx    # 0x58a784
leaq 0x2c491c(%rip), %r8     # 0x58a6e8
movl $0xd1, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2c5de0
movq 0x30(%rsp), %rax
movq 0x30(%rax), %rdi
movq 0x20(%rsp), %rsi
movl 0xc(%rsp), %eax
addq %rax, %rsi
movq 0x30(%rsp), %rax
movl 0x38(%rax), %edx
callq 0xaa7f0
movb %al, 0xb(%rsp)
movzbl 0xb(%rsp), %eax
cmpl $0xfe, %eax
jl 0x2c5e4a
movq 0x376187(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2501f0(%rip), %rsi    # 0x516013
leaq 0x26f131(%rip), %rdx    # 0x534f5b
leaq 0x2c4953(%rip), %rcx    # 0x58a784
leaq 0x2c48b0(%rip), %r8     # 0x58a6e8
movl $0xd5, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2c5e4c
movq 0x30(%rsp), %rax
movq 0x40(%rax), %rax
movl 0xc(%rsp), %ecx
movq (%rax,%rcx,8), %rax
movzbl 0xb(%rsp), %ecx
movq (%rax,%rcx,8), %rax
addq 0x10(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
cmpq 0x18(%rsp), %rax
jbe 0x2c5e83
movb $0x0, 0x47(%rsp)
jmp 0x2c5ea7
jmp 0x2c5e85
movl 0xc(%rsp), %eax
addl $0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x2c5d7f
movq 0x10(%rsp), %rcx
movq 0x38(%rsp), %rax
movq %rcx, (%rax)
movb $0x1, 0x47(%rsp)
movb 0x47(%rsp), %al
andb $0x1, %al
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)
nopl (%rax)