	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_pti_pde
_pmap_pti_pde:                          ## @pmap_pti_pde
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%edi, %r14d
	movq	_pti_obj@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movl	%r14d, %edi
	callq	_pmap_pti_pdpe
	movq	%rax, %rbx
	movl	(%rax), %eax
	testl	%eax, %eax
	je	LBB0_1
## %bb.4:
	movq	_X86_PG_PS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	andl	(%rcx), %eax
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	callq	_pmap_pti_alloc_page
	cmpl	$0, (%rbx)
	je	LBB0_3
## %bb.2:
	movl	%eax, %edi
	callq	_pmap_pti_free_page
	movq	_X86_PG_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	andl	(%rbx), %eax
LBB0_5:
	sete	%dil
	callq	_MPASS
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	andl	(%rbx), %edi
LBB0_6:
	callq	_PHYS_TO_DMAP
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_pmap_pde_index
	cltq
	leaq	(%rbx,%rax,4), %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_3:
	movl	%eax, %edi
	callq	_VM_PAGE_TO_PHYS
	movl	%eax, %edi
	movq	_X86_PG_RW@GOTPCREL(%rip), %rax
	movl	%edi, %ecx
	orl	(%rax), %ecx
	movq	_X86_PG_V@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ecx, (%rbx)
	jmp	LBB0_6
	.cfi_endproc
                                        ## -- End function
	.comm	_pti_obj,4,2                    ## @pti_obj
	.comm	_X86_PG_PS,4,2                  ## @X86_PG_PS
	.comm	_PAGE_MASK,4,2                  ## @PAGE_MASK
	.comm	_X86_PG_RW,4,2                  ## @X86_PG_RW
	.comm	_X86_PG_V,4,2                   ## @X86_PG_V
	.no_dead_strip	_pmap_pti_pde
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_pti_pde
_pmap_pti_pde:                          ; @pmap_pti_pde
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
Lloh0:
	adrp	x8, _pti_obj@GOTPAGE
Lloh1:
	ldr	x8, [x8, _pti_obj@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_VM_OBJECT_ASSERT_WLOCKED
	mov	x0, x19
	bl	_pmap_pti_pdpe
	mov	x20, x0
	ldr	w8, [x0]
	cbnz	w8, LBB0_3
; %bb.1:
	bl	_pmap_pti_alloc_page
	ldr	w8, [x20]
	cbz	w8, LBB0_5
; %bb.2:
	bl	_pmap_pti_free_page
	ldr	w8, [x20]
LBB0_3:
Lloh3:
	adrp	x9, _X86_PG_PS@GOTPAGE
Lloh4:
	ldr	x9, [x9, _X86_PG_PS@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
	bl	_MPASS
	ldr	w8, [x20]
Lloh6:
	adrp	x9, _PAGE_MASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PAGE_MASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	bic	w0, w8, w9
LBB0_4:
	bl	_PHYS_TO_DMAP
	mov	x20, x0
	mov	x0, x19
	bl	_pmap_pde_index
	add	x0, x20, w0, sxtw #2
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_5:
	bl	_VM_PAGE_TO_PHYS
Lloh9:
	adrp	x8, _X86_PG_RW@GOTPAGE
Lloh10:
	ldr	x8, [x8, _X86_PG_RW@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh12:
	adrp	x9, _X86_PG_V@GOTPAGE
Lloh13:
	ldr	x9, [x9, _X86_PG_V@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20]
	b	LBB0_4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_pti_obj,4,2                    ; @pti_obj
	.comm	_X86_PG_PS,4,2                  ; @X86_PG_PS
	.comm	_PAGE_MASK,4,2                  ; @PAGE_MASK
	.comm	_X86_PG_RW,4,2                  ; @X86_PG_RW
	.comm	_X86_PG_V,4,2                   ; @X86_PG_V
	.no_dead_strip	_pmap_pti_pde
.subsections_via_symbols
