	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_mincore                   ## -- Begin function pmap_mincore
	.p2align	4, 0x90
_pmap_mincore:                          ## @pmap_mincore
	.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
	movq	%rdx, %r13
	movl	%esi, %ebx
	movl	%edi, %r15d
	callq	_PMAP_LOCK
	movl	%r15d, %edi
	movl	%ebx, %esi
	callq	_pmap_get_l2_bucket
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_8
## %bb.1:
	movq	(%rax), %r12
	movl	%ebx, %edi
	callq	_l2pte_index
	movl	(%r12,%rax,4), %ebx
	movl	%ebx, %edi
	callq	_l2pte_valid
	testl	%eax, %eax
	je	LBB0_8
## %bb.2:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	_MINCORE_INCORE@GOTPCREL(%rip), %rax
	movq	_L2_S_PROT_W@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%ebx, %ecx
	movq	_MINCORE_MODIFIED@GOTPCREL(%rip), %rdx
	movq	_MINCORE_MODIFIED_OTHER@GOTPCREL(%rip), %r14
	movl	(%r14), %r13d
	orl	(%rdx), %r13d
	testl	%ecx, %ecx
	cmovel	%ecx, %r13d
	orl	(%rax), %r13d
	movl	%ebx, %edi
	callq	_l2pte_pa
	movl	%eax, %r12d
	movl	%eax, %edi
	callq	_PHYS_TO_VM_PAGE
	testq	%rax, %rax
	je	LBB0_5
## %bb.3:
	movq	_VPO_UNMANAGED@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_6
LBB0_5:
	movl	%r13d, %r14d
LBB0_8:
	movl	%r15d, %edi
	callq	_PMAP_UNLOCK
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_6:
	movq	_PVF_REF@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	4(%rax), %ecx
	movq	_MINCORE_REFERENCED@GOTPCREL(%rip), %rax
	movq	_MINCORE_REFERENCED_OTHER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movq	%r14, %rsi
	movl	(%rax), %r14d
	orl	%edx, %r14d
	testl	%ecx, %ecx
	cmovel	%ecx, %r14d
	orl	%r13d, %r14d
	orl	(%rsi), %edx
	movl	%r14d, %eax
	notl	%eax
	testl	%eax, %edx
	je	LBB0_8
## %bb.7:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r12d, (%rax)
	jmp	LBB0_8
	.cfi_endproc
                                        ## -- End function
	.comm	_MINCORE_INCORE,4,2             ## @MINCORE_INCORE
	.comm	_L2_S_PROT_W,4,2                ## @L2_S_PROT_W
	.comm	_MINCORE_MODIFIED,4,2           ## @MINCORE_MODIFIED
	.comm	_MINCORE_MODIFIED_OTHER,4,2     ## @MINCORE_MODIFIED_OTHER
	.comm	_VPO_UNMANAGED,4,2              ## @VPO_UNMANAGED
	.comm	_PVF_REF,4,2                    ## @PVF_REF
	.comm	_MINCORE_REFERENCED,4,2         ## @MINCORE_REFERENCED
	.comm	_MINCORE_REFERENCED_OTHER,4,2   ## @MINCORE_REFERENCED_OTHER
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_mincore                   ; -- Begin function pmap_mincore
	.p2align	2
_pmap_mincore:                          ; @pmap_mincore
	.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_LOCK
	mov	x0, x19
	mov	x1, x21
	bl	_pmap_get_l2_bucket
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x22, [x0]
	mov	x0, x21
	bl	_l2pte_index
	ldr	w22, [x22, x0, lsl #2]
	mov	x0, x22
	bl	_l2pte_valid
	cbz	w0, LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _MINCORE_INCORE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MINCORE_INCORE@GOTPAGEOFF]
Lloh2:
	adrp	x9, _L2_S_PROT_W@GOTPAGE
Lloh3:
	ldr	x9, [x9, _L2_S_PROT_W@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	ldr	w9, [x9]
Lloh6:
	adrp	x10, _MINCORE_MODIFIED@GOTPAGE
Lloh7:
	ldr	x10, [x10, _MINCORE_MODIFIED@GOTPAGEOFF]
Lloh8:
	adrp	x23, _MINCORE_MODIFIED_OTHER@GOTPAGE
Lloh9:
	ldr	x23, [x23, _MINCORE_MODIFIED_OTHER@GOTPAGEOFF]
Lloh10:
	ldr	w10, [x10]
	ldr	w11, [x23]
	orr	w10, w11, w10
	tst	w9, w22
	csel	w9, wzr, w10, eq
	orr	w21, w9, w8
	mov	x0, x22
	bl	_l2pte_pa
	mov	x22, x0
	bl	_PHYS_TO_VM_PAGE
	cbz	x0, LBB0_7
; %bb.3:
	ldr	w8, [x0]
Lloh11:
	adrp	x9, _VPO_UNMANAGED@GOTPAGE
Lloh12:
	ldr	x9, [x9, _VPO_UNMANAGED@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_7
; %bb.4:
	ldr	w8, [x0, #4]
Lloh14:
	adrp	x9, _PVF_REF@GOTPAGE
Lloh15:
	ldr	x9, [x9, _PVF_REF@GOTPAGEOFF]
Lloh16:
	adrp	x10, _MINCORE_REFERENCED@GOTPAGE
Lloh17:
	ldr	x10, [x10, _MINCORE_REFERENCED@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
Lloh19:
	ldr	w10, [x10]
Lloh20:
	adrp	x11, _MINCORE_REFERENCED_OTHER@GOTPAGE
Lloh21:
	ldr	x11, [x11, _MINCORE_REFERENCED_OTHER@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	orr	w10, w11, w10
	tst	w9, w8
	csel	w8, wzr, w10, eq
	orr	w21, w8, w21
	ldr	w8, [x23]
	orr	w8, w8, w11
	bics	wzr, w8, w21
	b.eq	LBB0_7
; %bb.5:
	str	w22, [x20]
	b	LBB0_7
LBB0_6:
	mov	w21, #0
LBB0_7:
	mov	x0, x19
	bl	_PMAP_UNLOCK
	mov	x0, x21
	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 AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh10
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh18
	.cfi_endproc
                                        ; -- End function
	.comm	_MINCORE_INCORE,4,2             ; @MINCORE_INCORE
	.comm	_L2_S_PROT_W,4,2                ; @L2_S_PROT_W
	.comm	_MINCORE_MODIFIED,4,2           ; @MINCORE_MODIFIED
	.comm	_MINCORE_MODIFIED_OTHER,4,2     ; @MINCORE_MODIFIED_OTHER
	.comm	_VPO_UNMANAGED,4,2              ; @VPO_UNMANAGED
	.comm	_PVF_REF,4,2                    ; @PVF_REF
	.comm	_MINCORE_REFERENCED,4,2         ; @MINCORE_REFERENCED
	.comm	_MINCORE_REFERENCED_OTHER,4,2   ; @MINCORE_REFERENCED_OTHER
.subsections_via_symbols
