	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen8_pte_encode
_gen8_pte_encode:                       ## @gen8_pte_encode
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edi, %ebx
	movq	__PAGE_PRESENT@GOTPCREL(%rip), %rax
	orl	(%rax), %ebx
	movq	__PAGE_RW@GOTPCREL(%rip), %r15
	orl	(%r15), %ebx
	movl	%edx, %edi
	movl	%esi, %r14d
	movq	_PTE_READ_ONLY@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	callq	_unlikely
	movq	%rax, %rcx
	movl	(%r15), %edx
	notl	%edx
	xorl	%eax, %eax
	cmpq	$1, %rcx
	sbbl	%eax, %eax
	orl	%edx, %eax
	cmpl	$128, %r14d
	jne	LBB0_1
## %bb.2:
	movq	_PPAT_DISPLAY_ELLC@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_1:
	movq	_PPAT_CACHED@GOTPCREL(%rip), %rcx
LBB0_3:
	andl	%ebx, %eax
	cmpl	$129, %r14d
	jne	LBB0_5
## %bb.4:
	movq	_PPAT_UNCACHED@GOTPCREL(%rip), %rcx
LBB0_5:
	orl	(%rcx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	__PAGE_PRESENT,4,2              ## @_PAGE_PRESENT
	.comm	__PAGE_RW,4,2                   ## @_PAGE_RW
	.comm	_PTE_READ_ONLY,4,2              ## @PTE_READ_ONLY
	.comm	_PPAT_UNCACHED,4,2              ## @PPAT_UNCACHED
	.comm	_PPAT_DISPLAY_ELLC,4,2          ## @PPAT_DISPLAY_ELLC
	.comm	_PPAT_CACHED,4,2                ## @PPAT_CACHED
	.no_dead_strip	_gen8_pte_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen8_pte_encode
_gen8_pte_encode:                       ; @gen8_pte_encode
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
Lloh0:
	adrp	x8, __PAGE_PRESENT@GOTPAGE
Lloh1:
	ldr	x8, [x8, __PAGE_PRESENT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh3:
	adrp	x20, __PAGE_RW@GOTPAGE
Lloh4:
	ldr	x20, [x20, __PAGE_RW@GOTPAGEOFF]
	ldr	w9, [x20]
	orr	w21, w8, w9
Lloh5:
	adrp	x8, _PTE_READ_ONLY@GOTPAGE
Lloh6:
	ldr	x8, [x8, _PTE_READ_ONLY@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w0, w8, w2
	bl	_unlikely
	ldr	w8, [x20]
	cmp	x0, #0
	mov	w9, #-1
	csinv	w8, w9, w8, eq
Lloh8:
	adrp	x9, _PPAT_UNCACHED@GOTPAGE
Lloh9:
	ldr	x9, [x9, _PPAT_UNCACHED@GOTPAGEOFF]
	and	w8, w8, w21
Lloh10:
	adrp	x10, _PPAT_DISPLAY_ELLC@GOTPAGE
Lloh11:
	ldr	x10, [x10, _PPAT_DISPLAY_ELLC@GOTPAGEOFF]
Lloh12:
	adrp	x11, _PPAT_CACHED@GOTPAGE
Lloh13:
	ldr	x11, [x11, _PPAT_CACHED@GOTPAGEOFF]
	cmp	w19, #128
	csel	x10, x10, x11, eq
	cmp	w19, #129
	csel	x9, x9, x10, eq
	ldr	w9, [x9]
	orr	w0, w9, w8
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	__PAGE_PRESENT,4,2              ; @_PAGE_PRESENT
	.comm	__PAGE_RW,4,2                   ; @_PAGE_RW
	.comm	_PTE_READ_ONLY,4,2              ; @PTE_READ_ONLY
	.comm	_PPAT_UNCACHED,4,2              ; @PPAT_UNCACHED
	.comm	_PPAT_DISPLAY_ELLC,4,2          ; @PPAT_DISPLAY_ELLC
	.comm	_PPAT_CACHED,4,2                ; @PPAT_CACHED
	.no_dead_strip	_gen8_pte_encode
.subsections_via_symbols
