	.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, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr_2
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_dev_get_drvdata
	movq	%rax, %r13
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movl	(%rax,%rcx,4), %r15d
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	cmpq	$2, -48(%rbp)
	jb	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_8
LBB0_1:
	movl	%eax, %r14d
	jmp	LBB0_8
LBB0_4:
	movl	%r15d, %ebx
	sarl	$3, %ebx
	movq	%r13, %r12
	addq	$16, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	$1, %eax
	movl	%r15d, %ecx
	shlq	%cl, %rax
	cmpq	$0, -48(%rbp)
	je	LBB0_6
## %bb.5:
	orq	8(%r13), %rax
	jmp	LBB0_7
LBB0_6:
	notq	%rax
	andq	8(%r13), %rax
LBB0_7:
	movq	%rax, 8(%r13)
	movq	24(%r13), %rcx
	movslq	%ebx, %rdx
	movl	(%rcx,%rdx,4), %esi
	andb	$-8, %r15b
	movl	%r15d, %ecx
	shrq	%cl, %rax
	movzbl	%al, %edx
	movq	%r13, %rdi
	callq	_nct6775_write_value
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_8:
	movl	%r14d, %eax
	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
	.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	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr_2
	mov	x22, x0
	mov	x0, x20
	bl	_dev_get_drvdata
	mov	x20, x0
	ldr	x8, [x0]
	ldr	x9, [x22]
	ldr	w22, [x8, x9, lsl #2]
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtoul
	tbnz	w0, #31, LBB0_3
; %bb.1:
	ldr	x8, [sp, #8]
	cmp	x8, #2
	b.lo	LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w19, w8
	b	LBB0_8
LBB0_3:
	mov	x19, x0
	b	LBB0_8
LBB0_4:
	asr	w23, w22, #3
	add	x21, x20, #16
	mov	x0, x21
	bl	_mutex_lock
	ldr	x9, [sp, #8]
	mov	w8, #1
	lsl	x8, x8, x22
	cbz	x9, LBB0_6
; %bb.5:
	ldr	x9, [x20, #8]
	orr	x8, x9, x8
	b	LBB0_7
LBB0_6:
	ldr	x9, [x20, #8]
	bic	x8, x9, x8
LBB0_7:
	str	x8, [x20, #8]
	ldr	x9, [x20, #24]
	ldr	w1, [x9, w23, sxtw #2]
	and	w9, w22, #0xfffffff8
	lsr	x8, x8, x9
	and	w2, w8, #0xff
	mov	x0, x20
	bl	_nct6775_write_value
	mov	x0, x21
	bl	_mutex_unlock
LBB0_8:
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_store_beep
.subsections_via_symbols
