// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/randomcodes-hpcorrect.c
// Function: gt_randomcodes_hpcorrect_firstpass_cluster_right_extensions
static inline GtUword
  gt_randomcodes_hpcorrect_firstpass_cluster_right_extensions(
    const GtSeqnumrelpos *snrp, const GtUword *suffixes,
    GtUword nofsuffixes, GtRandomcodesHpcorrectData *sdata,
    GtUword clusternum)
{
  GtUword current_rextset = 0;
  GtUword i, relpos_i, seqnum_i, startpos_i, kmerpos_i,
                j, relpos_j, seqnum_j, startpos_j, kmerpos_j;
#ifdef GT_RANDOMCODES_HPCORRECT_DEBUG
  gt_file_xprintf(sdata->outfile, "# clusternum: "GT_WU", clustersize: "
                  GT_WU "\n", clusternum, sdata->cluster_size[clusternum]);
#endif
  for (i = 0; i < nofsuffixes; i++)
  {
    sdata->rextset[i] = GT_UNDEF_UWORD;
    sdata->rextset_size[i] = 0;
  }
  for (i = 0; i < nofsuffixes; i++)
  {
    if (GT_RANDOMCODES_HPCORRECT_CLUSTERNUM(sdata, i) != clusternum)
      continue;
    if (sdata->rextset[i] != GT_UNDEF_UWORD)
      continue;
    relpos_i = gt_seqnumrelpos_decode_relpos(snrp, suffixes[i]);
    seqnum_i = gt_seqnumrelpos_decode_seqnum(snrp, suffixes[i]);
    startpos_i = gt_encseq_seqstartpos(sdata->encseq, seqnum_i);
    kmerpos_i = startpos_i + relpos_i;
    for (j = i + 1; j < nofsuffixes; j++)
    {
      if (GT_RANDOMCODES_HPCORRECT_CLUSTERNUM(sdata, j) != clusternum)
        continue;
      if (sdata->rextset[j] != GT_UNDEF_UWORD)
        continue;
      relpos_j = gt_seqnumrelpos_decode_relpos(snrp, suffixes[j]);
      seqnum_j = gt_seqnumrelpos_decode_seqnum(snrp, suffixes[j]);
      startpos_j = gt_encseq_seqstartpos(sdata->encseq, seqnum_j);
      kmerpos_j = startpos_j + relpos_j;
      if (gt_randomcodes_hpcorrect_similar_rext(sdata, i, kmerpos_i, 0,
          j, kmerpos_j, 0, sdata->rext_cl_minscore))
      {
        sdata->rextset[j] = current_rextset;
        sdata->rextset_size[current_rextset]++;
      }
    }
    sdata->rextset[i] = current_rextset;
    sdata->rextset_size[current_rextset]++;
    current_rextset++;
  }
  gt_assert(current_rextset > 0);
  return current_rextset;
}

// Assembly:
subq $0xa8, %rsp
movq %rdi, 0xa0(%rsp)
movq %rsi, 0x98(%rsp)
movq %rdx, 0x90(%rsp)
movq %rcx, 0x88(%rsp)
movq %r8, 0x80(%rsp)
movq $0x0, 0x78(%rsp)
movq $0x0, 0x70(%rsp)
movq 0x70(%rsp), %rax
cmpq 0x90(%rsp), %rax
jae 0x344297
movq 0x88(%rsp), %rax
movq 0xd0(%rax), %rax
movq 0x70(%rsp), %rcx
movq $-0x1, (%rax,%rcx,8)
movq 0x88(%rsp), %rax
movq 0xd8(%rax), %rax
movq 0x70(%rsp), %rcx
movl $0x0, (%rax,%rcx,4)
movq 0x70(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x70(%rsp)
jmp 0x344241
movq $0x0, 0x70(%rsp)
movq 0x70(%rsp), %rax
cmpq 0x90(%rsp), %rax
jae 0x3445a6
movq 0x88(%rsp), %rax
cmpq $0x0, 0x98(%rax)
je 0x3442e5
movq 0x88(%rsp), %rax
movq 0x98(%rax), %rdi
movq 0x70(%rsp), %rsi
callq 0x28e550
movq %rax, 0x20(%rsp)
jmp 0x344302
movq 0x88(%rsp), %rax
movq 0x88(%rax), %rax
movq 0x70(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x20(%rsp)
movq 0x20(%rsp), %rax
cmpq 0x80(%rsp), %rax
je 0x344316
jmp 0x344593
movq 0x88(%rsp), %rax
movq 0xd0(%rax), %rax
movq 0x70(%rsp), %rcx
cmpq $-0x1, (%rax,%rcx,8)
je 0x344336
jmp 0x344593
movq 0xa0(%rsp), %rdi
movq 0x98(%rsp), %rax
movq 0x70(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x398350
movq %rax, 0x68(%rsp)
movq 0xa0(%rsp), %rdi
movq 0x98(%rsp), %rax
movq 0x70(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x398330
movq %rax, 0x60(%rsp)
movq 0x88(%rsp), %rax
movq (%rax), %rdi
movq 0x60(%rsp), %rsi
callq 0x31a00
movq %rax, 0x58(%rsp)
movq 0x58(%rsp), %rax
addq 0x68(%rsp), %rax
movq %rax, 0x50(%rsp)
movq 0x70(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x48(%rsp)
movq 0x48(%rsp), %rax
cmpq 0x90(%rsp), %rax
jae 0x34454b
movq 0x88(%rsp), %rax
cmpq $0x0, 0x98(%rax)
je 0x3443f8
movq 0x88(%rsp), %rax
movq 0x98(%rax), %rdi
movq 0x48(%rsp), %rsi
callq 0x28e550
movq %rax, 0x18(%rsp)
jmp 0x344415
movq 0x88(%rsp), %rax
movq 0x88(%rax), %rax
movq 0x48(%rsp), %rcx
movq (%rax,%rcx,8), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
cmpq 0x80(%rsp), %rax
je 0x344429
jmp 0x344538
movq 0x88(%rsp), %rax
movq 0xd0(%rax), %rax
movq 0x48(%rsp), %rcx
cmpq $-0x1, (%rax,%rcx,8)
je 0x344449
jmp 0x344538
movq 0xa0(%rsp), %rdi
movq 0x98(%rsp), %rax
movq 0x48(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x398350
movq %rax, 0x40(%rsp)
movq 0xa0(%rsp), %rdi
movq 0x98(%rsp), %rax
movq 0x48(%rsp), %rcx
movq (%rax,%rcx,8), %rsi
callq 0x398330
movq %rax, 0x38(%rsp)
movq 0x88(%rsp), %rax
movq (%rax), %rdi
movq 0x38(%rsp), %rsi
callq 0x31a00
movq %rax, 0x30(%rsp)
movq 0x30(%rsp), %rax
addq 0x40(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x88(%rsp), %rdi
movq 0x70(%rsp), %rsi
movq 0x50(%rsp), %rdx
movq 0x48(%rsp), %r8
movq 0x28(%rsp), %r9
movq 0x88(%rsp), %rax
movq 0xe0(%rax), %rax
xorl %ecx, %ecx
movl $0x0, (%rsp)
movq %rax, 0x8(%rsp)
callq 0x344ff0
testb $0x1, %al
jne 0x3444fc
jmp 0x344536
movq 0x78(%rsp), %rdx
movq 0x88(%rsp), %rax
movq 0xd0(%rax), %rax
movq 0x48(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x88(%rsp), %rax
movq 0xd8(%rax), %rax
movq 0x78(%rsp), %rcx
movl (%rax,%rcx,4), %edx
addl $0x1, %edx
movl %edx, (%rax,%rcx,4)
jmp 0x344538
movq 0x48(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x48(%rsp)
jmp 0x3443b3
movq 0x78(%rsp), %rdx
movq 0x88(%rsp), %rax
movq 0xd0(%rax), %rax
movq 0x70(%rsp), %rcx
movq %rdx, (%rax,%rcx,8)
movq 0x88(%rsp), %rax
movq 0xd8(%rax), %rax
movq 0x78(%rsp), %rcx
movl (%rax,%rcx,4), %edx
addl $0x1, %edx
movl %edx, (%rax,%rcx,4)
movq 0x78(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x78(%rsp)
movq 0x70(%rsp), %rax
addq $0x1, %rax
movq %rax, 0x70(%rsp)
jmp 0x3442a0
jmp 0x3445a8
cmpq $0x0, 0x78(%rsp)
ja 0x3445e8
movq 0x2b7a11(%rip), %rax    # 0x5fbfc8
movq (%rax), %rdi
leaq 0x1b6fdc(%rip), %rsi    # 0x4fb59d
leaq 0x21310b(%rip), %rdx    # 0x5576d3
leaq 0x213118(%rip), %rcx    # 0x5576e7
leaq 0x212e06(%rip), %r8     # 0x5573dc
movl $0x2d0, %r9d            # imm = 0x2D0
movb $0x0, %al
callq 0x33960
callq 0x2f830
jmp 0x3445ea
movq 0x78(%rsp), %rax
addq $0xa8, %rsp
retq
nopw (%rax,%rax)