// File: /workspace/github_c_makefile_star2_O2/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 0x16b8af
movq %r8, %r14
movq %rcx, %r12
movq %rdx, %r13
movq %rsi, %r15
movq %rdi, %rbx
movq 0x90(%rsp), %rbp
movq %rsi, %rdi
callq 0x1690fa
testb %al, %al
movq %r12, (%rsp)
je 0x16b797
testq %rbp, %rbp
je 0x16b8dd
movq 0x8(%rbp), %rdi
testq %rdi, %rdi
je 0x16b79b
leaq 0x10(%rsp), %rsi
movq %r12, %rdx
callq 0x75b24
movq %rax, %rbp
jmp 0x16b79f
xorl %ebp, %ebp
jmp 0x16b79f
movq 0x10(%rbp), %rbp
movq 0x98(%rsp), %r12
movq %r15, %rdi
callq 0x169118
testb %al, %al
je 0x16b7da
testq %r12, %r12
je 0x16b90b
movq 0x8(%r12), %rdi
testq %rdi, %rdi
je 0x16b7de
leaq 0x10(%rsp), %rsi
movq 0x78(%rsp), %r12
movq %r12, %rdx
callq 0x75b24
jmp 0x16b7e8
xorl %eax, %eax
jmp 0x16b7e3
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 0x16a116
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 0x16afb9
movl %eax, %ebp
testb %al, %al
je 0x16b89e
movzbl 0xc8(%rsp), %ecx
movq %rbx, %rdi
movq 0x90(%rsp), %rsi
movq 0x98(%rsp), %rdx
callq 0x16b943
movl %ebp, %eax
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2cc6b2(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x179753(%rip), %rsi    # 0x2e5013
leaq 0x1e9b94(%rip), %rdx    # 0x35545b
leaq 0x1e0614(%rip), %rcx    # 0x34bee2
leaq 0x1e01c3(%rip), %r8     # 0x34ba98
movl $0x466, %r9d            # imm = 0x466
jmp 0x16b937
movq 0x2cc684(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x179725(%rip), %rsi    # 0x2e5013
leaq 0x1e0604(%rip), %rdx    # 0x34bef9
leaq 0x1e05e6(%rip), %rcx    # 0x34bee2
leaq 0x1e0195(%rip), %r8     # 0x34ba98
movl $0x469, %r9d            # imm = 0x469
jmp 0x16b937
movq 0x2cc656(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x1796f7(%rip), %rsi    # 0x2e5013
leaq 0x1e05e3(%rip), %rdx    # 0x34bf06
leaq 0x1e05b8(%rip), %rcx    # 0x34bee2
leaq 0x1e0167(%rip), %r8     # 0x34ba98
movl $0x474, %r9d            # imm = 0x474
xorl %eax, %eax
callq 0x17a50
callq 0x17390