// File: /workspace/github_c_makefile_star2_O2/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 0x30ddc
movl $0x88, %edi
callq 0x28bb0
movq %rax, %r14
movq %rsp, %r15
movq %r15, %rdi
callq 0x37a9b
movl %eax, 0x8(%r14)
movq %r15, %rdi
callq 0x37a9b
movl %eax, 0xc(%r14)
movq %r15, %rdi
callq 0x37a9b
movl %eax, 0x10(%r14)
movq %r15, %rdi
callq 0x37a9b
movl %eax, 0x14(%r14)
movq %r15, %rdi
callq 0x37a9b
movl %eax, 0x18(%r14)
movq %r15, %rdi
callq 0x37ac8
movl %eax, 0x1c(%r14)
movq %r15, %rdi
callq 0x37a9b
movl %eax, 0x20(%r14)
movq %r15, %rdi
callq 0x37ac8
movl %eax, 0x24(%r14)
leaq 0x28(%r14), %rsi
pushq $0x3
popq %rdx
movq %r15, %rdi
callq 0x37c50
movq %r15, %rdi
callq 0x37baa
movq %rax, 0x30(%r14)
movq %r15, %rdi
callq 0x37a9b
movl %eax, 0x38(%r14)
movq %r15, %rdi
callq 0x37a9b
movl %eax, 0x3c(%r14)
movq %r15, %rdi
callq 0x37a9b
movl %eax, 0x40(%r14)
movq %r15, %rdi
callq 0x37baa
movq %rax, 0x48(%r14)
movq %r15, %rdi
callq 0x37a9b
movl %eax, 0x50(%r14)
movq %r15, %rdi
callq 0x37a9b
movl %eax, 0x54(%r14)
movq %r15, %rdi
callq 0x37a9b
movl %eax, 0x58(%r14)
movq %r15, %rdi
callq 0x37a9b
movl %eax, 0x5c(%r14)
movq (%r15), %rdi
pushq $0x7b
popq %rsi
callq 0x37c73
movq %rax, (%r15)
movl 0x5c(%r14), %edi
shlq $0x2, %rdi
callq 0x28a1f
movq %rax, 0x60(%r14)
xorl %r12d, %r12d
movl 0x5c(%r14), %eax
cmpq %rax, %r12
jae 0x30efa
movq %r15, %rdi
callq 0x37a9b
movq 0x60(%r14), %rcx
movl %eax, (%rcx,%r12,4)
incq %r12
jmp 0x30edc
movq %rsp, %r15
movq (%r15), %rdi
pushq $0x7d
popq %rsi
callq 0x37c73
movq %rax, (%r15)
pushq $0x2c
popq %rsi
movq %rax, %rdi
callq 0x37c73
movq %rax, (%r15)
pushq $0x7b
popq %rsi
movq %rax, %rdi
callq 0x37c73
movq %rax, (%r15)
movl 0x5c(%r14), %edi
shlq $0x2, %rdi
callq 0x28a1f
movq %rax, 0x68(%r14)
xorl %r12d, %r12d
movl 0x5c(%r14), %eax
cmpq %rax, %r12
jae 0x30f59
movq %r15, %rdi
callq 0x37a9b
movq 0x68(%r14), %rcx
movl %eax, (%rcx,%r12,4)
incq %r12
jmp 0x30f3b
movq %rsp, %r15
movq (%r15), %rdi
pushq $0x7d
popq %rsi
callq 0x37c73
movq %rax, (%r15)
pushq $0x2c
popq %rsi
movq %rax, %rdi
callq 0x37c73
movq %rax, (%r15)
pushq $0x7b
popq %rsi
movq %rax, %rdi
callq 0x37c73
movq %rax, (%r15)
movl 0x5c(%r14), %edi
shlq $0x2, %rdi
callq 0x28a1f
movq %rax, 0x70(%r14)
xorl %r12d, %r12d
movl 0x5c(%r14), %eax
cmpq %rax, %r12
jae 0x30fb8
movq %r15, %rdi
callq 0x37a9b
movq 0x70(%r14), %rcx
movl %eax, (%rcx,%r12,4)
incq %r12
jmp 0x30f9a
movq (%rsp), %rdi
pushq $0x7d
popq %rsi
callq 0x37c73
movq %rax, (%rsp)
pushq $0x2c
popq %rsi
movq %rax, %rdi
callq 0x37c73
movq %rax, (%rbx)
movq %r14, %rax
addq $0x8, %rsp
popq %rbx
popq %r12
popq %r14
popq %r15
retq