	.file	"extr_ste_dma40.c_d40_config_memcpy.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"No memcpy\n"
	.text
	.p2align 4
	.type	d40_config_memcpy, @function
d40_config_memcpy:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	rax, QWORD PTR 32[rdi]
	mov	edi, DWORD PTR DMA_MEMCPY[rip]
	mov	r12d, DWORD PTR [rax]
	mov	esi, r12d
	call	dma_has_cap@PLT
	test	rax, rax
	je	.L2
	mov	edi, DWORD PTR DMA_SLAVE[rip]
	mov	esi, r12d
	call	dma_has_cap@PLT
	test	rax, rax
	je	.L16
.L2:
	mov	edi, DWORD PTR DMA_MEMCPY[rip]
	mov	esi, r12d
	call	dma_has_cap@PLT
	test	rax, rax
	je	.L4
	mov	edi, DWORD PTR DMA_SLAVE[rip]
	mov	esi, r12d
	call	dma_has_cap@PLT
	test	rax, rax
	jne	.L17
.L4:
	mov	rdi, rbp
	lea	rsi, .LC0[rip]
	call	chan_err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L17:
	.cfi_restore_state
	mov	eax, DWORD PTR dma40_memcpy_conf_phy[rip]
	mov	edi, DWORD PTR D40_SREG_CFG_TIM_POS[rip]
	mov	DWORD PTR 8[rbp], eax
	call	BIT@PLT
	or	DWORD PTR 0[rbp], eax
	mov	edi, DWORD PTR D40_SREG_CFG_EIM_POS[rip]
	call	BIT@PLT
	or	DWORD PTR 4[rbp], eax
	mov	edi, DWORD PTR D40_SREG_CFG_EIM_POS[rip]
	call	BIT@PLT
	or	DWORD PTR 0[rbp], eax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L16:
	.cfi_restore_state
	mov	eax, DWORD PTR dma40_memcpy_conf_log[rip]
	mov	rdx, QWORD PTR 24[rbp]
	lea	rsi, 16[rbp]
	lea	rdi, 8[rbp]
	mov	DWORD PTR 8[rbp], eax
	mov	rax, QWORD PTR dma40_memcpy_channels[rip]
	mov	eax, DWORD PTR [rax+rdx*4]
	lea	rdx, 12[rbp]
	mov	DWORD PTR 8[rbp], eax
	call	d40_log_cfg@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	d40_config_memcpy, .-d40_config_memcpy
	.comm	dma40_memcpy_conf_phy,4,4
	.comm	dma40_memcpy_conf_log,4,4
	.comm	dma40_memcpy_channels,8,8
	.comm	EINVAL,4,4
	.comm	DMA_SLAVE,4,4
	.comm	DMA_MEMCPY,4,4
	.comm	D40_SREG_CFG_TIM_POS,4,4
	.comm	D40_SREG_CFG_EIM_POS,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_ste_dma40.c_d40_config_memcpy.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"No memcpy\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	d40_config_memcpy, %function
d40_config_memcpy:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #24]
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r6, [r3]
	ldr	r7, .L18
	mov	r4, r0
	mov	r1, r6
	ldr	r0, [r7]
	bl	dma_has_cap
	cmp	r0, #0
	beq	.L2
	ldr	r3, .L18+4
	mov	r1, r6
	ldr	r0, [r3]
	bl	dma_has_cap
	subs	r5, r0, #0
	beq	.L16
.L2:
	mov	r1, r6
	ldr	r0, [r7]
	bl	dma_has_cap
	cmp	r0, #0
	beq	.L4
	ldr	r3, .L18+4
	mov	r1, r6
	ldr	r0, [r3]
	bl	dma_has_cap
	cmp	r0, #0
	bne	.L17
.L4:
	mov	r0, r4
	ldr	r1, .L18+8
	bl	chan_err
	ldr	r3, .L18+12
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	ldr	r3, .L18+16
	ldr	r2, .L18+20
	ldr	r3, [r3]
	ldr	r0, [r2]
	str	r3, [r4, #8]
	bl	BIT
	ldr	r3, [r4]
	ldr	r5, .L18+24
	orr	r3, r3, r0
	str	r3, [r4]
	ldr	r0, [r5]
	bl	BIT
	mov	r2, r0
	ldr	r3, [r4, #4]
	ldr	r0, [r5]
	orr	r3, r3, r2
	str	r3, [r4, #4]
	bl	BIT
	mov	r5, #0
	ldr	r3, [r4]
	orr	r3, r3, r0
	str	r3, [r4]
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	ldr	r2, .L18+28
	ldr	r3, .L18+32
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r4, #20]
	str	r1, [r4, #8]
	ldr	r3, [r3, r2, lsl #2]
	add	r1, r4, #16
	add	r2, r4, #12
	str	r3, [r4, #8]
	add	r0, r4, #8
	bl	d40_log_cfg
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L19:
	.align	2
.L18:
	.word	DMA_MEMCPY
	.word	DMA_SLAVE
	.word	.LC0
	.word	EINVAL
	.word	dma40_memcpy_conf_phy
	.word	D40_SREG_CFG_TIM_POS
	.word	D40_SREG_CFG_EIM_POS
	.word	dma40_memcpy_conf_log
	.word	dma40_memcpy_channels
	.size	d40_config_memcpy, .-d40_config_memcpy
	.comm	dma40_memcpy_conf_phy,4,4
	.comm	dma40_memcpy_conf_log,4,4
	.comm	dma40_memcpy_channels,4,4
	.comm	EINVAL,4,4
	.comm	DMA_SLAVE,4,4
	.comm	DMA_MEMCPY,4,4
	.comm	D40_SREG_CFG_TIM_POS,4,4
	.comm	D40_SREG_CFG_EIM_POS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
