	.file	"extr_vf_edma.c_channel_configure.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	channel_configure, @function
channel_configure:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	edi, DWORD PTR [rdi]
	mov	eax, esi
	mov	esi, edx
	test	edi, edi
	jne	.L2
	cmp	eax, 1
	je	.L3
.L4:
	mov	edx, DWORD PTR NCHAN_PER_MUX[rip]
	add	edi, edi
	xor	ecx, ecx
.L5:
	add	edx, ecx
	cmp	edx, ecx
	jle	.L9
	movsx	rax, ecx
	mov	r12d, ecx
	sal	rax, 4
	add	rax, QWORD PTR edma_map[rip]
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L22:
	add	r12d, 1
	add	rax, 16
	cmp	edx, r12d
	je	.L9
.L8:
	mov	r8d, DWORD PTR [rax]
	test	r8d, r8d
	jne	.L22
	mov	edx, r12d
	mov	DWORD PTR [rax], 1
	sub	edx, ecx
	mov	DWORD PTR 4[rax], edi
	mov	ecx, 1
	mov	DWORD PTR 8[rax], esi
	mov	DWORD PTR 12[rax], edx
	call	dmamux_configure@PLT
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	r12d, -1
	mov	eax, r12d
	pop	r12
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	test	eax, eax
	jne	.L4
	cmp	edi, 1
	jne	.L4
.L3:
	mov	edx, DWORD PTR NCHAN_PER_MUX[rip]
	lea	edi, 1[rdi+rdi]
	mov	ecx, edx
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	channel_configure, .-channel_configure
	.comm	edma_map,8,8
	.comm	NCHAN_PER_MUX,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_vf_edma.c_channel_configure.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	channel_configure, %function
channel_configure:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r0, [r0]
	mov	r3, r1
	cmp	r0, #0
	mov	r1, r2
	push	{r4, r5, r6, lr}
	bne	.L2
	cmp	r3, #1
	beq	.L3
.L4:
	mov	r6, #0
	ldr	r3, .L20
	lsl	r0, r0, #1
	ldr	lr, [r3]
.L5:
	add	lr, r6, lr
	cmp	lr, r6
	ble	.L9
	ldr	r3, .L20+4
	mov	r4, r6
	ldr	r5, [r3]
	add	ip, r5, r6, lsl #4
	b	.L8
.L19:
	add	r4, r4, #1
	cmp	lr, r4
	add	ip, ip, #16
	beq	.L9
.L8:
	ldr	r3, [r5, r4, lsl #4]
	cmp	r3, #0
	bne	.L19
	mov	r3, #1
	sub	r2, r4, r6
	stmib	ip, {r0, r1, r2}
	str	r3, [ip]
	bl	dmamux_configure
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L9:
	mvn	r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L2:
	cmp	r3, #0
	cmpeq	r0, #1
	bne	.L4
.L3:
	ldr	r3, .L20
	lsl	r0, r0, #1
	ldr	lr, [r3]
	add	r0, r0, #1
	mov	r6, lr
	b	.L5
.L21:
	.align	2
.L20:
	.word	NCHAN_PER_MUX
	.word	edma_map
	.size	channel_configure, .-channel_configure
	.comm	edma_map,4,4
	.comm	NCHAN_PER_MUX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
