// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/sfx-sain.c
// Function: gt_sain_special_singleSinduction1
static void gt_sain_special_singleSinduction1(GtSainseq *sainseq,
                                              GtSsainindextype *suftab,
                                              GtSsainindextype position)
{
  GtUword currentcc = gt_sainseq_getchar(sainseq,(GtUword) position);

  if (currentcc < sainseq->numofchars)
  {
    GtUword leftcontextcc;
    GtUsainindextype putidx = --sainseq->bucketfillptr[currentcc];

    gt_assert(position > 0);
    leftcontextcc = gt_sainseq_getchar(sainseq,(GtUword) --position);
    if (sainseq->roundtable != NULL)
    {
      GtUword t = (currentcc << 1) |
                  (leftcontextcc > currentcc ? 1UL : 0);

      gt_assert (sainseq->roundtable[t] <= sainseq->currentround);
      if (sainseq->roundtable[t] < sainseq->currentround)
      {
        sainseq->roundtable[t] = sainseq->currentround;
      }
      position += sainseq->totallength;
    }
    suftab[putidx] = (leftcontextcc > currentcc) ? ~(position+1) : position;
#ifdef SAINSHOWSTATE
    printf("end S-induce: suftab["GT_WU"]="GT_WD"\n",putidx,suftab[putidx]);
#endif
  }
}

// Assembly:
subq $0x48, %rsp
movq %rdi, 0x40(%rsp)
movq %rsi, 0x38(%rsp)
movl %edx, 0x34(%rsp)
movq 0x40(%rsp), %rdi
movslq 0x34(%rsp), %rsi
callq 0x2d7830
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq 0x40(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jae 0x2d759c
movq 0x40(%rsp), %rax
movq 0x20(%rax), %rcx
movq 0x28(%rsp), %rdx
movl (%rcx,%rdx,4), %eax
addl $-0x1, %eax
movl %eax, (%rcx,%rdx,4)
movl %eax, 0x1c(%rsp)
cmpl $0x0, 0x34(%rsp)
jg 0x2d7474
movq 0x364b5d(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x23ebc6(%rip), %rsi    # 0x516013
leaq 0x2b527f(%rip), %rdx    # 0x58c6d3
leaq 0x2b5285(%rip), %rcx    # 0x58c6e0
leaq 0x2b4c06(%rip), %r8     # 0x58c068
movl $0x1f4, %r9d            # imm = 0x1F4
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2d7476
movq 0x40(%rsp), %rdi
movl 0x34(%rsp), %eax
addl $-0x1, %eax
movl %eax, 0x34(%rsp)
movslq %eax, %rsi
callq 0x2d7830
movq %rax, 0x20(%rsp)
movq 0x40(%rsp), %rax
cmpq $0x0, 0x30(%rax)
je 0x2d7568
movq 0x28(%rsp), %rax
shlq %rax
movq 0x20(%rsp), %rsi
movq 0x28(%rsp), %rdi
xorl %ecx, %ecx
movl $0x1, %edx
cmpq %rdi, %rsi
cmovaq %rdx, %rcx
orq %rcx, %rax
movq %rax, 0x10(%rsp)
movq 0x40(%rsp), %rax
movq 0x30(%rax), %rax
movq 0x10(%rsp), %rcx
movl (%rax,%rcx,4), %eax
movq 0x40(%rsp), %rcx
cmpl 0x10(%rcx), %eax
jbe 0x2d751e
movq 0x364ab3(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x23eb1c(%rip), %rsi    # 0x516013
leaq 0x2b50b6(%rip), %rdx    # 0x58c5b4
leaq 0x2b51db(%rip), %rcx    # 0x58c6e0
leaq 0x2b4b5c(%rip), %r8     # 0x58c068
movl $0x1fb, %r9d            # imm = 0x1FB
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2d7520
movq 0x40(%rsp), %rax
movq 0x30(%rax), %rax
movq 0x10(%rsp), %rcx
movl (%rax,%rcx,4), %eax
movq 0x40(%rsp), %rcx
cmpl 0x10(%rcx), %eax
jae 0x2d7554
movq 0x40(%rsp), %rax
movl 0x10(%rax), %edx
movq 0x40(%rsp), %rax
movq 0x30(%rax), %rax
movq 0x10(%rsp), %rcx
movl %edx, (%rax,%rcx,4)
movq 0x40(%rsp), %rax
movq (%rax), %rcx
movslq 0x34(%rsp), %rax
addq %rcx, %rax
movl %eax, 0x34(%rsp)
movq 0x20(%rsp), %rax
cmpq 0x28(%rsp), %rax
jbe 0x2d7584
movl 0x34(%rsp), %eax
addl $0x1, %eax
xorl $-0x1, %eax
movl %eax, 0xc(%rsp)
jmp 0x2d758c
movl 0x34(%rsp), %eax
movl %eax, 0xc(%rsp)
movl 0xc(%rsp), %edx
movq 0x38(%rsp), %rax
movl 0x1c(%rsp), %ecx
movl %edx, (%rax,%rcx,4)
addq $0x48, %rsp
retq
nopw %cs:(%rax,%rax)