	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppgtt_invalidate_spt_by_shadow_entry
_ppgtt_invalidate_spt_by_shadow_entry:  ## @ppgtt_invalidate_spt_by_shadow_entry
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %r13
	movq	(%rsi), %rdi
	callq	_get_next_pt_type
	movl	%eax, %edi
	callq	_gtt_type_is_pt
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	callq	_GEM_BUG_ON
	movq	(%rbx), %rdi
	movq	_GTT_TYPE_PPGTT_ROOT_L3_ENTRY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_8
## %bb.1:
	movq	_GTT_TYPE_PPGTT_ROOT_L4_ENTRY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	je	LBB0_8
## %bb.2:
	callq	_get_next_pt_type
	movl	%eax, %r15d
	movl	%eax, %edi
	callq	_gtt_type_is_pt
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	leal	1(%r15), %r12d
	movl	%r12d, %edi
	callq	_gtt_type_is_pt
	testl	%eax, %eax
	je	LBB0_4
## %bb.7:
	movq	%rbx, %rdi
	callq	*(%r13)
	movq	%rax, %rcx
	movq	(%r14), %rdx
	movl	%r12d, %esi
	xorl	%eax, %eax
	cmpq	(%rdx,%rsi,8), %rcx
	je	LBB0_6
LBB0_8:
	movq	%rbx, %rdi
	callq	*(%r13)
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_intel_vgpu_find_spt_by_mfn
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	%rax, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ppgtt_invalidate_spt           ## TAILCALL
LBB0_4:
	leaq	L_.str(%rip), %rsi
	movl	$1, %edi
	movl	%r15d, %edx
	callq	_WARN
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	jmp	LBB0_5
LBB0_9:
	movq	%rbx, %rdi
	callq	*(%r13)
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	callq	_gvt_vgpu_err
	movq	_ENXIO@GOTPCREL(%rip), %rcx
LBB0_5:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_6:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GTT_TYPE_PPGTT_ROOT_L3_ENTRY,8,3 ## @GTT_TYPE_PPGTT_ROOT_L3_ENTRY
	.comm	_GTT_TYPE_PPGTT_ROOT_L4_ENTRY,8,3 ## @GTT_TYPE_PPGTT_ROOT_L4_ENTRY
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid page table type, cur_pt_type is: %d\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"fail to find shadow page: mfn: 0x%lx\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
	.no_dead_strip	_ppgtt_invalidate_spt_by_shadow_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppgtt_invalidate_spt_by_shadow_entry
_ppgtt_invalidate_spt_by_shadow_entry:  ; @ppgtt_invalidate_spt_by_shadow_entry
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	ldr	x23, [x8]
	ldr	x0, [x1]
	bl	_get_next_pt_type
	bl	_gtt_type_is_pt
	cmp	w0, #0
	cset	w0, eq
	bl	_GEM_BUG_ON
	ldr	x0, [x19]
Lloh0:
	adrp	x8, _GTT_TYPE_PPGTT_ROOT_L3_ENTRY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GTT_TYPE_PPGTT_ROOT_L3_ENTRY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x9, _GTT_TYPE_PPGTT_ROOT_L4_ENTRY@GOTPAGE
Lloh4:
	ldr	x9, [x9, _GTT_TYPE_PPGTT_ROOT_L4_ENTRY@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.ne	LBB0_3
LBB0_1:
	ldr	x8, [x23]
	mov	x0, x19
	blr	x8
	mov	x1, x0
	mov	x0, x20
	bl	_intel_vgpu_find_spt_by_mfn
	cbz	x0, LBB0_8
; %bb.2:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_ppgtt_invalidate_spt
LBB0_3:
	bl	_get_next_pt_type
	mov	x21, x0
	bl	_gtt_type_is_pt
	cbz	w0, LBB0_7
; %bb.4:
	add	w22, w21, #1
	mov	x0, x22
	bl	_gtt_type_is_pt
	cbz	w0, LBB0_7
; %bb.5:
	ldr	x8, [x23]
	mov	x0, x19
	blr	x8
	ldr	x8, [x20]
	ldr	x8, [x8, w22, uxtw #3]
	cmp	x0, x8
	b.ne	LBB0_1
; %bb.6:
	mov	w0, #0
	b	LBB0_10
LBB0_7:
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	mov	w0, #1
	mov	x2, x21
	bl	_WARN
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	b	LBB0_9
LBB0_8:
	ldr	x8, [x23]
	mov	x0, x19
	blr	x8
	mov	x1, x0
Lloh10:
	adrp	x0, l_.str.1@PAGE
Lloh11:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_gvt_vgpu_err
Lloh12:
	adrp	x8, _ENXIO@GOTPAGE
Lloh13:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
LBB0_9:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_10:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_GTT_TYPE_PPGTT_ROOT_L3_ENTRY,8,3 ; @GTT_TYPE_PPGTT_ROOT_L3_ENTRY
	.comm	_GTT_TYPE_PPGTT_ROOT_L4_ENTRY,8,3 ; @GTT_TYPE_PPGTT_ROOT_L4_ENTRY
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid page table type, cur_pt_type is: %d\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"fail to find shadow page: mfn: 0x%lx\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
	.no_dead_strip	_ppgtt_invalidate_spt_by_shadow_entry
.subsections_via_symbols
