// File: /workspace/github_c_makefile_star2_O3/icebert[P]pblat/lib/psl.c
// Function: pslCommaIn
struct psl *pslCommaIn(char **pS, struct psl *ret)
/* Create a psl out of a comma separated string. 
 * This will fill in ret if non-null, otherwise will
 * return a new psl */
{
char *s = *pS;
int i;

if (ret == NULL)
    AllocVar(ret);
ret->match = sqlUnsignedComma(&s);
ret->misMatch = sqlUnsignedComma(&s);
ret->repMatch = sqlUnsignedComma(&s);
ret->nCount = sqlUnsignedComma(&s);
ret->qNumInsert = sqlUnsignedComma(&s);
ret->qBaseInsert = sqlSignedComma(&s);
ret->tNumInsert = sqlUnsignedComma(&s);
ret->tBaseInsert = sqlSignedComma(&s);
sqlFixedStringComma(&s, ret->strand, sizeof(ret->strand));
ret->qName = sqlStringComma(&s);
ret->qSize = sqlUnsignedComma(&s);
ret->qStart = sqlUnsignedComma(&s);
ret->qEnd = sqlUnsignedComma(&s);
ret->tName = sqlStringComma(&s);
ret->tSize = sqlUnsignedComma(&s);
ret->tStart = sqlUnsignedComma(&s);
ret->tEnd = sqlUnsignedComma(&s);
ret->blockCount = sqlUnsignedComma(&s);
s = sqlEatChar(s, '{');
AllocArray(ret->blockSizes, ret->blockCount);
for (i=0; i<ret->blockCount; ++i)
    {
    ret->blockSizes[i] = sqlUnsignedComma(&s);
    }
s = sqlEatChar(s, '}');
s = sqlEatChar(s, ',');
s = sqlEatChar(s, '{');
AllocArray(ret->qStarts, ret->blockCount);
for (i=0; i<ret->blockCount; ++i)
    {
    ret->qStarts[i] = sqlUnsignedComma(&s);
    }
s = sqlEatChar(s, '}');
s = sqlEatChar(s, ',');
s = sqlEatChar(s, '{');
AllocArray(ret->tStarts, ret->blockCount);
for (i=0; i<ret->blockCount; ++i)
    {
    ret->tStarts[i] = sqlUnsignedComma(&s);
    }
s = sqlEatChar(s, '}');
s = sqlEatChar(s, ',');
*pS = s;
return ret;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r12
pushq %rbx
pushq %rax
movq %rsi, %r14
movq %rdi, %rbx
movq (%rdi), %rax
movq %rax, (%rsp)
testq %rsi, %rsi
jne 0x3686a
movl $0x88, %edi
callq 0x2dff4
movq %rax, %r14
movq %rsp, %r15
movq %r15, %rdi
callq 0x3da0b
movl %eax, 0x8(%r14)
movq %r15, %rdi
callq 0x3da0b
movl %eax, 0xc(%r14)
movq %r15, %rdi
callq 0x3da0b
movl %eax, 0x10(%r14)
movq %r15, %rdi
callq 0x3da0b
movl %eax, 0x14(%r14)
movq %r15, %rdi
callq 0x3da0b
movl %eax, 0x18(%r14)
movq %r15, %rdi
callq 0x3da3a
movl %eax, 0x1c(%r14)
movq %r15, %rdi
callq 0x3da0b
movl %eax, 0x20(%r14)
movq %r15, %rdi
callq 0x3da3a
movl %eax, 0x24(%r14)
leaq 0x28(%r14), %rsi
movq %r15, %rdi
movl $0x3, %edx
callq 0x3dbcc
movq %r15, %rdi
callq 0x3db26
movq %rax, 0x30(%r14)
movq %r15, %rdi
callq 0x3da0b
movl %eax, 0x38(%r14)
movq %r15, %rdi
callq 0x3da0b
movl %eax, 0x3c(%r14)
movq %r15, %rdi
callq 0x3da0b
movl %eax, 0x40(%r14)
movq %r15, %rdi
callq 0x3db26
movq %rax, 0x48(%r14)
movq %r15, %rdi
callq 0x3da0b
movl %eax, 0x50(%r14)
movq %r15, %rdi
callq 0x3da0b
movl %eax, 0x54(%r14)
movq %r15, %rdi
callq 0x3da0b
movl %eax, 0x58(%r14)
movq %r15, %rdi
callq 0x3da0b
movl %eax, 0x5c(%r14)
movq (%r15), %rdi
movl $0x7b, %esi
callq 0x3dbef
movq %rax, (%r15)
movl 0x5c(%r14), %edi
shlq $0x2, %rdi
callq 0x2de63
movq %rax, 0x60(%r14)
cmpl $0x0, 0x5c(%r14)
je 0x36994
xorl %r12d, %r12d
movq %rsp, %r15
movq %r15, %rdi
callq 0x3da0b
movq 0x60(%r14), %rcx
movl %eax, (%rcx,%r12,4)
incq %r12
movl 0x5c(%r14), %eax
cmpq %rax, %r12
jb 0x36978
movq (%rsp), %rdi
movl $0x7d, %esi
callq 0x3dbef
movq %rax, (%rsp)
movq %rax, %rdi
movl $0x2c, %esi
callq 0x3dbef
movq %rax, (%rsp)
movq %rax, %rdi
movl $0x7b, %esi
callq 0x3dbef
movq %rax, (%rsp)
movl 0x5c(%r14), %edi
shlq $0x2, %rdi
callq 0x2de63
movq %rax, 0x68(%r14)
cmpl $0x0, 0x5c(%r14)
je 0x36a02
xorl %r12d, %r12d
movq %rsp, %r15
movq %r15, %rdi
callq 0x3da0b
movq 0x68(%r14), %rcx
movl %eax, (%rcx,%r12,4)
incq %r12
movl 0x5c(%r14), %eax
cmpq %rax, %r12
jb 0x369e6
movq (%rsp), %rdi
movl $0x7d, %esi
callq 0x3dbef
movq %rax, (%rsp)
movq %rax, %rdi
movl $0x2c, %esi
callq 0x3dbef
movq %rax, (%rsp)
movq %rax, %rdi
movl $0x7b, %esi
callq 0x3dbef
movq %rax, (%rsp)
movl 0x5c(%r14), %edi
shlq $0x2, %rdi
callq 0x2de63
movq %rax, 0x70(%r14)
cmpl $0x0, 0x5c(%r14)
je 0x36a70
xorl %r12d, %r12d
movq %rsp, %r15
movq %r15, %rdi
callq 0x3da0b
movq 0x70(%r14), %rcx
movl %eax, (%rcx,%r12,4)
incq %r12
movl 0x5c(%r14), %eax
cmpq %rax, %r12
jb 0x36a54
movq (%rsp), %rdi
movl $0x7d, %esi
callq 0x3dbef
movq %rax, (%rsp)
movq %rax, %rdi
movl $0x2c, %esi
callq 0x3dbef
movq %rax, (%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq