// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/querymatch.c
// Function: gt_querymatch_recompute_alignment
void gt_querymatch_recompute_alignment(GtQuerymatch *querymatch,
                                       const GtSeedExtendDisplayFlag
                                         *out_display_flag,
                                       bool match_has_cigar,
                                       bool dtrace,
                                       GtUword trace_delta,
                                       bool match_has_seed,
                                       const GtEncseq *db_encseq,
                                       const GtEncseq *query_encseq,
                                       const GtKarlinAltschulStat
                                         *karlin_altschul_stat,
                                       double evalue,
                                       double bitscore)
{
  GtSeqorEncseq db_seqorencseq, query_seqorencseq;

  GT_SEQORENCSEQ_INIT_ENCSEQ(&db_seqorencseq,db_encseq);
  GT_SEQORENCSEQ_INIT_ENCSEQ(&query_seqorencseq,query_encseq);
  if (match_has_cigar || trace_delta > 0)
  {
    if (querymatch->ref_querymatchoutoptions != NULL &&
        gt_querymatch_alignment_display(out_display_flag))
    {
      gt_querymatchoutoptions_extract_seq(querymatch->ref_querymatchoutoptions,
                                          &db_seqorencseq,
                                          querymatch->dbstart_relative,
                                          gt_querymatch_dbstart(querymatch),
                                          gt_querymatch_dblen(querymatch),
                                          querymatch->query_readmode,
                                          &query_seqorencseq,
                                          querymatch->querystart,
                                          querymatch->query_seqstart +
                                            querymatch->querystart_fwdstrand,
                                          gt_querymatch_querylen(querymatch),
                                          false);
    }
    if (querymatch->ref_eoplist != NULL && trace_delta > 0)
    {
      gt_eoplist_trace2cigar(querymatch->ref_eoplist,dtrace,trace_delta);
    }
  } else
  {
    if (match_has_seed)
    {
      gt_querymatch_seed_alignment(querymatch,&db_seqorencseq,
                                   &query_seqorencseq);
    } else
    {
      gt_querymatch_full_alignment(querymatch,&db_seqorencseq,
                                   &query_seqorencseq);
    }
  }
  if ((evalue == DBL_MAX || bitscore == DBL_MAX) &&
      karlin_altschul_stat != NULL)
  {
    gt_querymatch_evalue_bit_score(&evalue, &bitscore, karlin_altschul_stat,
                                   querymatch);
  }
  gt_querymatch_prettyprint(evalue,bitscore,out_display_flag,querymatch);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xa8, %rsp
movl %ecx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
xorb $0x1, %dl
movq 0xe8(%rsp), %rax
movq 0xe0(%rsp), %rcx
movsd %xmm0, 0x30(%rsp)
movsd %xmm1, 0x28(%rsp)
movq %rcx, 0x78(%rsp)
xorl %ecx, %ecx
movq %rcx, 0x70(%rsp)
movq %rcx, 0x80(%rsp)
pcmpeqd %xmm2, %xmm2
movdqu %xmm2, 0x88(%rsp)
movq %rcx, 0x98(%rsp)
movw $0x100, %si             # imm = 0x100
movw %si, 0xa0(%rsp)
movq %rax, 0x40(%rsp)
movq %rcx, 0x38(%rsp)
movq %rcx, 0x48(%rsp)
movdqu %xmm2, 0x50(%rsp)
movq %rcx, 0x60(%rsp)
movw %si, 0x68(%rsp)
testq %r8, %r8
sete %al
testb %dl, %al
movapd %xmm1, (%rsp)
movapd %xmm0, 0x10(%rsp)
jne 0x1bc4e6
movq %r8, %r15
cmpq $0x0, 0x90(%rbx)
je 0x1bc4af
movq %r14, %rdi
callq 0x1ba0f3
movapd 0x10(%rsp), %xmm0
movapd (%rsp), %xmm1
testb %al, %al
je 0x1bc4af
movq 0x90(%rbx), %rdi
movq 0x8(%rbx), %rdx
movq 0x10(%rbx), %r8
movq 0x20(%rbx), %rcx
addq %rdx, %rcx
movl 0x88(%rbx), %r9d
movq 0x38(%rbx), %rax
addq 0x50(%rbx), %rax
subq $0x8, %rsp
leaq 0x40(%rsp), %r10
leaq 0x78(%rsp), %rsi
pushq $0x0
pushq 0x40(%rbx)
pushq %rax
pushq 0x30(%rbx)
pushq %r10
callq 0x1b99e3
movapd 0x40(%rsp), %xmm0
movapd 0x30(%rsp), %xmm1
addq $0x30, %rsp
testq %r15, %r15
sete %al
movq 0xb0(%rbx), %rdi
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x1bc5ed
movzbl %bpl, %esi
movq %r15, %rdx
callq 0x318b6a
movapd 0x10(%rsp), %xmm0
movapd (%rsp), %xmm1
jmp 0x1bc5ed
testb %r9b, %r9b
je 0x1bc54f
leaq 0x70(%rsp), %r15
leaq 0x38(%rsp), %rdx
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %ecx
callq 0x1bc081
cmpq $0x0, 0x8(%r15)
je 0x1bc6a7
movdqu 0x18(%rbx), %xmm0
pshufd $0x4e, %xmm0, %xmm0     # xmm0 = xmm0[2,3,0,1]
movdqu %xmm0, 0x88(%rsp)
cmpq $0x0, 0x40(%rsp)
je 0x1bc6ac
movdqu 0x48(%rbx), %xmm0
pshufd $0x4e, %xmm0, %xmm0     # xmm0 = xmm0[2,3,0,1]
movdqu %xmm0, 0x50(%rsp)
movapd (%rsp), %xmm1
movapd 0x10(%rsp), %xmm0
jmp 0x1bc5ed
movq 0x90(%rbx), %rdi
testq %rdi, %rdi
je 0x1bc5ed
movl 0x88(%rbx), %ebp
movq 0x8(%rbx), %rdx
movq 0x10(%rbx), %rcx
addq 0x20(%rbx), %rdx
movzbl 0x8d(%rbx), %eax
subq $0x8, %rsp
leaq 0x78(%rsp), %r12
leaq 0x40(%rsp), %r15
movq %r12, %rsi
movq %r15, %r8
movl %ebp, %r9d
pushq %rax
pushq 0x40(%rbx)
pushq 0x30(%rbx)
pushq 0x48(%rbx)
pushq 0x50(%rbx)
callq 0x1b9837
addq $0x30, %rsp
movq 0x90(%rbx), %rdi
movq 0x8(%rbx), %rdx
movq 0x10(%rbx), %r8
movq 0x20(%rbx), %rcx
addq %rdx, %rcx
movq 0x38(%rbx), %rax
addq 0x50(%rbx), %rax
subq $0x8, %rsp
movq %r12, %rsi
movl %ebp, %r9d
pushq $0x1
pushq 0x40(%rbx)
pushq %rax
pushq 0x30(%rbx)
pushq %r15
callq 0x1b99e3
movapd 0x40(%rsp), %xmm0
movapd 0x30(%rsp), %xmm1
addq $0x30, %rsp
cmpq $0x0, 0xf0(%rsp)
je 0x1bc68a
movsd 0x18b70c(%rip), %xmm3   # 0x347d10
movapd %xmm1, %xmm2
cmpeqpd %xmm3, %xmm2
cmpeqpd %xmm0, %xmm3
orpd %xmm2, %xmm3
movd %xmm3, %eax
testb $0x1, %al
je 0x1bc68a
movq 0x40(%rbx), %rdi
movq 0x48(%rbx), %rax
movq %rax, (%rsp)
addq 0x10(%rbx), %rdi
movq 0x70(%rbx), %rsi
movq 0x78(%rbx), %rdx
callq 0x1bb7d9
movq %rax, %r13
movq 0x70(%rbx), %rdi
movq 0x78(%rbx), %rbp
movq %rbp, %rsi
callq 0x1bb7ee
subq $0x8, %rsp
leaq 0x38(%rsp), %r12
leaq 0x30(%rsp), %r15
movq %r12, %rdi
movq %r15, %rsi
movq 0xf8(%rsp), %rdx
movq 0x8(%rsp), %rcx
movq %r13, %r8
movq %rbp, %r9
pushq %rax
callq 0x1bb7fd
addq $0x10, %rsp
movsd (%r12), %xmm0
movsd (%r15), %xmm1
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1bae05
addq $0xa8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x6832d
callq 0x682f4
nopl (%rax)