	.file	"extr_intel_pstate.c_intel_pstate_sample.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	intel_pstate_sample, @function
intel_pstate_sample:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	xor	r12d, r12d
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	xor	edi, edi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	local_irq_save@PLT
	mov	edi, DWORD PTR MSR_IA32_APERF[rip]
	xor	esi, esi
	call	rdmsrl@PLT
	mov	edi, DWORD PTR MSR_IA32_MPERF[rip]
	mov	rsi, r12
	call	rdmsrl@PLT
	xor	eax, eax
	call	rdtsc@PLT
	xor	edi, edi
	cmp	QWORD PTR 0[rbp], r12
	je	.L2
	mov	rbx, rax
	cmp	QWORD PTR 8[rbp], rax
	je	.L2
	call	local_irq_restore@PLT
	xor	esi, esi
	xor	r12d, r12d
	mov	rdx, QWORD PTR 56[rbp]
	mov	rax, rsi
	sub	rax, QWORD PTR 24[rbp]
	mov	QWORD PTR 56[rbp], r13
	mov	QWORD PTR 48[rbp], rax
	mov	rax, r12
	sub	rax, QWORD PTR 0[rbp]
	mov	QWORD PTR 32[rbp], rax
	mov	rax, rbx
	sub	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR 40[rbp], rax
	xor	eax, eax
	mov	QWORD PTR 16[rbp], rdx
	mov	QWORD PTR 24[rbp], rsi
	mov	QWORD PTR 0[rbp], r12
	mov	QWORD PTR 8[rbp], rbx
	test	rdx, rdx
	jne	.L9
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	call	local_irq_restore@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, rbp
	call	intel_pstate_calc_avg_perf@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, 1
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	intel_pstate_sample, .-intel_pstate_sample
	.comm	MSR_IA32_MPERF,4,4
	.comm	MSR_IA32_APERF,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_intel_pstate.c_intel_pstate_sample.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	intel_pstate_sample, %function
intel_pstate_sample:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, #0
	mov	r4, r0
	mov	r0, r6
	mov	r7, r1
	bl	local_irq_save
	ldr	r3, .L10
	mov	r1, r6
	ldr	r0, [r3]
	bl	rdmsrl
	ldr	r3, .L10+4
	mov	r1, r6
	ldr	r0, [r3]
	bl	rdmsrl
	bl	rdtsc
	ldr	r3, [r4]
	cmp	r3, r6
	beq	.L2
	ldr	r3, [r4, #4]
	mov	r5, r0
	cmp	r3, r0
	beq	.L2
	mov	r0, #0
	bl	local_irq_restore
	mov	r1, #0
	ldr	r3, [r4, #12]
	ldr	r0, [r4, #28]
	sub	r3, r1, r3
	ldr	r2, [r4]
	str	r3, [r4, #24]
	ldr	r3, [r4, #4]
	sub	r2, r1, r2
	sub	r3, r5, r3
	cmp	r0, r1
	str	r1, [r4, #12]
	str	r2, [r4, #16]
	str	r1, [r4]
	str	r3, [r4, #20]
	str	r5, [r4, #4]
	str	r0, [r4, #8]
	str	r7, [r4, #28]
	mov	r6, r1
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r0, r4
	bl	intel_pstate_calc_avg_perf
	mov	r0, #1
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r0, #0
	bl	local_irq_restore
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	MSR_IA32_APERF
	.word	MSR_IA32_MPERF
	.size	intel_pstate_sample, .-intel_pstate_sample
	.comm	MSR_IA32_MPERF,4,4
	.comm	MSR_IA32_APERF,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
