// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/ft-front-prune.c
// Function: frontspace_allocate
static GtFtFrontvalue *frontspace_allocate(GtUword minsizeforshift,
                                       GtUword trimleft,
                                       GtUword valid,
                                       GtAllocatedMemory *fs)
{
  if (trimleft - fs->offset + valid >= fs->allocated)
  {
    fs->allocated = 255UL + GT_MAX(fs->allocated * 1.2,
                                           trimleft - fs->offset + valid);
    gt_assert(fs->allocated > trimleft - fs->offset + valid);
    fs->space = gt_realloc(fs->space,sizeof (GtFtFrontvalue) * fs->allocated);
    gt_assert(fs->space != NULL);
  }
  gt_assert(trimleft >= fs->offset);
  if (trimleft - fs->offset > GT_MAX(valid,minsizeforshift))
  {
    memcpy(fs->space,((GtFtFrontvalue *) fs->space) + trimleft - fs->offset,
           sizeof (GtFtFrontvalue) * valid);
    fs->offset = trimleft;
  }
  return ((GtFtFrontvalue *) fs->space) - fs->offset;
}

// Assembly:
subq $0x38, %rsp
movq %rdi, 0x30(%rsp)
movq %rsi, 0x28(%rsp)
movq %rdx, 0x20(%rsp)
movq %rcx, 0x18(%rsp)
movq 0x28(%rsp), %rax
movq 0x18(%rsp), %rcx
subq 0x8(%rcx), %rax
addq 0x20(%rsp), %rax
movq 0x18(%rsp), %rcx
cmpq 0x10(%rcx), %rax
jb 0x4ce98b
movq 0x18(%rsp), %rcx
movq 0x10(%rcx), %xmm0
movaps 0x4a195(%rip), %xmm3    # 0x518930
punpckldq %xmm3, %xmm0    # xmm0 = xmm0[0],xmm3[0],xmm0[1],xmm3[1]
movapd 0x4a199(%rip), %xmm2    # 0x518940
subpd %xmm2, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd 0x4a5aa(%rip), %xmm1    # 0x518d68
mulsd %xmm1, %xmm0
movq 0x28(%rsp), %rax
movq 0x8(%rcx), %rcx
subq %rcx, %rax
movq 0x20(%rsp), %rcx
addq %rcx, %rax
movq %rax, %xmm1
punpckldq %xmm3, %xmm1    # xmm1 = xmm1[0],xmm3[0],xmm1[1],xmm3[1]
subpd %xmm2, %xmm1
movaps %xmm1, %xmm2
unpckhpd %xmm1, %xmm1            # xmm1 = xmm1[1,1]
addsd %xmm2, %xmm1
ucomisd %xmm1, %xmm0
jbe 0x4ce834
movq 0x18(%rsp), %rax
movq 0x10(%rax), %xmm0
movaps 0x4a12b(%rip), %xmm1    # 0x518930
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x4a12f(%rip), %xmm1    # 0x518940
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd 0x4a540(%rip), %xmm1    # 0x518d68
mulsd %xmm1, %xmm0
movsd %xmm0, 0x10(%rsp)
jmp 0x4ce87a
movq 0x28(%rsp), %rax
movq 0x18(%rsp), %rcx
movq 0x8(%rcx), %rcx
subq %rcx, %rax
movq 0x20(%rsp), %rcx
addq %rcx, %rax
movq %rax, %xmm0
movaps 0x4a0d7(%rip), %xmm1    # 0x518930
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x4a0db(%rip), %xmm1    # 0x518940
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd %xmm0, 0x10(%rsp)
movsd 0x10(%rsp), %xmm0
movsd 0xeaa80(%rip), %xmm1    # 0x5b9308
addsd %xmm1, %xmm0
movaps %xmm0, %xmm1
cvttsd2si %xmm1, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
movsd 0x4a4cd(%rip), %xmm1    # 0x518d70
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
andq %rdx, %rax
orq %rax, %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x10(%rax)
movq 0x18(%rsp), %rax
movq 0x10(%rax), %rax
movq 0x28(%rsp), %rcx
movq 0x18(%rsp), %rdx
subq 0x8(%rdx), %rcx
addq 0x20(%rsp), %rcx
cmpq %rcx, %rax
ja 0x4ce914
movq 0x16d6bd(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x47726(%rip), %rsi     # 0x516013
leaq 0xead6c(%rip), %rdx     # 0x5b9660
leaq 0xead93(%rip), %rcx     # 0x5b968e
leaq 0xeaa50(%rip), %r8      # 0x5b9352
movl $0x236, %r9d            # imm = 0x236
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4ce916
movq 0x18(%rsp), %rax
movq (%rax), %rdi
movq 0x18(%rsp), %rax
imulq $0x18, 0x10(%rax), %rsi
leaq 0xeaa23(%rip), %rdx     # 0x5b9352
movl $0x237, %ecx            # imm = 0x237
callq 0xe8540
movq %rax, %rcx
movq 0x18(%rsp), %rax
movq %rcx, (%rax)
movq 0x18(%rsp), %rax
cmpq $0x0, (%rax)
jne 0x4ce987
movq 0x16d64a(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x476b3(%rip), %rsi     # 0x516013
leaq 0xead3b(%rip), %rdx     # 0x5b96a2
leaq 0xead20(%rip), %rcx     # 0x5b968e
leaq 0xea9dd(%rip), %r8      # 0x5b9352
movl $0x238, %r9d            # imm = 0x238
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4ce989
jmp 0x4ce98b
jmp 0x4ce98d
movq 0x28(%rsp), %rax
movq 0x18(%rsp), %rcx
cmpq 0x8(%rcx), %rax
jae 0x4ce9d5
movq 0x16d5fc(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x47665(%rip), %rsi     # 0x516013
leaq 0xeacff(%rip), %rdx     # 0x5b96b4
leaq 0xeacd2(%rip), %rcx     # 0x5b968e
leaq 0xea98f(%rip), %r8      # 0x5b9352
movl $0x23a, %r9d            # imm = 0x23A
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4ce9d7
movq 0x28(%rsp), %rax
movq 0x18(%rsp), %rcx
subq 0x8(%rcx), %rax
movq %rax, 0x8(%rsp)
movq 0x20(%rsp), %rax
cmpq 0x30(%rsp), %rax
jbe 0x4cea01
movq 0x20(%rsp), %rax
movq %rax, (%rsp)
jmp 0x4cea0a
movq 0x30(%rsp), %rax
movq %rax, (%rsp)
movq 0x8(%rsp), %rax
movq (%rsp), %rcx
cmpq %rcx, %rax
jbe 0x4cea5c
movq 0x18(%rsp), %rax
movq (%rax), %rdi
movq 0x18(%rsp), %rax
movq (%rax), %rsi
imulq $0x18, 0x28(%rsp), %rax
addq %rax, %rsi
movq 0x18(%rsp), %rcx
xorl %eax, %eax
subq 0x8(%rcx), %rax
imulq $0x18, %rax, %rax
addq %rax, %rsi
imulq $0x18, 0x20(%rsp), %rdx
callq 0x19610
movq 0x28(%rsp), %rcx
movq 0x18(%rsp), %rax
movq %rcx, 0x8(%rax)
movq 0x18(%rsp), %rax
movq (%rax), %rax
movq 0x18(%rsp), %rdx
xorl %ecx, %ecx
subq 0x8(%rdx), %rcx
imulq $0x18, %rcx, %rcx
addq %rcx, %rax
addq $0x38, %rsp
retq
nopl (%rax,%rax)