	.file	"extr_omap_dmm_tiler.c_dmm_dma_copy.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"Failed to prepare DMA memcpy\n"
.LC1:
	.string	"Failed to do DMA tx_submit\n"
.LC2:
	.string	"i878 wa DMA copy failure\n"
	.text
	.p2align 4
	.type	dmm_dma_copy, @function
dmm_dma_copy:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	r9d, esi
	xor	r8d, r8d
	mov	esi, edx
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdi
	mov	ecx, 4
	mov	edx, r9d
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rdi, QWORD PTR [rdi]
	mov	rax, QWORD PTR [rdi]
	call	[QWORD PTR [rax]]
	test	rax, rax
	je	.L8
	mov	rdi, rax
	call	[QWORD PTR [rax]]
	mov	edi, eax
	mov	ebp, eax
	call	dma_submit_error@PLT
	test	rax, rax
	jne	.L9
	mov	rdi, QWORD PTR [rbx]
	call	dma_async_issue_pending@PLT
	mov	rdi, QWORD PTR [rbx]
	mov	esi, ebp
	call	dma_sync_wait@PLT
	cmp	eax, DWORD PTR DMA_COMPLETE[rip]
	jne	.L10
.L5:
	mov	rdi, QWORD PTR [rbx]
	call	dmaengine_terminate_all@PLT
	xor	eax, eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbx]
	lea	rsi, .LC2[rip]
	call	dev_err@PLT
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L9:
	mov	edi, DWORD PTR 8[rbx]
	lea	rsi, .LC1[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EIO[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	mov	edi, DWORD PTR 8[rbx]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	mov	eax, DWORD PTR EIO[rip]
	neg	eax
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	dmm_dma_copy, .-dmm_dma_copy
	.comm	EIO,4,4
	.comm	DMA_COMPLETE,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_omap_dmm_tiler.c_dmm_dma_copy.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to prepare DMA memcpy\012\000"
	.align	2
.LC1:
	.ascii	"Failed to do DMA tx_submit\012\000"
	.align	2
.LC2:
	.ascii	"i878 wa DMA copy failure\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	dmm_dma_copy, %function
dmm_dma_copy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r1
	mov	ip, #0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r0, [r0]
	mov	r1, r2
	sub	sp, sp, #8
	mov	r2, r3
	ldr	r3, [r0]
	str	ip, [sp]
	ldr	r5, [r3]
	mov	r3, #4
	blx	r5
	subs	r3, r0, #0
	beq	.L8
	ldr	r3, [r3]
	blx	r3
	mov	r6, r0
	bl	dma_submit_error
	subs	r5, r0, #0
	bne	.L9
	ldr	r0, [r4]
	bl	dma_async_issue_pending
	mov	r1, r6
	ldr	r0, [r4]
	bl	dma_sync_wait
	ldr	r3, .L11
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L10
.L5:
	ldr	r0, [r4]
	bl	dmaengine_terminate_all
.L1:
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L10:
	ldr	r1, .L11+4
	ldr	r0, [r4, #4]
	bl	dev_err
	b	.L5
.L9:
	ldr	r0, [r4, #4]
	ldr	r1, .L11+8
	bl	dev_err
	ldr	r3, .L11+12
	ldr	r0, [r3]
	rsb	r5, r0, #0
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	ldr	r0, [r4, #4]
	ldr	r1, .L11+16
	bl	dev_err
	ldr	r3, .L11+12
	ldr	r0, [r3]
	rsb	r5, r0, #0
	b	.L1
.L12:
	.align	2
.L11:
	.word	DMA_COMPLETE
	.word	.LC2
	.word	.LC1
	.word	EIO
	.word	.LC0
	.size	dmm_dma_copy, .-dmm_dma_copy
	.comm	EIO,4,4
	.comm	DMA_COMPLETE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
