	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_beep_mask
_store_beep_mask:                       ## @store_beep_mask
	.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	%rcx, %r14
	movq	%rdx, %r15
	callq	_dev_get_drvdata
	movq	%rax, %rbx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movl	%eax, %r12d
	leaq	16(%rbx), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	andl	$32768, (%rbx)                  ## imm = 0x8000
	movq	8(%rbx), %rsi
	movl	%r12d, %edi
	callq	_BEEP_MASK_TO_REG
	orl	(%rbx), %eax
	movl	%eax, (%rbx)
	movq	_W83781D_REG_BEEP_INTS1@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movzbl	%al, %edx
	movq	%rbx, %rdi
	callq	_w83781d_write_value
	movq	_W83781D_REG_BEEP_INTS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	1(%rbx), %edx
	movq	%rbx, %rdi
	callq	_w83781d_write_value
	movq	8(%rbx), %rax
	movq	_w83781d@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.1:
	movq	_as99127f@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_W83781D_REG_BEEP_INTS3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movzbl	2(%rbx), %edx
	movq	%rbx, %rdi
	callq	_w83781d_write_value
LBB0_3:
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	%r14, %rax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_W83781D_REG_BEEP_INTS1,4,2     ## @W83781D_REG_BEEP_INTS1
	.comm	_W83781D_REG_BEEP_INTS2,4,2     ## @W83781D_REG_BEEP_INTS2
	.comm	_w83781d,8,3                    ## @w83781d
	.comm	_as99127f,8,3                   ## @as99127f
	.comm	_W83781D_REG_BEEP_INTS3,4,2     ## @W83781D_REG_BEEP_INTS3
	.no_dead_strip	_store_beep_mask
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_beep_mask
_store_beep_mask:                       ; @store_beep_mask
	.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, x3
	mov	x21, x2
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x21
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	mov	x22, x0
	add	x21, x20, #16
	mov	x0, x21
	bl	_mutex_lock
	ldr	w8, [x20]
	and	w8, w8, #0x8000
	str	w8, [x20]
	ldr	x1, [x20, #8]
	mov	x0, x22
	bl	_BEEP_MASK_TO_REG
	ldr	w8, [x20]
	orr	w8, w8, w0
	str	w8, [x20]
Lloh0:
	adrp	x9, _W83781D_REG_BEEP_INTS1@GOTPAGE
Lloh1:
	ldr	x9, [x9, _W83781D_REG_BEEP_INTS1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x9]
	and	w2, w8, #0xff
	mov	x0, x20
	bl	_w83781d_write_value
Lloh3:
	adrp	x8, _W83781D_REG_BEEP_INTS2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _W83781D_REG_BEEP_INTS2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	ldrb	w2, [x20, #1]
	mov	x0, x20
	bl	_w83781d_write_value
	ldr	x8, [x20, #8]
Lloh6:
	adrp	x9, _w83781d@GOTPAGE
Lloh7:
	ldr	x9, [x9, _w83781d@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
Lloh9:
	adrp	x10, _as99127f@GOTPAGE
Lloh10:
	ldr	x10, [x10, _as99127f@GOTPAGEOFF]
Lloh11:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.eq	LBB0_2
; %bb.1:
Lloh12:
	adrp	x8, _W83781D_REG_BEEP_INTS3@GOTPAGE
Lloh13:
	ldr	x8, [x8, _W83781D_REG_BEEP_INTS3@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	ldrb	w2, [x20, #2]
	mov	x0, x20
	bl	_w83781d_write_value
LBB0_2:
	mov	x0, x21
	bl	_mutex_unlock
	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
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_W83781D_REG_BEEP_INTS1,4,2     ; @W83781D_REG_BEEP_INTS1
	.comm	_W83781D_REG_BEEP_INTS2,4,2     ; @W83781D_REG_BEEP_INTS2
	.comm	_w83781d,8,3                    ; @w83781d
	.comm	_as99127f,8,3                   ; @as99127f
	.comm	_W83781D_REG_BEEP_INTS3,4,2     ; @W83781D_REG_BEEP_INTS3
	.no_dead_strip	_store_beep_mask
.subsections_via_symbols
