	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdcd_process_stereo
_hdcd_process_stereo:                   ## @hdcd_process_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	%edx, %r14d
	movq	%rsi, %r13
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %rdi
	movl	(%rdi), %r12d
	movl	8(%rdi), %r15d
	cmpl	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%r13, %rsi
	movl	%r14d, %edx
	movl	$2, %ecx
	callq	_hdcd_analyze_prepare
	movq	(%rbx), %rdi
	addq	$8, %rdi
	leaq	4(%r13), %rsi
	movl	%r14d, %edx
	movl	$2, %ecx
	callq	_hdcd_analyze_prepare
LBB0_2:
	leaq	-52(%rbp), %rdx
	leaq	-56(%rbp), %rsi
	movq	%rbx, %rdi
	callq	_hdcd_control_stereo
	testl	%r14d, %r14d
	jle	LBB0_12
## %bb.3:
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	%r15d, -60(%rbp)                ## 4-byte Spill
	movl	%r12d, -64(%rbp)                ## 4-byte Spill
	leal	(%r14,%r14), %eax
	cltq
	leaq	(,%rax,4), %rax
	addq	%r13, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r15
	xorl	%r12d, %r12d
	movq	%r14, %rbx
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r12), %r9d
	movl	12(%r12), %ecx
	movl	-56(%rbp), %eax
	subq	$8, %rsp
	movq	%r14, %rbx
	movq	%r14, %rdi
	movl	-72(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	movl	$2, %edx
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	pushq	%rax
	callq	_hdcd_envelope
	addq	$16, %rsp
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	addq	$4, %rbx
	movl	8(%r12), %r9d
	movl	12(%r12), %ecx
	movl	-52(%rbp), %eax
	subq	$8, %rsp
	movq	%rbx, %rdi
	movl	%r14d, %esi
	movl	$2, %edx
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	pushq	%rax
	callq	_hdcd_envelope
	addq	$16, %rsp
LBB0_7:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movq	-96(%rbp), %rbx                 ## 8-byte Reload
	subl	%r14d, %ebx
	movq	%r12, %rdi
	leaq	-56(%rbp), %rsi
	leaq	-52(%rbp), %rdx
	callq	_hdcd_control_stereo
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movq	%r12, %r15
	movl	$1, %r12d
	movq	-88(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r13
	cmpl	$1, %ebx
	jle	LBB0_8
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	leal	(%r12,%r12), %eax
	leaq	(,%rax,4), %r14
	addq	%r13, %r14
	movq	%rbx, -96(%rbp)                 ## 8-byte Spill
                                        ## kill: def $ebx killed $ebx killed $rbx def $rbx
	subl	%r12d, %ebx
	leal	(%rbx,%rbx), %eax
	cltq
	leaq	(%r14,%rax,4), %rax
	xorl	%edi, %edi
	cmpq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	setbe	%dil
	callq	_av_assert0
	movq	(%r15), %rsi
	movq	%r15, %rdi
	movl	$2, %edx
	movq	%r14, %rcx
	movl	%ebx, %r8d
	xorl	%r9d, %r9d
	callq	_hdcd_scan
                                        ## kill: def $eax killed $eax def $rax
	leal	(%r12,%rax), %ecx
	addl	%r12d, %eax
	decl	%eax
	movl	%eax, -72(%rbp)                 ## 4-byte Spill
	leal	-2(%rcx,%rcx), %eax
	cltq
	movq	%r13, %r14
	leaq	(,%rax,4), %rax
	addq	%r13, %rax
	xorl	%edi, %edi
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	cmpq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	setbe	%dil
	callq	_av_assert0
	movl	16(%r15), %eax
	testl	%eax, %eax
	movq	%r15, %r12
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	8(%r12), %r8d
	movl	-56(%rbp), %r9d
	movq	(%r12), %rcx
	movl	4(%rcx), %r10d
	xorl	%ebx, %ebx
	movq	_HDCD_TG_MISMATCH@GOTPCREL(%rip), %r15
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	cmpl	(%r15), %r13d
	sete	%bl
	subq	$8, %rsp
	movq	%r14, %r15
	movq	%r14, %rdi
	movl	-72(%rbp), %r14d                ## 4-byte Reload
	movl	%r14d, %esi
	movl	$2, %edx
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	pushq	%rbx
	pushq	%r10
	pushq	%rax
	callq	_hdcd_analyze
	addq	$32, %rsp
	movl	%eax, -64(%rbp)                 ## 4-byte Spill
	addq	$4, %r15
	movl	8(%r12), %r8d
	movl	-52(%rbp), %r9d
	movl	16(%r12), %r10d
	movq	(%r12), %rcx
	movl	12(%rcx), %ebx
	xorl	%eax, %eax
	movq	_HDCD_TG_MISMATCH@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %r13d
	sete	%al
	subq	$8, %rsp
	movq	%r15, %rdi
	movl	%r14d, %esi
	movl	$2, %edx
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	pushq	%rax
	pushq	%rbx
	pushq	%r10
	callq	_hdcd_analyze
	addq	$32, %rsp
	jmp	LBB0_7
LBB0_8:
	leaq	8(%r14), %rax
	xorl	%edi, %edi
	cmpq	-80(%rbp), %rax                 ## 8-byte Folded Reload
	setbe	%dil
	callq	_av_assert0
	movl	16(%r15), %r11d
	testl	%r11d, %r11d
	movq	%r15, %rbx
	je	LBB0_10
## %bb.9:
	movl	8(%rbx), %r8d
	movl	-56(%rbp), %r9d
	movq	(%rbx), %rcx
	movl	4(%rcx), %r10d
	xorl	%eax, %eax
	movq	_HDCD_TG_MISMATCH@GOTPCREL(%rip), %r15
	movl	-68(%rbp), %r13d                ## 4-byte Reload
	cmpl	(%r15), %r13d
	sete	%al
	subq	$8, %rsp
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$2, %edx
	movl	-64(%rbp), %ecx                 ## 4-byte Reload
	pushq	%rax
	pushq	%r10
	pushq	%r11
	callq	_hdcd_analyze
	addq	$32, %rsp
	movl	%eax, %r12d
	addq	$4, %r14
	movl	8(%rbx), %r8d
	movl	-52(%rbp), %r9d
	movl	16(%rbx), %r10d
	movq	(%rbx), %rcx
	movl	12(%rcx), %r11d
	xorl	%eax, %eax
	cmpl	(%r15), %r13d
	sete	%al
	subq	$8, %rsp
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$2, %edx
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	pushq	%rax
	pushq	%r11
	pushq	%r10
	callq	_hdcd_analyze
	addq	$32, %rsp
	jmp	LBB0_11
LBB0_10:
	movl	8(%rbx), %r9d
	movl	12(%rbx), %ecx
	movl	-56(%rbp), %eax
	subq	$8, %rsp
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$2, %edx
	movl	-64(%rbp), %r8d                 ## 4-byte Reload
	pushq	%rax
	callq	_hdcd_envelope
	addq	$16, %rsp
	movl	%eax, %r12d
	addq	$4, %r14
	movl	8(%rbx), %r9d
	movl	12(%rbx), %ecx
	movl	-52(%rbp), %eax
	subq	$8, %rsp
	movq	%r14, %rdi
	movl	$1, %esi
	movl	$2, %edx
	movl	-60(%rbp), %r8d                 ## 4-byte Reload
	pushq	%rax
	callq	_hdcd_envelope
	addq	$16, %rsp
LBB0_11:
	movl	%eax, %r15d
LBB0_12:
	movq	(%rbx), %rax
	movl	%r12d, (%rax)
	movl	%r15d, 8(%rax)
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HDCD_TG_MISMATCH,4,2           ## @HDCD_TG_MISMATCH
	.no_dead_strip	_hdcd_process_stereo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdcd_process_stereo
_hdcd_process_stereo:                   ; @hdcd_process_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, x2
	mov	x25, x1
	mov	x19, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x0, [x0]
	ldr	w20, [x0]
	ldr	w21, [x0, #8]
	ldr	w8, [x19, #16]
	cbz	w8, LBB0_2
; %bb.1:
	mov	x1, x25
	mov	x2, x22
	mov	w3, #2
	bl	_hdcd_analyze_prepare
	ldr	x8, [x19]
	add	x0, x8, #8
	add	x1, x25, #4
	mov	x2, x22
	mov	w3, #2
	bl	_hdcd_analyze_prepare
LBB0_2:
	add	x8, sp, #16
	add	x2, x8, #4
	add	x1, sp, #16
	mov	x0, x19
	str	x2, [sp, #8]                    ; 8-byte Folded Spill
	bl	_hdcd_control_stereo
	cmp	w22, #1
	b.lt	LBB0_12
; %bb.3:
	mov	x26, x0
	mov	w23, #0
	lsl	w8, w22, #1
	add	x28, x25, w8, sxtw #2
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldp	w5, w3, [x19, #8]
	ldr	w6, [sp, #16]
	mov	x0, x25
	mov	x1, x27
	mov	w2, #2
	mov	x4, x20
	bl	_hdcd_envelope
	mov	x20, x0
	add	x0, x25, #4
	ldp	w5, w3, [x19, #8]
	ldr	w6, [sp, #20]
	mov	x1, x27
	mov	w2, #2
	mov	x4, x21
	bl	_hdcd_envelope
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	mov	x21, x0
	sub	w22, w22, w27
	add	x1, sp, #16
	mov	x0, x19
	ldr	x2, [sp, #8]                    ; 8-byte Folded Reload
	bl	_hdcd_control_stereo
	mov	x26, x0
	mov	w23, #1
	mov	x25, x24
	cmp	w22, #1
	b.le	LBB0_8
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	lsl	w8, w23, #1
	add	x24, x25, w8, uxtw #2
	sub	w27, w22, w23
	lsl	w8, w27, #1
	add	x8, x24, w8, sxtw #2
	cmp	x8, x28
	cset	w0, ls
	bl	_av_assert0
	ldr	x1, [x19]
	mov	x0, x19
	mov	w2, #2
	mov	x3, x24
	mov	x4, x27
	mov	w5, #0
	bl	_hdcd_scan
	add	w8, w23, w0
	sub	w27, w8, #1
	lsl	w8, w27, #1
	add	x24, x25, w8, sxtw #2
	cmp	x24, x28
	cset	w0, ls
	bl	_av_assert0
	ldr	w6, [x19, #16]
	cbz	w6, LBB0_4
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w4, [x19, #8]
	ldr	w5, [sp, #16]
	ldr	x8, [x19]
	ldr	w7, [x8, #4]
Lloh3:
	adrp	x23, _HDCD_TG_MISMATCH@GOTPAGE
Lloh4:
	ldr	x23, [x23, _HDCD_TG_MISMATCH@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w26, w8
	cset	w8, eq
	str	w8, [sp]
	mov	x0, x25
	mov	x1, x27
	mov	w2, #2
	mov	x3, x20
	bl	_hdcd_analyze
	mov	x20, x0
	add	x0, x25, #4
	ldr	w4, [x19, #8]
	ldr	w5, [sp, #20]
	ldr	w6, [x19, #16]
	ldr	x8, [x19]
	ldr	w7, [x8, #12]
	ldr	w8, [x23]
	cmp	w26, w8
	cset	w8, eq
	str	w8, [sp]
	mov	x1, x27
	mov	w2, #2
	mov	x3, x21
	bl	_hdcd_analyze
	b	LBB0_5
LBB0_8:
	add	x8, x24, #8
	cmp	x8, x28
	cset	w0, ls
	bl	_av_assert0
	ldr	w6, [x19, #16]
	cbz	w6, LBB0_10
; %bb.9:
	ldr	w4, [x19, #8]
	ldr	w5, [sp, #16]
	ldr	x8, [x19]
	ldr	w7, [x8, #4]
Lloh5:
	adrp	x22, _HDCD_TG_MISMATCH@GOTPAGE
Lloh6:
	ldr	x22, [x22, _HDCD_TG_MISMATCH@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w26, w8
	cset	w8, eq
	str	w8, [sp]
	mov	x0, x24
	mov	w1, #1
	mov	w2, #2
	mov	x3, x20
	bl	_hdcd_analyze
	mov	x20, x0
	add	x0, x24, #4
	ldr	w4, [x19, #8]
	ldr	w5, [sp, #20]
	ldr	w6, [x19, #16]
	ldr	x8, [x19]
	ldr	w7, [x8, #12]
	ldr	w8, [x22]
	cmp	w26, w8
	cset	w8, eq
	str	w8, [sp]
	mov	w1, #1
	mov	w2, #2
	mov	x3, x21
	bl	_hdcd_analyze
	b	LBB0_11
LBB0_10:
	ldp	w5, w3, [x19, #8]
	ldr	w6, [sp, #16]
	mov	x0, x24
	mov	w1, #1
	mov	w2, #2
	mov	x4, x20
	bl	_hdcd_envelope
	mov	x20, x0
	add	x0, x24, #4
	ldp	w5, w3, [x19, #8]
	ldr	w6, [sp, #20]
	mov	w1, #1
	mov	w2, #2
	mov	x4, x21
	bl	_hdcd_envelope
LBB0_11:
	mov	x21, x0
LBB0_12:
	ldr	x8, [x19]
	str	w20, [x8]
	str	w21, [x8, #8]
	ldr	x8, [sp, #24]
Lloh7:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh8:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	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
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_HDCD_TG_MISMATCH,4,2           ; @HDCD_TG_MISMATCH
	.no_dead_strip	_hdcd_process_stereo
.subsections_via_symbols
