	.file	"extr_si_dma.c_si_dma_vm_copy_pages.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	si_dma_vm_copy_pages
	.type	si_dma_vm_copy_pages, @function
si_dma_vm_copy_pages:
.LFB0:
	.cfi_startproc
	endbr64
	test	r8d, r8d
	je	.L7
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, r8d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13d, ecx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rcx, QWORD PTR [rsi]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	eax, 1048568
	mov	edi, DWORD PTR DMA_PACKET_COPY[rip]
	mov	esi, 1
	lea	ebp, 0[0+r15*8]
	cmp	ebp, 1048568
	cmova	ebp, eax
	movsx	rax, DWORD PTR 8[rbx]
	lea	edx, 1[rax]
	mov	r8d, ebp
	lea	r14, [rcx+rax*4]
	xor	ecx, ecx
	mov	DWORD PTR 8[rbx], edx
	xor	edx, edx
	call	DMA_PACKET@PLT
	mov	edi, r12d
	mov	DWORD PTR [r14], eax
	call	lower_32_bits@PLT
	mov	rdx, QWORD PTR [rbx]
	mov	edi, r13d
	mov	r8, rax
	movsx	rax, DWORD PTR 8[rbx]
	lea	ecx, 1[rax]
	mov	DWORD PTR 8[rbx], ecx
	mov	DWORD PTR [rdx+rax*4], r8d
	call	lower_32_bits@PLT
	mov	rdx, QWORD PTR [rbx]
	mov	edi, r12d
	add	r12d, ebp
	mov	r8, rax
	movsx	rax, DWORD PTR 8[rbx]
	lea	ecx, 1[rax]
	mov	DWORD PTR 8[rbx], ecx
	mov	DWORD PTR [rdx+rax*4], r8d
	call	upper_32_bits@PLT
	mov	rcx, QWORD PTR [rbx]
	mov	edi, r13d
	add	r13d, ebp
	mov	r8d, eax
	movsx	rax, DWORD PTR 8[rbx]
	shr	ebp, 3
	lea	edx, 1[rax]
	mov	DWORD PTR 8[rbx], edx
	movzx	edx, r8b
	mov	DWORD PTR [rcx+rax*4], edx
	call	upper_32_bits@PLT
	mov	rcx, QWORD PTR [rbx]
	mov	r8d, eax
	movsx	rax, DWORD PTR 8[rbx]
	lea	edx, 1[rax]
	mov	DWORD PTR 8[rbx], edx
	movzx	edx, r8b
	mov	DWORD PTR [rcx+rax*4], edx
	sub	r15d, ebp
	jne	.L3
	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
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	ret
	.cfi_endproc
.LFE0:
	.size	si_dma_vm_copy_pages, .-si_dma_vm_copy_pages
	.comm	DMA_PACKET_COPY,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_si_dma.c_si_dma_vm_copy_pages.c"
	.text
	.align	2
	.global	si_dma_vm_copy_pages
	.syntax unified
	.arm
	.fpu softvfp
	.type	si_dma_vm_copy_pages, %function
si_dma_vm_copy_pages:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	sub	sp, sp, #12
	ldr	r8, [sp, #48]
	cmp	r8, #0
	beq	.L1
	mov	r4, r1
	mov	r6, r2
	mov	r7, r3
	ldr	r9, [r1]
	ldr	fp, .L8
.L3:
	lsl	r5, r8, #3
	cmp	r5, fp
	movcs	r5, fp
	mov	r3, #0
	ldr	r10, [r4, #4]
	ldr	r0, .L8+4
	str	r5, [sp]
	add	r2, r10, #1
	mov	r1, #1
	str	r2, [r4, #4]
	ldr	r0, [r0]
	mov	r2, r3
	bl	DMA_PACKET
	mov	r3, r0
	mov	r0, r6
	str	r3, [r9, r10, lsl #2]
	bl	lower_32_bits
	ldm	r4, {r2, r3}
	mov	r1, r0
	add	r0, r3, #1
	str	r0, [r4, #4]
	str	r1, [r2, r3, lsl #2]
	mov	r0, r7
	bl	lower_32_bits
	ldm	r4, {r2, r3}
	mov	r1, r0
	add	r0, r3, #1
	str	r0, [r4, #4]
	str	r1, [r2, r3, lsl #2]
	mov	r0, r6
	bl	upper_32_bits
	ldm	r4, {r1, r2}
	and	r3, r0, #255
	add	r0, r2, #1
	str	r0, [r4, #4]
	str	r3, [r1, r2, lsl #2]
	mov	r0, r7
	bl	upper_32_bits
	ldr	r3, [r4, #4]
	ldr	r9, [r4]
	and	r0, r0, #255
	add	r2, r3, #1
	subs	r8, r8, r5, lsr #3
	str	r2, [r4, #4]
	add	r6, r6, r5
	add	r7, r7, r5
	str	r0, [r9, r3, lsl #2]
	bne	.L3
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L9:
	.align	2
.L8:
	.word	1048568
	.word	DMA_PACKET_COPY
	.size	si_dma_vm_copy_pages, .-si_dma_vm_copy_pages
	.comm	DMA_PACKET_COPY,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
