	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decorrelate_stereo
_decorrelate_stereo:                    ## @decorrelate_stereo
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	.cfi_offset %rbx, -24
	testl	%esi, %esi
	jle	LBB0_16
## %bb.1:
	movl	%ecx, %r9d
	movl	%edx, %ecx
	movq	(%rdi), %r11
	movq	8(%rdi), %rdi
	movl	%esi, %r8d
	cmpl	$4, %esi
	jb	LBB0_2
## %bb.3:
	leaq	(%rdi,%r8,4), %rax
	cmpq	%rax, %r11
	jae	LBB0_6
## %bb.4:
	leaq	(%r11,%r8,4), %rax
	cmpq	%rax, %rdi
	jae	LBB0_6
LBB0_2:
	xorl	%esi, %esi
LBB0_12:
	movq	%rsi, %rax
	notq	%rax
	testb	$1, %r8b
	je	LBB0_14
## %bb.13:
	movl	(%r11,%rsi,4), %r10d
	movl	(%rdi,%rsi,4), %edx
	movl	%edx, %ebx
	imull	%r9d, %ebx
	sarl	%cl, %ebx
	subl	%ebx, %r10d
	addl	%r10d, %edx
	movl	%edx, (%r11,%rsi,4)
	movl	%r10d, (%rdi,%rsi,4)
	orq	$1, %rsi
LBB0_14:
	addq	%r8, %rax
	je	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r11,%rsi,4), %eax
	movl	(%rdi,%rsi,4), %ebx
	movl	%ebx, %edx
	imull	%r9d, %edx
	sarl	%cl, %edx
	subl	%edx, %eax
	addl	%eax, %ebx
	movl	%ebx, (%r11,%rsi,4)
	movl	%eax, (%rdi,%rsi,4)
	movl	4(%rdi,%rsi,4), %eax
	movl	%eax, %edx
	imull	%r9d, %edx
	sarl	%cl, %edx
	movl	4(%r11,%rsi,4), %ebx
	subl	%edx, %ebx
	addl	%ebx, %eax
	movl	%eax, 4(%r11,%rsi,4)
	movl	%ebx, 4(%rdi,%rsi,4)
	addq	$2, %rsi
	cmpq	%rsi, %r8
	jne	LBB0_15
	jmp	LBB0_16
LBB0_6:
	movl	%r8d, %esi
	andl	$-4, %esi
	movd	%r9d, %xmm0
	pshufd	$0, %xmm0, %xmm0                ## xmm0 = xmm0[0,0,0,0]
	movd	%ecx, %xmm1
	leaq	-4(%rsi), %rax
	movq	%rax, %r10
	shrq	$2, %r10
	incq	%r10
	pmovzxdq	%xmm1, %xmm1                    ## xmm1 = xmm1[0],zero,xmm1[1],zero
	testq	%rax, %rax
	je	LBB0_17
## %bb.7:
	movq	%r10, %rdx
	andq	$-2, %rdx
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movdqu	(%rdi,%rax,4), %xmm2
	movdqa	%xmm2, %xmm3
	pmulld	%xmm0, %xmm3
	psrad	%xmm1, %xmm3
	movdqu	(%r11,%rax,4), %xmm4
	psubd	%xmm3, %xmm4
	paddd	%xmm4, %xmm2
	movdqu	%xmm2, (%r11,%rax,4)
	movdqu	%xmm4, (%rdi,%rax,4)
	movdqu	16(%r11,%rax,4), %xmm2
	movdqu	16(%rdi,%rax,4), %xmm3
	movdqa	%xmm3, %xmm4
	pmulld	%xmm0, %xmm4
	psrad	%xmm1, %xmm4
	psubd	%xmm4, %xmm2
	paddd	%xmm2, %xmm3
	movdqu	%xmm3, 16(%r11,%rax,4)
	movdqu	%xmm2, 16(%rdi,%rax,4)
	addq	$8, %rax
	addq	$-2, %rdx
	jne	LBB0_8
## %bb.9:
	testb	$1, %r10b
	je	LBB0_11
LBB0_10:
	movdqu	(%r11,%rax,4), %xmm2
	movdqu	(%rdi,%rax,4), %xmm3
	pmulld	%xmm3, %xmm0
	psrad	%xmm1, %xmm0
	psubd	%xmm0, %xmm2
	paddd	%xmm2, %xmm3
	movdqu	%xmm3, (%r11,%rax,4)
	movdqu	%xmm2, (%rdi,%rax,4)
LBB0_11:
	cmpq	%r8, %rsi
	jne	LBB0_12
LBB0_16:
	popq	%rbx
	popq	%rbp
	retq
LBB0_17:
	xorl	%eax, %eax
	testb	$1, %r10b
	jne	LBB0_10
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_decorrelate_stereo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decorrelate_stereo
_decorrelate_stereo:                    ; @decorrelate_stereo
	.cfi_startproc
; %bb.0:
	cmp	w1, #1
	b.lt	LBB0_9
; %bb.1:
	ldp	x9, x10, [x0]
	mov	w8, w1
	cmp	w1, #8
	b.lo	LBB0_6
; %bb.2:
	lsl	x11, x8, #2
	add	x12, x9, x11
	add	x11, x10, x11
	cmp	x9, x11
	ccmp	x10, x12, #2, lo
	b.lo	LBB0_6
; %bb.3:
	and	x11, x8, #0xfffffff8
	dup.4s	v0, w3
	dup.4s	v1, w2
	add	x12, x9, #16
	add	x13, x10, #16
	neg.4s	v1, v1
	mov	x14, x11
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldp	q2, q3, [x12, #-16]
	ldp	q4, q5, [x13, #-16]
	mul.4s	v6, v4, v0
	mul.4s	v7, v5, v0
	sshl.4s	v6, v6, v1
	sshl.4s	v7, v7, v1
	sub.4s	v2, v2, v6
	sub.4s	v3, v3, v7
	add.4s	v4, v2, v4
	add.4s	v5, v3, v5
	stp	q4, q5, [x12, #-16]
	stp	q2, q3, [x13, #-16]
	add	x12, x12, #32
	add	x13, x13, #32
	subs	x14, x14, #8
	b.ne	LBB0_4
; %bb.5:
	cmp	x11, x8
	b.ne	LBB0_7
	b	LBB0_9
LBB0_6:
	mov	x11, #0
LBB0_7:
	lsl	x12, x11, #2
	add	x10, x10, x12
	add	x9, x9, x12
	sub	x8, x8, x11
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w11, [x9]
	ldr	w12, [x10]
	mul	w13, w12, w3
	asr	w13, w13, w2
	sub	w11, w11, w13
	add	w12, w11, w12
	str	w12, [x9], #4
	str	w11, [x10], #4
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_decorrelate_stereo
.subsections_via_symbols
