// File: /workspace/github_c_makefile_star2_O1/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 0x3657e
movl $0x88, %edi
callq 0x2dc95
movq %rax, %r14
movq %rsp, %r15
movq %r15, %rdi
callq 0x3d6c3
movl %eax, 0x8(%r14)
movq %r15, %rdi
callq 0x3d6c3
movl %eax, 0xc(%r14)
movq %r15, %rdi
callq 0x3d6c3
movl %eax, 0x10(%r14)
movq %r15, %rdi
callq 0x3d6c3
movl %eax, 0x14(%r14)
movq %r15, %rdi
callq 0x3d6c3
movl %eax, 0x18(%r14)
movq %r15, %rdi
callq 0x3d6f2
movl %eax, 0x1c(%r14)
movq %r15, %rdi
callq 0x3d6c3
movl %eax, 0x20(%r14)
movq %r15, %rdi
callq 0x3d6f2
movl %eax, 0x24(%r14)
leaq 0x28(%r14), %rsi
movq %r15, %rdi
movl $0x3, %edx
callq 0x3d884
movq %r15, %rdi
callq 0x3d7de
movq %rax, 0x30(%r14)
movq %r15, %rdi
callq 0x3d6c3
movl %eax, 0x38(%r14)
movq %r15, %rdi
callq 0x3d6c3
movl %eax, 0x3c(%r14)
movq %r15, %rdi
callq 0x3d6c3
movl %eax, 0x40(%r14)
movq %r15, %rdi
callq 0x3d7de
movq %rax, 0x48(%r14)
movq %r15, %rdi
callq 0x3d6c3
movl %eax, 0x50(%r14)
movq %r15, %rdi
callq 0x3d6c3
movl %eax, 0x54(%r14)
movq %r15, %rdi
callq 0x3d6c3
movl %eax, 0x58(%r14)
movq %r15, %rdi
callq 0x3d6c3
movl %eax, 0x5c(%r14)
movq (%r15), %rdi
movl $0x7b, %esi
callq 0x3d8a7
movq %rax, (%r15)
movl 0x5c(%r14), %edi
shlq $0x2, %rdi
callq 0x2db04
movq %rax, 0x60(%r14)
cmpl $0x0, 0x5c(%r14)
je 0x366a8
xorl %r12d, %r12d
movq %rsp, %r15
movq %r15, %rdi
callq 0x3d6c3
movq 0x60(%r14), %rcx
movl %eax, (%rcx,%r12,4)
incq %r12
movl 0x5c(%r14), %eax
cmpq %rax, %r12
jb 0x3668c
movq (%rsp), %rdi
movl $0x7d, %esi
callq 0x3d8a7
movq %rax, (%rsp)
movq %rax, %rdi
movl $0x2c, %esi
callq 0x3d8a7
movq %rax, (%rsp)
movq %rax, %rdi
movl $0x7b, %esi
callq 0x3d8a7
movq %rax, (%rsp)
movl 0x5c(%r14), %edi
shlq $0x2, %rdi
callq 0x2db04
movq %rax, 0x68(%r14)
cmpl $0x0, 0x5c(%r14)
je 0x36716
xorl %r12d, %r12d
movq %rsp, %r15
movq %r15, %rdi
callq 0x3d6c3
movq 0x68(%r14), %rcx
movl %eax, (%rcx,%r12,4)
incq %r12
movl 0x5c(%r14), %eax
cmpq %rax, %r12
jb 0x366fa
movq (%rsp), %rdi
movl $0x7d, %esi
callq 0x3d8a7
movq %rax, (%rsp)
movq %rax, %rdi
movl $0x2c, %esi
callq 0x3d8a7
movq %rax, (%rsp)
movq %rax, %rdi
movl $0x7b, %esi
callq 0x3d8a7
movq %rax, (%rsp)
movl 0x5c(%r14), %edi
shlq $0x2, %rdi
callq 0x2db04
movq %rax, 0x70(%r14)
cmpl $0x0, 0x5c(%r14)
je 0x36784
xorl %r12d, %r12d
movq %rsp, %r15
movq %r15, %rdi
callq 0x3d6c3
movq 0x70(%r14), %rcx
movl %eax, (%rcx,%r12,4)
incq %r12
movl 0x5c(%r14), %eax
cmpq %rax, %r12
jb 0x36768
movq (%rsp), %rdi
movl $0x7d, %esi
callq 0x3d8a7
movq %rax, (%rsp)
movq %rax, %rdi
movl $0x2c, %esi
callq 0x3d8a7
movq %rax, (%rsp)
movq %rax, (%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq