	.file	"extr_neofb.c_neo2200_copyarea.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	neo2200_copyarea, @function
neo2200_copyarea:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, DWORD PTR NEO_BC3_FIFO_EN[rip]
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	or	r14d, DWORD PTR NEO_BC3_SKIP_MAPPING[rip]
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	or	r14d, 786432
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	edx, DWORD PTR 4[rsi]
	mov	rbx, rsi
	mov	ebp, DWORD PTR 12[rsi]
	mov	ecx, DWORD PTR [rsi]
	mov	r8d, DWORD PTR 8[rsi]
	mov	r13, QWORD PTR 8[rdi]
	cmp	edx, ebp
	jl	.L2
	jne	.L3
	cmp	ecx, r8d
	jge	.L3
.L2:
	mov	eax, DWORD PTR 16[rbx]
	mov	esi, DWORD PTR NEO_BC0_X_DEC[rip]
	or	esi, DWORD PTR NEO_BC0_DST_Y_DEC[rip]
	or	esi, DWORD PTR NEO_BC0_SRC_Y_DEC[rip]
	sub	eax, 1
	or	r14d, esi
	add	edx, eax
	add	ebp, eax
	mov	eax, DWORD PTR 20[rbx]
	sub	eax, 1
	add	ecx, eax
	add	r8d, eax
.L3:
	mov	eax, DWORD PTR 4[rdi]
	mov	esi, DWORD PTR [rdi]
	sar	eax, 3
	imul	edx, esi
	imul	ecx, eax
	imul	esi, ebp
	imul	eax, r8d
	lea	r12d, [rcx+rdx]
	lea	ebp, [rax+rsi]
	mov	esi, 4
	call	neo2200_wait_fifo@PLT
	mov	rax, QWORD PTR 0[r13]
	mov	edi, r14d
	lea	rsi, 12[rax]
	call	writel@PLT
	mov	rax, QWORD PTR 0[r13]
	mov	edi, r12d
	lea	rsi, 8[rax]
	call	writel@PLT
	mov	rax, QWORD PTR 0[r13]
	mov	edi, ebp
	lea	rsi, 4[rax]
	call	writel@PLT
	mov	edi, DWORD PTR 16[rbx]
	movzx	eax, WORD PTR 20[rbx]
	mov	rsi, QWORD PTR 0[r13]
	pop	rbx
	.cfi_def_cfa_offset 40
	sal	edi, 16
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	or	edi, eax
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	writel@PLT
	.cfi_endproc
.LFE0:
	.size	neo2200_copyarea, .-neo2200_copyarea
	.comm	NEO_BC3_SKIP_MAPPING,4,4
	.comm	NEO_BC3_FIFO_EN,4,4
	.comm	NEO_BC0_X_DEC,4,4
	.comm	NEO_BC0_SRC_Y_DEC,4,4
	.comm	NEO_BC0_DST_Y_DEC,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_neofb.c_neo2200_copyarea.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	neo2200_copyarea, %function
neo2200_copyarea:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r1
	ldr	r2, .L9
	ldr	r3, .L9+4
	ldr	r1, [r1, #4]
	ldr	r9, [r4, #12]
	ldr	r5, [r2]
	ldr	r3, [r3]
	cmp	r1, r9
	orr	r5, r5, r3
	ldr	lr, [r4]
	ldr	r6, [r4, #8]
	ldr	r7, [r0, #8]
	orr	r5, r5, #786432
	blt	.L2
	moveq	r3, #1
	movne	r3, #0
	cmp	lr, r6
	movge	r3, #0
	andlt	r3, r3, #1
	cmp	r3, #0
	beq	.L3
.L2:
	ldr	r3, .L9+8
	ldr	ip, .L9+12
	ldr	r2, .L9+16
	ldr	ip, [ip]
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, ip
	orr	r3, r3, r2
	ldr	ip, [r4, #16]
	ldr	r2, [r4, #20]
	sub	ip, ip, #1
	sub	r2, r2, #1
	orr	r5, r5, r3
	add	r1, r1, ip
	add	r9, r9, ip
	add	lr, lr, r2
	add	r6, r6, r2
.L3:
	ldr	r8, [r0]
	ldr	r2, [r0, #4]
	mul	ip, r1, r8
	mul	r9, r8, r9
	asr	r3, r2, #3
	mov	r1, #4
	mla	r8, lr, r3, ip
	mla	r6, r3, r6, r9
	bl	neo2200_wait_fifo
	ldr	r1, [r7]
	mov	r0, r5
	add	r1, r1, #12
	bl	writel
	ldr	r1, [r7]
	mov	r0, r8
	add	r1, r1, #8
	bl	writel
	ldr	r1, [r7]
	mov	r0, r6
	add	r1, r1, #4
	bl	writel
	ldr	r0, [r4, #16]
	ldrh	r3, [r4, #20]
	ldr	r1, [r7]
	orr	r0, r3, r0, lsl #16
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	writel
.L10:
	.align	2
.L9:
	.word	NEO_BC3_FIFO_EN
	.word	NEO_BC3_SKIP_MAPPING
	.word	NEO_BC0_X_DEC
	.word	NEO_BC0_DST_Y_DEC
	.word	NEO_BC0_SRC_Y_DEC
	.size	neo2200_copyarea, .-neo2200_copyarea
	.comm	NEO_BC3_SKIP_MAPPING,4,4
	.comm	NEO_BC3_FIFO_EN,4,4
	.comm	NEO_BC0_X_DEC,4,4
	.comm	NEO_BC0_SRC_Y_DEC,4,4
	.comm	NEO_BC0_DST_Y_DEC,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
