	.file	"extr_dmaengine.c_dma_async_memcpy_buf_to_buf.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	dma_async_memcpy_buf_to_buf
	.type	dma_async_memcpy_buf_to_buf, @function
dma_async_memcpy_buf_to_buf:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rsi
	mov	rsi, rdx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rcx
	mov	ecx, DWORD PTR DMA_TO_DEVICE[rip]
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rdx, r12
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbp, QWORD PTR 8[rdi]
	mov	rbx, rdi
	mov	edi, DWORD PTR 0[rbp]
	call	dma_map_single@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	rsi, r14
	mov	rdx, r12
	mov	ecx, DWORD PTR DMA_FROM_DEVICE[rip]
	mov	r13d, eax
	call	dma_map_single@PLT
	mov	rcx, r12
	mov	edx, r13d
	mov	rdi, rbx
	mov	r8, QWORD PTR DMA_CTRL_ACK[rip]
	mov	r14d, eax
	mov	esi, eax
	or	r8, QWORD PTR DMA_COMPL_SRC_UNMAP_SINGLE[rip]
	or	r8, QWORD PTR DMA_COMPL_DEST_UNMAP_SINGLE[rip]
	call	[QWORD PTR 8[rbp]]
	test	rax, rax
	je	.L6
	mov	rdi, rax
	mov	QWORD PTR 8[rax], 0
	call	[QWORD PTR [rax]]
	mov	r13d, eax
	xor	eax, eax
	call	get_cpu@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, eax
	mov	ebp, eax
	call	per_cpu_ptr@PLT
	mov	edi, DWORD PTR [rbx]
	mov	esi, ebp
	add	QWORD PTR [rax], r12
	call	per_cpu_ptr@PLT
	add	DWORD PTR 8[rax], 1
	xor	eax, eax
	call	put_cpu@PLT
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	mov	ecx, DWORD PTR DMA_TO_DEVICE[rip]
	mov	edi, DWORD PTR 0[rbp]
	mov	esi, r13d
	mov	rdx, r12
	call	dma_unmap_single@PLT
	mov	edi, DWORD PTR 0[rbp]
	mov	rdx, r12
	mov	esi, r14d
	mov	ecx, DWORD PTR DMA_FROM_DEVICE[rip]
	call	dma_unmap_single@PLT
	mov	r13d, DWORD PTR ENOMEM[rip]
	neg	r13d
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	dma_async_memcpy_buf_to_buf, .-dma_async_memcpy_buf_to_buf
	.comm	ENOMEM,4,4
	.comm	DMA_TO_DEVICE,4,4
	.comm	DMA_FROM_DEVICE,4,4
	.comm	DMA_CTRL_ACK,8,8
	.comm	DMA_COMPL_SRC_UNMAP_SINGLE,8,8
	.comm	DMA_COMPL_DEST_UNMAP_SINGLE,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_dmaengine.c_dma_async_memcpy_buf_to_buf.c"
	.text
	.align	2
	.global	dma_async_memcpy_buf_to_buf
	.syntax unified
	.arm
	.fpu softvfp
	.type	dma_async_memcpy_buf_to_buf, %function
dma_async_memcpy_buf_to_buf:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r6, [r0, #4]
	ldr	r10, .L7
	sub	sp, sp, #12
	mov	r4, r3
	mov	r7, r1
	mov	r5, r0
	mov	r1, r2
	ldr	r0, [r6]
	mov	r2, r3
	ldr	r3, [r10]
	bl	dma_map_single
	ldr	r9, .L7+4
	mov	r1, r7
	mov	r8, r0
	mov	r2, r4
	ldr	r3, [r9]
	ldr	r0, [r6]
	bl	dma_map_single
	ldr	r3, .L7+8
	ldr	r1, .L7+12
	ldr	r2, .L7+16
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r2, [r2]
	orr	r3, r3, r1
	orr	r3, r3, r2
	str	r3, [sp]
	mov	r1, r0
	mov	r3, r4
	mov	r7, r0
	mov	r2, r8
	mov	r0, r5
	ldr	fp, [r6, #4]
	blx	fp
	subs	r3, r0, #0
	beq	.L6
	mov	r1, #0
	ldr	r2, [r3]
	str	r1, [r3, #4]
	blx	r2
	mov	r7, r0
	bl	get_cpu
	mov	r6, r0
	ldr	r0, [r5]
	mov	r1, r6
	bl	per_cpu_ptr
	mov	r2, r0
	ldr	r3, [r0]
	mov	r1, r6
	add	r4, r3, r4
	ldr	r0, [r5]
	str	r4, [r2]
	bl	per_cpu_ptr
	ldr	r3, [r0, #4]
	add	r3, r3, #1
	str	r3, [r0, #4]
	bl	put_cpu
.L1:
	mov	r0, r7
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L6:
	mov	r1, r8
	mov	r2, r4
	ldr	r3, [r10]
	ldr	r0, [r6]
	bl	dma_unmap_single
	mov	r1, r7
	ldr	r3, [r9]
	mov	r2, r4
	ldr	r0, [r6]
	bl	dma_unmap_single
	ldr	r3, .L7+20
	ldr	r7, [r3]
	rsb	r7, r7, #0
	b	.L1
.L8:
	.align	2
.L7:
	.word	DMA_TO_DEVICE
	.word	DMA_FROM_DEVICE
	.word	DMA_CTRL_ACK
	.word	DMA_COMPL_SRC_UNMAP_SINGLE
	.word	DMA_COMPL_DEST_UNMAP_SINGLE
	.word	ENOMEM
	.size	dma_async_memcpy_buf_to_buf, .-dma_async_memcpy_buf_to_buf
	.comm	ENOMEM,4,4
	.comm	DMA_TO_DEVICE,4,4
	.comm	DMA_FROM_DEVICE,4,4
	.comm	DMA_CTRL_ACK,4,4
	.comm	DMA_COMPL_SRC_UNMAP_SINGLE,4,4
	.comm	DMA_COMPL_DEST_UNMAP_SINGLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
