	.file	"extr_flexcop-dma.c_flexcop_dma_config.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"either DMA1 or DMA2 can be configured within one flexcop_dma_config call."
	.text
	.p2align 4
	.globl	flexcop_dma_config
	.type	flexcop_dma_config, @function
flexcop_dma_config:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdi
	sub	rsp, 96
	.cfi_def_cfa_offset 112
	mov	eax, DWORD PTR [rsi]
	mov	ecx, DWORD PTR 8[rsi]
	mov	QWORD PTR 16[rsp], 0
	sar	eax, 2
	mov	DWORD PTR 8[rsp], eax
	mov	eax, DWORD PTR 4[rsi]
	sar	eax, 2
	test	ecx, ecx
	mov	DWORD PTR 68[rsp], eax
	lea	eax, 3[rcx]
	cmovns	eax, ecx
	sar	eax, 2
	mov	DWORD PTR 32[rsp], eax
	mov	eax, DWORD PTR FC_DMA_1[rip]
	and	eax, edx
	cmp	eax, edx
	je	.L7
	mov	eax, DWORD PTR FC_DMA_2[rip]
	and	eax, edx
	cmp	eax, edx
	jne	.L4
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	esi, DWORD PTR dma2_010[rip]
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 128
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 136
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 144
	call	[QWORD PTR [rdi]]
	mov	rdi, rbx
	mov	esi, DWORD PTR dma2_014[rip]
	mov	QWORD PTR 80[rsp], 0
	add	rsp, 24
	.cfi_def_cfa_offset 120
	push	QWORD PTR 56[rsp]
	.cfi_def_cfa_offset 128
	push	QWORD PTR 56[rsp]
	.cfi_def_cfa_offset 136
	push	QWORD PTR 56[rsp]
	.cfi_def_cfa_offset 144
	call	[QWORD PTR [rbx]]
	mov	rdi, rbx
	mov	esi, DWORD PTR dma2_01c[rip]
	mov	QWORD PTR 112[rsp], 0
	add	rsp, 24
	.cfi_def_cfa_offset 120
	push	QWORD PTR 88[rsp]
	.cfi_def_cfa_offset 128
	push	QWORD PTR 88[rsp]
	.cfi_def_cfa_offset 136
	push	QWORD PTR 88[rsp]
	.cfi_def_cfa_offset 144
	call	[QWORD PTR [rbx]]
	xor	eax, eax
	add	rsp, 32
	.cfi_def_cfa_offset 112
	add	rsp, 96
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	lea	rdi, .LC0[rip]
	call	err@PLT
	mov	eax, DWORD PTR EINVAL[rip]
	add	rsp, 96
	.cfi_remember_state
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	sub	rsp, 8
	.cfi_def_cfa_offset 120
	mov	esi, DWORD PTR dma1_000[rip]
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 128
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 136
	push	QWORD PTR 24[rsp]
	.cfi_def_cfa_offset 144
	call	[QWORD PTR [rdi]]
	mov	rdi, rbx
	mov	esi, DWORD PTR dma1_004[rip]
	mov	QWORD PTR 80[rsp], 0
	add	rsp, 24
	.cfi_def_cfa_offset 120
	push	QWORD PTR 56[rsp]
	.cfi_def_cfa_offset 128
	push	QWORD PTR 56[rsp]
	.cfi_def_cfa_offset 136
	push	QWORD PTR 56[rsp]
	.cfi_def_cfa_offset 144
	call	[QWORD PTR [rbx]]
	mov	rdi, rbx
	mov	esi, DWORD PTR dma1_00c[rip]
	mov	QWORD PTR 112[rsp], 0
	add	rsp, 24
	.cfi_def_cfa_offset 120
	push	QWORD PTR 88[rsp]
	.cfi_def_cfa_offset 128
	push	QWORD PTR 88[rsp]
	.cfi_def_cfa_offset 136
	push	QWORD PTR 88[rsp]
	.cfi_def_cfa_offset 144
	call	[QWORD PTR [rbx]]
	xor	eax, eax
	add	rsp, 32
	.cfi_def_cfa_offset 112
	add	rsp, 96
	.cfi_def_cfa_offset 16
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	flexcop_dma_config, .-flexcop_dma_config
	.comm	dma2_01c,4,4
	.comm	dma2_014,4,4
	.comm	dma2_010,4,4
	.comm	dma1_00c,4,4
	.comm	dma1_004,4,4
	.comm	dma1_000,4,4
	.comm	FC_DMA_2,4,4
	.comm	FC_DMA_1,4,4
	.comm	EINVAL,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_flexcop-dma.c_flexcop_dma_config.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"either DMA1 or DMA2 can be configured within one fl"
	.ascii	"excop_dma_config call.\000"
	.text
	.align	2
	.global	flexcop_dma_config
	.syntax unified
	.arm
	.fpu softvfp
	.type	flexcop_dma_config, %function
flexcop_dma_config:
	@ args = 0, pretend = 0, frame = 48
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1, #8]
	push	{r4, r5, r6, lr}
	add	ip, r3, #3
	cmp	r3, #0
	movlt	r3, ip
	mov	r5, #0
	ldr	ip, .L9
	sub	sp, sp, #56
	ldr	lr, [ip]
	ldr	ip, [r1]
	ldr	r1, [r1, #4]
	asr	r3, r3, #2
	asr	ip, ip, #2
	asr	r1, r1, #2
	bics	lr, r2, lr
	mov	r4, r0
	str	r3, [sp, #24]
	str	ip, [sp, #16]
	str	r1, [sp, #44]
	str	r5, [sp, #20]
	beq	.L8
	ldr	r3, .L9+4
	ldr	r3, [r3]
	bics	r3, r2, r3
	bne	.L4
	ldr	r1, [sp, #20]
	ldr	r0, [sp, #16]
	ldr	r2, .L9+8
	stm	sp, {r0, r1}
	ldr	r3, [sp, #12]
	ldr	r1, [r2]
	ldr	r6, [r4]
	ldr	r2, [sp, #8]
	mov	r0, r4
	blx	r6
	mov	r1, r5
	ldr	r0, [sp, #32]
	ldr	r3, .L9+12
	stm	sp, {r0, r1}
	ldr	r2, [sp, #24]
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r6, [r4]
	ldr	r3, [sp, #28]
	str	r5, [sp, #36]
	blx	r6
	ldr	r2, .L9+16
.L6:
	str	r5, [sp, #52]
	add	r3, sp, #56
	ldmdb	r3, {r0, r1}
	ldr	r6, [r4]
	stm	sp, {r0, r1}
	ldr	r3, [sp, #44]
	ldr	r1, [r2]
	mov	r0, r4
	ldr	r2, [sp, #40]
	blx	r6
	mov	r0, r5
	add	sp, sp, #56
	@ sp needed
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r0, .L9+20
	bl	err
	ldr	r3, .L9+24
	ldr	r5, [r3]
	rsb	r0, r5, #0
	add	sp, sp, #56
	@ sp needed
	pop	{r4, r5, r6, pc}
.L8:
	mov	r0, ip
	mov	r1, r5
	stm	sp, {r0, r1}
	ldr	r2, .L9+28
	ldr	r3, [sp, #12]
	ldr	r1, [r2]
	ldr	r6, [r4]
	ldr	r2, [sp, #8]
	mov	r0, r4
	blx	r6
	mov	r1, r5
	ldr	r0, [sp, #32]
	ldr	r3, .L9+32
	stm	sp, {r0, r1}
	ldr	r2, [sp, #24]
	ldr	r1, [r3]
	mov	r0, r4
	ldr	r6, [r4]
	ldr	r3, [sp, #28]
	str	r5, [sp, #36]
	blx	r6
	ldr	r2, .L9+36
	b	.L6
.L10:
	.align	2
.L9:
	.word	FC_DMA_1
	.word	FC_DMA_2
	.word	dma2_010
	.word	dma2_014
	.word	dma2_01c
	.word	.LC0
	.word	EINVAL
	.word	dma1_000
	.word	dma1_004
	.word	dma1_00c
	.size	flexcop_dma_config, .-flexcop_dma_config
	.comm	dma2_01c,4,4
	.comm	dma2_014,4,4
	.comm	dma2_010,4,4
	.comm	dma1_00c,4,4
	.comm	dma1_004,4,4
	.comm	dma1_000,4,4
	.comm	FC_DMA_2,4,4
	.comm	FC_DMA_1,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
