	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcf_edma_irq_free
_mcf_edma_irq_free:                     ## @mcf_edma_irq_free
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	leaq	L_.str(%rip), %rdx
	callq	_platform_get_resource_byname
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rax, %r12
	movl	(%rax), %ebx
	cmpl	4(%rax), %ebx
	jg	LBB0_3
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_free_irq
	leal	1(%rbx), %eax
	cmpl	4(%r12), %ebx
	movl	%eax, %ebx
	jl	LBB0_2
LBB0_3:
	movl	(%r13), %esi
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	callq	_platform_get_resource_byname
	testq	%rax, %rax
	je	LBB0_6
## %bb.4:
	movq	%rax, %r12
	movl	(%rax), %ebx
	cmpl	4(%rax), %ebx
	jg	LBB0_6
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_free_irq
	leal	1(%rbx), %eax
	cmpl	4(%r12), %ebx
	movl	%eax, %ebx
	jl	LBB0_5
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_platform_get_irq_byname
	movq	_ENXIO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	addl	%eax, %ecx
	je	LBB0_8
## %bb.7:
	movl	%eax, %edi
	movq	%r15, %rsi
	callq	_free_irq
LBB0_8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_platform_get_irq_byname
	movl	(%rbx), %ecx
	addl	%eax, %ecx
	jne	LBB0_10
## %bb.9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_10:
	movl	%eax, %edi
	movq	%r15, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_free_irq                       ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"edma-tx-00-15"

L_.str.1:                               ## @.str.1
	.asciz	"edma-tx-16-55"

L_.str.2:                               ## @.str.2
	.asciz	"edma-tx-56-63"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.3:                               ## @.str.3
	.asciz	"edma-err"

	.no_dead_strip	_mcf_edma_irq_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcf_edma_irq_free
_mcf_edma_irq_free:                     ; @mcf_edma_irq_free
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _IORESOURCE_IRQ@GOTPAGE
Lloh1:
	ldr	x23, [x23, _IORESOURCE_IRQ@GOTPAGEOFF]
	ldr	w1, [x23]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_platform_get_resource_byname
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	ldp	w22, w8, [x0]
	cmp	w22, w8
	b.gt	LBB0_3
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x19
	bl	_free_irq
	add	w8, w22, #1
	ldr	w9, [x21, #4]
	cmp	w22, w9
	mov	x22, x8
	b.lt	LBB0_2
LBB0_3:
	ldr	w1, [x23]
Lloh4:
	adrp	x2, l_.str.1@PAGE
Lloh5:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_platform_get_resource_byname
	cbz	x0, LBB0_6
; %bb.4:
	mov	x21, x0
	ldp	w22, w8, [x0]
	cmp	w22, w8
	b.gt	LBB0_6
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	x1, x19
	bl	_free_irq
	add	w8, w22, #1
	ldr	w9, [x21, #4]
	cmp	w22, w9
	mov	x22, x8
	b.lt	LBB0_5
LBB0_6:
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_platform_get_irq_byname
Lloh8:
	adrp	x21, _ENXIO@GOTPAGE
Lloh9:
	ldr	x21, [x21, _ENXIO@GOTPAGEOFF]
	ldr	w8, [x21]
	cmn	w0, w8
	b.eq	LBB0_8
; %bb.7:
	mov	x1, x19
	bl	_free_irq
LBB0_8:
Lloh10:
	adrp	x1, l_.str.3@PAGE
Lloh11:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_platform_get_irq_byname
	ldr	w8, [x21]
	cmn	w0, w8
	b.ne	LBB0_10
; %bb.9:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_10:
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_free_irq
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"edma-tx-00-15"

l_.str.1:                               ; @.str.1
	.asciz	"edma-tx-16-55"

l_.str.2:                               ; @.str.2
	.asciz	"edma-tx-56-63"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.3:                               ; @.str.3
	.asciz	"edma-err"

	.no_dead_strip	_mcf_edma_irq_free
.subsections_via_symbols
