	.file	"extr_sm750_accel.c_sm750_hw_copyarea.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	sm750_hw_copyarea
	.type	sm750_hw_copyarea, @function
sm750_hw_copyarea:
.LFB0:
	.cfi_startproc
	endbr64
	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
	mov	r14d, edx
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	ebx, r9d
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r12d, DWORD PTR LEFT_TO_RIGHT[rip]
	mov	eax, DWORD PTR BOTTOM_TO_TOP[rip]
	cmp	esi, r9d
	jne	.L2
	cmp	edx, DWORD PTR 64[rsp]
	jne	.L2
	cmp	r8d, DWORD PTR 88[rsp]
	jb	.L3
	ja	.L18
	cmp	ecx, DWORD PTR 80[rsp]
	ja	.L2
	mov	eax, DWORD PTR RIGHT_TO_LEFT[rip]
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, DWORD PTR 96[rsp]
	mov	r12d, eax
	lea	ecx, -1[rdi]
	mov	edi, DWORD PTR 104[rsp]
	add	DWORD PTR 80[rsp], ecx
	add	r13d, ecx
	lea	edx, -1[rdi]
	add	DWORD PTR 88[rsp], edx
	add	r15d, edx
.L5:
	mov	edx, esi
	mov	esi, DWORD PTR DE_WINDOW_SOURCE_BASE[rip]
	mov	rdi, rbp
	call	write_dpr@PLT
	mov	esi, DWORD PTR DE_WINDOW_DESTINATION_BASE[rip]
	mov	edx, ebx
	mov	rdi, rbp
	call	write_dpr@PLT
	mov	eax, DWORD PTR 64[rsp]
	xor	edx, edx
	mov	rdi, rbp
	mov	ecx, DWORD PTR DE_PITCH_DESTINATION_SHIFT[rip]
	mov	esi, DWORD PTR DE_PITCH[rip]
	div	DWORD PTR 72[rsp]
	xor	edx, edx
	mov	ebx, eax
	mov	eax, r14d
	div	DWORD PTR 72[rsp]
	mov	edx, ebx
	sal	edx, cl
	and	edx, DWORD PTR DE_PITCH_DESTINATION_MASK[rip]
	mov	r14d, eax
	and	eax, DWORD PTR DE_PITCH_SOURCE_MASK[rip]
	or	edx, eax
	call	write_dpr@PLT
	mov	ecx, DWORD PTR DE_WINDOW_WIDTH_DST_SHIFT[rip]
	mov	rdi, rbp
	mov	edx, DWORD PTR DE_WINDOW_WIDTH_DST_MASK[rip]
	mov	r11d, DWORD PTR DE_WINDOW_WIDTH_SRC_MASK[rip]
	mov	esi, DWORD PTR DE_WINDOW_WIDTH[rip]
	sal	ebx, cl
	and	r11d, r14d
	and	edx, ebx
	or	edx, r11d
	call	write_dpr@PLT
	xor	eax, eax
	call	[QWORD PTR 0[rbp]]
	test	rax, rax
	jne	.L8
	mov	ecx, DWORD PTR DE_SOURCE_X_K1_SHIFT[rip]
	mov	r8d, DWORD PTR DE_SOURCE_Y_K2_MASK[rip]
	mov	edx, r13d
	mov	rdi, rbp
	mov	esi, DWORD PTR DE_SOURCE[rip]
	and	r8d, r15d
	sal	edx, cl
	and	edx, DWORD PTR DE_SOURCE_X_K1_MASK[rip]
	or	edx, r8d
	call	write_dpr@PLT
	mov	ecx, DWORD PTR DE_DESTINATION_X_SHIFT[rip]
	mov	edx, DWORD PTR 80[rsp]
	mov	rdi, rbp
	mov	r13d, DWORD PTR 88[rsp]
	mov	esi, DWORD PTR DE_DESTINATION[rip]
	sal	edx, cl
	and	r13d, DWORD PTR DE_DESTINATION_Y_MASK[rip]
	and	edx, DWORD PTR DE_DESTINATION_X_MASK[rip]
	or	edx, r13d
	call	write_dpr@PLT
	mov	ecx, DWORD PTR DE_DIMENSION_X_SHIFT[rip]
	mov	edx, DWORD PTR 96[rsp]
	mov	rdi, rbp
	mov	r15d, DWORD PTR 104[rsp]
	mov	esi, DWORD PTR DE_DIMENSION[rip]
	sal	edx, cl
	and	r15d, DWORD PTR DE_DIMENSION_Y_ET_MASK[rip]
	and	edx, DWORD PTR DE_DIMENSION_X_MASK[rip]
	or	edx, r15d
	call	write_dpr@PLT
	mov	edx, DWORD PTR 112[rsp]
	mov	eax, DWORD PTR DE_CONTROL_ROP_MASK[rip]
	xor	ecx, ecx
	and	eax, edx
	cmp	DWORD PTR RIGHT_TO_LEFT[rip], r12d
	mov	edx, DWORD PTR DE_CONTROL_ROP_SELECT[rip]
	jne	.L7
	mov	ecx, DWORD PTR DE_CONTROL_DIRECTION[rip]
.L7:
	or	edx, DWORD PTR DE_CONTROL_COMMAND_BITBLT[rip]
	or	edx, DWORD PTR DE_CONTROL_STATUS[rip]
	mov	rdi, rbp
	or	edx, eax
	mov	esi, DWORD PTR DE_CONTROL[rip]
	or	edx, ecx
	call	write_dpr@PLT
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.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
.L18:
	.cfi_restore_state
	mov	r12d, DWORD PTR TOP_TO_BOTTOM[rip]
	.p2align 4,,10
	.p2align 3
.L2:
	cmp	r12d, eax
	je	.L3
	cmp	DWORD PTR RIGHT_TO_LEFT[rip], r12d
	jne	.L5
	mov	eax, r12d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, -1
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	sm750_hw_copyarea, .-sm750_hw_copyarea
	.comm	TOP_TO_BOTTOM,4,4
	.comm	RIGHT_TO_LEFT,4,4
	.comm	LEFT_TO_RIGHT,4,4
	.comm	DE_WINDOW_WIDTH_SRC_MASK,4,4
	.comm	DE_WINDOW_WIDTH_DST_SHIFT,4,4
	.comm	DE_WINDOW_WIDTH_DST_MASK,4,4
	.comm	DE_WINDOW_WIDTH,4,4
	.comm	DE_WINDOW_SOURCE_BASE,4,4
	.comm	DE_WINDOW_DESTINATION_BASE,4,4
	.comm	DE_SOURCE_Y_K2_MASK,4,4
	.comm	DE_SOURCE_X_K1_SHIFT,4,4
	.comm	DE_SOURCE_X_K1_MASK,4,4
	.comm	DE_SOURCE,4,4
	.comm	DE_PITCH_SOURCE_MASK,4,4
	.comm	DE_PITCH_DESTINATION_SHIFT,4,4
	.comm	DE_PITCH_DESTINATION_MASK,4,4
	.comm	DE_PITCH,4,4
	.comm	DE_DIMENSION_Y_ET_MASK,4,4
	.comm	DE_DIMENSION_X_SHIFT,4,4
	.comm	DE_DIMENSION_X_MASK,4,4
	.comm	DE_DIMENSION,4,4
	.comm	DE_DESTINATION_Y_MASK,4,4
	.comm	DE_DESTINATION_X_SHIFT,4,4
	.comm	DE_DESTINATION_X_MASK,4,4
	.comm	DE_DESTINATION,4,4
	.comm	DE_CONTROL_STATUS,4,4
	.comm	DE_CONTROL_ROP_SELECT,4,4
	.comm	DE_CONTROL_ROP_MASK,4,4
	.comm	DE_CONTROL_DIRECTION,4,4
	.comm	DE_CONTROL_COMMAND_BITBLT,4,4
	.comm	DE_CONTROL,4,4
	.comm	BOTTOM_TO_TOP,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_sm750_accel.c_sm750_hw_copyarea.c"
	.text
	.global	__aeabi_uidiv
	.align	2
	.global	sm750_hw_copyarea
	.syntax unified
	.arm
	.fpu softvfp
	.type	sm750_hw_copyarea, %function
sm750_hw_copyarea:
	@ args = 36, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	fp, [sp, #44]
	ldr	r5, [sp, #48]
	ldr	lr, .L16
	cmp	r1, fp
	cmpeq	r2, r5
	ldr	ip, .L16+4
	mov	r8, r2
	mov	r4, r0
	mov	r7, r3
	ldr	r10, [lr]
	ldr	r2, [ip]
	ldr	r6, [sp, #40]
	ldr	r9, [sp, #52]
	bne	.L2
	ldr	r3, [sp, #60]
	cmp	r6, r3
	bcs	.L15
.L3:
	ldr	r3, [sp, #64]
	mov	r10, r2
	sub	r0, r3, #1
	ldr	r3, [sp, #68]
	add	r7, r7, r0
	sub	r2, r3, #1
	ldr	r3, [sp, #56]
	add	r6, r6, r2
	add	r3, r3, r0
	str	r3, [sp, #56]
	ldr	r3, [sp, #60]
	add	r3, r3, r2
	str	r3, [sp, #60]
.L5:
	ldr	r0, .L16+8
	mov	r2, r1
	ldr	r1, [r0]
	mov	r0, r4
	bl	write_dpr
	ldr	r1, .L16+12
	mov	r2, fp
	ldr	r1, [r1]
	mov	r0, r4
	bl	write_dpr
	mov	r1, r9
	mov	r0, r5
	bl	__aeabi_uidiv
	mov	r2, r0
	mov	r1, r9
	mov	r0, r8
	mov	r8, r2
	bl	__aeabi_uidiv
	mov	r9, r0
	ldr	r1, .L16+16
	ldr	r0, .L16+20
	ldr	r2, .L16+24
	ldr	ip, [r0]
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r0, .L16+28
	and	r1, r1, r8, lsl ip
	and	r2, r2, r9
	orr	r2, r1, r2
	ldr	r1, [r0]
	mov	r0, r4
	bl	write_dpr
	ldr	r0, .L16+32
	ldr	r1, .L16+36
	ldr	r2, .L16+40
	ldr	ip, [r0]
	ldr	r2, [r2]
	ldr	r0, [r1]
	ldr	r1, .L16+44
	and	r2, r2, r8, lsl ip
	and	r9, r9, r0
	ldr	r1, [r1]
	orr	r2, r2, r9
	mov	r0, r4
	bl	write_dpr
	ldr	r2, [r4]
	blx	r2
	subs	r8, r0, #0
	bne	.L8
	ldr	r1, .L16+48
	ldr	r2, .L16+52
	ldr	r0, .L16+56
	ldr	r1, [r1]
	ldr	r2, [r2]
	ldr	r0, [r0]
	and	r2, r2, r7, lsl r1
	ldr	r1, .L16+60
	and	r6, r6, r0
	ldr	r1, [r1]
	orr	r2, r2, r6
	mov	r0, r4
	bl	write_dpr
	ldr	r0, .L16+64
	ldr	r2, .L16+68
	ldr	ip, [r0]
	ldr	r3, [sp, #56]
	ldr	r1, .L16+72
	ldr	r2, [r2]
	ldr	r0, [r1]
	and	r2, r2, r3, lsl ip
	ldr	r3, [sp, #60]
	ldr	r1, .L16+76
	and	r5, r3, r0
	ldr	r1, [r1]
	orr	r2, r2, r5
	mov	r0, r4
	bl	write_dpr
	ldr	r0, .L16+80
	ldr	r1, .L16+84
	ldr	ip, [r0]
	ldr	r3, [sp, #64]
	ldr	r1, [r1]
	ldr	r2, .L16+88
	and	r1, r1, r3, lsl ip
	ldr	r2, [r2]
	ldr	r3, [sp, #68]
	ldr	r0, .L16+92
	and	r2, r2, r3
	orr	r2, r1, r2
	ldr	r1, [r0]
	mov	r0, r4
	bl	write_dpr
	ldr	r2, .L16+96
	ldr	r1, .L16+100
	ldr	r2, [r2]
	ldr	r0, .L16+104
	cmp	r2, r10
	movne	r2, r8
	ldr	r3, [sp, #72]
	ldr	r1, [r1]
	ldr	ip, .L16+108
	and	r1, r1, r3
	ldr	r3, [r0]
	ldr	r0, .L16+112
	ldr	ip, [ip]
	ldreq	r2, .L16+116
	ldr	r0, [r0]
	orr	r3, r3, ip
	orr	r3, r3, r0
	ldreq	r2, [r2]
	ldr	ip, .L16+120
	orr	r3, r3, r1
	mov	r0, r4
	ldr	r1, [ip]
	orr	r2, r3, r2
	bl	write_dpr
.L1:
	mov	r0, r8
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	bls	.L4
	ldr	r3, .L16+124
	ldr	r10, [r3]
.L2:
	cmp	r10, r2
	beq	.L3
	ldr	r2, .L16+96
	ldr	r2, [r2]
	cmp	r2, r10
	bne	.L5
	mov	r2, r10
	b	.L3
.L4:
	ldr	r3, [sp, #56]
	cmp	r7, r3
	bhi	.L2
	ldr	r3, .L16+96
	ldr	r2, [r3]
	b	.L3
.L8:
	mvn	r8, #0
	b	.L1
.L17:
	.align	2
.L16:
	.word	LEFT_TO_RIGHT
	.word	BOTTOM_TO_TOP
	.word	DE_WINDOW_SOURCE_BASE
	.word	DE_WINDOW_DESTINATION_BASE
	.word	DE_PITCH_DESTINATION_MASK
	.word	DE_PITCH_DESTINATION_SHIFT
	.word	DE_PITCH_SOURCE_MASK
	.word	DE_PITCH
	.word	DE_WINDOW_WIDTH_DST_SHIFT
	.word	DE_WINDOW_WIDTH_SRC_MASK
	.word	DE_WINDOW_WIDTH_DST_MASK
	.word	DE_WINDOW_WIDTH
	.word	DE_SOURCE_X_K1_SHIFT
	.word	DE_SOURCE_X_K1_MASK
	.word	DE_SOURCE_Y_K2_MASK
	.word	DE_SOURCE
	.word	DE_DESTINATION_X_SHIFT
	.word	DE_DESTINATION_X_MASK
	.word	DE_DESTINATION_Y_MASK
	.word	DE_DESTINATION
	.word	DE_DIMENSION_X_SHIFT
	.word	DE_DIMENSION_X_MASK
	.word	DE_DIMENSION_Y_ET_MASK
	.word	DE_DIMENSION
	.word	RIGHT_TO_LEFT
	.word	DE_CONTROL_ROP_MASK
	.word	DE_CONTROL_ROP_SELECT
	.word	DE_CONTROL_COMMAND_BITBLT
	.word	DE_CONTROL_STATUS
	.word	DE_CONTROL_DIRECTION
	.word	DE_CONTROL
	.word	TOP_TO_BOTTOM
	.size	sm750_hw_copyarea, .-sm750_hw_copyarea
	.comm	TOP_TO_BOTTOM,4,4
	.comm	RIGHT_TO_LEFT,4,4
	.comm	LEFT_TO_RIGHT,4,4
	.comm	DE_WINDOW_WIDTH_SRC_MASK,4,4
	.comm	DE_WINDOW_WIDTH_DST_SHIFT,4,4
	.comm	DE_WINDOW_WIDTH_DST_MASK,4,4
	.comm	DE_WINDOW_WIDTH,4,4
	.comm	DE_WINDOW_SOURCE_BASE,4,4
	.comm	DE_WINDOW_DESTINATION_BASE,4,4
	.comm	DE_SOURCE_Y_K2_MASK,4,4
	.comm	DE_SOURCE_X_K1_SHIFT,4,4
	.comm	DE_SOURCE_X_K1_MASK,4,4
	.comm	DE_SOURCE,4,4
	.comm	DE_PITCH_SOURCE_MASK,4,4
	.comm	DE_PITCH_DESTINATION_SHIFT,4,4
	.comm	DE_PITCH_DESTINATION_MASK,4,4
	.comm	DE_PITCH,4,4
	.comm	DE_DIMENSION_Y_ET_MASK,4,4
	.comm	DE_DIMENSION_X_SHIFT,4,4
	.comm	DE_DIMENSION_X_MASK,4,4
	.comm	DE_DIMENSION,4,4
	.comm	DE_DESTINATION_Y_MASK,4,4
	.comm	DE_DESTINATION_X_SHIFT,4,4
	.comm	DE_DESTINATION_X_MASK,4,4
	.comm	DE_DESTINATION,4,4
	.comm	DE_CONTROL_STATUS,4,4
	.comm	DE_CONTROL_ROP_SELECT,4,4
	.comm	DE_CONTROL_ROP_MASK,4,4
	.comm	DE_CONTROL_DIRECTION,4,4
	.comm	DE_CONTROL_COMMAND_BITBLT,4,4
	.comm	DE_CONTROL,4,4
	.comm	BOTTOM_TO_TOP,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
