	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_hda_spdif_in_switch_put
_snd_hda_spdif_in_switch_put:           ## @snd_hda_spdif_in_switch_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movl	(%rbx), %ebx
	movq	(%r14), %rax
	xorl	%r13d, %r13d
	cmpl	$0, (%rax)
	setne	%r13b
	leaq	4(%r15), %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movl	(%r15), %r12d
	cmpl	%r13d, %r12d
	je	LBB0_2
## %bb.1:
	movl	%r13d, (%r15)
	movq	_AC_VERB_SET_DIGI_CONVERT_1@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	%r13d, %r8d
	callq	_snd_hda_codec_write_cache
LBB0_2:
	xorl	%ebx, %ebx
	cmpl	%r13d, %r12d
	setne	%bl
	movq	%r14, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_VERB_SET_DIGI_CONVERT_1,4,2 ## @AC_VERB_SET_DIGI_CONVERT_1
	.no_dead_strip	_snd_hda_spdif_in_switch_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_hda_spdif_in_switch_put
_snd_hda_spdif_in_switch_put:           ; @snd_hda_spdif_in_switch_put
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	x19, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x21, x0
	ldr	w22, [x20]
	ldr	x8, [x19]
	ldr	w8, [x8]
	cmp	w8, #0
	cset	w20, ne
	add	x19, x0, #4
	mov	x0, x19
	bl	_mutex_lock
	ldr	w23, [x21]
	cmp	w23, w20
	b.eq	LBB0_2
; %bb.1:
	str	w20, [x21]
Lloh0:
	adrp	x8, _AC_VERB_SET_DIGI_CONVERT_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC_VERB_SET_DIGI_CONVERT_1@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
	mov	x0, x21
	mov	x1, x22
	mov	w2, #0
	mov	x4, x20
	bl	_snd_hda_codec_write_cache
LBB0_2:
	cmp	w23, w20
	cset	w20, ne
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_VERB_SET_DIGI_CONVERT_1,4,2 ; @AC_VERB_SET_DIGI_CONVERT_1
	.no_dead_strip	_snd_hda_spdif_in_switch_put
.subsections_via_symbols
