	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function pmap_remove_ptes
_pmap_remove_ptes:                      ## @pmap_remove_ptes
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %r15
	movq	%r8, -64(%rbp)                  ## 8-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %rbx
	movl	%edi, %r14d
	movq	_MA_OWNED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_PMAP_LOCK_ASSERT
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movl	%r14d, %edi
	callq	_pmap_global_bit
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_pmap_pde_to_pte
	xorl	%r12d, %r12d
	cmpq	%r13, %rbx
	jne	LBB0_2
## %bb.1:
	movq	%rbx, %r15
	cmpq	%r13, %r15
	jne	LBB0_13
	jmp	LBB0_14
LBB0_2:
	movq	%rax, %r14
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	xorl	%r12d, %r12d
	movq	%r13, %r15
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r13, %r15
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	addq	$4, %r14
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	cmpq	%r13, %rbx
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %eax
	testl	%eax, %eax
	je	LBB0_4
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r13, %r15
	movq	%r15, %rcx
	cmoveq	%rbx, %rcx
	testl	%esi, %eax
	cmovneq	%rcx, %r15
	movl	$1, %eax
	cmovel	%eax, %r12d
	movl	(%rdx), %ecx
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%r14, %rsi
	movq	%rbx, %rdx
	movq	-72(%rbp), %r9                  ## 8-byte Reload
	callq	_pmap_remove_pte
	testq	%rax, %rax
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpq	%r13, %r15
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_pmap_invalidate_range
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	jmp	LBB0_6
LBB0_10:
	movq	%r13, %rbx
	cmpq	%r13, %r15
	je	LBB0_14
LBB0_13:
	movl	-48(%rbp), %edi                 ## 4-byte Reload
	movq	%r15, %rsi
	movq	%rbx, %rdx
	callq	_pmap_invalidate_range
LBB0_14:
	movl	%r12d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_11:
	movq	_PAGE_SIZE@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	cmpq	%r13, %r15
	jne	LBB0_13
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_MA_OWNED,4,2                   ## @MA_OWNED
	.comm	_PAGE_SIZE,8,3                  ## @PAGE_SIZE
	.no_dead_strip	_pmap_remove_ptes
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function pmap_remove_ptes
_pmap_remove_ptes:                      ; @pmap_remove_ptes
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x23, x5
	mov	x24, x4
	mov	x25, x3
	mov	x21, x2
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, _MA_OWNED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MA_OWNED@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_PMAP_LOCK_ASSERT
	mov	x0, x20
	bl	_pmap_global_bit
	mov	x27, x0
	mov	x0, x25
	mov	x1, x19
	bl	_pmap_pde_to_pte
	cmp	x19, x21
	b.ne	LBB0_2
; %bb.1:
	mov	w22, #0
	mov	x26, x19
	cmp	x26, x21
	b.ne	LBB0_10
	b	LBB0_11
LBB0_2:
	mov	x28, x0
	mov	w22, #0
	mov	x26, x21
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	cmp	x26, x21
	csel	x9, x19, x26, eq
	tst	w8, w27
	csel	x26, x26, x9, eq
	csinc	w22, w22, wzr, ne
	ldr	w3, [x25]
	mov	x0, x20
	mov	x1, x28
	mov	x2, x19
	mov	x4, x24
	mov	x5, x23
	bl	_pmap_remove_pte
	cbnz	x0, LBB0_12
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x28, x28, #4
Lloh3:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	add	x19, x8, x19
	cmp	x19, x21
	b.eq	LBB0_9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x28]
	cbnz	w8, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	cmp	x26, x21
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x0, x20
	mov	x1, x26
	mov	x2, x19
	bl	_pmap_invalidate_range
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	x26, x21
	b	LBB0_4
LBB0_9:
	mov	x19, x21
	cmp	x26, x21
	b.eq	LBB0_11
LBB0_10:
	mov	x0, x20
	mov	x1, x26
	mov	x2, x19
	bl	_pmap_invalidate_range
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_12:
Lloh6:
	adrp	x8, _PAGE_SIZE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _PAGE_SIZE@GOTPAGEOFF]
Lloh8:
	ldr	x8, [x8]
	add	x19, x8, x19
	cmp	x26, x21
	b.ne	LBB0_10
	b	LBB0_11
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MA_OWNED,4,2                   ; @MA_OWNED
	.comm	_PAGE_SIZE,8,3                  ; @PAGE_SIZE
	.no_dead_strip	_pmap_remove_ptes
.subsections_via_symbols
