	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_map_delete                  ## -- Begin function vm_map_delete
	.p2align	4, 0x90
_vm_map_delete:                         ## @vm_map_delete
	.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, %r14
	movq	%rsi, %rbx
	movq	%rdi, %r15
	callq	_VM_MAP_ASSERT_LOCKED
	cmpq	%r14, %rbx
	jne	LBB0_1
LBB0_20:
	movq	_KERN_SUCCESS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_1:
	leaq	-56(%rbp), %rdx
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_vm_map_lookup_entry
	movq	-56(%rbp), %r13
	testl	%eax, %eax
	je	LBB0_3
	.p2align	4, 0x90
LBB0_4:
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_vm_map_clip_start
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_3:
	movq	%r13, %rdi
	callq	_vm_map_entry_succ
	movq	%rax, %r13
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	callq	_vm_map_pmap
	movq	_kernel_pmap@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_12
## %bb.8:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	%r13, %rdi
	callq	_vm_map_entry_system_wired_count
	testq	%rax, %rax
	je	LBB0_12
## %bb.9:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rbx
	movl	8(%r13), %eax
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r14, %rdx
	callq	_vm_map_clip_end
	movq	%r13, %rdi
	callq	_vm_map_entry_succ
	movq	%rax, %rbx
	cmpq	$0, 16(%r13)
	je	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_vm_map_entry_unwire
LBB0_14:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_MAP_ENTRY_IS_SUB_MAP@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%r13)
	jne	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_5 Depth=1
	cmpq	$0, 32(%r13)
	je	LBB0_17
LBB0_16:                                ##   in Loop: Header=BB0_5 Depth=1
	movl	16(%r15), %edi
	movq	(%r13), %rsi
	movq	24(%r13), %rdx
	callq	_pmap_remove
LBB0_17:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	24(%r13), %rax
	cmpq	8(%r15), %rax
	jne	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_5 Depth=1
	movq	(%r13), %rax
	movq	%rax, 8(%r15)
LBB0_19:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_vm_map_entry_delete
	movq	%rbx, %r13
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rbx
	cmpq	%r14, %rbx
	jge	LBB0_20
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	8(%r13), %eax
	movq	_MAP_ENTRY_IN_TRANSITION@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
LBB0_10:                                ##   in Loop: Header=BB0_5 Depth=1
	movq	_MAP_ENTRY_NEEDS_WAKEUP@GOTPCREL(%rip), %rcx
	orl	(%rcx), %eax
	movl	%eax, 8(%r13)
	movl	(%r15), %r12d
	movq	%r15, %rdi
	xorl	%esi, %esi
	callq	_vm_map_unlock_and_wait
	movq	%r15, %rdi
	callq	_vm_map_lock
	incl	%r12d
	cmpl	(%r15), %r12d
	je	LBB0_5
## %bb.11:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	leaq	-48(%rbp), %rdx
	callq	_vm_map_lookup_entry
	movq	-48(%rbp), %r13
	testl	%eax, %eax
	jne	LBB0_4
	jmp	LBB0_3
	.cfi_endproc
                                        ## -- End function
	.comm	_KERN_SUCCESS,4,2               ## @KERN_SUCCESS
	.comm	_MAP_ENTRY_IN_TRANSITION,4,2    ## @MAP_ENTRY_IN_TRANSITION
	.comm	_kernel_pmap,8,3                ## @kernel_pmap
	.comm	_MAP_ENTRY_NEEDS_WAKEUP,4,2     ## @MAP_ENTRY_NEEDS_WAKEUP
	.comm	_MAP_ENTRY_IS_SUB_MAP,4,2       ## @MAP_ENTRY_IS_SUB_MAP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_map_delete                  ; -- Begin function vm_map_delete
	.p2align	2
_vm_map_delete:                         ; @vm_map_delete
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_VM_MAP_ASSERT_LOCKED
	cmp	x22, x19
	b.eq	LBB0_23
; %bb.1:
	add	x2, sp, #8
	mov	x0, x20
	mov	x1, x22
	bl	_vm_map_lookup_entry
	ldr	x21, [sp, #8]
	cbz	w0, LBB0_3
; %bb.2:
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_vm_map_clip_start
	b	LBB0_4
LBB0_3:
	mov	x0, x21
	bl	_vm_map_entry_succ
	mov	x21, x0
LBB0_4:
	ldr	x22, [x21]
	cmp	x22, x19
	b.ge	LBB0_23
; %bb.5:
Lloh0:
	adrp	x23, _MAP_ENTRY_IN_TRANSITION@GOTPAGE
Lloh1:
	ldr	x23, [x23, _MAP_ENTRY_IN_TRANSITION@GOTPAGEOFF]
Lloh2:
	adrp	x24, _kernel_pmap@GOTPAGE
Lloh3:
	ldr	x24, [x24, _kernel_pmap@GOTPAGEOFF]
Lloh4:
	adrp	x25, _MAP_ENTRY_IS_SUB_MAP@GOTPAGE
Lloh5:
	ldr	x25, [x25, _MAP_ENTRY_IS_SUB_MAP@GOTPAGEOFF]
Lloh6:
	adrp	x26, _MAP_ENTRY_NEEDS_WAKEUP@GOTPAGE
Lloh7:
	ldr	x26, [x26, _MAP_ENTRY_NEEDS_WAKEUP@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_vm_map_entry_delete
	mov	x21, x22
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	x22, [x21]
	cmp	x22, x19
	b.ge	LBB0_23
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x21, #8]
	ldr	w9, [x23]
	tst	w9, w8
	b.eq	LBB0_12
LBB0_9:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldr	w9, [x26]
	orr	w8, w8, w9
	str	w8, [x21, #8]
	ldr	w27, [x20]
	mov	x0, x20
	mov	w1, #0
	bl	_vm_map_unlock_and_wait
	mov	x0, x20
	bl	_vm_map_lock
	add	w8, w27, #1
	ldr	w9, [x20]
	cmp	w8, w9
	b.eq	LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x2, sp
	mov	x0, x20
	mov	x1, x22
	bl	_vm_map_lookup_entry
	ldr	x21, [sp]
	cbz	w0, LBB0_22
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x22
	bl	_vm_map_clip_start
	b	LBB0_7
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	bl	_vm_map_pmap
	ldr	x8, [x24]
	cmp	x0, x8
	b.eq	LBB0_15
; %bb.13:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_vm_map_entry_system_wired_count
	cbz	x0, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x22, [x21]
	ldr	w8, [x21, #8]
	b	LBB0_9
LBB0_15:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	x1, x21
	mov	x2, x19
	bl	_vm_map_clip_end
	mov	x0, x21
	bl	_vm_map_entry_succ
	mov	x22, x0
	ldr	x8, [x21, #16]
	cbz	x8, LBB0_17
; %bb.16:                               ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x20
	mov	x1, x21
	bl	_vm_map_entry_unwire
LBB0_17:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w8, [x21, #8]
	ldr	w9, [x25]
	tst	w9, w8
	b.ne	LBB0_19
; %bb.18:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x21, #32]
	cbz	x8, LBB0_20
LBB0_19:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	w0, [x20, #16]
	ldr	x1, [x21]
	ldr	x2, [x21, #24]
	bl	_pmap_remove
LBB0_20:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x21, #24]
	ldr	x9, [x20, #8]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.21:                               ;   in Loop: Header=BB0_8 Depth=1
	ldr	x8, [x21]
	str	x8, [x20, #8]
	b	LBB0_6
LBB0_22:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
	bl	_vm_map_entry_succ
	mov	x21, x0
	b	LBB0_7
LBB0_23:
Lloh8:
	adrp	x8, _KERN_SUCCESS@GOTPAGE
Lloh9:
	ldr	x8, [x8, _KERN_SUCCESS@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_KERN_SUCCESS,4,2               ; @KERN_SUCCESS
	.comm	_MAP_ENTRY_IN_TRANSITION,4,2    ; @MAP_ENTRY_IN_TRANSITION
	.comm	_kernel_pmap,8,3                ; @kernel_pmap
	.comm	_MAP_ENTRY_NEEDS_WAKEUP,4,2     ; @MAP_ENTRY_NEEDS_WAKEUP
	.comm	_MAP_ENTRY_IS_SUB_MAP,4,2       ; @MAP_ENTRY_IS_SUB_MAP
.subsections_via_symbols
