	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r14
	movq	%rdx, %rbx
	callq	_to_i2c_client
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r13
	leaq	-48(%rbp), %rdx
	movq	%rbx, %rdi
	movl	$10, %esi
	callq	_kstrtol
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	%r13, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	-48(%rbp), %rdi
	callq	_BEEP_MASK_TO_REG
	movq	_GLOBAL_BEEP_ENABLE_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	notl	%edx
	andl	%eax, %edx
	movl	%edx, (%r13)
	movl	4(%r13), %eax
	movq	_GLOBAL_BEEP_ENABLE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %eax
	orl	%edx, %eax
	movl	%eax, (%r13)
	cltq
	movq	%rax, -48(%rbp)
	movq	_W83791D_REG_BEEP_CTRL@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rcx
	movl	(%rcx), %esi
	movzbl	%al, %edx
	movq	%r12, %rdi
	callq	_w83791d_write
	movq	-48(%rbp), %rax
	sarq	$8, %rax
	movq	%rax, -48(%rbp)
	movq	(%rbx), %rcx
	movl	4(%rcx), %esi
	movzbl	%al, %edx
	movq	%r12, %rdi
	callq	_w83791d_write
	movq	-48(%rbp), %rax
	sarq	$8, %rax
	movq	%rax, -48(%rbp)
	movq	(%rbx), %rcx
	movl	8(%rcx), %esi
	movzbl	%al, %edx
	movq	%r12, %rdi
	callq	_w83791d_write
	sarq	$8, -48(%rbp)
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GLOBAL_BEEP_ENABLE_MASK,4,2    ## @GLOBAL_BEEP_ENABLE_MASK
	.comm	_GLOBAL_BEEP_ENABLE_SHIFT,4,2   ## @GLOBAL_BEEP_ENABLE_SHIFT
	.comm	_W83791D_REG_BEEP_CTRL,8,3      ## @W83791D_REG_BEEP_CTRL
	.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:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x22, x0
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtol
	cbnz	w0, LBB0_2
; %bb.1:
	add	x21, x22, #8
	mov	x0, x21
	bl	_mutex_lock
	ldr	x0, [sp, #8]
	bl	_BEEP_MASK_TO_REG
Lloh0:
	adrp	x8, _GLOBAL_BEEP_ENABLE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GLOBAL_BEEP_ENABLE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	bic	w8, w0, w8
	str	w8, [x22]
Lloh3:
	adrp	x9, _GLOBAL_BEEP_ENABLE_SHIFT@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GLOBAL_BEEP_ENABLE_SHIFT@GOTPAGEOFF]
	ldr	w10, [x22, #4]
Lloh5:
	ldr	w9, [x9]
	lsl	w9, w10, w9
	orr	w8, w9, w8
	str	w8, [x22]
	sxtw	x8, w8
	str	x8, [sp, #8]
Lloh6:
	adrp	x22, _W83791D_REG_BEEP_CTRL@GOTPAGE
Lloh7:
	ldr	x22, [x22, _W83791D_REG_BEEP_CTRL@GOTPAGEOFF]
	ldr	x9, [x22]
	ldr	w1, [x9]
	and	x2, x8, #0xff
	mov	x0, x20
	bl	_w83791d_write
	ldr	x8, [sp, #8]
	asr	x8, x8, #8
	str	x8, [sp, #8]
	ldr	x9, [x22]
	ldr	w1, [x9, #4]
	and	x2, x8, #0xff
	mov	x0, x20
	bl	_w83791d_write
	ldr	x8, [sp, #8]
	asr	x8, x8, #8
	str	x8, [sp, #8]
	ldr	x9, [x22]
	ldr	w1, [x9, #8]
	and	x2, x8, #0xff
	mov	x0, x20
	bl	_w83791d_write
	ldr	x8, [sp, #8]
	asr	x8, x8, #8
	str	x8, [sp, #8]
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
LBB0_2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_GLOBAL_BEEP_ENABLE_MASK,4,2    ; @GLOBAL_BEEP_ENABLE_MASK
	.comm	_GLOBAL_BEEP_ENABLE_SHIFT,4,2   ; @GLOBAL_BEEP_ENABLE_SHIFT
	.comm	_W83791D_REG_BEEP_CTRL,8,3      ; @W83791D_REG_BEEP_CTRL
	.no_dead_strip	_store_beep_mask
.subsections_via_symbols
