// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/sfx-sain.c
// Function: gt_sain_induceStypes1fromspecialranges
static void gt_sain_induceStypes1fromspecialranges(GtSainseq *sainseq,
                                                   GtSsainindextype *suftab)
{
  if (sainseq->seqtype == GT_SAIN_ENCSEQ)
  {
    if (gt_encseq_has_specialranges(sainseq->seq.encseq))
    {
      GtSpecialrangeiterator *sri;
      GtRange range;
      sri = gt_specialrangeiterator_new(sainseq->seq.encseq,
                                        GT_ISDIRREVERSE(sainseq->readmode)
                                          ? true : false);
      while (gt_specialrangeiterator_next(sri,&range))
      {
        if (GT_ISDIRREVERSE(sainseq->readmode))
        {
          gt_range_reverse(sainseq->totallength,&range);
        }
        if (range.start > 1UL)
        {
          gt_sain_special_singleSinduction1(sainseq,
                                            suftab,
                                            (GtSsainindextype)
                                            (range.start - 1));
        }
      }
      gt_specialrangeiterator_delete(sri);
    }
  } else
  {
    gt_assert(sainseq->seqtype == GT_SAIN_BARE_ENCSEQ &&
              sainseq->bare_encseq != NULL);
    if (gt_bare_encseq_specialcharacters(sainseq->bare_encseq) > 0)
    {
      GtRange range;
      GtBareSpecialrangeiterator *sri
        = gt_bare_encseq_specialrangeiterator_new(sainseq->bare_encseq,
                                        GT_ISDIRREVERSE(sainseq->readmode)
                                          ? true : false);

      gt_assert(sri != NULL);
      while (gt_bare_encseq_specialrangeiterator_next(sri,&range))
      {
        if (GT_ISDIRREVERSE(sainseq->readmode))
        {
          gt_range_reverse(sainseq->totallength,&range);
        }
        if (range.start > 1UL)
        {
          gt_sain_special_singleSinduction1(sainseq,
                                            suftab,
                                            (GtSsainindextype)
                                            (range.start - 1));
        }
      }
      gt_bare_encseq_specialrangeiterator_delete(sri);
    }
  }
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, %r14
movl 0x50(%rdi), %eax
cmpl $0x3, %eax
je 0x1f4e8e
cmpl $0x2, %eax
jne 0x1f4f2e
movq 0x38(%r14), %rdi
callq 0xeacd6
testb %al, %al
je 0x1f4f22
movq 0x38(%r14), %rdi
movl 0x40(%r14), %eax
andl $-0x3, %eax
xorl %esi, %esi
cmpl $0x1, %eax
sete %sil
callq 0xeae2c
movq %rax, %r15
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0xeae9a
testb %al, %al
je 0x1f4e81
leaq 0x8(%rsp), %r12
movl 0x40(%r14), %eax
orl $0x2, %eax
cmpl $0x3, %eax
jne 0x1f4e5a
movq (%r14), %rdi
movq %r12, %rsi
callq 0xf6579
movq 0x8(%rsp), %rdx
cmpq $0x2, %rdx
jb 0x1f4e72
decl %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1f4d45
movq %r15, %rdi
movq %r12, %rsi
callq 0xeae9a
testb %al, %al
jne 0x1f4e43
movq %r15, %rdi
callq 0xeb455
jmp 0x1f4f22
movq 0x48(%r14), %rdi
testq %rdi, %rdi
je 0x1f4f2e
callq 0x18ac40
testq %rax, %rax
je 0x1f4f22
movq 0x48(%r14), %rdi
movl 0x40(%r14), %eax
andl $-0x3, %eax
xorl %esi, %esi
cmpl $0x1, %eax
sete %sil
callq 0x18ac50
testq %rax, %rax
je 0x1f4f33
movq %rax, %r15
leaq 0x8(%rsp), %rsi
movq %rax, %rdi
callq 0x18acce
testb %al, %al
je 0x1f4f1a
leaq 0x8(%rsp), %r12
movl 0x40(%r14), %eax
orl $0x2, %eax
cmpl $0x3, %eax
jne 0x1f4ef3
movq (%r14), %rdi
movq %r12, %rsi
callq 0xf6579
movq 0x8(%rsp), %rdx
cmpq $0x2, %rdx
jb 0x1f4f0b
decl %edx
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1f4d45
movq %r15, %rdi
movq %r12, %rsi
callq 0x18acce
testb %al, %al
jne 0x1f4edc
movq %r15, %rdi
callq 0x18acb7
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq
callq 0x7b738
callq 0x7b6ff