	.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	$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, %r15
	movq	%rsi, %rbx
	callq	_to_i2c_client
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr_2
	movl	(%rax), %r14d
	leal	(%r14,%r14), %eax
	leal	-4(%r14), %ebx
	xorl	%r12d, %r12d
	cmpl	$4, %r14d
	setl	-44(%rbp)                       ## 1-byte Folded Spill
	cmovll	%eax, %ebx
	movq	%r15, %rdi
	xorl	%esi, %esi
	movl	$10, %edx
	callq	_simple_strtoul
	cmpl	$6, %eax
	jne	LBB0_2
## %bb.1:
	movl	$3, %r13d
	cmpl	$4, %r14d
	jl	LBB0_7
LBB0_2:
	movl	$1, %r13d
	cmpl	$3, %eax
	jne	LBB0_4
## %bb.3:
	cmpl	$4, %r14d
	jl	LBB0_7
LBB0_4:
	cmpl	$4, %eax
	jne	LBB0_6
## %bb.5:
	cmpl	$3, %r14d
	jle	LBB0_6
LBB0_7:
	movb	-44(%rbp), %al                  ## 1-byte Reload
	movb	%al, %r12b
	movl	%ebx, -44(%rbp)                 ## 4-byte Spill
	leal	(%r12,%r12), %ebx
	incl	%ebx
	xorl	%r12d, %r12d
	cmpl	$4, %r14d
	setge	%r12b
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_W83793_REG_TEMP_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_w83793_read_value
	movq	(%r14), %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	shll	%cl, %ebx
	notl	%ebx
	andl	%eax, %ebx
                                        ## kill: def $cl killed $cl killed $ecx
	shll	%cl, %r13d
	orl	%ebx, %r13d
	movl	%r13d, (%rdx,%r12,4)
	movq	_W83793_REG_TEMP_MODE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movl	(%rax,%r12,4), %esi
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %edx
	callq	_w83793_write_value
	movq	%r15, %rdi
	callq	_mutex_unlock
	movq	-72(%rbp), %rax                 ## 8-byte Reload
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subq	(%rcx), %rax
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @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:
	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	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	w26, [x0]
	subs	w8, w26, #4
	mov	w25, #3
	csinc	w23, w25, wzr, lt
	lsl	w9, w26, #1
	csel	w24, w9, w8, lt
	mov	x0, x22
	mov	x1, #0
	mov	w2, #10
	bl	_simple_strtoul
	cmp	w0, #6
	b.ne	LBB0_2
; %bb.1:
	cmp	w26, #4
	b.lt	LBB0_7
LBB0_2:
	cmp	w0, #3
	b.ne	LBB0_4
; %bb.3:
	cmp	w26, #4
	b.lt	LBB0_6
LBB0_4:
	cmp	w0, #4
	b.ne	LBB0_9
; %bb.5:
	cmp	w26, #3
	b.le	LBB0_9
LBB0_6:
	mov	w25, #1
LBB0_7:
	cmp	w26, #3
	cset	w26, gt
	add	x22, x21, #8
	mov	x0, x22
	bl	_mutex_lock
Lloh0:
	adrp	x27, _W83793_REG_TEMP_MODE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _W83793_REG_TEMP_MODE@GOTPAGEOFF]
	ldr	x8, [x27]
	lsl	x26, x26, #2
	ldr	w1, [x8, x26]
	mov	x0, x20
	bl	_w83793_read_value
	ldr	x8, [x21]
	lsl	w9, w23, w24
	bic	w9, w0, w9
	lsl	w10, w25, w24
	orr	w2, w9, w10
	str	w2, [x8, x26]
	ldr	x8, [x27]
	ldr	w1, [x8, x26]
	mov	x0, x20
	bl	_w83793_write_value
	mov	x0, x22
	bl	_mutex_unlock
LBB0_8:
	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
LBB0_9:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_8
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_W83793_REG_TEMP_MODE,8,3       ; @W83793_REG_TEMP_MODE
	.no_dead_strip	_store_temp_mode
.subsections_via_symbols
