	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %r14d
	movl	%edi, %ebx
	callq	_pmap_rw_bit
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_pmap_valid_bit
	movl	%eax, %r13d
	movl	%ebx, %edi
	callq	_PMAP_LOCK
	movl	%ebx, %edi
	movl	%r14d, %esi
	callq	_pmap_pde
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	movl	(%rax), %ecx
	testl	%ecx, %ecx
	je	LBB0_17
## %bb.2:
	movq	_PG_PS@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_7
## %bb.3:
	testl	%r12d, %ecx
	je	LBB0_13
LBB0_4:
	movq	_PG_PS_FRAME@GOTPCREL(%rip), %rax
	andl	(%rax), %ecx
	movq	_PDRMASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
	orl	%ecx, %r14d
	jmp	LBB0_10
LBB0_7:
	movq	%rax, %rdi
	movl	%r14d, %esi
	callq	_pmap_pde_to_pte
	movl	(%rax), %r14d
	testl	%r13d, %r14d
	je	LBB0_17
## %bb.8:
	testl	%r12d, %r14d
	je	LBB0_16
LBB0_9:
	movq	_PG_FRAME@GOTPCREL(%rip), %rax
	andl	(%rax), %r14d
LBB0_10:
	movl	%r14d, %edi
	callq	_PHYS_TO_VM_PAGE
	testq	%rax, %rax
	je	LBB0_17
## %bb.11:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_vm_page_wire_mapped
	xorl	%r14d, %r14d
	testl	%eax, %eax
	cmovneq	%r15, %r14
	jmp	LBB0_18
LBB0_13:
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_17
	jmp	LBB0_4
LBB0_16:
	movq	_VM_PROT_WRITE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_9
LBB0_17:
	xorl	%r14d, %r14d
LBB0_18:
	movl	%ebx, %edi
	callq	_PMAP_UNLOCK
	movq	%r14, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PG_PS,4,2                      ## @PG_PS
	.comm	_VM_PROT_WRITE,4,2              ## @VM_PROT_WRITE
	.comm	_PG_PS_FRAME,4,2                ## @PG_PS_FRAME
	.comm	_PDRMASK,4,2                    ## @PDRMASK
	.comm	_PG_FRAME,4,2                   ## @PG_FRAME
.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	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_pmap_rw_bit
	mov	x22, x0
	mov	x0, x19
	bl	_pmap_valid_bit
	mov	x23, x0
	mov	x0, x19
	bl	_PMAP_LOCK
	mov	x0, x19
	mov	x1, x21
	bl	_pmap_pde
	cbz	x0, LBB0_12
; %bb.1:
	ldr	w8, [x0]
	cbz	w8, LBB0_12
; %bb.2:
Lloh0:
	adrp	x9, _PG_PS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _PG_PS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.3:
	tst	w8, w22
	b.eq	LBB0_10
LBB0_4:
Lloh3:
	adrp	x9, _PG_PS_FRAME@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PG_PS_FRAME@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w8, w9, w8
Lloh6:
	adrp	x9, _PDRMASK@GOTPAGE
Lloh7:
	ldr	x9, [x9, _PDRMASK@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	and	w9, w9, w21
	orr	w0, w9, w8
	b	LBB0_8
LBB0_5:
	mov	x1, x21
	bl	_pmap_pde_to_pte
	ldr	w8, [x0]
	tst	w8, w23
	b.eq	LBB0_12
; %bb.6:
	tst	w8, w22
	b.eq	LBB0_11
LBB0_7:
Lloh9:
	adrp	x9, _PG_FRAME@GOTPAGE
Lloh10:
	ldr	x9, [x9, _PG_FRAME@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	and	w0, w9, w8
LBB0_8:
	bl	_PHYS_TO_VM_PAGE
	mov	x20, x0
	cbz	x0, LBB0_13
; %bb.9:
	mov	x0, x20
	bl	_vm_page_wire_mapped
	cmp	w0, #0
	csel	x20, xzr, x20, eq
	b	LBB0_13
LBB0_10:
Lloh12:
	adrp	x9, _VM_PROT_WRITE@GOTPAGE
Lloh13:
	ldr	x9, [x9, _VM_PROT_WRITE@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	tst	w9, w20
	b.ne	LBB0_12
	b	LBB0_4
LBB0_11:
Lloh15:
	adrp	x9, _VM_PROT_WRITE@GOTPAGE
Lloh16:
	ldr	x9, [x9, _VM_PROT_WRITE@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w20
	b.eq	LBB0_7
LBB0_12:
	mov	x20, #0
LBB0_13:
	mov	x0, x19
	bl	_PMAP_UNLOCK
	mov	x0, x20
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_PG_PS,4,2                      ; @PG_PS
	.comm	_VM_PROT_WRITE,4,2              ; @VM_PROT_WRITE
	.comm	_PG_PS_FRAME,4,2                ; @PG_PS_FRAME
	.comm	_PDRMASK,4,2                    ; @PDRMASK
	.comm	_PG_FRAME,4,2                   ; @PG_FRAME
.subsections_via_symbols
