// File: /workspace/github_c_makefile_star2_O0/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 $0xe8, %rsp
movq %rcx, 0x78(%rsp)
movq %rdx, %rax
movq 0x78(%rsp), %rdx
movq %rax, 0x80(%rsp)
movq %rsi, %rax
movq 0x80(%rsp), %rsi
movq %rax, 0x88(%rsp)
movq %rdi, %r10
movq 0x88(%rsp), %rdi
movb 0x198(%rsp), %al
movq 0x190(%rsp), %rcx
movq 0x188(%rsp), %rcx
movq 0x180(%rsp), %rcx
movq 0x178(%rsp), %rcx
movq 0x170(%rsp), %rcx
movq 0x168(%rsp), %rcx
movq 0x160(%rsp), %rcx
movq 0x158(%rsp), %rcx
movq 0x150(%rsp), %rcx
movq 0x148(%rsp), %rcx
movb 0x140(%rsp), %cl
movq 0x138(%rsp), %r11
movq 0x130(%rsp), %r11
movq 0x128(%rsp), %r11
movq 0x120(%rsp), %r11
movq %r10, 0xd8(%rsp)
movq %rdi, 0xd0(%rsp)
movq %rsi, 0xc8(%rsp)
movq %rdx, 0xc0(%rsp)
movq %r8, 0xb8(%rsp)
movq %r9, 0xb0(%rsp)
andb $0x1, %cl
movb %cl, 0xaf(%rsp)
andb $0x1, %al
movb %al, 0xae(%rsp)
movq $0x0, 0xa0(%rsp)
movq $0x0, 0x98(%rsp)
cmpq $0x0, 0xd8(%rsp)
jne 0x269fb0
movq 0x3d2021(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2ac08a(%rip), %rsi    # 0x516013
leaq 0x31debb(%rip), %rdx    # 0x587e4b
leaq 0x314633(%rip), %rcx    # 0x57e5ca
leaq 0x3141e2(%rip), %r8     # 0x57e180
movl $0x466, %r9d            # imm = 0x466
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x269fb2
movq 0xd0(%rsp), %rdi
callq 0x2658b0
testb $0x1, %al
jne 0x269fc8
jmp 0x26a05f
jmp 0x269fca
cmpq $0x0, 0x160(%rsp)
jne 0x26a00d
movq 0x3d1fc4(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2ac02d(%rip), %rsi    # 0x516013
leaq 0x3145f4(%rip), %rdx    # 0x57e5e1
leaq 0x3145d6(%rip), %rcx    # 0x57e5ca
leaq 0x314185(%rip), %r8     # 0x57e180
movl $0x469, %r9d            # imm = 0x469
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x26a00f
movq 0x160(%rsp), %rax
cmpq $0x0, 0x8(%rax)
je 0x26a049
movq 0x160(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0xc0(%rsp), %rdx
leaq 0x90(%rsp), %rsi
callq 0xb1b40
movq %rax, 0x98(%rsp)
jmp 0x26a05d
movq 0x160(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0x98(%rsp)
jmp 0x26a05f
movq 0xd0(%rsp), %rdi
callq 0x265970
testb $0x1, %al
jne 0x26a075
jmp 0x26a10c
jmp 0x26a077
cmpq $0x0, 0x168(%rsp)
jne 0x26a0ba
movq 0x3d1f17(%rip), %rax    # 0x63bfa0
movq (%rax), %rdi
leaq 0x2abf80(%rip), %rsi    # 0x516013
leaq 0x314554(%rip), %rdx    # 0x57e5ee
leaq 0x314529(%rip), %rcx    # 0x57e5ca
leaq 0x3140d8(%rip), %r8     # 0x57e180
movl $0x474, %r9d            # imm = 0x474
movb $0x0, %al
callq 0x199f0
callq 0x19370
jmp 0x26a0bc
movq 0x168(%rsp), %rax
cmpq $0x0, 0x8(%rax)
je 0x26a0f6
movq 0x168(%rsp), %rax
movq 0x8(%rax), %rdi
movq 0x148(%rsp), %rdx
leaq 0x90(%rsp), %rsi
callq 0xb1b40
movq %rax, 0xa0(%rsp)
jmp 0x26a10a
movq 0x168(%rsp), %rax
movq 0x10(%rax), %rax
movq %rax, 0xa0(%rsp)
jmp 0x26a10c
movq 0xd8(%rsp), %rdi
movq 0xc8(%rsp), %rsi
movq 0xc0(%rsp), %rdx
movq 0xb8(%rsp), %rcx
movq 0xb0(%rsp), %r8
movq 0x120(%rsp), %r9
movq 0x128(%rsp), %rax
movq %rax, 0x60(%rsp)
movq 0x130(%rsp), %rax
movq %rax, 0x68(%rsp)
movq 0x138(%rsp), %r13
movb 0xaf(%rsp), %bpl
movq 0x148(%rsp), %r12
movq 0x150(%rsp), %r15
movq 0x158(%rsp), %r14
movq 0x170(%rsp), %rbx
movq 0x178(%rsp), %r11
movq 0x98(%rsp), %r10
movq 0xa0(%rsp), %rax
movq %rax, 0x70(%rsp)
movq 0x60(%rsp), %rax
andb $0x1, %bpl
movq %rax, (%rsp)
movq 0x68(%rsp), %rax
movq %rax, 0x8(%rsp)
movq 0x70(%rsp), %rax
movq %r13, 0x10(%rsp)
movzbl %bpl, %ebp
movl %ebp, 0x18(%rsp)
movq %r12, 0x20(%rsp)
movq %r15, 0x28(%rsp)
movq %r14, 0x30(%rsp)
movq %rbx, 0x38(%rsp)
movq %r11, 0x40(%rsp)
movq %r10, 0x48(%rsp)
movq %rax, 0x50(%rsp)
callq 0x267890
movq 0x180(%rsp), %rcx
movq 0xd8(%rsp), %rax
movq %rcx, 0x58(%rax)
movq 0x188(%rsp), %rcx
movq 0xd8(%rsp), %rax
movq %rcx, 0x60(%rax)
movq 0x190(%rsp), %rcx
movq 0xd8(%rsp), %rax
movq %rcx, 0x68(%rax)
movq 0xd8(%rsp), %rdi
callq 0x269300
testb $0x1, %al
jne 0x26a243
jmp 0x26a276
movq 0xd8(%rsp), %rdi
movq 0x160(%rsp), %rsi
movq 0x168(%rsp), %rdx
movb 0xae(%rsp), %al
andb $0x1, %al
movzbl %al, %ecx
callq 0x26a2a0
movb $0x1, 0xe7(%rsp)
jmp 0x26a27e
movb $0x0, 0xe7(%rsp)
movb 0xe7(%rsp), %al
andb $0x1, %al
addq $0xe8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
nopl (%rax)