	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function hdcd_control_stereo
_hdcd_control_stereo:                   ## @hdcd_control_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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, %rdx
	movq	%rdi, %rbx
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	16(%rdi), %rsi
	leaq	-56(%rbp), %rcx
	callq	_hdcd_control
	movq	16(%rbx), %rsi
	addq	$4, %rsi
	leaq	-52(%rbp), %rcx
	movq	%rbx, %rdi
	movq	%r14, %rdx
	callq	_hdcd_control
	movl	-56(%rbp), %edi
	cmpl	-52(%rbp), %edi
	jne	LBB0_2
## %bb.1:
	movl	%edi, (%rbx)
	movq	_HDCD_OK@GOTPCREL(%rip), %rax
	jmp	LBB0_3
LBB0_2:
	movl	4(%rbx), %eax
	movl	%eax, -60(%rbp)                 ## 4-byte Spill
	movl	8(%rbx), %r15d
	movq	_AV_LOG_VERBOSE@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	sarl	$7, %edi
	callq	_GAINTOFLOAT
	movl	%eax, %r13d
	movl	-52(%rbp), %edi
	sarl	$7, %edi
	callq	_GAINTOFLOAT
	movl	%eax, %r14d
	movl	(%rbx), %edi
	sarl	$7, %edi
	callq	_GAINTOFLOAT
	movl	%eax, (%rsp)
	leaq	L_.str(%rip), %rdx
	movl	%r15d, %edi
	movl	%r12d, %esi
	movl	-60(%rbp), %ecx                 ## 4-byte Reload
	movl	%r13d, %r8d
	movl	%r14d, %r9d
	callq	_av_log
	movq	_HDCD_TG_MISMATCH@GOTPCREL(%rip), %rax
LBB0_3:
	movl	(%rax), %eax
	movq	___stack_chk_guard@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	-48(%rbp), %rcx
	jne	LBB0_5
## %bb.4:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AV_LOG_VERBOSE,4,2             ## @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"hdcd error: Unmatched target_gain near %d: tg0: %0.1f, tg1: %0.1f, lvg: %0.1f\n"

	.comm	_HDCD_TG_MISMATCH,4,2           ## @HDCD_TG_MISMATCH
	.comm	_HDCD_OK,4,2                    ## @HDCD_OK
	.no_dead_strip	_hdcd_control_stereo
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function hdcd_control_stereo
_hdcd_control_stereo:                   ; @hdcd_control_stereo
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x20, x2
	mov	x2, 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, #8]
	ldr	x1, [x0, #16]
	mov	x21, sp
	mov	x3, sp
	bl	_hdcd_control
	ldr	x8, [x19, #16]
	add	x1, x8, #4
	add	x3, x21, #4
	mov	x0, x19
	mov	x2, x20
	bl	_hdcd_control
	ldp	w8, w9, [sp]
	cmp	w8, w9
	b.ne	LBB0_2
; %bb.1:
	str	w8, [x19]
Lloh3:
	adrp	x8, _HDCD_OK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDCD_OK@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x9, _AV_LOG_VERBOSE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _AV_LOG_VERBOSE@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x9]
	ldp	w22, w21, [x19, #4]
	asr	w0, w8, #7
	bl	_GAINTOFLOAT
	mov	x23, x0
	ldr	w8, [sp, #4]
	asr	w0, w8, #7
	bl	_GAINTOFLOAT
	mov	x24, x0
	ldr	w8, [x19]
	asr	w0, w8, #7
	bl	_GAINTOFLOAT
	mov	x6, x0
Lloh8:
	adrp	x2, l_.str@PAGE
Lloh9:
	add	x2, x2, l_.str@PAGEOFF
	mov	x0, x21
	mov	x1, x20
	mov	x3, x22
	mov	x4, x23
	mov	x5, x24
	bl	_av_log
Lloh10:
	adrp	x8, _HDCD_TG_MISMATCH@GOTPAGE
Lloh11:
	ldr	x8, [x8, _HDCD_TG_MISMATCH@GOTPAGEOFF]
LBB0_3:
	ldr	w0, [x8]
	ldr	x8, [sp, #8]
Lloh12:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh13:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_5
; %bb.4:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_5:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_AV_LOG_VERBOSE,4,2             ; @AV_LOG_VERBOSE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"hdcd error: Unmatched target_gain near %d: tg0: %0.1f, tg1: %0.1f, lvg: %0.1f\n"

	.comm	_HDCD_TG_MISMATCH,4,2           ; @HDCD_TG_MISMATCH
	.comm	_HDCD_OK,4,2                    ; @HDCD_OK
	.no_dead_strip	_hdcd_control_stereo
.subsections_via_symbols
