	.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, %r12
	movq	%rdx, %r13
	movq	%rsi, %rbx
	callq	_to_i2c_client
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr_2
	movl	(%rax), %r15d
	leaq	-48(%rbp), %rdx
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	-48(%rbp), %rax
	addq	$-5, %rax
	cmpq	$-3, %rax
	ja	LBB0_3
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subq	(%rax), %r12
	jmp	LBB0_8
LBB0_3:
	movq	%r14, %r13
	addq	$4, %r14
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	-48(%rbp), %rax
	cmpq	$4, %rax
	je	LBB0_6
## %bb.4:
	cmpq	$3, %rax
	jne	LBB0_7
## %bb.5:
	movl	$1, %eax
	movl	%r15d, %ecx
	shll	%cl, %eax
	movq	$1, -48(%rbp)
	orl	%eax, (%r13)
	jmp	LBB0_7
LBB0_6:
	movl	$-2, %eax
	movl	%r15d, %ecx
	roll	%cl, %eax
	movq	$3, -48(%rbp)
	andl	%eax, (%r13)
LBB0_7:
	addl	%r15d, %r15d
	movq	_W83795_REG_TEMP_CTRL2@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_w83795_read
	movl	$3, %esi
	movl	%r15d, %ecx
	shll	%cl, %esi
	movq	-48(%rbp), %rdx
	shlq	%cl, %rdx
	notl	%esi
	andl	%eax, %esi
	orl	%esi, %edx
	movl	(%r13), %esi
	movq	%rbx, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_w83795_write
	movq	%r14, %rdi
	callq	_mutex_unlock
LBB0_8:
	movq	%r12, %rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.comm	_W83795_REG_TEMP_CTRL2,4,2      ## @W83795_REG_TEMP_CTRL2
	.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, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x3
	mov	x21, x2
	mov	x23, x1
	bl	_to_i2c_client
	mov	x20, x0
	bl	_i2c_get_clientdata
	mov	x22, x0
	mov	x0, x23
	bl	_to_sensor_dev_attr_2
	ldr	w23, [x0]
	add	x2, sp, #8
	mov	x0, x21
	mov	w1, #10
	bl	_kstrtoul
	tbnz	x0, #63, LBB0_2
; %bb.1:
	ldr	x8, [sp, #8]
	sub	x8, x8, #5
	cmn	x8, #3
	b.hi	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_9
LBB0_3:
	add	x21, x22, #4
	mov	x0, x21
	bl	_mutex_lock
	ldr	x8, [sp, #8]
	cmp	x8, #4
	b.eq	LBB0_6
; %bb.4:
	cmp	x8, #3
	b.ne	LBB0_8
; %bb.5:
	mov	w8, #1
	str	x8, [sp, #8]
	lsl	w8, w8, w23
	ldr	w9, [x22]
	orr	w8, w9, w8
	b	LBB0_7
LBB0_6:
	mov	w8, #3
	str	x8, [sp, #8]
	mov	w8, #1
	lsl	w8, w8, w23
	ldr	w9, [x22]
	bic	w8, w9, w8
LBB0_7:
	str	w8, [x22]
LBB0_8:
	lsl	w22, w23, #1
Lloh3:
	adrp	x23, _W83795_REG_TEMP_CTRL2@GOTPAGE
Lloh4:
	ldr	x23, [x23, _W83795_REG_TEMP_CTRL2@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x20
	bl	_w83795_read
	mov	w8, #3
	lsl	w8, w8, w22
	bic	w8, w0, w8
	ldr	x9, [sp, #8]
	lsl	x9, x9, x22
	orr	w2, w8, w9
	ldr	w1, [x23]
	mov	x0, x20
	bl	_w83795_write
	mov	x0, x21
	bl	_mutex_unlock
LBB0_9:
	mov	x0, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_W83795_REG_TEMP_CTRL2,4,2      ; @W83795_REG_TEMP_CTRL2
	.no_dead_strip	_store_temp_mode
.subsections_via_symbols
