	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu7_enable_smc_cac            ## -- Begin function smu7_enable_smc_cac
	.p2align	4, 0x90
_smu7_enable_smc_cac:                   ## @smu7_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %r15
	movq	_PHM_PlatformCaps_CAC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_PP_CAP
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	_PPSMC_MSG_EnableCac@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_smum_send_msg_to_smc
	xorl	%ebx, %ebx
	testl	%eax, %eax
	sete	%bl
	leaq	L_.str(%rip), %rsi
	movl	$-1, %r14d
	movl	%ebx, %edi
	movl	$-1, %edx
	callq	_PP_ASSERT_WITH_CODE
	movl	%ebx, (%r15)
	jmp	LBB0_3
LBB0_1:
	xorl	%r14d, %r14d
LBB0_3:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PHM_PlatformCaps_CAC,4,2       ## @PHM_PlatformCaps_CAC
	.comm	_PPSMC_MSG_EnableCac,8,3        ## @PPSMC_MSG_EnableCac
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Failed to enable CAC in SMC."

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_smu7_enable_smc_cac            ; -- Begin function smu7_enable_smc_cac
	.p2align	2
_smu7_enable_smc_cac:                   ; @smu7_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	x19, x0
	ldr	x21, [x0]
Lloh0:
	adrp	x8, _PHM_PlatformCaps_CAC@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PHM_PlatformCaps_CAC@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_PP_CAP
	cbz	x0, LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _PPSMC_MSG_EnableCac@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PPSMC_MSG_EnableCac@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_smum_send_msg_to_smc
	cmp	w0, #0
	cset	w20, eq
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w19, #-1
	mov	x0, x20
	mov	w2, #-1
	bl	_PP_ASSERT_WITH_CODE
	str	w20, [x21]
	b	LBB0_3
LBB0_2:
	mov	w19, #0
LBB0_3:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PHM_PlatformCaps_CAC,4,2       ; @PHM_PlatformCaps_CAC
	.comm	_PPSMC_MSG_EnableCac,8,3        ; @PPSMC_MSG_EnableCac
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Failed to enable CAC in SMC."

.subsections_via_symbols
