	.file	"extr_vmalloc.c_aligned_vwrite.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	aligned_vwrite, @function
aligned_vwrite:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	test	rdx, rdx
	je	.L5
	mov	r13, rdi
	mov	r15, rsi
	mov	r12, rdx
	xor	r14d, r14d
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rdi, r15
	call	offset_in_page@PLT
	mov	rbx, QWORD PTR PAGE_SIZE[rip]
	mov	rdi, r15
	mov	rbp, rax
	sub	rbx, rax
	cmp	rbx, r12
	cmova	rbx, r12
	call	vmalloc_to_page@PLT
	mov	rdi, rax
	test	rax, rax
	je	.L3
	call	kmap_atomic@PLT
	mov	rdx, rbx
	mov	rsi, r13
	lea	rdi, [rax+rbp]
	mov	QWORD PTR 8[rsp], rax
	call	memcpy@PLT
	mov	r8, QWORD PTR 8[rsp]
	mov	rdi, r8
	call	kunmap_atomic@PLT
.L3:
	add	r15, rbx
	add	r13, rbx
	add	r14d, ebx
	sub	r12, rbx
	jne	.L4
.L1:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r14d
	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
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	xor	r14d, r14d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	aligned_vwrite, .-aligned_vwrite
	.comm	PAGE_SIZE,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_vmalloc.c_aligned_vwrite.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aligned_vwrite, %function
aligned_vwrite:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	subs	r5, r2, #0
	beq	.L5
	mov	r7, r0
	mov	r10, r1
	mov	r8, #0
	ldr	r9, .L12
.L4:
	mov	r0, r10
	bl	offset_in_page
	mov	r6, r0
	ldr	r4, [r9]
	mov	r0, r10
	sub	r4, r4, r6
	cmp	r4, r5
	movcs	r4, r5
	bl	vmalloc_to_page
	cmp	r0, #0
	beq	.L3
	bl	kmap_atomic
	mov	fp, r0
	mov	r2, r4
	mov	r1, r7
	add	r0, r0, r6
	bl	memcpy
	mov	r0, fp
	bl	kunmap_atomic
.L3:
	subs	r5, r5, r4
	add	r10, r10, r4
	add	r7, r7, r4
	add	r8, r8, r4
	bne	.L4
	mov	r0, r8
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L5:
	mov	r8, r5
	mov	r0, r8
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L13:
	.align	2
.L12:
	.word	PAGE_SIZE
	.size	aligned_vwrite, .-aligned_vwrite
	.comm	PAGE_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
