// File: /workspace/github_c_makefile_star2_O1/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, 0x10(%rsp)
movq 0x8(%rdi), %r14
movq %r14, %rdi
callq 0x1fcb3
movq %r14, 0x8(%rsp)
movq (%r14), %r13
testq %r13, %r13
je 0x143e7
leaq 0x7a1cd(%rip), %r15     # 0x8e3e1
leaq 0x7a1d9(%rip), %r12     # 0x8e3f4
leaq 0x82847(%rip), %rbp     # 0x96a69
movq 0x8(%r13), %r14
testq %r14, %r14
je 0x14298
xorl %eax, %eax
xorl %ecx, %ecx
movq %r14, %rdx
movslq 0x38(%rdx), %rsi
movl $0x0, %edi
testq %rsi, %rsi
jle 0x14267
movq 0x40(%rdx), %r8
movq 0x48(%rdx), %r9
xorl %r10d, %r10d
xorl %edi, %edi
movb (%r8,%r10), %r11b
xorl %r15d, %r15d
cmpb (%r9,%r10), %r11b
sete %r15b
addl %r15d, %edi
incq %r10
cmpq %r10, %rsi
jne 0x1424d
addl %edi, %ecx
addl %esi, %eax
movq (%rdx), %rdx
testq %rdx, %rdx
jne 0x14232
xorps %xmm0, %xmm0
cvtsi2sd %ecx, %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
divsd %xmm1, %xmm0
mulsd 0x79f4b(%rip), %xmm0    # 0x8e1d8
cvttsd2si %xmm0, %eax
leaq 0x7a149(%rip), %r15     # 0x8e3e1
movq 0x10(%rsp), %rcx
cmpl %eax, 0x38(%rcx)
jg 0x143da
movl $0xa, %edi
movq %rbx, %rsi
callq 0x6930
movq 0x8(%r14), %rdx
movl 0x14(%r13), %ecx
movq %rbx, %rdi
leaq 0x7a0ea(%rip), %rsi     # 0x8e3af
xorl %eax, %eax
callq 0x6a90
movq 0x20(%r14), %rdx
movl 0x10(%r13), %ecx
movq %rbx, %rdi
leaq 0x7a0e3(%rip), %rsi     # 0x8e3c1
xorl %eax, %eax
callq 0x6a90
movl $0xa, %edi
movq %rbx, %rsi
callq 0x6930
cmpb $0x2d, 0x18(%r14)
jne 0x143d1
movl $0xd, %esi
movl $0x1, %edx
leaq 0x7a0c5(%rip), %rdi     # 0x8e3d3
movq %rbx, %rcx
callq 0x6e70
jmp 0x143d1
movl 0x10(%r14), %edx
movl 0x14(%r14), %ecx
incl %edx
movq %rbx, %rdi
movq %r15, %rsi
xorl %eax, %eax
callq 0x6a90
movl 0x28(%r14), %edx
movl 0x2c(%r14), %ecx
incl %edx
movq %rbx, %rdi
leaq 0x7a0a3(%rip), %rsi     # 0x8e3e9
xorl %eax, %eax
callq 0x6a90
movslq 0x38(%r14), %rax
testq %rax, %rax
jle 0x14385
movq 0x40(%r14), %rcx
movq 0x48(%r14), %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 0x14362
xorps %xmm0, %xmm0
cvtsi2sd %edi, %xmm0
jmp 0x14389
xorpd %xmm0, %xmm0
xorps %xmm1, %xmm1
cvtsi2sd %eax, %xmm1
divsd %xmm1, %xmm0
mulsd 0x79e44(%rip), %xmm0    # 0x8e1e0
movq %rbx, %rdi
movq %r12, %rsi
movb $0x1, %al
callq 0x6a90
cmpb $0x2d, 0x18(%r14)
movq %rbp, %rdi
leaq 0x7a045(%rip), %rax     # 0x8e3fd
cmoveq %rax, %rdi
movl $0x3, %esi
movl $0x1, %edx
movq %rbx, %rcx
callq 0x6e70
movq (%r14), %r14
testq %r14, %r14
jne 0x1431b
movq (%r13), %r13
testq %r13, %r13
jne 0x14222
movq 0x8(%rsp), %rdi
addq $0x18, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x1b0e3