	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen8_gtt_get_pfn
_gen8_gtt_get_pfn:                      ## @gen8_gtt_get_pfn
	.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), %rax
	movq	_GTT_TYPE_PPGTT_PTE_1G_ENTRY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movq	_ADDR_1G_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_2:
	movq	_GTT_TYPE_PPGTT_PTE_2M_ENTRY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_4
## %bb.3:
	movq	_ADDR_2M_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_4:
	movq	_GTT_TYPE_PPGTT_PTE_64K_ENTRY@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.6:
	movq	_ADDR_64K_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_5:
	movq	_ADDR_4K_MASK@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rax
	andq	8(%rdi), %rax
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shrq	%cl, %rax
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GTT_TYPE_PPGTT_PTE_1G_ENTRY,8,3 ## @GTT_TYPE_PPGTT_PTE_1G_ENTRY
	.comm	_ADDR_1G_MASK,8,3               ## @ADDR_1G_MASK
	.comm	_PAGE_SHIFT,8,3                 ## @PAGE_SHIFT
	.comm	_GTT_TYPE_PPGTT_PTE_2M_ENTRY,8,3 ## @GTT_TYPE_PPGTT_PTE_2M_ENTRY
	.comm	_ADDR_2M_MASK,8,3               ## @ADDR_2M_MASK
	.comm	_GTT_TYPE_PPGTT_PTE_64K_ENTRY,8,3 ## @GTT_TYPE_PPGTT_PTE_64K_ENTRY
	.comm	_ADDR_64K_MASK,8,3              ## @ADDR_64K_MASK
	.comm	_ADDR_4K_MASK,8,3               ## @ADDR_4K_MASK
	.no_dead_strip	_gen8_gtt_get_pfn
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen8_gtt_get_pfn
_gen8_gtt_get_pfn:                      ; @gen8_gtt_get_pfn
	.cfi_startproc
; %bb.0:
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _GTT_TYPE_PPGTT_PTE_1G_ENTRY@GOTPAGE
Lloh1:
	ldr	x9, [x9, _GTT_TYPE_PPGTT_PTE_1G_ENTRY@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x8, _ADDR_1G_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ADDR_1G_MASK@GOTPAGEOFF]
	b	LBB0_5
LBB0_2:
Lloh5:
	adrp	x9, _GTT_TYPE_PPGTT_PTE_2M_ENTRY@GOTPAGE
Lloh6:
	ldr	x9, [x9, _GTT_TYPE_PPGTT_PTE_2M_ENTRY@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_4
; %bb.3:
Lloh8:
	adrp	x8, _ADDR_2M_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ADDR_2M_MASK@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh10:
	adrp	x9, _GTT_TYPE_PPGTT_PTE_64K_ENTRY@GOTPAGE
Lloh11:
	ldr	x9, [x9, _GTT_TYPE_PPGTT_PTE_64K_ENTRY@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
Lloh13:
	adrp	x10, _ADDR_4K_MASK@GOTPAGE
Lloh14:
	ldr	x10, [x10, _ADDR_4K_MASK@GOTPAGEOFF]
Lloh15:
	adrp	x11, _ADDR_64K_MASK@GOTPAGE
Lloh16:
	ldr	x11, [x11, _ADDR_64K_MASK@GOTPAGEOFF]
	cmp	x8, x9
	csel	x8, x11, x10, eq
LBB0_5:
	ldr	x9, [x0, #8]
	ldr	x8, [x8]
	and	x8, x8, x9
Lloh17:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	lsr	x0, x8, x9
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_GTT_TYPE_PPGTT_PTE_1G_ENTRY,8,3 ; @GTT_TYPE_PPGTT_PTE_1G_ENTRY
	.comm	_ADDR_1G_MASK,8,3               ; @ADDR_1G_MASK
	.comm	_PAGE_SHIFT,8,3                 ; @PAGE_SHIFT
	.comm	_GTT_TYPE_PPGTT_PTE_2M_ENTRY,8,3 ; @GTT_TYPE_PPGTT_PTE_2M_ENTRY
	.comm	_ADDR_2M_MASK,8,3               ; @ADDR_2M_MASK
	.comm	_GTT_TYPE_PPGTT_PTE_64K_ENTRY,8,3 ; @GTT_TYPE_PPGTT_PTE_64K_ENTRY
	.comm	_ADDR_64K_MASK,8,3              ; @ADDR_64K_MASK
	.comm	_ADDR_4K_MASK,8,3               ; @ADDR_4K_MASK
	.no_dead_strip	_gen8_gtt_get_pfn
.subsections_via_symbols
