	.file	"extr_vega20_ppt.c_vega20_overdrive_get_gfx_clk_base_voltage.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"[GetBaseVoltage] failed to get GFXCLK AVFS voltage from SMU!"
	.text
	.p2align 4
	.type	vega20_overdrive_get_gfx_clk_base_voltage, @function
vega20_overdrive_get_gfx_clk_base_voltage:
.LFB0:
	.cfi_startproc
	endbr64
	mov	r8d, edx
	mov	eax, DWORD PTR OD8_HOTCURVE_TEMPERATURE[rip]
	mov	edx, DWORD PTR AVFS_CURVE[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	sal	eax, 16
	sal	edx, 24
	mov	rbx, rsi
	or	edx, eax
	mov	esi, DWORD PTR SMU_MSG_GetAVFSVoltageByDpm[rip]
	or	edx, r8d
	call	smu_send_smc_msg_with_param@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L6
	mov	rsi, rbx
	mov	rdi, rbp
	call	smu_read_smc_arg@PLT
	mov	eax, DWORD PTR [rbx]
	cdq
	idiv	DWORD PTR VOLTAGE_SCALE[rip]
	mov	DWORD PTR [rbx], eax
	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
.L6:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	pr_err@PLT
	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	vega20_overdrive_get_gfx_clk_base_voltage, .-vega20_overdrive_get_gfx_clk_base_voltage
	.comm	VOLTAGE_SCALE,4,4
	.comm	SMU_MSG_GetAVFSVoltageByDpm,4,4
	.comm	OD8_HOTCURVE_TEMPERATURE,4,4
	.comm	AVFS_CURVE,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_vega20_ppt.c_vega20_overdrive_get_gfx_clk_base_voltage.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"[GetBaseVoltage] failed to get GFXCLK AVFS voltage "
	.ascii	"from SMU!\000"
	.global	__aeabi_idiv
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vega20_overdrive_get_gfx_clk_base_voltage, %function
vega20_overdrive_get_gfx_clk_base_voltage:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L7
	push	{r4, r5, r6, lr}
	mov	r5, r1
	ldr	r1, .L7+4
	ldr	r3, [r3]
	ldr	r1, [r1]
	lsl	r3, r3, #16
	orr	r3, r3, r1, lsl #24
	ldr	r1, .L7+8
	orr	r2, r3, r2
	ldr	r1, [r1]
	mov	r6, r0
	bl	smu_send_smc_msg_with_param
	subs	r4, r0, #0
	bne	.L6
	mov	r1, r5
	mov	r0, r6
	bl	smu_read_smc_arg
	ldr	r3, .L7+12
	ldr	r0, [r5]
	ldr	r1, [r3]
	bl	__aeabi_idiv
	str	r0, [r5]
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r0, .L7+16
	bl	pr_err
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	OD8_HOTCURVE_TEMPERATURE
	.word	AVFS_CURVE
	.word	SMU_MSG_GetAVFSVoltageByDpm
	.word	VOLTAGE_SCALE
	.word	.LC0
	.size	vega20_overdrive_get_gfx_clk_base_voltage, .-vega20_overdrive_get_gfx_clk_base_voltage
	.comm	VOLTAGE_SCALE,4,4
	.comm	SMU_MSG_GetAVFSVoltageByDpm,4,4
	.comm	OD8_HOTCURVE_TEMPERATURE,4,4
	.comm	AVFS_CURVE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
