	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_hda_spdif_default_put
_snd_hda_spdif_default_put:             ## @snd_hda_spdif_default_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, %r12
	movq	%rdi, %rbx
	callq	_snd_kcontrol_chip
	movq	%rax, %r15
	movl	(%rbx), %ebx
	movq	%rax, %rdi
	callq	_mutex_lock
	movq	%r15, %rdi
	addq	$4, %rdi
	movl	%ebx, %esi
	callq	_snd_array_elem
	movq	%rax, %rbx
	movq	(%rax), %r14
	movq	(%r12), %rax
	movl	4(%rax), %ecx
	movl	8(%rax), %edx
	shll	$8, %ecx
	orl	(%rax), %ecx
	shll	$16, %edx
	movl	12(%rax), %edi
	shll	$24, %edi
	orl	%edx, %edi
	orl	%ecx, %edi
	movl	%edi, 8(%rbx)
	callq	_convert_from_spdif_status
                                        ## kill: def $ax killed $ax def $eax
	movl	12(%rbx), %r12d
	movl	%r12d, %ecx
	andl	$1, %ecx
	orl	%eax, %ecx
	movzwl	%cx, %r13d
	movl	%r13d, 12(%rbx)
	cmpl	%r13d, %r12d
	je	LBB0_3
## %bb.1:
	cmpq	$-1, %r14
	je	LBB0_3
## %bb.2:
	movzwl	%ax, %ecx
	shrl	$8, %ecx
	movzbl	%r13b, %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	_set_dig_out_convert
LBB0_3:
	xorl	%ebx, %ebx
	cmpl	%r13d, %r12d
	setne	%bl
	movq	%r15, %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
	.no_dead_strip	_snd_hda_spdif_default_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_default_put
_snd_hda_spdif_default_put:             ; @snd_hda_spdif_default_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	x21, x1
	mov	x20, x0
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	w20, [x20]
	bl	_mutex_lock
	add	x0, x19, #4
	mov	x1, x20
	bl	_snd_array_elem
	mov	x22, x0
	ldr	x20, [x0]
	ldr	x8, [x21]
	ldp	w9, w10, [x8]
	orr	w9, w9, w10, lsl #8
	ldp	w10, w8, [x8, #8]
	orr	w9, w9, w10, lsl #16
	orr	w0, w9, w8, lsl #24
	str	w0, [x22, #8]
	bl	_convert_from_spdif_status
	ldr	w21, [x22, #12]
	and	w8, w21, #0x1
	orr	w23, w8, w0
	str	w23, [x22, #12]
	cmp	w21, w23
	ccmn	x20, #1, #4, ne
	b.eq	LBB0_2
; %bb.1:
	lsr	w3, w0, #8
	and	w2, w23, #0xff
	mov	x0, x19
	mov	x1, x20
	bl	_set_dig_out_convert
LBB0_2:
	cmp	w21, w23
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_snd_hda_spdif_default_put
.subsections_via_symbols
