// File: /workspace/github_c_makefile_star2_O0/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:
subq $0x68, %rsp
movq %rdi, 0x60(%rsp)
movq %rsi, 0x58(%rsp)
movq 0x60(%rsp), %rax
cmpl $0x2, 0x50(%rax)
jne 0x2d76af
movq 0x60(%rsp), %rax
movq 0x38(%rax), %rdi
callq 0xaf360
testb $0x1, %al
jne 0x2d75e4
jmp 0x2d76aa
movq 0x60(%rsp), %rax
movq 0x38(%rax), %rax
movq %rax, 0x18(%rsp)
movq 0x60(%rsp), %rcx
movb $0x1, %al
cmpl $0x1, 0x40(%rcx)
movb %al, 0x27(%rsp)
je 0x2d7613
movq 0x60(%rsp), %rax
cmpl $0x3, 0x40(%rax)
sete %al
movb %al, 0x27(%rsp)
movq 0x18(%rsp), %rdi
movb 0x27(%rsp), %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
cmpl $0x0, %eax
setne %al
movzbl %al, %esi
andl $0x1, %esi
callq 0xaf650
movq %rax, 0x50(%rsp)
movq 0x50(%rsp), %rdi
leaq 0x40(%rsp), %rsi
callq 0xaf770
testb $0x1, %al
jne 0x2d7654
jmp 0x2d76a0
movq 0x60(%rsp), %rax
cmpl $0x1, 0x40(%rax)
je 0x2d766a
movq 0x60(%rsp), %rax
cmpl $0x3, 0x40(%rax)
jne 0x2d767c
movq 0x60(%rsp), %rax
movq (%rax), %rdi
leaq 0x40(%rsp), %rsi
callq 0xc2f20
cmpq $0x1, 0x40(%rsp)
jbe 0x2d769e
movq 0x60(%rsp), %rdi
movq 0x58(%rsp), %rsi
movq 0x40(%rsp), %rax
subq $0x1, %rax
movl %eax, %edx
callq 0x2d73e0
jmp 0x2d763f
movq 0x50(%rsp), %rdi
callq 0xafc80
jmp 0x2d7826
jmp 0x2d76b1
movq 0x60(%rsp), %rax
cmpl $0x3, 0x50(%rax)
jne 0x2d76c8
movq 0x60(%rsp), %rax
cmpq $0x0, 0x48(%rax)
jne 0x2d7700
movq 0x3648d1(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x23e93a(%rip), %rsi    # 0x516013
leaq 0x2b5055(%rip), %rdx    # 0x58c735
leaq 0x2b5096(%rip), %rcx    # 0x58c77d
leaq 0x2b497a(%rip), %r8     # 0x58c068
movl $0x228, %r9d            # imm = 0x228
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2d7702
movq 0x60(%rsp), %rax
movq 0x48(%rax), %rdi
callq 0x203210
cmpq $0x0, %rax
jbe 0x2d7824
movq 0x60(%rsp), %rax
movq 0x48(%rax), %rax
movq %rax, 0x8(%rsp)
movq 0x60(%rsp), %rcx
movb $0x1, %al
cmpl $0x1, 0x40(%rcx)
movb %al, 0x17(%rsp)
je 0x2d7749
movq 0x60(%rsp), %rax
cmpl $0x3, 0x40(%rax)
sete %al
movb %al, 0x17(%rsp)
movq 0x8(%rsp), %rdi
movb 0x17(%rsp), %dl
xorl %eax, %eax
movl $0x1, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
cmpl $0x0, %eax
setne %al
movzbl %al, %esi
andl $0x1, %esi
callq 0x203260
movq %rax, 0x28(%rsp)
cmpq $0x0, 0x28(%rsp)
jne 0x2d77b5
movq 0x36481c(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x23e885(%rip), %rsi    # 0x516013
leaq 0x25df3d(%rip), %rdx    # 0x5356d2
leaq 0x2b4fe1(%rip), %rcx    # 0x58c77d
leaq 0x2b48c5(%rip), %r8     # 0x58c068
movl $0x231, %r9d            # imm = 0x231
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2d77b7
jmp 0x2d77b9
movq 0x28(%rsp), %rdi
leaq 0x30(%rsp), %rsi
callq 0x2033b0
testb $0x1, %al
jne 0x2d77ce
jmp 0x2d781a
movq 0x60(%rsp), %rax
cmpl $0x1, 0x40(%rax)
je 0x2d77e4
movq 0x60(%rsp), %rax
cmpl $0x3, 0x40(%rax)
jne 0x2d77f6
movq 0x60(%rsp), %rax
movq (%rax), %rdi
leaq 0x30(%rsp), %rsi
callq 0xc2f20
cmpq $0x1, 0x30(%rsp)
jbe 0x2d7818
movq 0x60(%rsp), %rdi
movq 0x58(%rsp), %rsi
movq 0x30(%rsp), %rax
subq $0x1, %rax
movl %eax, %edx
callq 0x2d73e0
jmp 0x2d77b9
movq 0x28(%rsp), %rdi
callq 0x203380
jmp 0x2d7826
addq $0x68, %rsp
retq
nopl (%rax,%rax)