	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_waitpfault                  ## -- Begin function vm_waitpfault
	.p2align	4, 0x90
_vm_waitpfault:                         ## @vm_waitpfault
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movl	%esi, %r14d
	movq	%rdi, %rbx
	movq	_vm_domainset_lock@GOTPCREL(%rip), %rdi
	callq	_mtx_lock
	movq	%rbx, %rdi
	callq	_vm_page_count_min_set
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_vm_min_waiters@GOTPCREL(%rip), %rax
	incl	(%rax)
	movq	_PUSER@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(%rip), %rcx
	movl	%r14d, %r8d
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_msleep                         ## TAILCALL
LBB0_2:
	movq	_vm_domainset_lock@GOTPCREL(%rip), %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_mtx_unlock                     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_vm_domainset_lock,4,2          ## @vm_domainset_lock
	.comm	_vm_min_waiters,4,2             ## @vm_min_waiters
	.comm	_vm_min_domains,4,2             ## @vm_min_domains
	.comm	_PUSER,4,2                      ## @PUSER
	.comm	_PDROP,4,2                      ## @PDROP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"pfault"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_waitpfault                  ; -- Begin function vm_waitpfault
	.p2align	2
_vm_waitpfault:                         ; @vm_waitpfault
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x0, _vm_domainset_lock@GOTPAGE
Lloh1:
	ldr	x0, [x0, _vm_domainset_lock@GOTPAGEOFF]
	bl	_mtx_lock
	mov	x0, x20
	bl	_vm_page_count_min_set
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _vm_min_waiters@GOTPAGE
Lloh3:
	ldr	x8, [x8, _vm_min_waiters@GOTPAGEOFF]
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
Lloh4:
	adrp	x8, _PUSER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PUSER@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
Lloh7:
	adrp	x9, _PDROP@GOTPAGE
Lloh8:
	ldr	x9, [x9, _PDROP@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
Lloh10:
	adrp	x0, _vm_min_domains@GOTPAGE
Lloh11:
	ldr	x0, [x0, _vm_min_domains@GOTPAGEOFF]
Lloh12:
	adrp	x1, _vm_domainset_lock@GOTPAGE
Lloh13:
	ldr	x1, [x1, _vm_domainset_lock@GOTPAGEOFF]
Lloh14:
	adrp	x3, l_.str@PAGE
Lloh15:
	add	x3, x3, l_.str@PAGEOFF
	orr	w2, w9, w8
	mov	x4, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_msleep
LBB0_2:
Lloh16:
	adrp	x0, _vm_domainset_lock@GOTPAGE
Lloh17:
	ldr	x0, [x0, _vm_domainset_lock@GOTPAGEOFF]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_mtx_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_vm_domainset_lock,4,2          ; @vm_domainset_lock
	.comm	_vm_min_waiters,4,2             ; @vm_min_waiters
	.comm	_vm_min_domains,4,2             ; @vm_min_domains
	.comm	_PUSER,4,2                      ; @PUSER
	.comm	_PDROP,4,2                      ; @PDROP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"pfault"

.subsections_via_symbols
