// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/sfx-diffcov.c
// Function: dc_sortremainingsamples
static void dc_sortremainingsamples(GtDifferencecover *dcov)
{
  GtDcPairsuffixptr *pairptr;

  if (dcov->firstgenerationcount > 0)
  {
    dc_showintervalsizes(dcov->firstgenerationcount,
                         dcov->firstgenerationtotalwidth,
                         dcov->effectivesamplesize,
                         dcov->allocateditvinfo,
                         dcov->currentdepth,
                         dcov->logger);
  }
  if (dcov->inversesuftab == NULL)
  { /* now maxdepth > prefixlength */
    dc_initinversesuftabspecials(dcov);
    dc_initinversesuftabnonspecials(dcov);
  } else
  {
    gt_assert(dcov->firstgeneration.nextfreeGtDcPairsuffixptr == 0);
  }
  for (pairptr = dcov->firstgeneration.spaceGtDcPairsuffixptr;
       pairptr < dcov->firstgeneration.spaceGtDcPairsuffixptr +
                 dcov->firstgeneration.nextfreeGtDcPairsuffixptr;
       pairptr++)
  {
    dc_anchorleftmost(dcov,pairptr->blisbl,pairptr->width);
  }
  for (pairptr = dcov->firstgeneration.spaceGtDcPairsuffixptr;
       pairptr < dcov->firstgeneration.spaceGtDcPairsuffixptr +
                 dcov->firstgeneration.nextfreeGtDcPairsuffixptr;
       pairptr++)
  {
    dc_sortsuffixesonthislevel(dcov,pairptr->blisbl, pairptr->width);
  }
  GT_FREEARRAY(&dcov->firstgeneration,GtDcPairsuffixptr);
  while (!gt_inl_dc_queue_isempty(dcov->rangestobesorted))
  {
    GtDcPairsuffixptr thispair;
    thispair = gt_inl_dc_queue_get(dcov->rangestobesorted);
    gt_assert(dcov->currentqueuesize > 0);
    dcov->currentqueuesize--;
    dc_sortsuffixesonthislevel(dcov,thispair.blisbl,thispair.width);
  }
  gt_logger_log(dcov->logger,"maxqueuesize="GT_WU"",dcov->maxqueuesize);
  gt_free(dcov->itvinfo);
  dcov->itvinfo = NULL;
  gt_inl_dc_queue_delete(dcov->rangestobesorted);
  dcov->rangestobesorted = NULL;
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq 0x30(%rsp), %rax
cmpq $0x0, 0x138(%rax)
jbe 0x2c33e2
movq 0x30(%rsp), %rax
movq 0x138(%rax), %rdi
movq 0x30(%rsp), %rax
movq 0x130(%rax), %rsi
movq 0x30(%rsp), %rax
movq 0x78(%rax), %rdx
movq 0x30(%rsp), %rax
movq 0xa0(%rax), %rcx
movq 0x30(%rsp), %rax
movq 0xb8(%rax), %r8
movq 0x30(%rsp), %rax
movq 0x140(%rax), %r9
callq 0x2c4b50
movq 0x30(%rsp), %rax
cmpq $0x0, 0x98(%rax)
jne 0x2c3407
movq 0x30(%rsp), %rdi
callq 0x2c2930
movq 0x30(%rsp), %rdi
callq 0x2c5000
jmp 0x2c3454
jmp 0x2c3409
movq 0x30(%rsp), %rax
cmpq $0x0, 0x120(%rax)
je 0x2c3450
movq 0x378b81(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x252bea(%rip), %rsi    # 0x516013
leaq 0x2c6f84(%rip), %rdx    # 0x58a3b4
leaq 0x2c6fb2(%rip), %rcx    # 0x58a3e9
leaq 0x2c637d(%rip), %r8     # 0x5897bb
movl $0x476, %r9d            # imm = 0x476
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2c3452
jmp 0x2c3454
movq 0x30(%rsp), %rax
movq 0x110(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rcx
movq 0x110(%rcx), %rcx
movq 0x30(%rsp), %rdx
movq 0x120(%rdx), %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
jae 0x2c34b9
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rax
movq (%rax), %rsi
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rdx
callq 0x2c4ae0
movq 0x28(%rsp), %rax
addq $0x10, %rax
movq %rax, 0x28(%rsp)
jmp 0x2c3465
movq 0x30(%rsp), %rax
movq 0x110(%rax), %rax
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rax
movq 0x30(%rsp), %rcx
movq 0x110(%rcx), %rcx
movq 0x30(%rsp), %rdx
movq 0x120(%rdx), %rdx
shlq $0x4, %rdx
addq %rdx, %rcx
cmpq %rcx, %rax
jae 0x2c351e
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rax
movq (%rax), %rsi
movq 0x28(%rsp), %rax
movq 0x8(%rax), %rdx
callq 0x2c4260
movq 0x28(%rsp), %rax
addq $0x10, %rax
movq %rax, 0x28(%rsp)
jmp 0x2c34ca
jmp 0x2c3520
movq 0x30(%rsp), %rax
cmpq $0x0, 0x110(%rax)
je 0x2c357c
movq 0x30(%rsp), %rax
movq 0x110(%rax), %rdi
leaq 0x2c6279(%rip), %rsi    # 0x5897bb
movl $0x486, %edx            # imm = 0x486
callq 0xe88c0
movq 0x30(%rsp), %rax
movq $0x0, 0x118(%rax)
movq 0x30(%rsp), %rax
movq $0x0, 0x120(%rax)
movq 0x30(%rsp), %rax
movq $0x0, 0x110(%rax)
jmp 0x2c357e
jmp 0x2c3580
movq 0x30(%rsp), %rax
movq 0x100(%rax), %rdi
callq 0x2c50a0
xorb $-0x1, %al
testb $0x1, %al
jne 0x2c359c
jmp 0x2c3644
movq 0x30(%rsp), %rax
movq 0x100(%rax), %rdi
callq 0x2c5110
movq %rax, 0x8(%rsp)
movq %rdx, 0x10(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x10(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x30(%rsp), %rax
cmpq $0x0, 0xa8(%rax)
ja 0x2c3612
movq 0x3789bf(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x252a28(%rip), %rsi    # 0x516013
leaq 0x2c6e0f(%rip), %rdx    # 0x58a401
leaq 0x2c6df0(%rip), %rcx    # 0x58a3e9
leaq 0x2c61bb(%rip), %r8     # 0x5897bb
movl $0x48b, %r9d            # imm = 0x48B
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x2c3614
movq 0x30(%rsp), %rax
movq 0xa8(%rax), %rcx
addq $-0x1, %rcx
movq %rcx, 0xa8(%rax)
movq 0x30(%rsp), %rdi
movq 0x18(%rsp), %rsi
movq 0x20(%rsp), %rdx
callq 0x2c4260
jmp 0x2c3580
movq 0x30(%rsp), %rax
movq 0x140(%rax), %rdi
movq 0x30(%rsp), %rax
movq 0xb0(%rax), %rdx
leaq 0x2c6db9(%rip), %rsi    # 0x58a41c
movb $0x0, %al
callq 0xe7cd0
movq 0x30(%rsp), %rax
movq 0x108(%rax), %rdi
leaq 0x2c613e(%rip), %rsi    # 0x5897bb
movl $0x490, %edx            # imm = 0x490
callq 0xe88c0
movq 0x30(%rsp), %rax
movq $0x0, 0x108(%rax)
movq 0x30(%rsp), %rax
movq 0x100(%rax), %rdi
callq 0x2c51e0
movq 0x30(%rsp), %rax
movq $0x0, 0x100(%rax)
addq $0x38, %rsp
retq
nopl (%rax)