	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_in
_store_in:                              ## @store_in
	.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	$56, %rsp
	.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, %r14
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr_2
	movslq	(%rax), %rcx
	movq	%rcx, -88(%rbp)                 ## 8-byte Spill
	movslq	4(%rax), %r15
	movq	%rbx, %rdi
	callq	_to_i2c_client
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r13
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	-48(%rbp), %rsi
	movl	%r15d, %edi
	callq	_in_to_reg
	movq	%rax, -48(%rbp)
	cmpl	$17, %r15d
	movq	%r15, %rdx
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	jl	LBB0_3
## %bb.4:
	movq	%rbx, %r15
	movl	(%r13), %ecx
	movq	%rdx, %r14
	addl	$-17, %edx
	movzbl	%dl, %edx
	btl	%edx, %ecx
	jb	LBB0_6
## %bb.5:
	shrq	$3, %rax
	movq	%rax, -48(%rbp)
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_7
LBB0_3:
	movq	%rdx, %r14
	movq	%rbx, %r15
LBB0_6:
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$1023, %edx                     ## imm = 0x3FF
	callq	_clamp_val
	movq	%rax, -48(%rbp)
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	addq	$24, %r13
	movq	%r13, -72(%rbp)                 ## 8-byte Spill
	movq	%r13, %rdi
	callq	_mutex_lock
	movq	_IN_LSB_SHIFT_IDX@GOTPCREL(%rip), %rbx
	movq	(%rbx), %rax
	movq	%r14, %r13
	movq	(%rax,%r14,8), %rax
	movq	_IN_LSB_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movslq	(%rax,%rcx,4), %r14
	movl	%r14d, %edi
	movq	-88(%rbp), %r12                 ## 8-byte Reload
	movl	%r12d, %esi
	callq	_IN_LSB_REG
	movq	%r15, %rdi
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%eax, %esi
	callq	_w83795_read
	movq	(%rbx), %rcx
	movq	(%rcx,%r13,8), %rcx
	movq	_IN_LSB_SHIFT@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movb	(%rcx,%rdx,4), %cl
	movl	$3, %edx
	shll	%cl, %edx
	notl	%edx
	andl	%eax, %edx
	movq	-48(%rbp), %rbx
	andl	$3, %ebx
	shlq	%cl, %rbx
	orl	%edx, %ebx
	movl	%r14d, %edi
	movl	%r12d, %esi
	callq	_IN_LSB_REG
	movq	%r15, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	callq	_w83795_write
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	8(%r15), %rax
	movq	(%rax,%r14,8), %rax
	movl	%ebx, (%rax,%r12,4)
	movl	-48(%rbp), %eax
	shrl	$2, %eax
	movzbl	%al, %ebx
	movq	_W83795_REG_IN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	movl	(%rax,%r12,4), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %edx
	callq	_w83795_write
	movq	16(%r15), %rax
	movq	(%rax,%r13,8), %rax
	movl	%ebx, (%rax,%r12,4)
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	callq	_mutex_unlock
	movq	-80(%rbp), %rax                 ## 8-byte Reload
LBB0_7:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_IN_LSB_SHIFT_IDX,8,3           ## @IN_LSB_SHIFT_IDX
	.comm	_IN_LSB_IDX,8,3                 ## @IN_LSB_IDX
	.comm	_IN_LSB_SHIFT,8,3               ## @IN_LSB_SHIFT
	.comm	_W83795_REG_IN,8,3              ## @W83795_REG_IN
	.no_dead_strip	_store_in
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_in
_store_in:                              ; @store_in
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x3
	mov	x24, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr_2
	ldpsw	x22, x23, [x0]
	mov	x0, x20
	bl	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x21, x0
	add	x2, sp, #8
	mov	x0, x24
	mov	w1, #10
	bl	_kstrtoul
	tbnz	x0, #63, LBB0_5
; %bb.1:
	ldr	x1, [sp, #8]
	mov	x0, x23
	bl	_in_to_reg
	str	x0, [sp, #8]
	cmp	w23, #17
	b.lt	LBB0_4
; %bb.2:
	ldr	w8, [x21]
	sub	w9, w23, #17
	lsr	w8, w8, w9
	tbnz	w8, #0, LBB0_4
; %bb.3:
	lsr	x0, x0, #3
	str	x0, [sp, #8]
LBB0_4:
	mov	w1, #0
	mov	w2, #1023
	bl	_clamp_val
	str	x0, [sp, #8]
	add	x24, x21, #24
	mov	x0, x24
	bl	_mutex_lock
Lloh0:
	adrp	x25, _IN_LSB_SHIFT_IDX@GOTPAGE
Lloh1:
	ldr	x25, [x25, _IN_LSB_SHIFT_IDX@GOTPAGEOFF]
	ldr	x8, [x25]
	lsl	x26, x23, #3
	ldr	x8, [x8, x26]
Lloh2:
	adrp	x9, _IN_LSB_IDX@GOTPAGE
Lloh3:
	ldr	x9, [x9, _IN_LSB_IDX@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	ldrsw	x23, [x8, x9, lsl #2]
	mov	x0, x23
	mov	x1, x22
	bl	_IN_LSB_REG
	mov	x1, x0
	mov	x0, x20
	bl	_w83795_read
	ldr	x8, [x25]
	ldr	x8, [x8, x26]
Lloh5:
	adrp	x9, _IN_LSB_SHIFT@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IN_LSB_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	ldr	w8, [x8, x9, lsl #2]
	mov	w9, #3
	lsl	w9, w9, w8
	bic	w9, w0, w9
	ldr	x10, [sp, #8]
	and	x10, x10, #0x3
	lsl	x8, x10, x8
	orr	w25, w9, w8
	mov	x0, x23
	mov	x1, x22
	bl	_IN_LSB_REG
	mov	x1, x0
	mov	x0, x20
	mov	x2, x25
	bl	_w83795_write
	ldr	x8, [x21, #8]
	ldr	x8, [x8, x23, lsl #3]
	lsl	x23, x22, #2
	str	w25, [x8, x23]
	ldr	w8, [sp, #8]
Lloh8:
	adrp	x9, _W83795_REG_IN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _W83795_REG_IN@GOTPAGEOFF]
	ubfx	w22, w8, #2, #8
Lloh10:
	ldr	x8, [x9]
	ldr	x8, [x8, x26]
	ldr	w1, [x8, x23]
	mov	x0, x20
	mov	x2, x22
	bl	_w83795_write
	ldr	x8, [x21, #16]
	ldr	x8, [x8, x26]
	str	w22, [x8, x23]
	mov	x0, x24
	bl	_mutex_unlock
	b	LBB0_6
LBB0_5:
Lloh11:
	adrp	x8, _EINVAL@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	neg	x19, x8
LBB0_6:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_IN_LSB_SHIFT_IDX,8,3           ; @IN_LSB_SHIFT_IDX
	.comm	_IN_LSB_IDX,8,3                 ; @IN_LSB_IDX
	.comm	_IN_LSB_SHIFT,8,3               ; @IN_LSB_SHIFT
	.comm	_W83795_REG_IN,8,3              ; @W83795_REG_IN
	.no_dead_strip	_store_in
.subsections_via_symbols
