	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function lm95245_write_temp
_lm95245_write_temp:                    ## @lm95245_write_temp
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movl	%edx, %r13d
	movl	%esi, %ebx
	callq	_dev_get_drvdata
	addl	$-128, %ebx
	cmpl	$4, %ebx
	ja	LBB0_9
## %bb.1:
	movq	%rax, %r15
	movq	8(%rax), %r14
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%rbx,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_2:
	leaq	-3(%r12), %rax
	cmpq	$-3, %rax
	ja	LBB0_16
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_4:
	movabsq	$2361183241434822607, %rcx      ## imm = 0x20C49BA5E353F7CF
	movq	%r12, %rax
	imulq	%rcx
	movq	%rdx, %rdi
	shrq	$63, %rdi
	sarq	$7, %rdx
	addq	%rdx, %rdi
	xorl	%esi, %esi
	movl	$255, %edx
	callq	_clamp_val
	movq	_LM95245_REG_RW_REMOTE_OS_LIMIT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	jmp	LBB0_19
LBB0_5:
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_LM95245_REG_RW_LOCAL_OS_TCRIT_LIMIT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	_regmap_read
	testl	%eax, %eax
	js	LBB0_14
## %bb.6:
	movq	%r12, %rdi
	movl	$-1000000, %esi                 ## imm = 0xFFF0BDC0
	movl	$1000000, %edx                  ## imm = 0xF4240
	callq	_clamp_val
	movl	-44(%rbp), %ecx
	movabsq	$-2361183241434822607, %rdx     ## imm = 0xDF3B645A1CAC0831
	imulq	%rdx
	movq	%rdx, %rdi
	shrq	$63, %rdi
	sarq	$7, %rdx
	addq	%rdx, %rdi
	addq	%rcx, %rdi
	xorl	%esi, %esi
	movl	$31, %edx
	callq	_clamp_val
	movq	_LM95245_REG_RW_COMMON_HYSTERESIS@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	movq	%r14, %rdi
	movq	%rax, %rdx
	jmp	LBB0_13
LBB0_7:
	xorl	%ecx, %ecx
	testl	%r13d, %r13d
	setne	%bl
	jne	LBB0_17
## %bb.8:
	movq	_LM95245_REG_RW_LOCAL_OS_TCRIT_LIMIT@GOTPCREL(%rip), %rax
	jmp	LBB0_18
LBB0_9:
	movq	_EOPNOTSUPP@GOTPCREL(%rip), %rax
LBB0_10:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_15
LBB0_11:
	movq	%r12, %rdi
	movl	$-128000, %esi                  ## imm = 0xFFFE0C00
	movl	$127875, %edx                   ## imm = 0x1F383
	callq	_clamp_val
	shlq	$8, %rax
	movabsq	$2361183241434822607, %rcx      ## imm = 0x20C49BA5E353F7CF
	imulq	%rcx
	movq	%rdx, %rbx
	movq	%rdx, %rax
	shrq	$63, %rax
	sarq	$7, %rbx
	addq	%rax, %rbx
	movq	%r15, %rdi
	callq	_mutex_lock
	movq	_LM95245_REG_RW_REMOTE_OFFL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %r12
	movl	%ebx, %edx
	andl	$224, %edx
	movq	%r14, %rdi
	callq	_regmap_write
	testl	%eax, %eax
	js	LBB0_14
## %bb.12:
	movq	_LM95245_REG_RW_REMOTE_OFFH@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rax
	movzbl	%ah, %edx
	movq	%r14, %rdi
LBB0_13:
	callq	_regmap_write
LBB0_14:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_mutex_unlock
LBB0_15:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_16:
	movq	_LM95245_REG_RW_CONFIG2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CFG2_REMOTE_TT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%ecx, %ecx
	cmpq	$1, %r12
	cmovel	%edx, %ecx
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_update_bits             ## TAILCALL
LBB0_17:
	movq	_LM95245_REG_RW_REMOTE_TCRIT_LIMIT@GOTPCREL(%rip), %rax
LBB0_18:
	movl	(%rax), %r15d
	movabsq	$2361183241434822607, %rdx      ## imm = 0x20C49BA5E353F7CF
	movq	%r12, %rax
	imulq	%rdx
	movq	%rdx, %rdi
	shrq	$63, %rdi
	sarq	$7, %rdx
	addq	%rdx, %rdi
	movb	%bl, %cl
	shll	$7, %ecx
	orl	$127, %ecx
	xorl	%esi, %esi
	movl	%ecx, %edx
	callq	_clamp_val
	movq	%r14, %rdi
	movl	%r15d, %esi
LBB0_19:
	movq	%rax, %rdx
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_regmap_write                   ## TAILCALL
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_2, LBB0_2-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
LJTI0_0:
	.long	L0_0_set_2
	.long	L0_0_set_11
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_7
	.end_data_region
                                        ## -- End function
	.comm	_LM95245_REG_RW_REMOTE_OS_LIMIT,4,2 ## @LM95245_REG_RW_REMOTE_OS_LIMIT
	.comm	_LM95245_REG_RW_REMOTE_TCRIT_LIMIT,4,2 ## @LM95245_REG_RW_REMOTE_TCRIT_LIMIT
	.comm	_LM95245_REG_RW_LOCAL_OS_TCRIT_LIMIT,4,2 ## @LM95245_REG_RW_LOCAL_OS_TCRIT_LIMIT
	.comm	_LM95245_REG_RW_COMMON_HYSTERESIS,4,2 ## @LM95245_REG_RW_COMMON_HYSTERESIS
	.comm	_LM95245_REG_RW_REMOTE_OFFL,4,2 ## @LM95245_REG_RW_REMOTE_OFFL
	.comm	_LM95245_REG_RW_REMOTE_OFFH,4,2 ## @LM95245_REG_RW_REMOTE_OFFH
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_LM95245_REG_RW_CONFIG2,4,2     ## @LM95245_REG_RW_CONFIG2
	.comm	_CFG2_REMOTE_TT,4,2             ## @CFG2_REMOTE_TT
	.comm	_EOPNOTSUPP,4,2                 ## @EOPNOTSUPP
	.no_dead_strip	_lm95245_write_temp
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function lm95245_write_temp
_lm95245_write_temp:                    ; @lm95245_write_temp
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x21, x3
	mov	x22, x2
	mov	x19, x1
	bl	_dev_get_drvdata
	sub	w8, w19, #128
	cmp	w8, #4
	b.hi	LBB0_9
; %bb.1:
	mov	x20, x0
	ldr	x19, [x0, #8]
Lloh0:
	adrp	x9, lJTI0_0@PAGE
Lloh1:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	sub	x8, x21, #3
	cmn	x8, #3
	b.hi	LBB0_16
; %bb.3:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_10
LBB0_4:
	mov	x8, #63439
	movk	x8, #58195, lsl #16
	movk	x8, #39845, lsl #32
	movk	x8, #8388, lsl #48
	smulh	x8, x21, x8
	asr	x9, x8, #7
	add	x0, x9, x8, lsr #63
	mov	w1, #0
	mov	w2, #255
	bl	_clamp_val
	mov	x2, x0
Lloh4:
	adrp	x8, _LM95245_REG_RW_REMOTE_OS_LIMIT@GOTPAGE
Lloh5:
	ldr	x8, [x8, _LM95245_REG_RW_REMOTE_OS_LIMIT@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	b	LBB0_8
LBB0_5:
	mov	x0, x20
	bl	_mutex_lock
Lloh7:
	adrp	x8, _LM95245_REG_RW_LOCAL_OS_TCRIT_LIMIT@GOTPAGE
Lloh8:
	ldr	x8, [x8, _LM95245_REG_RW_LOCAL_OS_TCRIT_LIMIT@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	add	x2, sp, #12
	mov	x0, x19
	bl	_regmap_read
	tbnz	w0, #31, LBB0_13
; %bb.6:
	mov	x0, x21
	mov	w1, #48576
	movk	w1, #65520, lsl #16
	mov	w2, #16960
	movk	w2, #15, lsl #16
	bl	_clamp_val
	ldr	w8, [sp, #12]
	mov	x9, #2097
	movk	x9, #7340, lsl #16
	movk	x9, #25690, lsl #32
	movk	x9, #57147, lsl #48
	smulh	x9, x0, x9
	asr	x10, x9, #7
	add	x9, x10, x9, lsr #63
	add	x0, x9, x8
	mov	w1, #0
	mov	w2, #31
	bl	_clamp_val
	mov	x2, x0
Lloh10:
	adrp	x8, _LM95245_REG_RW_COMMON_HYSTERESIS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _LM95245_REG_RW_COMMON_HYSTERESIS@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_regmap_write
	b	LBB0_13
LBB0_7:
Lloh13:
	adrp	x8, _LM95245_REG_RW_REMOTE_TCRIT_LIMIT@GOTPAGE
Lloh14:
	ldr	x8, [x8, _LM95245_REG_RW_REMOTE_TCRIT_LIMIT@GOTPAGEOFF]
Lloh15:
	adrp	x9, _LM95245_REG_RW_LOCAL_OS_TCRIT_LIMIT@GOTPAGE
Lloh16:
	ldr	x9, [x9, _LM95245_REG_RW_LOCAL_OS_TCRIT_LIMIT@GOTPAGEOFF]
	mov	w10, #255
	mov	w11, #127
	cmp	w22, #0
	csel	w2, w11, w10, eq
	csel	x8, x9, x8, eq
	ldr	w20, [x8]
	mov	x8, #63439
	movk	x8, #58195, lsl #16
	movk	x8, #39845, lsl #32
	movk	x8, #8388, lsl #48
	smulh	x8, x21, x8
	asr	x9, x8, #7
	add	x0, x9, x8, lsr #63
	mov	w1, #0
	bl	_clamp_val
	mov	x2, x0
	mov	x0, x19
	mov	x1, x20
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_regmap_write
LBB0_9:
Lloh17:
	adrp	x8, _EOPNOTSUPP@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EOPNOTSUPP@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_14
LBB0_11:
	mov	x0, x21
	mov	w1, #3072
	movk	w1, #65534, lsl #16
	mov	w2, #62339
	movk	w2, #1, lsl #16
	bl	_clamp_val
	lsl	x8, x0, #8
	mov	x9, #63439
	movk	x9, #58195, lsl #16
	movk	x9, #39845, lsl #32
	movk	x9, #8388, lsl #48
	smulh	x8, x8, x9
	asr	x9, x8, #7
	add	x21, x9, x8, lsr #63
	mov	x0, x20
	bl	_mutex_lock
Lloh19:
	adrp	x8, _LM95245_REG_RW_REMOTE_OFFL@GOTPAGE
Lloh20:
	ldr	x8, [x8, _LM95245_REG_RW_REMOTE_OFFL@GOTPAGEOFF]
Lloh21:
	ldr	w1, [x8]
	and	x2, x21, #0xe0
	mov	x0, x19
	bl	_regmap_write
	tbnz	w0, #31, LBB0_13
; %bb.12:
Lloh22:
	adrp	x8, _LM95245_REG_RW_REMOTE_OFFH@GOTPAGE
Lloh23:
	ldr	x8, [x8, _LM95245_REG_RW_REMOTE_OFFH@GOTPAGEOFF]
Lloh24:
	ldr	w1, [x8]
	ubfx	x2, x21, #8, #8
	mov	x0, x19
	bl	_regmap_write
	mov	x19, x0
	mov	x0, x20
	bl	_mutex_unlock
	mov	x0, x19
	b	LBB0_15
LBB0_13:
	mov	x22, x0
	mov	x0, x20
	bl	_mutex_unlock
LBB0_14:
	mov	x0, x22
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_16:
Lloh25:
	adrp	x8, _LM95245_REG_RW_CONFIG2@GOTPAGE
Lloh26:
	ldr	x8, [x8, _LM95245_REG_RW_CONFIG2@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x8, _CFG2_REMOTE_TT@GOTPAGE
Lloh29:
	ldr	x8, [x8, _CFG2_REMOTE_TT@GOTPAGEOFF]
Lloh30:
	ldr	w2, [x8]
	cmp	x21, #1
	csel	w3, w2, wzr, eq
	mov	x0, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	b	_regmap_update_bits
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_11-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_7-LBB0_2)>>2
                                        ; -- End function
	.comm	_LM95245_REG_RW_REMOTE_OS_LIMIT,4,2 ; @LM95245_REG_RW_REMOTE_OS_LIMIT
	.comm	_LM95245_REG_RW_REMOTE_TCRIT_LIMIT,4,2 ; @LM95245_REG_RW_REMOTE_TCRIT_LIMIT
	.comm	_LM95245_REG_RW_LOCAL_OS_TCRIT_LIMIT,4,2 ; @LM95245_REG_RW_LOCAL_OS_TCRIT_LIMIT
	.comm	_LM95245_REG_RW_COMMON_HYSTERESIS,4,2 ; @LM95245_REG_RW_COMMON_HYSTERESIS
	.comm	_LM95245_REG_RW_REMOTE_OFFL,4,2 ; @LM95245_REG_RW_REMOTE_OFFL
	.comm	_LM95245_REG_RW_REMOTE_OFFH,4,2 ; @LM95245_REG_RW_REMOTE_OFFH
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_LM95245_REG_RW_CONFIG2,4,2     ; @LM95245_REG_RW_CONFIG2
	.comm	_CFG2_REMOTE_TT,4,2             ; @CFG2_REMOTE_TT
	.comm	_EOPNOTSUPP,4,2                 ; @EOPNOTSUPP
	.no_dead_strip	_lm95245_write_temp
.subsections_via_symbols
