// File: /workspace/github_c_makefile_star2_O2/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 0x19031b
movq %r8, %rbx
testq %r8, %r8
je 0x19031b
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 0x16a079
leaq 0x50(%rsp), %rdi
leaq 0x60(%rsp), %rsi
leaq 0x58(%rsp), %rdx
movq %r13, %rcx
callq 0x16a08e
cmpq $0x0, 0x8(%rbx)
jne 0x19024e
cmpq $0x0, 0x60(%rsp)
jne 0x190349
movq 0x58(%rsp), %rax
cmpq 0x20(%rbx), %rax
jne 0x190377
leaq 0x30(%rsp), %rbp
movq (%rbp), %r14
movq %r13, %rdi
callq 0x16a06a
movq %rax, 0x10(%rsp)
movq %rbx, 0x18(%rsp)
movq 0x20(%rbp), %rbx
movq %r13, %rdi
callq 0x16a074
movq %rax, %r12
movq %r13, %rdi
callq 0x16a05c
movq %rax, %r15
movq %r13, %rdi
callq 0x16a0b3
movl 0x8(%rsp), %ecx
movb %cl, 0x4c(%rbp)
movq %r15, 0x40(%rbp)
movq %r14, (%rbp)
movq %rbx, 0x20(%rbp)
leaq 0x80(%rsp), %rdx
movq 0x20(%rsp), %rcx
movq %rcx, 0x8(%rdx)
andq $0x0, (%rdx)
movq 0x10(%rsp), %rcx
movq %rcx, 0x18(%rbp)
andq $0x0, 0x10(%rdx)
movq %r12, 0x38(%rbp)
movl %eax, 0x48(%rbp)
pcmpeqd %xmm0, %xmm0
movdqu %xmm0, 0x18(%rdx)
andq $0x0, 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 0x19044b
testb %al, %al
je 0x190309
movl %r15d, %edi
movq %rbx, %rsi
callq 0x190c9c
addq $0xb8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
movq 0x2a7c46(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x154ce7(%rip), %rsi    # 0x2e5013
leaq 0x1c5159(%rip), %rdx    # 0x35548c
leaq 0x1c5176(%rip), %rcx    # 0x3554b0
leaq 0x1c49a3(%rip), %r8     # 0x354ce4
movl $0x589, %r9d            # imm = 0x589
jmp 0x1903a3
movq 0x2a7c18(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x154cb9(%rip), %rsi    # 0x2e5013
leaq 0x1c5167(%rip), %rdx    # 0x3554c8
leaq 0x1c5148(%rip), %rcx    # 0x3554b0
leaq 0x1c4975(%rip), %r8     # 0x354ce4
movl $0x590, %r9d            # imm = 0x590
jmp 0x1903a3
movq 0x2a7bea(%rip), %rax    # 0x437f68
movq (%rax), %rdi
leaq 0x154c8b(%rip), %rsi    # 0x2e5013
leaq 0x1c5152(%rip), %rdx    # 0x3554e1
leaq 0x1c511a(%rip), %rcx    # 0x3554b0
leaq 0x1c4947(%rip), %r8     # 0x354ce4
movl $0x591, %r9d            # imm = 0x591
xorl %eax, %eax
callq 0x17a50
callq 0x17390