	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_kv_notify_message_to_smu ## -- Begin function amdgpu_kv_notify_message_to_smu
	.p2align	4, 0x90
_amdgpu_kv_notify_message_to_smu:       ## @amdgpu_kv_notify_message_to_smu
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_mmSMC_MESSAGE_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_SMC_MESSAGE_0__SMC_MSG_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %rsi
	callq	_WREG32
	cmpq	$0, (%r14)
	jle	LBB0_4
## %bb.1:
	xorl	%ebx, %ebx
	movq	_mmSMC_RESP_0@GOTPCREL(%rip), %r15
	movq	_SMC_RESP_0__SMC_RESP_MASK@GOTPCREL(%rip), %r12
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r15), %edi
	callq	_RREG32
	testq	%rax, (%r12)
	jne	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	$1, %edi
	callq	_udelay
	incq	%rbx
	cmpq	(%r14), %rbx
	jl	LBB0_2
LBB0_4:
	movq	_mmSMC_RESP_0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_RREG32
	movq	%rax, %rcx
	movq	_SMC_RESP_0__SMC_RESP_MASK@GOTPCREL(%rip), %rax
	andq	(%rax), %rcx
	cmpq	$254, %rcx
	je	LBB0_6
## %bb.5:
	xorl	%eax, %eax
	cmpq	$255, %rcx
	jne	LBB0_7
LBB0_6:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_7:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_mmSMC_MESSAGE_0,4,2            ## @mmSMC_MESSAGE_0
	.comm	_SMC_MESSAGE_0__SMC_MSG_MASK,8,3 ## @SMC_MESSAGE_0__SMC_MSG_MASK
	.comm	_mmSMC_RESP_0,4,2               ## @mmSMC_RESP_0
	.comm	_SMC_RESP_0__SMC_RESP_MASK,8,3  ## @SMC_RESP_0__SMC_RESP_MASK
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_amdgpu_kv_notify_message_to_smu ; -- Begin function amdgpu_kv_notify_message_to_smu
	.p2align	2
_amdgpu_kv_notify_message_to_smu:       ; @amdgpu_kv_notify_message_to_smu
	.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	x19, x0
Lloh0:
	adrp	x8, _mmSMC_MESSAGE_0@GOTPAGE
Lloh1:
	ldr	x8, [x8, _mmSMC_MESSAGE_0@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x8, _SMC_MESSAGE_0__SMC_MSG_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SMC_MESSAGE_0__SMC_MSG_MASK@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	and	x1, x8, x1
	bl	_WREG32
	ldr	x8, [x19]
Lloh6:
	adrp	x21, _mmSMC_RESP_0@GOTPAGE
Lloh7:
	ldr	x21, [x21, _mmSMC_RESP_0@GOTPAGEOFF]
Lloh8:
	adrp	x20, _SMC_RESP_0__SMC_RESP_MASK@GOTPAGE
Lloh9:
	ldr	x20, [x20, _SMC_RESP_0__SMC_RESP_MASK@GOTPAGEOFF]
	cmp	x8, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x22, #0
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	bl	_RREG32
	ldr	x8, [x20]
	tst	x8, x0
	b.ne	LBB0_4
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	w0, #1
	bl	_udelay
	add	x22, x22, #1
	ldr	x8, [x19]
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_4:
	ldr	w0, [x21]
	bl	_RREG32
	ldr	x8, [x20]
	and	x8, x8, x0
	cmp	x8, #254
	b.eq	LBB0_6
; %bb.5:
	cmp	x8, #255
	b.ne	LBB0_7
LBB0_6:
Lloh10:
	adrp	x8, _EINVAL@GOTPAGE
Lloh11:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_8
LBB0_7:
	mov	w0, #0
LBB0_8:
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_mmSMC_MESSAGE_0,4,2            ; @mmSMC_MESSAGE_0
	.comm	_SMC_MESSAGE_0__SMC_MSG_MASK,8,3 ; @SMC_MESSAGE_0__SMC_MSG_MASK
	.comm	_mmSMC_RESP_0,4,2               ; @mmSMC_RESP_0
	.comm	_SMC_RESP_0__SMC_RESP_MASK,8,3  ; @SMC_RESP_0__SMC_RESP_MASK
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
