	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ad1884a_laptop_automute
_ad1884a_laptop_automute:               ## @ad1884a_laptop_automute
	.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, %r14
	movl	$17, %esi
	callq	_snd_hda_jack_detect
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	movl	$18, %esi
	callq	_snd_hda_jack_detect
LBB0_2:
	movq	_HDA_OUTPUT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_HDA_AMP_MUTE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	cmovnel	%r8d, %eax
	movq	%r14, %rdi
	movl	$22, %esi
	xorl	%ecx, %ecx
	movl	%eax, %r9d
	callq	_snd_hda_codec_amp_stereo
	movq	_AC_VERB_SET_EAPD_BTLENABLE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addl	%ebx, %ebx
	movq	%r14, %rdi
	movl	$22, %esi
	xorl	%edx, %edx
	movl	%ebx, %r8d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_snd_hda_codec_write            ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_HDA_OUTPUT,4,2                 ## @HDA_OUTPUT
	.comm	_HDA_AMP_MUTE,4,2               ## @HDA_AMP_MUTE
	.comm	_AC_VERB_SET_EAPD_BTLENABLE,4,2 ## @AC_VERB_SET_EAPD_BTLENABLE
	.no_dead_strip	_ad1884a_laptop_automute
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ad1884a_laptop_automute
_ad1884a_laptop_automute:               ; @ad1884a_laptop_automute
	.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, x0
	mov	w1, #17
	bl	_snd_hda_jack_detect
	cbnz	w0, LBB0_2
; %bb.1:
	mov	x0, x19
	mov	w1, #18
	bl	_snd_hda_jack_detect
LBB0_2:
Lloh0:
	adrp	x8, _HDA_OUTPUT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _HDA_OUTPUT@GOTPAGEOFF]
Lloh2:
	ldr	w2, [x8]
Lloh3:
	adrp	x8, _HDA_AMP_MUTE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _HDA_AMP_MUTE@GOTPAGEOFF]
Lloh5:
	ldr	w4, [x8]
	cmp	w0, #0
	csel	w5, wzr, w4, eq
	cset	w20, eq
	mov	x0, x19
	mov	w1, #22
	mov	w3, #0
	bl	_snd_hda_codec_amp_stereo
Lloh6:
	adrp	x8, _AC_VERB_SET_EAPD_BTLENABLE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _AC_VERB_SET_EAPD_BTLENABLE@GOTPAGEOFF]
Lloh8:
	ldr	w3, [x8]
	lsl	w4, w20, #1
	mov	x0, x19
	mov	w1, #22
	mov	w2, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_snd_hda_codec_write
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_HDA_OUTPUT,4,2                 ; @HDA_OUTPUT
	.comm	_HDA_AMP_MUTE,4,2               ; @HDA_AMP_MUTE
	.comm	_AC_VERB_SET_EAPD_BTLENABLE,4,2 ; @AC_VERB_SET_EAPD_BTLENABLE
	.no_dead_strip	_ad1884a_laptop_automute
.subsections_via_symbols
