// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/querymatch.c
// Function: gt_querymatch_complete
bool gt_querymatch_complete(GtQuerymatch *querymatch,
                            const GtSeedExtendDisplayFlag *out_display_flag,
                            GtUword dblen,
                            GtUword dbseqnum,
                            GtUword dbstart_relative,
                            GtUword db_seqstart,
                            GtUword db_seqlen,
                            GtWord score,
                            GtUword distance,
                            GtUword mismatches,
                            bool selfmatch,
                            GtUword queryseqnum,
                            GtUword querylen,
                            GtUword querystart,
                            const GtSeqorEncseq *dbes,
                            const GtSeqorEncseq *queryes,
                            GtUword query_seqstart,
                            GtUword query_seqlen,
                            GtUword db_seedpos_rel,
                            GtUword query_seedpos_rel,
                            GtUword seedlen,
                            bool greedyextension)
{
  const char *query_desc = NULL, *db_desc = NULL;
  GtUword desclen;

  gt_assert(querymatch != NULL);
  if (gt_querymatch_subjectid_display(out_display_flag))
  {
    gt_assert(dbes != NULL);
    if (dbes->encseq != NULL)
    {
      db_desc = gt_encseq_description(dbes->encseq,&desclen,dbseqnum);
    } else
    {
      db_desc = dbes->desc;
    }
  }
  if (gt_querymatch_queryid_display(out_display_flag))
  {
    gt_assert (queryes != NULL);
    if (queryes->encseq != NULL)
    {
      query_desc = gt_encseq_description(queryes->encseq,&desclen,
                                         (GtUword) queryseqnum);
    } else
    {
      query_desc = queryes->desc;
    }
  }
  gt_querymatch_init(querymatch,
                     dblen,
                     dbseqnum,
                     dbstart_relative,
                     db_seqstart,
                     db_seqlen,
                     score,
                     distance,
                     mismatches,
                     selfmatch,
                     queryseqnum,
                     querylen,
                     querystart,
                     query_seqstart,
                     query_seqlen,
                     db_desc,
                     query_desc);
  querymatch->db_seedpos_rel = db_seedpos_rel;
  querymatch->query_seedpos_rel = query_seedpos_rel;
  querymatch->seedlen = seedlen;
  if (gt_querymatch_ordered(querymatch))
  {
    gt_querymatch_alignment_prepare(querymatch,dbes,queryes,greedyextension);
    return true;
  }
  return false;
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %r9, 0x8(%rsp)
testq %rdi, %rdi
je 0x1bc072
movq %r8, %r14
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %rbx
movq 0x90(%rsp), %rbp
movq %rsi, %rdi
callq 0x1b9f17
testb %al, %al
movq %r12, (%rsp)
je 0x1bbf5a
testq %rbp, %rbp
je 0x1bc077
movq 0x8(%rbp), %rdi
testq %rdi, %rdi
je 0x1bbf5e
leaq 0x10(%rsp), %rsi
movq %r12, %rdx
callq 0xec19e
movq %rax, %rbp
jmp 0x1bbf62
xorl %ebp, %ebp
jmp 0x1bbf62
movq 0x10(%rbp), %rbp
movq 0x98(%rsp), %r12
movq %r15, %rdi
callq 0x1b9f79
testb %al, %al
je 0x1bbf9d
testq %r12, %r12
je 0x1bc07c
movq 0x8(%r12), %rdi
testq %rdi, %rdi
je 0x1bbfa1
leaq 0x10(%rsp), %rsi
movq 0x78(%rsp), %r12
movq %r12, %rdx
callq 0xec19e
jmp 0x1bbfab
xorl %eax, %eax
jmp 0x1bbfa6
movq 0x10(%r12), %rax
movq 0x78(%rsp), %r12
movq 0xb0(%rsp), %r15
movb 0x70(%rsp), %cl
movq 0x50(%rsp), %r9
subq $0x8, %rsp
movzbl %cl, %r10d
movq %rbx, %rdi
movq %r13, %rsi
movq 0x8(%rsp), %rdx
movq %r14, %rcx
movq 0x10(%rsp), %r8
pushq %rax
pushq %rbp
pushq 0xc0(%rsp)
pushq 0xc0(%rsp)
pushq 0xb0(%rsp)
pushq 0xb0(%rsp)
pushq %r12
pushq %r10
pushq 0xb0(%rsp)
pushq 0xb0(%rsp)
pushq 0xb0(%rsp)
callq 0x1bacde
addq $0x60, %rsp
movq %r15, 0x58(%rbx)
movq 0xb8(%rsp), %rax
movq %rax, 0x60(%rbx)
movq 0xc0(%rsp), %rax
movq %rax, 0x68(%rbx)
movq %rbx, %rdi
callq 0x1bb901
movl %eax, %ebp
testb %al, %al
je 0x1bc061
movzbl 0xc8(%rsp), %ecx
movq %rbx, %rdi
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
callq 0x1bc081
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x68165
callq 0x6812c
callq 0x680f3