	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ppgtt_spt_get_entry
_ppgtt_spt_get_entry:                   ## @ppgtt_spt_get_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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movq	%r8, -56(%rbp)                  ## 8-byte Spill
	movq	%rcx, %rbx
	movl	%edx, %r15d
	movq	%rsi, %r12
	movq	%rdi, %r14
	movq	8(%rdi), %rax
	movq	(%rax), %rax
	movq	(%rax), %r13
	movl	%edx, %edi
	callq	_get_entry_type
	movl	%eax, 4(%rbx)
	movl	%eax, %edi
	callq	_gtt_type_is_entry
	xorl	%edi, %edi
	testl	%eax, %eax
	sete	%dil
	leaq	L_.str(%rip), %rsi
	callq	_WARN
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
	jmp	LBB0_6
LBB0_2:
	movl	(%r14), %r8d
	movq	_I915_GTT_PAGE_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	shll	%cl, %r8d
	movq	8(%r14), %r9
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	*(%r13)
	movl	%eax, %r12d
	testl	%eax, %eax
	jne	LBB0_6
## %bb.3:
	movq	%r13, %rdi
	movq	-56(%rbp), %r13                 ## 8-byte Reload
	xorl	%r12d, %r12d
	movl	$0, %edx
	cmpl	$0, -44(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_5
## %bb.4:
	movl	4(%r14), %edx
LBB0_5:
	movq	%rbx, %rsi
	callq	_update_entry_type_for_real
	movl	(%rbx), %r8d
	movl	4(%rbx), %edx
	leaq	L_.str.1(%rip), %rdi
	movl	%r15d, %esi
	movq	%r13, %rcx
	callq	_gvt_vdbg_mm
LBB0_6:
	movl	%r12d, %eax
	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	"invalid entry type\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_I915_GTT_PAGE_SHIFT,4,2        ## @I915_GTT_PAGE_SHIFT
L_.str.1:                               ## @.str.1
	.asciz	"read ppgtt entry, spt type %d, entry type %d, index %lu, value %llx\n"

	.no_dead_strip	_ppgtt_spt_get_entry
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ppgtt_spt_get_entry
_ppgtt_spt_get_entry:                   ; @ppgtt_spt_get_entry
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x23, x5
	mov	x19, x4
	mov	x21, x3
	mov	x20, x2
	mov	x25, x1
	mov	x24, x0
	ldr	x8, [x0, #8]
	ldr	x8, [x8]
	ldr	x22, [x8]
	mov	x0, x2
	bl	_get_entry_type
	str	w0, [x21, #4]
	bl	_gtt_type_is_entry
	cmp	w0, #0
	cset	w0, eq
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_WARN
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
	ldr	x8, [x22]
	ldr	w9, [x24]
Lloh5:
	adrp	x10, _I915_GTT_PAGE_SHIFT@GOTPAGE
Lloh6:
	ldr	x10, [x10, _I915_GTT_PAGE_SHIFT@GOTPAGEOFF]
Lloh7:
	ldr	w10, [x10]
	lsl	w4, w9, w10
	ldr	x5, [x24, #8]
	mov	x0, x25
	mov	x1, x21
	mov	x2, x19
	mov	x3, x23
	blr	x8
	cbnz	w0, LBB0_7
; %bb.3:
	cbz	w23, LBB0_5
; %bb.4:
	ldr	w2, [x24, #4]
	b	LBB0_6
LBB0_5:
	mov	w2, #0
LBB0_6:
	mov	x0, x22
	mov	x1, x21
	bl	_update_entry_type_for_real
	ldp	w4, w2, [x21]
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x20
	mov	x3, x19
	bl	_gvt_vdbg_mm
	mov	w0, #0
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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"invalid entry type\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_I915_GTT_PAGE_SHIFT,4,2        ; @I915_GTT_PAGE_SHIFT
l_.str.1:                               ; @.str.1
	.asciz	"read ppgtt entry, spt type %d, entry type %d, index %lu, value %llx\n"

	.no_dead_strip	_ppgtt_spt_get_entry
.subsections_via_symbols
