	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_beep
_store_beep:                            ## @store_beep
	.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, %r15
	movq	%rsi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr
	movl	(%rax), %r13d
	leaq	-48(%rbp), %rdx
	movq	%r15, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testl	%eax, %eax
	jne	LBB0_13
## %bb.1:
	cmpq	$2, -48(%rbp)
	jae	LBB0_2
## %bb.3:
	movq	%r12, %r15
	addq	$4, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movl	$1, %ebx
	movl	%r13d, %ecx
	shll	%cl, %ebx
	cmpq	$0, -48(%rbp)
	je	LBB0_5
## %bb.4:
	orl	%ebx, (%r12)
	cmpl	$7, %r13d
	jg	LBB0_8
LBB0_7:
	movq	_W83781D_REG_BEEP_INTS1@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_w83781d_read_value
	movl	%eax, %ecx
	orl	%ebx, %ecx
	notl	%ebx
	andl	%eax, %ebx
	cmpq	$0, -48(%rbp)
	cmovnel	%ecx, %ebx
	jmp	LBB0_12
LBB0_2:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_13
LBB0_5:
	movl	%ebx, %eax
	notl	%eax
	andl	%eax, (%r12)
	cmpl	$7, %r13d
	jle	LBB0_7
LBB0_8:
	cmpl	$15, %r13d
	ja	LBB0_10
## %bb.9:
	movq	_W83781D_REG_BEEP_INTS2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_w83781d_read_value
	movl	%eax, %ebx
	addb	$-8, %r13b
	btsl	%r13d, %eax
	btrl	%r13d, %ebx
	movq	_W83781D_REG_BEEP_INTS2@GOTPCREL(%rip), %r13
	jmp	LBB0_11
LBB0_10:
	movq	_W83781D_REG_BEEP_INTS3@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_w83781d_read_value
	movl	%eax, %ebx
	addb	$-16, %r13b
	btsl	%r13d, %eax
	btrl	%r13d, %ebx
	movq	_W83781D_REG_BEEP_INTS3@GOTPCREL(%rip), %r13
LBB0_11:
	cmpq	$0, -48(%rbp)
	cmovnel	%eax, %ebx
LBB0_12:
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%ebx, %edx
	callq	_w83781d_write_value
	movq	%r15, %rdi
	callq	_mutex_unlock
	movl	%r14d, %eax
LBB0_13:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_W83781D_REG_BEEP_INTS1,4,2     ## @W83781D_REG_BEEP_INTS1
	.comm	_W83781D_REG_BEEP_INTS2,4,2     ## @W83781D_REG_BEEP_INTS2
	.comm	_W83781D_REG_BEEP_INTS3,4,2     ## @W83781D_REG_BEEP_INTS3
	.no_dead_strip	_store_beep
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_beep
_store_beep:                            ; @store_beep
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x3
	mov	x21, x2
	mov	x22, x1
	bl	_dev_get_drvdata
	mov	x20, x0
	mov	x0, x22
	bl	_to_sensor_dev_attr
	ldr	w22, [x0]
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtoul
	cbnz	w0, LBB0_13
; %bb.1:
	ldr	x8, [sp, #8]
	cmp	x8, #2
	b.hs	LBB0_4
; %bb.2:
	add	x21, x20, #4
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [sp, #8]
	mov	w9, #1
	lsl	w24, w9, w22
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w8, [x20]
	orr	w8, w8, w24
	b	LBB0_6
LBB0_4:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_13
LBB0_5:
	ldr	w8, [x20]
	bic	w8, w8, w24
LBB0_6:
	str	w8, [x20]
	cmp	w22, #7
	b.gt	LBB0_8
; %bb.7:
Lloh3:
	adrp	x23, _W83781D_REG_BEEP_INTS1@GOTPAGE
Lloh4:
	ldr	x23, [x23, _W83781D_REG_BEEP_INTS1@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_w83781d_read_value
	ldr	x8, [sp, #8]
	orr	w9, w0, w24
	bic	w10, w0, w24
	cmp	x8, #0
	csel	w2, w10, w9, eq
	b	LBB0_12
LBB0_8:
	cmp	w22, #15
	b.hi	LBB0_10
; %bb.9:
Lloh5:
	adrp	x23, _W83781D_REG_BEEP_INTS2@GOTPAGE
Lloh6:
	ldr	x23, [x23, _W83781D_REG_BEEP_INTS2@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_w83781d_read_value
	ldr	x8, [sp, #8]
	sub	w9, w22, #8
	b	LBB0_11
LBB0_10:
Lloh7:
	adrp	x23, _W83781D_REG_BEEP_INTS3@GOTPAGE
Lloh8:
	ldr	x23, [x23, _W83781D_REG_BEEP_INTS3@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_w83781d_read_value
	ldr	x8, [sp, #8]
	sub	w9, w22, #16
LBB0_11:
	mov	w10, #1
	lsl	w9, w10, w9
	orr	w10, w0, w9
	bic	w9, w0, w9
	cmp	x8, #0
	csel	w2, w9, w10, eq
LBB0_12:
	ldr	w1, [x23]
	mov	x0, x20
	bl	_w83781d_write_value
	mov	x0, x21
	bl	_mutex_unlock
	mov	x0, x19
LBB0_13:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_W83781D_REG_BEEP_INTS1,4,2     ; @W83781D_REG_BEEP_INTS1
	.comm	_W83781D_REG_BEEP_INTS2,4,2     ; @W83781D_REG_BEEP_INTS2
	.comm	_W83781D_REG_BEEP_INTS3,4,2     ; @W83781D_REG_BEEP_INTS3
	.no_dead_strip	_store_beep
.subsections_via_symbols
