	.file	"extr_rv6xx_dpm.c_rv6xx_dpm_get_current_mclk.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	rv6xx_dpm_get_current_mclk
	.type	rv6xx_dpm_get_current_mclk, @function
rv6xx_dpm_get_current_mclk:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rdi, QWORD PTR [rdi]
	call	rv6xx_get_ps@PLT
	mov	edi, DWORD PTR TARGET_AND_CURRENT_PROFILE_INDEX[rip]
	mov	rbx, rax
	call	RREG32@PLT
	mov	ecx, DWORD PTR CURRENT_PROFILE_INDEX_SHIFT[rip]
	and	eax, DWORD PTR CURRENT_PROFILE_INDEX_MASK[rip]
	xor	r8d, r8d
	sar	eax, cl
	cmp	eax, 2
	jg	.L1
	test	eax, eax
	je	.L10
	cmp	eax, 1
	lea	rdx, 4[rbx]
	mov	rax, rbx
	cmove	rax, rdx
.L4:
	mov	r8d, DWORD PTR [rax]
.L1:
	mov	eax, r8d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	lea	rax, 8[rbx]
	jmp	.L4
	.cfi_endproc
.LFE0:
	.size	rv6xx_dpm_get_current_mclk, .-rv6xx_dpm_get_current_mclk
	.comm	TARGET_AND_CURRENT_PROFILE_INDEX,4,4
	.comm	CURRENT_PROFILE_INDEX_SHIFT,4,4
	.comm	CURRENT_PROFILE_INDEX_MASK,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_rv6xx_dpm.c_rv6xx_dpm_get_current_mclk.c"
	.text
	.align	2
	.global	rv6xx_dpm_get_current_mclk
	.syntax unified
	.arm
	.fpu softvfp
	.type	rv6xx_dpm_get_current_mclk, %function
rv6xx_dpm_get_current_mclk:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldr	r0, [r0]
	bl	rv6xx_get_ps
	ldr	r3, .L9
	mov	r4, r0
	ldr	r0, [r3]
	bl	RREG32
	ldr	r3, .L9+4
	ldr	r2, .L9+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	and	r3, r3, r0
	asr	r3, r3, r2
	cmp	r3, #2
	bgt	.L6
	cmp	r3, #0
	addeq	r4, r4, #8
	beq	.L4
	cmp	r3, #1
	addeq	r4, r4, #4
.L4:
	ldr	r0, [r4]
	pop	{r4, pc}
.L6:
	mov	r0, #0
	pop	{r4, pc}
.L10:
	.align	2
.L9:
	.word	TARGET_AND_CURRENT_PROFILE_INDEX
	.word	CURRENT_PROFILE_INDEX_MASK
	.word	CURRENT_PROFILE_INDEX_SHIFT
	.size	rv6xx_dpm_get_current_mclk, .-rv6xx_dpm_get_current_mclk
	.comm	TARGET_AND_CURRENT_PROFILE_INDEX,4,4
	.comm	CURRENT_PROFILE_INDEX_SHIFT,4,4
	.comm	CURRENT_PROFILE_INDEX_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
