	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_pmap_advise                    ## -- Begin function pmap_advise
	.p2align	4, 0x90
_pmap_advise:                           ## @pmap_advise
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %ebx
	movl	%edx, %r15d
	movl	%esi, %r12d
	movl	%edi, %r14d
	movq	_MADV_DONTNEED@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	je	LBB0_2
## %bb.1:
	movq	_MADV_FREE@GOTPCREL(%rip), %rax
	cmpl	%ebx, (%rax)
	jne	LBB0_45
LBB0_2:
	movl	%r14d, %edi
	callq	_pmap_emulate_ad_bits
	testq	%rax, %rax
	jne	LBB0_45
## %bb.3:
	movl	%ebx, -84(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	_pmap_accessed_bit
	movl	%eax, -68(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	_pmap_global_bit
	movl	%eax, -88(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	_pmap_modified_bit
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movl	%r14d, %edi
	callq	_pmap_valid_bit
	movl	%eax, %r13d
	movl	%r14d, %edi
	callq	_pmap_rw_bit
	movl	%eax, %ebx
	xorl	%eax, %eax
	callq	_pmap_delayed_invl_start
	movl	%r14d, %edi
	callq	_PMAP_LOCK
	cmpl	%r15d, %r12d
	jge	LBB0_44
## %bb.4:
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	-52(%rbp), %eax                 ## 4-byte Reload
	orl	%eax, %ebx
	movl	%ebx, -92(%rbp)                 ## 4-byte Spill
	orl	-68(%rbp), %eax                 ## 4-byte Folded Reload
	movl	%r13d, -72(%rbp)                ## 4-byte Spill
	movl	%r14d, -44(%rbp)                ## 4-byte Spill
	movl	%r15d, -48(%rbp)                ## 4-byte Spill
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	jmp	LBB0_8
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_8 Depth=1
	movq	_NBPML4@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	movq	_PML4MASK@GOTPCREL(%rip), %rcx
LBB0_6:                                 ##   in Loop: Header=BB0_8 Depth=1
	movl	(%rcx), %ebx
	notl	%ebx
	andl	%eax, %ebx
	cmpl	%r12d, %ebx
	cmovll	%r15d, %ebx
LBB0_7:                                 ##   in Loop: Header=BB0_8 Depth=1
	movl	%ebx, %r12d
	cmpl	%r15d, %ebx
	jge	LBB0_42
LBB0_8:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_26 Depth 2
	movl	%r14d, %edi
	movl	%r12d, %esi
	callq	_pmap_pml4e
	testl	%r13d, (%rax)
	je	LBB0_5
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_pmap_pml4e_to_pdpe
	testl	%r13d, (%rax)
	je	LBB0_18
## %bb.10:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_NBPDR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%r12d, %ecx
	movq	_PDRMASK@GOTPCREL(%rip), %rdx
	movl	(%rdx), %ebx
	notl	%ebx
	andl	%ecx, %ebx
	cmpl	%r12d, %ebx
	cmovll	%r15d, %ebx
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_pmap_pdpe_to_pde
	movl	(%rax), %r15d
	testl	%r13d, %r15d
	je	LBB0_19
## %bb.11:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %r14
	movq	_PG_PS@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_20
## %bb.12:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_PG_MANAGED@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_19
## %bb.13:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	$0, -80(%rbp)
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rsi
	movl	%r12d, %edx
	leaq	-80(%rbp), %rcx
	callq	_pmap_demote_pde_locked
	testl	%eax, %eax
	je	LBB0_39
## %bb.14:                              ##   in Loop: Header=BB0_8 Depth=1
	movq	_PG_W@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	cmpl	%r15d, %ebx
	cmovll	%ebx, %r15d
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	xorl	%edi, %edi
	cmpl	%r12d, %r15d
	setge	%dil
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_pmap_pde_to_pte
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	xorl	%edi, %edi
	movl	(%rax), %ecx
	andl	%r13d, %ecx
	setne	%dil
	leaq	L_.str.1(%rip), %rsi
	callq	_KASSERT
	movl	(%r14), %ecx
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movl	%r15d, %edx
	xorl	%r8d, %r8d
	leaq	-80(%rbp), %r9
	callq	_pmap_remove_pte
	movl	$1, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_16:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-80(%rbp), %rdi
	testq	%rdi, %rdi
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_21
## %bb.17:                              ##   in Loop: Header=BB0_8 Depth=1
	callq	_rw_wunlock
	jmp	LBB0_21
	.p2align	4, 0x90
LBB0_18:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	_NBPDP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%r12d, %eax
	movq	_PDPMASK@GOTPCREL(%rip), %rcx
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_19:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	jmp	LBB0_7
LBB0_20:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-48(%rbp), %r15d                ## 4-byte Reload
LBB0_21:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%r15d, %ebx
	cmovgel	%r15d, %ebx
	movq	%r14, %rdi
	movl	%r12d, %esi
	callq	_pmap_pde_to_pte
	cmpl	%ebx, %r12d
	jne	LBB0_23
## %bb.22:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r12d, %edx
	jmp	LBB0_37
LBB0_23:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %r14
	movl	%ebx, %r15d
	movq	-64(%rbp), %rdx                 ## 8-byte Reload
	jmp	LBB0_26
	.p2align	4, 0x90
LBB0_24:                                ##   in Loop: Header=BB0_26 Depth=2
	movl	%ebx, %r15d
LBB0_25:                                ##   in Loop: Header=BB0_26 Depth=2
	addq	$4, %r14
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	addl	(%rax), %r12d
	cmpl	%ebx, %r12d
	je	LBB0_36
LBB0_26:                                ##   Parent Loop BB0_8 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movl	(%r14), %edi
	movq	_PG_MANAGED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	orl	%r13d, %ecx
	movl	%edi, %eax
	notl	%eax
	testl	%eax, %ecx
	jne	LBB0_33
## %bb.27:                              ##   in Loop: Header=BB0_26 Depth=2
	testl	%eax, -92(%rbp)                 ## 4-byte Folded Reload
	jne	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_26 Depth=2
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-84(%rbp), %eax                 ## 4-byte Reload
	movq	_MADV_DONTNEED@GOTPCREL(%rip), %rcx
	cmpl	%eax, (%rcx)
	jne	LBB0_31
## %bb.29:                              ##   in Loop: Header=BB0_26 Depth=2
	movq	_PG_FRAME@GOTPCREL(%rip), %rax
	andl	(%rax), %edi
	movq	%rdx, %r13
	callq	_PHYS_TO_VM_PAGE
	movl	%eax, %edi
	callq	_vm_page_dirty
	movq	%r13, %rdx
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_31
	.p2align	4, 0x90
LBB0_30:                                ##   in Loop: Header=BB0_26 Depth=2
	movl	-68(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, %esi
	testl	%eax, %edi
	je	LBB0_33
LBB0_31:                                ##   in Loop: Header=BB0_26 Depth=2
	movq	%rdx, %r13
	movq	%r14, %rdi
	callq	_atomic_clear_long
	movl	-88(%rbp), %eax                 ## 4-byte Reload
	testl	%eax, (%r14)
	je	LBB0_35
## %bb.32:                              ##   in Loop: Header=BB0_26 Depth=2
	cmpl	%ebx, %r15d
	cmovel	%r12d, %r15d
	movq	%r13, %rdx
	movl	-72(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_33:                                ##   in Loop: Header=BB0_26 Depth=2
	cmpl	%ebx, %r15d
	je	LBB0_24
## %bb.34:                              ##   in Loop: Header=BB0_26 Depth=2
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	movl	%r15d, %esi
	movq	%rdx, %r15
	movl	%r12d, %edx
	callq	_pmap_invalidate_range
	movq	%r15, %rdx
	jmp	LBB0_24
LBB0_35:                                ##   in Loop: Header=BB0_26 Depth=2
	movl	$1, %edx
	movl	-72(%rbp), %r13d                ## 4-byte Reload
	jmp	LBB0_25
LBB0_36:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	%rdx, -64(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r12d
	movl	%ebx, %edx
	movl	-48(%rbp), %r15d                ## 4-byte Reload
LBB0_37:                                ##   in Loop: Header=BB0_8 Depth=1
	cmpl	%ebx, %r12d
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	je	LBB0_7
## %bb.38:                              ##   in Loop: Header=BB0_8 Depth=1
	movl	%r14d, %edi
	movl	%r12d, %esi
	callq	_pmap_invalidate_range
	jmp	LBB0_7
LBB0_39:                                ##   in Loop: Header=BB0_8 Depth=1
	movq	-80(%rbp), %rdi
	testq	%rdi, %rdi
	movl	-48(%rbp), %r15d                ## 4-byte Reload
	je	LBB0_41
## %bb.40:                              ##   in Loop: Header=BB0_8 Depth=1
	callq	_rw_wunlock
LBB0_41:                                ##   in Loop: Header=BB0_8 Depth=1
	movl	-44(%rbp), %r14d                ## 4-byte Reload
	jmp	LBB0_7
LBB0_42:
	cmpl	$0, -64(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_44
## %bb.43:
	movl	%r14d, %edi
	callq	_pmap_invalidate_all
LBB0_44:
	movl	%r14d, %edi
	callq	_PMAP_UNLOCK
	xorl	%eax, %eax
	callq	_pmap_delayed_invl_finish
LBB0_45:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MADV_DONTNEED,4,2              ## @MADV_DONTNEED
	.comm	_MADV_FREE,4,2                  ## @MADV_FREE
	.comm	_NBPML4,4,2                     ## @NBPML4
	.comm	_PML4MASK,4,2                   ## @PML4MASK
	.comm	_NBPDP,4,2                      ## @NBPDP
	.comm	_PDPMASK,4,2                    ## @PDPMASK
	.comm	_NBPDR,4,2                      ## @NBPDR
	.comm	_PDRMASK,4,2                    ## @PDRMASK
	.comm	_PG_PS,4,2                      ## @PG_PS
	.comm	_PG_MANAGED,4,2                 ## @PG_MANAGED
	.comm	_PG_W,4,2                       ## @PG_W
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pmap_advise: no address gap"

L_.str.1:                               ## @.str.1
	.asciz	"pmap_advise: invalid PTE"

	.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_advise                    ; -- Begin function pmap_advise
	.p2align	2
_pmap_advise:                           ; @pmap_advise
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
Lloh0:
	adrp	x8, _MADV_DONTNEED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MADV_DONTNEED@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
Lloh3:
	adrp	x9, _MADV_FREE@GOTPAGE
Lloh4:
	ldr	x9, [x9, _MADV_FREE@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	cmp	w8, w3
	ccmp	w9, w3, #4, ne
	b.ne	LBB0_38
; %bb.1:
	mov	x20, x3
	mov	x21, x2
	mov	x25, x1
	mov	x19, x0
	bl	_pmap_emulate_ad_bits
	cbnz	x0, LBB0_38
; %bb.2:
	mov	x0, x19
	bl	_pmap_accessed_bit
	mov	x23, x0
	mov	x0, x19
	bl	_pmap_global_bit
	mov	x27, x0
	mov	x0, x19
	bl	_pmap_modified_bit
	mov	x26, x0
	mov	x0, x19
	bl	_pmap_valid_bit
	mov	x24, x0
	mov	x0, x19
	bl	_pmap_rw_bit
	mov	x22, x0
	bl	_pmap_delayed_invl_start
	mov	x0, x19
	bl	_PMAP_LOCK
	cmp	w25, w21
	b.ge	LBB0_37
; %bb.3:
	str	w27, [sp, #16]                  ; 4-byte Folded Spill
	mov	w27, #0
	orr	w8, w22, w26
	str	w8, [sp, #20]                   ; 4-byte Folded Spill
	orr	w8, w26, w23
	stp	w23, w8, [sp, #8]               ; 8-byte Folded Spill
Lloh6:
	adrp	x23, _PG_MANAGED@GOTPAGE
Lloh7:
	ldr	x23, [x23, _PG_MANAGED@GOTPAGEOFF]
	b	LBB0_7
LBB0_4:                                 ;   in Loop: Header=BB0_7 Depth=1
Lloh8:
	adrp	x8, _NBPML4@GOTPAGE
Lloh9:
	ldr	x8, [x8, _NBPML4@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
Lloh11:
	adrp	x9, _PML4MASK@GOTPAGE
Lloh12:
	ldr	x9, [x9, _PML4MASK@GOTPAGEOFF]
LBB0_5:                                 ;   in Loop: Header=BB0_7 Depth=1
	ldr	w9, [x9]
	add	w8, w8, w25
	bic	w8, w8, w9
	cmp	w8, w25
	csel	w22, w21, w8, lt
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=1
	mov	x25, x22
	cmp	w22, w21
	b.ge	LBB0_35
LBB0_7:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_24 Depth 2
	mov	x0, x19
	mov	x1, x25
	bl	_pmap_pml4e
	ldr	w8, [x0]
	tst	w8, w24
	b.eq	LBB0_4
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x1, x25
	bl	_pmap_pml4e_to_pdpe
	ldr	w8, [x0]
	tst	w8, w24
	b.eq	LBB0_19
; %bb.9:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh13:
	adrp	x8, _NBPDR@GOTPAGE
Lloh14:
	ldr	x8, [x8, _NBPDR@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
Lloh16:
	adrp	x9, _PDRMASK@GOTPAGE
Lloh17:
	ldr	x9, [x9, _PDRMASK@GOTPAGEOFF]
Lloh18:
	ldr	w9, [x9]
	add	w8, w8, w25
	bic	w8, w8, w9
	cmp	w8, w25
	csel	w22, w21, w8, lt
	mov	x1, x25
	bl	_pmap_pdpe_to_pde
	ldr	w26, [x0]
	tst	w26, w24
	b.eq	LBB0_6
; %bb.10:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x28, x0
Lloh19:
	adrp	x8, _PG_PS@GOTPAGE
Lloh20:
	ldr	x8, [x8, _PG_PS@GOTPAGEOFF]
Lloh21:
	ldr	w8, [x8]
	tst	w8, w26
	b.eq	LBB0_17
; %bb.11:                               ;   in Loop: Header=BB0_7 Depth=1
	ldr	w8, [x23]
	tst	w8, w26
	b.eq	LBB0_6
; %bb.12:                               ;   in Loop: Header=BB0_7 Depth=1
	str	xzr, [sp, #24]
	add	x3, sp, #24
	mov	x0, x19
	mov	x1, x28
	mov	x2, x25
	bl	_pmap_demote_pde_locked
	cbz	w0, LBB0_33
; %bb.13:                               ;   in Loop: Header=BB0_7 Depth=1
Lloh22:
	adrp	x8, _PG_W@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PG_W@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w26
	b.ne	LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_7 Depth=1
	cmp	w22, w21
	csel	w8, w22, w21, lt
Lloh25:
	adrp	x9, _PAGE_SIZE@GOTPAGE
Lloh26:
	ldr	x9, [x9, _PAGE_SIZE@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	sub	w26, w8, w9
	cmp	w26, w25
	cset	w0, ge
Lloh28:
	adrp	x1, l_.str@PAGE
Lloh29:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	mov	x0, x28
	mov	x1, x26
	bl	_pmap_pde_to_pte
	mov	x27, x0
	ldr	w8, [x0]
	tst	w8, w24
	cset	w0, ne
Lloh30:
	adrp	x1, l_.str.1@PAGE
Lloh31:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_KASSERT
	ldr	w3, [x28]
	add	x5, sp, #24
	mov	x0, x19
	mov	x1, x27
	mov	x2, x26
	mov	x4, #0
	bl	_pmap_remove_pte
	mov	w27, #1
LBB0_15:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_7 Depth=1
	bl	_rw_wunlock
LBB0_17:                                ;   in Loop: Header=BB0_7 Depth=1
	cmp	w22, w21
	csel	w22, w22, w21, lt
	mov	x0, x28
	mov	x1, x25
	bl	_pmap_pde_to_pte
	cmp	w25, w22
	b.ne	LBB0_20
; %bb.18:                               ;   in Loop: Header=BB0_7 Depth=1
	mov	x2, x25
	cmp	w25, w22
	b.eq	LBB0_6
	b	LBB0_32
LBB0_19:                                ;   in Loop: Header=BB0_7 Depth=1
Lloh32:
	adrp	x8, _NBPDP@GOTPAGE
Lloh33:
	ldr	x8, [x8, _NBPDP@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
Lloh35:
	adrp	x9, _PDPMASK@GOTPAGE
Lloh36:
	ldr	x9, [x9, _PDPMASK@GOTPAGEOFF]
	b	LBB0_5
LBB0_20:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x28, x0
	mov	x26, x22
	b	LBB0_24
LBB0_21:                                ;   in Loop: Header=BB0_24 Depth=2
	ldr	w9, [sp, #8]                    ; 4-byte Folded Reload
	mov	x1, x9
	tst	w8, w9
	b.eq	LBB0_28
LBB0_22:                                ;   in Loop: Header=BB0_24 Depth=2
	mov	x0, x28
	bl	_atomic_clear_long
	ldr	w8, [x28]
	cmp	w26, w22
	csel	w9, w25, w26, eq
	ldr	w10, [sp, #16]                  ; 4-byte Folded Reload
	tst	w8, w10
	csel	w26, w26, w9, eq
	mov	w8, #1
	csel	w27, w8, w27, eq
LBB0_23:                                ;   in Loop: Header=BB0_24 Depth=2
	add	x28, x28, #4
Lloh37:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh38:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh39:
	ldr	w8, [x8]
	add	w25, w25, w8
	cmp	w25, w22
	b.eq	LBB0_31
LBB0_24:                                ;   Parent Loop BB0_7 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	w8, [x28]
	ldr	w9, [x23]
	orr	w9, w9, w24
	bics	wzr, w9, w8
	b.ne	LBB0_28
; %bb.25:                               ;   in Loop: Header=BB0_24 Depth=2
	ldr	w9, [sp, #20]                   ; 4-byte Folded Reload
	bics	wzr, w9, w8
	b.ne	LBB0_21
; %bb.26:                               ;   in Loop: Header=BB0_24 Depth=2
Lloh40:
	adrp	x9, _MADV_DONTNEED@GOTPAGE
Lloh41:
	ldr	x9, [x9, _MADV_DONTNEED@GOTPAGEOFF]
Lloh42:
	ldr	w9, [x9]
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	cmp	w9, w20
	b.ne	LBB0_22
; %bb.27:                               ;   in Loop: Header=BB0_24 Depth=2
Lloh43:
	adrp	x9, _PG_FRAME@GOTPAGE
Lloh44:
	ldr	x9, [x9, _PG_FRAME@GOTPAGEOFF]
Lloh45:
	ldr	w9, [x9]
	and	w0, w9, w8
	bl	_PHYS_TO_VM_PAGE
	bl	_vm_page_dirty
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	b	LBB0_22
LBB0_28:                                ;   in Loop: Header=BB0_24 Depth=2
	cmp	w26, w22
	b.eq	LBB0_30
; %bb.29:                               ;   in Loop: Header=BB0_24 Depth=2
	mov	x0, x19
	mov	x1, x26
	mov	x2, x25
	bl	_pmap_invalidate_range
LBB0_30:                                ;   in Loop: Header=BB0_24 Depth=2
	mov	x26, x22
	b	LBB0_23
LBB0_31:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x25, x26
	mov	x2, x22
	cmp	w25, w22
	b.eq	LBB0_6
LBB0_32:                                ;   in Loop: Header=BB0_7 Depth=1
	mov	x0, x19
	mov	x1, x25
	bl	_pmap_invalidate_range
	b	LBB0_6
LBB0_33:                                ;   in Loop: Header=BB0_7 Depth=1
	ldr	x0, [sp, #24]
	cbz	x0, LBB0_6
; %bb.34:                               ;   in Loop: Header=BB0_7 Depth=1
	bl	_rw_wunlock
	b	LBB0_6
LBB0_35:
	cbz	w27, LBB0_37
; %bb.36:
	mov	x0, x19
	bl	_pmap_invalidate_all
LBB0_37:
	mov	x0, x19
	bl	_PMAP_UNLOCK
	bl	_pmap_delayed_invl_finish
LBB0_38:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGot	Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.cfi_endproc
                                        ; -- End function
	.comm	_MADV_DONTNEED,4,2              ; @MADV_DONTNEED
	.comm	_MADV_FREE,4,2                  ; @MADV_FREE
	.comm	_NBPML4,4,2                     ; @NBPML4
	.comm	_PML4MASK,4,2                   ; @PML4MASK
	.comm	_NBPDP,4,2                      ; @NBPDP
	.comm	_PDPMASK,4,2                    ; @PDPMASK
	.comm	_NBPDR,4,2                      ; @NBPDR
	.comm	_PDRMASK,4,2                    ; @PDRMASK
	.comm	_PG_PS,4,2                      ; @PG_PS
	.comm	_PG_MANAGED,4,2                 ; @PG_MANAGED
	.comm	_PG_W,4,2                       ; @PG_W
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pmap_advise: no address gap"

l_.str.1:                               ; @.str.1
	.asciz	"pmap_advise: invalid PTE"

	.comm	_PG_FRAME,4,2                   ; @PG_FRAME
.subsections_via_symbols
