// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/ft-front-generation.c
// Function: front_trace_add_gen
void front_trace_add_gen(GtFrontTrace *front_trace,GtUword trimleft,
                         GtUword valid)
{
  gt_assert (front_trace != NULL);
  if (front_trace->gen_nextfree >= front_trace->gen_allocated)
  {
    front_trace->gen_allocated
      = front_trace->gen_allocated * 1.2 + 128UL;
    front_trace->gen_table
      = gt_realloc(front_trace->gen_table,
                   sizeof *front_trace->gen_table * front_trace->gen_allocated);
    gt_assert(front_trace->gen_table != NULL);
  }
#ifdef WITHDISTRIBUTION
  distribution_add(front_trace->valid_dist,valid);
#endif
  if (front_trace->gen_nextfree > 0)
  {
    GtUword trimleft_diff;

    gt_assert(front_trace->previoustrimleft <= trimleft);
    trimleft_diff = trimleft - front_trace->previoustrimleft;
#ifdef WITHDISTRIBUTION
    distribution_add(front_trace->trimleft_diff_dist,trimleft_diff);
#endif
    gt_assert(trimleft_diff <= GT_FRONTGENERATION_VALUE_MAX);
    front_trace->gen_table[front_trace->gen_nextfree].trimleft_diff
      = trimleft_diff;
  } else
  {
    front_trace->gen_table[front_trace->gen_nextfree].trimleft_diff = 0;
  }
  front_trace->previoustrimleft = trimleft;
  gt_assert(front_trace->gen_nextfree < front_trace->gen_allocated);
  gt_assert(valid <= GT_FRONTGENERATION_VALUE_MAX);
  front_trace->gen_table[front_trace->gen_nextfree++].valid = valid;
}

// Assembly:
subq $0x28, %rsp
movq %rdi, 0x20(%rsp)
movq %rsi, 0x18(%rsp)
movq %rdx, 0x10(%rsp)
cmpq $0x0, 0x20(%rsp)
jne 0x4c6a23
movq 0x1755ae(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4f617(%rip), %rsi     # 0x516013
leaq 0xb5f79(%rip), %rdx     # 0x57c97c
leaq 0xf20eb(%rip), %rcx     # 0x5b8af5
leaq 0xf20a2(%rip), %r8      # 0x5b8ab3
movl $0xa2, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4c6a25
movq 0x20(%rsp), %rax
movq 0x50(%rax), %rax
movq 0x20(%rsp), %rcx
cmpq 0x58(%rcx), %rax
jb 0x4c6b2b
movq 0x20(%rsp), %rax
movq 0x58(%rax), %xmm0
movaps 0x51ee2(%rip), %xmm1    # 0x518930
punpckldq %xmm1, %xmm0    # xmm0 = xmm0[0],xmm1[0],xmm0[1],xmm1[1]
movapd 0x51ee6(%rip), %xmm1    # 0x518940
subpd %xmm1, %xmm0
movaps %xmm0, %xmm1
unpckhpd %xmm0, %xmm0            # xmm0 = xmm0[1,1]
addsd %xmm1, %xmm0
movsd 0x522f7(%rip), %xmm1    # 0x518d68
mulsd %xmm1, %xmm0
movsd 0xb2b93(%rip), %xmm1    # 0x579610
addsd %xmm1, %xmm0
movaps %xmm0, %xmm1
cvttsd2si %xmm1, %rcx
movq %rcx, %rdx
sarq $0x3f, %rdx
movsd 0x522d8(%rip), %xmm1    # 0x518d70
subsd %xmm1, %xmm0
cvttsd2si %xmm0, %rax
andq %rdx, %rax
orq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x58(%rax)
movq 0x20(%rsp), %rax
movq 0x20(%rax), %rdi
movq 0x20(%rsp), %rax
movq 0x58(%rax), %rsi
shlq $0x2, %rsi
leaq 0xf1fe6(%rip), %rdx     # 0x5b8ab3
movl $0xa9, %ecx
callq 0xe8540
movq %rax, %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x20(%rax)
movq 0x20(%rsp), %rax
cmpq $0x0, 0x20(%rax)
jne 0x4c6b27
movq 0x1754aa(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4f513(%rip), %rsi     # 0x516013
leaq 0xf2002(%rip), %rdx     # 0x5b8b09
leaq 0xf1fe7(%rip), %rcx     # 0x5b8af5
leaq 0xf1f9e(%rip), %r8      # 0x5b8ab3
movl $0xaa, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4c6b29
jmp 0x4c6b2b
movq 0x20(%rsp), %rax
cmpq $0x0, 0x50(%rax)
jbe 0x4c6bff
jmp 0x4c6b3d
movq 0x20(%rsp), %rax
movq 0x60(%rax), %rax
cmpq 0x18(%rsp), %rax
jbe 0x4c6b85
movq 0x17544c(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4f4b5(%rip), %rsi     # 0x516013
leaq 0xf1fc3(%rip), %rdx     # 0x5b8b28
leaq 0xf1f89(%rip), %rcx     # 0x5b8af5
leaq 0xf1f40(%rip), %r8      # 0x5b8ab3
movl $0xb3, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4c6b87
movq 0x18(%rsp), %rax
movq 0x20(%rsp), %rcx
subq 0x60(%rcx), %rax
movq %rax, 0x8(%rsp)
cmpq $0xffff, 0x8(%rsp)      # imm = 0xFFFF
jbe 0x4c6bdd
movq 0x1753f4(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4f45d(%rip), %rsi     # 0x516013
leaq 0xf1f95(%rip), %rdx     # 0x5b8b52
leaq 0xf1f31(%rip), %rcx     # 0x5b8af5
leaq 0xf1ee8(%rip), %r8      # 0x5b8ab3
movl $0xb8, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4c6bdf
movq 0x8(%rsp), %rax
movw %ax, %dx
movq 0x20(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x50(%rcx), %rcx
movw %dx, (%rax,%rcx,4)
jmp 0x4c6c17
movq 0x20(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x20(%rsp), %rcx
movq 0x50(%rcx), %rcx
movw $0x0, (%rax,%rcx,4)
movq 0x18(%rsp), %rcx
movq 0x20(%rsp), %rax
movq %rcx, 0x60(%rax)
movq 0x20(%rsp), %rax
movq 0x50(%rax), %rax
movq 0x20(%rsp), %rcx
cmpq 0x58(%rcx), %rax
jb 0x4c6c71
movq 0x175360(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4f3c9(%rip), %rsi     # 0x516013
leaq 0xf1f2f(%rip), %rdx     # 0x5b8b80
leaq 0xf1e9d(%rip), %rcx     # 0x5b8af5
leaq 0xf1e54(%rip), %r8      # 0x5b8ab3
movl $0xc0, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4c6c73
jmp 0x4c6c75
cmpq $0xffff, 0x10(%rsp)     # imm = 0xFFFF
jbe 0x4c6cb8
movq 0x175319(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x4f382(%rip), %rsi     # 0x516013
leaq 0xf1f1f(%rip), %rdx     # 0x5b8bb7
leaq 0xf1e56(%rip), %rcx     # 0x5b8af5
leaq 0xf1e0d(%rip), %r8      # 0x5b8ab3
movl $0xc1, %r9d
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x4c6cba
movq 0x10(%rsp), %rax
movw %ax, %dx
movq 0x20(%rsp), %rax
movq 0x20(%rax), %rax
movq 0x20(%rsp), %rsi
movq 0x50(%rsi), %rcx
movq %rcx, %rdi
addq $0x1, %rdi
movq %rdi, 0x50(%rsi)
movw %dx, 0x2(%rax,%rcx,4)
addq $0x28, %rsp
retq
nopl (%rax)