// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/match/sfx-sain.c
// Function: gt_sain_assignSstarlength
static void gt_sain_assignSstarlength(GtSainseq *sainseq,
                                      GtUsainindextype *lentab)
{
  switch (sainseq->seqtype)
  {
    case GT_SAIN_PLAINSEQ:
      gt_sain_PLAINSEQ_assignSstarlength(sainseq,sainseq->seq.plainseq,lentab);
      break;
    case GT_SAIN_ENCSEQ:
      gt_sain_ENCSEQ_assignSstarlength(sainseq,sainseq->seq.encseq,lentab);
      break;
    case GT_SAIN_INTSEQ:
      gt_sain_INTSEQ_assignSstarlength(sainseq,sainseq->seq.array,lentab);
      break;
    case GT_SAIN_BARE_ENCSEQ:
      gt_sain_BARE_ENCSEQ_assignSstarlength(sainseq,sainseq->seq.plainseq,
                                            lentab);
      break;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movl 0x50(%rdi), %eax
cmpq $0x3, %rax
ja 0x1fd1fe
movq %rdi, %r15
leaq 0x1c5717(%rip), %rcx    # 0x3c26d8
movslq (%rcx,%rax,4), %rax
addq %rcx, %rax
jmpq *%rax
movq (%r15), %r11
movq %r11, %rcx
addq $0x100, %rcx            # imm = 0x100
movl $0x1, %eax
subl %r11d, %eax
leal -0x1(%r11), %edx
addq 0x38(%r15), %rdx
movb $0x1, %r9b
movl %r11d, %edi
movq %rcx, %r10
movzbl (%rdx), %ecx
movb $0x1, %r8b
cmpq %rcx, %r10
ja 0x1fd002
sete %r8b
andb %r9b, %r8b
leal -0x1(%rdi), %r10d
notb %r9b
orb %r8b, %r9b
testb $0x1, %r9b
je 0x1fd017
movl %r11d, %edi
jmp 0x1fd02d
cmpl %r11d, %r10d
jae 0x1fd217
addl %eax, %r11d
movl %edi, %r9d
shrl %r9d
movl %r11d, (%rsi,%r9,4)
incl %eax
decq %rdx
movl %edi, %r11d
movl %r10d, %edi
movl %r8d, %r9d
testl %r10d, %r10d
jne 0x1fcfed
jmp 0x1fd1fe
movq %rsi, 0x10(%rsp)
movq (%r15), %r14
movq 0x38(%r15), %rdi
movq %r14, %r12
addq $0x100, %r12            # imm = 0x100
movl 0x40(%r15), %eax
movl %eax, %ecx
orl $0x1, %ecx
movl %eax, %esi
decl %esi
testb $0x1, %al
cmovel %ecx, %esi
xorl %edx, %edx
callq 0xed76d
movq %rax, 0x8(%rsp)
movl (%r15), %r15d
movl $0x1, %ebp
subl %r15d, %ebp
decl %r15d
movb $0x1, %bl
movq %r12, %r13
movq 0x8(%rsp), %rdi
callq 0xec7be
leal 0x100(%r15), %ecx
cmpb $-0x2, %al
movzbl %al, %r12d
cmovaeq %rcx, %r12
movb $0x1, %al
cmpq %r13, %r12
jb 0x1fd0b3
sete %al
andb %bl, %al
notb %bl
orb %al, %bl
testb $0x1, %bl
jne 0x1fd0dc
cmpl %r14d, %r15d
jae 0x1fd20d
leal 0x1(%r15), %ecx
addl %ebp, %r14d
movl %ecx, %edx
shrl %edx
movq 0x10(%rsp), %rsi
movl %r14d, (%rsi,%rdx,4)
movl %ecx, %r14d
incl %ebp
movl %eax, %ebx
addl $-0x1, %r15d
jb 0x1fd089
movq 0x8(%rsp), %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0xed7bf
movq (%r15), %r11
movq %r11, %rdx
addq $0x100, %rdx            # imm = 0x100
movl $0x1, %eax
subl %r11d, %eax
leal -0x1(%r11), %ecx
addq 0x38(%r15), %rcx
movb $0x1, %r9b
movl %r11d, %edi
movq %rdx, %r10
movzbl (%rcx), %r8d
leal 0xff(%rdi), %edx
cmpq $0xfe, %r8
cmovbq %r8, %rdx
movb $0x1, %r8b
cmpq %r10, %rdx
jb 0x1fd148
sete %r8b
andb %r9b, %r8b
leal -0x1(%rdi), %r10d
notb %r9b
orb %r8b, %r9b
testb $0x1, %r9b
je 0x1fd15d
movl %r11d, %edi
jmp 0x1fd173
cmpl %r11d, %r10d
jae 0x1fd212
addl %eax, %r11d
movl %edi, %r9d
shrl %r9d
movl %r11d, (%rsi,%r9,4)
incl %eax
decq %rcx
movl %edi, %r11d
movl %r10d, %edi
movl %r8d, %r9d
testl %r10d, %r10d
jne 0x1fd121
jmp 0x1fd1fe
movq (%r15), %r11
movq %r11, %rcx
addq $0x100, %rcx            # imm = 0x100
movl $0x1, %eax
subl %r11d, %eax
leal -0x1(%r11), %edx
shlq $0x2, %rdx
addq 0x38(%r15), %rdx
movb $0x1, %r9b
movl %r11d, %edi
movq %rcx, %r10
movl (%rdx), %ecx
movb $0x1, %r8b
cmpq %rcx, %r10
ja 0x1fd1c3
sete %r8b
andb %r9b, %r8b
leal -0x1(%rdi), %r10d
notb %r9b
orb %r8b, %r9b
testb $0x1, %r9b
je 0x1fd1d8
movl %r11d, %edi
jmp 0x1fd1ea
cmpl %r11d, %r10d
jae 0x1fd21c
addl %eax, %r11d
movl %edi, %r9d
shrl %r9d
movl %r11d, (%rsi,%r9,4)
incl %eax
addq $-0x4, %rdx
movl %edi, %r11d
movl %r10d, %edi
movl %r8d, %r9d
testl %r10d, %r10d
jne 0x1fd1af
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x7ca5c
callq 0x7c9ea
callq 0x7ca95
callq 0x7ca23