	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_temp_tolerance
_store_temp_tolerance:                  ## @store_temp_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	$40, %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, %r13
	movq	%rdi, %rbx
	movq	%rsi, %rdi
	callq	_to_sensor_dev_attr
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_i2c_client
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %rbx
	movslq	(%r15), %r15
	leaq	-80(%rbp), %rdx
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_strict_strtoul
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subq	(%rax), %r12
	jmp	LBB0_6
LBB0_2:
	cmpl	$2, %r15d
	ja	LBB0_3
## %bb.4:
	leaq	l_switch.table.store_temp_tolerance(%rip), %rax
	movq	(%rax,%r15,8), %rcx
	leaq	l_switch.table.store_temp_tolerance.1(%rip), %rax
	movq	(%rax,%r15,8), %rdx
	leaq	l_switch.table.store_temp_tolerance.2(%rip), %rax
	movq	(%rax,%r15,8), %rax
	jmp	LBB0_5
LBB0_3:
	xorl	%ecx, %ecx
	xorl	%edx, %edx
	xorl	%eax, %eax
LBB0_5:
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r13
	addq	$8, %r13
	movq	%r13, %rdi
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %r14
	callq	_mutex_lock
	movq	-80(%rbp), %rdi
	callq	_TOL_TEMP_TO_REG
	movq	(%rbx), %rcx
	movq	%rax, (%rcx,%r15,8)
	movq	_W83791D_REG_TEMP_TOL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movl	(%rax,%rbx,4), %esi
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_w83791d_read
	andq	%rax, %r14
	movq	_W83791D_REG_TEMP_TOL@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%rbx,4), %esi
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	(%rax), %rax
	movq	(%rax,%r15,8), %rdx
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rdx
	orq	%r14, %rdx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_w83791d_write
	movq	%r13, %rdi
	callq	_mutex_unlock
LBB0_6:
	movq	%r12, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_W83791D_REG_TEMP_TOL,8,3       ## @W83791D_REG_TEMP_TOL
	.no_dead_strip	_store_temp_tolerance
	.section	__TEXT,__const
	.p2align	3                               ## @switch.table.store_temp_tolerance
l_switch.table.store_temp_tolerance:
	.quad	0                               ## 0x0
	.quad	0                               ## 0x0
	.quad	1                               ## 0x1

	.p2align	3                               ## @switch.table.store_temp_tolerance.1
l_switch.table.store_temp_tolerance.1:
	.quad	0                               ## 0x0
	.quad	4                               ## 0x4
	.quad	0                               ## 0x0

	.p2align	3                               ## @switch.table.store_temp_tolerance.2
l_switch.table.store_temp_tolerance.2:
	.quad	240                             ## 0xf0
	.quad	15                              ## 0xf
	.quad	240                             ## 0xf0

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_temp_tolerance
_store_temp_tolerance:                  ; @store_temp_tolerance
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	mov	x23, x0
	mov	x0, x20
	bl	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x21, x0
	ldrsw	x24, [x23]
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #10
	bl	_strict_strtoul
	cbz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_6
LBB0_2:
	lsl	x23, x24, #3
	cmp	w24, #2
	b.hi	LBB0_4
; %bb.3:
Lloh3:
	adrp	x8, l_switch.table.store_temp_tolerance@PAGE
Lloh4:
	add	x8, x8, l_switch.table.store_temp_tolerance@PAGEOFF
	ldr	x26, [x8, x23]
Lloh5:
	adrp	x8, l_switch.table.store_temp_tolerance.1@PAGE
Lloh6:
	add	x8, x8, l_switch.table.store_temp_tolerance.1@PAGEOFF
	ldr	x24, [x8, x23]
Lloh7:
	adrp	x8, l_switch.table.store_temp_tolerance.2@PAGE
Lloh8:
	add	x8, x8, l_switch.table.store_temp_tolerance.2@PAGEOFF
	ldr	x25, [x8, x23]
	b	LBB0_5
LBB0_4:
	mov	x26, #0
	mov	x24, #0
	mov	x25, #0
LBB0_5:
	add	x22, x21, #8
	mov	x0, x22
	bl	_mutex_lock
	ldr	x0, [sp, #8]
	bl	_TOL_TEMP_TO_REG
	ldr	x8, [x21]
	str	x0, [x8, x23]
Lloh9:
	adrp	x27, _W83791D_REG_TEMP_TOL@GOTPAGE
Lloh10:
	ldr	x27, [x27, _W83791D_REG_TEMP_TOL@GOTPAGEOFF]
	ldr	x8, [x27]
	lsl	x26, x26, #2
	ldr	w1, [x8, x26]
	mov	x0, x20
	bl	_w83791d_read
	ldr	x8, [x27]
	ldr	w1, [x8, x26]
	and	x8, x0, x25
	ldr	x9, [x21]
	ldr	x9, [x9, x23]
	lsl	x9, x9, x24
	orr	x2, x9, x8
	mov	x0, x20
	bl	_w83791d_write
	mov	x0, x22
	bl	_mutex_unlock
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_W83791D_REG_TEMP_TOL,8,3       ; @W83791D_REG_TEMP_TOL
	.no_dead_strip	_store_temp_tolerance
	.section	__TEXT,__const
	.p2align	3                               ; @switch.table.store_temp_tolerance
l_switch.table.store_temp_tolerance:
	.quad	0                               ; 0x0
	.quad	0                               ; 0x0
	.quad	1                               ; 0x1

	.p2align	3                               ; @switch.table.store_temp_tolerance.1
l_switch.table.store_temp_tolerance.1:
	.quad	0                               ; 0x0
	.quad	4                               ; 0x4
	.quad	0                               ; 0x0

	.p2align	3                               ; @switch.table.store_temp_tolerance.2
l_switch.table.store_temp_tolerance.2:
	.quad	240                             ; 0xf0
	.quad	15                              ; 0xf
	.quad	240                             ; 0xf0

.subsections_via_symbols
