	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_map_entry_unwire
_vm_map_entry_unwire:                   ## @vm_map_entry_unwire
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	callq	_VM_MAP_ASSERT_LOCKED
	xorl	%edi, %edi
	cmpq	$0, (%rbx)
	setg	%dil
	movq	%rbx, %rsi
	callq	_KASSERT
	movq	24(%rbx), %rdx
	movq	32(%rbx), %rsi
	movq	%rdx, %r15
	subq	%rsi, %r15
	movq	_MAP_ENTRY_USER_WIRED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 8(%rbx)
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_atop
	movl	%eax, %edi
	callq	_vm_map_wire_user_count_sub
	movq	24(%rbx), %rdx
	movq	32(%rbx), %rsi
LBB0_2:
	movl	(%r14), %edi
	callq	_pmap_unwire
	movl	12(%rbx), %esi
	movl	16(%rbx), %edi
	movq	_PQ_ACTIVE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r15, %rdx
	callq	_vm_object_unwire
	movq	$0, (%rbx)
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MAP_ENTRY_USER_WIRED,4,2       ## @MAP_ENTRY_USER_WIRED
	.comm	_PQ_ACTIVE,4,2                  ## @PQ_ACTIVE
	.no_dead_strip	_vm_map_entry_unwire
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vm_map_entry_unwire
_vm_map_entry_unwire:                   ; @vm_map_entry_unwire
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	mov	x20, x0
	bl	_VM_MAP_ASSERT_LOCKED
	ldr	x8, [x19]
	cmp	x8, #0
	cset	w0, gt
	mov	x1, x19
	bl	_KASSERT
	ldp	x2, x1, [x19, #24]
	sub	x21, x2, x1
	ldr	w8, [x19, #8]
Lloh0:
	adrp	x9, _MAP_ENTRY_USER_WIRED@GOTPAGE
Lloh1:
	ldr	x9, [x9, _MAP_ENTRY_USER_WIRED@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_atop
	bl	_vm_map_wire_user_count_sub
	ldp	x2, x1, [x19, #24]
LBB0_2:
	ldr	w0, [x20]
	bl	_pmap_unwire
	ldp	w1, w0, [x19, #12]
Lloh3:
	adrp	x8, _PQ_ACTIVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _PQ_ACTIVE@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	x2, x21
	bl	_vm_object_unwire
	str	xzr, [x19]
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_MAP_ENTRY_USER_WIRED,4,2       ; @MAP_ENTRY_USER_WIRED
	.comm	_PQ_ACTIVE,4,2                  ; @PQ_ACTIVE
	.no_dead_strip	_vm_map_entry_unwire
.subsections_via_symbols
