	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_map_unbusy                  ## -- Begin function vm_map_unbusy
	.p2align	4, 0x90
_vm_map_unbusy:                         ## @vm_map_unbusy
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	%rdi, %rbx
	callq	_VM_MAP_ASSERT_LOCKED
	movq	(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_KASSERT
	decq	(%rbx)
	je	LBB0_1
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
LBB0_1:
	movq	_MAP_BUSY_WAKEUP@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	testl	%edx, 8(%rbx)
	je	LBB0_2
## %bb.3:
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_vm_map_modflags
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	jmp	_wakeup                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vm_map_unbusy: not busy"

	.comm	_MAP_BUSY_WAKEUP,4,2            ## @MAP_BUSY_WAKEUP
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_map_unbusy                  ; -- Begin function vm_map_unbusy
	.p2align	2
_vm_map_unbusy:                         ; @vm_map_unbusy
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_VM_MAP_ASSERT_LOCKED
	ldr	x0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_KASSERT
	ldr	x8, [x19]
	subs	x8, x8, #1
	str	x8, [x19]
	b.eq	LBB0_2
LBB0_1:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	w8, [x19, #8]
Lloh2:
	adrp	x9, _MAP_BUSY_WAKEUP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _MAP_BUSY_WAKEUP@GOTPAGEOFF]
Lloh4:
	ldr	w2, [x9]
	tst	w2, w8
	b.eq	LBB0_1
; %bb.3:
	mov	x0, x19
	mov	w1, #0
	bl	_vm_map_modflags
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_wakeup
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vm_map_unbusy: not busy"

	.comm	_MAP_BUSY_WAKEUP,4,2            ; @MAP_BUSY_WAKEUP
.subsections_via_symbols
