	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function beep_enable_show
_beep_enable_show:                      ## @beep_enable_show
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_mutex_lock
	movl	4(%rbx), %edi
	callq	_superio_enter
	testl	%eax, %eax
	je	LBB0_2
## %bb.1:
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movl	%r15d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_2:
	movl	4(%rbx), %edi
	movq	_NCT6683_LD_HWM@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_superio_select
	movl	4(%rbx), %edi
	movq	_NCT6683_REG_CR_BEEP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_superio_inb
	movl	%eax, %r15d
	movl	4(%rbx), %edi
	callq	_superio_exit
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	_NCT6683_CR_BEEP_MASK@GOTPCREL(%rip), %rax
	xorl	%edx, %edx
	andl	(%rax), %r15d
	setne	%dl
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sprintf                        ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_NCT6683_LD_HWM,4,2             ## @NCT6683_LD_HWM
	.comm	_NCT6683_REG_CR_BEEP,4,2        ## @NCT6683_REG_CR_BEEP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%u\n"

	.comm	_NCT6683_CR_BEEP_MASK,4,2       ## @NCT6683_CR_BEEP_MASK
	.no_dead_strip	_beep_enable_show
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function beep_enable_show
_beep_enable_show:                      ; @beep_enable_show
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x2
	bl	_dev_get_drvdata
	mov	x20, x0
	bl	_mutex_lock
	ldr	w0, [x20, #4]
	bl	_superio_enter
	cbz	w0, LBB0_2
; %bb.1:
	mov	x21, x0
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w0, [x20, #4]
Lloh0:
	adrp	x8, _NCT6683_LD_HWM@GOTPAGE
Lloh1:
	ldr	x8, [x8, _NCT6683_LD_HWM@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_superio_select
	ldr	w0, [x20, #4]
Lloh3:
	adrp	x8, _NCT6683_REG_CR_BEEP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _NCT6683_REG_CR_BEEP@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_superio_inb
	mov	x21, x0
	ldr	w0, [x20, #4]
	bl	_superio_exit
	mov	x0, x20
	bl	_mutex_unlock
Lloh6:
	adrp	x8, _NCT6683_CR_BEEP_MASK@GOTPAGE
Lloh7:
	ldr	x8, [x8, _NCT6683_CR_BEEP_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	tst	w8, w21
	cset	w2, ne
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_sprintf
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_NCT6683_LD_HWM,4,2             ; @NCT6683_LD_HWM
	.comm	_NCT6683_REG_CR_BEEP,4,2        ; @NCT6683_REG_CR_BEEP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%u\n"

	.comm	_NCT6683_CR_BEEP_MASK,4,2       ; @NCT6683_CR_BEEP_MASK
	.no_dead_strip	_beep_enable_show
.subsections_via_symbols
