	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r15
	movl	%esi, %ebx
	movl	%edi, %r13d
	callq	_PMAP_LOCK
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_pmap_pte1
	movq	%rax, %rdi
	callq	_pte1_load
	movl	%eax, %r14d
	movl	%eax, %edi
	callq	_pte1_is_section
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%r14d, %edi
	callq	_pte1_pa
	movq	_PTE1_OFFSET@GOTPCREL(%rip), %rcx
	andl	(%rcx), %ebx
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_trunc_page
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	_pte1_is_managed
	movl	%eax, %r12d
	movq	_MINCORE_SUPER@GOTPCREL(%rip), %rax
	movq	_MINCORE_INCORE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	movl	%r14d, %edi
	callq	_pte1_is_dirty
	movq	_MINCORE_MODIFIED@GOTPCREL(%rip), %rdx
	movq	_MINCORE_MODIFIED_OTHER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rdx), %edx
	orl	%ecx, %edx
	xorl	%ebx, %ebx
	testq	%rax, %rax
	cmovnel	%edx, %ebx
	orl	%r15d, %ebx
	movq	_PTE1_A@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_7
LBB0_6:
	movq	_MINCORE_REFERENCED@GOTPCREL(%rip), %rax
	movq	_MINCORE_REFERENCED_OTHER@GOTPCREL(%rip), %rdx
	orl	(%rax), %ebx
	orl	(%rdx), %ebx
LBB0_7:
	movq	_MINCORE_REFERENCED_OTHER@GOTPCREL(%rip), %rax
	orl	(%rax), %ecx
	movl	%ebx, %eax
	notl	%eax
	testl	%eax, %ecx
	je	LBB0_10
## %bb.8:
	testl	%r12d, %r12d
	je	LBB0_10
## %bb.9:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	%ecx, (%rax)
	jmp	LBB0_10
LBB0_2:
	movl	%r14d, %edi
	callq	_pte1_is_link
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	movl	%r13d, %edi
	movl	%ebx, %esi
	callq	_pmap_pte2
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_pte2_load
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_pmap_pte2_release
	movl	%r14d, %edi
	callq	_pte2_pa
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	_pte2_is_managed
	movl	%eax, %r12d
	movq	_MINCORE_INCORE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movl	%r14d, %edi
	callq	_pte2_is_dirty
	movq	_MINCORE_MODIFIED@GOTPCREL(%rip), %rdx
	movq	_MINCORE_MODIFIED_OTHER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	(%rdx), %edx
	orl	%ecx, %edx
	xorl	%ebx, %ebx
	testq	%rax, %rax
	cmovnel	%edx, %ebx
	orl	%r15d, %ebx
	movq	_PTE2_A@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	jne	LBB0_6
	jmp	LBB0_7
LBB0_3:
	xorl	%ebx, %ebx
LBB0_10:
	movl	%r13d, %edi
	callq	_PMAP_UNLOCK
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_PTE1_OFFSET,4,2                ## @PTE1_OFFSET
	.comm	_MINCORE_SUPER,4,2              ## @MINCORE_SUPER
	.comm	_MINCORE_INCORE,4,2             ## @MINCORE_INCORE
	.comm	_MINCORE_MODIFIED,4,2           ## @MINCORE_MODIFIED
	.comm	_MINCORE_MODIFIED_OTHER,4,2     ## @MINCORE_MODIFIED_OTHER
	.comm	_PTE1_A,4,2                     ## @PTE1_A
	.comm	_MINCORE_REFERENCED,4,2         ## @MINCORE_REFERENCED
	.comm	_MINCORE_REFERENCED_OTHER,4,2   ## @MINCORE_REFERENCED_OTHER
	.comm	_PTE2_A,4,2                     ## @PTE2_A
.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	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x2
	mov	x21, x1
	mov	x19, x0
	bl	_PMAP_LOCK
	mov	x0, x19
	mov	x1, x21
	bl	_pmap_pte1
	bl	_pte1_load
	mov	x24, x0
	bl	_pte1_is_section
Lloh0:
	adrp	x25, _MINCORE_REFERENCED_OTHER@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MINCORE_REFERENCED_OTHER@GOTPAGEOFF]
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x24
	bl	_pte1_pa
Lloh2:
	adrp	x8, _PTE1_OFFSET@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PTE1_OFFSET@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	and	w8, w8, w21
	orr	w0, w8, w0
	bl	_trunc_page
	mov	x21, x0
	mov	x0, x24
	bl	_pte1_is_managed
	mov	x22, x0
Lloh5:
	adrp	x8, _MINCORE_SUPER@GOTPAGE
Lloh6:
	ldr	x8, [x8, _MINCORE_SUPER@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
Lloh8:
	adrp	x9, _MINCORE_INCORE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _MINCORE_INCORE@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	orr	w23, w9, w8
	mov	x0, x24
	bl	_pte1_is_dirty
Lloh11:
	adrp	x8, _MINCORE_MODIFIED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _MINCORE_MODIFIED@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x8]
Lloh14:
	adrp	x8, _MINCORE_MODIFIED_OTHER@GOTPAGE
Lloh15:
	ldr	x8, [x8, _MINCORE_MODIFIED_OTHER@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	orr	w9, w8, w9
	cmp	x0, #0
	csel	w9, wzr, w9, eq
	orr	w23, w23, w9
Lloh17:
	adrp	x9, _PTE1_A@GOTPAGE
Lloh18:
	ldr	x9, [x9, _PTE1_A@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:
	mov	x0, x24
	bl	_pte1_is_link
	cbz	x0, LBB0_8
; %bb.3:
	mov	x0, x19
	mov	x1, x21
	bl	_pmap_pte2
	mov	x21, x0
	bl	_pte2_load
	mov	x24, x0
	mov	x0, x21
	bl	_pmap_pte2_release
	mov	x0, x24
	bl	_pte2_pa
	mov	x21, x0
	mov	x0, x24
	bl	_pte2_is_managed
	mov	x22, x0
Lloh19:
	adrp	x8, _MINCORE_INCORE@GOTPAGE
Lloh20:
	ldr	x8, [x8, _MINCORE_INCORE@GOTPAGEOFF]
Lloh21:
	ldr	w23, [x8]
	mov	x0, x24
	bl	_pte2_is_dirty
Lloh22:
	adrp	x8, _MINCORE_MODIFIED@GOTPAGE
Lloh23:
	ldr	x8, [x8, _MINCORE_MODIFIED@GOTPAGEOFF]
Lloh24:
	ldr	w9, [x8]
Lloh25:
	adrp	x8, _MINCORE_MODIFIED_OTHER@GOTPAGE
Lloh26:
	ldr	x8, [x8, _MINCORE_MODIFIED_OTHER@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	orr	w9, w8, w9
	cmp	x0, #0
	csel	w9, wzr, w9, eq
	orr	w23, w9, w23
Lloh28:
	adrp	x9, _PTE2_A@GOTPAGE
Lloh29:
	ldr	x9, [x9, _PTE2_A@GOTPAGEOFF]
LBB0_4:
	ldr	w9, [x9]
	tst	w9, w24
	b.eq	LBB0_6
; %bb.5:
Lloh30:
	adrp	x9, _MINCORE_REFERENCED@GOTPAGE
Lloh31:
	ldr	x9, [x9, _MINCORE_REFERENCED@GOTPAGEOFF]
Lloh32:
	ldr	w9, [x9]
	ldr	w10, [x25]
	orr	w9, w9, w23
	orr	w23, w9, w10
LBB0_6:
	ldr	w9, [x25]
	orr	w8, w9, w8
	bic	w8, w8, w23
	cmp	w8, #0
	ccmp	w22, #0, #4, ne
	b.eq	LBB0_9
; %bb.7:
	str	w21, [x20]
	b	LBB0_9
LBB0_8:
	mov	w23, #0
LBB0_9:
	mov	x0, x19
	bl	_PMAP_UNLOCK
	mov	x0, x23
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_PTE1_OFFSET,4,2                ; @PTE1_OFFSET
	.comm	_MINCORE_SUPER,4,2              ; @MINCORE_SUPER
	.comm	_MINCORE_INCORE,4,2             ; @MINCORE_INCORE
	.comm	_MINCORE_MODIFIED,4,2           ; @MINCORE_MODIFIED
	.comm	_MINCORE_MODIFIED_OTHER,4,2     ; @MINCORE_MODIFIED_OTHER
	.comm	_PTE1_A,4,2                     ; @PTE1_A
	.comm	_MINCORE_REFERENCED,4,2         ; @MINCORE_REFERENCED
	.comm	_MINCORE_REFERENCED_OTHER,4,2   ; @MINCORE_REFERENCED_OTHER
	.comm	_PTE2_A,4,2                     ; @PTE2_A
.subsections_via_symbols
