	.file	"extr_cppc_msr.c_cpc_read_ffh.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	cpc_read_ffh
	.type	cpc_read_ffh, @function
cpc_read_ffh:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	esi, DWORD PTR 16[rsi]
	mov	rbx, rdx
	call	rdmsrl_safe_on_cpu@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L5
	mov	eax, r12d
	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
.L5:
	.cfi_restore_state
	movsx	rdi, DWORD PTR 0[rbp]
	mov	rsi, rdi
	add	rdi, QWORD PTR 8[rbp]
	sub	rdi, 1
	call	GENMASK_ULL@PLT
	and	eax, DWORD PTR [rbx]
	mov	DWORD PTR [rbx], eax
	mov	ecx, DWORD PTR 0[rbp]
	sar	eax, cl
	mov	DWORD PTR [rbx], eax
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	cpc_read_ffh, .-cpc_read_ffh
	.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_cppc_msr.c_cpc_read_ffh.c"
	.text
	.align	2
	.global	cpc_read_ffh
	.syntax unified
	.arm
	.fpu softvfp
	.type	cpc_read_ffh, %function
cpc_read_ffh:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r1
	ldr	r1, [r1, #8]
	mov	r6, r2
	bl	rdmsrl_safe_on_cpu
	subs	r4, r0, #0
	beq	.L5
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L5:
	ldr	r1, [r5]
	ldr	r0, [r5, #4]
	add	r0, r1, r0
	sub	r0, r0, #1
	bl	GENMASK_ULL
	ldr	r3, [r6]
	and	r0, r0, r3
	str	r0, [r6]
	ldr	r3, [r5]
	asr	r0, r0, r3
	str	r0, [r6]
	mov	r0, r4
	pop	{r4, r5, r6, pc}
	.size	cpc_read_ffh, .-cpc_read_ffh
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
