	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_hdsp_control_spdif_stream_put
_snd_hdsp_control_spdif_stream_put:     ## @snd_hdsp_control_spdif_stream_put
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_snd_kcontrol_chip
	movq	%rax, %rbx
	movq	%r14, %rdi
	callq	_snd_hdsp_convert_from_aes
	movl	%eax, %r12d
	leaq	8(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	xorl	%r15d, %r15d
	cmpl	(%rbx), %r12d
	setne	%r15b
	movl	%r12d, (%rbx)
	movq	_HDSP_SPDIFProfessional@GOTPCREL(%rip), %rax
	movq	_HDSP_SPDIFNonAudio@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_HDSP_SPDIFEmphasis@GOTPCREL(%rip), %rax
	orl	(%rax), %edx
	notl	%edx
	andl	4(%rbx), %edx
	movq	_HDSP_controlRegister@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	%r12d, %edx
	movl	%edx, 4(%rbx)
	movq	%rbx, %rdi
	callq	_hdsp_write
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HDSP_SPDIFProfessional,4,2     ## @HDSP_SPDIFProfessional
	.comm	_HDSP_SPDIFNonAudio,4,2         ## @HDSP_SPDIFNonAudio
	.comm	_HDSP_SPDIFEmphasis,4,2         ## @HDSP_SPDIFEmphasis
	.comm	_HDSP_controlRegister,4,2       ## @HDSP_controlRegister
	.no_dead_strip	_snd_hdsp_control_spdif_stream_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_hdsp_control_spdif_stream_put
_snd_hdsp_control_spdif_stream_put:     ; @snd_hdsp_control_spdif_stream_put
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	bl	_snd_kcontrol_chip
	mov	x20, x0
	mov	x0, x19
	bl	_snd_hdsp_convert_from_aes
	mov	x19, x0
	add	x21, x20, #8
	mov	x0, x21
	bl	_spin_lock_irq
	ldp	w8, w9, [x20]
	cmp	w19, w8
	str	w19, [x20]
Lloh0:
	adrp	x8, _HDSP_SPDIFProfessional@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDSP_SPDIFProfessional@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x10, _HDSP_SPDIFNonAudio@GOTPAGE
Lloh4:
	ldr	x10, [x10, _HDSP_SPDIFNonAudio@GOTPAGEOFF]
Lloh5:
	ldr	w10, [x10]
	orr	w8, w10, w8
Lloh6:
	adrp	x10, _HDSP_SPDIFEmphasis@GOTPAGE
Lloh7:
	ldr	x10, [x10, _HDSP_SPDIFEmphasis@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	orr	w8, w8, w10
	cset	w22, ne
	bic	w8, w9, w8
Lloh9:
	adrp	x9, _HDSP_controlRegister@GOTPAGE
Lloh10:
	ldr	x9, [x9, _HDSP_controlRegister@GOTPAGEOFF]
Lloh11:
	ldr	w1, [x9]
	orr	w2, w8, w19
	str	w2, [x20, #4]
	mov	x0, x20
	bl	_hdsp_write
	mov	x0, x21
	bl	_spin_unlock_irq
	mov	x0, x22
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HDSP_SPDIFProfessional,4,2     ; @HDSP_SPDIFProfessional
	.comm	_HDSP_SPDIFNonAudio,4,2         ; @HDSP_SPDIFNonAudio
	.comm	_HDSP_SPDIFEmphasis,4,2         ; @HDSP_SPDIFEmphasis
	.comm	_HDSP_controlRegister,4,2       ; @HDSP_controlRegister
	.no_dead_strip	_snd_hdsp_control_spdif_stream_put
.subsections_via_symbols
