// File: /workspace/github_c_makefile_star2_O0/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
movq %rsp, %rbp
subq $0xb0, %rsp
movq %rdi, -0x8(%rbp)
movl %esi, -0xc(%rbp)
movq %rdx, -0x18(%rbp)
movq %rcx, -0x20(%rbp)
movl %r8d, -0x24(%rbp)
movl %r9d, -0x28(%rbp)
movq -0x8(%rbp), %rax
movl 0x10(%rax), %eax
movl %eax, -0x2c(%rbp)
movq -0x8(%rbp), %rax
movl 0x28(%rax), %eax
movl %eax, -0x30(%rbp)
movq -0x8(%rbp), %rax
movl 0x14(%rax), %edi
callq 0x47630
movl %eax, -0x38(%rbp)
movq -0x8(%rbp), %rax
movl 0x2c(%rax), %edi
callq 0x47630
movl %eax, -0x3c(%rbp)
movl -0x38(%rbp), %eax
cmpl -0x3c(%rbp), %eax
jle 0x232b4
movl -0x38(%rbp), %eax
movl %eax, -0x60(%rbp)
jmp 0x232ba
movl -0x3c(%rbp), %eax
movl %eax, -0x60(%rbp)
movl -0x60(%rbp), %eax
movl %eax, -0x40(%rbp)
movq -0x8(%rbp), %rax
movl 0x14(%rax), %eax
movq -0x8(%rbp), %rcx
addl 0x10(%rcx), %eax
movl %eax, -0x44(%rbp)
movq -0x8(%rbp), %rax
movl 0x2c(%rax), %eax
movq -0x8(%rbp), %rcx
addl 0x28(%rcx), %eax
movl %eax, -0x48(%rbp)
movl $0x0, -0x34(%rbp)
movl -0x34(%rbp), %eax
movq -0x8(%rbp), %rcx
cmpl 0x38(%rcx), %eax
jge 0x235ca
movq -0x8(%rbp), %rax
movl 0x38(%rax), %eax
subl -0x34(%rbp), %eax
movl %eax, -0x4c(%rbp)
movl -0x4c(%rbp), %eax
cmpl -0xc(%rbp), %eax
jle 0x23314
movl -0xc(%rbp), %eax
movl %eax, -0x4c(%rbp)
movl -0x34(%rbp), %eax
addl -0x4c(%rbp), %eax
movl %eax, -0x50(%rbp)
movq -0x20(%rbp), %rax
movq %rax, -0x70(%rbp)
movl -0x40(%rbp), %eax
movl %eax, -0x64(%rbp)
cmpl $0x0, -0x28(%rbp)
je 0x2333c
movl -0x44(%rbp), %eax
subl -0x2c(%rbp), %eax
movl %eax, -0x74(%rbp)
jmp 0x23345
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x74(%rbp)
movl -0x64(%rbp), %edx
movq -0x70(%rbp), %rdi
movl -0x74(%rbp), %ecx
leaq 0xb5632(%rip), %rsi     # 0xd8988
movb $0x0, %al
callq 0x6a80
movl -0x34(%rbp), %eax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %eax
cmpl -0x50(%rbp), %eax
jge 0x233b2
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rax
movslq -0x54(%rbp), %rcx
movb (%rax,%rcx), %al
movb %al, -0x55(%rbp)
movsbl -0x55(%rbp), %edi
movq -0x20(%rbp), %rsi
callq 0x6910
movsbl -0x55(%rbp), %eax
cmpl $0x2e, %eax
je 0x233a5
movsbl -0x55(%rbp), %eax
cmpl $0x2d, %eax
je 0x233a5
movl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x2c(%rbp)
jmp 0x233a7
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0x23363
movq -0x20(%rbp), %rax
movq %rax, -0x80(%rbp)
movl -0x40(%rbp), %eax
movl %eax, -0x78(%rbp)
cmpl $0x0, -0x28(%rbp)
je 0x233d7
movl -0x44(%rbp), %eax
subl -0x2c(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x84(%rbp)
jmp 0x233e0
movl -0x2c(%rbp), %eax
movl %eax, -0x84(%rbp)
movl -0x78(%rbp), %edx
movq -0x80(%rbp), %rdi
movl -0x84(%rbp), %ecx
leaq 0xb559a(%rip), %rsi     # 0xd898e
movb $0x0, %al
callq 0x6a80
movq -0x20(%rbp), %rdi
movl -0x40(%rbp), %esi
addl $0x1, %esi
callq 0x2f010
movl -0x34(%rbp), %eax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %eax
cmpl -0x50(%rbp), %eax
jge 0x234a1
movq -0x8(%rbp), %rax
movq 0x40(%rax), %rax
movslq -0x54(%rbp), %rcx
movb (%rax,%rcx), %al
movb %al, -0x56(%rbp)
movq -0x8(%rbp), %rax
movq 0x48(%rax), %rax
movslq -0x54(%rbp), %rcx
movb (%rax,%rcx), %al
movb %al, -0x57(%rbp)
movb $0x20, -0x58(%rbp)
movsbl -0x56(%rbp), %eax
movsbl -0x57(%rbp), %ecx
cmpl %ecx, %eax
jne 0x23456
movb $0x7c, -0x58(%rbp)
jmp 0x23486
cmpq $0x0, -0x18(%rbp)
je 0x23484
movq -0x18(%rbp), %rax
addq $0x8, %rax
movsbl -0x56(%rbp), %ecx
movslq %ecx, %rcx
shlq $0xa, %rcx
addq %rcx, %rax
movsbl -0x57(%rbp), %ecx
movslq %ecx, %rcx
cmpl $0x0, (%rax,%rcx,4)
jle 0x23484
movb $0x2b, -0x58(%rbp)
jmp 0x23486
movsbl -0x58(%rbp), %edi
movq -0x20(%rbp), %rsi
callq 0x6910
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0x23410
movq -0x20(%rbp), %rsi
movl $0xa, %edi
callq 0x6910
movq -0x20(%rbp), %rax
movq %rax, -0x90(%rbp)
movl -0x40(%rbp), %eax
movl %eax, -0x88(%rbp)
cmpl $0x0, -0x24(%rbp)
je 0x234d7
movl -0x48(%rbp), %eax
subl -0x30(%rbp), %eax
movl %eax, -0x94(%rbp)
jmp 0x234e3
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x94(%rbp)
movl -0x88(%rbp), %edx
movq -0x90(%rbp), %rdi
movl -0x94(%rbp), %ecx
leaq 0xb548b(%rip), %rsi     # 0xd8988
movb $0x0, %al
callq 0x6a80
movl -0x34(%rbp), %eax
movl %eax, -0x54(%rbp)
movl -0x54(%rbp), %eax
cmpl -0x50(%rbp), %eax
jge 0x23559
movq -0x8(%rbp), %rax
movq 0x48(%rax), %rax
movslq -0x54(%rbp), %rcx
movb (%rax,%rcx), %al
movb %al, -0x59(%rbp)
movsbl -0x59(%rbp), %edi
movq -0x20(%rbp), %rsi
callq 0x6910
movsbl -0x59(%rbp), %eax
cmpl $0x2e, %eax
je 0x2354c
movsbl -0x59(%rbp), %eax
cmpl $0x2d, %eax
je 0x2354c
movl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x30(%rbp)
jmp 0x2354e
movl -0x54(%rbp), %eax
addl $0x1, %eax
movl %eax, -0x54(%rbp)
jmp 0x2350a
movq -0x20(%rbp), %rax
movq %rax, -0xa0(%rbp)
movl -0x40(%rbp), %eax
movl %eax, -0x98(%rbp)
cmpl $0x0, -0x24(%rbp)
je 0x23584
movl -0x48(%rbp), %eax
subl -0x30(%rbp), %eax
addl $0x1, %eax
movl %eax, -0xa4(%rbp)
jmp 0x2358d
movl -0x30(%rbp), %eax
movl %eax, -0xa4(%rbp)
movl -0x98(%rbp), %edx
movq -0xa0(%rbp), %rdi
movl -0xa4(%rbp), %ecx
leaq 0xb53e7(%rip), %rsi     # 0xd898e
movb $0x0, %al
callq 0x6a80
movq -0x20(%rbp), %rsi
movl $0xa, %edi
callq 0x6910
movl -0xc(%rbp), %eax
addl -0x34(%rbp), %eax
movl %eax, -0x34(%rbp)
jmp 0x232e9
addq $0xb0, %rsp
popq %rbp
retq
nopw %cs:(%rax,%rax)