	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad1983_add_spdif_mux_ctl
_ad1983_add_spdif_mux_ctl:              ## @ad1983_add_spdif_mux_ctl
	.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	(%rdi), %rbx
	movl	(%rbx), %esi
	xorl	%r14d, %r14d
	testl	%esi, %esi
	je	LBB0_4
## %bb.1:
	callq	_snd_hda_get_num_conns
	andl	$-2, %eax
	cmpl	$2, %eax
	jne	LBB0_4
## %bb.2:
	movq	_ad1983_auto_smux_mixer@GOTPCREL(%rip), %rdx
	xorl	%r14d, %r14d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_snd_hda_gen_add_kctl
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_4:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_ad1983_auto_smux_mixer,4,2     ## @ad1983_auto_smux_mixer
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.no_dead_strip	_ad1983_add_spdif_mux_ctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad1983_add_spdif_mux_ctl
_ad1983_add_spdif_mux_ctl:              ; @ad1983_add_spdif_mux_ctl
	.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
	ldr	x19, [x0]
	ldr	w1, [x19]
	cbz	w1, LBB0_3
; %bb.1:
	bl	_snd_hda_get_num_conns
	and	w8, w0, #0xfffffffe
	cmp	w8, #2
	b.ne	LBB0_3
; %bb.2:
Lloh0:
	adrp	x2, _ad1983_auto_smux_mixer@GOTPAGE
Lloh1:
	ldr	x2, [x2, _ad1983_auto_smux_mixer@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, #0
	bl	_snd_hda_gen_add_kctl
	cbz	w0, LBB0_5
LBB0_3:
	mov	w0, #0
LBB0_4:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
Lloh2:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh3:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_ad1983_auto_smux_mixer,4,2     ; @ad1983_auto_smux_mixer
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.no_dead_strip	_ad1983_add_spdif_mux_ctl
.subsections_via_symbols
