	.file	"709467.c"
	.intel_syntax noprefix
	.text
	.section	.rodata
.LC0:
	.string	"/dev/cpu/%d/msr"
.LC1:
	.string	"rdmsr: No CPU %d\n"
	.align 8
.LC2:
	.string	"rdmsr: CPU %d doesn't support MSRs\n"
.LC3:
	.string	"rdmsr: open"
	.text
	.type	loadDriver, @function
loadDriver:
.LFB6:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 112
	mov	DWORD PTR -100[rbp], edi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	edx, DWORD PTR -100[rbp]
	lea	rax, -80[rbp]
	lea	rsi, .LC0[rip]
	mov	rdi, rax
	mov	eax, 0
	call	sprintf@PLT
	lea	rax, -80[rbp]
	mov	esi, 0
	mov	rdi, rax
	mov	eax, 0
	call	open@PLT
	mov	DWORD PTR -84[rbp], eax
	cmp	DWORD PTR -84[rbp], 0
	jns	.L2
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 6
	jne	.L3
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -100[rbp]
	lea	rsi, .LC1[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 2
	call	exit@PLT
.L3:
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 5
	jne	.L4
	mov	rax, QWORD PTR stderr[rip]
	mov	edx, DWORD PTR -100[rbp]
	lea	rsi, .LC2[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 3
	call	exit@PLT
.L4:
	lea	rdi, .LC3[rip]
	call	perror@PLT
	mov	edi, 127
	call	exit@PLT
.L2:
	mov	eax, DWORD PTR -84[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L6
	call	__stack_chk_fail@PLT
.L6:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE6:
	.size	loadDriver, .-loadDriver
	.section	.rodata
.LC4:
	.string	"Failed to close fd"
	.text
	.type	closeDriver, @function
closeDriver:
.LFB7:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 32
	mov	DWORD PTR -20[rbp], edi
	mov	eax, DWORD PTR -20[rbp]
	mov	edi, eax
	call	close@PLT
	mov	DWORD PTR -4[rbp], eax
	cmp	DWORD PTR -4[rbp], -1
	jne	.L9
	lea	rdi, .LC4[rip]
	call	perror@PLT
.L9:
	nop
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE7:
	.size	closeDriver, .-closeDriver
	.section	.rodata
	.align 8
.LC7:
	.string	"Time: %f, CPU Energy: %f\nDRAM Energy: %f\n"
	.text
	.globl	main
	.type	main, @function
main:
.LFB8:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 144
	mov	DWORD PTR -116[rbp], edi
	mov	QWORD PTR -128[rbp], rsi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -108[rbp], 0
	mov	QWORD PTR -96[rbp], 0
	mov	QWORD PTR -88[rbp], 0
	mov	QWORD PTR -80[rbp], 0
	mov	QWORD PTR -72[rbp], 0
	mov	eax, DWORD PTR -108[rbp]
	mov	edi, eax
	call	loadDriver
	mov	DWORD PTR -104[rbp], eax
	mov	eax, DWORD PTR -104[rbp]
	mov	esi, eax
	mov	edi, 1542
	call	rdmsr_on_cpu
	mov	QWORD PTR -64[rbp], rax
	mov	rax, QWORD PTR -64[rbp]
	shr	rax, 8
	and	eax, 15
	mov	QWORD PTR -64[rbp], rax
	mov	eax, DWORD PTR -104[rbp]
	mov	esi, eax
	mov	edi, 1553
	call	rdmsr_on_cpu
	mov	QWORD PTR -96[rbp], rax
	mov	eax, DWORD PTR -104[rbp]
	mov	esi, eax
	mov	edi, 1561
	call	rdmsr_on_cpu
	mov	QWORD PTR -80[rbp], rax
	lea	rax, -48[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	mov	rax, QWORD PTR stdin[rip]
	mov	rdi, rax
	call	getc@PLT
	mov	DWORD PTR -100[rbp], eax
	mov	eax, DWORD PTR -104[rbp]
	mov	esi, eax
	mov	edi, 1553
	call	rdmsr_on_cpu
	mov	QWORD PTR -88[rbp], rax
	mov	eax, DWORD PTR -104[rbp]
	mov	esi, eax
	mov	edi, 1561
	call	rdmsr_on_cpu
	mov	QWORD PTR -72[rbp], rax
	lea	rax, -32[rbp]
	mov	rsi, rax
	mov	edi, 1
	call	clock_gettime@PLT
	mov	rax, QWORD PTR -32[rbp]
	mov	rdx, QWORD PTR -48[rbp]
	sub	rax, rdx
	imul	rdx, rax, 1000000000
	mov	rax, QWORD PTR -24[rbp]
	mov	rcx, QWORD PTR -40[rbp]
	sub	rax, rcx
	add	rax, rdx
	mov	QWORD PTR -56[rbp], rax
	mov	rax, QWORD PTR -72[rbp]
	test	rax, rax
	js	.L11
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L12
.L11:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L12:
	mov	rax, QWORD PTR -80[rbp]
	test	rax, rax
	js	.L13
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	jmp	.L14
.L13:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rdx
	addsd	xmm1, xmm1
.L14:
	subsd	xmm0, xmm1
	movsd	QWORD PTR -136[rbp], xmm0
	mov	rax, QWORD PTR -64[rbp]
	test	rax, rax
	js	.L15
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L16
.L15:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L16:
	mov	rax, QWORD PTR .LC5[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movsd	xmm4, QWORD PTR -136[rbp]
	divsd	xmm4, xmm0
	movsd	QWORD PTR -136[rbp], xmm4
	mov	rax, QWORD PTR -88[rbp]
	test	rax, rax
	js	.L17
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L18
.L17:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L18:
	mov	rax, QWORD PTR -96[rbp]
	test	rax, rax
	js	.L19
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rax
	jmp	.L20
.L19:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm1, xmm1
	cvtsi2sd	xmm1, rdx
	addsd	xmm1, xmm1
.L20:
	subsd	xmm0, xmm1
	movsd	QWORD PTR -144[rbp], xmm0
	mov	rax, QWORD PTR -64[rbp]
	test	rax, rax
	js	.L21
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L22
.L21:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L22:
	mov	rax, QWORD PTR .LC5[rip]
	movapd	xmm1, xmm0
	movq	xmm0, rax
	call	pow@PLT
	movsd	xmm3, QWORD PTR -144[rbp]
	divsd	xmm3, xmm0
	mov	rax, QWORD PTR -56[rbp]
	test	rax, rax
	js	.L23
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rax
	jmp	.L24
.L23:
	mov	rdx, rax
	shr	rdx
	and	eax, 1
	or	rdx, rax
	pxor	xmm0, xmm0
	cvtsi2sd	xmm0, rdx
	addsd	xmm0, xmm0
.L24:
	movsd	xmm1, QWORD PTR .LC6[rip]
	divsd	xmm0, xmm1
	movq	rax, xmm0
	movsd	xmm2, QWORD PTR -136[rbp]
	movapd	xmm1, xmm3
	movq	xmm0, rax
	lea	rdi, .LC7[rip]
	mov	eax, 3
	call	printf@PLT
	mov	eax, DWORD PTR -104[rbp]
	mov	edi, eax
	call	closeDriver
	mov	edi, 0
	call	exit@PLT
	.cfi_endproc
.LFE8:
	.size	main, .-main
	.section	.rodata
	.align 8
.LC8:
	.string	"rdmsr: CPU %d cannot read MSR 0x%08x\n"
.LC9:
	.string	"rdmsr: pread"
	.text
	.globl	rdmsr_on_cpu
	.type	rdmsr_on_cpu, @function
rdmsr_on_cpu:
.LFB9:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rsp
	.cfi_def_cfa_register 6
	sub	rsp, 48
	mov	DWORD PTR -36[rbp], edi
	mov	DWORD PTR -40[rbp], esi
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR -8[rbp], rax
	xor	eax, eax
	mov	DWORD PTR -20[rbp], 0
	mov	edx, DWORD PTR -36[rbp]
	lea	rsi, -16[rbp]
	mov	eax, DWORD PTR -40[rbp]
	mov	rcx, rdx
	mov	edx, 8
	mov	edi, eax
	call	pread@PLT
	cmp	rax, 8
	je	.L27
	call	__errno_location@PLT
	mov	eax, DWORD PTR [rax]
	cmp	eax, 5
	jne	.L28
	mov	rax, QWORD PTR stderr[rip]
	mov	ecx, DWORD PTR -36[rbp]
	mov	edx, DWORD PTR -20[rbp]
	lea	rsi, .LC8[rip]
	mov	rdi, rax
	mov	eax, 0
	call	fprintf@PLT
	mov	edi, 4
	call	exit@PLT
.L28:
	lea	rdi, .LC9[rip]
	call	perror@PLT
	mov	edi, 127
	call	exit@PLT
.L27:
	mov	rax, QWORD PTR -16[rbp]
	mov	rcx, QWORD PTR -8[rbp]
	sub	rcx, QWORD PTR fs:40
	je	.L30
	call	__stack_chk_fail@PLT
.L30:
	leave
	.cfi_def_cfa 7, 8
	ret
	.cfi_endproc
.LFE9:
	.size	rdmsr_on_cpu, .-rdmsr_on_cpu
	.section	.rodata
	.align 8
.LC5:
	.long	0
	.long	1073741824
	.align 8
.LC6:
	.long	0
	.long	1104006501
	.ident	"GCC: (Ubuntu 10.5.0-1ubuntu1~20.04) 10.5.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, 6
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"709467.c"
	.text
	.section	.rodata
	.align	2
.LC0:
	.ascii	"/dev/cpu/%d/msr\000"
	.align	2
.LC1:
	.ascii	"rdmsr: No CPU %d\012\000"
	.align	2
.LC2:
	.ascii	"rdmsr: CPU %d doesn't support MSRs\012\000"
	.align	2
.LC3:
	.ascii	"rdmsr: open\000"
	.align	2
.LC4:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	loadDriver, %function
loadDriver:
	@ args = 0, pretend = 0, frame = 80
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #80
	str	r0, [fp, #-80]
	ldr	r3, .L7
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	sub	r3, fp, #72
	ldr	r2, [fp, #-80]
	ldr	r1, .L7+4
	mov	r0, r3
	bl	sprintf
	sub	r3, fp, #72
	mov	r1, #0
	mov	r0, r3
	bl	open
	str	r0, [fp, #-76]
	ldr	r3, [fp, #-76]
	cmp	r3, #0
	bge	.L2
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #6
	bne	.L3
	ldr	r3, .L7+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	ldr	r1, .L7+12
	mov	r0, r3
	bl	fprintf
	mov	r0, #2
	bl	exit
.L3:
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #5
	bne	.L4
	ldr	r3, .L7+8
	ldr	r3, [r3]
	ldr	r2, [fp, #-80]
	ldr	r1, .L7+16
	mov	r0, r3
	bl	fprintf
	mov	r0, #3
	bl	exit
.L4:
	ldr	r0, .L7+20
	bl	perror
	mov	r0, #127
	bl	exit
.L2:
	ldr	r3, [fp, #-76]
	ldr	r2, .L7
	ldr	r1, [r2]
	ldr	r2, [fp, #-8]
	eors	r1, r2, r1
	mov	r2, #0
	beq	.L6
	bl	__stack_chk_fail
.L6:
	mov	r0, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC4
	.word	.LC0
	.word	stderr
	.word	.LC1
	.word	.LC2
	.word	.LC3
	.size	loadDriver, .-loadDriver
	.section	.rodata
	.align	2
.LC5:
	.ascii	"Failed to close fd\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	closeDriver, %function
closeDriver:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #16
	str	r0, [fp, #-16]
	ldr	r0, [fp, #-16]
	bl	close
	str	r0, [fp, #-8]
	ldr	r3, [fp, #-8]
	cmn	r3, #1
	bne	.L11
	ldr	r0, .L12
	bl	perror
.L11:
	nop
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L13:
	.align	2
.L12:
	.word	.LC5
	.size	closeDriver, .-closeDriver
	.global	__aeabi_ul2d
	.global	__aeabi_ddiv
	.global	__aeabi_dsub
	.section	.rodata
	.align	2
.LC6:
	.ascii	"Time: %f, CPU Energy: %f\012DRAM Energy: %f\012\000"
	.align	2
.LC7:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	main
	.syntax unified
	.arm
	.fpu softvfp
	.type	main, %function
main:
	@ args = 0, pretend = 0, frame = 96
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, fp, lr}
	add	fp, sp, #28
	sub	sp, sp, #112
	str	r0, [fp, #-120]
	str	r1, [fp, #-124]
	ldr	r3, .L16
	ldr	r3, [r3]
	str	r3, [fp, #-32]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-112]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-100]
	str	r3, [fp, #-96]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-92]
	str	r3, [fp, #-88]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-84]
	str	r3, [fp, #-80]
	mov	r2, #0
	mov	r3, #0
	str	r2, [fp, #-76]
	str	r3, [fp, #-72]
	ldr	r0, [fp, #-112]
	bl	loadDriver
	str	r0, [fp, #-108]
	ldr	r1, [fp, #-108]
	ldr	r0, .L16+4
	bl	rdmsr_on_cpu
	str	r0, [fp, #-68]
	str	r1, [fp, #-64]
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	mov	r2, #0
	mov	r3, #0
	lsr	r2, r0, #8
	orr	r2, r2, r1, lsl #24
	lsr	r3, r1, #8
	mov	r0, #15
	mov	r1, #0
	and	r4, r2, r0
	and	r5, r3, r1
	str	r4, [fp, #-68]
	str	r5, [fp, #-64]
	ldr	r1, [fp, #-108]
	ldr	r0, .L16+8
	bl	rdmsr_on_cpu
	str	r0, [fp, #-100]
	str	r1, [fp, #-96]
	ldr	r1, [fp, #-108]
	ldr	r0, .L16+12
	bl	rdmsr_on_cpu
	str	r0, [fp, #-84]
	str	r1, [fp, #-80]
	sub	r3, fp, #48
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	ldr	r3, .L16+16
	ldr	r3, [r3]
	mov	r0, r3
	bl	getc
	str	r0, [fp, #-104]
	ldr	r1, [fp, #-108]
	ldr	r0, .L16+8
	bl	rdmsr_on_cpu
	str	r0, [fp, #-92]
	str	r1, [fp, #-88]
	ldr	r1, [fp, #-108]
	ldr	r0, .L16+12
	bl	rdmsr_on_cpu
	str	r0, [fp, #-76]
	str	r1, [fp, #-72]
	sub	r3, fp, #40
	mov	r1, r3
	mov	r0, #1
	bl	clock_gettime
	ldr	r2, [fp, #-40]
	ldr	r3, [fp, #-48]
	sub	r3, r2, r3
	ldr	r2, .L16+20
	mul	r2, r3, r2
	ldr	r1, [fp, #-36]
	ldr	r3, [fp, #-44]
	sub	r3, r1, r3
	add	r3, r2, r3
	mov	r2, r3
	asr	r3, r2, #31
	str	r2, [fp, #-60]
	str	r3, [fp, #-56]
	sub	r1, fp, #60
	ldmia	r1, {r0-r1}
	bl	__aeabi_ul2d
	mov	r2, #0
	ldr	r3, .L16+24
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r8, r2
	mov	r9, r3
	sub	r1, fp, #92
	ldmia	r1, {r0-r1}
	bl	__aeabi_ul2d
	mov	r4, r0
	mov	r5, r1
	sub	r1, fp, #100
	ldmia	r1, {r0-r1}
	bl	__aeabi_ul2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_ul2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	mov	r6, r2
	mov	r7, r3
	sub	r1, fp, #76
	ldmia	r1, {r0-r1}
	bl	__aeabi_ul2d
	mov	r4, r0
	mov	r5, r1
	sub	r1, fp, #84
	ldmia	r1, {r0-r1}
	bl	__aeabi_ul2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_dsub
	mov	r2, r0
	mov	r3, r1
	mov	r4, r2
	mov	r5, r3
	sub	r1, fp, #68
	ldmia	r1, {r0-r1}
	bl	__aeabi_ul2d
	mov	r2, r0
	mov	r3, r1
	mov	r0, #0
	mov	r1, #1073741824
	bl	pow
	mov	r2, r0
	mov	r3, r1
	mov	r0, r4
	mov	r1, r5
	bl	__aeabi_ddiv
	mov	r2, r0
	mov	r3, r1
	str	r2, [sp, #8]
	str	r3, [sp, #12]
	stm	sp, {r6-r7}
	mov	r2, r8
	mov	r3, r9
	ldr	r0, .L16+28
	bl	printf
	ldr	r0, [fp, #-108]
	bl	closeDriver
	mov	r0, #0
	bl	exit
.L17:
	.align	2
.L16:
	.word	.LC7
	.word	1542
	.word	1553
	.word	1561
	.word	stdin
	.word	1000000000
	.word	1104006501
	.word	.LC6
	.size	main, .-main
	.section	.rodata
	.align	2
.LC8:
	.ascii	"rdmsr: CPU %d cannot read MSR 0x%08x\012\000"
	.align	2
.LC9:
	.ascii	"rdmsr: pread\000"
	.align	2
.LC10:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	rdmsr_on_cpu
	.syntax unified
	.arm
	.fpu softvfp
	.type	rdmsr_on_cpu, %function
rdmsr_on_cpu:
	@ args = 0, pretend = 0, frame = 32
	@ frame_needed = 1, uses_anonymous_args = 0
	push	{fp, lr}
	add	fp, sp, #4
	sub	sp, sp, #32
	str	r0, [fp, #-32]
	str	r1, [fp, #-36]
	ldr	r3, .L23
	ldr	r3, [r3]
	str	r3, [fp, #-8]
	mov	r3,#0
	mov	r3, #0
	str	r3, [fp, #-24]
	ldr	r3, [fp, #-32]
	sub	r1, fp, #20
	mov	r2, #8
	ldr	r0, [fp, #-36]
	bl	pread
	mov	r3, r0
	cmp	r3, #8
	beq	.L19
	bl	__errno_location
	mov	r3, r0
	ldr	r3, [r3]
	cmp	r3, #5
	bne	.L20
	ldr	r3, .L23+4
	ldr	r0, [r3]
	ldr	r3, [fp, #-32]
	ldr	r2, [fp, #-24]
	ldr	r1, .L23+8
	bl	fprintf
	mov	r0, #4
	bl	exit
.L20:
	ldr	r0, .L23+12
	bl	perror
	mov	r0, #127
	bl	exit
.L19:
	sub	r3, fp, #20
	ldmia	r3, {r2-r3}
	ldr	r1, .L23
	ldr	r0, [r1]
	ldr	r1, [fp, #-8]
	eors	r0, r1, r0
	mov	r1, #0
	beq	.L22
	bl	__stack_chk_fail
.L22:
	mov	r0, r2
	mov	r1, r3
	sub	sp, fp, #4
	@ sp needed
	pop	{fp, pc}
.L24:
	.align	2
.L23:
	.word	.LC10
	.word	stderr
	.word	.LC8
	.word	.LC9
	.size	rdmsr_on_cpu, .-rdmsr_on_cpu
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
