	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_pti_pdpe
_pmap_pti_pdpe:                         ## @pmap_pti_pdpe
	.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, %r14d
	movq	_pti_obj@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movl	%r14d, %edi
	callq	_pmap_pml4e_index
	movq	%rax, %r15
	movq	_pti_pml4@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movl	(%rbx,%r15,4), %edi
	testl	%edi, %edi
	je	LBB0_1
## %bb.6:
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %edi
	jmp	LBB0_7
LBB0_1:
	movq	_pti_finalized@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	leaq	L_.str(%rip), %rdi
	callq	_panic
LBB0_3:
	xorl	%eax, %eax
	callq	_pmap_pti_alloc_page
	cmpl	$0, (%rbx,%r15,4)
	je	LBB0_5
## %bb.4:
	movq	%rax, %rdi
	callq	_pmap_pti_free_page
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	notl	%edi
	andl	(%rbx,%r15,4), %edi
	jmp	LBB0_7
LBB0_5:
	movq	%rax, %rdi
	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,%r15,4)
LBB0_7:
	callq	_PHYS_TO_DMAP
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_pmap_pdpe_index
	cltq
	leaq	(%rbx,%rax,4), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_pti_obj,4,2                    ## @pti_obj
	.comm	_pti_pml4,8,3                   ## @pti_pml4
	.comm	_pti_finalized,8,3              ## @pti_finalized
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pml4 alloc after finalization\n"

	.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_pdpe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_pti_pdpe
_pmap_pti_pdpe:                         ; @pmap_pti_pdpe
	.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, 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_pml4e_index
Lloh3:
	adrp	x8, _pti_pml4@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pti_pml4@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
	ldr	w8, [x21, x0, lsl #2]
	cbnz	w8, LBB0_5
; %bb.1:
	mov	x20, x0
Lloh6:
	adrp	x8, _pti_finalized@GOTPAGE
Lloh7:
	ldr	x8, [x8, _pti_finalized@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
LBB0_3:
	bl	_pmap_pti_alloc_page
	ldr	w8, [x21, x20, lsl #2]
	cbz	w8, LBB0_7
; %bb.4:
	bl	_pmap_pti_free_page
	ldr	w8, [x21, x20, lsl #2]
LBB0_5:
Lloh11:
	adrp	x9, _PAGE_MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PAGE_MASK@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	bic	w0, w8, w9
LBB0_6:
	bl	_PHYS_TO_DMAP
	mov	x20, x0
	mov	x0, x19
	bl	_pmap_pdpe_index
	add	x0, x20, w0, sxtw #2
	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
LBB0_7:
	bl	_VM_PAGE_TO_PHYS
Lloh14:
	adrp	x8, _X86_PG_RW@GOTPAGE
Lloh15:
	ldr	x8, [x8, _X86_PG_RW@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh17:
	adrp	x9, _X86_PG_V@GOTPAGE
Lloh18:
	ldr	x9, [x9, _X86_PG_V@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x21, x20, lsl #2]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_pti_obj,4,2                    ; @pti_obj
	.comm	_pti_pml4,8,3                   ; @pti_pml4
	.comm	_pti_finalized,8,3              ; @pti_finalized
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pml4 alloc after finalization\n"

	.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_pdpe
.subsections_via_symbols
