// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/sfx-suffixer.c
// Function: getencseqkmers_nospecialtwobitencoding
static GtCodetype getencseqkmers_nospecialtwobitencoding(
                                    const GtTwobitencoding *twobitencoding,
                                    GtUword totallength,
                                    GtCodetype maskright,
                                    GtReadmode readmode,
                                    unsigned int kmersize,
                                    unsigned int upperkmersize,
                                    void(*processkmercode)(void *,
                                                           bool,
                                                           GtUword,
                                                           GtCodetype),
                                    void *processkmercodeinfo,
                                    bool onlyfirst,
                                    GtUword startpos,
                                    GtUword endpos)
{
  GtUword pos, unitindex, rightbound = totallength - kmersize;
  unsigned int shiftright;
  GtCodetype code;
  GtUchar cc;
  GtTwobitencoding currentencoding;

  gt_assert(kmersize > 1U);
  if (GT_ISDIRREVERSE(readmode))
  {
    GtUword startpos2;

    gt_assert(endpos >= (GtUword) upperkmersize);
    pos = endpos - (GtUword) kmersize;
    unitindex = (pos > 0) ? GT_DIVBYUNITSIN2BITENC(pos-1) : 0;
    code = gt_kmercode_reverse(gt_kmercode_at_position(twobitencoding,pos,
                                                       kmersize),
                               kmersize);
    if (processkmercode != NULL)
    {
      processkmercode(processkmercodeinfo,
                      true,
                      GT_ADJUSTREVERSEPOS(rightbound,pos),
                      GT_ISDIRCOMPLEMENT(readmode)
                        ? gt_kmercode_complement(code,maskright)
                        : code);
    }
    if (onlyfirst)
    {
      return code;
    }
    currentencoding = twobitencoding[unitindex];
    startpos2 = startpos + (upperkmersize - kmersize);
    shiftright = (unsigned int)
                 GT_MULT2(GT_UNITSIN2BITENC - 1 -
                          GT_MODBYUNITSIN2BITENC(pos-1));
    while (pos > startpos2)
    {
      pos--;
      cc = (GtUchar) (currentencoding >> shiftright) & 3;
      GT_UPDATEKMER(code,cc,maskright);
      if (processkmercode != NULL)
      {
        processkmercode(processkmercodeinfo,false,
                        GT_ADJUSTREVERSEPOS(rightbound,pos),
                         (readmode == GT_READMODE_REVCOMPL)
                          ? gt_kmercode_complement(code,maskright)
                          : code);
      }
      if (shiftright < (unsigned int) (GT_INTWORDSIZE-2))
      {
        shiftright += 2;
      } else
      {
        gt_assert(unitindex > 0 || pos == startpos2);
        if (unitindex > 0)
        {
          currentencoding = twobitencoding[--unitindex];
        }
        shiftright = 0;
      }
    }
  } else
  {
    GtUword maxunitindex = gt_unitsoftwobitencoding(totallength) - 1;

    pos = startpos;
    unitindex = GT_DIVBYUNITSIN2BITENC(startpos+kmersize);
    code = gt_kmercode_at_position(twobitencoding,pos,kmersize);
    if (processkmercode != NULL)
    {
      processkmercode(processkmercodeinfo,true,pos,
                      GT_ISDIRCOMPLEMENT(readmode)
                        ? gt_kmercode_complement(code,maskright)
                        : code);
    }
    if (onlyfirst)
    {
      return code;
    }
    currentencoding = twobitencoding[unitindex];
    shiftright = (unsigned int)
                 GT_MULT2(GT_UNITSIN2BITENC - 1 -
                          GT_MODBYUNITSIN2BITENC(startpos+kmersize));
    while (pos < endpos - (GtUword) upperkmersize)
    {
      pos++;
      cc = (GtUchar) (currentencoding >> shiftright) & 3;
      GT_UPDATEKMER(code,cc,maskright);
      if (processkmercode != NULL)
      {
        processkmercode(processkmercodeinfo,false,pos,
                          (readmode == GT_READMODE_COMPL)
                            ? gt_kmercode_complement(code,maskright)
                            : code);
      }
      if (shiftright > 0)
      {
        shiftright -= 2;
      } else
      {
        gt_assert(unitindex < maxunitindex-1 ||
                  pos == endpos - (GtUword) upperkmersize);
        if (unitindex < maxunitindex-1)
        {
          currentencoding = twobitencoding[++unitindex];
        }
        shiftright = (unsigned int) (GT_INTWORDSIZE-2);
      }
    }
  }
  return code;
}

// Assembly:
subq $0x108, %rsp            # imm = 0x108
movq 0x130(%rsp), %rax
movq 0x128(%rsp), %rax
movb 0x120(%rsp), %al
movq 0x118(%rsp), %r10
movq 0x110(%rsp), %r10
movq %rdi, 0xf8(%rsp)
movq %rsi, 0xf0(%rsp)
movq %rdx, 0xe8(%rsp)
movl %ecx, 0xe4(%rsp)
movl %r8d, 0xe0(%rsp)
movl %r9d, 0xdc(%rsp)
andb $0x1, %al
movb %al, 0xdb(%rsp)
movq 0xf0(%rsp), %rax
movl 0xe0(%rsp), %ecx
subq %rcx, %rax
movq %rax, 0xc0(%rsp)
cmpl $0x1, 0xe0(%rsp)
ja 0x2e2c92
movq 0x35933f(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2333a8(%rip), %rsi    # 0x516013
leaq 0x2aadb5(%rip), %rdx    # 0x58da27
leaq 0x2aaf3c(%rip), %rcx    # 0x58dbb5
leaq 0x2aa5b4(%rip), %r8     # 0x58d234
movl $0x2de, %r9d            # imm = 0x2DE
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2e2c94
cmpl $0x1, 0xe4(%rsp)
je 0x2e2cac
cmpl $0x3, 0xe4(%rsp)
jne 0x2e307d
jmp 0x2e2cae
movq 0x130(%rsp), %rax
movl 0xdc(%rsp), %ecx
cmpq %rcx, %rax
jae 0x2e2cfa
movq 0x3592d7(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x233340(%rip), %rsi    # 0x516013
leaq 0x2aabe8(%rip), %rdx    # 0x58d8c2
leaq 0x2aaed4(%rip), %rcx    # 0x58dbb5
leaq 0x2aa54c(%rip), %r8     # 0x58d234
movl $0x2e3, %r9d            # imm = 0x2E3
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2e2cfc
movq 0x130(%rsp), %rax
movl 0xe0(%rsp), %ecx
subq %rcx, %rax
movq %rax, 0xd0(%rsp)
cmpq $0x0, 0xd0(%rsp)
jbe 0x2e2d3b
movq 0xd0(%rsp), %rax
subq $0x1, %rax
shrq $0x5, %rax
movq %rax, 0x88(%rsp)
jmp 0x2e2d47
xorl %eax, %eax
movq %rax, 0x88(%rsp)
jmp 0x2e2d47
movq 0x88(%rsp), %rax
movq %rax, 0xc8(%rsp)
movq 0xf8(%rsp), %rdi
movq 0xd0(%rsp), %rsi
movl 0xe0(%rsp), %edx
callq 0x2e3420
movq %rax, %rdi
movl 0xe0(%rsp), %esi
callq 0x2e3500
movq %rax, 0xb0(%rsp)
cmpq $0x0, 0x110(%rsp)
je 0x2e2e26
movq 0x110(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x118(%rsp), %rax
movq %rax, 0x78(%rsp)
movq 0xc0(%rsp), %rax
subq 0xd0(%rsp), %rax
movq %rax, 0x80(%rsp)
cmpl $0x2, 0xe4(%rsp)
je 0x2e2ddf
cmpl $0x3, 0xe4(%rsp)
jne 0x2e2dfb
movq 0xb0(%rsp), %rdi
movq 0xe8(%rsp), %rsi
callq 0x2e3400
movq %rax, 0x68(%rsp)
jmp 0x2e2e08
movq 0xb0(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x70(%rsp), %rax
movq 0x80(%rsp), %rdx
movq 0x78(%rsp), %rdi
movq 0x68(%rsp), %rcx
movl $0x1, %esi
callq *%rax
testb $0x1, 0xdb(%rsp)
je 0x2e2e45
movq 0xb0(%rsp), %rax
movq %rax, 0x100(%rsp)
jmp 0x2e33e7
movq 0xf8(%rsp), %rax
movq 0xc8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0xa0(%rsp)
movq 0x128(%rsp), %rax
movl 0xdc(%rsp), %ecx
subl 0xe0(%rsp), %ecx
movl %ecx, %ecx
addq %rcx, %rax
movq %rax, 0x98(%rsp)
movq 0xd0(%rsp), %rcx
subq $0x1, %rcx
andq $0x1f, %rcx
movl $0x1f, %eax
subq %rcx, %rax
shlq %rax
movl %eax, 0xbc(%rsp)
movq 0xd0(%rsp), %rax
cmpq 0x98(%rsp), %rax
jbe 0x2e3078
movq 0xd0(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0xd0(%rsp)
movq 0xa0(%rsp), %rax
movl 0xbc(%rsp), %ecx
shrq %cl, %rax
movzbl %al, %eax
andl $0x3, %eax
movb %al, 0xaf(%rsp)
movq 0xb0(%rsp), %rax
shlq $0x2, %rax
movq %rax, 0xb0(%rsp)
movzbl 0xaf(%rsp), %eax
orq 0xb0(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0xe8(%rsp), %rax
andq 0xb0(%rsp), %rax
movq %rax, 0xb0(%rsp)
cmpq $0x0, 0x110(%rsp)
je 0x2e2fb8
movq 0x110(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x118(%rsp), %rax
movq %rax, 0x58(%rsp)
movq 0xc0(%rsp), %rax
subq 0xd0(%rsp), %rax
movq %rax, 0x60(%rsp)
cmpl $0x3, 0xe4(%rsp)
jne 0x2e2f93
movq 0xb0(%rsp), %rdi
movq 0xe8(%rsp), %rsi
callq 0x2e3400
movq %rax, 0x48(%rsp)
jmp 0x2e2fa0
movq 0xb0(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x50(%rsp), %rax
movq 0x60(%rsp), %rdx
movq 0x58(%rsp), %rdi
movq 0x48(%rsp), %rcx
xorl %esi, %esi
callq *%rax
cmpl $0x3e, 0xbc(%rsp)
jae 0x2e2fd8
movl 0xbc(%rsp), %eax
addl $0x2, %eax
movl %eax, 0xbc(%rsp)
jmp 0x2e3073
jmp 0x2e2fda
cmpq $0x0, 0xc8(%rsp)
ja 0x2e302f
movq 0xd0(%rsp), %rax
cmpq 0x98(%rsp), %rax
je 0x2e302f
movq 0x358fa2(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x23300b(%rip), %rsi    # 0x516013
leaq 0x2aa8d5(%rip), %rdx    # 0x58d8e4
leaq 0x2aab9f(%rip), %rcx    # 0x58dbb5
leaq 0x2aa217(%rip), %r8     # 0x58d234
movl $0x30d, %r9d            # imm = 0x30D
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2e3031
cmpq $0x0, 0xc8(%rsp)
jbe 0x2e3068
movq 0xf8(%rsp), %rax
movq 0xc8(%rsp), %rcx
movq %rcx, %rdx
addq $-0x1, %rdx
movq %rdx, 0xc8(%rsp)
movq -0x8(%rax,%rcx,8), %rax
movq %rax, 0xa0(%rsp)
movl $0x0, 0xbc(%rsp)
jmp 0x2e2ea6
jmp 0x2e33d7
movq 0xf0(%rsp), %rdi
callq 0x2e5b90
subq $0x1, %rax
movq %rax, 0x90(%rsp)
movq 0x128(%rsp), %rax
movq %rax, 0xd0(%rsp)
movq 0x128(%rsp), %rax
movl 0xe0(%rsp), %ecx
addq %rcx, %rax
shrq $0x5, %rax
movq %rax, 0xc8(%rsp)
movq 0xf8(%rsp), %rdi
movq 0xd0(%rsp), %rsi
movl 0xe0(%rsp), %edx
callq 0x2e3420
movq %rax, 0xb0(%rsp)
cmpq $0x0, 0x110(%rsp)
je 0x2e3172
movq 0x110(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x118(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0xd0(%rsp), %rax
movq %rax, 0x40(%rsp)
cmpl $0x2, 0xe4(%rsp)
je 0x2e312e
cmpl $0x3, 0xe4(%rsp)
jne 0x2e314a
movq 0xb0(%rsp), %rdi
movq 0xe8(%rsp), %rsi
callq 0x2e3400
movq %rax, 0x28(%rsp)
jmp 0x2e3157
movq 0xb0(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x30(%rsp), %rax
movq 0x40(%rsp), %rdx
movq 0x38(%rsp), %rdi
movq 0x28(%rsp), %rcx
movl $0x1, %esi
callq *%rax
testb $0x1, 0xdb(%rsp)
je 0x2e3191
movq 0xb0(%rsp), %rax
movq %rax, 0x100(%rsp)
jmp 0x2e33e7
movq 0xf8(%rsp), %rax
movq 0xc8(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0xa0(%rsp)
movq 0x128(%rsp), %rcx
movl 0xe0(%rsp), %eax
addq %rax, %rcx
andq $0x1f, %rcx
movl $0x1f, %eax
subq %rcx, %rax
shlq %rax
movl %eax, 0xbc(%rsp)
movq 0xd0(%rsp), %rax
movq 0x130(%rsp), %rcx
movl 0xdc(%rsp), %edx
subq %rdx, %rcx
cmpq %rcx, %rax
jae 0x2e33d5
movq 0xd0(%rsp), %rax
addq $0x1, %rax
movq %rax, 0xd0(%rsp)
movq 0xa0(%rsp), %rax
movl 0xbc(%rsp), %ecx
shrq %cl, %rax
movzbl %al, %eax
andl $0x3, %eax
movb %al, 0xaf(%rsp)
movq 0xb0(%rsp), %rax
shlq $0x2, %rax
movq %rax, 0xb0(%rsp)
movzbl 0xaf(%rsp), %eax
orq 0xb0(%rsp), %rax
movq %rax, 0xb0(%rsp)
movq 0xe8(%rsp), %rax
andq 0xb0(%rsp), %rax
movq %rax, 0xb0(%rsp)
cmpq $0x0, 0x110(%rsp)
je 0x2e32ec
movq 0x110(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x118(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0xd0(%rsp), %rax
movq %rax, 0x20(%rsp)
cmpl $0x2, 0xe4(%rsp)
jne 0x2e32c7
movq 0xb0(%rsp), %rdi
movq 0xe8(%rsp), %rsi
callq 0x2e3400
movq %rax, 0x8(%rsp)
jmp 0x2e32d4
movq 0xb0(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rdx
movq 0x18(%rsp), %rdi
movq 0x8(%rsp), %rcx
xorl %esi, %esi
callq *%rax
cmpl $0x0, 0xbc(%rsp)
jbe 0x2e330c
movl 0xbc(%rsp), %eax
subl $0x2, %eax
movl %eax, 0xbc(%rsp)
jmp 0x2e33d0
jmp 0x2e330e
movq 0xc8(%rsp), %rax
movq 0x90(%rsp), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jb 0x2e337e
movq 0xd0(%rsp), %rax
movq 0x130(%rsp), %rcx
movl 0xdc(%rsp), %edx
subq %rdx, %rcx
cmpq %rcx, %rax
je 0x2e337e
movq 0x358c53(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x232cbc(%rip), %rsi    # 0x516013
leaq 0x2aa5a8(%rip), %rdx    # 0x58d906
leaq 0x2aa850(%rip), %rcx    # 0x58dbb5
leaq 0x2a9ec8(%rip), %r8     # 0x58d234
movl $0x33d, %r9d            # imm = 0x33D
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2e3380
movq 0xc8(%rsp), %rax
movq 0x90(%rsp), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jae 0x2e33c5
movq 0xf8(%rsp), %rax
movq 0xc8(%rsp), %rcx
movq %rcx, %rdx
addq $0x1, %rdx
movq %rdx, 0xc8(%rsp)
movq 0x8(%rax,%rcx,8), %rax
movq %rax, 0xa0(%rsp)
movl $0x3e, 0xbc(%rsp)
jmp 0x2e31d5
jmp 0x2e33d7
movq 0xb0(%rsp), %rax
movq %rax, 0x100(%rsp)
movq 0x100(%rsp), %rax
addq $0x108, %rsp            # imm = 0x108
retq
nopw (%rax,%rax)