	.file	"extr_vmmapi.c_vm_copyout.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	vm_copyout
	.type	vm_copyout, @function
vm_copyout:
.LFB0:
	.cfi_startproc
	endbr64
	test	r8, r8
	je	.L9
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	mov	r13, rdx
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, r8
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rcx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR 8[rbp]
	add	rbp, 16
	call	assert@PLT
	mov	esi, DWORD PTR -8[rbp]
	mov	rdi, r12
	call	min@PLT
	mov	rsi, QWORD PTR -16[rbp]
	mov	rdi, r13
	mov	rbx, rax
	mov	rdx, rax
	call	bcopy@PLT
	add	r13, rbx
	sub	r12, rbx
	jne	.L3
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.cfi_endproc
.LFE0:
	.size	vm_copyout, .-vm_copyout
	.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_vmmapi.c_vm_copyout.c"
	.text
	.align	2
	.global	vm_copyout
	.syntax unified
	.arm
	.fpu softvfp
	.type	vm_copyout, %function
vm_copyout:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [sp, #24]
	cmp	r6, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r7, r2
	add	r5, r3, #8
.L3:
	ldr	r0, [r5, #-4]
	bl	assert
	ldr	r1, [r5, #-4]
	mov	r0, r6
	bl	min
	mov	r4, r0
	mov	r2, r0
	ldr	r1, [r5, #-8]
	mov	r0, r7
	bl	bcopy
	subs	r6, r6, r4
	add	r5, r5, #8
	add	r7, r7, r4
	bne	.L3
	pop	{r4, r5, r6, r7, r8, pc}
	.size	vm_copyout, .-vm_copyout
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
