	.file	"extr_vega20_ppt.c_vega20_get_fan_speed_rpm.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Attempt to get current RPM from SMC Failed!\n"
	.text
	.p2align 4
	.type	vega20_get_fan_speed_rpm, @function
vega20_get_fan_speed_rpm:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rsi
	mov	esi, DWORD PTR SMU_MSG_GetCurrentRpm[rip]
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	call	smu_send_smc_msg@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L6
	mov	rsi, r13
	mov	rdi, rbp
	call	smu_read_smc_arg@PLT
	mov	eax, r12d
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.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	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	vega20_get_fan_speed_rpm, .-vega20_get_fan_speed_rpm
	.comm	SMU_MSG_GetCurrentRpm,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_get_fan_speed_rpm.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Attempt to get current RPM from SMC Failed!\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vega20_get_fan_speed_rpm, %function
vega20_get_fan_speed_rpm:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, .L7
	push	{r4, r5, r6, lr}
	mov	r6, r1
	ldr	r1, [r3]
	mov	r5, r0
	bl	smu_send_smc_msg
	subs	r4, r0, #0
	bne	.L6
	mov	r1, r6
	mov	r0, r5
	bl	smu_read_smc_arg
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L6:
	ldr	r0, .L7+4
	bl	pr_err
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L8:
	.align	2
.L7:
	.word	SMU_MSG_GetCurrentRpm
	.word	.LC0
	.size	vega20_get_fan_speed_rpm, .-vega20_get_fan_speed_rpm
	.comm	SMU_MSG_GetCurrentRpm,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
