	.file	"extr_x86_energy_perf_policy.c_read_hwp_request.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	read_hwp_request
	.type	read_hwp_request, @function
read_hwp_request:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rsi
	mov	esi, edx
	sub	rsp, 16
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rdx, rsp
	call	get_msr@PLT
	movzx	edi, BYTE PTR [rsp]
	call	msr_perf_2_ratio@PLT
	movzx	edi, BYTE PTR 1[rsp]
	mov	QWORD PTR 40[rbx], rax
	call	msr_perf_2_ratio@PLT
	movzx	edi, BYTE PTR 2[rsp]
	mov	QWORD PTR 32[rbx], rax
	call	msr_perf_2_ratio@PLT
	mov	QWORD PTR 24[rbx], rax
	mov	rax, QWORD PTR [rsp]
	mov	rdx, rax
	shr	rdx, 24
	and	edx, 255
	mov	QWORD PTR [rbx], rdx
	mov	rdx, rax
	shr	rax, 42
	shr	rdx, 32
	and	eax, 1
	and	edx, 1023
	mov	QWORD PTR 16[rbx], rax
	mov	QWORD PTR 8[rbx], rdx
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L5
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
.L5:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	read_hwp_request, .-read_hwp_request
	.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_x86_energy_perf_policy.c_read_hwp_request.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	read_hwp_request
	.syntax unified
	.arm
	.fpu softvfp
	.type	read_hwp_request, %function
read_hwp_request:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, lr}
	mov	r5, #0
	sub	sp, sp, #20
	ldr	r3, .L6
	mov	r4, r1
	mov	r1, r2
	mov	r2, sp
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	get_msr
	mov	r1, r5
	ldrb	r0, [sp]	@ zero_extendqisi2
	bl	msr_perf_2_ratio
	mov	r1, r5
	str	r0, [r4, #32]
	ldrb	r0, [sp, #1]	@ zero_extendqisi2
	bl	msr_perf_2_ratio
	mov	r1, r5
	str	r0, [r4, #28]
	ldrb	r0, [sp, #2]	@ zero_extendqisi2
	bl	msr_perf_2_ratio
	ldr	r3, [sp, #4]
	ldrb	r1, [sp, #3]	@ zero_extendqisi2
	lsl	r2, r3, #22
	lsr	r3, r3, #10
	and	r3, r3, #1
	lsr	r2, r2, #22
	str	r3, [r4, #16]
	ldr	r3, .L6
	str	r5, [r4, #4]
	str	r5, [r4, #12]
	str	r5, [r4, #20]
	str	r0, [r4, #24]
	str	r1, [r4]
	str	r2, [r4, #8]
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L5
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, pc}
.L5:
	bl	__stack_chk_fail
.L7:
	.align	2
.L6:
	.word	.LC0
	.size	read_hwp_request, .-read_hwp_request
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
