	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_extract_and_hold          ## -- Begin function pmap_extract_and_hold
	.p2align	4, 0x90
_pmap_extract_and_hold:                 ## @pmap_extract_and_hold
	.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	%edx, %r14d
	movl	%esi, %ebx
	movl	%edi, %r15d
	callq	_PMAP_LOCK
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_pmap_l3
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	%rax, %rdi
	callq	_pmap_load
	testl	%eax, %eax
	je	LBB0_7
## %bb.2:
	movq	_PTE_W@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
LBB0_3:
	movl	%eax, %edi
	callq	_PTE_TO_PHYS
	movl	%eax, %edi
	callq	_PHYS_TO_VM_PAGE
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_vm_page_wire_mapped
	xorl	%ebx, %ebx
	testl	%eax, %eax
	cmovneq	%r14, %rbx
	jmp	LBB0_8
LBB0_6:
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_3
LBB0_7:
	xorl	%ebx, %ebx
LBB0_8:
	movl	%r15d, %edi
	callq	_PMAP_UNLOCK
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTE_W,4,2                      ## @PTE_W
	.comm	_VM_PROT_WRITE,4,2              ## @VM_PROT_WRITE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_extract_and_hold          ; -- Begin function pmap_extract_and_hold
	.p2align	2
_pmap_extract_and_hold:                 ; @pmap_extract_and_hold
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_PMAP_LOCK
	mov	x0, x19
	mov	x1, x21
	bl	_pmap_l3
	cbz	x0, LBB0_5
; %bb.1:
	bl	_pmap_load
	cbz	w0, LBB0_5
; %bb.2:
Lloh0:
	adrp	x8, _PTE_W@GOTPAGE
Lloh1:
	ldr	x8, [x8, _PTE_W@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
LBB0_3:
	bl	_PTE_TO_PHYS
	bl	_PHYS_TO_VM_PAGE
	mov	x20, x0
	bl	_vm_page_wire_mapped
	cmp	w0, #0
	csel	x20, xzr, x20, eq
	b	LBB0_6
LBB0_4:
Lloh3:
	adrp	x8, _VM_PROT_WRITE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _VM_PROT_WRITE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
LBB0_5:
	mov	x20, #0
LBB0_6:
	mov	x0, x19
	bl	_PMAP_UNLOCK
	mov	x0, x20
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_PTE_W,4,2                      ; @PTE_W
	.comm	_VM_PROT_WRITE,4,2              ; @VM_PROT_WRITE
.subsections_via_symbols
