// File: /workspace/github_c_makefile_star2_O3/genometools[P]genometools/src/match/seed-extend.c
// Function: gt_rf_extend_querymatch_with_output
static bool gt_rf_extend_querymatch(bool forxdrop,
                                    void *info,
                                    const GtEncseq *dbencseq,
                                    const GtQuerymatch *exactseed,
                                    const GtSeqorEncseq *queryes,
                                    bool same_encseq)
{
  GtSeedextendSeqpair sesp = {0,0,0,0,0,0,0,0,0,GT_READMODE_FORWARD,false};
  GtSeqorEncseq dbes;

  gt_assert(queryes != NULL && dbencseq != NULL);
  gt_querymatch_db_coordinates(&sesp.dbseqnum,&sesp.db_seqstart,
                               &sesp.dbseqlength,exactseed);
  gt_querymatch_query_coordinates(&sesp.queryseqnum,&sesp.query_seqstart,
                                  &sesp.query_seqlen,exactseed);
  if (queryes->encseq == NULL)
  {
    gt_assert(sesp.query_seqstart == 0);
    gt_assert(sesp.query_seqlen == queryes->seqlength);
  }
  gt_sesp_from_relative(&sesp,
                        sesp.dbseqnum,
                        gt_querymatch_dbstart_relative(exactseed),
                        same_encseq,
                        sesp.queryseqnum,
                        gt_querymatch_querystart(exactseed),
                        gt_querymatch_querylen(exactseed),
                        gt_querymatch_query_readmode(exactseed));
  GT_SEQORENCSEQ_INIT_ENCSEQ(&dbes,dbencseq);
  return gt_extend_sesp(forxdrop, info, &dbes, queryes, &sesp);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0xb8, %rsp
pxor %xmm0, %xmm0
movdqa %xmm0, 0x70(%rsp)
movdqa %xmm0, 0x60(%rsp)
movdqa %xmm0, 0x50(%rsp)
movdqa %xmm0, 0x40(%rsp)
movdqa %xmm0, 0x30(%rsp)
testq %rdx, %rdx
je 0x1e179d
movq %r8, %rbx
testq %r8, %r8
je 0x1e179d
movq %rcx, %r13
movl %r9d, 0x8(%rsp)
movq %rdx, 0x20(%rsp)
movl %edi, 0xc(%rsp)
movq %rsi, 0x28(%rsp)
leaq 0x40(%rsp), %rsi
leaq 0x38(%rsp), %rdx
leaq 0x30(%rsp), %rdi
callq 0x1bac3e
leaq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rsi
leaq 0x58(%rsp), %rdx
movq %r13, %rcx
callq 0x1bac53
cmpq $0x0, 0x8(%rbx)
jne 0x1e16ce
cmpq $0x0, 0x60(%rsp)
jne 0x1e17a2
movq 0x58(%rsp), %rax
cmpq 0x20(%rbx), %rax
jne 0x1e17a7
leaq 0x30(%rsp), %rbp
movq (%rbp), %rax
movq %rax, 0x10(%rsp)
movq %r13, %rdi
callq 0x1bac2f
movq %rbx, 0x18(%rsp)
movq %rax, %rbx
movq 0x20(%rbp), %r14
movq %r13, %rdi
callq 0x1bac39
movq %rax, %r12
movq %r13, %rdi
callq 0x1bac21
movq %rax, %r15
movq %r13, %rdi
callq 0x1bac78
movl 0x8(%rsp), %ecx
movb %cl, 0x4c(%rbp)
movq %r15, 0x40(%rbp)
movq 0x10(%rsp), %rcx
movq %rcx, (%rbp)
movq %r14, 0x20(%rbp)
movq %rbx, 0x18(%rbp)
movq %r12, 0x38(%rbp)
movl %eax, 0x48(%rbp)
leaq 0x80(%rsp), %rdx
movq 0x20(%rsp), %rax
movq %rax, 0x8(%rdx)
xorl %eax, %eax
movq %rax, (%rdx)
movq %rax, 0x10(%rdx)
pcmpeqd %xmm0, %xmm0
movdqu %xmm0, 0x18(%rdx)
movq %rax, 0x28(%rdx)
movw $0x100, 0x30(%rdx)      # imm = 0x100
movzbl 0xc(%rsp), %r15d
movl %r15d, %edi
movq 0x28(%rsp), %rbx
movq %rbx, %rsi
movq 0x18(%rsp), %rcx
movq %rbp, %r8
callq 0x1e17e2
testb %al, %al
je 0x1e178b
movl %r15d, %edi
movq %rbx, %rsi
callq 0x1e1ee1
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
callq 0x74d3b
callq 0x74d74
callq 0x74dad