// File: /workspace/github_c_makefile_star2_O2/icebert[P]pblat/lib/psl.c
// Function: pslOutput
void pslOutput(struct psl *el, FILE *f, char sep, char lastSep) 
/* Print out psl.  Separate fields with sep. Follow last field with lastSep. */
{
int i;
fprintf(f, "%u", el->match);
fputc(sep,f);
fprintf(f, "%u", el->misMatch);
fputc(sep,f);
fprintf(f, "%u", el->repMatch);
fputc(sep,f);
fprintf(f, "%u", el->nCount);
fputc(sep,f);
fprintf(f, "%u", el->qNumInsert);
fputc(sep,f);
fprintf(f, "%d", el->qBaseInsert);
fputc(sep,f);
fprintf(f, "%u", el->tNumInsert);
fputc(sep,f);
fprintf(f, "%d", el->tBaseInsert);
fputc(sep,f);
if (sep == ',') fputc('"',f);
fprintf(f, "%s", el->strand);
if (sep == ',') fputc('"',f);
fputc(sep,f);
if (sep == ',') fputc('"',f);
fprintf(f, "%s", el->qName);
if (sep == ',') fputc('"',f);
fputc(sep,f);
fprintf(f, "%u", el->qSize);
fputc(sep,f);
fprintf(f, "%u", el->qStart);
fputc(sep,f);
fprintf(f, "%u", el->qEnd);
fputc(sep,f);
if (sep == ',') fputc('"',f);
fprintf(f, "%s", el->tName);
if (sep == ',') fputc('"',f);
fputc(sep,f);
fprintf(f, "%u", el->tSize);
fputc(sep,f);
fprintf(f, "%u", el->tStart);
fputc(sep,f);
fprintf(f, "%u", el->tEnd);
fputc(sep,f);
fprintf(f, "%u", el->blockCount);
fputc(sep,f);
if (sep == ',') fputc('{',f);
for (i=0; i<el->blockCount; ++i)
    {
    fprintf(f, "%u", el->blockSizes[i]);
    fputc(',', f);
    }
if (sep == ',') fputc('}',f);
fputc(sep,f);
if (sep == ',') fputc('{',f);
for (i=0; i<el->blockCount; ++i)
    {
    fprintf(f, "%u", el->qStarts[i]);
    fputc(',', f);
    }
if (sep == ',') fputc('}',f);
fputc(sep,f);
if (sep == ',') fputc('{',f);
for (i=0; i<el->blockCount; ++i)
    {
    fprintf(f, "%u", el->tStarts[i]);
    fputc(',', f);
    }
if (sep == ',') fputc('}',f);
if (el->qSequence)
    {
    fputc(sep,f);
    if (sep == ',') fputc('{',f);
    for (i=0; i<el->blockCount; ++i)
	{
	fprintf(f, "%s", el->qSequence[i]);
	fputc(',', f);
	}
    if (sep == ',') fputc('}',f);
    fputc(sep,f);
    if (sep == ',') fputc('{',f);
    for (i=0; i<el->blockCount; ++i)
	{
	fprintf(f, "%s", el->tSequence[i]);
	fputc(',', f);
	}
    if (sep == ',') fputc('}',f);
    }

fputc(lastSep,f);
if (ferror(f))
    {
    perror("Error writing psl file\n");
    errAbort("\n");
    }
}

// Assembly:
pushq %rbp
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
pushq %rax
movl %ecx, 0x4(%rsp)
movl %edx, %r14d
movq %rsi, %rbx
movq %rdi, %r15
movl 0x8(%rdi), %edx
leaq 0x50a2c(%rip), %r12     # 0x81af9
movq %rsi, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x6a90
movl %r14d, %edi
movq %rbx, %rsi
callq 0x6930
movl 0xc(%r15), %edx
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x6a90
movl %r14d, %edi
movq %rbx, %rsi
callq 0x6930
movl 0x10(%r15), %edx
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x6a90
movl %r14d, %edi
movq %rbx, %rsi
callq 0x6930
movl 0x14(%r15), %edx
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x6a90
movl %r14d, %edi
movq %rbx, %rsi
callq 0x6930
movl 0x18(%r15), %edx
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x6a90
movl %r14d, %edi
movq %rbx, %rsi
callq 0x6930
movl 0x1c(%r15), %edx
leaq 0x4da26(%rip), %r13     # 0x7eb86
movq %rbx, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x6a90
movl %r14d, %edi
movq %rbx, %rsi
callq 0x6930
movl 0x20(%r15), %edx
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x6a90
movl %r14d, %edi
movq %rbx, %rsi
callq 0x6930
movl 0x24(%r15), %edx
movq %rbx, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x6a90
movl %r14d, %edi
movq %rbx, %rsi
callq 0x6930
cmpb $0x2c, %r14b
jne 0x311db
pushq $0x22
popq %rbp
movl %ebp, %edi
movq %rbx, %rsi
callq 0x6930
leaq 0x28(%r15), %rdi
movq %rbx, %rsi
callq 0x6810
movl %ebp, %edi
movq %rbx, %rsi
callq 0x6930
jmp 0x311e7
leaq 0x28(%r15), %rdi
movq %rbx, %rsi
callq 0x6810
movl %r14d, %edi
movq %rbx, %rsi
callq 0x6930
cmpb $0x2c, %r14b
jne 0x3121d
pushq $0x22
popq %rbp
movl %ebp, %edi
movq %rbx, %rsi
callq 0x6930
movq 0x30(%r15), %rdi
movq %rbx, %rsi
callq 0x6810
movl %ebp, %edi
movq %rbx, %rsi
callq 0x6930
jmp 0x31229
movq 0x30(%r15), %rdi
movq %rbx, %rsi
callq 0x6810
movl %r14d, %edi
movq %rbx, %rsi
callq 0x6930
movl 0x38(%r15), %edx
leaq 0x508ba(%rip), %r12     # 0x81af9
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x6a90
movl %r14d, %edi
movq %rbx, %rsi
callq 0x6930
movl 0x3c(%r15), %edx
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x6a90
movl %r14d, %edi
movq %rbx, %rsi
callq 0x6930
movl 0x40(%r15), %edx
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x6a90
movl %r14d, %edi
movq %rbx, %rsi
callq 0x6930
cmpb $0x2c, %r14b
jne 0x312ba
pushq $0x22
popq %rbp
movl %ebp, %edi
movq %rbx, %rsi
callq 0x6930
movq 0x48(%r15), %rdi
movq %rbx, %rsi
callq 0x6810
movl %ebp, %edi
movq %rbx, %rsi
callq 0x6930
jmp 0x312c6
movq 0x48(%r15), %rdi
movq %rbx, %rsi
callq 0x6810
movl %r14d, %edi
movq %rbx, %rsi
callq 0x6930
movl 0x50(%r15), %edx
leaq 0x5081d(%rip), %r12     # 0x81af9
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x6a90
movl %r14d, %edi
movq %rbx, %rsi
callq 0x6930
movl 0x54(%r15), %edx
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x6a90
movl %r14d, %edi
movq %rbx, %rsi
callq 0x6930
movl 0x58(%r15), %edx
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x6a90
movl %r14d, %edi
movq %rbx, %rsi
callq 0x6930
movl 0x5c(%r15), %edx
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x6a90
movl %r14d, %edi
movq %rbx, %rsi
callq 0x6930
cmpb $0x2c, %r14b
jne 0x31359
pushq $0x7b
popq %rdi
movq %rbx, %rsi
callq 0x6930
leaq 0x50799(%rip), %r12     # 0x81af9
pushq $0x2c
popq %rbp
xorl %r13d, %r13d
movl 0x5c(%r15), %eax
cmpq %rax, %r13
jae 0x31393
movq 0x60(%r15), %rax
movl (%rax,%r13,4), %edx
movq %rbx, %rdi
movq %r12, %rsi
xorl %eax, %eax
callq 0x6a90
movl %ebp, %edi
movq %rbx, %rsi
callq 0x6930
incq %r13
jmp 0x31366
movl %r14d, %edi
cmpb $0x2c, %r14b
jne 0x313b5
pushq $0x7d
popq %rdi
movq %rbx, %rsi
callq 0x6930
movl %r14d, %edi
movq %rbx, %rsi
callq 0x6930
pushq $0x7b
popq %rdi
movq %rbx, %rsi
callq 0x6930
leaq 0x50735(%rip), %r13     # 0x81af9
pushq $0x2c
popq %rbp
xorl %r12d, %r12d
movl 0x5c(%r15), %eax
cmpq %rax, %r12
jae 0x313f7
movq 0x68(%r15), %rax
movl (%rax,%r12,4), %edx
movq %rbx, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x6a90
movl %ebp, %edi
movq %rbx, %rsi
callq 0x6930
incq %r12
jmp 0x313ca
movl %r14d, %edi
cmpb $0x2c, %r14b
jne 0x31419
pushq $0x7d
popq %rdi
movq %rbx, %rsi
callq 0x6930
movl %r14d, %edi
movq %rbx, %rsi
callq 0x6930
pushq $0x7b
popq %rdi
movq %rbx, %rsi
callq 0x6930
leaq 0x506d1(%rip), %r13     # 0x81af9
pushq $0x2c
popq %rbp
xorl %r12d, %r12d
movl 0x5c(%r15), %eax
cmpq %rax, %r12
jae 0x3145b
movq 0x70(%r15), %rax
movl (%rax,%r12,4), %edx
movq %rbx, %rdi
movq %r13, %rsi
xorl %eax, %eax
callq 0x6a90
movl %ebp, %edi
movq %rbx, %rsi
callq 0x6930
incq %r12
jmp 0x3142e
cmpb $0x2c, %r14b
jne 0x3146c
pushq $0x7d
popq %rdi
movq %rbx, %rsi
callq 0x6930
cmpq $0x0, 0x78(%r15)
je 0x3152f
movl %r14d, %edi
movq %rbx, %rsi
callq 0x6930
cmpb $0x2c, %r14b
jne 0x31493
pushq $0x7b
popq %rdi
movq %rbx, %rsi
callq 0x6930
xorl %r12d, %r12d
pushq $0x2c
popq %rbp
movl 0x5c(%r15), %eax
cmpq %rax, %r12
jae 0x314c1
movq 0x78(%r15), %rax
movq (%rax,%r12,8), %rdi
movq %rbx, %rsi
callq 0x6810
movl %ebp, %edi
movq %rbx, %rsi
callq 0x6930
incq %r12
jmp 0x31499
cmpb $0x2c, %r14b
jne 0x314e2
pushq $0x7d
popq %rdi
movq %rbx, %rsi
callq 0x6930
movl %r14d, %edi
movq %rbx, %rsi
callq 0x6930
pushq $0x7b
popq %rdi
jmp 0x314e5
movl %r14d, %edi
movq %rbx, %rsi
callq 0x6930
xorl %r12d, %r12d
pushq $0x2c
popq %rbp
movl 0x5c(%r15), %eax
cmpq %rax, %r12
jae 0x3151e
movq 0x80(%r15), %rax
movq (%rax,%r12,8), %rdi
movq %rbx, %rsi
callq 0x6810
movl %ebp, %edi
movq %rbx, %rsi
callq 0x6930
incq %r12
jmp 0x314f3
cmpb $0x2c, %r14b
jne 0x3152f
pushq $0x7d
popq %rdi
movq %rbx, %rsi
callq 0x6930
movsbl 0x4(%rsp), %edi
movq %rbx, %rsi
callq 0x6930
movq %rbx, %rdi
callq 0x6e00
testl %eax, %eax
jne 0x31557
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
retq
leaq 0x5182e(%rip), %rdi     # 0x82d8c
callq 0x6590
leaq 0x4cc27(%rip), %rdi     # 0x7e191
xorl %eax, %eax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
popq %rbp
jmp 0x223fb