// File: /workspace/github_c_makefile_star2_O1/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 $0x88, %rsp
movl %ecx, %ebp
movq %rsi, %r14
movq %rdi, %rbx
xorb $0x1, %dl
movq 0xc8(%rsp), %rax
movq 0xc0(%rsp), %rcx
movq %xmm0, 0x10(%rsp)
movsd %xmm1, 0x8(%rsp)
movq %rcx, 0x58(%rsp)
xorl %ecx, %ecx
movq %rcx, 0x50(%rsp)
movq %rcx, 0x60(%rsp)
pcmpeqd %xmm0, %xmm0
movdqu %xmm0, 0x68(%rsp)
movq %rcx, 0x78(%rsp)
movw $0x100, %si             # imm = 0x100
movw %si, 0x80(%rsp)
movq %rax, 0x20(%rsp)
movq %rcx, 0x18(%rsp)
movq %rcx, 0x28(%rsp)
movdqu %xmm0, 0x30(%rsp)
movq %rcx, 0x40(%rsp)
movw %si, 0x48(%rsp)
testq %r8, %r8
sete %al
testb %dl, %al
jne 0x1c522c
movq %r8, %r15
cmpq $0x0, 0x90(%rbx)
je 0x1c5200
movq %r14, %rdi
callq 0x1c2d92
testb %al, %al
je 0x1c5200
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 0x20(%rsp), %r10
leaq 0x58(%rsp), %rsi
pushq $0x0
pushq 0x40(%rbx)
pushq %rax
pushq 0x30(%rbx)
pushq %r10
callq 0x1c268f
addq $0x30, %rsp
testq %r15, %r15
sete %al
movq 0xb0(%rbx), %rdi
testq %rdi, %rdi
sete %cl
orb %al, %cl
jne 0x1c5319
movzbl %bpl, %esi
movq %r15, %rdx
callq 0x322e62
jmp 0x1c5319
testb %r9b, %r9b
je 0x1c5287
leaq 0x50(%rsp), %r15
leaq 0x18(%rsp), %rdx
movq %rbx, %rdi
movq %r15, %rsi
movl $0x1, %ecx
callq 0x1c4dfd
cmpq $0x0, 0x8(%r15)
je 0x1c53c9
movdqu 0x18(%rbx), %xmm0
pshufd $0x4e, %xmm0, %xmm0     # xmm0 = xmm0[2,3,0,1]
movdqu %xmm0, 0x68(%rsp)
cmpq $0x0, 0x20(%rsp)
je 0x1c53ce
movdqu 0x48(%rbx), %xmm0
pshufd $0x4e, %xmm0, %xmm0     # xmm0 = xmm0[2,3,0,1]
movdqu %xmm0, 0x30(%rsp)
jmp 0x1c5319
movq 0x90(%rbx), %rdi
testq %rdi, %rdi
je 0x1c5319
movl 0x88(%rbx), %ebp
movq 0x8(%rbx), %rdx
movq 0x10(%rbx), %rcx
addq 0x20(%rbx), %rdx
movzbl 0x8d(%rbx), %eax
subq $0x8, %rsp
leaq 0x58(%rsp), %r12
leaq 0x20(%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 0x1c24e3
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 0x1c268f
addq $0x30, %rsp
movq 0xd0(%rsp), %r15
testq %r15, %r15
je 0x1c53a0
movsd 0x8(%rsp), %xmm0
movsd 0x18b9dc(%rip), %xmm1   # 0x350d10
movsd 0x10(%rsp), %xmm2
cmpeqpd %xmm1, %xmm2
cmpeqpd %xmm1, %xmm0
orpd %xmm2, %xmm0
movd %xmm0, %eax
testb $0x1, %al
je 0x1c53a0
movq 0x40(%rbx), %rdi
movq 0x48(%rbx), %r12
addq 0x10(%rbx), %rdi
movq 0x70(%rbx), %rsi
movq 0x78(%rbx), %rdx
callq 0x1c4544
movq %rax, %r13
movq 0x70(%rbx), %rdi
movq 0x78(%rbx), %rbp
movq %rbp, %rsi
callq 0x1c4559
subq $0x8, %rsp
leaq 0x18(%rsp), %rdi
leaq 0x10(%rsp), %rsi
movq %r15, %rdx
movq %r12, %rcx
movq %r13, %r8
movq %rbp, %r9
pushq %rax
callq 0x1c4568
addq $0x10, %rsp
movsd 0x10(%rsp), %xmm0
movsd 0x8(%rsp), %xmm1
movq %r14, %rdi
movq %rbx, %rsi
callq 0x1c3b64
addq $0x88, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x69b95
callq 0x69b5c
nop