	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_object_populate             ## -- Begin function vm_object_populate
	.p2align	4, 0x90
_vm_object_populate:                    ## @vm_object_populate
	.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	%rdx, %r14
	movq	%rsi, %rbx
	movl	%edi, %r12d
	callq	_VM_OBJECT_ASSERT_WLOCKED
	cmpq	%r14, %rbx
	jge	LBB0_10
## %bb.1:
	leaq	-48(%rbp), %r13
	movq	_VM_PAGER_OK@GOTPCREL(%rip), %r15
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	_VM_ALLOC_NORMAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r13, %rdi
	movl	%r12d, %esi
	movq	%rbx, %rdx
	callq	_vm_page_grab_valid
	cmpl	(%r15), %eax
	jne	LBB0_5
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rbx
	cmpq	%rbx, %r14
	jne	LBB0_2
## %bb.4:
	movq	%r14, %rbx
LBB0_5:
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	cmpq	%rsi, %rbx
	jle	LBB0_10
## %bb.6:
	movl	%r12d, %edi
	callq	_vm_page_lookup
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	je	LBB0_10
## %bb.7:
	movq	_listq@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rbx, (%rax)
	jge	LBB0_10
## %bb.9:                               ##   in Loop: Header=BB0_8 Depth=1
	movq	%rax, %rdi
	callq	_vm_page_xunbusy
	movq	-48(%rbp), %rdi
	movl	(%r15), %esi
	callq	_TAILQ_NEXT
	movq	%rax, -48(%rbp)
	testq	%rax, %rax
	jne	LBB0_8
LBB0_10:
	xorl	%eax, %eax
	cmpq	%r14, %rbx
	sete	%al
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_VM_ALLOC_NORMAL,4,2            ## @VM_ALLOC_NORMAL
	.comm	_VM_PAGER_OK,4,2                ## @VM_PAGER_OK
	.comm	_listq,4,2                      ## @listq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_vm_object_populate             ; -- Begin function vm_object_populate
	.p2align	2
_vm_object_populate:                    ; @vm_object_populate
	.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
	mov	x19, x2
	mov	x21, x1
	mov	x22, x0
	bl	_VM_OBJECT_ASSERT_WLOCKED
	cmp	x21, x19
	b.ge	LBB0_11
; %bb.1:
Lloh0:
	adrp	x23, _VM_ALLOC_NORMAL@GOTPAGE
Lloh1:
	ldr	x23, [x23, _VM_ALLOC_NORMAL@GOTPAGEOFF]
Lloh2:
	adrp	x24, _VM_PAGER_OK@GOTPAGE
Lloh3:
	ldr	x24, [x24, _VM_PAGER_OK@GOTPAGEOFF]
	mov	x20, x21
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x23]
	add	x0, sp, #8
	mov	x1, x22
	mov	x2, x20
	bl	_vm_page_grab_valid
	ldr	w8, [x24]
	cmp	w0, w8
	b.ne	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x20, x20, #1
	cmp	x19, x20
	b.ne	LBB0_2
; %bb.4:
	mov	x20, x19
LBB0_5:
	cmp	x20, x21
	b.le	LBB0_10
; %bb.6:
	mov	x0, x22
	mov	x1, x21
	bl	_vm_page_lookup
	str	x0, [sp, #8]
	cbz	x0, LBB0_10
; %bb.7:
Lloh4:
	adrp	x21, _listq@GOTPAGE
Lloh5:
	ldr	x21, [x21, _listq@GOTPAGEOFF]
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x0]
	cmp	x8, x20
	b.ge	LBB0_10
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	bl	_vm_page_xunbusy
	ldr	x0, [sp, #8]
	ldr	w1, [x21]
	bl	_TAILQ_NEXT
	str	x0, [sp, #8]
	cbnz	x0, LBB0_8
LBB0_10:
	mov	x21, x20
LBB0_11:
	cmp	x21, x19
	cset	w0, eq
	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
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_VM_ALLOC_NORMAL,4,2            ; @VM_ALLOC_NORMAL
	.comm	_VM_PAGER_OK,4,2                ; @VM_PAGER_OK
	.comm	_listq,4,2                      ; @listq
.subsections_via_symbols
