	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_alloc_freelist_domain  ## -- Begin function vm_page_alloc_freelist_domain
	.p2align	4, 0x90
_vm_page_alloc_freelist_domain:         ## @vm_page_alloc_freelist_domain
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r12d
	movl	%esi, %r14d
	movl	%edi, %r15d
	callq	_VM_DOMAIN
	movq	%rax, %rbx
	xorl	%eax, %eax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	jmp	LBB0_1
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	xorl	%esi, %esi
	movl	%r12d, %edx
	callq	_vm_domain_alloc_fail
	testq	%rax, %rax
	je	LBB0_10
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	movl	%r12d, %esi
	movl	$1, %edx
	callq	_vm_domain_allocate
	testq	%rax, %rax
	je	LBB0_4
## %bb.2:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	callq	_vm_domain_free_lock
	movq	_VM_FREEPOOL_DIRECT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movl	%r15d, %edi
	movl	%r14d, %esi
	xorl	%ecx, %ecx
	callq	_vm_phys_alloc_freelist_pages
	movq	%rax, %r13
	movq	%rbx, %rdi
	callq	_vm_domain_free_unlock
	testq	%r13, %r13
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_1 Depth=1
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_vm_domain_freecnt_inc
	jmp	LBB0_4
LBB0_5:
	movq	%r13, %rdi
	callq	_vm_page_dequeue
	movq	%r13, %rdi
	callq	_vm_page_alloc_check
	movq	$0, 16(%r13)
	movq	_VM_ALLOC_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r12d, %eax
	je	LBB0_7
## %bb.6:
	movq	_PG_ZERO@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_7:
	andl	%eax, 8(%r13)
	movq	_VM_ALLOC_WIRED@GOTPCREL(%rip), %rax
	testl	%r12d, (%rax)
	je	LBB0_9
## %bb.8:
	movl	$1, %edi
	callq	_vm_wire_add
	movl	$1, (%r13)
LBB0_9:
	movq	_VPO_UNMANAGED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 4(%r13)
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
LBB0_10:
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_FREEPOOL_DIRECT,4,2         ## @VM_FREEPOOL_DIRECT
	.comm	_VM_ALLOC_ZERO,4,2              ## @VM_ALLOC_ZERO
	.comm	_PG_ZERO,4,2                    ## @PG_ZERO
	.comm	_VM_ALLOC_WIRED,4,2             ## @VM_ALLOC_WIRED
	.comm	_VPO_UNMANAGED,4,2              ## @VPO_UNMANAGED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_page_alloc_freelist_domain  ; -- Begin function vm_page_alloc_freelist_domain
	.p2align	2
_vm_page_alloc_freelist_domain:         ; @vm_page_alloc_freelist_domain
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_VM_DOMAIN
	mov	x22, x0
Lloh0:
	adrp	x24, _VM_FREEPOOL_DIRECT@GOTPAGE
Lloh1:
	ldr	x24, [x24, _VM_FREEPOOL_DIRECT@GOTPAGEOFF]
	b	LBB0_2
LBB0_1:                                 ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	mov	x1, #0
	mov	x2, x19
	bl	_vm_domain_alloc_fail
	cbz	x0, LBB0_5
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x19
	mov	w2, #1
	bl	_vm_domain_allocate
	cbz	x0, LBB0_1
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	bl	_vm_domain_free_lock
	ldr	w2, [x24]
	mov	x0, x21
	mov	x1, x20
	mov	w3, #0
	bl	_vm_phys_alloc_freelist_pages
	mov	x23, x0
	mov	x0, x22
	bl	_vm_domain_free_unlock
	cbnz	x23, LBB0_6
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x0, x22
	mov	w1, #1
	bl	_vm_domain_freecnt_inc
	b	LBB0_1
LBB0_5:
	mov	x23, #0
	b	LBB0_9
LBB0_6:
	mov	x0, x23
	bl	_vm_page_dequeue
	mov	x0, x23
	bl	_vm_page_alloc_check
	str	xzr, [x23, #16]
Lloh2:
	adrp	x8, _VM_ALLOC_ZERO@GOTPAGE
Lloh3:
	ldr	x8, [x8, _VM_ALLOC_ZERO@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _PG_ZERO@GOTPAGE
Lloh6:
	ldr	x9, [x9, _PG_ZERO@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w8, w19
	csel	w8, wzr, w9, eq
	ldr	w9, [x23, #8]
	and	w8, w8, w9
	str	w8, [x23, #8]
Lloh8:
	adrp	x8, _VM_ALLOC_WIRED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _VM_ALLOC_WIRED@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_8
; %bb.7:
	mov	w19, #1
	mov	w0, #1
	bl	_vm_wire_add
	str	w19, [x23]
LBB0_8:
Lloh11:
	adrp	x8, _VPO_UNMANAGED@GOTPAGE
Lloh12:
	ldr	x8, [x8, _VPO_UNMANAGED@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	str	w8, [x23, #4]
LBB0_9:
	mov	x0, x23
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_FREEPOOL_DIRECT,4,2         ; @VM_FREEPOOL_DIRECT
	.comm	_VM_ALLOC_ZERO,4,2              ; @VM_ALLOC_ZERO
	.comm	_PG_ZERO,4,2                    ; @PG_ZERO
	.comm	_VM_ALLOC_WIRED,4,2             ; @VM_ALLOC_WIRED
	.comm	_VPO_UNMANAGED,4,2              ; @VPO_UNMANAGED
.subsections_via_symbols
