// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/sfx-diffcov.c
// Function: dc_insertfullspecialrangesample
static GtUword dc_insertfullspecialrangesample(GtDifferencecover *dcov,
                                               GtUword specialidx,
                                               GtUword leftpos,
                                               GtUword rightpos)
{
  GtUword pos;

  gt_assert(dcov != NULL && leftpos < rightpos);
  if (GT_ISDIRREVERSE(dcov->readmode))
  {
    pos = rightpos - 1;
  } else
  {
    pos = leftpos;
  }
  while (true)
  {
    if (GT_ISDIRREVERSE(dcov->readmode))
    {
      GtUword revpos;

      gt_assert(pos < dcov->totallength);
      revpos = GT_REVERSEPOS(dcov->totallength,pos);
      if (dc_is_in_differencecover(dcov,(GtUword) GT_MODV(revpos)))
      {
        dc_inversesuftab_set(dcov,revpos,specialidx);
        specialidx++;
      }
      if (pos == leftpos)
      {
        break;
      }
      pos--;
    } else
    {
      if (dc_is_in_differencecover(dcov,(GtUword) GT_MODV(pos)))
      {
        dc_inversesuftab_set(dcov,pos,specialidx);
        specialidx++;
      }
      if (pos == rightpos-1)
      {
        break;
      }
      pos++;
    }
  }
  return specialidx;
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movq %rcx, 0x18(%rsp)
cmpq $0x0, 0x30(%rsp)
je 0x2c3dcc
movq 0x20(%rsp), %rax
cmpq 0x18(%rsp), %rax
jb 0x2c3e04
movq 0x3781cd(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x252236(%rip), %rsi    # 0x516013
leaq 0x2c6241(%rip), %rdx    # 0x58a025
leaq 0x2c625d(%rip), %rcx    # 0x58a048
leaq 0x2c59c9(%rip), %r8     # 0x5897bb
movl $0x2db, %r9d            # imm = 0x2DB
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2c3e06
movq 0x30(%rsp), %rax
cmpl $0x1, 0x68(%rax)
je 0x2c3e1c
movq 0x30(%rsp), %rax
cmpl $0x3, 0x68(%rax)
jne 0x2c3e2c
movq 0x18(%rsp), %rax
subq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x2c3e36
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
jmp 0x2c3e38
movq 0x30(%rsp), %rax
cmpl $0x1, 0x68(%rax)
je 0x2c3e52
movq 0x30(%rsp), %rax
cmpl $0x3, 0x68(%rax)
jne 0x2c3f15
jmp 0x2c3e54
movq 0x10(%rsp), %rax
movq 0x30(%rsp), %rcx
cmpq 0x48(%rcx), %rax
jb 0x2c3e9c
movq 0x378135(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x25219e(%rip), %rsi    # 0x516013
leaq 0x2c61ec(%rip), %rdx    # 0x58a068
leaq 0x2c61c5(%rip), %rcx    # 0x58a048
leaq 0x2c5931(%rip), %r8     # 0x5897bb
movl $0x2e9, %r9d            # imm = 0x2E9
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2c3e9e
movq 0x30(%rsp), %rax
movq 0x48(%rax), %rax
subq $0x1, %rax
subq 0x10(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x30(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x30(%rsp), %rax
movl 0xc(%rax), %eax
andq %rax, %rsi
callq 0x2c3d50
testb $0x1, %al
jne 0x2c3ed5
jmp 0x2c3ef7
movq 0x30(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x2c3f90
movq 0x28(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x28(%rsp)
movq 0x10(%rsp), %rax
cmpq 0x20(%rsp), %rax
jne 0x2c3f05
jmp 0x2c3f7f
movq 0x10(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x2c3f7a
movq 0x30(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x30(%rsp), %rax
movl 0xc(%rax), %eax
andq %rax, %rsi
callq 0x2c3d50
testb $0x1, %al
jne 0x2c3f35
jmp 0x2c3f57
movq 0x30(%rsp), %rdi
movq 0x10(%rsp), %rsi
movq 0x28(%rsp), %rdx
callq 0x2c3f90
movq 0x28(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x28(%rsp)
movq 0x10(%rsp), %rax
movq 0x18(%rsp), %rcx
subq $0x1, %rcx
cmpq %rcx, %rax
jne 0x2c3f6c
jmp 0x2c3f7f
movq 0x10(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x10(%rsp)
jmp 0x2c3e38
movq 0x28(%rsp), %rax
addq $0x38, %rsp
retq
nopl (%rax)