	.file	"extr_dma.c_edma_free_slot.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	edma_free_slot
	.type	edma_free_slot, @function
edma_free_slot:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	ebp, edi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	EDMA_CTLR@PLT
	mov	edi, ebp
	mov	ebx, eax
	call	EDMA_CHAN_SLOT@PLT
	mov	ebp, eax
	mov	rax, QWORD PTR edma_info[rip]
	mov	rax, QWORD PTR [rax+rbx*8]
	cmp	DWORD PTR [rax], ebp
	ja	.L1
	cmp	DWORD PTR 4[rax], ebp
	ja	.L5
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	mov	rax, QWORD PTR edmacc_regs_base[rip]
	mov	r13d, DWORD PTR PARM_SIZE[rip]
	mov	edi, ebp
	mov	r12, QWORD PTR [rax+rbx*8]
	call	PARM_OFFSET@PLT
	mov	edx, r13d
	lea	rsi, dummy_paramset[rip]
	lea	rdi, [r12+rax]
	call	memcpy_toio@PLT
	mov	rax, QWORD PTR edma_info[rip]
	mov	edi, ebp
	mov	rax, QWORD PTR [rax+rbx*8]
	mov	esi, DWORD PTR 8[rax]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	clear_bit@PLT
	.cfi_endproc
.LFE0:
	.size	edma_free_slot, .-edma_free_slot
	.comm	edmacc_regs_base,8,8
	.comm	edma_info,8,8
	.comm	dummy_paramset,4,4
	.comm	PARM_SIZE,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_dma.c_edma_free_slot.c"
	.text
	.align	2
	.global	edma_free_slot
	.syntax unified
	.arm
	.fpu softvfp
	.type	edma_free_slot, %function
edma_free_slot:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	bl	EDMA_CTLR
	mov	r6, r0
	mov	r0, r4
	bl	EDMA_CHAN_SLOT
	ldr	r5, .L5
	ldr	r3, [r5]
	ldr	r3, [r3, r6, lsl #2]
	ldr	r2, [r3]
	cmp	r2, r0
	pophi	{r4, r5, r6, r7, r8, pc}
	ldr	r3, [r3, #4]
	mov	r4, r0
	cmp	r3, r0
	popls	{r4, r5, r6, r7, r8, pc}
	ldr	r3, .L5+4
	ldr	r3, [r3]
	ldr	r7, [r3, r6, lsl #2]
	bl	PARM_OFFSET
	ldr	r3, .L5+8
	ldr	r1, .L5+12
	ldr	r2, [r3]
	add	r0, r7, r0
	bl	memcpy_toio
	ldr	r3, [r5]
	mov	r0, r4
	ldr	r3, [r3, r6, lsl #2]
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r1, [r3, #8]
	b	clear_bit
.L6:
	.align	2
.L5:
	.word	edma_info
	.word	edmacc_regs_base
	.word	PARM_SIZE
	.word	dummy_paramset
	.size	edma_free_slot, .-edma_free_slot
	.comm	edmacc_regs_base,4,4
	.comm	edma_info,4,4
	.comm	dummy_paramset,4,4
	.comm	PARM_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
