	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function snd_emu10k1_shared_spdif_get
_snd_emu10k1_shared_spdif_get:          ## @snd_emu10k1_shared_spdif_get
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	callq	_snd_kcontrol_chip
	movq	%rax, %rbx
	cmpq	$0, 16(%rax)
	movq	8(%rax), %rdi
	je	LBB0_2
## %bb.1:
	movq	_A_IOCFG@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_inl
	movq	_A_IOCFG_GPOUT0@GOTPCREL(%rip), %rdx
	jmp	LBB0_3
LBB0_2:
	movq	_HCFG@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_inl
	movq	_HCFG_GPOUT0@GOTPCREL(%rip), %rdx
LBB0_3:
	xorl	%ecx, %ecx
	andl	(%rdx), %eax
	setne	%cl
	movq	(%r14), %rax
	movl	%ecx, (%rax)
	movq	(%rbx), %rdx
	cmpq	$0, (%rdx)
	je	LBB0_5
## %bb.4:
	xorl	$1, %ecx
	movl	%ecx, (%rax)
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_A_IOCFG,8,3                    ## @A_IOCFG
	.comm	_A_IOCFG_GPOUT0,4,2             ## @A_IOCFG_GPOUT0
	.comm	_HCFG,8,3                       ## @HCFG
	.comm	_HCFG_GPOUT0,4,2                ## @HCFG_GPOUT0
	.no_dead_strip	_snd_emu10k1_shared_spdif_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function snd_emu10k1_shared_spdif_get
_snd_emu10k1_shared_spdif_get:          ; @snd_emu10k1_shared_spdif_get
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x1
	bl	_snd_kcontrol_chip
	mov	x19, x0
	ldp	x8, x9, [x0, #8]
	cbz	x9, LBB0_2
; %bb.1:
Lloh0:
	adrp	x9, _A_IOCFG@GOTPAGE
Lloh1:
	ldr	x9, [x9, _A_IOCFG@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inl
Lloh3:
	adrp	x8, _A_IOCFG_GPOUT0@GOTPAGE
Lloh4:
	ldr	x8, [x8, _A_IOCFG_GPOUT0@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:
Lloh5:
	adrp	x9, _HCFG@GOTPAGE
Lloh6:
	ldr	x9, [x9, _HCFG@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_inl
Lloh8:
	adrp	x8, _HCFG_GPOUT0@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HCFG_GPOUT0@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	tst	w8, w0
	cset	w8, ne
	ldr	x9, [x20]
	str	w8, [x9]
	ldr	x10, [x19]
	ldr	x10, [x10]
	cbz	x10, LBB0_5
; %bb.4:
	eor	w8, w8, #0x1
	str	w8, [x9]
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_A_IOCFG,8,3                    ; @A_IOCFG
	.comm	_A_IOCFG_GPOUT0,4,2             ; @A_IOCFG_GPOUT0
	.comm	_HCFG,8,3                       ; @HCFG
	.comm	_HCFG_GPOUT0,4,2                ; @HCFG_GPOUT0
	.no_dead_strip	_snd_emu10k1_shared_spdif_get
.subsections_via_symbols
