	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function vm_domain_alloc_fail
_vm_domain_alloc_fail:                  ## @vm_domain_alloc_fail
	.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	%edx, %ebx
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_vm_domain_free_assert_unlocked
	leaq	4(%r15), %r12
	movq	_VM_ALLOC_COUNT_SHIFT@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	movl	%ebx, %edi
	sarl	%cl, %edi
	movl	$1, %esi
	callq	_max
	movq	%r12, %rdi
	movl	%eax, %esi
	callq	_atomic_add_int
	movq	_VM_ALLOC_WAITOK@GOTPCREL(%rip), %r12
	movq	_VM_ALLOC_WAITFAIL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	(%r12), %eax
	testl	%ebx, %eax
	je	LBB0_1
## %bb.2:
	testq	%r14, %r14
	je	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	callq	_VM_OBJECT_WUNLOCK
	movl	(%r15), %edi
	callq	_vm_wait_domain
	movq	%r14, %rdi
	callq	_VM_OBJECT_WLOCK
	andl	(%r12), %ebx
	jne	LBB0_6
	jmp	LBB0_7
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_7
LBB0_4:
	movl	(%r15), %edi
	callq	_vm_wait_domain
	andl	(%r12), %ebx
	je	LBB0_7
LBB0_6:
	movq	_EAGAIN@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
LBB0_7:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_ALLOC_COUNT_SHIFT,4,2       ## @VM_ALLOC_COUNT_SHIFT
	.comm	_VM_ALLOC_WAITOK,4,2            ## @VM_ALLOC_WAITOK
	.comm	_VM_ALLOC_WAITFAIL,4,2          ## @VM_ALLOC_WAITFAIL
	.comm	_EAGAIN,4,2                     ## @EAGAIN
	.no_dead_strip	_vm_domain_alloc_fail
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function vm_domain_alloc_fail
_vm_domain_alloc_fail:                  ; @vm_domain_alloc_fail
	.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, x2
	mov	x20, x1
	mov	x21, x0
	bl	_vm_domain_free_assert_unlocked
	add	x22, x21, #4
Lloh0:
	adrp	x8, _VM_ALLOC_COUNT_SHIFT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VM_ALLOC_COUNT_SHIFT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	asr	w0, w19, w8
	mov	w1, #1
	bl	_max
	mov	x1, x0
	mov	x0, x22
	bl	_atomic_add_int
Lloh3:
	adrp	x22, _VM_ALLOC_WAITOK@GOTPAGE
Lloh4:
	ldr	x22, [x22, _VM_ALLOC_WAITOK@GOTPAGEOFF]
	ldr	w8, [x22]
Lloh5:
	adrp	x9, _VM_ALLOC_WAITFAIL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _VM_ALLOC_WAITFAIL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	tst	w8, w19
	b.eq	LBB0_3
; %bb.1:
	cbz	x20, LBB0_4
; %bb.2:
	mov	x0, x20
	bl	_VM_OBJECT_WUNLOCK
	ldr	w0, [x21]
	bl	_vm_wait_domain
	mov	x0, x20
	bl	_VM_OBJECT_WLOCK
	b	LBB0_5
LBB0_3:
	mov	w0, #0
	b	LBB0_6
LBB0_4:
	ldr	w0, [x21]
	bl	_vm_wait_domain
LBB0_5:
	ldr	w8, [x22]
Lloh8:
	adrp	x9, _EAGAIN@GOTPAGE
Lloh9:
	ldr	x9, [x9, _EAGAIN@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w8, w19
	csel	w0, wzr, w9, eq
LBB0_6:
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_ALLOC_COUNT_SHIFT,4,2       ; @VM_ALLOC_COUNT_SHIFT
	.comm	_VM_ALLOC_WAITOK,4,2            ; @VM_ALLOC_WAITOK
	.comm	_VM_ALLOC_WAITFAIL,4,2          ; @VM_ALLOC_WAITFAIL
	.comm	_EAGAIN,4,2                     ; @EAGAIN
	.no_dead_strip	_vm_domain_alloc_fail
.subsections_via_symbols
