	.file	"extr_vega20_smumgr.c_vega20_send_msg_to_smc_with_parameter.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to send message 0x%x, response 0x%x\n"
	.text
	.p2align 4
	.type	vega20_send_msg_to_smc_with_parameter, @function
vega20_send_msg_to_smc_with_parameter:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12d, esi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	call	vega20_wait_for_response@PLT
	mov	edx, DWORD PTR mmMP1_SMN_C2PMSG_90[rip]
	xor	ecx, ecx
	xor	esi, esi
	mov	edi, DWORD PTR MP1[rip]
	call	WREG32_SOC15@PLT
	mov	edx, DWORD PTR mmMP1_SMN_C2PMSG_82[rip]
	mov	ecx, r13d
	xor	esi, esi
	mov	edi, DWORD PTR MP1[rip]
	call	WREG32_SOC15@PLT
	mov	esi, r12d
	mov	rdi, rbp
	call	vega20_send_msg_to_smc_without_waiting@PLT
	mov	rdi, rbp
	call	vega20_wait_for_response@PLT
	cmp	DWORD PTR PPSMC_Result_OK[rip], eax
	jne	.L2
.L4:
	pop	rbp
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edx, eax
	mov	esi, r12d
	lea	rdi, .LC0[rip]
	mov	ebp, eax
	call	pr_err@PLT
	cmp	DWORD PTR PPSMC_Result_OK[rip], ebp
	je	.L4
	mov	eax, DWORD PTR EIO[rip]
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	vega20_send_msg_to_smc_with_parameter, .-vega20_send_msg_to_smc_with_parameter
	.comm	mmMP1_SMN_C2PMSG_90,4,4
	.comm	mmMP1_SMN_C2PMSG_82,4,4
	.comm	PPSMC_Result_OK,4,4
	.comm	MP1,4,4
	.comm	EIO,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_smumgr.c_vega20_send_msg_to_smc_with_parameter.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to send message 0x%x, response 0x%x\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vega20_send_msg_to_smc_with_parameter, %function
vega20_send_msg_to_smc_with_parameter:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r2
	mov	r5, r1
	mov	r4, r0
	bl	vega20_wait_for_response
	mov	r3, #0
	ldr	r7, .L7
	ldr	r2, .L7+4
	mov	r1, r3
	ldr	r2, [r2]
	ldr	r0, [r7]
	bl	WREG32_SOC15
	ldr	r2, .L7+8
	mov	r3, r6
	ldr	r2, [r2]
	mov	r1, #0
	ldr	r0, [r7]
	bl	WREG32_SOC15
	mov	r1, r5
	mov	r0, r4
	bl	vega20_send_msg_to_smc_without_waiting
	mov	r0, r4
	bl	vega20_wait_for_response
	ldr	r6, .L7+12
	ldr	r3, [r6]
	cmp	r3, r0
	bne	.L2
.L4:
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	mov	r4, r0
	mov	r2, r0
	mov	r1, r5
	ldr	r0, .L7+16
	bl	pr_err
	ldr	r3, [r6]
	cmp	r3, r4
	beq	.L4
	ldr	r3, .L7+20
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	MP1
	.word	mmMP1_SMN_C2PMSG_90
	.word	mmMP1_SMN_C2PMSG_82
	.word	PPSMC_Result_OK
	.word	.LC0
	.word	EIO
	.size	vega20_send_msg_to_smc_with_parameter, .-vega20_send_msg_to_smc_with_parameter
	.comm	mmMP1_SMN_C2PMSG_90,4,4
	.comm	mmMP1_SMN_C2PMSG_82,4,4
	.comm	PPSMC_Result_OK,4,4
	.comm	MP1,4,4
	.comm	EIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
