// File: /workspace/github_c_makefile_star2_O1/samtools[P]htslib/sam.c
// Function: sam_parse_Bs_vals
HTS_ALIGN32
static char *sam_parse_Bs_vals(bam1_t *b, char *q, uint32_t *nused,
                               uint32_t *nalloc, int *overflow) {
    while (*q == ',') {
        if ((*nused)++ >= (*nalloc)) {
            if (grow_B_array(b, nalloc, 2) < 0)
                return NULL;
        }
        i16_to_le(hts_str2int(q + 1, &q, 16, overflow),
                  b->data + b->l_data);
        b->l_data += 2;
    }
    return q;
}

// Assembly:
pushq %r15
pushq %r14
pushq %r13
pushq %r12
pushq %rbx
movq %rsi, %rbx
cmpb $0x2c, (%rsi)
jne 0x339ef
movq %r8, %r14
movq %rcx, %r15
movq %rdx, %r12
movq %rdi, %r13
movl (%r12), %ecx
leal 0x1(%rcx), %eax
movl %eax, (%r12)
movl (%r15), %eax
cmpl %eax, %ecx
jb 0x33887
cmpl $0x553f7ced, %eax       # imm = 0x553F7CED
jae 0x339b9
andl $0x7ffffffe, %eax       # imm = 0x7FFFFFFE
movslq 0x40(%r13), %rsi
addq %rax, %rsi
setb %al
cmpq $0x7fffffff, %rsi       # imm = 0x7FFFFFFF
ja 0x339c8
testb %al, %al
jne 0x339c8
movl 0x44(%r13), %eax
cmpq %rax, %rsi
jbe 0x3387b
movq %r13, %rdi
callq 0x23476
testl %eax, %eax
js 0x339d3
movl (%r15), %eax
movl %eax, %ecx
shrl %ecx
addl %eax, %ecx
movl %ecx, (%r15)
movzbl 0x1(%rbx), %eax
cmpl $0x2b, %eax
je 0x338d1
cmpl $0x2d, %eax
jne 0x338d7
leaq 0x2(%rbx), %rdi
addq $0x6, %rbx
xorl %ecx, %ecx
xorl %eax, %eax
movzbl (%rdi,%rcx), %edx
leal -0x3a(%rdx), %esi
cmpb $-0xa, %sil
setb %sil
jb 0x33921
leaq (%rax,%rax,4), %rax
leaq (%rdx,%rax,2), %rax
addq $-0x30, %rax
incq %rcx
cmpl $0x4, %ecx
jne 0x338a1
movl $0x8000, %edx           # imm = 0x8000
xorl %esi, %esi
xorl %ecx, %ecx
jmp 0x3392e
addq $0x2, %rbx
jmp 0x338da
incq %rbx
movq %rbx, %rdi
addq $0x4, %rbx
xorl %ecx, %ecx
xorl %eax, %eax
movzbl (%rdi,%rcx), %edx
leal -0x3a(%rdx), %esi
cmpb $-0xa, %sil
setb %sil
jb 0x33915
leaq (%rax,%rax,4), %rax
leaq (%rdx,%rax,2), %rax
addq $-0x30, %rax
incq %rcx
cmpl $0x4, %ecx
jne 0x338e5
movl $0x7fff, %edx           # imm = 0x7FFF
movb $0x1, %cl
xorl %esi, %esi
jmp 0x3392e
addq %rcx, %rdi
movl $0x7fff, %edx           # imm = 0x7FFF
movb $0x1, %cl
jmp 0x3392b
addq %rcx, %rdi
movl $0x8000, %edx           # imm = 0x8000
xorl %ecx, %ecx
movq %rdi, %rbx
testb %sil, %sil
jne 0x33992
movb (%rbx), %sil
cmpb $0x30, %sil
jb 0x33992
movzbl %sil, %edi
addl $-0x30, %edi
cmpl $0x9, %edi
ja 0x33992
leaq -0x7ff8(%rdx), %rsi
movl %edi, %edi
cmpq $0xccc, %rax            # imm = 0xCCC
jb 0x33960
jne 0x33979
cmpq %rdi, %rsi
jb 0x33979
leaq (%rax,%rax,4), %rax
leaq (%rdi,%rax,2), %rax
movzbl 0x1(%rbx), %edi
incq %rbx
addl $-0x30, %edi
cmpl $0xa, %edi
jb 0x3394f
jmp 0x33992
movzbl 0x1(%rbx), %eax
incq %rbx
addl $-0x30, %eax
cmpl $0xa, %eax
jb 0x33979
movl $0x1, (%r14)
movq %rdx, %rax
movl %eax, %edx
negl %edx
testb %cl, %cl
cmovnel %eax, %edx
movq 0x38(%r13), %rax
movslq 0x40(%r13), %rcx
movw %dx, (%rax,%rcx)
leal 0x2(%rcx), %eax
movl %eax, 0x40(%r13)
cmpb $0x2c, (%rbx)
je 0x33821
jmp 0x339ef
callq 0x4050
movl $0xc, (%rax)
xorl %ebx, %ebx
jmp 0x339ef
callq 0x4050
movl $0xc, (%rax)
leaq 0x67c5d(%rip), %rsi     # 0x9b637
leaq 0x66ca4(%rip), %rdx     # 0x9a685
xorl %ebx, %ebx
movl $0x1, %edi
xorl %eax, %eax
callq 0x14378
movq %rbx, %rax
popq %rbx
popq %r12
popq %r13
popq %r14
popq %r15
retq
nopl (%rax)