	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_temp_src
_store_temp_src:                        ## @store_temp_src
	.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	%rsi, %r14
	movq	%rdi, %rbx
	callq	_to_i2c_client
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_w83795_update_pwm_config
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, %rdi
	callq	_to_sensor_dev_attr_2
	movslq	(%rax), %r14
	leaq	-72(%rbp), %rdx
	movq	%r13, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testq	%rax, %rax
	js	LBB0_7
## %bb.1:
	movq	-72(%rbp), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.2:
	cmpq	$14, %rax
	ja	LBB0_7
## %bb.3:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movq	_tss_map@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	decq	%rax
	movq	(%rcx), %rdx
	xorl	%esi, %esi
	cmpq	%rax, (%rdx,%r14,8)
	je	LBB0_8
## %bb.4:
	movq	8(%rcx), %rdx
	movl	$1, %esi
	cmpq	%rax, (%rdx,%r14,8)
	je	LBB0_8
## %bb.5:
	movq	16(%rcx), %rdx
	movl	$2, %esi
	cmpq	%rax, (%rdx,%r14,8)
	je	LBB0_8
## %bb.6:
	movq	24(%rcx), %rcx
	movl	$3, %esi
	cmpq	%rax, (%rcx,%r14,8)
	jne	LBB0_7
LBB0_8:
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movl	%r14d, %eax
	shrl	$31, %eax
	addl	%r14d, %eax
	sarl	%eax
	movslq	%eax, %rbx
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %r15
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	testb	$1, %r14b
	jne	LBB0_9
## %bb.10:
	movq	(%r13), %rax
	movl	$240, %ecx
	andl	(%rax,%rbx,4), %ecx
	movl	%ecx, (%rax,%rbx,4)
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	jmp	LBB0_11
LBB0_7:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subq	(%rax), %r12
	jmp	LBB0_12
LBB0_9:
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	shll	$4, %edx
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %ecx
	andl	$15, %ecx
	movl	%ecx, (%rax,%rbx,4)
LBB0_11:
	orl	%edx, %ecx
	movl	%ecx, (%rax,%rbx,4)
	movq	%rbx, %rdi
	callq	_W83795_REG_TSS
	movq	(%r13), %rcx
	movl	(%rcx,%rbx,4), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%eax, %esi
	callq	_w83795_write
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_12:
	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	_tss_map,8,3                    ## @tss_map
	.no_dead_strip	_store_temp_src
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_temp_src
_store_temp_src:                        ; @store_temp_src
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x3
	mov	x22, x2
	mov	x23, x1
	mov	x21, x0
	bl	_to_i2c_client
	mov	x20, x0
	mov	x0, x21
	bl	_w83795_update_pwm_config
	mov	x21, x0
	mov	x0, x23
	bl	_to_sensor_dev_attr_2
	ldrsw	x24, [x0]
	cmp	w24, #0
	cinc	w23, w24, lt
	add	x2, sp, #8
	mov	x0, x22
	mov	w1, #10
	bl	_kstrtoul
	tbnz	x0, #63, LBB0_13
; %bb.1:
	ldr	x8, [sp, #8]
	cbz	x8, LBB0_13
; %bb.2:
	cmp	x8, #14
	b.hi	LBB0_13
; %bb.3:
Lloh0:
	adrp	x9, _tss_map@GOTPAGE
Lloh1:
	ldr	x9, [x9, _tss_map@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	sub	x8, x8, #1
	ldr	x10, [x9]
	ldr	x10, [x10, x24, lsl #3]
	cmp	x10, x8
	b.ne	LBB0_5
; %bb.4:
	mov	w25, #0
	b	LBB0_11
LBB0_5:
	ldr	x10, [x9, #8]
	ldr	x10, [x10, x24, lsl #3]
	cmp	x10, x8
	b.ne	LBB0_7
; %bb.6:
	mov	w25, #1
	b	LBB0_11
LBB0_7:
	ldr	x10, [x9, #16]
	ldr	x10, [x10, x24, lsl #3]
	cmp	x10, x8
	b.ne	LBB0_9
; %bb.8:
	mov	w25, #2
	b	LBB0_11
LBB0_9:
	ldr	x9, [x9, #24]
	ldr	x9, [x9, x24, lsl #3]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.10:
	mov	w25, #3
LBB0_11:
	sbfx	x23, x23, #1, #31
	add	x22, x21, #8
	mov	x0, x22
	bl	_mutex_lock
	lsl	x26, x23, #2
	tbnz	w24, #0, LBB0_14
; %bb.12:
	ldr	x8, [x21]
	ldr	w9, [x8, x26]
	and	w9, w9, #0xf0
	b	LBB0_15
LBB0_13:
Lloh3:
	adrp	x8, _EINVAL@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_16
LBB0_14:
	lsl	w25, w25, #4
	ldr	x8, [x21]
	ldr	w9, [x8, x26]
	and	w9, w9, #0xf
LBB0_15:
	str	w9, [x8, x26]
	orr	w9, w9, w25
	str	w9, [x8, x26]
	mov	x0, x23
	bl	_W83795_REG_TSS
	mov	x1, x0
	ldr	x8, [x21]
	ldr	w2, [x8, x26]
	mov	x0, x20
	bl	_w83795_write
	mov	x0, x22
	bl	_mutex_unlock
LBB0_16:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.comm	_tss_map,8,3                    ; @tss_map
	.no_dead_strip	_store_temp_src
.subsections_via_symbols
