// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/jkOwnLib/gfOut.c
// Function: sim4QueryOut
static void sim4QueryOut(struct gfOutput *out, FILE *f)
/* Do sim4-like output - at end of processing query. */
{
struct axtData *aod = out->data;
struct axtBundle *gab;
slReverse(&aod->bundleList);

for (gab = aod->bundleList; gab != NULL; gab = gab->next)
    {
    struct axt *axt = gab->axtList;
    // check minIdentity of the entire alignment
    int goodPpt = 1000 * axtListRatio(axt);
    if (!(goodPpt >= out->minGood))
	continue; 
    fprintf(f, "\n");
    fprintf(f, "seq1 = %s, %d bp\n", axt->qName, gab->qSize);
    fprintf(f, "seq2 = %s, %d bp\n", axt->tName, gab->tSize);
    fprintf(f, "\n");
    if (axt->qStrand == '-')
	fprintf(f, "(complement)\n");
    for (; axt != NULL; axt = axt->next)
	{
	fprintf(f, "%d-%d  ", axt->qStart+1, axt->qEnd);
	fprintf(f, "(%d-%d)   ", axt->tStart+1, axt->tEnd);
	fprintf(f, "%1.0f%% ", 100.0 * axtIdRatio(axt));
	if (axt->qStrand == '-')
	     fprintf(f, "<-\n");
	else
	     fprintf(f, "->\n");
	}
    }
axtBundleFreeList(&aod->bundleList);
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x18, %rsp
movq %rsi, %rbx
movq %rdi, 0x8(%rsp)
movq 0x8(%rdi), %r14
movq %r14, %rdi
callq 0x20173
movq %r14, (%rsp)
movq (%r14), %r14
testq %r14, %r14
je 0x14492
leaq 0x7a166(%rip), %r12     # 0x8e434
leaq 0x7a168(%rip), %r15     # 0x8e43d
leaq 0x8286d(%rip), %r13     # 0x96b49
movq 0x8(%r14), %rbp
testq %rbp, %rbp
je 0x14363
movq %r14, 0x10(%rsp)
xorl %eax, %eax
xorl %ecx, %ecx
movq %rbp, %rdx
movslq 0x38(%rdx), %rsi
movl $0x0, %edi
testq %rsi, %rsi
jle 0x14326
movq 0x40(%rdx), %r8
movq 0x48(%rdx), %r9
xorl %r10d, %r10d
xorl %edi, %edi
movb (%r8,%r10), %r11b
xorl %r14d, %r14d
cmpb (%r9,%r10), %r11b
sete %r14b
addl %r14d, %edi
incq %r10
cmpq %r10, %rsi
jne 0x1430c
addl %edi, %ecx
addl %esi, %eax
movq (%rdx), %rdx
testq %rdx, %rdx
jne 0x142f1
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
divsd %xmm1, %xmm0
mulsd 0x79ecc(%rip), %xmm0    # 0x8e218
cvttsd2si %xmm0, %eax
movq 0x8(%rsp), %rcx
cmpl %eax, 0x38(%rcx)
movq 0x10(%rsp), %r14
jg 0x14486
movl $0xa, %edi
movq %rbx, %rsi
callq 0x6930
movq 0x8(%rbp), %rdx
movl 0x14(%r14), %ecx
movq %rbx, %rdi
leaq 0x7a06d(%rip), %rsi     # 0x8e3ef
xorl %eax, %eax
callq 0x6a90
movq 0x20(%rbp), %rdx
movl 0x10(%r14), %ecx
movq %rbx, %rdi
leaq 0x7a066(%rip), %rsi     # 0x8e401
xorl %eax, %eax
callq 0x6a90
movl $0xa, %edi
movq %rbx, %rsi
callq 0x6930
cmpb $0x2d, 0x18(%rbp)
jne 0x143ce
movl $0xd, %esi
movl $0x1, %edx
leaq 0x7a04d(%rip), %rdi     # 0x8e413
movq %rbx, %rcx
callq 0x6e70
movl 0x10(%rbp), %edx
movl 0x14(%rbp), %ecx
incl %edx
movq %rbx, %rdi
leaq 0x7a041(%rip), %rsi     # 0x8e421
xorl %eax, %eax
callq 0x6a90
movl 0x28(%rbp), %edx
movl 0x2c(%rbp), %ecx
incl %edx
movq %rbx, %rdi
leaq 0x7a030(%rip), %rsi     # 0x8e429
xorl %eax, %eax
callq 0x6a90
movslq 0x38(%rbp), %rax
testq %rax, %rax
jle 0x14438
movq 0x40(%rbp), %rcx
movq 0x48(%rbp), %rdx
xorl %esi, %esi
xorl %edi, %edi
movb (%rcx,%rsi), %r8b
xorl %r9d, %r9d
cmpb (%rdx,%rsi), %r8b
sete %r9b
addl %r9d, %edi
incq %rsi
cmpq %rsi, %rax
jne 0x14415
xorps %xmm0, %xmm0
cvtsi2sd %edi, %xmm0
jmp 0x1443c
xorpd %xmm0, %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
divsd %xmm1, %xmm0
mulsd 0x79dd1(%rip), %xmm0    # 0x8e220
movq %rbx, %rdi
movq %r12, %rsi
movb $0x1, %al
callq 0x6a90
cmpb $0x2d, 0x18(%rbp)
movq %r13, %rdi
cmoveq %r15, %rdi
movl $0x3, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x6e70
movq (%rbp), %rbp
testq %rbp, %rbp
jne 0x143ce
movq (%r14), %r14
testq %r14, %r14
jne 0x142dc
movq (%rsp), %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1b2ed