// File: /workspace/github_c_makefile_star2_O1/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 0x1c4dee
movq %r8, %r14
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %rbx
movq 0x90(%rsp), %rbp
movq %rsi, %rdi
callq 0x1c2ba7
testb %al, %al
movq %r12, (%rsp)
je 0x1c4cd6
testq %rbp, %rbp
je 0x1c4df3
movq 0x8(%rbp), %rdi
testq %rdi, %rdi
je 0x1c4cda
leaq 0x10(%rsp), %rsi
movq %r12, %rdx
callq 0xf079f
movq %rax, %rbp
jmp 0x1c4cde
xorl %ebp, %ebp
jmp 0x1c4cde
movq 0x10(%rbp), %rbp
movq 0x98(%rsp), %r12
movq %r15, %rdi
callq 0x1c2c09
testb %al, %al
je 0x1c4d19
testq %r12, %r12
je 0x1c4df8
movq 0x8(%r12), %rdi
testq %rdi, %rdi
je 0x1c4d1d
leaq 0x10(%rsp), %rsi
movq 0x78(%rsp), %r12
movq %r12, %rdx
callq 0xf079f
jmp 0x1c4d27
xorl %eax, %eax
jmp 0x1c4d22
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 0x1c3a3d
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 0x1c466c
movl %eax, %ebp
testb %al, %al
je 0x1c4ddd
movzbl 0xc8(%rsp), %ecx
movq %rbx, %rdi
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
callq 0x1c4dfd
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x699cd
callq 0x69994
callq 0x6995b