	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function kv_enable_smc_cac
_kv_enable_smc_cac:                     ## @kv_enable_smc_cac
	.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
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_kv_get_pi
	xorl	%r14d, %r14d
	cmpq	$0, 8(%rax)
	je	LBB0_7
## %bb.1:
	movq	%rax, %r15
	testl	%r12d, %r12d
	je	LBB0_5
## %bb.2:
	movq	_PPSMC_MSG_EnableCac@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_amdgpu_kv_notify_message_to_smu
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	$0, (%r15)
	movl	%eax, %r14d
	jmp	LBB0_7
LBB0_5:
	cmpl	$0, (%r15)
	je	LBB0_7
## %bb.6:
	movq	_PPSMC_MSG_DisableCac@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_amdgpu_kv_notify_message_to_smu
	movl	$0, (%r15)
	jmp	LBB0_7
LBB0_4:
	movl	$1, (%r15)
LBB0_7:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PPSMC_MSG_EnableCac,4,2        ## @PPSMC_MSG_EnableCac
	.comm	_PPSMC_MSG_DisableCac,4,2       ## @PPSMC_MSG_DisableCac
	.no_dead_strip	_kv_enable_smc_cac
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function kv_enable_smc_cac
_kv_enable_smc_cac:                     ; @kv_enable_smc_cac
	.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	x21, x1
	mov	x20, x0
	bl	_kv_get_pi
	ldr	x8, [x0, #8]
	cbz	x8, LBB0_7
; %bb.1:
	mov	x19, x0
	cbz	w21, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _PPSMC_MSG_EnableCac@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PPSMC_MSG_EnableCac@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_amdgpu_kv_notify_message_to_smu
	cbnz	w0, LBB0_6
; %bb.3:
	mov	w8, #1
	str	w8, [x19]
	b	LBB0_8
LBB0_4:
	ldr	w8, [x19]
	cbz	w8, LBB0_7
; %bb.5:
Lloh3:
	adrp	x8, _PPSMC_MSG_DisableCac@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PPSMC_MSG_DisableCac@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x20
	bl	_amdgpu_kv_notify_message_to_smu
	mov	w0, #0
LBB0_6:
	str	wzr, [x19]
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PPSMC_MSG_EnableCac,4,2        ; @PPSMC_MSG_EnableCac
	.comm	_PPSMC_MSG_DisableCac,4,2       ; @PPSMC_MSG_DisableCac
	.no_dead_strip	_kv_enable_smc_cac
.subsections_via_symbols
