	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_temp_mode
_store_temp_mode:                       ## @store_temp_mode
	.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, %r13
	movq	%rsi, %rbx
	callq	_to_i2c_client
	movq	%rax, %r12
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr_2
	movl	(%rax), %ebx
	leal	(%rbx,%rbx), %eax
	leal	-4(%rbx), %r14d
	cmpl	$4, %ebx
	setl	%r15b
	cmovll	%eax, %r14d
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testl	%eax, %eax
	jne	LBB0_9
## %bb.1:
	movq	-48(%rbp), %rcx
	cmpq	$6, %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	$0, %esi
	jne	LBB0_3
## %bb.2:
	movl	$3, %eax
	cmpl	$4, %ebx
	jl	LBB0_8
LBB0_3:
	movl	$1, %eax
	cmpq	$3, %rcx
	jne	LBB0_5
## %bb.4:
	cmpl	$4, %ebx
	jl	LBB0_8
LBB0_5:
	cmpq	$4, %rcx
	jne	LBB0_7
## %bb.6:
	cmpl	$3, %ebx
	jle	LBB0_7
LBB0_8:
	movb	%r15b, %sil
	leaq	(%rsi,%rsi), %r15
	incq	%r15
	movslq	%r14d, %r13
	xorl	%r14d, %r14d
	cmpl	$4, %ebx
	setge	%r14b
	movq	%rax, -48(%rbp)
	movq	%rdx, %rbx
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_mutex_lock
	movq	_W83793_REG_TEMP_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r12, %rdi
	callq	_w83793_read_value
	movl	%r13d, %ecx
	shlq	%cl, %r15
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rsi
	notq	%r15
	andq	%rax, %r15
	movq	%r15, (%rsi,%r14,8)
	movq	-48(%rbp), %rdx
	movl	%r13d, %ecx
	shlq	%cl, %rdx
	orq	%r15, %rdx
	movq	%rdx, (%rsi,%r14,8)
	movq	_W83793_REG_TEMP_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r14,4), %esi
	movq	%r12, %rdi
	callq	_w83793_write_value
	movq	%rbx, %rdi
	callq	_mutex_unlock
	movq	-64(%rbp), %rax                 ## 8-byte Reload
                                        ## kill: def $eax killed $eax killed $rax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_W83793_REG_TEMP_MODE,8,3       ## @W83793_REG_TEMP_MODE
	.no_dead_strip	_store_temp_mode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_temp_mode
_store_temp_mode:                       ; @store_temp_mode
	.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	x23, x1
	bl	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x21, x0
	mov	x0, x23
	bl	_to_sensor_dev_attr_2
	ldr	w24, [x0]
	subs	w8, w24, #4
	mov	w9, #3
	csinc	x23, x9, xzr, lt
	lsl	w9, w24, #1
	csel	w25, w9, w8, lt
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #10
	bl	_kstrtoul
	cbnz	w0, LBB0_10
; %bb.1:
	ldr	x8, [sp, #8]
	cmp	x8, #6
	b.ne	LBB0_4
; %bb.2:
	cmp	w24, #4
	b.ge	LBB0_4
; %bb.3:
	mov	w8, #3
	b	LBB0_9
LBB0_4:
	cmp	x8, #3
	b.ne	LBB0_6
; %bb.5:
	cmp	w24, #4
	b.lt	LBB0_8
LBB0_6:
	cmp	x8, #4
	b.ne	LBB0_11
; %bb.7:
	cmp	w24, #3
	b.le	LBB0_11
LBB0_8:
	mov	w8, #1
LBB0_9:
	sxtw	x25, w25
	cmp	w24, #3
	cset	w24, gt
	str	x8, [sp, #8]
	add	x22, x21, #8
	mov	x0, x22
	bl	_mutex_lock
Lloh0:
	adrp	x26, _W83793_REG_TEMP_MODE@GOTPAGE
Lloh1:
	ldr	x26, [x26, _W83793_REG_TEMP_MODE@GOTPAGEOFF]
	ldr	x8, [x26]
	lsl	x27, x24, #2
	ldr	w1, [x8, x27]
	mov	x0, x20
	bl	_w83793_read_value
	ldr	x8, [x21]
	lsl	x9, x23, x25
	lsl	x10, x24, #3
	bic	x9, x0, x9
	str	x9, [x8, x10]
	ldr	x11, [sp, #8]
	lsl	x11, x11, x25
	orr	x2, x11, x9
	str	x2, [x8, x10]
	ldr	x8, [x26]
	ldr	w1, [x8, x27]
	mov	x0, x20
	bl	_w83793_write_value
	mov	x0, x22
	bl	_mutex_unlock
	mov	x0, x19
LBB0_10:
	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
LBB0_11:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_10
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_W83793_REG_TEMP_MODE,8,3       ; @W83793_REG_TEMP_MODE
	.no_dead_strip	_store_temp_mode
.subsections_via_symbols
