	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function invalidate_ppgtt_mm
_invalidate_ppgtt_mm:                   ## @invalidate_ppgtt_mm
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	cmpl	$0, (%rdi)
	je	LBB0_7
## %bb.1:
	movq	%rdi, %r15
	movq	8(%rdi), %r14
	movq	8(%r14), %rax
	movq	(%rax), %r13
	movl	4(%rdi), %edi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	jle	LBB0_6
## %bb.2:
	xorl	%ebx, %ebx
	leaq	-56(%rbp), %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incl	%ebx
	movl	4(%r15), %edi
	callq	_ARRAY_SIZE
	cmpl	%eax, %ebx
	jge	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_ppgtt_get_shadow_root_entry
	movq	%r12, %rdi
	callq	*(%r13)
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_ppgtt_invalidate_spt_by_shadow_entry
	movq	$0, -56(%rbp)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movl	%ebx, %edx
	callq	_ppgtt_set_shadow_root_entry
	movl	(%r14), %edi
	movl	-48(%rbp), %ecx
	movq	-56(%rbp), %r8
	leaq	L_.str(%rip), %rsi
	xorl	%edx, %edx
	movl	%ebx, %r9d
	callq	_trace_spt_guest_change
	jmp	LBB0_5
LBB0_6:
	movl	$0, (%r15)
LBB0_7:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"destroy root pointer"

	.no_dead_strip	_invalidate_ppgtt_mm
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function invalidate_ppgtt_mm
_invalidate_ppgtt_mm:                   ; @invalidate_ppgtt_mm
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	ldr	w8, [x0]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x19, x0
	ldr	x20, [x0, #8]
	ldr	x8, [x20, #8]
	ldr	x23, [x8]
	ldr	w0, [x0, #4]
	bl	_ARRAY_SIZE
	cmp	w0, #1
	b.lt	LBB0_6
; %bb.2:
	mov	w21, #0
Lloh0:
	adrp	x22, l_.str@PAGE
Lloh1:
	add	x22, x22, l_.str@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	w21, w21, #1
	ldr	w0, [x19, #4]
	bl	_ARRAY_SIZE
	cmp	w21, w0
	b.ge	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x1, sp
	mov	x0, x19
	mov	x2, x21
	bl	_ppgtt_get_shadow_root_entry
	ldr	x8, [x23]
	mov	x0, sp
	blr	x8
	cbz	w0, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x1, sp
	mov	x0, x20
	bl	_ppgtt_invalidate_spt_by_shadow_entry
	str	xzr, [sp]
	mov	x1, sp
	mov	x0, x19
	mov	x2, x21
	bl	_ppgtt_set_shadow_root_entry
	ldr	w0, [x20]
	ldr	w3, [sp, #8]
	ldr	x4, [sp]
	mov	x1, x22
	mov	x2, #0
	mov	x5, x21
	bl	_trace_spt_guest_change
	b	LBB0_3
LBB0_6:
	str	wzr, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"destroy root pointer"

	.no_dead_strip	_invalidate_ppgtt_mm
.subsections_via_symbols
