	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu9_send_msg_to_smc           ## -- Begin function smu9_send_msg_to_smc
	.p2align	4, 0x90
_smu9_send_msg_to_smc:                  ## @smu9_send_msg_to_smc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_smu9_wait_for_response
	movq	_MP1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mmMP1_SMN_C2PMSG_90@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_WREG32_SOC15
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_smu9_send_msg_to_smc_without_waiting
	movq	%rbx, %rdi
	callq	_smu9_wait_for_response
	cmpl	$1, %eax
	je	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	movl	%r14d, %esi
	movl	%eax, %edx
	callq	_pr_err
LBB0_2:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MP1,4,2                        ## @MP1
	.comm	_mmMP1_SMN_C2PMSG_90,4,2        ## @mmMP1_SMN_C2PMSG_90
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to send message: 0x%x, ret value: 0x%x\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu9_send_msg_to_smc           ; -- Begin function smu9_send_msg_to_smc
	.p2align	2
_smu9_send_msg_to_smc:                  ; @smu9_send_msg_to_smc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
	bl	_smu9_wait_for_response
Lloh0:
	adrp	x8, _MP1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MP1@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _mmMP1_SMN_C2PMSG_90@GOTPAGE
Lloh4:
	ldr	x8, [x8, _mmMP1_SMN_C2PMSG_90@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	mov	w1, #0
	mov	w3, #0
	bl	_WREG32_SOC15
	mov	x0, x20
	mov	x1, x19
	bl	_smu9_send_msg_to_smc_without_waiting
	mov	x0, x20
	bl	_smu9_wait_for_response
	cmp	w0, #1
	b.eq	LBB0_2
; %bb.1:
	mov	x2, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_pr_err
LBB0_2:
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.comm	_MP1,4,2                        ; @MP1
	.comm	_mmMP1_SMN_C2PMSG_90,4,2        ; @mmMP1_SMN_C2PMSG_90
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to send message: 0x%x, ret value: 0x%x\n"

.subsections_via_symbols
