	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad1988_spdif_playback_source_get
_ad1988_spdif_playback_source_get:      ## @ad1988_spdif_playback_source_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	%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, %r15
	movq	_AC_VERB_GET_AMP_GAIN_MUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	_AC_AMP_GET_INPUT@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	xorl	%ebx, %ebx
	movq	%r15, %rdi
	movl	$29, %esi
	xorl	%edx, %edx
	callq	_snd_hda_codec_read
	testb	$-128, %al
	je	LBB0_2
## %bb.1:
	movq	_AC_VERB_GET_CONNECT_SEL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r12d, %r12d
	movq	%r15, %rdi
	movl	$11, %esi
	xorl	%edx, %edx
	xorl	%r8d, %r8d
	callq	_snd_hda_codec_read
                                        ## kill: def $eax killed $eax def $rax
	leal	1(%rax), %ebx
	cmpl	$3, %eax
	cmovael	%r12d, %ebx
LBB0_2:
	movq	(%r14), %rax
	movl	%ebx, (%rax)
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AC_VERB_GET_AMP_GAIN_MUTE,4,2  ## @AC_VERB_GET_AMP_GAIN_MUTE
	.comm	_AC_AMP_GET_INPUT,4,2           ## @AC_AMP_GET_INPUT
	.comm	_AC_VERB_GET_CONNECT_SEL,4,2    ## @AC_VERB_GET_CONNECT_SEL
	.no_dead_strip	_ad1988_spdif_playback_source_get
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad1988_spdif_playback_source_get
_ad1988_spdif_playback_source_get:      ; @ad1988_spdif_playback_source_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	x19, x1
	bl	_snd_kcontrol_chip
	mov	x20, x0
Lloh0:
	adrp	x8, _AC_VERB_GET_AMP_GAIN_MUTE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AC_VERB_GET_AMP_GAIN_MUTE@GOTPAGEOFF]
Lloh2:
	ldr	w3, [x8]
Lloh3:
	adrp	x8, _AC_AMP_GET_INPUT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AC_AMP_GET_INPUT@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	mov	w1, #29
	mov	w2, #0
	bl	_snd_hda_codec_read
	mov	w8, #0
	tbz	w0, #7, LBB0_2
; %bb.1:
Lloh6:
	adrp	x8, _AC_VERB_GET_CONNECT_SEL@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AC_VERB_GET_CONNECT_SEL@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	mov	x0, x20
	mov	w1, #11
	mov	w2, #0
	mov	w4, #0
	bl	_snd_hda_codec_read
	cmp	w0, #3
	csinc	w8, wzr, w0, hs
LBB0_2:
	ldr	x9, [x19]
	str	w8, [x9]
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_AC_VERB_GET_AMP_GAIN_MUTE,4,2  ; @AC_VERB_GET_AMP_GAIN_MUTE
	.comm	_AC_AMP_GET_INPUT,4,2           ; @AC_AMP_GET_INPUT
	.comm	_AC_VERB_GET_CONNECT_SEL,4,2    ; @AC_VERB_GET_CONNECT_SEL
	.no_dead_strip	_ad1988_spdif_playback_source_get
.subsections_via_symbols
