// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/sfx-linlcp.c
// Function: gt_ENCSEQ_fill_right_of_partwidth
static GtUword *gt_ENCSEQ_fill_right_of_partwidth(
                               const GtCompactUlongStore *rightposinverse,
                               const GtEncseq *encseq,
                               GtReadmode readmode,
                               GtUword partwidth,
                               GtUword totallength)
{
  GtSpecialrangeiterator *sri;
  GtRange range;
  GtUword countlargeranges, *rightofpartwidth = NULL,
                nextrightofpartwidth = 0;

  countlargeranges = gt_encseq_realspecialranges(encseq);
  sri = gt_specialrangeiterator_new(encseq,
                                    GT_ISDIRREVERSE(readmode) ? false : true);
  while (gt_specialrangeiterator_next(sri, &range))
  {
    if (GT_ISDIRREVERSE(readmode))
    {
      gt_range_reverse(totallength, &range);
    }
    if (range.end < partwidth)
    {
      gt_assert(countlargeranges > 0);
      countlargeranges--;
    } else
    {
      if (rightofpartwidth == NULL)
      {
        size_t allocsize = sizeof (*rightofpartwidth) * countlargeranges;
        rightofpartwidth = gt_malloc(allocsize);
      }
      gt_assert(nextrightofpartwidth < countlargeranges);
      rightofpartwidth[nextrightofpartwidth++]
        = gt_compact_ulong_store_get(rightposinverse, range.end);
    }
  }
  gt_specialrangeiterator_delete(sri);
  return rightofpartwidth;
}

// Assembly:
subq $0x78, %rsp
movq %rdi, 0x70(%rsp)
movq %rsi, 0x68(%rsp)
movl %edx, 0x64(%rsp)
movq %rcx, 0x58(%rsp)
movq %r8, 0x50(%rsp)
movq $0x0, 0x28(%rsp)
movq $0x0, 0x20(%rsp)
movq 0x68(%rsp), %rdi
callq 0xb27b0
movq %rax, 0x30(%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x8(%rsp)
movb $0x1, %al
cmpl $0x1, 0x64(%rsp)
movb %al, 0x17(%rsp)
je 0x2c9440
cmpl $0x3, 0x64(%rsp)
sete %al
movb %al, 0x17(%rsp)
movq 0x8(%rsp), %rdi
movb 0x17(%rsp), %dl
movl $0x1, %eax
xorl %ecx, %ecx
testb $0x1, %dl
cmovnel %ecx, %eax
cmpl $0x0, %eax
setne %al
movzbl %al, %esi
andl $0x1, %esi
callq 0xaf650
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0xaf770
testb $0x1, %al
jne 0x2c9484
jmp 0x2c95ae
cmpl $0x1, 0x64(%rsp)
je 0x2c9492
cmpl $0x3, 0x64(%rsp)
jne 0x2c94a1
movq 0x50(%rsp), %rdi
leaq 0x38(%rsp), %rsi
callq 0xc2f20
movq 0x40(%rsp), %rax
cmpq 0x58(%rsp), %rax
jae 0x2c9504
jmp 0x2c94af
cmpq $0x0, 0x30(%rsp)
ja 0x2c94ef
movq 0x372ae2(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x24cb4b(%rip), %rsi    # 0x516013
leaq 0x2c18dc(%rip), %rdx    # 0x58adab
leaq 0x2c18ea(%rip), %rcx    # 0x58adc0
leaq 0x2c16a5(%rip), %r8     # 0x58ab82
movl $0x126, %r9d            # imm = 0x126
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2c94f1
movq 0x30(%rsp), %rax
addq $-0x1, %rax
movq %rax, 0x30(%rsp)
jmp 0x2c95a9
cmpq $0x0, 0x28(%rsp)
jne 0x2c9535
movq 0x30(%rsp), %rax
shlq $0x3, %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rdi
leaq 0x2c165c(%rip), %rsi    # 0x58ab82
movl $0x12d, %edx            # imm = 0x12D
callq 0xe80f0
movq %rax, 0x28(%rsp)
jmp 0x2c9537
movq 0x20(%rsp), %rax
cmpq 0x30(%rsp), %rax
jb 0x2c957b
movq 0x372a56(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x24cabf(%rip), %rsi    # 0x516013
leaq 0x2c1887(%rip), %rdx    # 0x58ade2
leaq 0x2c185e(%rip), %rcx    # 0x58adc0
leaq 0x2c1619(%rip), %r8     # 0x58ab82
movl $0x12f, %r9d            # imm = 0x12F
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2c957d
movq 0x70(%rsp), %rdi
movq 0x40(%rsp), %rsi
callq 0xa20c0
movq %rax, %rdx
movq 0x28(%rsp), %rax
movq 0x20(%rsp), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x20(%rsp)
movq %rdx, (%rax,%rcx,8)
jmp 0x2c946c
movq 0x48(%rsp), %rdi
callq 0xafc80
movq 0x28(%rsp), %rax
addq $0x78, %rsp
retq
nopw %cs:(%rax,%rax)