	.file	"extr_vm_phys.c__vm_phys_create_seg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"vm_phys_create_seg: increase VM_PHYSSEG_MAX"
	.align 8
.LC1:
	.string	"vm_phys_create_seg: invalid domain provided"
	.text
	.p2align 4
	.type	_vm_phys_create_seg, @function
_vm_phys_create_seg:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	rax, QWORD PTR VM_PHYSSEG_MAX[rip]
	mov	r12, rdi
	xor	edi, edi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	cmp	QWORD PTR vm_phys_nsegs[rip], rax
	mov	ebp, edx
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	setl	dil
	mov	rbx, rsi
	lea	rsi, .LC0[rip]
	call	KASSERT@PLT
	xor	edi, edi
	test	ebp, ebp
	js	.L2
	xor	edi, edi
	cmp	DWORD PTR vm_ndomains[rip], ebp
	setg	dil
.L2:
	lea	rsi, .LC1[rip]
	call	KASSERT@PLT
	mov	rax, QWORD PTR vm_phys_nsegs[rip]
	mov	rcx, QWORD PTR vm_phys_segs[rip]
	lea	rdx, 1[rax]
	lea	rax, [rax+rax*2]
	lea	rax, [rcx+rax*8]
	mov	QWORD PTR vm_phys_nsegs[rip], rdx
	cmp	rcx, rax
	jb	.L3
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	movdqu	xmm0, XMMWORD PTR -24[rax]
	mov	rdx, QWORD PTR -8[rax]
	sub	rax, 24
	movups	XMMWORD PTR 24[rax], xmm0
	mov	QWORD PTR 40[rax], rdx
	cmp	rcx, rax
	jnb	.L4
.L3:
	cmp	QWORD PTR -24[rax], rbx
	jge	.L5
.L4:
	mov	QWORD PTR [rax], r12
	mov	QWORD PTR 16[rax], rbx
	mov	DWORD PTR 8[rax], ebp
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	_vm_phys_create_seg, .-_vm_phys_create_seg
	.comm	vm_phys_segs,8,8
	.comm	vm_phys_nsegs,8,8
	.comm	vm_ndomains,4,4
	.comm	VM_PHYSSEG_MAX,8,8
	.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_create_seg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"vm_phys_create_seg: increase VM_PHYSSEG_MAX\000"
	.align	2
.LC1:
	.ascii	"vm_phys_create_seg: invalid domain provided\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	_vm_phys_create_seg, %function
_vm_phys_create_seg:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r6, r2
	ldr	r8, .L10
	ldr	r3, .L10+4
	mov	r7, r0
	ldr	r3, [r3]
	ldr	r0, [r8]
	mov	r4, r1
	cmp	r0, r3
	movge	r0, #0
	movlt	r0, #1
	ldr	r1, .L10+8
	bl	KASSERT
	cmp	r6, #0
	movlt	r0, #0
	blt	.L2
	ldr	r3, .L10+12
	ldr	r0, [r3]
	cmp	r0, r6
	movle	r0, #0
	movgt	r0, #1
.L2:
	ldr	r1, .L10+16
	bl	KASSERT
	ldr	r3, .L10+20
	ldr	r2, [r8]
	ldr	r5, [r3]
	add	r3, r2, r2, lsl #1
	add	r3, r5, r3, lsl #2
	add	r2, r2, #1
	cmp	r5, r3
	str	r2, [r8]
	bcc	.L3
	b	.L4
.L5:
	cmp	r5, ip
	ldm	ip, {r0, r1, r2}
	stm	r3, {r0, r1, r2}
	mov	r3, ip
	bcs	.L4
.L3:
	ldr	lr, [r3, #-12]
	sub	ip, r3, #12
	cmp	lr, r4
	bge	.L5
.L4:
	str	r7, [r3]
	str	r4, [r3, #8]
	str	r6, [r3, #4]
	pop	{r4, r5, r6, r7, r8, pc}
.L11:
	.align	2
.L10:
	.word	vm_phys_nsegs
	.word	VM_PHYSSEG_MAX
	.word	.LC0
	.word	vm_ndomains
	.word	.LC1
	.word	vm_phys_segs
	.size	_vm_phys_create_seg, .-_vm_phys_create_seg
	.comm	vm_phys_segs,4,4
	.comm	vm_phys_nsegs,4,4
	.comm	vm_ndomains,4,4
	.comm	VM_PHYSSEG_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
