	.file	"extr_mcf-edma.c_mcf_edma_irq_free.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"edma-tx-00-15"
.LC1:
	.string	"edma-tx-16-55"
.LC2:
	.string	"edma-tx-56-63"
.LC3:
	.string	"edma-err"
	.text
	.p2align 4
	.type	mcf_edma_irq_free, @function
mcf_edma_irq_free:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	lea	rdx, .LC0[rip]
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rsi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	esi, DWORD PTR IORESOURCE_IRQ[rip]
	call	platform_get_resource_byname@PLT
	test	rax, rax
	je	.L2
	mov	ebx, DWORD PTR [rax]
	mov	r12, rax
	cmp	ebx, DWORD PTR 4[rax]
	jg	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	edi, ebx
	mov	rsi, rbp
	add	ebx, 1
	call	free_irq@PLT
	cmp	DWORD PTR 4[r12], ebx
	jge	.L3
.L2:
	mov	esi, DWORD PTR IORESOURCE_IRQ[rip]
	lea	rdx, .LC1[rip]
	mov	rdi, r13
	call	platform_get_resource_byname@PLT
	mov	r12, rax
	test	rax, rax
	je	.L4
	mov	ebx, DWORD PTR [rax]
	cmp	ebx, DWORD PTR 4[rax]
	jg	.L4
	.p2align 4,,10
	.p2align 3
.L5:
	mov	edi, ebx
	mov	rsi, rbp
	add	ebx, 1
	call	free_irq@PLT
	cmp	DWORD PTR 4[r12], ebx
	jge	.L5
.L4:
	mov	rdi, r13
	lea	rsi, .LC2[rip]
	call	platform_get_irq_byname@PLT
	mov	edi, eax
	add	eax, DWORD PTR ENXIO[rip]
	je	.L6
	mov	rsi, rbp
	call	free_irq@PLT
.L6:
	mov	rdi, r13
	lea	rsi, .LC3[rip]
	call	platform_get_irq_byname@PLT
	mov	edi, eax
	add	eax, DWORD PTR ENXIO[rip]
	jne	.L18
	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
.L18:
	.cfi_restore_state
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rsi, rbp
	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	free_irq@PLT
	.cfi_endproc
.LFE0:
	.size	mcf_edma_irq_free, .-mcf_edma_irq_free
	.comm	IORESOURCE_IRQ,4,4
	.comm	ENXIO,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_mcf-edma.c_mcf_edma_irq_free.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"edma-tx-00-15\000"
	.align	2
.LC1:
	.ascii	"edma-tx-16-55\000"
	.align	2
.LC2:
	.ascii	"edma-tx-56-63\000"
	.align	2
.LC3:
	.ascii	"edma-err\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	mcf_edma_irq_free, %function
mcf_edma_irq_free:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r8, .L18
	mov	r5, r1
	ldr	r2, .L18+4
	ldr	r1, [r8]
	mov	r7, r0
	bl	platform_get_resource_byname
	subs	r6, r0, #0
	beq	.L2
	ldr	r4, [r6]
	ldr	r3, [r6, #4]
	cmp	r4, r3
	bgt	.L2
.L3:
	mov	r0, r4
	mov	r1, r5
	bl	free_irq
	ldr	r3, [r6, #4]
	add	r4, r4, #1
	cmp	r3, r4
	bge	.L3
.L2:
	mov	r0, r7
	ldr	r1, [r8]
	ldr	r2, .L18+8
	bl	platform_get_resource_byname
	subs	r6, r0, #0
	beq	.L4
	ldr	r4, [r6]
	ldr	r3, [r6, #4]
	cmp	r4, r3
	bgt	.L4
.L5:
	mov	r0, r4
	mov	r1, r5
	bl	free_irq
	ldr	r3, [r6, #4]
	add	r4, r4, #1
	cmp	r3, r4
	bge	.L5
.L4:
	mov	r0, r7
	ldr	r1, .L18+12
	bl	platform_get_irq_byname
	ldr	r4, .L18+16
	ldr	r3, [r4]
	cmn	r0, r3
	beq	.L6
	mov	r1, r5
	bl	free_irq
.L6:
	mov	r0, r7
	ldr	r1, .L18+20
	bl	platform_get_irq_byname
	ldr	r3, [r4]
	cmn	r0, r3
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r1, r5
	pop	{r4, r5, r6, r7, r8, lr}
	b	free_irq
.L19:
	.align	2
.L18:
	.word	IORESOURCE_IRQ
	.word	.LC0
	.word	.LC1
	.word	.LC2
	.word	ENXIO
	.word	.LC3
	.size	mcf_edma_irq_free, .-mcf_edma_irq_free
	.comm	IORESOURCE_IRQ,4,4
	.comm	ENXIO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
