	.file	"extr_powernow-k7.c_powernow_get.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	powernow_get, @function
powernow_get:
.LFB0:
	.cfi_startproc
	endbr64
	test	edi, edi
	je	.L10
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	sub	rsp, 8
	.cfi_def_cfa_offset 16
	mov	edi, DWORD PTR MSR_K7_FID_VID_STATUS[rip]
	xor	esi, esi
	call	rdmsrl@PLT
	mov	rax, QWORD PTR fid_codes[rip]
	mov	edx, DWORD PTR [rax]
	imul	edx, DWORD PTR fsb[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 8
	movsx	rax, edx
	sar	edx, 31
	imul	rax, rax, 1717986919
	sar	rax, 34
	sub	eax, edx
	ret
	.cfi_endproc
.LFE0:
	.size	powernow_get, .-powernow_get
	.comm	fsb,4,4
	.comm	fid_codes,8,8
	.comm	MSR_K7_FID_VID_STATUS,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_powernow-k7.c_powernow_get.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	powernow_get, %function
powernow_get:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r0, #0
	beq	.L9
	mov	r0, #0
	bx	lr
.L9:
	push	{r4, lr}
	mov	r4, #0
	ldr	r3, .L10
	mov	r1, r4
	ldr	r0, [r3]
	bl	rdmsrl
	ldr	r3, .L10+4
	ldr	r2, .L10+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r3, [r3, r4, lsl #2]
	ldr	r0, .L10+12
	mul	r3, r2, r3
	smull	r1, r2, r0, r3
	asr	r0, r3, #31
	rsb	r0, r0, r2, asr #2
	pop	{r4, pc}
.L11:
	.align	2
.L10:
	.word	MSR_K7_FID_VID_STATUS
	.word	fid_codes
	.word	fsb
	.word	1717986919
	.size	powernow_get, .-powernow_get
	.comm	fsb,4,4
	.comm	fid_codes,4,4
	.comm	MSR_K7_FID_VID_STATUS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
