	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function tune_mute_led
_tune_mute_led:                         ## @tune_mute_led
	.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
	leaq	L_.str(%rip), %rsi
	xorl	%r14d, %r14d
	xorl	%edx, %edx
	callq	_ctl_find
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_master_mute_sw_put@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, (%rax)
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	xorl	%edx, %edx
	callq	_snd_ac97_remove_ctl
	movq	_AC97_POWERDOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	movl	$32768, %edx                    ## imm = 0x8000
	movl	$32768, %ecx                    ## imm = 0x8000
	callq	_snd_ac97_update_bits
	movq	_AC97_SCAP_EAPD_LED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%rbx)
	jmp	LBB0_3
LBB0_1:
	movq	_ENOENT@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
LBB0_3:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Master Playback Switch"

	.comm	_ENOENT,4,2                     ## @ENOENT
	.comm	_master_mute_sw_put,4,2         ## @master_mute_sw_put
L_.str.1:                               ## @.str.1
	.asciz	"External Amplifier"

	.comm	_AC97_POWERDOWN,4,2             ## @AC97_POWERDOWN
	.comm	_AC97_SCAP_EAPD_LED,4,2         ## @AC97_SCAP_EAPD_LED
	.no_dead_strip	_tune_mute_led
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function tune_mute_led
_tune_mute_led:                         ; @tune_mute_led
	.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
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, #0
	bl	_ctl_find
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _master_mute_sw_put@GOTPAGE
Lloh3:
	ldr	x8, [x8, _master_mute_sw_put@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x0]
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	mov	x2, #0
	bl	_snd_ac97_remove_ctl
Lloh7:
	adrp	x8, _AC97_POWERDOWN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _AC97_POWERDOWN@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	mov	w2, #32768
	mov	w3, #32768
	bl	_snd_ac97_update_bits
	mov	w0, #0
Lloh10:
	adrp	x8, _AC97_SCAP_EAPD_LED@GOTPAGE
Lloh11:
	ldr	x8, [x8, _AC97_SCAP_EAPD_LED@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ldr	w9, [x19]
	orr	w8, w9, w8
	str	w8, [x19]
	b	LBB0_3
LBB0_2:
Lloh13:
	adrp	x8, _ENOENT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Master Playback Switch"

	.comm	_ENOENT,4,2                     ; @ENOENT
	.comm	_master_mute_sw_put,4,2         ; @master_mute_sw_put
l_.str.1:                               ; @.str.1
	.asciz	"External Amplifier"

	.comm	_AC97_POWERDOWN,4,2             ; @AC97_POWERDOWN
	.comm	_AC97_SCAP_EAPD_LED,4,2         ; @AC97_SCAP_EAPD_LED
	.no_dead_strip	_tune_mute_led
.subsections_via_symbols
