// File: /workspace/github_c_makefile_star2_O1/genometools[P]genometools/src/match/sfx-diffcov.c
// Function: dc_processunsortedrange
static void dc_processunsortedrange(GtDifferencecover *dcov,
                                    GtUword blisbl,
                                    GtUword width,
                                    GtUword depth)
{
  GtDcPairsuffixptr pairelem;

  gt_assert(width >= 2UL && depth > 0);
  gt_assert(!dcov->firstwithnewdepth.defined ||
            (dcov->firstwithnewdepth.depth > 0 &&
             dcov->firstwithnewdepth.depth <= depth));
  if (dcov->firstwithnewdepth.defined &&
      dcov->firstwithnewdepth.depth == depth)
  {
    dcov->firstwithnewdepth.count++;
    dcov->firstwithnewdepth.totalwidth += width;
    if (dcov->firstwithnewdepth.maxwidth < width)
    {
      dcov->firstwithnewdepth.maxwidth = width;
    }
  } else
  {
    if (dcov->firstwithnewdepth.defined)
    {
      dc_showintervalsizes(dcov->firstwithnewdepth.count,
                           dcov->firstwithnewdepth.totalwidth,
                           dcov->effectivesamplesize,
                           dcov->firstwithnewdepth.maxwidth,
                           dcov->firstwithnewdepth.depth,
                           dcov->logger);
    } else
    {
      dcov->firstwithnewdepth.defined = true;
    }
    gt_logger_log(dcov->logger,"enter new level "GT_WU"",depth);
    dcov->firstwithnewdepth.blisbl = blisbl;
    dcov->firstwithnewdepth.width = width;
    dcov->firstwithnewdepth.depth = depth;
    dcov->firstwithnewdepth.count = 1UL;
    dcov->firstwithnewdepth.totalwidth = width;
    dcov->firstwithnewdepth.maxwidth = width;
  }
  pairelem.blisbl = blisbl;
  pairelem.width = width;
  gt_inl_dc_queue_add(dcov->rangestobesorted,pairelem,false);
  dcov->currentqueuesize++;
  if (dcov->maxqueuesize < dcov->currentqueuesize)
  {
    dcov->maxqueuesize = dcov->currentqueuesize;
  }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
cmpq $0x2, %rdx
jb 0x1f564b
movq %rcx, %r12
testq %rcx, %rcx
je 0x1f564b
movq %rdx, %r14
movq %rsi, %r13
movq %rdi, %rbx
movb 0xf8(%rdi), %al
cmpb $0x1, %al
jne 0x1f54d6
movq 0xf0(%rbx), %rcx
decq %rcx
cmpq %r12, %rcx
jae 0x1f5655
testb %al, %al
je 0x1f54d6
cmpq %r12, 0xf0(%rbx)
jne 0x1f542c
movdqu 0xd8(%rbx), %xmm0
movq %r14, %xmm1
movdqa 0x18b006(%rip), %xmm2   # 0x380410
punpcklqdq %xmm1, %xmm2    # xmm2 = xmm2[0],xmm1[0]
paddq %xmm0, %xmm2
movdqu %xmm2, 0xd8(%rbx)
cmpq %r14, 0xe8(%rbx)
jb 0x1f551c
jmp 0x1f5526
testb %al, %al
je 0x1f54d6
movq 0xd8(%rbx), %rcx
movq 0xe0(%rbx), %r8
movq 0xe8(%rbx), %r9
movq 0xf0(%rbx), %rdx
movq 0x140(%rbx), %rdi
movq %r8, %xmm0
movq 0x15b47c(%rip), %xmm2   # 0x3508e0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
movapd 0x15b480(%rip), %xmm3   # 0x3508f0
subpd %xmm3, %xmm0
movapd %xmm0, %xmm1
unpckhpd %xmm0, %xmm1            # xmm1 = xmm1[1],xmm0[1]
addsd %xmm0, %xmm1
movq %rcx, %xmm0
punpckldq %xmm2, %xmm0    # xmm0 = xmm0[0],xmm2[0],xmm0[1],xmm2[1]
subpd %xmm3, %xmm0
movapd %xmm0, %xmm4
unpckhpd %xmm0, %xmm4            # xmm4 = xmm4[1],xmm0[1]
addsd %xmm0, %xmm4
movapd %xmm1, %xmm0
mulsd 0x15d34b(%rip), %xmm1   # 0x3527f0
divsd %xmm4, %xmm0
movq 0x78(%rbx), %xmm4
punpckldq %xmm2, %xmm4    # xmm4 = xmm4[0],xmm2[0],xmm4[1],xmm2[1]
subpd %xmm3, %xmm4
movapd %xmm4, %xmm2
unpckhpd %xmm4, %xmm2            # xmm2 = xmm2[1],xmm4[1]
addsd %xmm4, %xmm2
divsd %xmm2, %xmm1
leaq 0x1cb50d(%rip), %rsi    # 0x3c09da
movb $0x2, %al
callq 0x10906e
jmp 0x1f54dd
movb $0x1, 0xf8(%rbx)
movq 0x140(%rbx), %rdi
leaq 0x1cb4db(%rip), %rsi    # 0x3c09c6
movq %r12, %rdx
xorl %eax, %eax
callq 0x10906e
movq %r13, 0xc8(%rbx)
movq %r14, 0xd0(%rbx)
movq %r12, 0xf0(%rbx)
movq $0x1, 0xd8(%rbx)
movq %r14, 0xe0(%rbx)
leaq 0xe8(%rbx), %rax
movq %r14, (%rax)
movq 0x100(%rbx), %r12
testq %r12, %r12
je 0x1f5650
movq 0x18(%r12), %r15
cmpq %r15, 0x20(%r12)
jne 0x1f55e6
movq %r13, (%rsp)
movl $0x400, %r13d           # imm = 0x400
cmpq %r13, %r15
cmovbq %r15, %r13
leaq (%r15,%r13), %rbp
movq (%r12), %rdi
movq %rbp, %rsi
shlq $0x4, %rsi
leaq 0x1ca9e3(%rip), %rdx    # 0x3bff50
movl $0xb5, %ecx
callq 0x1094e6
movq %rax, (%r12)
movq 0x8(%r12), %rdx
cmpq 0x10(%r12), %rdx
jne 0x1f565a
testq %r15, %r15
je 0x1f565f
movq 0x18(%r12), %rax
leaq -0x1(%rax), %rcx
cmpq %rdx, %rcx
jbe 0x1f55d5
shlq $0x4, %rax
movq %r13, %rsi
shlq $0x4, %rsi
movq (%r12), %rdx
leaq (%rax,%rdx), %rdi
addq $-0x10, %rdi
movdqu -0x10(%rax,%rdx), %xmm0
movdqu %xmm0, (%rsi,%rdi)
decq %rcx
movq 0x8(%r12), %rdx
addq $-0x10, %rax
cmpq %rdx, %rcx
ja 0x1f55ad
addq %r13, %rdx
movq %rdx, 0x8(%r12)
movq %rbp, 0x18(%r12)
movq (%rsp), %r13
incq 0x20(%r12)
movq (%r12), %rax
movq 0x8(%r12), %rcx
shlq $0x4, %rcx
movq %r13, (%rax,%rcx)
movq %r14, 0x8(%rax,%rcx)
movq 0x8(%r12), %rax
testq %rax, %rax
jne 0x1f5610
movq 0x18(%r12), %rax
decq %rax
movq %rax, 0x8(%r12)
movq 0xa8(%rbx), %rax
movq 0xb0(%rbx), %rcx
incq %rax
movq %rax, 0xa8(%rbx)
cmpq %rax, %rcx
jae 0x1f563c
movq %rax, 0xb0(%rbx)
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x7a18e
callq 0x7a272
callq 0x7a1c7
callq 0x7a200
callq 0x7a239