	.file	"extr_therm_throt.c_intel_thermal_interrupt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	intel_thermal_interrupt, @function
intel_thermal_interrupt:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	edi, DWORD PTR X86_FEATURE_HWP[rip]
	call	static_cpu_has@PLT
	test	rax, rax
	jne	.L18
.L2:
	xor	ebx, ebx
	mov	edi, DWORD PTR MSR_IA32_THERM_STATUS[rip]
	mov	esi, ebx
	call	rdmsrl@PLT
	mov	edi, ebx
	call	notify_thresholds@PLT
	and	ebx, DWORD PTR THERM_STATUS_PROCHOT[rip]
	mov	edx, DWORD PTR CORE_LEVEL[rip]
	mov	esi, DWORD PTR THERMAL_THROTTLING_EVENT[rip]
	mov	edi, ebx
	call	therm_throt_process@PLT
	mov	edi, DWORD PTR X86_FEATURE_PLN[rip]
	call	this_cpu_has@PLT
	test	rax, rax
	je	.L3
	cmp	QWORD PTR int_pln_enable[rip], 0
	jne	.L19
.L3:
	mov	edi, DWORD PTR X86_FEATURE_PTS[rip]
	call	this_cpu_has@PLT
	test	rax, rax
	jne	.L20
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L20:
	.cfi_restore_state
	xor	ebx, ebx
	mov	edi, DWORD PTR MSR_IA32_PACKAGE_THERM_STATUS[rip]
	mov	esi, ebx
	call	rdmsrl@PLT
	mov	edi, ebx
	call	notify_package_thresholds@PLT
	and	ebx, DWORD PTR PACKAGE_THERM_STATUS_PROCHOT[rip]
	mov	edx, DWORD PTR PACKAGE_LEVEL[rip]
	mov	esi, DWORD PTR THERMAL_THROTTLING_EVENT[rip]
	mov	edi, ebx
	call	therm_throt_process@PLT
	mov	edi, DWORD PTR X86_FEATURE_PLN[rip]
	call	this_cpu_has@PLT
	test	rax, rax
	je	.L1
	cmp	QWORD PTR int_pln_enable[rip], 0
	je	.L1
	mov	edx, DWORD PTR PACKAGE_LEVEL[rip]
	mov	esi, DWORD PTR POWER_LIMIT_EVENT[rip]
	xor	edi, edi
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	jmp	therm_throt_process@PLT
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	edi, DWORD PTR MSR_HWP_STATUS[rip]
	xor	esi, esi
	call	wrmsrl_safe@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L19:
	mov	edx, DWORD PTR CORE_LEVEL[rip]
	mov	esi, DWORD PTR POWER_LIMIT_EVENT[rip]
	xor	edi, edi
	call	therm_throt_process@PLT
	mov	edi, DWORD PTR X86_FEATURE_PTS[rip]
	call	this_cpu_has@PLT
	test	rax, rax
	je	.L1
	jmp	.L20
	.cfi_endproc
.LFE0:
	.size	intel_thermal_interrupt, .-intel_thermal_interrupt
	.comm	int_pln_enable,8,8
	.comm	X86_FEATURE_PTS,4,4
	.comm	X86_FEATURE_PLN,4,4
	.comm	X86_FEATURE_HWP,4,4
	.comm	THERM_STATUS_PROCHOT,4,4
	.comm	THERM_STATUS_POWER_LIMIT,4,4
	.comm	THERMAL_THROTTLING_EVENT,4,4
	.comm	POWER_LIMIT_EVENT,4,4
	.comm	PACKAGE_THERM_STATUS_PROCHOT,4,4
	.comm	PACKAGE_THERM_STATUS_POWER_LIMIT,4,4
	.comm	PACKAGE_LEVEL,4,4
	.comm	MSR_IA32_THERM_STATUS,4,4
	.comm	MSR_IA32_PACKAGE_THERM_STATUS,4,4
	.comm	MSR_HWP_STATUS,4,4
	.comm	CORE_LEVEL,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_therm_throt.c_intel_thermal_interrupt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_thermal_interrupt, %function
intel_thermal_interrupt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L26
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r0, [r3]
	bl	static_cpu_has
	cmp	r0, #0
	bne	.L24
.L2:
	mov	r4, #0
	ldr	r3, .L26+4
	mov	r1, r4
	ldr	r0, [r3]
	ldr	r7, .L26+8
	ldr	r6, .L26+12
	bl	rdmsrl
	ldr	r5, .L26+16
	mov	r0, r4
	bl	notify_thresholds
	ldr	r2, [r7]
	ldr	r1, [r6]
	mov	r0, r4
	bl	therm_throt_process
	ldr	r0, [r5]
	bl	this_cpu_has
	cmp	r0, r4
	beq	.L3
	ldr	r3, .L26+20
	ldr	r3, [r3]
	cmp	r3, r4
	bne	.L25
.L3:
	ldr	r3, .L26+24
	ldr	r0, [r3]
	bl	this_cpu_has
	cmp	r0, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r4, #0
	ldr	r3, .L26+28
	mov	r1, r4
	ldr	r0, [r3]
	ldr	r7, .L26+32
	bl	rdmsrl
	mov	r0, r4
	bl	notify_package_thresholds
	ldr	r1, [r6]
	ldr	r2, [r7]
	mov	r0, r4
	bl	therm_throt_process
	ldr	r0, [r5]
	bl	this_cpu_has
	cmp	r0, r4
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L26+20
	ldr	r3, [r3]
	cmp	r3, r4
	popeq	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L26+36
	mov	r0, r4
	ldr	r2, [r7]
	ldr	r1, [r3]
	pop	{r4, r5, r6, r7, r8, lr}
	b	therm_throt_process
.L24:
	ldr	r3, .L26+40
	mov	r1, #0
	ldr	r0, [r3]
	bl	wrmsrl_safe
	b	.L2
.L25:
	ldr	r3, .L26+36
	mov	r0, r4
	ldr	r2, [r7]
	ldr	r1, [r3]
	bl	therm_throt_process
	b	.L3
.L27:
	.align	2
.L26:
	.word	X86_FEATURE_HWP
	.word	MSR_IA32_THERM_STATUS
	.word	CORE_LEVEL
	.word	THERMAL_THROTTLING_EVENT
	.word	X86_FEATURE_PLN
	.word	int_pln_enable
	.word	X86_FEATURE_PTS
	.word	MSR_IA32_PACKAGE_THERM_STATUS
	.word	PACKAGE_LEVEL
	.word	POWER_LIMIT_EVENT
	.word	MSR_HWP_STATUS
	.size	intel_thermal_interrupt, .-intel_thermal_interrupt
	.comm	int_pln_enable,4,4
	.comm	X86_FEATURE_PTS,4,4
	.comm	X86_FEATURE_PLN,4,4
	.comm	X86_FEATURE_HWP,4,4
	.comm	THERM_STATUS_PROCHOT,4,4
	.comm	THERM_STATUS_POWER_LIMIT,4,4
	.comm	THERMAL_THROTTLING_EVENT,4,4
	.comm	POWER_LIMIT_EVENT,4,4
	.comm	PACKAGE_THERM_STATUS_PROCHOT,4,4
	.comm	PACKAGE_THERM_STATUS_POWER_LIMIT,4,4
	.comm	PACKAGE_LEVEL,4,4
	.comm	MSR_IA32_THERM_STATUS,4,4
	.comm	MSR_IA32_PACKAGE_THERM_STATUS,4,4
	.comm	MSR_HWP_STATUS,4,4
	.comm	CORE_LEVEL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
