	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_pti_pte
_pmap_pti_pte:                          ## @pmap_pti_pte
	.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
	movq	%rsi, %r15
	movl	%edi, %r14d
	movq	_pti_obj@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_VM_OBJECT_ASSERT_WLOCKED
	movl	%r14d, %edi
	callq	_pmap_pti_pde
	movq	%rax, %rbx
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movl	$1, (%r15)
	movq	%rbx, %rdi
	callq	_pmap_pti_wire_pte
LBB0_2:
	movl	(%rbx), %eax
	testl	%eax, %eax
	je	LBB0_3
## %bb.7:
	movq	_X86_PG_PS@GOTPCREL(%rip), %rcx
	xorl	%edi, %edi
	andl	(%rcx), %eax
	jmp	LBB0_8
LBB0_3:
	xorl	%eax, %eax
	callq	_pmap_pti_alloc_page
	cmpl	$0, (%rbx)
	je	LBB0_5
## %bb.4:
	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_8:
	sete	%dil
	callq	_MPASS
	movq	_PAGE_MASK@GOTPCREL(%rip), %rax
	movq	_pg_nx@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	notl	%edi
	andl	(%rbx), %edi
LBB0_9:
	callq	_PHYS_TO_DMAP
	movq	%rax, %rbx
	movl	%r14d, %edi
	callq	_pmap_pte_index
	cltq
	leaq	(%rbx,%rax,4), %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movl	%eax, %edi
	callq	_VM_PAGE_TO_PHYS
	movl	%eax, %edi
	movq	_X86_PG_RW@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%edi, %eax
	movq	_X86_PG_V@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, (%rbx)
	testq	%r15, %r15
	je	LBB0_9
## %bb.6:
	movl	$0, (%r15)
	jmp	LBB0_9
	.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	_pg_nx,4,2                      ## @pg_nx
	.comm	_X86_PG_RW,4,2                  ## @X86_PG_RW
	.comm	_X86_PG_V,4,2                   ## @X86_PG_V
	.no_dead_strip	_pmap_pti_pte
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_pti_pte
_pmap_pti_pte:                          ; @pmap_pti_pte
	.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, x1
	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_pde
	mov	x20, x0
	cbz	x21, LBB0_2
; %bb.1:
	mov	w8, #1
	str	w8, [x21]
	mov	x0, x20
	bl	_pmap_pti_wire_pte
LBB0_2:
	ldr	w8, [x20]
	cbnz	w8, LBB0_5
; %bb.3:
	bl	_pmap_pti_alloc_page
	ldr	w8, [x20]
	cbz	w8, LBB0_7
; %bb.4:
	bl	_pmap_pti_free_page
	ldr	w8, [x20]
LBB0_5:
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]
Lloh9:
	adrp	x10, _pg_nx@GOTPAGE
Lloh10:
	ldr	x10, [x10, _pg_nx@GOTPAGEOFF]
Lloh11:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bic	w0, w8, w9
LBB0_6:
	bl	_PHYS_TO_DMAP
	mov	x20, x0
	mov	x0, x19
	bl	_pmap_pte_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
Lloh12:
	adrp	x8, _X86_PG_RW@GOTPAGE
Lloh13:
	ldr	x8, [x8, _X86_PG_RW@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	orr	w8, w8, w0
Lloh15:
	adrp	x9, _X86_PG_V@GOTPAGE
Lloh16:
	ldr	x9, [x9, _X86_PG_V@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	orr	w8, w8, w9
	str	w8, [x20]
	cbz	x21, LBB0_6
; %bb.8:
	str	wzr, [x21]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.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	_pg_nx,4,2                      ; @pg_nx
	.comm	_X86_PG_RW,4,2                  ; @X86_PG_RW
	.comm	_X86_PG_V,4,2                   ; @X86_PG_V
	.no_dead_strip	_pmap_pti_pte
.subsections_via_symbols
