	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r12
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr_2
	movslq	(%rax), %rcx
	movq	%rcx, -48(%rbp)                 ## 8-byte Spill
	movslq	4(%rax), %r15
	movq	%rbx, %rdi
	callq	_to_i2c_client
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r13
	movq	%r12, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movq	_scale_in@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rcx,%r15,4), %ecx
	movl	%ecx, %edx
	shrl	$31, %edx
	addl	%ecx, %edx
	sarl	%edx
	addl	%edx, %eax
	cltd
	idivl	%ecx
	movl	%eax, %ebx
	leaq	16(%r13), %r12
	movq	%r12, %rdi
	callq	_mutex_lock
	cmpq	$3, %r15
	jl	LBB0_4
## %bb.1:
	movq	_scale_in@GOTPCREL(%rip), %rcx
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	decl	%eax
	cmpl	$1, %eax
	ja	LBB0_3
## %bb.2:
	movq	_scale_in_add@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r15,4), %eax
	movq	(%rcx), %rcx
	cltd
	idivl	(%rcx,%r15,4)
	subl	%eax, %ebx
LBB0_3:
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	$255, %edx
	callq	_SENSORS_LIMIT
	movl	%eax, %ebx
	movq	%r14, %rdi
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	jmp	LBB0_5
LBB0_4:
	movl	%ebx, %edi
	xorl	%esi, %esi
	movl	$1023, %edx                     ## imm = 0x3FF
	callq	_SENSORS_LIMIT
	movl	%eax, %ebx
	movq	_W83793_REG_IN_LOW_BITS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movl	(%rax,%r12,4), %esi
	movq	%r14, %rdi
	callq	_w83793_read_value
	leal	(%r15,%r15), %ecx
	movl	$3, %esi
	shll	%cl, %esi
	movq	(%r13), %rdi
	notl	%esi
	andl	%eax, %esi
	movl	%ebx, %edx
	andl	$3, %edx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %edx
	orl	%esi, %edx
	movl	%edx, (%rdi,%r12,4)
	movq	_W83793_REG_IN_LOW_BITS@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %esi
	movq	%r14, %rdi
	callq	_w83793_write_value
	sarl	$2, %ebx
	movq	%r14, %rdi
	movq	%r12, %rcx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
LBB0_5:
	movq	8(%r13), %rax
	movq	(%rax,%r15,8), %rax
	movl	%ebx, (%rax,%rcx,4)
	movq	_W83793_REG_IN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rax
	movl	(%rax,%rcx,4), %esi
	movl	%ebx, %edx
	callq	_w83793_write_value
	movq	%r12, %rdi
	callq	_mutex_unlock
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	addq	$24, %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:
	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	x20, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr_2
	ldpsw	x24, x25, [x0]
	mov	x0, x20
	bl	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x21, x0
	mov	x0, x22
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
Lloh0:
	adrp	x26, _scale_in@GOTPAGE
Lloh1:
	ldr	x26, [x26, _scale_in@GOTPAGEOFF]
	ldr	x8, [x26]
	ldr	w8, [x8, x25, lsl #2]
	cmp	w8, #0
	cinc	w9, w8, lt
	add	w9, w0, w9, asr #1
	sdiv	w23, w9, w8
	add	x22, x21, #16
	mov	x0, x22
	bl	_mutex_lock
	cmp	w25, #3
	b.lt	LBB0_4
; %bb.1:
	sub	w8, w24, #1
	cmp	w8, #1
	b.hi	LBB0_3
; %bb.2:
Lloh2:
	adrp	x8, _scale_in_add@GOTPAGE
Lloh3:
	ldr	x8, [x8, _scale_in_add@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	lsl	x9, x25, #2
	ldr	w8, [x8, x9]
	ldr	x10, [x26]
	ldr	w9, [x10, x9]
	sdiv	w8, w8, w9
	sub	w23, w23, w8
LBB0_3:
	mov	x0, x23
	mov	w1, #0
	mov	w2, #255
	bl	_SENSORS_LIMIT
	mov	x2, x0
	b	LBB0_5
LBB0_4:
	mov	x0, x23
	mov	w1, #0
	mov	w2, #1023
	bl	_SENSORS_LIMIT
	mov	x23, x0
Lloh5:
	adrp	x26, _W83793_REG_IN_LOW_BITS@GOTPAGE
Lloh6:
	ldr	x26, [x26, _W83793_REG_IN_LOW_BITS@GOTPAGEOFF]
	ldr	x8, [x26]
	lsl	x27, x24, #2
	ldr	w1, [x8, x27]
	mov	x0, x20
	bl	_w83793_read_value
	ldr	x8, [x21]
	lsl	w9, w25, #1
	mov	w10, #3
	lsl	w10, w10, w9
	bic	w10, w0, w10
	and	w11, w23, #0x3
	lsl	w9, w11, w9
	orr	w2, w10, w9
	str	w2, [x8, x27]
	ldr	x8, [x26]
	ldr	w1, [x8, x27]
	mov	x0, x20
	bl	_w83793_write_value
	asr	w2, w23, #2
LBB0_5:
	ldr	x8, [x21, #8]
	lsl	x9, x25, #3
	ldr	x8, [x8, x9]
	lsl	x10, x24, #2
	str	w2, [x8, x10]
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, x10]
	mov	x0, x20
	bl	_w83793_write_value
	mov	x0, x22
	bl	_mutex_unlock
	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 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
