	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function decorr_stereo_buffer
_decorr_stereo_buffer:                  ## @decorr_stereo_buffer
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$104, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r8, -120(%rbp)                 ## 8-byte Spill
	movq	%rcx, -112(%rbp)                ## 8-byte Spill
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movslq	16(%rbp), %rax
	movq	%rax, -128(%rbp)                ## 8-byte Spill
	xorps	%xmm0, %xmm0
	movups	%xmm0, -60(%rbp)
	movups	%xmm0, -72(%rbp)
	movq	%rdi, -136(%rbp)                ## 8-byte Spill
	movq	8(%rdi), %r14
	leaq	(%rax,%rax,8), %r15
	movl	(%r14,%r15,4), %r12d
	movl	4(%r14,%r15,4), %eax
	leal	1(%r12), %ecx
	cmpl	$2, %r12d
	movl	$3, %edx
	cmovgel	%ecx, %edx
	cmpl	$7, %r12d
	cmovel	%r12d, %edx
	movl	%eax, -76(%rbp)
	movl	%edx, -80(%rbp)
	movl	$2048, %edi                     ## imm = 0x800
	movl	%r9d, -100(%rbp)                ## 4-byte Spill
	movl	%r9d, %esi
	callq	_FFMIN
	movl	$-1, (%rsp)
	leaq	-80(%rbp), %r9
	movq	%rbx, -88(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	movq	%r13, -96(%rbp)                 ## 8-byte Spill
	movq	%r13, %rsi
	movq	-112(%rbp), %rdx                ## 8-byte Reload
	movq	-120(%rbp), %rcx                ## 8-byte Reload
	movl	%eax, %r8d
	callq	_decorr_stereo
	movl	%r12d, -80(%rbp)
	cmpq	$0, -128(%rbp)                  ## 8-byte Folded Reload
	je	LBB0_1
## %bb.2:
	movl	-52(%rbp), %edi
	callq	_CLEAR
	movl	-56(%rbp), %edi
	callq	_CLEAR
	jmp	LBB0_3
LBB0_1:
	leaq	-80(%rbp), %rdi
	callq	_reverse_decorr
LBB0_3:
	movl	28(%r14,%r15,4), %edi
	movl	-52(%rbp), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	24(%r14,%r15,4), %edi
	movl	-56(%rbp), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	-72(%rbp), %eax
	movl	%eax, 8(%r14,%r15,4)
	movl	-68(%rbp), %eax
	movl	%eax, 12(%r14,%r15,4)
	testl	%r12d, %r12d
	movq	-120(%rbp), %r12                ## 8-byte Reload
	movl	-100(%rbp), %ebx                ## 4-byte Reload
	movq	-112(%rbp), %r13                ## 8-byte Reload
	jne	LBB0_5
## %bb.4:
	leaq	(%r14,%r15,4), %r14
	addq	$28, %r14
	movl	$1, -80(%rbp)
	movl	$1, (%rsp)
	leaq	-80(%rbp), %r9
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r12, %rcx
	movl	%ebx, %r8d
	callq	_decorr_stereo
	movl	$0, -80(%rbp)
	movl	-52(%rbp), %edi
	movl	(%r14), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	-56(%rbp), %edi
	movl	-4(%r14), %esi
	movl	$4, %edx
	callq	_memcpy
	movl	-64(%rbp), %eax
	cltd
	idivl	%ebx
	movl	%eax, -72(%rbp)
	movl	%eax, -20(%r14)
	movl	-60(%rbp), %eax
	cltd
	idivl	%ebx
	movl	%eax, -68(%rbp)
	movl	%eax, -16(%r14)
LBB0_5:
	movq	-136(%rbp), %rax                ## 8-byte Reload
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movl	$1, (%rsp)
	leaq	-80(%rbp), %r9
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r12, %rcx
	movl	%ebx, %r8d
	callq	_decorr_stereo
	jmp	LBB0_8
LBB0_7:
	leaq	-80(%rbp), %r9
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movq	-96(%rbp), %rsi                 ## 8-byte Reload
	movq	%r13, %rdx
	movq	%r12, %rcx
	movl	%ebx, %r8d
	callq	_decorr_stereo_quick
LBB0_8:
	addq	$104, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_decorr_stereo_buffer
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function decorr_stereo_buffer
_decorr_stereo_buffer:                  ; @decorr_stereo_buffer
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #160
	.cfi_def_cfa_offset 160
	stp	x28, x27, [sp, #64]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #80]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #96]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #112]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #128]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #144]            ; 16-byte Folded Spill
	add	x29, sp, #144
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x25, x6
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x1
	mov	x24, x0
	stp	xzr, xzr, [sp, #32]
	str	wzr, [sp, #56]
	str	xzr, [sp, #48]
	ldr	x26, [x0, #8]
	sxtw	x27, w25
	mov	w8, #36
	smaddl	x8, w6, w8, x26
	ldp	w28, w8, [x8]
	cmp	w28, #2
	mov	w9, #3
	csinc	w9, w9, w28, lt
	cmp	w28, #7
	csel	w9, w28, w9, eq
	stp	w9, w8, [sp, #24]
	mov	w0, #2048
	mov	x1, x5
	bl	_FFMIN
	mov	x4, x0
	add	x5, sp, #24
	mov	x0, x23
	mov	x1, x22
	stp	x21, x20, [sp, #8]              ; 16-byte Folded Spill
	mov	x2, x21
	mov	x3, x20
	mov	w6, #-1
	bl	_decorr_stereo
	str	w28, [sp, #24]
	cbz	w25, LBB0_2
; %bb.1:
	ldr	w0, [sp, #52]
	bl	_CLEAR
	ldr	w0, [sp, #48]
	bl	_CLEAR
	b	LBB0_3
LBB0_2:
	add	x0, sp, #24
	bl	_reverse_decorr
LBB0_3:
	mov	w8, #36
	madd	x25, x27, x8, x26
	mov	x20, x25
	ldr	w0, [x20, #28]!
	ldr	w1, [sp, #52]
	mov	w2, #4
	bl	_memcpy
	mov	x21, x25
	ldr	w0, [x21, #24]!
	ldr	w1, [sp, #48]
	mov	w2, #4
	bl	_memcpy
	ldr	d0, [sp, #32]
	str	d0, [x25, #8]!
	cbz	w28, LBB0_6
; %bb.4:
	ldr	x8, [x24]
	cbz	x8, LBB0_7
LBB0_5:
	add	x5, sp, #24
	mov	x0, x23
	mov	x1, x22
	ldp	x2, x3, [sp, #8]                ; 16-byte Folded Reload
	mov	x4, x19
	mov	w6, #1
	bl	_decorr_stereo
	b	LBB0_8
LBB0_6:
	mov	w8, #36
	madd	x26, x27, x8, x26
	mov	w8, #1
	str	w8, [sp, #24]
	add	x5, sp, #24
	mov	x0, x23
	mov	x1, x22
	ldp	x2, x3, [sp, #8]                ; 16-byte Folded Reload
	mov	x4, x19
	mov	w6, #1
	bl	_decorr_stereo
	str	wzr, [sp, #24]
	ldr	w0, [sp, #52]
	ldr	w1, [x20]
	mov	w2, #4
	bl	_memcpy
	ldr	w0, [sp, #48]
	ldr	w1, [x21]
	mov	w2, #4
	bl	_memcpy
	ldr	w8, [sp, #40]
	sdiv	w8, w8, w19
	str	w8, [sp, #32]
	str	w8, [x25]
	ldr	w8, [sp, #44]
	sdiv	w8, w8, w19
	str	w8, [sp, #36]
	str	w8, [x26, #12]
	ldr	x8, [x24]
	cbnz	x8, LBB0_5
LBB0_7:
	add	x5, sp, #24
	mov	x0, x23
	mov	x1, x22
	ldp	x2, x3, [sp, #8]                ; 16-byte Folded Reload
	mov	x4, x19
	bl	_decorr_stereo_quick
LBB0_8:
	ldp	x29, x30, [sp, #144]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #128]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #112]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #96]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #80]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #64]             ; 16-byte Folded Reload
	add	sp, sp, #160
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_decorr_stereo_buffer
.subsections_via_symbols
