	.file	"extr_vega12_thermal.c_vega12_thermal_set_temperature_range.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vega12_thermal_set_temperature_range, @function
vega12_thermal_set_temperature_range:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR PP_TEMPERATURE_UNITS_PER_CENTIGRADES[rip]
	mov	ecx, DWORD PTR VEGA12_THERMAL_MINIMUM_ALERT_TEMP[rip]
	imul	ecx, edi
	imul	edi, DWORD PTR VEGA12_THERMAL_MAXIMUM_ALERT_TEMP[rip]
	cmp	DWORD PTR [rsi], ecx
	cmovge	ecx, DWORD PTR [rsi]
	cmp	DWORD PTR 4[rsi], edi
	mov	ebx, edi
	cmovle	ebx, DWORD PTR 4[rsi]
	cmp	ecx, ebx
	jle	.L2
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, DWORD PTR mmTHM_THERMAL_INT_CTRL[rip]
	mov	edi, DWORD PTR THM[rip]
	xor	esi, esi
	mov	ebp, ecx
	call	RREG32_SOC15@PLT
	mov	edx, DWORD PTR MAX_IH_CREDIT[rip]
	mov	esi, DWORD PTR THM_THERMAL_INT_CTRL[rip]
	mov	ecx, 5
	mov	edi, eax
	call	REG_SET_FIELD@PLT
	mov	edx, DWORD PTR THERM_IH_HW_ENA[rip]
	mov	esi, DWORD PTR THM_THERMAL_INT_CTRL[rip]
	mov	ecx, 1
	mov	edi, eax
	call	REG_SET_FIELD@PLT
	mov	esi, DWORD PTR THM_THERMAL_INT_CTRL[rip]
	mov	edi, eax
	mov	eax, ebx
	cdq
	idiv	DWORD PTR PP_TEMPERATURE_UNITS_PER_CENTIGRADES[rip]
	mov	edx, DWORD PTR DIG_THERM_INTH[rip]
	mov	ecx, eax
	call	REG_SET_FIELD@PLT
	mov	esi, DWORD PTR THM_THERMAL_INT_CTRL[rip]
	mov	edi, eax
	mov	eax, ebp
	cdq
	idiv	DWORD PTR PP_TEMPERATURE_UNITS_PER_CENTIGRADES[rip]
	mov	edx, DWORD PTR DIG_THERM_INTL[rip]
	mov	ecx, eax
	call	REG_SET_FIELD@PLT
	mov	ecx, DWORD PTR THM_THERMAL_INT_CTRL__THERM_TRIGGER_MASK_MASK[rip]
	mov	edx, DWORD PTR mmTHM_THERMAL_INT_CTRL[rip]
	xor	esi, esi
	mov	edi, DWORD PTR THM[rip]
	not	ecx
	and	ecx, eax
	call	WREG32_SOC15@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	vega12_thermal_set_temperature_range, .-vega12_thermal_set_temperature_range
	.comm	mmTHM_THERMAL_INT_CTRL,4,4
	.comm	VEGA12_THERMAL_MINIMUM_ALERT_TEMP,4,4
	.comm	VEGA12_THERMAL_MAXIMUM_ALERT_TEMP,4,4
	.comm	THM_THERMAL_INT_CTRL__THERM_TRIGGER_MASK_MASK,4,4
	.comm	THM_THERMAL_INT_CTRL,4,4
	.comm	THM,4,4
	.comm	THERM_IH_HW_ENA,4,4
	.comm	PP_TEMPERATURE_UNITS_PER_CENTIGRADES,4,4
	.comm	MAX_IH_CREDIT,4,4
	.comm	EINVAL,4,4
	.comm	DIG_THERM_INTL,4,4
	.comm	DIG_THERM_INTH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_vega12_thermal.c_vega12_thermal_set_temperature_range.c"
	.text
	.global	__aeabi_idiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vega12_thermal_set_temperature_range, %function
vega12_thermal_set_temperature_range:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r2, .L6
	ldr	r6, .L6+4
	ldr	r0, .L6+8
	ldr	r3, [r6]
	ldr	r2, [r2]
	ldr	r0, [r0]
	mul	r2, r3, r2
	mul	r3, r0, r3
	ldr	r5, [r1]
	ldr	r4, [r1, #4]
	cmp	r2, r5
	movge	r5, r2
	cmp	r3, r4
	movlt	r4, r3
	cmp	r5, r4
	ble	.L2
	ldr	r3, .L6+12
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L2:
	ldr	r9, .L6+16
	ldr	r8, .L6+20
	ldr	r2, [r9]
	mov	r1, #0
	ldr	r0, [r8]
	bl	RREG32_SOC15
	ldr	r7, .L6+24
	ldr	r3, .L6+28
	ldr	r1, [r7]
	ldr	r2, [r3]
	mov	r3, #5
	bl	REG_SET_FIELD
	ldr	r3, .L6+32
	ldr	r1, [r7]
	ldr	r2, [r3]
	mov	r3, #1
	bl	REG_SET_FIELD
	mov	r3, r0
	ldr	r1, [r6]
	mov	r0, r4
	mov	r4, r3
	bl	__aeabi_idiv
	ldr	r2, .L6+36
	mov	r3, r0
	ldr	r1, [r7]
	ldr	r2, [r2]
	mov	r0, r4
	bl	REG_SET_FIELD
	ldr	r1, [r6]
	mov	r4, r0
	mov	r0, r5
	bl	__aeabi_idiv
	ldr	r2, .L6+40
	mov	r3, r0
	ldr	r1, [r7]
	mov	r0, r4
	ldr	r2, [r2]
	bl	REG_SET_FIELD
	mov	r3, r0
	ldr	r1, .L6+44
	ldr	r2, [r9]
	ldr	r1, [r1]
	ldr	r0, [r8]
	bic	r3, r3, r1
	mov	r1, #0
	bl	WREG32_SOC15
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L7:
	.align	2
.L6:
	.word	VEGA12_THERMAL_MINIMUM_ALERT_TEMP
	.word	PP_TEMPERATURE_UNITS_PER_CENTIGRADES
	.word	VEGA12_THERMAL_MAXIMUM_ALERT_TEMP
	.word	EINVAL
	.word	mmTHM_THERMAL_INT_CTRL
	.word	THM
	.word	THM_THERMAL_INT_CTRL
	.word	MAX_IH_CREDIT
	.word	THERM_IH_HW_ENA
	.word	DIG_THERM_INTH
	.word	DIG_THERM_INTL
	.word	THM_THERMAL_INT_CTRL__THERM_TRIGGER_MASK_MASK
	.size	vega12_thermal_set_temperature_range, .-vega12_thermal_set_temperature_range
	.comm	mmTHM_THERMAL_INT_CTRL,4,4
	.comm	VEGA12_THERMAL_MINIMUM_ALERT_TEMP,4,4
	.comm	VEGA12_THERMAL_MAXIMUM_ALERT_TEMP,4,4
	.comm	THM_THERMAL_INT_CTRL__THERM_TRIGGER_MASK_MASK,4,4
	.comm	THM_THERMAL_INT_CTRL,4,4
	.comm	THM,4,4
	.comm	THERM_IH_HW_ENA,4,4
	.comm	PP_TEMPERATURE_UNITS_PER_CENTIGRADES,4,4
	.comm	MAX_IH_CREDIT,4,4
	.comm	EINVAL,4,4
	.comm	DIG_THERM_INTL,4,4
	.comm	DIG_THERM_INTH,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
