	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function gen6_pte_encode
_gen6_pte_encode:                       ## @gen6_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	movq	%rdi, %r14
	movq	_GEN6_PTE_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movl	%esi, %edi
	callq	_GEN6_PTE_ADDR_ENCODE
	movl	%eax, %r15d
	orl	%r12d, %r15d
	cmpl	$128, %ebx
	je	LBB0_5
## %bb.1:
	cmpl	$130, %ebx
	je	LBB0_4
## %bb.2:
	cmpl	$129, %ebx
	jne	LBB0_7
## %bb.3:
	movq	%r14, %rdi
	callq	_IS_HASWELL
	testl	%eax, %eax
	je	LBB0_8
LBB0_4:
	movq	_GEN6_PTE_CACHE_LLC@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_5:
	movq	%r14, %rdi
	callq	_IS_HASWELL
	testl	%eax, %eax
	je	LBB0_9
## %bb.6:
	movq	_HSW_PTE_UNCACHED@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_7:
	xorl	%eax, %eax
	callq	_BUG
	jmp	LBB0_11
LBB0_8:
	movq	_GEN6_PTE_CACHE_LLC_MLC@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_9:
	movq	_GEN6_PTE_UNCACHED@GOTPCREL(%rip), %rax
LBB0_10:
	orl	(%rax), %r15d
LBB0_11:
	movl	%r15d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GEN6_PTE_VALID,4,2             ## @GEN6_PTE_VALID
	.comm	_GEN6_PTE_CACHE_LLC,4,2         ## @GEN6_PTE_CACHE_LLC
	.comm	_GEN6_PTE_CACHE_LLC_MLC,4,2     ## @GEN6_PTE_CACHE_LLC_MLC
	.comm	_HSW_PTE_UNCACHED,4,2           ## @HSW_PTE_UNCACHED
	.comm	_GEN6_PTE_UNCACHED,4,2          ## @GEN6_PTE_UNCACHED
	.no_dead_strip	_gen6_pte_encode
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function gen6_pte_encode
_gen6_pte_encode:                       ; @gen6_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	x21, x2
	mov	x20, x0
Lloh0:
	adrp	x8, _GEN6_PTE_VALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GEN6_PTE_VALID@GOTPAGEOFF]
Lloh2:
	ldr	w19, [x8]
	mov	x0, x1
	bl	_GEN6_PTE_ADDR_ENCODE
	orr	w19, w0, w19
	cmp	w21, #128
	b.eq	LBB0_5
; %bb.1:
	cmp	w21, #130
	b.eq	LBB0_4
; %bb.2:
	cmp	w21, #129
	b.ne	LBB0_7
; %bb.3:
	mov	x0, x20
	bl	_IS_HASWELL
	cbz	w0, LBB0_8
LBB0_4:
Lloh3:
	adrp	x8, _GEN6_PTE_CACHE_LLC@GOTPAGE
Lloh4:
	ldr	x8, [x8, _GEN6_PTE_CACHE_LLC@GOTPAGEOFF]
	b	LBB0_10
LBB0_5:
	mov	x0, x20
	bl	_IS_HASWELL
	cbz	w0, LBB0_9
; %bb.6:
Lloh5:
	adrp	x8, _HSW_PTE_UNCACHED@GOTPAGE
Lloh6:
	ldr	x8, [x8, _HSW_PTE_UNCACHED@GOTPAGEOFF]
	b	LBB0_10
LBB0_7:
	bl	_BUG
	b	LBB0_11
LBB0_8:
Lloh7:
	adrp	x8, _GEN6_PTE_CACHE_LLC_MLC@GOTPAGE
Lloh8:
	ldr	x8, [x8, _GEN6_PTE_CACHE_LLC_MLC@GOTPAGEOFF]
	b	LBB0_10
LBB0_9:
Lloh9:
	adrp	x8, _GEN6_PTE_UNCACHED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _GEN6_PTE_UNCACHED@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	orr	w19, w8, w19
LBB0_11:
	mov	x0, x19
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpLdrGot	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_GEN6_PTE_VALID,4,2             ; @GEN6_PTE_VALID
	.comm	_GEN6_PTE_CACHE_LLC,4,2         ; @GEN6_PTE_CACHE_LLC
	.comm	_GEN6_PTE_CACHE_LLC_MLC,4,2     ; @GEN6_PTE_CACHE_LLC_MLC
	.comm	_HSW_PTE_UNCACHED,4,2           ; @HSW_PTE_UNCACHED
	.comm	_GEN6_PTE_UNCACHED,4,2          ; @GEN6_PTE_UNCACHED
	.no_dead_strip	_gen6_pte_encode
.subsections_via_symbols
