	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function shift_stereo
_shift_stereo:                          ## @shift_stereo
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	testl	%edx, %edx
	jle	LBB0_16
## %bb.1:
	movl	%edx, %r8d
	cmpl	$8, %edx
	jb	LBB0_2
## %bb.3:
	leaq	(%rsi,%r8,4), %rax
	cmpq	%rdi, %rax
	jbe	LBB0_6
## %bb.4:
	leaq	(%rdi,%r8,4), %rax
	cmpq	%rsi, %rax
	jbe	LBB0_6
LBB0_2:
	xorl	%edx, %edx
LBB0_12:
	movq	%rdx, %rax
	notq	%rax
	testb	$1, %r8b
	je	LBB0_14
## %bb.13:
	sarl	%cl, (%rdi,%rdx,4)
	sarl	%cl, (%rsi,%rdx,4)
	orq	$1, %rdx
LBB0_14:
	addq	%r8, %rax
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	sarl	%cl, (%rdi,%rdx,4)
	sarl	%cl, (%rsi,%rdx,4)
	sarl	%cl, 4(%rdi,%rdx,4)
	sarl	%cl, 4(%rsi,%rdx,4)
	addq	$2, %rdx
	cmpq	%rdx, %r8
	jne	LBB0_15
	jmp	LBB0_16
LBB0_6:
	movl	%r8d, %edx
	andl	$-8, %edx
	movd	%ecx, %xmm0
	leaq	-8(%rdx), %rax
	movq	%rax, %r9
	shrq	$3, %r9
	incq	%r9
	pmovzxdq	%xmm0, %xmm0                    ## xmm0 = xmm0[0],zero,xmm0[1],zero
	testq	%rax, %rax
	je	LBB0_17
## %bb.7:
	movq	%r9, %r10
	andq	$-2, %r10
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rax,4), %xmm1
	movdqu	16(%rdi,%rax,4), %xmm2
	psrad	%xmm0, %xmm1
	psrad	%xmm0, %xmm2
	movdqu	%xmm1, (%rdi,%rax,4)
	movdqu	%xmm2, 16(%rdi,%rax,4)
	movdqu	(%rsi,%rax,4), %xmm1
	movdqu	16(%rsi,%rax,4), %xmm2
	psrad	%xmm0, %xmm1
	psrad	%xmm0, %xmm2
	movdqu	%xmm1, (%rsi,%rax,4)
	movdqu	%xmm2, 16(%rsi,%rax,4)
	movdqu	32(%rdi,%rax,4), %xmm1
	movdqu	48(%rdi,%rax,4), %xmm2
	psrad	%xmm0, %xmm1
	psrad	%xmm0, %xmm2
	movdqu	%xmm1, 32(%rdi,%rax,4)
	movdqu	%xmm2, 48(%rdi,%rax,4)
	movdqu	32(%rsi,%rax,4), %xmm1
	movdqu	48(%rsi,%rax,4), %xmm2
	psrad	%xmm0, %xmm1
	psrad	%xmm0, %xmm2
	movdqu	%xmm1, 32(%rsi,%rax,4)
	movdqu	%xmm2, 48(%rsi,%rax,4)
	addq	$16, %rax
	addq	$-2, %r10
	jne	LBB0_8
## %bb.9:
	testb	$1, %r9b
	je	LBB0_11
LBB0_10:
	movdqu	(%rdi,%rax,4), %xmm1
	movdqu	16(%rdi,%rax,4), %xmm2
	psrad	%xmm0, %xmm1
	psrad	%xmm0, %xmm2
	movdqu	%xmm1, (%rdi,%rax,4)
	movdqu	%xmm2, 16(%rdi,%rax,4)
	movdqu	(%rsi,%rax,4), %xmm1
	movdqu	16(%rsi,%rax,4), %xmm2
	psrad	%xmm0, %xmm1
	psrad	%xmm0, %xmm2
	movdqu	%xmm1, (%rsi,%rax,4)
	movdqu	%xmm2, 16(%rsi,%rax,4)
LBB0_11:
	cmpq	%r8, %rdx
	jne	LBB0_12
LBB0_16:
	popq	%rbp
	retq
LBB0_17:
	xorl	%eax, %eax
	testb	$1, %r9b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_shift_stereo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function shift_stereo
_shift_stereo:                          ; @shift_stereo
	.cfi_startproc
; %bb.0:
	cmp	w2, #1
	b.lt	LBB0_9
; %bb.1:
	mov	w8, w2
	cmp	w2, #8
	b.lo	LBB0_6
; %bb.2:
	lsl	x9, x8, #2
	add	x10, x0, x9
	add	x9, x1, x9
	cmp	x9, x0
	ccmp	x10, x1, #0, hi
	b.hi	LBB0_6
; %bb.3:
	and	x9, x8, #0xfffffff8
	dup.4s	v0, w3
	add	x10, x0, #16
	add	x11, x1, #16
	neg.4s	v0, v0
	mov	x12, x9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q1, q2, [x10, #-16]
	sshl.4s	v1, v1, v0
	sshl.4s	v2, v2, v0
	stp	q1, q2, [x10, #-16]
	ldp	q1, q2, [x11, #-16]
	sshl.4s	v1, v1, v0
	sshl.4s	v2, v2, v0
	stp	q1, q2, [x11, #-16]
	add	x10, x10, #32
	add	x11, x11, #32
	subs	x12, x12, #8
	b.ne	LBB0_4
; %bb.5:
	cmp	x9, x8
	b.ne	LBB0_7
	b	LBB0_9
LBB0_6:
	mov	x9, #0
LBB0_7:
	lsl	x11, x9, #2
	add	x10, x1, x11
	add	x11, x0, x11
	sub	x8, x8, x9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w9, [x11]
	asr	w9, w9, w3
	str	w9, [x11], #4
	ldr	w9, [x10]
	asr	w9, w9, w3
	str	w9, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_shift_stereo
.subsections_via_symbols
