	.file	"extr_vm_object.c_vm_object_populate.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	vm_object_populate
	.type	vm_object_populate, @function
vm_object_populate:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, edi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, r14
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	VM_OBJECT_ASSERT_WLOCKED@PLT
	cmp	r14, rbp
	jge	.L2
	mov	r13, rsp
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	add	rbx, 1
	cmp	rbp, rbx
	je	.L5
.L4:
	mov	ecx, DWORD PTR VM_ALLOC_NORMAL[rip]
	mov	rdx, rbx
	mov	esi, r12d
	mov	rdi, r13
	call	vm_page_grab_valid@PLT
	cmp	DWORD PTR VM_PAGER_OK[rip], eax
	je	.L17
	cmp	r14, rbx
	jl	.L5
.L2:
	xor	eax, eax
	cmp	rbx, rbp
	sete	al
	mov	rcx, QWORD PTR 8[rsp]
	xor	rcx, QWORD PTR fs:40
	jne	.L18
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	edi, r12d
	mov	rsi, r14
	call	vm_page_lookup@PLT
	mov	QWORD PTR [rsp], rax
	mov	rdi, rax
	test	rax, rax
	jne	.L6
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	call	vm_page_xunbusy@PLT
	mov	rdi, QWORD PTR [rsp]
	mov	esi, DWORD PTR listq[rip]
	call	TAILQ_NEXT@PLT
	mov	QWORD PTR [rsp], rax
	mov	rdi, rax
	test	rax, rax
	je	.L2
.L6:
	cmp	QWORD PTR [rdi], rbx
	jl	.L7
	jmp	.L2
.L18:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vm_object_populate, .-vm_object_populate
	.comm	listq,4,4
	.comm	VM_PAGER_OK,4,4
	.comm	VM_ALLOC_NORMAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_vm_object.c_vm_object_populate.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	vm_object_populate
	.syntax unified
	.arm
	.fpu softvfp
	.type	vm_object_populate, %function
vm_object_populate:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	mov	r8, r1
	mov	r5, r2
	ldr	r3, .L19
	sub	sp, sp, #12
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	mov	r6, r0
	bl	VM_OBJECT_ASSERT_WLOCKED
	cmp	r8, r5
	mov	r4, r8
	bge	.L2
	ldr	r9, .L19+4
	ldr	r7, .L19+8
	b	.L4
.L17:
	add	r4, r4, #1
	cmp	r5, r4
	beq	.L5
.L4:
	ldr	r3, [r9]
	mov	r2, r4
	mov	r1, r6
	mov	r0, sp
	bl	vm_page_grab_valid
	ldr	r3, [r7]
	cmp	r3, r0
	beq	.L17
	cmp	r8, r4
	blt	.L5
.L2:
	ldr	r3, .L19
	sub	r0, r4, r5
	clz	r0, r0
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	lsr	r0, r0, #5
	bne	.L18
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L5:
	mov	r1, r8
	mov	r0, r6
	bl	vm_page_lookup
	cmp	r0, #0
	str	r0, [sp]
	beq	.L2
	ldr	r6, .L19+12
	b	.L6
.L7:
	bl	vm_page_xunbusy
	ldr	r1, [r6]
	ldr	r0, [sp]
	bl	TAILQ_NEXT
	cmp	r0, #0
	str	r0, [sp]
	beq	.L2
.L6:
	ldr	r3, [r0]
	cmp	r3, r4
	blt	.L7
	b	.L2
.L18:
	bl	__stack_chk_fail
.L20:
	.align	2
.L19:
	.word	.LC0
	.word	VM_ALLOC_NORMAL
	.word	VM_PAGER_OK
	.word	listq
	.size	vm_object_populate, .-vm_object_populate
	.comm	listq,4,4
	.comm	VM_PAGER_OK,4,4
	.comm	VM_ALLOC_NORMAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
