// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/randomcodes-hpcorrect.c
// Function: gt_randomcodes_hpcorrect_cluster
static GtUword gt_randomcodes_hpcorrect_cluster(bool *allidentical,
    GtUword nofsuffixes, GtRandomcodesHpcorrectData *sdata)
{
  GtUword nofclusters;
  gt_assert(allidentical != NULL);
  if (sdata->pw_scores != NULL)
  {
    size_t nofpairs = GT_STRICT_TRIANGULAR_SIZE(nofsuffixes),
           quantile_pos = (nofpairs * sdata->quantile) / 100UL;
    if (quantile_pos > 0)
      quantile_pos -= 1;
    gt_assert(quantile_pos < nofpairs);
    gt_randomcodes_hpcorrect_fill_pw_scores_matrix(nofsuffixes, sdata);
    memcpy(sdata->pw_scores_copy, sdata->pw_scores,
        sizeof (sdata->pw_scores) * nofpairs);
    qsort(sdata->pw_scores_copy, nofpairs, sizeof (sdata->pw_scores_copy),
          gt_rchc_score_t_cmp);
    sdata->clustering_minscore = sdata->pw_scores_copy[quantile_pos];
  }
  nofclusters = sdata->union_find != NULL
    ? gt_randomcodes_hpcorrect_cluster_union_find(allidentical, nofsuffixes,
        sdata->clustering_minscore, sdata)
    : gt_randomcodes_hpcorrect_cluster_greedy(allidentical, nofsuffixes,
        sdata->clustering_minscore, sdata);
#ifdef GT_RANDOMCODES_HPCORRECT_VERBOSE
    gt_file_xprintf(sdata->outfile,
        "# nsfx:\t"GT_WU"\tncls:\t"GT_WU"\n", nofsuffixes, nofclusters);
#endif
#ifdef GT_RANDOMCODES_HPCORRECT_DEBUG
  if (sdata->pw_scores != NULL)
    gt_randomcodes_hpcorrect_show_pw_scores(nofsuffixes, sdata);
#endif
  return nofclusters;
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
cmpq $0x0, 0x30(%rsp)
jne 0x342e63
movq 0x2b9196(%rip), %rax    # 0x5fbfc8
movq (%rax), %rdi
leaq 0x1b8761(%rip), %rsi    # 0x4fb59d
leaq 0x2146fe(%rip), %rdx    # 0x557541
leaq 0x21470c(%rip), %rcx    # 0x557556
leaq 0x21458b(%rip), %r8     # 0x5573dc
movl $0x345, %r9d            # imm = 0x345
movb $0x0, %al
callq 0x33960
callq 0x2f830
jmp 0x342e65
movq 0x20(%rsp), %rax
cmpq $0x0, 0xa8(%rax)
je 0x342f8b
movq 0x28(%rsp), %rax
movq 0x28(%rsp), %rcx
subq $0x1, %rcx
imulq %rcx, %rax
shrq %rax
movq %rax, 0x10(%rsp)
movq 0x10(%rsp), %rax
movq 0x20(%rsp), %rcx
movl 0xb8(%rcx), %ecx
imulq %rcx, %rax
movl $0x64, %ecx
xorl %edx, %edx
divq %rcx
movq %rax, 0x8(%rsp)
cmpq $0x0, 0x8(%rsp)
jbe 0x342ecb
movq 0x8(%rsp), %rax
subq $0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0x342ecd
movq 0x8(%rsp), %rax
cmpq 0x10(%rsp), %rax
jb 0x342f11
movq 0x2b90e8(%rip), %rax    # 0x5fbfc8
movq (%rax), %rdi
leaq 0x1b86b3(%rip), %rsi    # 0x4fb59d
leaq 0x214686(%rip), %rdx    # 0x557577
leaq 0x21465e(%rip), %rcx    # 0x557556
leaq 0x2144dd(%rip), %r8     # 0x5573dc
movl $0x34c, %r9d            # imm = 0x34C
movb $0x0, %al
callq 0x33960
callq 0x2f830
jmp 0x342f13
movq 0x28(%rsp), %rdi
movq 0x20(%rsp), %rsi
callq 0x343210
movq 0x20(%rsp), %rax
movq 0xb0(%rax), %rdi
movq 0x20(%rsp), %rax
movq 0xa8(%rax), %rsi
movq 0x10(%rsp), %rdx
shlq $0x3, %rdx
callq 0x33ca0
movq 0x20(%rsp), %rax
movq 0xb0(%rax), %rdi
movq 0x10(%rsp), %rsi
movl $0x8, %edx
leaq 0x3fb(%rip), %rcx       # 0x343360
callq 0x32660
movq 0x20(%rsp), %rax
movq 0xb0(%rax), %rax
movq 0x8(%rsp), %rcx
movq (%rax,%rcx,8), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x80(%rax)
movq 0x20(%rsp), %rax
cmpq $0x0, 0x98(%rax)
je 0x342fc0
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x20(%rsp), %rax
movq 0x80(%rax), %rdx
movq 0x20(%rsp), %rcx
callq 0x3433c0
movq %rax, (%rsp)
jmp 0x342fe4
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x20(%rsp), %rax
movq 0x80(%rax), %rdx
movq 0x20(%rsp), %rcx
callq 0x3437b0
movq %rax, (%rsp)
movq (%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x18(%rsp), %rax
addq $0x38, %rsp
retq
nopw (%rax,%rax)