	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen8_gtt_test_present
_gen8_gtt_test_present:                 ## @gen8_gtt_test_present
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	movq	(%rdi), %rcx
	movq	_GTT_TYPE_PPGTT_ROOT_L3_ENTRY@GOTPCREL(%rip), %r8
	movq	_GTT_TYPE_PPGTT_ROOT_L4_ENTRY@GOTPCREL(%rip), %rsi
	movl	8(%rdi), %eax
	xorl	%edi, %edi
	testl	%eax, %eax
	setne	%dil
	movq	__PAGE_PRESENT@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	cmpq	(%rsi), %rcx
	cmovel	%edi, %eax
	cmpq	(%r8), %rcx
	cmovel	%edi, %eax
	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
	.comm	__PAGE_PRESENT,4,2              ## @_PAGE_PRESENT
	.no_dead_strip	_gen8_gtt_test_present
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen8_gtt_test_present
_gen8_gtt_test_present:                 ; @gen8_gtt_test_present
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _GTT_TYPE_PPGTT_ROOT_L3_ENTRY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GTT_TYPE_PPGTT_ROOT_L3_ENTRY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _GTT_TYPE_PPGTT_ROOT_L4_ENTRY@GOTPAGE
Lloh4:
	ldr	x10, [x10, _GTT_TYPE_PPGTT_ROOT_L4_ENTRY@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	ldr	w11, [x0, #8]
	cmp	w11, #0
	cset	w12, ne
	cmp	x8, x10
	ccmp	x8, x9, #4, ne
Lloh6:
	adrp	x8, __PAGE_PRESENT@GOTPAGE
Lloh7:
	ldr	x8, [x8, __PAGE_PRESENT@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	and	w8, w8, w11
	csel	w0, w12, w8, eq
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.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
	.comm	__PAGE_PRESENT,4,2              ; @_PAGE_PRESENT
	.no_dead_strip	_gen8_gtt_test_present
.subsections_via_symbols
