	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function estimate_stereo_mode
_estimate_stereo_mode:                  ## @estimate_stereo_mode
	.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	$88, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	cmpl	$3, %edx
	jl	LBB0_1
## %bb.2:
	movl	%edx, %eax
	movq	%rax, -96(%rbp)                 ## 8-byte Spill
	movl	$2, %r14d
	xorl	%r15d, %r15d
	xorl	%edx, %edx
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	movq	%rsi, -112(%rbp)                ## 8-byte Spill
	movq	%rdi, -104(%rbp)                ## 8-byte Spill
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rdx, -120(%rbp)                ## 8-byte Spill
	movl	-4(%rdi,%r14,4), %eax
	movl	(%rdi,%r14,4), %r12d
	addl	%eax, %eax
	subl	%eax, %r12d
	addl	-8(%rdi,%r14,4), %r12d
	movl	-4(%rsi,%r14,4), %eax
	movl	(%rsi,%r14,4), %ebx
	addl	%eax, %eax
	subl	%eax, %ebx
	addl	-8(%rsi,%r14,4), %ebx
	leal	(%rbx,%r12), %edi
	sarl	%edi
	callq	_FFABS
	addq	%rax, -88(%rbp)                 ## 8-byte Folded Spill
	movl	%r12d, %edi
	subl	%ebx, %edi
	callq	_FFABS
	addq	%rax, %r13
	movl	%r12d, %edi
	callq	_FFABS
	addq	%rax, %r15
	movl	%ebx, %edi
	callq	_FFABS
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	-112(%rbp), %rsi                ## 8-byte Reload
	movq	-120(%rbp), %rdx                ## 8-byte Reload
	addq	%rax, %rdx
	incq	%r14
	cmpq	%r14, -96(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_3
	jmp	LBB0_4
LBB0_1:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	xorl	%edx, %edx
	xorl	%r15d, %r15d
LBB0_4:
	leaq	(%r15,%rdx), %rax
	movq	%rax, -80(%rbp)
	addq	%r13, %r15
	movq	%r15, -72(%rbp)
	leaq	(%rdx,%r13), %rax
	movq	%rax, -64(%rbp)
	movq	-88(%rbp), %r15                 ## 8-byte Reload
	addq	%r13, %r15
	movq	%r15, -56(%rbp)
	xorl	%ecx, %ecx
	cmpq	%rdx, %r13
	setl	%cl
	cmpq	-80(%rbp,%rcx,8), %rax
	movl	$2, %edx
	cmovgel	%ecx, %edx
	cmpq	-80(%rbp,%rdx,8), %r15
	movl	$3, %eax
	cmovgel	%edx, %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_6
## %bb.5:
	addq	$88, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_estimate_stereo_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function estimate_stereo_mode
_estimate_stereo_mode:                  ; @estimate_stereo_mode
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #40]
	cmp	w2, #3
	b.lt	LBB0_3
; %bb.1:
	mov	x24, #0
	mov	x22, #0
	mov	x23, #0
	mov	x21, #0
	mov	w8, w2
	sub	x25, x8, #2
	add	x8, x1, #4
	add	x9, x0, #4
	mov	x26, x9
	mov	x27, x8
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w10, [x26, #4]!
	ldp	w9, w11, [x9, #-4]
	sub	w10, w10, w11, lsl #1
	add	w19, w10, w9
	ldr	w9, [x27, #4]!
	ldp	w8, w10, [x8, #-4]
	sub	w9, w9, w10, lsl #1
	add	w20, w9, w8
	add	w8, w20, w19
	asr	w0, w8, #1
	bl	_FFABS
	add	x23, x0, x23
	sub	w0, w19, w20
	bl	_FFABS
	add	x21, x0, x21
	mov	x0, x19
	bl	_FFABS
	add	x24, x0, x24
	mov	x0, x20
	bl	_FFABS
	add	x22, x0, x22
	mov	x9, x26
	mov	x8, x27
	subs	x25, x25, #1
	b.ne	LBB0_2
	b	LBB0_4
LBB0_3:
	mov	x21, #0
	mov	x23, #0
	mov	x22, #0
	mov	x24, #0
LBB0_4:
	add	x8, x24, x22
	add	x9, x24, x21
	stp	x8, x9, [sp, #8]
	add	x8, x23, x21
	cmp	x21, x22
	cset	w9, lt
	add	x10, sp, #8
	ldr	x11, [x10, w9, uxtw #3]
	add	x12, x22, x21
	cmp	x12, x11
	stp	x12, x8, [sp, #24]
	mov	w11, #2
	csel	w9, w11, w9, lt
	ldr	x10, [x10, w9, uxtw #3]
	cmp	x8, x10
	mov	w8, #3
	csel	w0, w8, w9, lt
	ldr	x8, [sp, #40]
Lloh3:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh4:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_6
; %bb.5:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_6:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_estimate_stereo_mode
.subsections_via_symbols
