// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/esa-maxpairs.c
// Function: collectmaxfreqintervals
static int collectmaxfreqintervals(void *data,const Lcpinterval *lcpitv)
{
  GtMaxfreqcollect *maxfreqcollect = (GtMaxfreqcollect *) data;

  if (lcpitv->offset >= (GtUword) maxfreqcollect->userdefinedleastlength)
  {
    gt_assert(lcpitv->left <= lcpitv->right);
    if (lcpitv->right - lcpitv->left - 1 >= maxfreqcollect->maxfreq)
    {
      Lcpinterval *lcpitvptr;

      GT_GETNEXTFREEINARRAY(lcpitvptr,&maxfreqcollect->arr,Lcpinterval,
                            maxfreqcollect->arr.allocatedLcpinterval * 0.2 +
                            1024UL);
      *lcpitvptr = *lcpitv;
    }
  }
  return 0;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x18(%rsp), %rax
movq (%rax), %rax
movq 0x10(%rsp), %rcx
movl (%rcx), %ecx
cmpq %rcx, %rax
jb 0x2364eb
jmp 0x2362d2
movq 0x18(%rsp), %rax
movq 0x8(%rax), %rax
movq 0x18(%rsp), %rcx
cmpq 0x10(%rcx), %rax
jbe 0x23631e
movq 0x405cb3(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2dfd1c(%rip), %rsi    # 0x516013
leaq 0x340c54(%rip), %rdx    # 0x576f52
leaq 0x340c6b(%rip), %rcx    # 0x576f70
leaq 0x340a34(%rip), %r8     # 0x576d40
movl $0x241, %r9d            # imm = 0x241
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x236320
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x18(%rsp), %rcx
subq 0x8(%rcx), %rax
subq $0x1, %rax
movq 0x10(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jb 0x2364e9
jmp 0x236347
jmp 0x236349
movq 0x10(%rsp), %rax
movq 0x20(%rax), %rax
addq $0x0, %rax
movq 0x10(%rsp), %rcx
cmpq 0x18(%rcx), %rax
jb 0x236456
movq 0x10(%rsp), %rax
movq 0x18(%rax), %xmm0
movaps 0x2e25ba(%rip), %xmm1   # 0x518930
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x2e25be(%rip), %xmm1   # 0x518940
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd 0x33bb67(%rip), %xmm1   # 0x571f00
mulsd %xmm1, %xmm0
movsd 0x2ea713(%rip), %xmm1   # 0x520ab8
addsd %xmm1, %xmm0
movaps %xmm0, %xmm1
cvttsd2si %xmm1, %rax
movq %rax, %rdx
sarq $0x3f, %rdx
movsd 0x2e29b0(%rip), %xmm1   # 0x518d70
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rcx
andq %rdx, %rcx
orq %rcx, %rax
movq %rax, (%rsp)
xorl %eax, %eax
cmpq (%rsp), %rax
jbe 0x236413
movq 0x405bbe(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2dfc27(%rip), %rsi    # 0x516013
leaq 0x2e2db4(%rip), %rdx    # 0x5191a7
leaq 0x340b76(%rip), %rcx    # 0x576f70
leaq 0x34093f(%rip), %r8     # 0x576d40
movl $0x248, %r9d            # imm = 0x248
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x236415
movq (%rsp), %rcx
movq 0x10(%rsp), %rax
addq 0x18(%rax), %rcx
movq %rcx, 0x18(%rax)
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rdi
movq 0x10(%rsp), %rax
imulq $0x18, 0x18(%rax), %rsi
leaq 0x340900(%rip), %rdx    # 0x576d40
movl $0x248, %ecx            # imm = 0x248
callq 0xe8540
movq %rax, %rcx
movq 0x10(%rsp), %rax
movq %rcx, 0x10(%rax)
jmp 0x236458
movq 0x10(%rsp), %rax
cmpq $0x0, 0x10(%rax)
jne 0x23649c
movq 0x405b35(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2dfb9e(%rip), %rsi    # 0x516013
leaq 0x340b0c(%rip), %rdx    # 0x576f88
leaq 0x340aed(%rip), %rcx    # 0x576f70
leaq 0x3408b6(%rip), %r8     # 0x576d40
movl $0x248, %r9d            # imm = 0x248
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x23649e
jmp 0x2364a0
movq 0x10(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x10(%rsp), %rdx
movq 0x20(%rdx), %rcx
movq %rcx, %rsi
addq $0x1, %rsi
movq %rsi, 0x20(%rdx)
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq 0x18(%rsp), %rcx
movq (%rcx), %rdx
movq %rdx, (%rax)
movq 0x8(%rcx), %rdx
movq %rdx, 0x8(%rax)
movq 0x10(%rcx), %rcx
movq %rcx, 0x10(%rax)
jmp 0x2364eb
xorl %eax, %eax
addq $0x28, %rsp
retq
nopw %cs:(%rax,%rax)