	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smu_v11_0_send_msg
_smu_v11_0_send_msg:                    ## @smu_v11_0_send_msg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_smu_msg_get_index
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_smu_v11_0_wait_for_response
	movq	_MP1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_mmMP1_SMN_C2PMSG_90@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	xorl	%r12d, %r12d
	xorl	%esi, %esi
	xorl	%ecx, %ecx
	callq	_WREG32_SOC15
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_smu_v11_0_send_msg_without_waiting
	movq	%rbx, %rdi
	callq	_smu_v11_0_wait_for_response
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %r13d
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_smu_get_message_name
	leaq	L_.str(%rip), %rdi
	movl	%eax, %esi
	movl	%r15d, %edx
	movl	%r13d, %ecx
	callq	_pr_err
	movl	%r13d, %r12d
	jmp	LBB0_4
LBB0_1:
	movl	%r15d, %r12d
LBB0_4:
	movl	%r12d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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 send message: %10s (%d) response %#x\n"

	.no_dead_strip	_smu_v11_0_send_msg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smu_v11_0_send_msg
_smu_v11_0_send_msg:                    ; @smu_v11_0_send_msg
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x21, x0
	bl	_smu_msg_get_index
	mov	x19, x0
	tbnz	w0, #31, LBB0_4
; %bb.1:
	mov	x0, x21
	bl	_smu_v11_0_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, x21
	mov	x1, x19
	bl	_smu_v11_0_send_msg_without_waiting
	mov	x0, x21
	bl	_smu_v11_0_wait_for_response
	cbz	w0, LBB0_3
; %bb.2:
	mov	x22, x0
	mov	x0, x21
	mov	x1, x20
	bl	_smu_get_message_name
	mov	x1, x0
Lloh6:
	adrp	x0, l_.str@PAGE
Lloh7:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x19
	mov	x3, x22
	bl	_pr_err
	mov	x19, x22
	b	LBB0_4
LBB0_3:
	mov	w19, #0
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 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 send message: %10s (%d) response %#x\n"

	.no_dead_strip	_smu_v11_0_send_msg
.subsections_via_symbols
