// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/match/ft-front-prune.c
// Function: gt_full_front_next_inplace
static void gt_full_front_next_inplace(GtFtFrontvalue *midfront,
                                       GtFtFrontvalue *lowfront,
                                       GtFtFrontvalue *highfront,
                                       const GtUchar *useq,
                                       GtUword ulen,
                                       const GtUchar *vseq,
                                       GtUword vlen)
{
  GtFtFrontvalue bestfront, insertion_value, replacement_value, *frontptr;

  insertion_value = *lowfront; /* from previous diag -(d-1) => -d => DELETION */
  bestfront = insertion_value;
  bestfront.row++;
  *lowfront = bestfront;
  lowfront->backreference = FT_EOP_DELETION;
  gt_full_front_prune_add_matches(midfront,lowfront,useq,ulen,vseq,vlen);

  replacement_value = *(lowfront+1);
  if (bestfront.row < replacement_value.row + 1)
  {
    bestfront = replacement_value;
    bestfront.backreference = FT_EOP_DELETION;
    bestfront.row++;
  } else
  {
    bestfront.backreference = FT_EOP_MISMATCH;
    if (bestfront.row == replacement_value.row + 1)
    {
      bestfront.backreference |= FT_EOP_DELETION;
    }
  }
  *(lowfront+1) = bestfront;
  gt_full_front_prune_add_matches(midfront,lowfront + 1,useq,ulen,vseq,vlen);
  for (frontptr = lowfront+2; frontptr <= highfront; frontptr++)
  {
    bestfront = insertion_value;
    bestfront.backreference = FT_EOP_INSERTION;
    if (frontptr <= highfront - 1)
    {
      if (bestfront.row < replacement_value.row + 1)
      {
        bestfront = replacement_value;
        bestfront.backreference = FT_EOP_MISMATCH;
        bestfront.row++;
      } else
      {
        if (bestfront.row == replacement_value.row + 1)
        {
          bestfront.backreference |= FT_EOP_MISMATCH;
        }
      }
    }
    if (frontptr <= highfront - 2)
    {
      if (bestfront.row < frontptr->row + 1)
      {
        bestfront = *frontptr;
        bestfront.backreference = FT_EOP_DELETION;
        bestfront.row++;
      } else
      {
        if (bestfront.row == frontptr->row + 1)
        {
          bestfront.backreference |= FT_EOP_DELETION;
        }
      }
    }
    if (frontptr < highfront)
    {
      insertion_value = replacement_value;
      replacement_value = *frontptr;
    }
    *frontptr = bestfront;
    gt_full_front_prune_add_matches(midfront,frontptr,useq,ulen,vseq,vlen);
  }
}

// Assembly:
subq $0x88, %rsp
movq 0x90(%rsp), %rax
movq %rdi, 0x80(%rsp)
movq %rsi, 0x78(%rsp)
movq %rdx, 0x70(%rsp)
movq %rcx, 0x68(%rsp)
movq %r8, 0x60(%rsp)
movq %r9, 0x58(%rsp)
movq 0x78(%rsp), %rax
movq (%rax), %rcx
movq %rcx, 0x28(%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x30(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x38(%rsp)
movq 0x28(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x50(%rsp)
movl 0x48(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x48(%rsp)
movq 0x78(%rsp), %rax
movq 0x40(%rsp), %rcx
movq %rcx, (%rax)
movq 0x48(%rsp), %rcx
movq %rcx, 0x8(%rax)
movq 0x50(%rsp), %rcx
movq %rcx, 0x10(%rax)
movq 0x78(%rsp), %rax
movb $0x4, 0x11(%rax)
movq 0x80(%rsp), %rdi
movq 0x78(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0x60(%rsp), %rcx
movq 0x58(%rsp), %r8
movq 0x90(%rsp), %r9
callq 0x4d0010
movq 0x78(%rsp), %rax
movq 0x18(%rax), %rcx
movq %rcx, 0x10(%rsp)
movq 0x20(%rax), %rcx
movq %rcx, 0x18(%rsp)
movq 0x28(%rax), %rax
movq %rax, 0x20(%rsp)
movl 0x48(%rsp), %eax
movl 0x18(%rsp), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
jae 0x4d0368
movq 0x10(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x50(%rsp)
movb $0x4, 0x51(%rsp)
movl 0x48(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x48(%rsp)
jmp 0x4d038a
movb $0x1, 0x51(%rsp)
movl 0x48(%rsp), %eax
movl 0x18(%rsp), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
jne 0x4d0388
movzbl 0x51(%rsp), %eax
orl $0x4, %eax
movb %al, 0x51(%rsp)
jmp 0x4d038a
movq 0x78(%rsp), %rax
movq 0x40(%rsp), %rcx
movq %rcx, 0x18(%rax)
movq 0x48(%rsp), %rcx
movq %rcx, 0x20(%rax)
movq 0x50(%rsp), %rcx
movq %rcx, 0x28(%rax)
movq 0x80(%rsp), %rdi
movq 0x78(%rsp), %rsi
addq $0x18, %rsi
movq 0x68(%rsp), %rdx
movq 0x60(%rsp), %rcx
movq 0x58(%rsp), %r8
movq 0x90(%rsp), %r9
callq 0x4d0010
movq 0x78(%rsp), %rax
addq $0x30, %rax
movq %rax, 0x8(%rsp)
movq 0x8(%rsp), %rax
cmpq 0x70(%rsp), %rax
ja 0x4d05a7
movq 0x28(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x30(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x38(%rsp), %rax
movq %rax, 0x50(%rsp)
movb $0x2, 0x51(%rsp)
movq 0x8(%rsp), %rax
movq 0x70(%rsp), %rcx
addq $-0x18, %rcx
cmpq %rcx, %rax
ja 0x4d0489
movl 0x48(%rsp), %eax
movl 0x18(%rsp), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
jae 0x4d046a
movq 0x10(%rsp), %rax
movq %rax, 0x40(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x48(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x50(%rsp)
movb $0x1, 0x51(%rsp)
movl 0x48(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x48(%rsp)
jmp 0x4d0487
movl 0x48(%rsp), %eax
movl 0x18(%rsp), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
jne 0x4d0485
movzbl 0x51(%rsp), %eax
orl $0x1, %eax
movb %al, 0x51(%rsp)
jmp 0x4d0487
jmp 0x4d0489
movq 0x8(%rsp), %rax
movq 0x70(%rsp), %rcx
addq $-0x30, %rcx
cmpq %rcx, %rax
ja 0x4d0503
movl 0x48(%rsp), %eax
movq 0x8(%rsp), %rcx
movl 0x8(%rcx), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
jae 0x4d04e0
movq 0x8(%rsp), %rax
movq (%rax), %rcx
movq %rcx, 0x40(%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x48(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x50(%rsp)
movb $0x4, 0x51(%rsp)
movl 0x48(%rsp), %eax
addl $0x1, %eax
movl %eax, 0x48(%rsp)
jmp 0x4d0501
movl 0x48(%rsp), %eax
movq 0x8(%rsp), %rcx
movl 0x8(%rcx), %ecx
addl $0x1, %ecx
cmpl %ecx, %eax
jne 0x4d04ff
movzbl 0x51(%rsp), %eax
orl $0x4, %eax
movb %al, 0x51(%rsp)
jmp 0x4d0501
jmp 0x4d0503
movq 0x8(%rsp), %rax
cmpq 0x70(%rsp), %rax
jae 0x4d054c
movq 0x10(%rsp), %rax
movq %rax, 0x28(%rsp)
movq 0x18(%rsp), %rax
movq %rax, 0x30(%rsp)
movq 0x20(%rsp), %rax
movq %rax, 0x38(%rsp)
movq 0x8(%rsp), %rax
movq (%rax), %rcx
movq %rcx, 0x10(%rsp)
movq 0x8(%rax), %rcx
movq %rcx, 0x18(%rsp)
movq 0x10(%rax), %rax
movq %rax, 0x20(%rsp)
movq 0x8(%rsp), %rax
movq 0x40(%rsp), %rcx
movq %rcx, (%rax)
movq 0x48(%rsp), %rcx
movq %rcx, 0x8(%rax)
movq 0x50(%rsp), %rcx
movq %rcx, 0x10(%rax)
movq 0x80(%rsp), %rdi
movq 0x8(%rsp), %rsi
movq 0x68(%rsp), %rdx
movq 0x60(%rsp), %rcx
movq 0x58(%rsp), %r8
movq 0x90(%rsp), %r9
callq 0x4d0010
movq 0x8(%rsp), %rax
addq $0x18, %rax
movq %rax, 0x8(%rsp)
jmp 0x4d03e5
addq $0x88, %rsp
retq
nop