	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__vm_map_unlock_and_wait        ## -- Begin function _vm_map_unlock_and_wait
	.p2align	4, 0x90
__vm_map_unlock_and_wait:               ## @_vm_map_unlock_and_wait
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, %r12
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_VM_MAP_UNLOCK_CONSISTENT
	movq	_map_sleep_mtx@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	cmpq	$0, 16(%rbx)
	je	LBB0_2
## %bb.1:
	leaq	8(%rbx), %rdi
	xorl	%esi, %esi
	movq	%r12, %rdx
	movl	%r15d, %ecx
	callq	_mtx_unlock_flags_
	jmp	LBB0_3
LBB0_2:
	leaq	4(%rbx), %rdi
	movq	%r12, %rsi
	movl	%r15d, %edx
	callq	_sx_xunlock_
LBB0_3:
	movq	_PDROP@GOTPCREL(%rip), %rax
	movq	_PVM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_map_sleep_mtx@GOTPCREL(%rip), %rsi
	leaq	L_.str(%rip), %rcx
	movq	%rbx, %rdi
	movl	%r14d, %r8d
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msleep                         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_map_sleep_mtx,4,2              ## @map_sleep_mtx
	.comm	_PDROP,4,2                      ## @PDROP
	.comm	_PVM,4,2                        ## @PVM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"vmmaps"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	__vm_map_unlock_and_wait        ; -- Begin function _vm_map_unlock_and_wait
	.p2align	2
__vm_map_unlock_and_wait:               ; @_vm_map_unlock_and_wait
	.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	x21, x3
	mov	x22, x2
	mov	x19, x1
	mov	x20, x0
	bl	_VM_MAP_UNLOCK_CONSISTENT
Lloh0:
	adrp	x0, _map_sleep_mtx@GOTPAGE
Lloh1:
	ldr	x0, [x0, _map_sleep_mtx@GOTPAGEOFF]
	bl	_mtx_lock
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_2
; %bb.1:
	add	x0, x20, #8
	mov	w1, #0
	mov	x2, x22
	mov	x3, x21
	bl	_mtx_unlock_flags_
	b	LBB0_3
LBB0_2:
	add	x0, x20, #4
	mov	x1, x22
	mov	x2, x21
	bl	_sx_xunlock_
LBB0_3:
Lloh2:
	adrp	x8, _PDROP@GOTPAGE
Lloh3:
	ldr	x8, [x8, _PDROP@GOTPAGEOFF]
Lloh4:
	adrp	x9, _PVM@GOTPAGE
Lloh5:
	ldr	x9, [x9, _PVM@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	ldr	w9, [x9]
Lloh8:
	adrp	x1, _map_sleep_mtx@GOTPAGE
Lloh9:
	ldr	x1, [x1, _map_sleep_mtx@GOTPAGEOFF]
Lloh10:
	adrp	x3, l_.str@PAGE
Lloh11:
	add	x3, x3, l_.str@PAGEOFF
	orr	w2, w9, w8
	mov	x0, x20
	mov	x4, 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
	b	_msleep
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_map_sleep_mtx,4,2              ; @map_sleep_mtx
	.comm	_PDROP,4,2                      ; @PDROP
	.comm	_PVM,4,2                        ; @PVM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"vmmaps"

.subsections_via_symbols
