	.file	"extr_trinity_dpm.c_trinity_dpm_get_current_sclk.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	trinity_dpm_get_current_sclk
	.type	trinity_dpm_get_current_sclk, @function
trinity_dpm_get_current_sclk:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	call	trinity_get_pi@PLT
	mov	rdi, rax
	call	trinity_get_ps@PLT
	mov	edi, DWORD PTR TARGET_AND_CURRENT_PROFILE_INDEX[rip]
	mov	rbx, rax
	call	RREG32@PLT
	mov	rcx, QWORD PTR CURRENT_STATE_SHIFT[rip]
	and	rax, QWORD PTR CURRENT_STATE_MASK[rip]
	xor	r8d, r8d
	shr	rax, cl
	cmp	QWORD PTR [rbx], rax
	jbe	.L1
	mov	rdx, QWORD PTR 8[rbx]
	mov	r8, QWORD PTR [rdx+rax*8]
.L1:
	mov	rax, r8
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	trinity_dpm_get_current_sclk, .-trinity_dpm_get_current_sclk
	.comm	TARGET_AND_CURRENT_PROFILE_INDEX,4,4
	.comm	CURRENT_STATE_SHIFT,8,8
	.comm	CURRENT_STATE_MASK,8,8
	.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_trinity_dpm.c_trinity_dpm_get_current_sclk.c"
	.text
	.align	2
	.global	trinity_dpm_get_current_sclk
	.syntax unified
	.arm
	.fpu softvfp
	.type	trinity_dpm_get_current_sclk, %function
trinity_dpm_get_current_sclk:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	bl	trinity_get_pi
	bl	trinity_get_ps
	ldr	r3, .L6
	mov	r4, r0
	ldr	r0, [r3]
	bl	RREG32
	ldr	r3, .L6+4
	ldr	r2, .L6+8
	ldr	r3, [r3]
	ldr	r2, [r2]
	ldr	r1, [r4]
	and	r3, r3, r0
	cmp	r1, r3, lsr r2
	lsr	r3, r3, r2
	ldrhi	r2, [r4, #4]
	ldrhi	r0, [r2, r3, lsl #2]
	movls	r0, #0
	pop	{r4, pc}
.L7:
	.align	2
.L6:
	.word	TARGET_AND_CURRENT_PROFILE_INDEX
	.word	CURRENT_STATE_MASK
	.word	CURRENT_STATE_SHIFT
	.size	trinity_dpm_get_current_sclk, .-trinity_dpm_get_current_sclk
	.comm	TARGET_AND_CURRENT_PROFILE_INDEX,4,4
	.comm	CURRENT_STATE_SHIFT,4,4
	.comm	CURRENT_STATE_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
