	.file	"extr_smu7_smumgr.c_smu7_send_msg_to_smc.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"last message was not supported\n"
	.align 8
.LC1:
	.string	"\n last message was failed ret is %d\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC2:
	.string	"message %x was not supported\n"
	.section	.rodata.str1.8
	.align 8
.LC3:
	.string	"\n failed to send message %x ret is %d \n"
	.text
	.p2align 4
	.globl	smu7_send_msg_to_smc
	.type	smu7_send_msg_to_smc, @function
smu7_send_msg_to_smc:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	ebp, esi
	xor	ecx, ecx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edx, DWORD PTR SMC_RESP[rip]
	mov	esi, DWORD PTR SMC_RESP_0[rip]
	call	PHM_WAIT_FIELD_UNEQUAL@PLT
	mov	edx, DWORD PTR SMC_RESP[rip]
	mov	esi, DWORD PTR SMC_RESP_0[rip]
	mov	edi, DWORD PTR [rbx]
	call	PHM_READ_FIELD@PLT
	cmp	eax, 254
	je	.L14
	cmp	eax, 1
	jne	.L15
.L3:
	mov	esi, DWORD PTR mmSMC_RESP_0[rip]
	mov	edi, DWORD PTR [rbx]
	xor	edx, edx
	call	cgs_write_register@PLT
	mov	esi, DWORD PTR mmSMC_MESSAGE_0[rip]
	mov	edi, DWORD PTR [rbx]
	mov	edx, ebp
	call	cgs_write_register@PLT
	mov	edx, DWORD PTR SMC_RESP[rip]
	xor	ecx, ecx
	mov	rdi, rbx
	mov	esi, DWORD PTR SMC_RESP_0[rip]
	call	PHM_WAIT_FIELD_UNEQUAL@PLT
	mov	edx, DWORD PTR SMC_RESP[rip]
	mov	esi, DWORD PTR SMC_RESP_0[rip]
	mov	edi, DWORD PTR [rbx]
	call	PHM_READ_FIELD@PLT
	cmp	eax, 254
	je	.L16
	cmp	eax, 1
	jne	.L17
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	edx, eax
	mov	esi, ebp
	lea	rdi, .LC3[rip]
	xor	eax, eax
	call	pr_info@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	esi, eax
	lea	rdi, .LC1[rip]
	xor	eax, eax
	call	pr_info@PLT
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L16:
	mov	esi, ebp
	lea	rdi, .LC2[rip]
	xor	eax, eax
	call	pr_debug@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	xor	eax, eax
	call	pr_debug@PLT
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	smu7_send_msg_to_smc, .-smu7_send_msg_to_smc
	.comm	mmSMC_RESP_0,4,4
	.comm	mmSMC_MESSAGE_0,4,4
	.comm	SMC_RESP_0,4,4
	.comm	SMC_RESP,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_smu7_smumgr.c_smu7_send_msg_to_smc.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"last message was not supported\012\000"
	.align	2
.LC1:
	.ascii	"\012 last message was failed ret is %d\012\000"
	.align	2
.LC2:
	.ascii	"message %x was not supported\012\000"
	.align	2
.LC3:
	.ascii	"\012 failed to send message %x ret is %d \012\000"
	.text
	.align	2
	.global	smu7_send_msg_to_smc
	.syntax unified
	.arm
	.fpu softvfp
	.type	smu7_send_msg_to_smc, %function
smu7_send_msg_to_smc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r6, .L18
	ldr	r5, .L18+4
	mov	r3, #0
	ldr	r2, [r6]
	mov	r7, r1
	ldr	r1, [r5]
	bl	PHM_WAIT_FIELD_UNEQUAL
	ldr	r0, [r4]
	ldr	r2, [r6]
	ldr	r1, [r5]
	bl	PHM_READ_FIELD
	cmp	r0, #254
	beq	.L14
	cmp	r0, #1
	bne	.L15
.L3:
	ldr	r3, .L18+8
	mov	r2, #0
	ldr	r1, [r3]
	ldr	r0, [r4]
	bl	cgs_write_register
	ldr	r3, .L18+12
	mov	r2, r7
	ldr	r1, [r3]
	ldr	r0, [r4]
	bl	cgs_write_register
	mov	r3, #0
	ldr	r2, [r6]
	ldr	r1, [r5]
	mov	r0, r4
	bl	PHM_WAIT_FIELD_UNEQUAL
	ldr	r2, [r6]
	ldr	r1, [r5]
	ldr	r0, [r4]
	bl	PHM_READ_FIELD
	cmp	r0, #254
	beq	.L16
	cmp	r0, #1
	bne	.L17
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	mov	r2, r0
	mov	r1, r7
	ldr	r0, .L18+16
	bl	pr_info
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	mov	r1, r0
	ldr	r0, .L18+20
	bl	pr_info
	b	.L3
.L16:
	mov	r1, r7
	ldr	r0, .L18+24
	bl	pr_debug
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	ldr	r0, .L18+28
	bl	pr_debug
	b	.L3
.L19:
	.align	2
.L18:
	.word	SMC_RESP
	.word	SMC_RESP_0
	.word	mmSMC_RESP_0
	.word	mmSMC_MESSAGE_0
	.word	.LC3
	.word	.LC1
	.word	.LC2
	.word	.LC0
	.size	smu7_send_msg_to_smc, .-smu7_send_msg_to_smc
	.comm	mmSMC_RESP_0,4,4
	.comm	mmSMC_MESSAGE_0,4,4
	.comm	SMC_RESP_0,4,4
	.comm	SMC_RESP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
