	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_via8233_dxs3_spdif_put
_snd_via8233_dxs3_spdif_put:            ## @snd_via8233_dxs3_spdif_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	callq	_snd_kcontrol_chip
	movq	%rax, %rbx
	movl	4(%rax), %edi
	movq	_VIA8233_SPDIF_CTRL@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	-28(%rbp), %rdx
	callq	_pci_read_config_byte
	movl	-28(%rbp), %eax
	movq	_VIA8233_SPDIF_DX3@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movl	%edx, %ecx
	notl	%ecx
	andl	%eax, %ecx
	movq	(%r14), %rsi
	orl	%eax, %edx
	xorl	%eax, %eax
	cmpq	$0, (%rsi)
	cmovel	%ecx, %edx
	setne	%al
	movl	%eax, (%rbx)
	xorl	%eax, %eax
	cmpl	-28(%rbp), %edx
	je	LBB0_2
## %bb.1:
	movl	4(%rbx), %edi
	movl	(%r15), %esi
	callq	_pci_write_config_byte
	movl	$1, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VIA8233_SPDIF_CTRL,4,2         ## @VIA8233_SPDIF_CTRL
	.comm	_VIA8233_SPDIF_DX3,4,2          ## @VIA8233_SPDIF_DX3
	.no_dead_strip	_snd_via8233_dxs3_spdif_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_via8233_dxs3_spdif_put
_snd_via8233_dxs3_spdif_put:            ; @snd_via8233_dxs3_spdif_put
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x20, x1
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldr	w0, [x0, #4]
Lloh0:
	adrp	x21, _VIA8233_SPDIF_CTRL@GOTPAGE
Lloh1:
	ldr	x21, [x21, _VIA8233_SPDIF_CTRL@GOTPAGEOFF]
	ldr	w1, [x21]
	add	x2, sp, #12
	bl	_pci_read_config_byte
Lloh2:
	adrp	x8, _VIA8233_SPDIF_DX3@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VIA8233_SPDIF_DX3@GOTPAGEOFF]
	ldr	w9, [sp, #12]
Lloh4:
	ldr	w8, [x8]
	bic	w10, w9, w8
	ldr	x11, [x20]
	ldr	x11, [x11]
	orr	w8, w8, w9
	cmp	x11, #0
	csel	w2, w10, w8, eq
	cset	w8, ne
	str	w8, [x19]
	ldr	w8, [sp, #12]
	cmp	w2, w8
	b.ne	LBB0_2
; %bb.1:
	mov	w0, #0
	b	LBB0_3
LBB0_2:
	ldr	w0, [x19, #4]
	ldr	w1, [x21]
	bl	_pci_write_config_byte
	mov	w0, #1
LBB0_3:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_VIA8233_SPDIF_CTRL,4,2         ; @VIA8233_SPDIF_CTRL
	.comm	_VIA8233_SPDIF_DX3,4,2          ; @VIA8233_SPDIF_DX3
	.no_dead_strip	_snd_via8233_dxs3_spdif_put
.subsections_via_symbols
