	.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, -56(%rbp)                 ## 8-byte Spill
	movl	%esi, %r15d
	movl	%edi, %ebx
	callq	_pmap_accessed_bit
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_pmap_modified_bit
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movl	%ebx, %edi
	callq	_pmap_valid_bit
	movl	%eax, %r12d
	movl	%ebx, %edi
	callq	_pmap_rw_bit
	movl	%eax, %r13d
	movl	%ebx, %edi
	callq	_PMAP_LOCK
	movl	%ebx, %edi
	movl	%r15d, %esi
	callq	_pmap_pde
	xorl	%r14d, %r14d
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	(%rax), %ecx
	testl	%r12d, %ecx
	je	LBB0_1
## %bb.3:
	movq	_PG_PS@GOTPCREL(%rip), %rdx
	testl	%ecx, (%rdx)
	je	LBB0_5
## %bb.4:
	movq	_PG_PS_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%ecx, %eax
	movq	_PDRMASK@GOTPCREL(%rip), %rdx
	andl	(%rdx), %r15d
	orl	%eax, %r15d
	movq	_PG_FRAME@GOTPCREL(%rip), %rax
	andl	(%rax), %r15d
	movq	_MINCORE_SUPER@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_6
LBB0_1:
	xorl	%ecx, %ecx
	xorl	%r15d, %r15d
	jmp	LBB0_6
LBB0_5:
	movq	%rax, %rdi
	movl	%r15d, %esi
	callq	_pmap_pde_to_pte
	movl	(%rax), %ecx
	movq	_PG_FRAME@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	%ecx, %r15d
LBB0_6:
	movl	%ecx, %eax
	notl	%eax
	testl	%r12d, %ecx
	je	LBB0_7
## %bb.8:
	movq	_MINCORE_INCORE@GOTPCREL(%rip), %rdx
	movl	%r14d, %esi
	orl	(%rdx), %esi
	orl	-44(%rbp), %r13d                ## 4-byte Folded Reload
	movq	_MINCORE_MODIFIED@GOTPCREL(%rip), %rdi
	movq	_MINCORE_MODIFIED_OTHER@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	movl	(%rdi), %edi
	orl	%edx, %edi
	xorl	%r14d, %r14d
	testl	%eax, %r13d
	cmovel	%edi, %r14d
	orl	%esi, %r14d
	testl	%ecx, -48(%rbp)                 ## 4-byte Folded Reload
	je	LBB0_10
## %bb.9:
	movq	_MINCORE_REFERENCED@GOTPCREL(%rip), %rcx
	movq	_MINCORE_REFERENCED_OTHER@GOTPCREL(%rip), %rsi
	orl	(%rcx), %r14d
	orl	(%rsi), %r14d
	jmp	LBB0_10
LBB0_7:
	movq	_MINCORE_MODIFIED_OTHER@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
LBB0_10:
	movq	_MINCORE_REFERENCED_OTHER@GOTPCREL(%rip), %rcx
	orl	(%rcx), %edx
	movl	%r14d, %ecx
	notl	%ecx
	testl	%ecx, %edx
	je	LBB0_13
## %bb.11:
	movq	_PG_MANAGED@GOTPCREL(%rip), %rcx
	orl	(%rcx), %r12d
	testl	%eax, %r12d
	jne	LBB0_13
## %bb.12:
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movl	%r15d, (%rax)
LBB0_13:
	movl	%ebx, %edi
	callq	_PMAP_UNLOCK
	movl	%r14d, %eax
	addq	$24, %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	_PG_PS_FRAME,4,2                ## @PG_PS_FRAME
	.comm	_PDRMASK,4,2                    ## @PDRMASK
	.comm	_PG_FRAME,4,2                   ## @PG_FRAME
	.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	_MINCORE_REFERENCED,4,2         ## @MINCORE_REFERENCED
	.comm	_MINCORE_REFERENCED_OTHER,4,2   ## @MINCORE_REFERENCED_OTHER
	.comm	_PG_MANAGED,4,2                 ## @PG_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	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	x25, x1
	mov	x19, x0
	bl	_pmap_accessed_bit
	mov	x22, x0
	mov	x0, x19
	bl	_pmap_modified_bit
	mov	x23, x0
	mov	x0, x19
	bl	_pmap_valid_bit
	mov	x21, x0
	mov	x0, x19
	bl	_pmap_rw_bit
	mov	x24, x0
	mov	x0, x19
	bl	_PMAP_LOCK
	mov	x0, x19
	mov	x1, x25
	bl	_pmap_pde
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [x0]
	tst	w8, w21
	b.eq	LBB0_4
; %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:
Lloh3:
	adrp	x9, _PG_PS_FRAME@GOTPAGE
Lloh4:
	ldr	x9, [x9, _PG_PS_FRAME@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	and	w9, w9, w8
Lloh6:
	adrp	x10, _PDRMASK@GOTPAGE
Lloh7:
	ldr	x10, [x10, _PDRMASK@GOTPAGEOFF]
Lloh8:
	ldr	w10, [x10]
	and	w10, w10, w25
Lloh9:
	adrp	x11, _PG_FRAME@GOTPAGE
Lloh10:
	ldr	x11, [x11, _PG_FRAME@GOTPAGEOFF]
	orr	w9, w10, w9
Lloh11:
	ldr	w10, [x11]
	and	w9, w9, w10
Lloh12:
	adrp	x10, _MINCORE_SUPER@GOTPAGE
Lloh13:
	ldr	x10, [x10, _MINCORE_SUPER@GOTPAGEOFF]
Lloh14:
	ldr	w25, [x10]
	b	LBB0_6
LBB0_4:
	mov	w8, #0
	mov	w9, #0
	mov	w25, #0
	b	LBB0_6
LBB0_5:
	mov	x1, x25
	bl	_pmap_pde_to_pte
	mov	w25, #0
	ldr	w8, [x0]
Lloh15:
	adrp	x9, _PG_FRAME@GOTPAGE
Lloh16:
	ldr	x9, [x9, _PG_FRAME@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	and	w9, w9, w8
LBB0_6:
Lloh18:
	adrp	x10, _MINCORE_REFERENCED_OTHER@GOTPAGE
Lloh19:
	ldr	x10, [x10, _MINCORE_REFERENCED_OTHER@GOTPAGEOFF]
	tst	w8, w21
	b.eq	LBB0_9
; %bb.7:
Lloh20:
	adrp	x11, _MINCORE_INCORE@GOTPAGE
Lloh21:
	ldr	x11, [x11, _MINCORE_INCORE@GOTPAGEOFF]
Lloh22:
	ldr	w11, [x11]
	orr	w12, w11, w25
	orr	w13, w24, w23
Lloh23:
	adrp	x11, _MINCORE_MODIFIED@GOTPAGE
Lloh24:
	ldr	x11, [x11, _MINCORE_MODIFIED@GOTPAGEOFF]
Lloh25:
	ldr	w14, [x11]
Lloh26:
	adrp	x11, _MINCORE_MODIFIED_OTHER@GOTPAGE
Lloh27:
	ldr	x11, [x11, _MINCORE_MODIFIED_OTHER@GOTPAGEOFF]
Lloh28:
	ldr	w11, [x11]
	orr	w14, w11, w14
	bics	wzr, w13, w8
	csel	w13, w14, wzr, eq
	orr	w25, w12, w13
	tst	w8, w22
	b.eq	LBB0_10
; %bb.8:
Lloh29:
	adrp	x12, _MINCORE_REFERENCED@GOTPAGE
Lloh30:
	ldr	x12, [x12, _MINCORE_REFERENCED@GOTPAGEOFF]
Lloh31:
	ldr	w12, [x12]
	ldr	w13, [x10]
	orr	w12, w12, w25
	orr	w25, w12, w13
	b	LBB0_10
LBB0_9:
Lloh32:
	adrp	x11, _MINCORE_MODIFIED_OTHER@GOTPAGE
Lloh33:
	ldr	x11, [x11, _MINCORE_MODIFIED_OTHER@GOTPAGEOFF]
Lloh34:
	ldr	w11, [x11]
LBB0_10:
	ldr	w10, [x10]
	orr	w10, w10, w11
	bics	wzr, w10, w25
	b.eq	LBB0_13
; %bb.11:
Lloh35:
	adrp	x10, _PG_MANAGED@GOTPAGE
Lloh36:
	ldr	x10, [x10, _PG_MANAGED@GOTPAGEOFF]
Lloh37:
	ldr	w10, [x10]
	orr	w10, w10, w21
	bics	wzr, w10, w8
	b.ne	LBB0_13
; %bb.12:
	str	w9, [x20]
LBB0_13:
	mov	x0, x19
	bl	_PMAP_UNLOCK
	mov	x0, x25
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.cfi_endproc
                                        ; -- End function
	.comm	_PG_PS,4,2                      ; @PG_PS
	.comm	_PG_PS_FRAME,4,2                ; @PG_PS_FRAME
	.comm	_PDRMASK,4,2                    ; @PDRMASK
	.comm	_PG_FRAME,4,2                   ; @PG_FRAME
	.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	_MINCORE_REFERENCED,4,2         ; @MINCORE_REFERENCED
	.comm	_MINCORE_REFERENCED_OTHER,4,2   ; @MINCORE_REFERENCED_OTHER
	.comm	_PG_MANAGED,4,2                 ; @PG_MANAGED
.subsections_via_symbols
