	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_ymfpci_spdif_stream_put
_snd_ymfpci_spdif_stream_put:           ## @snd_ymfpci_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), %rax
	movl	(%rax), %ecx
	movl	4(%rax), %r15d
	andl	$62, %ecx
	shll	$8, %r15d
	orl	%ecx, %r15d
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irq
	movl	(%rbx), %r12d
	movl	%r15d, (%rbx)
	movq	_YDSXGR_SPDIFOUTCTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_snd_ymfpci_readw
	testb	$2, %al
	je	LBB0_2
## %bb.1:
	movq	_YDSXGR_SPDIFOUTSTATUS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_snd_ymfpci_writew
LBB0_2:
	xorl	%ebx, %ebx
	cmpl	%r15d, %r12d
	setne	%bl
	movq	%r14, %rdi
	callq	_spin_unlock_irq
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_YDSXGR_SPDIFOUTCTRL,4,2        ## @YDSXGR_SPDIFOUTCTRL
	.comm	_YDSXGR_SPDIFOUTSTATUS,4,2      ## @YDSXGR_SPDIFOUTSTATUS
	.no_dead_strip	_snd_ymfpci_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_ymfpci_spdif_stream_put
_snd_ymfpci_spdif_stream_put:           ; @snd_ymfpci_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
	ldr	x8, [x19]
	ldp	w9, w8, [x8]
	and	w21, w9, #0x3e
	bfi	w21, w8, #8, #24
	add	x19, x0, #4
	mov	x0, x19
	bl	_spin_lock_irq
	ldr	w22, [x20]
	str	w21, [x20]
Lloh0:
	adrp	x8, _YDSXGR_SPDIFOUTCTRL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _YDSXGR_SPDIFOUTCTRL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_snd_ymfpci_readw
	tbz	w0, #1, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _YDSXGR_SPDIFOUTSTATUS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _YDSXGR_SPDIFOUTSTATUS@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldr	w2, [x20]
	mov	x0, x20
	bl	_snd_ymfpci_writew
LBB0_2:
	cmp	w22, w21
	cset	w20, ne
	mov	x0, x19
	bl	_spin_unlock_irq
	mov	x0, x20
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_YDSXGR_SPDIFOUTCTRL,4,2        ; @YDSXGR_SPDIFOUTCTRL
	.comm	_YDSXGR_SPDIFOUTSTATUS,4,2      ; @YDSXGR_SPDIFOUTSTATUS
	.no_dead_strip	_snd_ymfpci_spdif_stream_put
.subsections_via_symbols
