	.file	"extr_vm_phys.c_vm_phys_enq_range.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"vm_phys_enq_range: npages is 0"
	.text
	.p2align 4
	.type	vm_phys_enq_range, @function
vm_phys_enq_range:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	xor	edi, edi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	ebp, ecx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, esi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	test	esi, esi
	lea	rsi, .LC0[rip]
	setg	dil
	call	KASSERT@PLT
	mov	rdi, r15
	call	VM_PAGE_TO_PHYS@PLT
	mov	r12d, DWORD PTR PAGE_SIZE[rip]
	mov	edi, ebx
	mov	r14d, r12d
	imul	r14d, ebx
	add	r14d, eax
	call	fls@PLT
	xor	edi, edi
	movsx	rsi, ebx
	lea	ecx, -1[rax]
	sal	r12d, cl
	sub	r12d, 1
	test	r12d, r14d
	mov	r14d, -1
	sete	dil
	call	KASSERT@PLT
	.p2align 4,,10
	.p2align 3
.L2:
	movsx	rsi, DWORD PTR [r15]
	xor	edi, edi
	cmp	DWORD PTR VM_NFREEORDER[rip], esi
	sete	dil
	call	KASSERT@PLT
	bsf	r12d, ebx
	cmove	r12d, r14d
	xor	edi, edi
	cmp	DWORD PTR VM_NFREEORDER[rip], r12d
	setg	dil
	movsx	rsi, r12d
	call	KASSERT@PLT
	mov	ecx, ebp
	mov	edx, r12d
	mov	rsi, r15
	mov	rdi, r13
	call	vm_freelist_add@PLT
	mov	eax, 1
	mov	ecx, r12d
	sal	eax, cl
	movsx	rdx, eax
	sub	ebx, eax
	lea	r15, [r15+rdx*4]
	test	ebx, ebx
	jg	.L2
	add	rsp, 8
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	vm_phys_enq_range, .-vm_phys_enq_range
	.comm	VM_NFREEORDER,4,4
	.comm	PAGE_SIZE,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_phys.c_vm_phys_enq_range.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"vm_phys_enq_range: npages is 0\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vm_phys_enq_range, %function
vm_phys_enq_range:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r0
	cmp	r1, #0
	mov	r5, r1
	movle	r0, #0
	movgt	r0, #1
	ldr	r1, .L7
	mov	r9, r2
	mov	r8, r3
	bl	KASSERT
	mov	r0, r6
	bl	VM_PAGE_TO_PHYS
	ldr	r3, .L7+4
	mov	r7, r0
	mov	r0, r5
	ldr	r4, [r3]
	bl	fls
	mla	r7, r5, r4, r7
	sub	r0, r0, #1
	lsl	r4, r4, r0
	sub	r4, r4, #1
	tst	r4, r7
	moveq	r0, #1
	movne	r0, #0
	mov	r1, r5
	mov	fp, #4
	bl	KASSERT
	mov	r10, #1
	ldr	r7, .L7+8
.L2:
	ldr	r1, [r6]
	ldr	r0, [r7]
	rsb	r4, r5, #0
	sub	r0, r0, r1
	clz	r0, r0
	and	r4, r4, r5
	clz	r4, r4
	lsr	r0, r0, #5
	bl	KASSERT
	ldr	r0, [r7]
	rsb	r4, r4, #31
	cmp	r0, r4
	movle	r0, #0
	movgt	r0, #1
	mov	r1, r4
	bl	KASSERT
	sub	r5, r5, r10, lsl r4
	mov	r1, r6
	mov	r3, r8
	mov	r2, r4
	mov	r0, r9
	bl	vm_freelist_add
	cmp	r5, #0
	add	r6, r6, fp, lsl r4
	bgt	.L2
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L8:
	.align	2
.L7:
	.word	.LC0
	.word	PAGE_SIZE
	.word	VM_NFREEORDER
	.size	vm_phys_enq_range, .-vm_phys_enq_range
	.comm	VM_NFREEORDER,4,4
	.comm	PAGE_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
