// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/ft-front-prune.c
// Function: front_prune_add_matches
static void inline front_prune_add_matches(
                                  GtLongestCommonFunc ft_longest_common,
                                  GtFtFrontvalue *midfront,
                                  GtFtFrontvalue *fv,
                                  GtUword max_history,
                                  GtFtSequenceObject *useq,
                                  GtFtSequenceObject *vseq,
                                  GtFtTrimstat *trimstat)
{
  fv->localmatch_count
    = (GtFtRowvaluetype)ft_longest_common(useq,fv->row,
                                          vseq,fv->row + GT_FRONT_DIAGONAL(fv));
  if (fv->localmatch_count > 0)
  {
    const uint64_t match_mask
      = (fv->localmatch_count >= max_history)
           ? ~((uint64_t) 0)
           : ((((uint64_t) 1) << fv->localmatch_count) - 1);
    fv->matchhistory_bits = (fv->matchhistory_bits << fv->localmatch_count) |
                            match_mask;
    if (fv->matchhistory_size < max_history)
    {
      fv->matchhistory_size = GT_MIN(fv->matchhistory_size
                                       + fv->localmatch_count,
                                     max_history);
    }
    fv->row += fv->localmatch_count;
  }
  if (trimstat != NULL)
  {
    gt_ft_trimstat_add_matchlength(trimstat,fv->localmatch_count);
  }
}

// Assembly:
subq $0x58, %rsp
movq 0x60(%rsp), %rax
movq %rdi, 0x50(%rsp)
movq %rsi, 0x48(%rsp)
movq %rdx, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
movq %r8, 0x30(%rsp)
movq %r9, 0x28(%rsp)
movq 0x50(%rsp), %rax
movq %rax, 0x18(%rsp)
movq 0x30(%rsp), %rdi
movq 0x40(%rsp), %rax
movl 0x8(%rax), %eax
movl %eax, %esi
movq 0x28(%rsp), %rax
movq %rax, 0x10(%rsp)
movq 0x40(%rsp), %rax
movl 0x8(%rax), %eax
movl %eax, %ecx
movq 0x40(%rsp), %rax
movq 0x48(%rsp), %rdx
subq %rdx, %rax
movl $0x18, %r8d
cqto
idivq %r8
movq 0x10(%rsp), %rdx
movq %rax, %r8
movq 0x18(%rsp), %rax
addq %r8, %rcx
callq *%rax
movl %eax, %ecx
movq 0x40(%rsp), %rax
movl %ecx, 0xc(%rax)
movq 0x40(%rsp), %rax
cmpl $0x0, 0xc(%rax)
jbe 0x4cebe9
movq 0x40(%rsp), %rax
movl 0xc(%rax), %eax
cmpq 0x38(%rsp), %rax
jb 0x4ceb34
movq $-0x1, %rax
movq %rax, 0x8(%rsp)
jmp 0x4ceb4f
movq 0x40(%rsp), %rax
movl 0xc(%rax), %eax
movl %eax, %ecx
movl $0x1, %eax
shlq %cl, %rax
subq $0x1, %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
movq %rax, 0x20(%rsp)
movq 0x40(%rsp), %rax
movq (%rax), %rax
movq 0x40(%rsp), %rcx
movl 0xc(%rcx), %ecx
shlq %cl, %rax
movq %rax, %rcx
orq 0x20(%rsp), %rcx
movq 0x40(%rsp), %rax
movq %rcx, (%rax)
movq 0x40(%rsp), %rax
movzbl 0x10(%rax), %eax
cmpq 0x38(%rsp), %rax
jae 0x4cebd6
movq 0x40(%rsp), %rax
movzbl 0x10(%rax), %eax
movq 0x40(%rsp), %rcx
addl 0xc(%rcx), %eax
movl %eax, %eax
cmpq 0x38(%rsp), %rax
jae 0x4cebbf
movq 0x40(%rsp), %rax
movzbl 0x10(%rax), %eax
movq 0x40(%rsp), %rcx
addl 0xc(%rcx), %eax
movl %eax, %eax
movq %rax, (%rsp)
jmp 0x4cebc8
movq 0x38(%rsp), %rax
movq %rax, (%rsp)
movq (%rsp), %rax
movb %al, %cl
movq 0x40(%rsp), %rax
movb %cl, 0x10(%rax)
movq 0x40(%rsp), %rax
movl 0xc(%rax), %ecx
movq 0x40(%rsp), %rax
addl 0x8(%rax), %ecx
movl %ecx, 0x8(%rax)
cmpq $0x0, 0x60(%rsp)
je 0x4cec03
movq 0x60(%rsp), %rdi
movq 0x40(%rsp), %rax
movl 0xc(%rax), %esi
callq 0x250100
addq $0x58, %rsp
retq
nopl (%rax,%rax)