	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_tolerance
_store_tolerance:                       ## @store_tolerance
	.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, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, %r15
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movslq	(%rax), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_to_i2c_client
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r12
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	movl	%eax, %r13d
	leaq	8(%r12), %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_W83L786NG_REG_TOLERANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_w83l786ng_read_value
	movl	%eax, %r14d
	movl	%r13d, %edi
	xorl	%esi, %esi
	movl	$15, %edx
	callq	_SENSORS_LIMIT
	andl	$15, %eax
	movl	%eax, %ecx
	shll	$4, %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	cmpq	$1, %rdi
	movl	$240, %edx
	movl	$15, %esi
	cmovel	%esi, %edx
	movq	(%r12), %rsi
	cmovnel	%eax, %ecx
	movl	%eax, (%rsi,%rdi,4)
	andl	%r14d, %edx
	orl	%ecx, %edx
	movq	_W83L786NG_REG_TOLERANCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_w83l786ng_write_value
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	-56(%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	_W83L786NG_REG_TOLERANCE,4,2    ## @W83L786NG_REG_TOLERANCE
	.no_dead_strip	_store_tolerance
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_tolerance
_store_tolerance:                       ; @store_tolerance
	.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	x20, x2
	mov	x21, x0
	mov	x0, x1
	bl	_to_sensor_dev_attr
	ldrsw	x25, [x0]
	mov	x0, x21
	bl	_to_i2c_client
	mov	x21, x0
	bl	_i2c_get_clientdata
	mov	x22, x0
	mov	x0, x20
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	mov	x20, x0
	add	x23, x22, #8
	mov	x0, x23
	bl	_mutex_lock
Lloh0:
	adrp	x26, _W83L786NG_REG_TOLERANCE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _W83L786NG_REG_TOLERANCE@GOTPAGEOFF]
	ldr	w1, [x26]
	mov	x0, x21
	bl	_w83l786ng_read_value
	mov	x24, x0
	mov	w27, #15
	mov	x0, x20
	mov	w1, #0
	mov	w2, #15
	bl	_SENSORS_LIMIT
	and	w8, w0, #0xf
	ldr	x9, [x22]
	str	w8, [x9, x25, lsl #2]
	lsl	w9, w8, #4
	mov	w10, #240
	cmp	w25, #1
	csel	w10, w27, w10, eq
	csel	w8, w9, w8, eq
	and	w9, w24, w10
	ldr	w1, [x26]
	orr	w2, w8, w9
	mov	x0, x21
	bl	_w83l786ng_write_value
	mov	x0, x23
	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
	.cfi_endproc
                                        ; -- End function
	.comm	_W83L786NG_REG_TOLERANCE,4,2    ; @W83L786NG_REG_TOLERANCE
	.no_dead_strip	_store_tolerance
.subsections_via_symbols
