	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function store_temp_pwm
_store_temp_pwm:                        ## @store_temp_pwm
	.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, %r14
	movq	%rsi, %rbx
	callq	_to_i2c_client
	movq	%rax, %r13
	movq	%rax, %rdi
	callq	_i2c_get_clientdata
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_to_sensor_dev_attr_2
	movslq	(%rax), %rbx
	movslq	4(%rax), %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rdx
	movq	%r14, %rdi
	movl	$10, %esi
	callq	_kstrtoul
	testq	%rax, %rax
	js	LBB0_1
## %bb.2:
	movq	-48(%rbp), %rax
	shrq	$3, %rax
	movabsq	$2361183241434822607, %rcx      ## imm = 0x20C49BA5E353F7CF
	mulq	%rcx
	shrq	$4, %rdx
	movq	%rdx, -48(%rbp)
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	addq	$8, %r15
	movq	%r15, %rdi
	callq	_mutex_lock
	leal	-128(%rbx), %eax
	cmpl	$3, %eax
	ja	LBB0_10
## %bb.3:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$127, %edx
	callq	_clamp_val
	movq	%rax, -48(%rbp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_W83795_REG_TTTI
	jmp	LBB0_5
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subq	(%rax), %r12
	jmp	LBB0_11
LBB0_8:
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$15, %edx
	callq	_clamp_val
	movq	%rax, -48(%rbp)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movl	%r14d, %edi
	callq	_W83795_REG_HT
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_w83795_read
	andl	$240, %eax
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movl	-48(%rbp), %ebx
	andl	$15, %ebx
	orl	%eax, %ebx
	movl	%r14d, %edi
	callq	_W83795_REG_HT
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%ebx, %edx
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	jmp	LBB0_9
LBB0_7:
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$15, %edx
	callq	_clamp_val
	movq	%rax, -48(%rbp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_W83795_REG_HT
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_w83795_read
	andl	$15, %eax
	movl	-48(%rbp), %ecx
	shll	$4, %ecx
	movzbl	%cl, %r14d
	orl	%eax, %r14d
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_W83795_REG_HT
	movq	%r13, %rdi
	movl	%eax, %esi
	movl	%r14d, %edx
	jmp	LBB0_9
LBB0_6:
	movq	-48(%rbp), %rdi
	xorl	%esi, %esi
	movl	$127, %edx
	callq	_clamp_val
	movq	%rax, -48(%rbp)
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_W83795_REG_CTFS
LBB0_5:
	movl	-48(%rbp), %edx
	movq	%r13, %rdi
	movl	%eax, %esi
LBB0_9:
	callq	_w83795_write
LBB0_10:
	movq	-48(%rbp), %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movq	(%rcx), %rcx
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	(%rcx,%rdx,8), %rcx
	movq	%rax, (%rcx,%rbx,8)
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_11:
	movq	%r12, %rax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_8
	.long	L0_0_set_7
	.long	L0_0_set_6
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,8,3                     ## @EINVAL
	.no_dead_strip	_store_temp_pwm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function store_temp_pwm
_store_temp_pwm:                        ; @store_temp_pwm
	.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	x23, x2
	mov	x21, x1
	bl	_to_i2c_client
	mov	x22, x0
	bl	_i2c_get_clientdata
	mov	x20, x0
	mov	x0, x21
	bl	_to_sensor_dev_attr_2
	ldpsw	x25, x21, [x0]
	add	x2, sp, #8
	mov	x0, x23
	mov	w1, #10
	bl	_kstrtoul
	tbnz	x0, #63, LBB0_4
; %bb.1:
	ldr	x8, [sp, #8]
	lsr	x8, x8, #3
	mov	x9, #63439
	movk	x9, #58195, lsl #16
	movk	x9, #39845, lsl #32
	movk	x9, #8388, lsl #48
	umulh	x8, x8, x9
	lsr	x8, x8, #4
	str	x8, [sp, #8]
	add	x23, x20, #8
	mov	x0, x23
	bl	_mutex_lock
	sub	w8, w25, #128
	cmp	w8, #3
	b.hi	LBB0_11
; %bb.2:
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	ldr	x0, [sp, #8]
	mov	w1, #0
	mov	w2, #127
	bl	_clamp_val
	str	x0, [sp, #8]
	mov	x0, x21
	bl	_W83795_REG_TTTI
	b	LBB0_9
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	neg	x19, x8
	b	LBB0_12
LBB0_5:
	ldr	x0, [sp, #8]
	mov	w1, #0
	mov	w2, #15
	bl	_clamp_val
	str	x0, [sp, #8]
	mov	x0, x21
	bl	_W83795_REG_HT
	mov	x1, x0
	mov	x0, x22
	bl	_w83795_read
	and	w24, w0, #0xf0
	ldr	w8, [sp, #8]
	bfxil	w24, w8, #0, #4
	b	LBB0_7
LBB0_6:
	ldr	x0, [sp, #8]
	mov	w1, #0
	mov	w2, #15
	bl	_clamp_val
	str	x0, [sp, #8]
	mov	x0, x21
	bl	_W83795_REG_HT
	mov	x1, x0
	mov	x0, x22
	bl	_w83795_read
	and	w24, w0, #0xf
	ldr	w8, [sp, #8]
	bfi	w24, w8, #4, #4
LBB0_7:
	mov	x0, x21
	bl	_W83795_REG_HT
	mov	x1, x0
	mov	x0, x22
	mov	x2, x24
	b	LBB0_10
LBB0_8:
	ldr	x0, [sp, #8]
	mov	w1, #0
	mov	w2, #127
	bl	_clamp_val
	str	x0, [sp, #8]
	mov	x0, x21
	bl	_W83795_REG_CTFS
LBB0_9:
	mov	x1, x0
	ldr	w2, [sp, #8]
	mov	x0, x22
LBB0_10:
	bl	_w83795_write
LBB0_11:
	ldr	x8, [sp, #8]
	ldr	x9, [x20]
	ldr	x9, [x9, x21, lsl #3]
	str	x8, [x9, x25, lsl #3]
	mov	x0, x23
	bl	_mutex_unlock
LBB0_12:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
                                        ; -- End function
	.comm	_EINVAL,8,3                     ; @EINVAL
	.no_dead_strip	_store_temp_pwm
.subsections_via_symbols
