// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/core/encseq.c
// Function: fwdextract2bitenc
static GtUword fwdextract2bitenc(GtEndofTwobitencoding *ptbe,
                                       const GtEncseq *encseq,
                                       GtUword currentpos,
                                       GtUword twobitencodingstoppos)
{
  gt_assert(encseq != NULL && currentpos < encseq->totallength);
  if (encseq->sat != GT_ACCESS_TYPE_BITACCESS) {
    if (currentpos < twobitencodingstoppos) {
      if (twobitencodingstoppos - currentpos >
          (GtUword) GT_UNITSIN2BITENC) {
        ptbe->unitsnotspecial = (unsigned int) GT_UNITSIN2BITENC;
      }
      else {
        ptbe->unitsnotspecial
          = (unsigned int) (twobitencodingstoppos - currentpos);
      }
      ptbe->tbe = calctbeforward(encseq->twobitencoding, currentpos);
    }
    else {
      ptbe->unitsnotspecial = 0;
      ptbe->tbe = 0;
    }
  }
  else {
    if (gt_encseq_has_specialranges(encseq)) {
      GtBitsequence spbits;

      spbits = fwdextractspecialbits(encseq->specialbits, currentpos);
      ptbe->unitsnotspecial
        = fwdbitaccessunitsnotspecial(spbits, encseq, currentpos);
    }
    else {
      ptbe->unitsnotspecial
        = fwdbitaccessunitsnotspecial0(encseq, currentpos);
    }
    if (ptbe->unitsnotspecial == 0)
      ptbe->tbe = 0;
    else
      ptbe->tbe = calctbeforward(encseq->twobitencoding, currentpos);
  }
  return currentpos + (GtUword) GT_UNITSIN2BITENC;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
movq %rcx, 0x8(%rsp)
cmpq $0x0, 0x18(%rsp)
je 0x1325a0
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
cmpq 0x30(%rcx), %rax
jb 0x1325d8
movq 0x81a31(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x2bab5(%rip), %rsi     # 0x15e066
leaq 0x571b8(%rip), %rdx     # 0x189770
leaq 0x571e4(%rip), %rcx     # 0x1897a3
leaq 0x53098(%rip), %r8      # 0x18565e
movl $0x175b, %r9d           # imm = 0x175B
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x1325da
movq 0x18(%rsp), %rax
cmpl $0x3, (%rax)
je 0x132662
movq 0x10(%rsp), %rax
cmpq 0x8(%rsp), %rax
jae 0x132645
movq 0x8(%rsp), %rax
subq 0x10(%rsp), %rax
cmpq $0x20, %rax
jbe 0x13260e
movq 0x20(%rsp), %rax
movl $0x20, 0x8(%rax)
jmp 0x132622
movq 0x8(%rsp), %rax
subq 0x10(%rsp), %rax
movl %eax, %ecx
movq 0x20(%rsp), %rax
movl %ecx, 0x8(%rax)
movq 0x18(%rsp), %rax
movq 0x280(%rax), %rdi
movq 0x10(%rsp), %rsi
callq 0x1329c0
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, (%rax)
jmp 0x13265d
movq 0x20(%rsp), %rax
movl $0x0, 0x8(%rax)
movq 0x20(%rsp), %rax
movq $0x0, (%rax)
jmp 0x132700
movq 0x18(%rsp), %rdi
callq 0x119540
testb $0x1, %al
jne 0x132672
jmp 0x1326ab
movq 0x18(%rsp), %rax
movq 0x2b0(%rax), %rdi
movq 0x10(%rsp), %rsi
callq 0x132a50
movq %rax, (%rsp)
movq (%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x10(%rsp), %rdx
callq 0x132b00
movl %eax, %ecx
movq 0x20(%rsp), %rax
movl %ecx, 0x8(%rax)
jmp 0x1326c4
movq 0x18(%rsp), %rdi
movq 0x10(%rsp), %rsi
callq 0x132b50
movl %eax, %ecx
movq 0x20(%rsp), %rax
movl %ecx, 0x8(%rax)
movq 0x20(%rsp), %rax
cmpl $0x0, 0x8(%rax)
jne 0x1326dd
movq 0x20(%rsp), %rax
movq $0x0, (%rax)
jmp 0x1326fe
movq 0x18(%rsp), %rax
movq 0x280(%rax), %rdi
movq 0x10(%rsp), %rsi
callq 0x1329c0
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, (%rax)
jmp 0x132700
movq 0x10(%rsp), %rax
addq $0x20, %rax
addq $0x28, %rsp
retq
nop