// File: /workspace/github_c_makefile_star2_O0/genometools[P]genometools/src/extended/linearalign.c
// Function: gt_linearalign_check_local
void gt_linearalign_check_local(GT_UNUSED bool forward,
                                const GtUchar *useq, GtUword ulen,
                                const GtUchar *vseq, GtUword vlen)
{
  GtAlignment *align;
  GtWord score1, score2, score3, score4,
         matchscore = 2, mismatchscore = -2, gapscore = -1;
  GtLinspaceManagement *spacemanager;
  GtScoreHandler *scorehandler;

  if (memchr(useq, LINEAR_EDIST_GAP,ulen) != NULL)
  {
    fprintf(stderr,"%s: sequence u contains gap symbol\n",__func__);
    exit(GT_EXIT_PROGRAMMING_ERROR);
  }
  if (memchr(vseq, LINEAR_EDIST_GAP,vlen) != NULL)
  {
    fprintf(stderr,"%s: sequence v contains gap symbol\n",__func__);
    exit(GT_EXIT_PROGRAMMING_ERROR);
  }
  scorehandler = gt_scorehandler_new(matchscore, mismatchscore, 0, gapscore);
  gt_scorehandler_plain(scorehandler);
  spacemanager = gt_linspace_management_new();
  align = gt_alignment_new();
  score1 = gt_linearalign_compute_local_generic(spacemanager, scorehandler,
                                                align, useq, 0, ulen,
                                                vseq, 0, vlen);

  score2 = gt_alignment_eval_with_score(align, true, matchscore,
                                        mismatchscore, gapscore);
  gt_linspace_management_delete(spacemanager);
  gt_scorehandler_delete(scorehandler);
  if (score1 != score2)
  {
    fprintf(stderr,"gt_linearalign_compute_local_generic = "GT_WD" != "GT_WD
            " = gt_alignment_eval_generic_with_score\n", score1, score2);
    exit(GT_EXIT_PROGRAMMING_ERROR);
  }

  gt_alignment_reset(align);
  score3 = gt_squarealign_calculate_local(NULL, align, useq, 0, ulen,
                                          vseq, 0, vlen, matchscore,
                                          mismatchscore, gapscore);

  if (score1 != score3)
  {
    fprintf(stderr,"gt_linearalign_compute_local_generic = "GT_WD" != "GT_WD
            " = gt_squarealign_calculate_local\n", score1, score3);
    exit(GT_EXIT_PROGRAMMING_ERROR);
  }

  score4 = gt_alignment_eval_with_score(align, true, matchscore,
                                        mismatchscore, gapscore);
  if (score3 != score4)
  {
    fprintf(stderr,"gt_squarealign_calculate_local = "GT_WD" != "GT_WD
            " = gt_alignment_eval_generic_with_score\n", score3, score4);
    exit(GT_EXIT_PROGRAMMING_ERROR);
  }
  gt_alignment_delete(align);
}

// Assembly:
pushq %rbx
subq $0xa0, %rsp
movb %dil, %al
andb $0x1, %al
movb %al, 0x9f(%rsp)
movq %rsi, 0x90(%rsp)
movq %rdx, 0x88(%rsp)
movq %rcx, 0x80(%rsp)
movq %r8, 0x78(%rsp)
movq $0x2, 0x48(%rsp)
movq $-0x2, 0x40(%rsp)
movq $-0x1, 0x38(%rsp)
movq 0x90(%rsp), %rdi
movq 0x88(%rsp), %rdx
movl $0xff, %esi
callq 0x197f0
cmpq $0x0, %rax
je 0x19d825
movq 0x49e79d(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3af93e(%rip), %rsi    # 0x54d14b
leaq 0x38574c(%rip), %rdx    # 0x522f60
movb $0x0, %al
callq 0x199f0
movl $0x2, %edi
callq 0x19890
movq 0x80(%rsp), %rdi
movq 0x78(%rsp), %rdx
movl $0xff, %esi
callq 0x197f0
cmpq $0x0, %rax
je 0x19d86b
movq 0x49e757(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x3af91c(%rip), %rsi    # 0x54d16f
leaq 0x385706(%rip), %rdx    # 0x522f60
movb $0x0, %al
callq 0x199f0
movl $0x2, %edi
callq 0x19890
movq 0x48(%rsp), %rdi
movq 0x40(%rsp), %rsi
movq 0x38(%rsp), %rcx
xorl %eax, %eax
movl %eax, %edx
callq 0x1d0fb0
movq %rax, 0x28(%rsp)
movq 0x28(%rsp), %rdi
callq 0x1d10b0
movb $0x0, %al
callq 0x1a2fe0
movq %rax, 0x30(%rsp)
callq 0x129e10
movq %rax, 0x70(%rsp)
movq 0x30(%rsp), %rdi
movq 0x28(%rsp), %rsi
movq 0x70(%rsp), %rdx
movq 0x90(%rsp), %rcx
movq 0x88(%rsp), %r9
movq 0x80(%rsp), %r10
movq 0x78(%rsp), %rax
xorl %r8d, %r8d
movq %r10, (%rsp)
movq $0x0, 0x8(%rsp)
movq %rax, 0x10(%rsp)
callq 0x19cc00
movq %rax, 0x68(%rsp)
movq 0x70(%rsp), %rdi
movq 0x48(%rsp), %rdx
movq 0x40(%rsp), %rcx
movq 0x38(%rsp), %r8
movl $0x1, %esi
callq 0x12a9d0
movq %rax, 0x60(%rsp)
movq 0x30(%rsp), %rdi
callq 0x1a3080
movq 0x28(%rsp), %rdi
callq 0x1d1150
movq 0x68(%rsp), %rax
cmpq 0x60(%rsp), %rax
je 0x19d962
movq 0x49e663(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
movq 0x68(%rsp), %rdx
movq 0x60(%rsp), %rcx
leaq 0x3bab26(%rip), %rsi    # 0x558477
movb $0x0, %al
callq 0x199f0
movl $0x2, %edi
callq 0x19890
movq 0x70(%rsp), %rdi
callq 0x12a560
movq 0x70(%rsp), %rsi
movq 0x90(%rsp), %rdx
movq 0x88(%rsp), %r8
movq 0x80(%rsp), %r9
movq 0x78(%rsp), %rbx
movq 0x48(%rsp), %r11
movq 0x40(%rsp), %r10
movq 0x38(%rsp), %rax
xorl %ecx, %ecx
movq %rcx, %rdi
movq $0x0, (%rsp)
movq %rbx, 0x8(%rsp)
movq %r11, 0x10(%rsp)
movq %r10, 0x18(%rsp)
movq %rax, 0x20(%rsp)
callq 0x1e1dc0
movq %rax, 0x58(%rsp)
movq 0x68(%rsp), %rax
cmpq 0x58(%rsp), %rax
je 0x19da00
movq 0x49e5c5(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
movq 0x68(%rsp), %rdx
movq 0x58(%rsp), %rcx
leaq 0x3baae2(%rip), %rsi    # 0x5584d1
movb $0x0, %al
callq 0x199f0
movl $0x2, %edi
callq 0x19890
movq 0x70(%rsp), %rdi
movq 0x48(%rsp), %rdx
movq 0x40(%rsp), %rcx
movq 0x38(%rsp), %r8
movl $0x1, %esi
callq 0x12a9d0
movq %rax, 0x50(%rsp)
movq 0x58(%rsp), %rax
cmpq 0x50(%rsp), %rax
je 0x19da5b
movq 0x49e56a(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
movq 0x58(%rsp), %rdx
movq 0x50(%rsp), %rcx
leaq 0x3baadb(%rip), %rsi    # 0x558525
movb $0x0, %al
callq 0x199f0
movl $0x2, %edi
callq 0x19890
movq 0x70(%rsp), %rdi
callq 0x12c3e0
addq $0xa0, %rsp
popq %rbx
retq
nop