// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/lib/axt.c
// Function: axtPrintTraditionalExtra
void axtPrintTraditionalExtra(struct axt *axt, int maxLine,
			      struct axtScoreScheme *ss, FILE *f,
			      boolean reverseTPos, boolean reverseQPos)
/* Print out an alignment with line-breaks.  If reverseTPos is true, then
 * the sequence has been reverse complemented, so show the coords starting
 * at tEnd and decrementing down to tStart; likewise for reverseQPos. */
{
int qPos = axt->qStart;
int tPos = axt->tStart;
int symPos;
int aDigits = digitsBaseTen(axt->qEnd);
int bDigits = digitsBaseTen(axt->tEnd);
int digits = max(aDigits, bDigits);
int qFlipOff = axt->qEnd + axt->qStart;
int tFlipOff = axt->tEnd + axt->tStart;

for (symPos = 0; symPos < axt->symCount; symPos += maxLine)
    {
    /* Figure out which part of axt to use for this line. */
    int lineSize = axt->symCount - symPos;
    int lineEnd, i;
    if (lineSize > maxLine)
        lineSize = maxLine;
    lineEnd = symPos + lineSize;

    /* Draw query line including numbers. */
    fprintf(f, "%0*d ", digits, (reverseQPos ? qFlipOff - qPos: qPos+1));
    for (i=symPos; i<lineEnd; ++i)
        {
    char c = axt->qSym[i];
    fputc(c, f);
    if (c != '.' && c != '-')
        ++qPos;
    }
    fprintf(f, " %0*d\n", digits, (reverseQPos? qFlipOff - qPos + 1 : qPos));

    /* Draw line with match/mismatch symbols. */
    spaceOut(f, digits+1);
    for (i=symPos; i<lineEnd; ++i)
        {
    char q = axt->qSym[i];
    char t = axt->tSym[i];
    char out = ' ';
    if (q == t)
        out = '|';
    else if (ss != NULL && ss->matrix[(int)q][(int)t] > 0)
        out = '+';
    fputc(out, f);
    }
    fputc('\n', f);

    /* Draw target line including numbers. */
    fprintf(f, "%0*d ", digits, (reverseTPos ? tFlipOff - tPos : tPos+1));
    for (i=symPos; i<lineEnd; ++i)
        {
    char c = axt->tSym[i];
    fputc(c, f);
    if (c != '.' && c != '-')
        ++tPos;
    }
    fprintf(f, " %0*d\n", digits, (reverseTPos ? tFlipOff - tPos + 1: tPos));

    /* Draw extra empty line. */
    fputc('\n', f);
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
subq $0x78, %rsp
movl %r9d, 0xc(%rsp)
movl %r8d, 0x4(%rsp)
movq %rcx, %r14
movq %rdx, 0x58(%rsp)
movl %esi, 0x8(%rsp)
movq %rdi, %r15
movl 0x10(%rdi), %r12d
movl 0x14(%rdi), %edi
movl 0x28(%r15), %ebx
callq 0x3279c
movl %eax, %r13d
movl 0x2c(%r15), %edi
callq 0x3279c
movl %eax, %ebp
cmpl %eax, %r13d
cmovgl %r13d, %ebp
movl 0x38(%r15), %edx
testl %edx, %edx
jle 0x1b75e
movl 0x10(%r15), %eax
movl 0x28(%r15), %ecx
addl 0x14(%r15), %eax
addl 0x2c(%r15), %ecx
movq %rax, 0x70(%rsp)
incl %eax
movl %eax, 0x44(%rsp)
leal 0x1(%rbp), %eax
movl %eax, 0x40(%rsp)
movq 0x58(%rsp), %rax
addq $0x8, %rax
movq %rax, 0x60(%rsp)
movq %rcx, 0x48(%rsp)
leal 0x1(%rcx), %eax
movl %eax, 0x3c(%rsp)
movslq 0x8(%rsp), %rax
movq %rax, 0x68(%rsp)
xorl %ecx, %ecx
movq %r14, 0x10(%rsp)
movq %r15, 0x20(%rsp)
movq %rbp, 0x28(%rsp)
movq %rbx, 0x50(%rsp)
subl %ecx, %edx
movl 0x8(%rsp), %eax
cmpl %eax, %edx
cmovgel %eax, %edx
movq %rdx, 0x18(%rsp)
movq %rbp, %rdx
movq 0x18(%rsp), %rax
leal (%rax,%rcx), %ebp
movq 0x70(%rsp), %rax
subl %r12d, %eax
movq %rcx, %rbx
leal 0x1(%r12), %ecx
cmpl $0x0, 0xc(%rsp)
cmovnel %eax, %ecx
movq %r14, %rdi
leaq 0x735b1(%rip), %rsi     # 0x8eb10
xorl %eax, %eax
callq 0x6a90
movslq %ebp, %r15
cmpl $0x0, 0x18(%rsp)
movq %rbx, 0x30(%rsp)
jle 0x1b5a8
movq %rbx, %r14
movq 0x10(%rsp), %r13
movq 0x20(%rsp), %rbx
movq 0x40(%rbx), %rax
movsbl (%rax,%r14), %ebp
movl %ebp, %edi
movq %r13, %rsi
callq 0x6930
leal -0x2f(%rbp), %eax
cmpb $-0x2, %al
adcl $0x0, %r12d
incq %r14
cmpq %r15, %r14
jl 0x1b582
jmp 0x1b5ad
movq 0x10(%rsp), %r13
movl 0x44(%rsp), %ecx
subl %r12d, %ecx
cmpl $0x0, 0xc(%rsp)
cmovel %r12d, %ecx
movq %r13, %rdi
leaq 0x7354f(%rip), %rsi     # 0x8eb16
movq 0x28(%rsp), %rbp
movl %ebp, %edx
xorl %eax, %eax
callq 0x6a90
movq %r13, %rdi
movl 0x40(%rsp), %esi
callq 0x22ad1
cmpl $0x0, 0x18(%rsp)
movq %r13, %r14
jle 0x1b6cc
movq 0x30(%rsp), %rbp
movq 0x50(%rsp), %rbx
movq 0x60(%rsp), %r13
cmpq $0x0, 0x58(%rsp)
sete %dl
movq 0x20(%rsp), %rcx
movq 0x40(%rcx), %rax
movq 0x48(%rcx), %rcx
movsbq (%rax,%rbp), %rax
movsbq (%rcx,%rbp), %rcx
movl $0x7c, %edi
cmpb %cl, %al
sete %sil
je 0x1b630
movl $0x20, %edi
orb %dl, %sil
jne 0x1b64c
shlq $0xa, %rax
addq %r13, %rax
cmpl $0x0, (%rax,%rcx,4)
movl $0x2b, %edi
jg 0x1b64c
movl $0x20, %edi
movq %r14, %rsi
callq 0x6930
incq %rbp
cmpq %r15, %rbp
jl 0x1b5fe
movl $0xa, %edi
movq %r14, %rsi
callq 0x6930
movq 0x48(%rsp), %rax
subl %ebx, %eax
leal 0x1(%rbx), %ecx
cmpl $0x0, 0x4(%rsp)
cmovnel %eax, %ecx
movq %r14, %rdi
leaq 0x7348b(%rip), %rsi     # 0x8eb10
movq 0x28(%rsp), %rdx
xorl %eax, %eax
callq 0x6a90
cmpl $0x0, 0x18(%rsp)
jle 0x1b708
movq 0x30(%rsp), %r14
movq 0x10(%rsp), %r13
movq 0x20(%rsp), %rax
movq 0x48(%rax), %rax
movsbl (%rax,%r14), %ebp
movl %ebp, %edi
movq %r13, %rsi
callq 0x6930
leal -0x2f(%rbp), %eax
cmpb $-0x2, %al
adcl $0x0, %ebx
incq %r14
cmpq %r15, %r14
jl 0x1b6a2
jmp 0x1b70d
movl $0xa, %edi
movq %r14, %rsi
callq 0x6930
movq 0x48(%rsp), %rax
movq 0x50(%rsp), %rbx
subl %ebx, %eax
leal 0x1(%rbx), %ecx
cmpl $0x0, 0x4(%rsp)
cmovnel %eax, %ecx
movq %r14, %rdi
leaq 0x73416(%rip), %rsi     # 0x8eb10
movl %ebp, %edx
xorl %eax, %eax
callq 0x6a90
movq %r14, %r13
jmp 0x1b70d
movq 0x10(%rsp), %r13
movl 0x3c(%rsp), %ecx
subl %ebx, %ecx
cmpl $0x0, 0x4(%rsp)
cmovel %ebx, %ecx
movq %r13, %rdi
leaq 0x733f1(%rip), %rsi     # 0x8eb16
movq 0x28(%rsp), %rbp
movl %ebp, %edx
xorl %eax, %eax
callq 0x6a90
movl $0xa, %edi
movq %r13, %rsi
callq 0x6930
movq 0x30(%rsp), %rcx
addq 0x68(%rsp), %rcx
movq 0x20(%rsp), %r15
movl 0x38(%r15), %edx
cmpl %ecx, %edx
movq %r13, %r14
jg 0x1b51d
addq $0x78, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq