	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu7_thermal_set_temperature_range
_smu7_thermal_set_temperature_range:    ## @smu7_thermal_set_temperature_range
	.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	_SMU7_THERMAL_MINIMUM_ALERT_TEMP@GOTPCREL(%rip), %rax
	movq	_PP_TEMPERATURE_UNITS_PER_CENTIGRADES@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r9d
	movl	(%rax), %ebx
	imull	%r9d, %ebx
	movq	_SMU7_THERMAL_MAXIMUM_ALERT_TEMP@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	imull	%r9d, %r15d
	cmpl	%esi, %ebx
	cmovlel	%esi, %ebx
	cmpl	%edx, %r15d
	cmovgel	%edx, %r15d
	cmpl	%r15d, %ebx
	jle	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_3
LBB0_2:
	movq	%rdi, %r14
	movl	(%rdi), %edi
	movq	_CGS_IND_REG__SMC@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_CG_THERMAL_INT@GOTPCREL(%rip), %r13
	movl	(%r13), %r8d
	movq	_DIG_THERM_INTH@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %eax
	cltd
	idivl	%r9d
	movl	%r8d, %edx
	movl	%eax, %r8d
	callq	_PHM_WRITE_VFPF_INDIRECT_FIELD
	movl	(%r14), %edi
	movl	(%r12), %esi
	movl	(%r13), %r8d
	movq	_DIG_THERM_INTL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%ebx, %eax
	cltd
	movq	_PP_TEMPERATURE_UNITS_PER_CENTIGRADES@GOTPCREL(%rip), %rbx
	idivl	(%rbx)
	movl	%r8d, %edx
	movl	%eax, %r8d
	callq	_PHM_WRITE_VFPF_INDIRECT_FIELD
	movl	(%r14), %edi
	movl	(%r12), %esi
	movq	_CG_THERMAL_CTRL@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_DIG_THERM_DPM@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movl	%r15d, %eax
	cltd
	movq	_PP_TEMPERATURE_UNITS_PER_CENTIGRADES@GOTPCREL(%rip), %rbx
	idivl	(%rbx)
	movl	%r8d, %edx
	movl	%eax, %r8d
	callq	_PHM_WRITE_VFPF_INDIRECT_FIELD
	xorl	%eax, %eax
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SMU7_THERMAL_MINIMUM_ALERT_TEMP,4,2 ## @SMU7_THERMAL_MINIMUM_ALERT_TEMP
	.comm	_PP_TEMPERATURE_UNITS_PER_CENTIGRADES,4,2 ## @PP_TEMPERATURE_UNITS_PER_CENTIGRADES
	.comm	_SMU7_THERMAL_MAXIMUM_ALERT_TEMP,4,2 ## @SMU7_THERMAL_MAXIMUM_ALERT_TEMP
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_CGS_IND_REG__SMC,4,2           ## @CGS_IND_REG__SMC
	.comm	_CG_THERMAL_INT,4,2             ## @CG_THERMAL_INT
	.comm	_DIG_THERM_INTH,4,2             ## @DIG_THERM_INTH
	.comm	_DIG_THERM_INTL,4,2             ## @DIG_THERM_INTL
	.comm	_CG_THERMAL_CTRL,4,2            ## @CG_THERMAL_CTRL
	.comm	_DIG_THERM_DPM,4,2              ## @DIG_THERM_DPM
	.no_dead_strip	_smu7_thermal_set_temperature_range
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu7_thermal_set_temperature_range
_smu7_thermal_set_temperature_range:    ; @smu7_thermal_set_temperature_range
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
Lloh0:
	adrp	x8, _SMU7_THERMAL_MINIMUM_ALERT_TEMP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SMU7_THERMAL_MINIMUM_ALERT_TEMP@GOTPAGEOFF]
Lloh2:
	adrp	x20, _PP_TEMPERATURE_UNITS_PER_CENTIGRADES@GOTPAGE
Lloh3:
	ldr	x20, [x20, _PP_TEMPERATURE_UNITS_PER_CENTIGRADES@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x8]
	ldr	w8, [x20]
	mul	w9, w8, w9
Lloh5:
	adrp	x10, _SMU7_THERMAL_MAXIMUM_ALERT_TEMP@GOTPAGE
Lloh6:
	ldr	x10, [x10, _SMU7_THERMAL_MAXIMUM_ALERT_TEMP@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	mul	w10, w10, w8
	cmp	w9, w1
	csel	w22, w9, w1, gt
	cmp	w10, w2
	csel	w21, w10, w2, lt
	cmp	w22, w21
	b.le	LBB0_2
; %bb.1:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_3
LBB0_2:
	mov	x19, x0
	ldr	w0, [x0]
Lloh11:
	adrp	x23, _CGS_IND_REG__SMC@GOTPAGE
Lloh12:
	ldr	x23, [x23, _CGS_IND_REG__SMC@GOTPAGEOFF]
Lloh13:
	adrp	x24, _CG_THERMAL_INT@GOTPAGE
Lloh14:
	ldr	x24, [x24, _CG_THERMAL_INT@GOTPAGEOFF]
	ldr	w1, [x23]
	ldr	w2, [x24]
Lloh15:
	adrp	x9, _DIG_THERM_INTH@GOTPAGE
Lloh16:
	ldr	x9, [x9, _DIG_THERM_INTH@GOTPAGEOFF]
Lloh17:
	ldr	w3, [x9]
	sdiv	w4, w21, w8
	bl	_PHM_WRITE_VFPF_INDIRECT_FIELD
	ldr	w0, [x19]
	ldr	w1, [x23]
	ldr	w2, [x24]
Lloh18:
	adrp	x8, _DIG_THERM_INTL@GOTPAGE
Lloh19:
	ldr	x8, [x8, _DIG_THERM_INTL@GOTPAGEOFF]
Lloh20:
	ldr	w3, [x8]
	ldr	w8, [x20]
	sdiv	w4, w22, w8
	bl	_PHM_WRITE_VFPF_INDIRECT_FIELD
	ldr	w0, [x19]
	ldr	w1, [x23]
Lloh21:
	adrp	x8, _CG_THERMAL_CTRL@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CG_THERMAL_CTRL@GOTPAGEOFF]
Lloh23:
	ldr	w2, [x8]
Lloh24:
	adrp	x8, _DIG_THERM_DPM@GOTPAGE
Lloh25:
	ldr	x8, [x8, _DIG_THERM_DPM@GOTPAGEOFF]
Lloh26:
	ldr	w3, [x8]
	ldr	w8, [x20]
	sdiv	w4, w21, w8
	bl	_PHM_WRITE_VFPF_INDIRECT_FIELD
	mov	w0, #0
LBB0_3:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_SMU7_THERMAL_MINIMUM_ALERT_TEMP,4,2 ; @SMU7_THERMAL_MINIMUM_ALERT_TEMP
	.comm	_PP_TEMPERATURE_UNITS_PER_CENTIGRADES,4,2 ; @PP_TEMPERATURE_UNITS_PER_CENTIGRADES
	.comm	_SMU7_THERMAL_MAXIMUM_ALERT_TEMP,4,2 ; @SMU7_THERMAL_MAXIMUM_ALERT_TEMP
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_CGS_IND_REG__SMC,4,2           ; @CGS_IND_REG__SMC
	.comm	_CG_THERMAL_INT,4,2             ; @CG_THERMAL_INT
	.comm	_DIG_THERM_INTH,4,2             ; @DIG_THERM_INTH
	.comm	_DIG_THERM_INTL,4,2             ; @DIG_THERM_INTL
	.comm	_CG_THERMAL_CTRL,4,2            ; @CG_THERMAL_CTRL
	.comm	_DIG_THERM_DPM,4,2              ; @DIG_THERM_DPM
	.no_dead_strip	_smu7_thermal_set_temperature_range
.subsections_via_symbols
