	.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, %r15d
	movl	%edi, %r12d
	callq	_PMAP_LOCK
	movl	%r12d, %edi
	movl	%r15d, %esi
	callq	_pmap_l2
	xorl	%ebx, %ebx
	testq	%rax, %rax
	je	LBB0_9
## %bb.1:
	movq	%rax, %r14
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, %rdi
	callq	_pmap_load
	movq	_PTE_V@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.2:
	movl	%eax, %r13d
	movq	_PTE_RWX@GOTPCREL(%rip), %rax
	testl	%r13d, (%rax)
	je	LBB0_4
## %bb.3:
	movl	%r13d, %edi
	callq	_PTE_TO_PHYS
	movq	_L2_OFFSET@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r15d
	orl	%eax, %r15d
	movq	_MINCORE_INCORE@GOTPCREL(%rip), %rcx
	movq	_MINCORE_SUPER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%rcx), %eax
	jmp	LBB0_6
LBB0_4:
	movq	%r14, %rdi
	movl	%r15d, %esi
	movq	%rcx, %r14
	callq	_pmap_l2_to_l3
	movq	%rax, %rdi
	callq	_pmap_load
	testl	%eax, (%r14)
	je	LBB0_9
## %bb.5:
	movl	%eax, %r13d
	movl	%eax, %edi
	callq	_PTE_TO_PHYS
	movq	_L3_OFFSET@GOTPCREL(%rip), %rcx
	andl	(%rcx), %r15d
	orl	%eax, %r15d
	movq	_MINCORE_INCORE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_6:
	movq	_PTE_D@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	%r13d, %ecx
	movq	_MINCORE_MODIFIED@GOTPCREL(%rip), %rdx
	movq	_MINCORE_MODIFIED_OTHER@GOTPCREL(%rip), %rsi
	movl	(%rsi), %esi
	movl	(%rdx), %edx
	orl	%esi, %edx
	testl	%ecx, %ecx
	cmovel	%ecx, %edx
	orl	%eax, %edx
	movq	_PTE_A@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r13d, %eax
	movq	_MINCORE_REFERENCED@GOTPCREL(%rip), %rcx
	movq	_MINCORE_REFERENCED_OTHER@GOTPCREL(%rip), %rdi
	movl	(%rdi), %edi
	movl	(%rcx), %ebx
	orl	%edi, %ebx
	testl	%eax, %eax
	cmovel	%eax, %ebx
	orl	%edx, %ebx
	orl	%esi, %edi
	movl	%ebx, %eax
	notl	%eax
	testl	%eax, %edi
	je	LBB0_9
## %bb.7:
	movq	_PTE_SW_MANAGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%eax, %r13d
	cmpl	%eax, %r13d
	jne	LBB0_9
## %bb.8:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
LBB0_9:
	movl	%r12d, %edi
	callq	_PMAP_UNLOCK
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTE_V,4,2                      ## @PTE_V
	.comm	_PTE_RWX,4,2                    ## @PTE_RWX
	.comm	_L2_OFFSET,4,2                  ## @L2_OFFSET
	.comm	_MINCORE_INCORE,4,2             ## @MINCORE_INCORE
	.comm	_MINCORE_SUPER,4,2              ## @MINCORE_SUPER
	.comm	_L3_OFFSET,4,2                  ## @L3_OFFSET
	.comm	_PTE_D,4,2                      ## @PTE_D
	.comm	_MINCORE_MODIFIED,4,2           ## @MINCORE_MODIFIED
	.comm	_MINCORE_MODIFIED_OTHER,4,2     ## @MINCORE_MODIFIED_OTHER
	.comm	_PTE_A,4,2                      ## @PTE_A
	.comm	_MINCORE_REFERENCED,4,2         ## @MINCORE_REFERENCED
	.comm	_MINCORE_REFERENCED_OTHER,4,2   ## @MINCORE_REFERENCED_OTHER
	.comm	_PTE_SW_MANAGED,4,2             ## @PTE_SW_MANAGED
.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	x22, x1
	mov	x19, x0
	bl	_PMAP_LOCK
	mov	x0, x19
	mov	x1, x22
	bl	_pmap_l2
	cbz	x0, LBB0_8
; %bb.1:
	mov	x23, x0
	bl	_pmap_load
Lloh0:
	adrp	x24, _PTE_V@GOTPAGE
Lloh1:
	ldr	x24, [x24, _PTE_V@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.2:
	mov	x21, x0
Lloh2:
	adrp	x8, _PTE_RWX@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PTE_RWX@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w0
	b.eq	LBB0_4
; %bb.3:
	mov	x0, x21
	bl	_PTE_TO_PHYS
Lloh5:
	adrp	x8, _L2_OFFSET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _L2_OFFSET@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	and	w8, w8, w22
Lloh8:
	adrp	x9, _MINCORE_INCORE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MINCORE_INCORE@GOTPAGEOFF]
	orr	w8, w8, w0
Lloh10:
	ldr	w9, [x9]
Lloh11:
	adrp	x10, _MINCORE_SUPER@GOTPAGE
Lloh12:
	ldr	x10, [x10, _MINCORE_SUPER@GOTPAGEOFF]
Lloh13:
	ldr	w10, [x10]
	orr	w9, w10, w9
	b	LBB0_6
LBB0_4:
	mov	x0, x23
	mov	x1, x22
	bl	_pmap_l2_to_l3
	bl	_pmap_load
	ldr	w8, [x24]
	tst	w8, w0
	b.eq	LBB0_8
; %bb.5:
	mov	x21, x0
	bl	_PTE_TO_PHYS
Lloh14:
	adrp	x8, _L3_OFFSET@GOTPAGE
Lloh15:
	ldr	x8, [x8, _L3_OFFSET@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	and	w8, w8, w22
	orr	w8, w8, w0
Lloh17:
	adrp	x9, _MINCORE_INCORE@GOTPAGE
Lloh18:
	ldr	x9, [x9, _MINCORE_INCORE@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
LBB0_6:
Lloh20:
	adrp	x10, _PTE_D@GOTPAGE
Lloh21:
	ldr	x10, [x10, _PTE_D@GOTPAGEOFF]
Lloh22:
	adrp	x11, _MINCORE_MODIFIED@GOTPAGE
Lloh23:
	ldr	x11, [x11, _MINCORE_MODIFIED@GOTPAGEOFF]
Lloh24:
	ldr	w10, [x10]
Lloh25:
	ldr	w11, [x11]
Lloh26:
	adrp	x12, _MINCORE_MODIFIED_OTHER@GOTPAGE
Lloh27:
	ldr	x12, [x12, _MINCORE_MODIFIED_OTHER@GOTPAGEOFF]
Lloh28:
	ldr	w12, [x12]
	orr	w11, w12, w11
	tst	w10, w21
	csel	w10, wzr, w11, eq
	orr	w9, w10, w9
Lloh29:
	adrp	x10, _PTE_A@GOTPAGE
Lloh30:
	ldr	x10, [x10, _PTE_A@GOTPAGEOFF]
Lloh31:
	ldr	w10, [x10]
Lloh32:
	adrp	x11, _MINCORE_REFERENCED@GOTPAGE
Lloh33:
	ldr	x11, [x11, _MINCORE_REFERENCED@GOTPAGEOFF]
Lloh34:
	ldr	w11, [x11]
Lloh35:
	adrp	x13, _MINCORE_REFERENCED_OTHER@GOTPAGE
Lloh36:
	ldr	x13, [x13, _MINCORE_REFERENCED_OTHER@GOTPAGEOFF]
Lloh37:
	ldr	w13, [x13]
	orr	w11, w13, w11
	tst	w10, w21
	csel	w10, wzr, w11, eq
	orr	w22, w9, w10
Lloh38:
	adrp	x9, _PTE_SW_MANAGED@GOTPAGE
Lloh39:
	ldr	x9, [x9, _PTE_SW_MANAGED@GOTPAGEOFF]
Lloh40:
	ldr	w9, [x9]
	and	w10, w9, w21
	orr	w11, w13, w12
	bic	w11, w11, w22
	cmp	w11, #0
	ccmp	w10, w9, #0, ne
	b.ne	LBB0_9
; %bb.7:
	str	w8, [x20]
	b	LBB0_9
LBB0_8:
	mov	w22, #0
LBB0_9:
	mov	x0, x19
	bl	_PMAP_UNLOCK
	mov	x0, x22
	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	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh24
	.cfi_endproc
                                        ; -- End function
	.comm	_PTE_V,4,2                      ; @PTE_V
	.comm	_PTE_RWX,4,2                    ; @PTE_RWX
	.comm	_L2_OFFSET,4,2                  ; @L2_OFFSET
	.comm	_MINCORE_INCORE,4,2             ; @MINCORE_INCORE
	.comm	_MINCORE_SUPER,4,2              ; @MINCORE_SUPER
	.comm	_L3_OFFSET,4,2                  ; @L3_OFFSET
	.comm	_PTE_D,4,2                      ; @PTE_D
	.comm	_MINCORE_MODIFIED,4,2           ; @MINCORE_MODIFIED
	.comm	_MINCORE_MODIFIED_OTHER,4,2     ; @MINCORE_MODIFIED_OTHER
	.comm	_PTE_A,4,2                      ; @PTE_A
	.comm	_MINCORE_REFERENCED,4,2         ; @MINCORE_REFERENCED
	.comm	_MINCORE_REFERENCED_OTHER,4,2   ; @MINCORE_REFERENCED_OTHER
	.comm	_PTE_SW_MANAGED,4,2             ; @PTE_SW_MANAGED
.subsections_via_symbols
