	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen8_gtt_set_pfn
_gen8_gtt_set_pfn:                      ## @gen8_gtt_set_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_6
## %bb.5:
	movq	_ADDR_64K_MASK@GOTPCREL(%rip), %rax
	jmp	LBB0_7
LBB0_6:
	movq	_ADDR_4K_MASK@GOTPCREL(%rip), %rax
LBB0_7:
	movq	(%rax), %rax
	movq	%rax, %rdx
	notq	%rdx
	andq	8(%rdi), %rdx
	movq	_PAGE_SHIFT@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	shrq	%cl, %rax
	andq	%rsi, %rax
                                        ## kill: def $cl killed $cl killed $rcx
	shlq	%cl, %rax
	orq	%rdx, %rax
	movq	%rax, 8(%rdi)
	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_set_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_set_pfn
_gen8_gtt_set_pfn:                      ; @gen8_gtt_set_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_7
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_7
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]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.5:
Lloh13:
	adrp	x8, _ADDR_64K_MASK@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ADDR_64K_MASK@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh15:
	adrp	x8, _ADDR_4K_MASK@GOTPAGE
Lloh16:
	ldr	x8, [x8, _ADDR_4K_MASK@GOTPAGEOFF]
LBB0_7:
	ldr	x10, [x8]
	ldr	x8, [x0, #8]
	bic	x8, x8, x10
Lloh17:
	adrp	x9, _PAGE_SHIFT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PAGE_SHIFT@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	lsr	x10, x10, x9
	and	x10, x10, x1
	lsl	x9, x10, x9
	orr	x8, x8, x9
	str	x8, [x0, #8]
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.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_set_pfn
.subsections_via_symbols
