	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_wait_doms                   ## -- Begin function vm_wait_doms
	.p2align	4, 0x90
_vm_wait_doms:                          ## @vm_wait_doms
	.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	%rdi, %r14
	movq	_curproc@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	_pageproc@GOTPCREL(%rip), %rax
	movq	(%rax), %rbx
	movq	_vm_domainset_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	cmpq	%rbx, %r15
	jne	LBB0_3
## %bb.1:
	movq	_vm_pageproc_waiters@GOTPCREL(%rip), %rdi
	incl	(%rdi)
	movq	_PVM@GOTPCREL(%rip), %rax
	movq	_PDROP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_vm_domainset_lock@GOTPCREL(%rip), %rsi
	leaq	L_.str(%rip), %rcx
	movl	$1, %r8d
	jmp	LBB0_2
LBB0_3:
	movq	%r14, %rdi
	callq	_vm_page_count_min_set
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_vm_min_waiters@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_PVM@GOTPCREL(%rip), %rax
	movq	_PDROP@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	orl	(%rax), %edx
	movq	_vm_min_domains@GOTPCREL(%rip), %rdi
	movq	_vm_domainset_lock@GOTPCREL(%rip), %rsi
	leaq	L_.str.1(%rip), %rcx
	xorl	%r8d, %r8d
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_msleep                         ## TAILCALL
LBB0_5:
	movq	_vm_domainset_lock@GOTPCREL(%rip), %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_curproc,8,3                    ## @curproc
	.comm	_pageproc,8,3                   ## @pageproc
	.comm	_vm_domainset_lock,4,2          ## @vm_domainset_lock
	.comm	_vm_pageproc_waiters,4,2        ## @vm_pageproc_waiters
	.comm	_PVM,4,2                        ## @PVM
	.comm	_PDROP,4,2                      ## @PDROP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pageprocwait"

	.comm	_vm_min_waiters,4,2             ## @vm_min_waiters
	.comm	_vm_min_domains,4,2             ## @vm_min_domains
L_.str.1:                               ## @.str.1
	.asciz	"vmwait"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_wait_doms                   ; -- Begin function vm_wait_doms
	.p2align	2
_vm_wait_doms:                          ; @vm_wait_doms
	.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, x0
Lloh0:
	adrp	x8, _curproc@GOTPAGE
Lloh1:
	ldr	x8, [x8, _curproc@GOTPAGEOFF]
Lloh2:
	ldr	x20, [x8]
Lloh3:
	adrp	x8, _pageproc@GOTPAGE
Lloh4:
	ldr	x8, [x8, _pageproc@GOTPAGEOFF]
Lloh5:
	ldr	x21, [x8]
Lloh6:
	adrp	x0, _vm_domainset_lock@GOTPAGE
Lloh7:
	ldr	x0, [x0, _vm_domainset_lock@GOTPAGEOFF]
	bl	_mtx_lock
	cmp	x20, x21
	b.ne	LBB0_2
; %bb.1:
Lloh8:
	adrp	x0, _vm_pageproc_waiters@GOTPAGE
Lloh9:
	ldr	x0, [x0, _vm_pageproc_waiters@GOTPAGEOFF]
	ldr	w8, [x0]
	add	w8, w8, #1
	str	w8, [x0]
Lloh10:
	adrp	x8, _PVM@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PVM@GOTPAGEOFF]
Lloh12:
	adrp	x9, _PDROP@GOTPAGE
Lloh13:
	ldr	x9, [x9, _PDROP@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
Lloh15:
	ldr	w9, [x9]
Lloh16:
	adrp	x1, _vm_domainset_lock@GOTPAGE
Lloh17:
	ldr	x1, [x1, _vm_domainset_lock@GOTPAGEOFF]
Lloh18:
	adrp	x3, l_.str@PAGE
Lloh19:
	add	x3, x3, l_.str@PAGEOFF
	orr	w2, w9, w8
	mov	w4, #1
	b	LBB0_4
LBB0_2:
	mov	x0, x19
	bl	_vm_page_count_min_set
	cbz	x0, LBB0_5
; %bb.3:
Lloh20:
	adrp	x8, _vm_min_waiters@GOTPAGE
Lloh21:
	ldr	x8, [x8, _vm_min_waiters@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh22:
	adrp	x8, _PVM@GOTPAGE
Lloh23:
	ldr	x8, [x8, _PVM@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
Lloh25:
	adrp	x9, _PDROP@GOTPAGE
Lloh26:
	ldr	x9, [x9, _PDROP@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
Lloh28:
	adrp	x0, _vm_min_domains@GOTPAGE
Lloh29:
	ldr	x0, [x0, _vm_min_domains@GOTPAGEOFF]
Lloh30:
	adrp	x1, _vm_domainset_lock@GOTPAGE
Lloh31:
	ldr	x1, [x1, _vm_domainset_lock@GOTPAGEOFF]
Lloh32:
	adrp	x3, l_.str.1@PAGE
Lloh33:
	add	x3, x3, l_.str.1@PAGEOFF
	orr	w2, w9, w8
	mov	w4, #0
LBB0_4:
	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
LBB0_5:
Lloh34:
	adrp	x0, _vm_domainset_lock@GOTPAGE
Lloh35:
	ldr	x0, [x0, _vm_domainset_lock@GOTPAGEOFF]
	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	_mtx_unlock
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh14
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_curproc,8,3                    ; @curproc
	.comm	_pageproc,8,3                   ; @pageproc
	.comm	_vm_domainset_lock,4,2          ; @vm_domainset_lock
	.comm	_vm_pageproc_waiters,4,2        ; @vm_pageproc_waiters
	.comm	_PVM,4,2                        ; @PVM
	.comm	_PDROP,4,2                      ; @PDROP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pageprocwait"

	.comm	_vm_min_waiters,4,2             ; @vm_min_waiters
	.comm	_vm_min_domains,4,2             ; @vm_min_domains
l_.str.1:                               ; @.str.1
	.asciz	"vmwait"

.subsections_via_symbols
