	.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, %r12
	movq	%rdx, %r15
	movq	%rsi, %rbx
	callq	_dev_get_drvdata
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr
	movl	(%rax), %r13d
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	cmpq	$2, %rax
	jae	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%r14, %rdi
	addq	$4, %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	movl	$1, %r15d
	movl	%r13d, %ecx
	shll	%cl, %r15d
	testq	%rbx, %rbx
	je	LBB0_3
## %bb.5:
	orl	%r15d, (%r14)
	cmpl	$7, %r13d
	jg	LBB0_7
## %bb.6:
	movq	_W83781D_REG_BEEP_INTS1@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_w83781d_read_value
	movl	%eax, %edx
	orl	%r15d, %edx
	jmp	LBB0_16
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subq	(%rax), %r12
	jmp	LBB0_17
LBB0_3:
	notl	%r15d
	andl	%r15d, (%r14)
	cmpl	$8, %r13d
	jge	LBB0_12
## %bb.4:
	movq	_W83781D_REG_BEEP_INTS1@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_w83781d_read_value
	movl	%eax, %edx
	andl	%r15d, %edx
	jmp	LBB0_16
LBB0_7:
	cmpl	$15, %r13d
	ja	LBB0_11
## %bb.8:
	movq	_W83781D_REG_BEEP_INTS2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_w83781d_read_value
	movl	%eax, %edx
	addb	$-8, %r13b
	btsl	%r13d, %edx
	jmp	LBB0_15
LBB0_12:
	cmpl	$16, %r13d
	jae	LBB0_13
## %bb.10:
	movq	_W83781D_REG_BEEP_INTS2@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_w83781d_read_value
	movl	%eax, %edx
	addb	$-8, %r13b
	jmp	LBB0_14
LBB0_11:
	movq	_W83781D_REG_BEEP_INTS3@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_w83781d_read_value
	movl	%eax, %edx
	addb	$-16, %r13b
	btsl	%r13d, %edx
	jmp	LBB0_15
LBB0_13:
	movq	_W83781D_REG_BEEP_INTS3@GOTPCREL(%rip), %rbx
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_w83781d_read_value
	movl	%eax, %edx
	addb	$-16, %r13b
LBB0_14:
	btrl	%r13d, %edx
LBB0_15:
	movq	%rbx, %r13
LBB0_16:
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	movl	(%r13), %esi
	movq	%r14, %rdi
	callq	_w83781d_write_value
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_17:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @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:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	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	w23, [x0]
	mov	x0, x21
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	cmp	x0, #2
	b.hs	LBB0_4
; %bb.1:
	mov	x22, x0
	add	x21, x20, #4
	mov	x0, x21
	bl	_mutex_lock
	mov	w8, #1
	lsl	w24, w8, w23
	cbz	x22, LBB0_5
; %bb.2:
	ldr	w8, [x20]
	orr	w8, w8, w24
	str	w8, [x20]
	cmp	w23, #7
	b.gt	LBB0_7
; %bb.3:
Lloh0:
	adrp	x22, _W83781D_REG_BEEP_INTS1@GOTPAGE
Lloh1:
	ldr	x22, [x22, _W83781D_REG_BEEP_INTS1@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_w83781d_read_value
	orr	w2, w0, w24
	b	LBB0_15
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_16
LBB0_5:
	ldr	w8, [x20]
	bic	w8, w8, w24
	str	w8, [x20]
	subs	w25, w23, #8
	b.ge	LBB0_9
; %bb.6:
	mvn	w23, w24
Lloh5:
	adrp	x22, _W83781D_REG_BEEP_INTS1@GOTPAGE
Lloh6:
	ldr	x22, [x22, _W83781D_REG_BEEP_INTS1@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_w83781d_read_value
	and	w2, w0, w23
	b	LBB0_15
LBB0_7:
	cmp	w23, #15
	b.hi	LBB0_11
; %bb.8:
Lloh7:
	adrp	x22, _W83781D_REG_BEEP_INTS2@GOTPAGE
Lloh8:
	ldr	x22, [x22, _W83781D_REG_BEEP_INTS2@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_w83781d_read_value
	sub	w8, w23, #8
	b	LBB0_12
LBB0_9:
	subs	w23, w23, #16
	b.hs	LBB0_13
; %bb.10:
Lloh9:
	adrp	x22, _W83781D_REG_BEEP_INTS2@GOTPAGE
Lloh10:
	ldr	x22, [x22, _W83781D_REG_BEEP_INTS2@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_w83781d_read_value
	mov	w8, #1
	lsl	w8, w8, w25
	b	LBB0_14
LBB0_11:
Lloh11:
	adrp	x22, _W83781D_REG_BEEP_INTS3@GOTPAGE
Lloh12:
	ldr	x22, [x22, _W83781D_REG_BEEP_INTS3@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_w83781d_read_value
	sub	w8, w23, #16
LBB0_12:
	mov	w9, #1
	lsl	w8, w9, w8
	orr	w2, w0, w8
	b	LBB0_15
LBB0_13:
Lloh13:
	adrp	x22, _W83781D_REG_BEEP_INTS3@GOTPAGE
Lloh14:
	ldr	x22, [x22, _W83781D_REG_BEEP_INTS3@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x20
	bl	_w83781d_read_value
	mov	w8, #1
	lsl	w8, w8, w23
LBB0_14:
	bic	w2, w0, w8
LBB0_15:
	ldr	w1, [x22]
	mov	x0, x20
	bl	_w83781d_write_value
	mov	x0, x21
	bl	_mutex_unlock
LBB0_16:
	mov	x0, x19
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @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
