	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ## -- Begin function analyze_stereo
LCPI0_0:
	.quad	0x3fe0000000000000              ## double 0.5
LCPI0_1:
	.quad	0x4008000000000000              ## double 3
	.section	__TEXT,__text,regular,pure_instructions
	.p2align	4, 0x90
_analyze_stereo:                        ## @analyze_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	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdi, %r13
	movq	_MAG_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	andl	(%rdi), %r14d
	movq	_MAG_LSB@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r14d
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r12
	xorl	%eax, %eax
	cmpl	$16, %r14d
	setge	%al
	movl	%eax, -72(%rbp)
	movl	%r14d, %esi
	shll	$8, %esi
	addl	$1024, %esi                     ## imm = 0x400
	movl	$6912, %edi                     ## imm = 0x1B00
	callq	_FFMIN
	movl	%eax, -68(%rbp)
	movl	4(%r13), %ebx
	movl	%ebx, -64(%rbp)
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_allocate_buffers2
	testq	%rax, %rax
	jne	LBB0_29
## %bb.1:
	movl	%r15d, -44(%rbp)                ## 4-byte Spill
	movslq	%ebx, %r15
	movq	24(%r13), %rsi
	movl	$8, %edx
	callq	_memcpy
	movq	32(%r13), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movl	8(%r13), %edx
	shll	$2, %edx
	movq	%r12, -88(%rbp)                 ## 8-byte Spill
	movq	%r12, %rsi
	callq	_memcpy
	movq	32(%r13), %rax
	movq	(%rax), %rax
	movq	8(%rax), %rdi
	movl	8(%r13), %edx
	shll	$2, %edx
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_memcpy
	testl	%ebx, %ebx
	jle	LBB0_2
## %bb.3:
	xorl	%r12d, %r12d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	callq	_decorr_stereo_quick
	cmpq	%r12, %rbx
	je	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	32(%r13), %rax
	movq	(%rax,%r12,8), %rcx
	movq	8(%rax,%r12,8), %rax
	incq	%r12
	movq	(%rcx), %rdi
	movq	8(%rcx), %rsi
	movq	(%rax), %rdx
	movq	8(%rax), %rcx
	movl	8(%r13), %r8d
	cmpl	$16, %r14d
	jl	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	$1, (%rsp)
	callq	_decorr_stereo
	cmpq	%r12, %rbx
	jne	LBB0_4
LBB0_8:
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_2:
	xorl	%ebx, %ebx
LBB0_9:
	movq	32(%r13), %rax
	movq	(%rax,%r15,8), %rax
	movq	(%rax), %rdi
	movq	8(%rax), %rsi
	movl	8(%r13), %edx
	xorl	%ecx, %ecx
	callq	_log2stereo
	movl	%eax, -60(%rbp)
	movq	32(%r13), %rax
	movq	8(%rax,%r15,8), %rcx
	movq	(%rcx), %rdi
	movq	(%rax,%rbx,8), %rax
	movq	(%rax), %rsi
	movl	8(%r13), %edx
	shll	$2, %edx
	callq	_memcpy
	movq	32(%r13), %rax
	movq	8(%rax,%r15,8), %rcx
	movq	8(%rcx), %rdi
	movq	(%rax,%rbx,8), %rax
	movq	8(%rax), %rsi
	movl	8(%r13), %edx
	shll	$2, %edx
	callq	_memcpy
	movl	12(%r13), %eax
	movq	_EXTRA_BRANCHES@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	je	LBB0_11
## %bb.10:
	movsd	16(%r13), %xmm0                 ## xmm0 = mem[0],zero
	addsd	LCPI0_0(%rip), %xmm0
	callq	_floor
	movq	%rax, %rbx
	movq	32(%r13), %rax
	movq	(%rax), %rax
	movq	(%rax), %rdi
	movq	8(%rax), %rsi
	movl	8(%r13), %edx
	xorl	%ecx, %ecx
	callq	_log2stereo
	leaq	-72(%rbp), %rsi
	movq	%r13, %rdi
	xorl	%edx, %edx
	movl	%ebx, %ecx
	movl	%eax, %r8d
	callq	_recurse_stereo
	movl	12(%r13), %eax
LBB0_11:
	movq	_EXTRA_SORT_FIRST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	movl	-44(%rbp), %ebx                 ## 4-byte Reload
	je	LBB0_13
## %bb.12:
	leaq	-72(%rbp), %rsi
	movq	%r13, %rdi
	callq	_sort_stereo
	movl	12(%r13), %eax
LBB0_13:
	movq	_EXTRA_TRY_DELTAS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_18
## %bb.14:
	leaq	-72(%rbp), %rsi
	movq	%r13, %rdi
	callq	_delta_stereo
	movl	12(%r13), %eax
	movq	_EXTRA_ADJUST_DELTAS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_17
## %bb.15:
	movq	24(%r13), %rcx
	cmpq	$0, 8(%rcx)
	je	LBB0_17
## %bb.16:
	movsd	16(%r13), %xmm0                 ## xmm0 = mem[0],zero
	addsd	%xmm0, %xmm0
	addsd	(%rcx), %xmm0
	divsd	LCPI0_1(%rip), %xmm0
	cvtsd2ss	%xmm0, %xmm0
	cvtss2sd	%xmm0, %xmm0
	movsd	%xmm0, 16(%r13)
	jmp	LBB0_18
LBB0_17:
	movabsq	$4611686018427387904, %rcx      ## imm = 0x4000000000000000
	movq	%rcx, 16(%r13)
LBB0_18:
	movq	_EXTRA_SORT_LAST@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_20
## %bb.19:
	leaq	-72(%rbp), %rsi
	movq	%r13, %rdi
	callq	_sort_stereo
LBB0_20:
	testl	%ebx, %ebx
	je	LBB0_22
## %bb.21:
	movq	32(%r13), %rax
	movslq	-64(%rbp), %rcx
	movq	8(%rax,%rcx,8), %rax
	movq	(%rax), %rsi
	movl	8(%r13), %edx
	shll	$2, %edx
	movq	%r14, %rdi
	callq	_memcpy
	movq	32(%r13), %rax
	movslq	-64(%rbp), %rcx
	movq	8(%rax,%rcx,8), %rax
	movq	8(%rax), %rsi
	movl	8(%r13), %edx
	shll	$2, %edx
	movq	%r12, %rdi
	callq	_memcpy
LBB0_22:
	movl	-64(%rbp), %eax
	testl	%eax, %eax
	jle	LBB0_23
## %bb.24:
	movq	24(%r13), %rdx
	addq	$8, %rdx
	xorl	%ecx, %ecx
	.p2align	4, 0x90
LBB0_25:                                ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdx)
	je	LBB0_28
## %bb.26:                              ##   in Loop: Header=BB0_25 Depth=1
	incq	%rcx
	addq	$16, %rdx
	cmpq	%rcx, %rax
	jne	LBB0_25
## %bb.27:
	movl	%eax, %ecx
	jmp	LBB0_28
LBB0_23:
	xorl	%ecx, %ecx
LBB0_28:
	movl	%ecx, 4(%r13)
LBB0_29:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAG_MASK,4,2                   ## @MAG_MASK
	.comm	_MAG_LSB,4,2                    ## @MAG_LSB
	.comm	_EXTRA_BRANCHES,4,2             ## @EXTRA_BRANCHES
	.comm	_EXTRA_SORT_FIRST,4,2           ## @EXTRA_SORT_FIRST
	.comm	_EXTRA_TRY_DELTAS,4,2           ## @EXTRA_TRY_DELTAS
	.comm	_EXTRA_ADJUST_DELTAS,4,2        ## @EXTRA_ADJUST_DELTAS
	.comm	_EXTRA_SORT_LAST,4,2            ## @EXTRA_SORT_LAST
	.no_dead_strip	_analyze_stereo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function analyze_stereo
_analyze_stereo:                        ; @analyze_stereo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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	x22, x3
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _MAG_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MAG_MASK@GOTPAGEOFF]
	ldr	w9, [x0]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w9
Lloh3:
	adrp	x9, _MAG_LSB@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MAG_LSB@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	asr	w25, w8, w9
	cmp	w25, #15
	cset	w8, gt
	str	w8, [sp, #8]
	lsl	w8, w25, #8
	add	w1, w8, #1024
	mov	w0, #6912
	bl	_FFMIN
	ldr	w23, [x19, #4]
	stp	w0, w23, [sp, #12]
	mov	x0, x19
	mov	x1, x23
	bl	_allocate_buffers2
	cbnz	x0, LBB0_28
; %bb.1:
	mov	x8, x23
	sxtw	x24, w8
	ldr	x1, [x19, #24]
	mov	w2, #8
	bl	_memcpy
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	x0, [x8]
	ldr	w8, [x19, #8]
	lsl	w2, w8, #2
	mov	x1, x21
	bl	_memcpy
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldr	x0, [x8, #8]
	ldr	w8, [x19, #8]
	lsl	w2, w8, #2
	mov	x1, x20
	bl	_memcpy
	cmp	w24, #1
	b.lt	LBB0_7
; %bb.2:
	mov	x26, #0
	lsl	x27, x23, #3
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	bl	_decorr_stereo_quick
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x26, x26, #8
	cmp	x27, x26
	b.eq	LBB0_8
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #32]
	add	x8, x8, x26
	ldp	x9, x8, [x8]
	ldp	x0, x1, [x9]
	ldp	x2, x3, [x8]
	ldr	w4, [x19, #8]
	cmp	w25, #16
	b.lt	LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	w6, #1
	bl	_decorr_stereo
	b	LBB0_4
LBB0_7:
	mov	x23, #0
LBB0_8:
	ldr	x8, [x19, #32]
	ldr	x8, [x8, x24, lsl #3]
	ldp	x0, x1, [x8]
	ldr	w2, [x19, #8]
	mov	w3, #0
	bl	_log2stereo
	str	w0, [sp, #20]
	ldr	x8, [x19, #32]
	add	w9, w24, #1
	sbfiz	x24, x9, #3, #32
	ldr	x9, [x8, x24]
	ldr	x0, [x9]
	lsl	x23, x23, #3
	ldr	x8, [x8, x23]
	ldr	x1, [x8]
	ldr	w8, [x19, #8]
	lsl	w2, w8, #2
	bl	_memcpy
	ldr	x8, [x19, #32]
	ldr	x9, [x8, x24]
	ldr	x0, [x9, #8]
	ldr	x8, [x8, x23]
	ldr	x1, [x8, #8]
	ldr	w8, [x19, #8]
	lsl	w2, w8, #2
	bl	_memcpy
	ldr	w8, [x19, #12]
Lloh6:
	adrp	x9, _EXTRA_BRANCHES@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EXTRA_BRANCHES@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	d0, [x19, #16]
	fmov	d1, #0.50000000
	fadd	d0, d0, d1
	bl	_floor
	mov	x23, x0
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
	ldp	x0, x1, [x8]
	ldr	w2, [x19, #8]
	mov	w3, #0
	bl	_log2stereo
	mov	x4, x0
	add	x1, sp, #8
	mov	x0, x19
	mov	w2, #0
	mov	x3, x23
	bl	_recurse_stereo
	ldr	w8, [x19, #12]
LBB0_10:
Lloh9:
	adrp	x9, _EXTRA_SORT_FIRST@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EXTRA_SORT_FIRST@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_12
; %bb.11:
	add	x1, sp, #8
	mov	x0, x19
	bl	_sort_stereo
	ldr	w8, [x19, #12]
LBB0_12:
Lloh12:
	adrp	x9, _EXTRA_TRY_DELTAS@GOTPAGE
Lloh13:
	ldr	x9, [x9, _EXTRA_TRY_DELTAS@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_17
; %bb.13:
	add	x1, sp, #8
	mov	x0, x19
	bl	_delta_stereo
	ldr	w8, [x19, #12]
Lloh15:
	adrp	x9, _EXTRA_ADJUST_DELTAS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _EXTRA_ADJUST_DELTAS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_16
; %bb.14:
	ldr	x9, [x19, #24]
	ldr	x10, [x9, #8]
	cbz	x10, LBB0_16
; %bb.15:
	ldr	d0, [x19, #16]
	ldr	d1, [x9]
	fmov	d2, #2.00000000
	fmadd	d0, d0, d2, d1
	fmov	d1, #3.00000000
	fdiv	d0, d0, d1
	fcvt	s0, d0
	fcvt	d0, s0
	str	d0, [x19, #16]
	b	LBB0_17
LBB0_16:
	mov	x9, #4611686018427387904
	str	x9, [x19, #16]
LBB0_17:
Lloh18:
	adrp	x9, _EXTRA_SORT_LAST@GOTPAGE
Lloh19:
	ldr	x9, [x9, _EXTRA_SORT_LAST@GOTPAGEOFF]
Lloh20:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_19
; %bb.18:
	add	x1, sp, #8
	mov	x0, x19
	bl	_sort_stereo
LBB0_19:
	cbz	w22, LBB0_21
; %bb.20:
	ldr	x8, [x19, #32]
	ldrsw	x9, [sp, #16]
	add	x8, x8, x9, lsl #3
	ldr	x8, [x8, #8]
	ldr	x1, [x8]
	ldr	w8, [x19, #8]
	lsl	w2, w8, #2
	mov	x0, x21
	bl	_memcpy
	ldr	x8, [x19, #32]
	ldrsw	x9, [sp, #16]
	add	x8, x8, x9, lsl #3
	ldr	x8, [x8, #8]
	ldr	x1, [x8, #8]
	ldr	w8, [x19, #8]
	lsl	w2, w8, #2
	mov	x0, x20
	bl	_memcpy
LBB0_21:
	ldr	w9, [sp, #16]
	cmp	w9, #1
	b.lt	LBB0_26
; %bb.22:
	mov	x8, #0
	ldr	x10, [x19, #24]
	add	x10, x10, #8
LBB0_23:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x10]
	cbz	x11, LBB0_27
; %bb.24:                               ;   in Loop: Header=BB0_23 Depth=1
	add	x8, x8, #1
	add	x10, x10, #16
	cmp	x9, x8
	b.ne	LBB0_23
; %bb.25:
	mov	x8, x9
	b	LBB0_27
LBB0_26:
	mov	w8, #0
LBB0_27:
	str	w8, [x19, #4]
LBB0_28:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_MAG_MASK,4,2                   ; @MAG_MASK
	.comm	_MAG_LSB,4,2                    ; @MAG_LSB
	.comm	_EXTRA_BRANCHES,4,2             ; @EXTRA_BRANCHES
	.comm	_EXTRA_SORT_FIRST,4,2           ; @EXTRA_SORT_FIRST
	.comm	_EXTRA_TRY_DELTAS,4,2           ; @EXTRA_TRY_DELTAS
	.comm	_EXTRA_ADJUST_DELTAS,4,2        ; @EXTRA_ADJUST_DELTAS
	.comm	_EXTRA_SORT_LAST,4,2            ; @EXTRA_SORT_LAST
	.no_dead_strip	_analyze_stereo
.subsections_via_symbols
