// File: /workspace/github_c_makefile_star2_O0/icebert[P]pblat/lib/blastOut.c
// Function: blastiodAxtOutput
static void blastiodAxtOutput(FILE *f, struct axt *axt, int tSize, int qSize, 
	int lineSize, boolean isProt, boolean isTranslated)
/* Output base-by-base part of alignment in blast-like fashion. */
{
int tOff = axt->tStart;
int dt = (isTranslated ? 3 : 1);
int qOff = axt->qStart;
int lineStart, lineEnd, i;
int digits = calcDigitCount(axt, tSize, qSize);
struct axtScoreScheme *ss = NULL;

if (isProt)
    ss = axtScoreSchemeProteinDefault();
for (lineStart = 0; lineStart < axt->symCount; lineStart = lineEnd)
    {
    lineEnd = lineStart + lineSize;
    if (lineEnd > axt->symCount) lineEnd = axt->symCount;
    fprintf(f, "Query: %-*d ", digits, plusStrandPos(qOff, qSize, axt->qStrand, FALSE));
    for (i=lineStart; i<lineEnd; ++i)
	{
	char c = axt->qSym[i];
	fputc(c, f);
	if (c != '-')
	    ++qOff;
	}
    fprintf(f, " %-d\n", plusStrandPos(qOff, qSize, axt->qStrand, TRUE));
    fprintf(f, "       %*s ", digits, " ");
    for (i=lineStart; i<lineEnd; ++i)
        {
	char q, t, c;
	q = axt->qSym[i];
	t = axt->tSym[i];
	if (isProt)
	    {
	    if (q == t)
	        c = q;
	    else if (ss->matrix[(int)q][(int)t] > 0)
	        c = '+';
	    else
	        c = ' ';
	    }
	else
	    c = ((toupper(q) == toupper(t)) ? '|' : ' ');

	fputc(c, f);
	}
    fprintf(f, "\n");
    fprintf(f, "Sbjct: %-*d ", digits, plusStrandPos(tOff, tSize, axt->tStrand, FALSE));
    for (i=lineStart; i<lineEnd; ++i)
	{
	char c = axt->tSym[i];
	fputc(c, f);
	if (c != '-')
	    tOff += dt;
	}
    fprintf(f, " %-d\n", plusStrandPos(tOff, tSize, axt->tStrand, TRUE));
    fprintf(f, "\n");
    }
}

// Assembly:
pushq %rbp
movq %rsp, %rbp
subq $0x80, %rsp
movl 0x10(%rbp), %eax
movq %rdi, -0x8(%rbp)
movq %rsi, -0x10(%rbp)
movl %edx, -0x14(%rbp)
movl %ecx, -0x18(%rbp)
movl %r8d, -0x1c(%rbp)
movl %r9d, -0x20(%rbp)
movq -0x10(%rbp), %rax
movl 0x28(%rax), %eax
movl %eax, -0x24(%rbp)
movl 0x10(%rbp), %edx
movl $0x1, %eax
movl $0x3, %ecx
cmpl $0x0, %edx
cmovnel %ecx, %eax
movl %eax, -0x28(%rbp)
movq -0x10(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, -0x2c(%rbp)
movq -0x10(%rbp), %rdi
movl -0x14(%rbp), %esi
movl -0x18(%rbp), %edx
callq 0x27800
movl %eax, -0x3c(%rbp)
movq $0x0, -0x48(%rbp)
cmpl $0x0, -0x20(%rbp)
je 0x27429
movb $0x0, %al
callq 0x22580
movq %rax, -0x48(%rbp)
movl $0x0, -0x30(%rbp)
movl -0x30(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x38(%rcx), %eax
jge 0x276e6
movl -0x30(%rbp), %eax
addl -0x1c(%rbp), %eax
movl %eax, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq -0x10(%rbp), %rcx
cmpl 0x38(%rcx), %eax
jle 0x2745f
movq -0x10(%rbp), %rax
movl 0x38(%rax), %eax
movl %eax, -0x34(%rbp)
movq -0x8(%rbp), %rax
movq %rax, -0x60(%rbp)
movl -0x3c(%rbp), %eax
movl %eax, -0x54(%rbp)
movl -0x2c(%rbp), %edi
movl -0x18(%rbp), %esi
movq -0x10(%rbp), %rax
xorl %ecx, %ecx
movsbl 0x18(%rax), %edx
callq 0x278a0
movq -0x60(%rbp), %rdi
movl -0x54(%rbp), %edx
movl %eax, %ecx
leaq 0xb1c41(%rip), %rsi     # 0xd90d3
movb $0x0, %al
callq 0x6a80
movl -0x30(%rbp), %eax
movl %eax, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpl -0x34(%rbp), %eax
jge 0x274e5
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movslq -0x38(%rbp), %rcx
movb (%rax,%rcx), %al
movb %al, -0x49(%rbp)
movsbl -0x49(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x6910
movsbl -0x49(%rbp), %eax
cmpl $0x2d, %eax
je 0x274d8
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x274da
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x2749f
movq -0x8(%rbp), %rax
movq %rax, -0x68(%rbp)
movl -0x2c(%rbp), %edi
movl -0x18(%rbp), %esi
movq -0x10(%rbp), %rax
movl $0x1, %ecx
movsbl 0x18(%rax), %edx
callq 0x278a0
movq -0x68(%rbp), %rdi
movl %eax, %edx
leaq 0xb1bce(%rip), %rsi     # 0xd90e0
movb $0x0, %al
callq 0x6a80
movq -0x8(%rbp), %rdi
movl -0x3c(%rbp), %edx
leaq 0xb1bbf(%rip), %rsi     # 0xd90e6
leaq 0xb0dfc(%rip), %rcx     # 0xd832a
movb $0x0, %al
callq 0x6a80
movl -0x30(%rbp), %eax
movl %eax, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpl -0x34(%rbp), %eax
jge 0x275fd
movq -0x10(%rbp), %rax
movq 0x40(%rax), %rax
movslq -0x38(%rbp), %rcx
movb (%rax,%rcx), %al
movb %al, -0x4a(%rbp)
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movslq -0x38(%rbp), %rcx
movb (%rax,%rcx), %al
movb %al, -0x4b(%rbp)
cmpl $0x0, -0x20(%rbp)
je 0x275b6
movsbl -0x4a(%rbp), %eax
movsbl -0x4b(%rbp), %ecx
cmpl %ecx, %eax
jne 0x27585
movb -0x4a(%rbp), %al
movb %al, -0x4c(%rbp)
jmp 0x275b4
movq -0x48(%rbp), %rax
addq $0x8, %rax
movsbl -0x4a(%rbp), %ecx
movslq %ecx, %rcx
shlq $0xa, %rcx
addq %rcx, %rax
movsbl -0x4b(%rbp), %ecx
movslq %ecx, %rcx
cmpl $0x0, (%rax,%rcx,4)
jle 0x275ae
movb $0x2b, -0x4c(%rbp)
jmp 0x275b2
movb $0x20, -0x4c(%rbp)
jmp 0x275b4
jmp 0x275e2
movsbl -0x4a(%rbp), %edi
callq 0x6de0
movl %eax, -0x6c(%rbp)
movsbl -0x4b(%rbp), %edi
callq 0x6de0
movl -0x6c(%rbp), %edx
movl %eax, %esi
movl $0x20, %eax
movl $0x7c, %ecx
cmpl %esi, %edx
cmovel %ecx, %eax
movb %al, -0x4c(%rbp)
movsbl -0x4c(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x6910
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x2753b
movq -0x8(%rbp), %rdi
leaq 0xb1a11(%rip), %rsi     # 0xd9019
movb $0x0, %al
callq 0x6a80
movq -0x8(%rbp), %rax
movq %rax, -0x78(%rbp)
movl -0x3c(%rbp), %eax
movl %eax, -0x70(%rbp)
movl -0x24(%rbp), %edi
movl -0x14(%rbp), %esi
movq -0x10(%rbp), %rax
xorl %ecx, %ecx
movsbl 0x30(%rax), %edx
callq 0x278a0
movq -0x78(%rbp), %rdi
movl -0x70(%rbp), %edx
movl %eax, %ecx
leaq 0xb1ab0(%rip), %rsi     # 0xd90f2
movb $0x0, %al
callq 0x6a80
movl -0x30(%rbp), %eax
movl %eax, -0x38(%rbp)
movl -0x38(%rbp), %eax
cmpl -0x34(%rbp), %eax
jge 0x27695
movq -0x10(%rbp), %rax
movq 0x48(%rax), %rax
movslq -0x38(%rbp), %rcx
movb (%rax,%rcx), %al
movb %al, -0x4d(%rbp)
movsbl -0x4d(%rbp), %edi
movq -0x8(%rbp), %rsi
callq 0x6910
movsbl -0x4d(%rbp), %eax
cmpl $0x2d, %eax
je 0x27688
movl -0x28(%rbp), %eax
addl -0x24(%rbp), %eax
movl %eax, -0x24(%rbp)
jmp 0x2768a
movl -0x38(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x38(%rbp)
jmp 0x2764f
movq -0x8(%rbp), %rax
movq %rax, -0x80(%rbp)
movl -0x24(%rbp), %edi
movl -0x14(%rbp), %esi
movq -0x10(%rbp), %rax
movl $0x1, %ecx
movsbl 0x30(%rax), %edx
callq 0x278a0
movq -0x80(%rbp), %rdi
movl %eax, %edx
leaq 0xb1a1e(%rip), %rsi     # 0xd90e0
movb $0x0, %al
callq 0x6a80
movq -0x8(%rbp), %rdi
leaq 0xb1945(%rip), %rsi     # 0xd9019
movb $0x0, %al
callq 0x6a80
movl -0x34(%rbp), %eax
movl %eax, -0x30(%rbp)
jmp 0x27430
addq $0x80, %rsp
popq %rbp
retq
nop