	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -72(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr_2
	movslq	(%rax), %r13
	movslq	4(%rax), %r14
	movq	%rbx, %rdi
	callq	_to_i2c_client
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r15
	leaq	-48(%rbp), %rdx
	movq	%r12, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testl	%eax, %eax
	jne	LBB0_11
## %bb.1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	movq	_scale_in@GOTPCREL(%rip), %rsi
	movq	(%rsi), %rax
	movslq	(%rax,%r14,4), %rcx
	movl	%ecx, %eax
	shrl	$31, %eax
	addl	%ecx, %eax
	sarl	%eax
	cltq
	addq	-48(%rbp), %rax
	movq	%rax, %rdx
	orq	%rcx, %rdx
	shrq	$32, %rdx
	movq	%r14, %r13
	movq	%rsi, %r14
	je	LBB0_2
## %bb.3:
	xorl	%edx, %edx
	divq	%rcx
	jmp	LBB0_4
LBB0_2:
                                        ## kill: def $eax killed $eax killed $rax
	xorl	%edx, %edx
	divl	%ecx
                                        ## kill: def $eax killed $eax def $rax
LBB0_4:
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	movq	%rax, -48(%rbp)
	movq	%r15, %r12
	addq	$16, %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	cmpl	$3, %r13d
	jl	LBB0_9
## %bb.5:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	decl	%eax
	cmpl	$2, %eax
	jae	LBB0_6
## %bb.7:
	movq	_scale_in_add@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r13,4), %eax
	movq	(%r14), %rcx
	cltd
	idivl	(%rcx,%r13,4)
	cltq
	movq	-48(%rbp), %rdi
	subq	%rax, %rdi
	movq	%rdi, -48(%rbp)
	jmp	LBB0_8
LBB0_9:
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$1023, %edx                     ## imm = 0x3FF
	callq	_clamp_val
	movq	%rax, -48(%rbp)
	movq	_W83793_REG_IN_LOW_BITS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rbx, %r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_w83793_read_value
	movq	(%r15), %rdx
	leal	(%r13,%r13), %ecx
	movl	$3, %esi
	shll	%cl, %esi
	notl	%esi
	andl	%eax, %esi
	movq	-48(%rbp), %rax
	andl	$3, %eax
                                        ## kill: def $cl killed $cl killed $ecx
	shlq	%cl, %rax
	orl	%esi, %eax
	movl	%eax, (%rdx,%rbx,4)
	movq	_W83793_REG_IN_LOW_BITS@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%rbx,4), %esi
	movslq	%eax, %rdx
	movq	%r14, %rdi
	callq	_w83793_write_value
	movq	-48(%rbp), %rdx
	shrq	$2, %rdx
	jmp	LBB0_10
LBB0_6:
	movq	-48(%rbp), %rdi
LBB0_8:
	xorl	%esi, %esi
	movl	$255, %edx
	callq	_clamp_val
	movq	%rax, %rdx
	movq	%rbx, %r14
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	-56(%rbp), %r15                 ## 8-byte Reload
LBB0_10:
	movq	%rdx, -48(%rbp)
	movq	8(%r15), %rax
	movq	(%rax,%r13,8), %rax
	movq	%rdx, (%rax,%rbx,8)
	movq	_W83793_REG_IN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r13,8), %rax
	movl	(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_w83793_write_value
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	-72(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
LBB0_11:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_scale_in,8,3                   ## @scale_in
	.comm	_scale_in_add,8,3               ## @scale_in_add
	.comm	_W83793_REG_IN_LOW_BITS,8,3     ## @W83793_REG_IN_LOW_BITS
	.comm	_W83793_REG_IN,8,3              ## @W83793_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	x22, x2
	mov	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr_2
	ldpsw	x23, x24, [x0]
	mov	x0, x20
	bl	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x21, x0
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #10
	bl	_kstrtoul
	cbnz	w0, LBB0_8
; %bb.1:
	ldr	x8, [sp, #8]
Lloh0:
	adrp	x25, _scale_in@GOTPAGE
Lloh1:
	ldr	x25, [x25, _scale_in@GOTPAGEOFF]
	ldr	x9, [x25]
	ldrsw	x9, [x9, x24, lsl #2]
	cmp	w9, #0
	cinc	w10, w9, lt
	asr	w10, w10, #1
	add	x8, x8, w10, sxtw
	udiv	x8, x8, x9
	str	x8, [sp, #8]
	add	x22, x21, #16
	mov	x0, x22
	bl	_mutex_lock
	cmp	w24, #3
	b.lt	LBB0_4
; %bb.2:
	sub	w8, w23, #1
	cmp	w8, #2
	b.hs	LBB0_5
; %bb.3:
Lloh2:
	adrp	x8, _scale_in_add@GOTPAGE
Lloh3:
	ldr	x8, [x8, _scale_in_add@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	lsl	x9, x24, #2
	ldr	w8, [x8, x9]
	ldr	x10, [x25]
	ldr	w9, [x10, x9]
	sdiv	w8, w8, w9
	ldr	x9, [sp, #8]
	sub	x0, x9, w8, sxtw
	str	x0, [sp, #8]
	b	LBB0_6
LBB0_4:
	ldr	x0, [sp, #8]
	mov	w1, #0
	mov	w2, #1023
	bl	_clamp_val
	str	x0, [sp, #8]
Lloh5:
	adrp	x25, _W83793_REG_IN_LOW_BITS@GOTPAGE
Lloh6:
	ldr	x25, [x25, _W83793_REG_IN_LOW_BITS@GOTPAGEOFF]
	ldr	x8, [x25]
	lsl	x26, x23, #2
	ldr	w1, [x8, x26]
	mov	x0, x20
	bl	_w83793_read_value
	ldr	x8, [x21]
	lsl	w9, w24, #1
	mov	w10, #3
	lsl	w10, w10, w9
	bic	w10, w0, w10
	ldr	x11, [sp, #8]
	and	x11, x11, #0x3
	lsl	x9, x11, x9
	orr	w9, w10, w9
	str	w9, [x8, x26]
	ldr	x8, [x25]
	ldr	w1, [x8, x26]
	sxtw	x2, w9
	mov	x0, x20
	bl	_w83793_write_value
	ldr	x8, [sp, #8]
	lsr	x2, x8, #2
	b	LBB0_7
LBB0_5:
	ldr	x0, [sp, #8]
LBB0_6:
	mov	w1, #0
	mov	w2, #255
	bl	_clamp_val
	mov	x2, x0
LBB0_7:
	str	x2, [sp, #8]
	ldr	x8, [x21, #8]
	lsl	x9, x24, #3
	ldr	x8, [x8, x9]
	str	x2, [x8, x23, lsl #3]
Lloh7:
	adrp	x8, _W83793_REG_IN@GOTPAGE
Lloh8:
	ldr	x8, [x8, _W83793_REG_IN@GOTPAGEOFF]
Lloh9:
	ldr	x8, [x8]
	ldr	x8, [x8, x9]
	ldr	w1, [x8, x23, lsl #2]
	mov	x0, x20
	bl	_w83793_write_value
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x19
LBB0_8:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_scale_in,8,3                   ; @scale_in
	.comm	_scale_in_add,8,3               ; @scale_in_add
	.comm	_W83793_REG_IN_LOW_BITS,8,3     ; @W83793_REG_IN_LOW_BITS
	.comm	_W83793_REG_IN,8,3              ; @W83793_REG_IN
	.no_dead_strip	_store_in
.subsections_via_symbols
