	.file	"extr_intel_rapl_msr.c_rapl_msr_read_raw.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"failed to read msr 0x%x on cpu %d\n"
	.text
	.p2align 4
	.type	rapl_msr_read_raw, @function
rapl_msr_read_raw:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	lea	rdx, 4[rsi]
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebp, DWORD PTR 8[rsi]
	mov	rbx, rsi
	mov	esi, ebp
	call	rdmsrl_safe_on_cpu@PLT
	test	rax, rax
	jne	.L6
	mov	eax, DWORD PTR [rbx]
	and	DWORD PTR 4[rbx], eax
	xor	eax, eax
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	edx, r12d
	mov	esi, ebp
	lea	rdi, .LC0[rip]
	call	pr_debug@PLT
	mov	eax, DWORD PTR EIO[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	rapl_msr_read_raw, .-rapl_msr_read_raw
	.comm	EIO,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_rapl_msr.c_rapl_msr_read_raw.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"failed to read msr 0x%x on cpu %d\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rapl_msr_read_raw, %function
rapl_msr_read_raw:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	ldr	r6, [r1, #8]
	add	r2, r1, #4
	mov	r4, r1
	mov	r1, r6
	mov	r5, r0
	bl	rdmsrl_safe_on_cpu
	cmp	r0, #0
	bne	.L6
	ldm	r4, {r2, r3}
	and	r3, r3, r2
	str	r3, [r4, #4]
	pop	{r4, r5, r6, pc}
.L6:
	mov	r2, r5
	mov	r1, r6
	ldr	r0, .L7
	bl	pr_debug
	ldr	r3, .L7+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	EIO
	.size	rapl_msr_read_raw, .-rapl_msr_read_raw
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
