	.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
	subq	$24, %rsp
	.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	_to_i2c_client
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr_2
	movl	(%rax), %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	cmpl	$2, %eax
	jae	LBB0_1
## %bb.2:
	movl	%eax, %r15d
	movq	%r14, -64(%rbp)                 ## 8-byte Spill
	movl	%ebx, %r14d
	andb	$7, %r14b
	sarl	$3, %ebx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	movq	%r13, -56(%rbp)                 ## 8-byte Spill
	addq	$8, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	movl	%ebx, %edi
	callq	_W83793_REG_BEEP
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_w83793_read_value
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	(%r13), %rdx
	movl	%r14d, %ecx
	shll	%cl, %r15d
	movslq	%ebx, %rbx
	btrl	%r14d, %eax
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	orl	%eax, %r15d
	movl	%r15d, (%rdx,%rbx,4)
	movl	%ebx, %edi
	callq	_W83793_REG_BEEP
	movq	(%r13), %rcx
	movl	(%rcx,%rbx,4), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_w83793_write_value
	movq	%r12, %rdi
	callq	_mutex_unlock
	jmp	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subq	(%rax), %r14
LBB0_3:
	movq	%r14, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @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:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	bl	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x21, x0
	mov	x0, x23
	bl	_to_sensor_dev_attr_2
	ldr	w23, [x0]
	mov	x0, x22
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	cmp	w0, #2
	b.hs	LBB0_2
; %bb.1:
	mov	x22, x0
	and	w25, w23, #0x7
	mov	w8, #1
	lsl	w26, w8, w25
	asr	w23, w23, #3
	add	x24, x21, #8
	mov	x0, x24
	bl	_mutex_lock
	mov	x0, x23
	bl	_W83793_REG_BEEP
	mov	x1, x0
	mov	x0, x20
	bl	_w83793_read_value
	ldr	x8, [x21]
	sbfiz	x27, x23, #2, #32
	bic	w9, w0, w26
	lsl	w10, w22, w25
	orr	w9, w9, w10
	str	w9, [x8, x27]
	mov	x0, x23
	bl	_W83793_REG_BEEP
	mov	x1, x0
	ldr	x8, [x21]
	ldr	w2, [x8, x27]
	mov	x0, x20
	bl	_w83793_write_value
	mov	x0, x24
	bl	_mutex_unlock
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_3:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_store_beep
.subsections_via_symbols
