// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/core/encseq.c
// Function: containsSWViatables
static bool containsSWViatables(const GtEncseq *encseq,
                                GtEncseqReader *esr,
                                GtUword startpos,
                                GtUword len,
                                KindofSWtable kindsw)
{
  GtEncseqReaderViatablesinfo *swstate = assignSWstate(esr, kindsw);

  gt_assert(swstate != NULL);
  if (swstate->hasprevious) {
    if (!GT_ISDIRREVERSE(esr->readmode)) {
      gt_assert(startpos + len > 0);
      if (startpos + len - 1 >= swstate->previousrange.start &&
          startpos < swstate->previousrange.end) {
        return true;
      }
    }
    else {
      startpos = GT_REVERSEPOS(encseq->totallength, startpos);
      gt_assert(startpos + 1 >= len);
      if (startpos + 1 - len < swstate->previousrange.end &&
          startpos >= swstate->previousrange.start) {
        return true;
      }
    }
  }
  return false;
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x28(%rsp)
movq %rsi, 0x20(%rsp)
movq %rdx, 0x18(%rsp)
movq %rcx, 0x10(%rsp)
movl %r8d, 0xc(%rsp)
movq 0x20(%rsp), %rdi
movl 0xc(%rsp), %esi
callq 0x130e70
movq %rax, (%rsp)
cmpq $0x0, (%rsp)
jne 0x13d2fe
movq 0x76d0b(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x20d8f(%rip), %rsi     # 0x15e066
leaq 0x4ba39(%rip), %rdx     # 0x188d17
leaq 0x4d795(%rip), %rcx     # 0x18aa7a
leaq 0x48372(%rip), %r8      # 0x18565e
movl $0xcb3, %r9d            # imm = 0xCB3
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x13d300
movq (%rsp), %rax
testb $0x1, 0x3a(%rax)
je 0x13d441
movq 0x20(%rsp), %rax
cmpl $0x1, 0x8(%rax)
je 0x13d3ae
movq 0x20(%rsp), %rax
cmpl $0x3, 0x8(%rax)
je 0x13d3ae
jmp 0x13d32e
movq 0x18(%rsp), %rax
addq 0x10(%rsp), %rax
cmpq $0x0, %rax
ja 0x13d376
movq 0x76c93(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x20d17(%rip), %rsi     # 0x15e066
leaq 0x4d738(%rip), %rdx     # 0x18aa8e
leaq 0x4d71d(%rip), %rcx     # 0x18aa7a
leaq 0x482fa(%rip), %r8      # 0x18565e
movl $0xcb6, %r9d            # imm = 0xCB6
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x13d378
movq 0x18(%rsp), %rax
addq 0x10(%rsp), %rax
subq $0x1, %rax
movq (%rsp), %rcx
cmpq 0x18(%rcx), %rax
jb 0x13d3a9
movq 0x18(%rsp), %rax
movq (%rsp), %rcx
cmpq 0x20(%rcx), %rax
jae 0x13d3a9
movb $0x1, 0x37(%rsp)
jmp 0x13d446
jmp 0x13d43f
movq 0x28(%rsp), %rax
movq 0x30(%rax), %rax
subq $0x1, %rax
subq 0x18(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
addq $0x1, %rax
cmpq 0x10(%rsp), %rax
jae 0x13d40d
movq 0x76bfc(%rip), %rax     # 0x1b3fd8
movq (%rax), %rdi
leaq 0x20c80(%rip), %rsi     # 0x15e066
leaq 0x4d451(%rip), %rdx     # 0x18a83e
leaq 0x4d686(%rip), %rcx     # 0x18aa7a
leaq 0x48263(%rip), %r8      # 0x18565e
movl $0xcbe, %r9d            # imm = 0xCBE
movb $0x0, %al
callq 0xb890
callq 0xb2e0
jmp 0x13d40f
movq 0x18(%rsp), %rax
addq $0x1, %rax
subq 0x10(%rsp), %rax
movq (%rsp), %rcx
cmpq 0x20(%rcx), %rax
jae 0x13d43d
movq 0x18(%rsp), %rax
movq (%rsp), %rcx
cmpq 0x18(%rcx), %rax
jb 0x13d43d
movb $0x1, 0x37(%rsp)
jmp 0x13d446
jmp 0x13d43f
jmp 0x13d441
movb $0x0, 0x37(%rsp)
movb 0x37(%rsp), %al
andb $0x1, %al
addq $0x38, %rsp
retq
nopw %cs:(%rax,%rax)