	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_domain_allocate             ## -- Begin function vm_domain_allocate
	.p2align	4, 0x90
_vm_domain_allocate:                    ## @vm_domain_allocate
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	_VM_ALLOC_CLASS_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %esi
	movq	_curproc@GOTPCREL(%rip), %rax
	movq	(%rax), %r9
	movq	_pageproc@GOTPCREL(%rip), %r8
	movq	_VM_ALLOC_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	cmpl	%ebx, %esi
	movq	_VM_ALLOC_SYSTEM@GOTPCREL(%rip), %rax
	movl	(%rax), %r10d
	movl	%r10d, %ecx
	cmovel	%esi, %ecx
	cmpq	(%r8), %r9
	cmovnel	%esi, %ecx
	xorl	%eax, %eax
	cmpl	%ebx, %ecx
	jne	LBB0_2
## %bb.1:
	xorl	%r15d, %r15d
	jmp	LBB0_3
LBB0_2:
	xorl	%esi, %esi
	cmpl	%r10d, %ecx
	setne	%sil
	movq	(%rdi,%rsi,8), %r15
LBB0_3:
	movslq	%edx, %r14
	addq	%r14, %r15
	movq	16(%rdi), %rbx
	movq	%rbx, -48(%rbp)
	cmpq	%r15, %rbx
	jl	LBB0_16
## %bb.4:
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	leaq	16(%rdi), %r12
	leaq	-48(%rbp), %r13
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	subq	%r14, %rbx
	movq	%r12, %rdi
	movq	%r13, %rsi
	movq	%rbx, %rdx
	callq	_atomic_fcmpset_int
	testq	%rax, %rax
	jne	LBB0_8
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movq	-48(%rbp), %rbx
	cmpq	%r15, %rbx
	jge	LBB0_5
## %bb.7:
	xorl	%eax, %eax
	jmp	LBB0_16
LBB0_8:
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_vm_paging_needed
	testq	%rax, %rax
	je	LBB0_11
## %bb.9:
	movq	-48(%rbp), %rsi
	movq	%r14, %rdi
	callq	_vm_paging_needed
	testq	%rax, %rax
	jne	LBB0_11
## %bb.10:
	movl	40(%r14), %edi
	callq	_pagedaemon_wakeup
LBB0_11:
	movq	-48(%rbp), %rdx
	movq	24(%r14), %rcx
	cmpq	%rcx, %rdx
	jl	LBB0_13
## %bb.12:
	cmpq	%rcx, %rbx
	jl	LBB0_15
LBB0_13:
	movq	32(%r14), %rcx
	movl	$1, %eax
	cmpq	%rcx, %rdx
	jl	LBB0_16
## %bb.14:
	cmpq	%rcx, %rbx
	jge	LBB0_16
LBB0_15:
	movq	%r14, %rdi
	callq	_vm_domain_set
	movl	$1, %eax
LBB0_16:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_ALLOC_CLASS_MASK,4,2        ## @VM_ALLOC_CLASS_MASK
	.comm	_curproc,8,3                    ## @curproc
	.comm	_pageproc,8,3                   ## @pageproc
	.comm	_VM_ALLOC_INTERRUPT,4,2         ## @VM_ALLOC_INTERRUPT
	.comm	_VM_ALLOC_SYSTEM,4,2            ## @VM_ALLOC_SYSTEM
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_domain_allocate             ; -- Begin function vm_domain_allocate
	.p2align	2
_vm_domain_allocate:                    ; @vm_domain_allocate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
                                        ; kill: def $w2 killed $w2 def $x2
	mov	x19, x0
Lloh0:
	adrp	x8, _VM_ALLOC_CLASS_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _VM_ALLOC_CLASS_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w9, w8, w1
Lloh3:
	adrp	x8, _curproc@GOTPAGE
Lloh4:
	ldr	x8, [x8, _curproc@GOTPAGEOFF]
Lloh5:
	adrp	x10, _pageproc@GOTPAGE
Lloh6:
	ldr	x10, [x10, _pageproc@GOTPAGEOFF]
Lloh7:
	ldr	x8, [x8]
Lloh8:
	ldr	x10, [x10]
Lloh9:
	adrp	x11, _VM_ALLOC_INTERRUPT@GOTPAGE
Lloh10:
	ldr	x11, [x11, _VM_ALLOC_INTERRUPT@GOTPAGEOFF]
Lloh11:
	ldr	w11, [x11]
	cmp	w9, w11
	ccmp	x8, x10, #0, ne
Lloh12:
	adrp	x8, _VM_ALLOC_SYSTEM@GOTPAGE
Lloh13:
	ldr	x8, [x8, _VM_ALLOC_SYSTEM@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	csel	w9, w9, w8, ne
	cmp	w9, w11
	b.ne	LBB0_2
; %bb.1:
	mov	x9, #0
	b	LBB0_3
LBB0_2:
	cmp	w9, w8
	cset	w8, ne
	ldr	x9, [x19, w8, uxtw #3]
LBB0_3:
	sxtw	x22, w2
	mov	x21, x19
	ldr	x8, [x21, #16]!
	str	x8, [sp, #8]
	add	x23, x9, x22
	cmp	x8, x23
	b.lt	LBB0_6
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	sub	x20, x8, x22
	add	x1, sp, #8
	mov	x0, x21
	mov	x2, x20
	bl	_atomic_fcmpset_int
	cbnz	x0, LBB0_8
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [sp, #8]
	cmp	x8, x23
	b.ge	LBB0_4
LBB0_6:
	mov	w0, #0
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_vm_paging_needed
	cbz	x0, LBB0_11
; %bb.9:
	ldr	x1, [sp, #8]
	mov	x0, x19
	bl	_vm_paging_needed
	cbnz	x0, LBB0_11
; %bb.10:
	ldr	w0, [x19, #40]
	bl	_pagedaemon_wakeup
LBB0_11:
	ldr	x8, [sp, #8]
	ldr	x9, [x19, #24]
	cmp	x8, x9
	ccmp	x20, x9, #0, ge
	b.lt	LBB0_14
; %bb.12:
	ldr	x9, [x19, #32]
	mov	w0, #1
	cmp	x8, x9
	b.lt	LBB0_7
; %bb.13:
	cmp	x20, x9
	b.ge	LBB0_7
LBB0_14:
	mov	x0, x19
	bl	_vm_domain_set
	mov	w0, #1
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh7
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_ALLOC_CLASS_MASK,4,2        ; @VM_ALLOC_CLASS_MASK
	.comm	_curproc,8,3                    ; @curproc
	.comm	_pageproc,8,3                   ; @pageproc
	.comm	_VM_ALLOC_INTERRUPT,4,2         ; @VM_ALLOC_INTERRUPT
	.comm	_VM_ALLOC_SYSTEM,4,2            ; @VM_ALLOC_SYSTEM
.subsections_via_symbols
