	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal16,16byte_literals
	.p2align	4                               ## -- Begin function convert_pcm_u8_to_s16l
LCPI0_0:
	.long	4294934528                      ## 0xffff8000
	.long	4294934528                      ## 0xffff8000
	.long	4294934528                      ## 0xffff8000
	.long	4294934528                      ## 0xffff8000
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_convert_pcm_u8_to_s16l:                ## @convert_pcm_u8_to_s16l
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %r11
	testq	%rdx, %rdx
	je	LBB0_18
## %bb.1:
	cmpq	$8, %rdx
	jb	LBB0_11
## %bb.2:
	movq	%r11, %rcx
	subq	%rsi, %rcx
	cmpq	$32, %rcx
	jb	LBB0_11
## %bb.3:
	movq	%rdx, %r8
	andq	$-8, %r8
	leaq	-8(%r8), %rcx
	movq	%rcx, %r9
	shrq	$3, %r9
	incq	%r9
	testq	%rcx, %rcx
	je	LBB0_4
## %bb.5:
	movq	%r9, %r10
	andq	$-2, %r10
	xorl	%ecx, %ecx
	movdqa	LCPI0_0(%rip), %xmm0            ## xmm0 = [4294934528,4294934528,4294934528,4294934528]
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rsi,%rcx,4), %xmm1
	movdqu	16(%rsi,%rcx,4), %xmm2
	movdqa	%xmm1, %xmm3
	pslld	$8, %xmm3
	movdqa	%xmm2, %xmm4
	pslld	$8, %xmm4
	paddd	%xmm0, %xmm3
	paddd	%xmm0, %xmm4
	por	%xmm1, %xmm3
	por	%xmm2, %xmm4
	movdqu	%xmm3, (%r11,%rcx,4)
	movdqu	%xmm4, 16(%r11,%rcx,4)
	movdqu	32(%rsi,%rcx,4), %xmm1
	movdqu	48(%rsi,%rcx,4), %xmm2
	movdqa	%xmm1, %xmm3
	pslld	$8, %xmm3
	movdqa	%xmm2, %xmm4
	pslld	$8, %xmm4
	paddd	%xmm0, %xmm3
	paddd	%xmm0, %xmm4
	por	%xmm1, %xmm3
	por	%xmm2, %xmm4
	movdqu	%xmm3, 32(%r11,%rcx,4)
	movdqu	%xmm4, 48(%r11,%rcx,4)
	addq	$16, %rcx
	addq	$-2, %r10
	jne	LBB0_6
## %bb.7:
	testb	$1, %r9b
	je	LBB0_9
LBB0_8:
	movdqu	(%rsi,%rcx,4), %xmm0
	movdqu	16(%rsi,%rcx,4), %xmm1
	movdqa	%xmm0, %xmm2
	pslld	$8, %xmm2
	movdqa	%xmm1, %xmm3
	pslld	$8, %xmm3
	movdqa	LCPI0_0(%rip), %xmm4            ## xmm4 = [4294934528,4294934528,4294934528,4294934528]
	paddd	%xmm4, %xmm2
	paddd	%xmm4, %xmm3
	por	%xmm0, %xmm2
	por	%xmm1, %xmm3
	movdqu	%xmm2, (%r11,%rcx,4)
	movdqu	%xmm3, 16(%r11,%rcx,4)
LBB0_9:
	leaq	(%r11,%r8,4), %r11
	cmpq	%rdx, %r8
	je	LBB0_18
## %bb.10:
	andl	$7, %edx
	leaq	(%rsi,%r8,4), %rsi
LBB0_11:
	leaq	-1(%rdx), %r8
	movq	%rdx, %r9
	andq	$3, %r9
	je	LBB0_15
## %bb.12:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi), %r10d
	addq	$4, %rsi
	movl	%r10d, %eax
	shll	$8, %eax
	addl	$-32768, %eax                   ## imm = 0x8000
	orl	%r10d, %eax
	movl	%eax, (%r11)
	addq	$4, %r11
	incq	%rcx
	cmpq	%rcx, %r9
	jne	LBB0_13
## %bb.14:
	subq	%rcx, %rdx
LBB0_15:
	cmpq	$3, %r8
	jb	LBB0_18
## %bb.16:
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_17:                                ## =>This Inner Loop Header: Depth=1
	movl	(%rsi,%rcx,4), %r8d
	movl	%r8d, %eax
	shll	$8, %eax
	addl	$-32768, %eax                   ## imm = 0x8000
	orl	%r8d, %eax
	movl	%eax, (%r11)
	movl	4(%rsi,%rcx,4), %r8d
	movl	%r8d, %eax
	shll	$8, %eax
	addl	$-32768, %eax                   ## imm = 0x8000
	orl	%r8d, %eax
	movl	%eax, 4(%r11)
	movl	8(%rsi,%rcx,4), %r8d
	movl	%r8d, %eax
	shll	$8, %eax
	addl	$-32768, %eax                   ## imm = 0x8000
	orl	%r8d, %eax
	movl	%eax, 8(%r11)
	movl	12(%rsi,%rcx,4), %r8d
	movl	%r8d, %eax
	shll	$8, %eax
	addl	$-32768, %eax                   ## imm = 0x8000
	orl	%r8d, %eax
	movl	%eax, 12(%r11)
	addq	$16, %r11
	addq	$4, %rcx
	cmpq	%rcx, %rdx
	jne	LBB0_17
LBB0_18:
	movq	%r11, (%rdi)
	popq	%rbp
	retq
LBB0_4:
	xorl	%ecx, %ecx
	testb	$1, %r9b
	jne	LBB0_8
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_convert_pcm_u8_to_s16l
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function convert_pcm_u8_to_s16l
_convert_pcm_u8_to_s16l:                ; @convert_pcm_u8_to_s16l
	.cfi_startproc
; %bb.0:
	ldr	x12, [x0]
	cbz	x2, LBB0_6
; %bb.1:
	cmp	x2, #16
	b.lo	LBB0_7
; %bb.2:
	sub	x8, x12, x1
	cmp	x8, #64
	b.lo	LBB0_7
; %bb.3:
	and	x11, x2, #0xfffffffffffffff0
	lsl	x9, x11, #2
	add	x8, x1, x9
	add	x9, x12, x9
	and	x10, x2, #0xf
	add	x12, x12, #32
	add	x13, x1, #32
	mvni.4s	v0, #127, msl #8
	mov	x14, x11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x13, #-32]
	ldp	q3, q4, [x13], #64
	shl.4s	v5, v1, #8
	shl.4s	v6, v2, #8
	shl.4s	v7, v3, #8
	shl.4s	v16, v4, #8
	add.4s	v5, v5, v0
	add.4s	v6, v6, v0
	add.4s	v7, v7, v0
	add.4s	v16, v16, v0
	orr.16b	v1, v5, v1
	orr.16b	v2, v6, v2
	orr.16b	v3, v7, v3
	stp	q1, q2, [x12, #-32]
	orr.16b	v1, v16, v4
	stp	q3, q1, [x12], #64
	subs	x14, x14, #16
	b.ne	LBB0_4
; %bb.5:
	cmp	x11, x2
	b.ne	LBB0_8
	b	LBB0_9
LBB0_6:
	str	x12, [x0]
	ret
LBB0_7:
	mov	x8, x1
	mov	x9, x12
	mov	x10, x2
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x8], #4
	lsl	w12, w11, #8
	sub	w12, w12, #8, lsl #12           ; =32768
	orr	w11, w12, w11
	str	w11, [x9], #4
	sub	x10, x10, #1
	cbnz	x10, LBB0_8
LBB0_9:
	str	x9, [x0]
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_convert_pcm_u8_to_s16l
.subsections_via_symbols
