	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcf_edma_irq_init
_mcf_edma_irq_init:                     ## @mcf_edma_irq_init
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdx
	callq	_platform_get_resource_byname
	movl	$-1, %r13d
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %r12
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movl	(%rax), %ebx
	cmpl	4(%rax), %ebx
	jg	LBB0_5
## %bb.2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	leaq	L_.str.1(%rip), %r14
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	_mcf_edma_tx_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_request_irq
	orl	%eax, %r13d
	leal	1(%rbx), %eax
	cmpl	4(%r12), %ebx
	movl	%eax, %ebx
	jl	LBB0_3
## %bb.4:
	testl	%r13d, %r13d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	_IORESOURCE_IRQ@GOTPCREL(%rip), %r15
	jne	LBB0_15
LBB0_5:
	movl	(%r15), %esi
	leaq	L_.str.2(%rip), %rdx
	movq	%r14, %rdi
	callq	_platform_get_resource_byname
	movl	$-1, %r13d
	testq	%rax, %rax
	je	LBB0_15
## %bb.6:
	movq	%rax, %r12
	movl	(%rax), %ebx
	cmpl	4(%rax), %ebx
	jg	LBB0_10
## %bb.7:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	xorl	%r13d, %r13d
	leaq	L_.str.1(%rip), %r14
	movq	-48(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_8:                                 ## =>This Inner Loop Header: Depth=1
	movq	_mcf_edma_tx_handler@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	%ebx, %edi
	xorl	%edx, %edx
	movq	%r14, %rcx
	movq	%r15, %r8
	callq	_request_irq
	orl	%eax, %r13d
	leal	1(%rbx), %eax
	cmpl	4(%r12), %ebx
	movl	%eax, %ebx
	jl	LBB0_8
## %bb.9:
	testl	%r13d, %r13d
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jne	LBB0_15
LBB0_10:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_platform_get_irq_byname
	movq	_ENXIO@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	addl	%eax, %ecx
	je	LBB0_12
## %bb.11:
	movq	_mcf_edma_tx_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rcx
	movl	%eax, %edi
	xorl	%edx, %edx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_request_irq
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_15
LBB0_12:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_platform_get_irq_byname
	movl	(%rbx), %ecx
	addl	%eax, %ecx
	je	LBB0_14
## %bb.13:
	movq	_mcf_edma_err_handler@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	leaq	L_.str.1(%rip), %rcx
	movl	%eax, %edi
	xorl	%edx, %edx
	movq	-48(%rbp), %r8                  ## 8-byte Reload
	callq	_request_irq
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_15
LBB0_14:
	xorl	%r13d, %r13d
LBB0_15:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IORESOURCE_IRQ,4,2             ## @IORESOURCE_IRQ
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"edma-tx-00-15"

	.comm	_mcf_edma_tx_handler,4,2        ## @mcf_edma_tx_handler
L_.str.1:                               ## @.str.1
	.asciz	"eDMA"

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

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

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

	.comm	_mcf_edma_err_handler,4,2       ## @mcf_edma_err_handler
	.no_dead_strip	_mcf_edma_irq_init
.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_init
_mcf_edma_irq_init:                     ; @mcf_edma_irq_init
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x25, _IORESOURCE_IRQ@GOTPAGE
Lloh1:
	ldr	x25, [x25, _IORESOURCE_IRQ@GOTPAGEOFF]
	ldr	w1, [x25]
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	bl	_platform_get_resource_byname
	cbz	x0, LBB0_15
; %bb.1:
	mov	x22, x0
	ldp	w23, w8, [x0]
	cmp	w23, w8
	b.gt	LBB0_5
; %bb.2:
	mov	w21, #0
Lloh4:
	adrp	x26, _mcf_edma_tx_handler@GOTPAGE
Lloh5:
	ldr	x26, [x26, _mcf_edma_tx_handler@GOTPAGEOFF]
Lloh6:
	adrp	x24, l_.str.1@PAGE
Lloh7:
	add	x24, x24, l_.str.1@PAGEOFF
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x26]
	mov	x0, x23
	mov	w2, #0
	mov	x3, x24
	mov	x4, x19
	bl	_request_irq
	orr	w21, w0, w21
	add	w8, w23, #1
	ldr	w9, [x22, #4]
	cmp	w23, w9
	mov	x23, x8
	b.lt	LBB0_3
; %bb.4:
	cbnz	w21, LBB0_16
LBB0_5:
	ldr	w1, [x25]
Lloh8:
	adrp	x2, l_.str.2@PAGE
Lloh9:
	add	x2, x2, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_platform_get_resource_byname
	cbz	x0, LBB0_15
; %bb.6:
	mov	x22, x0
	ldp	w23, w8, [x0]
	cmp	w23, w8
	b.gt	LBB0_10
; %bb.7:
	mov	w21, #0
Lloh10:
	adrp	x25, _mcf_edma_tx_handler@GOTPAGE
Lloh11:
	ldr	x25, [x25, _mcf_edma_tx_handler@GOTPAGEOFF]
Lloh12:
	adrp	x24, l_.str.1@PAGE
Lloh13:
	add	x24, x24, l_.str.1@PAGEOFF
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w1, [x25]
	mov	x0, x23
	mov	w2, #0
	mov	x3, x24
	mov	x4, x19
	bl	_request_irq
	orr	w21, w0, w21
	add	w8, w23, #1
	ldr	w9, [x22, #4]
	cmp	w23, w9
	mov	x23, x8
	b.lt	LBB0_8
; %bb.9:
	cbnz	w21, LBB0_16
LBB0_10:
Lloh14:
	adrp	x1, l_.str.3@PAGE
Lloh15:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_platform_get_irq_byname
Lloh16:
	adrp	x22, _ENXIO@GOTPAGE
Lloh17:
	ldr	x22, [x22, _ENXIO@GOTPAGEOFF]
	ldr	w8, [x22]
	cmn	w0, w8
	b.eq	LBB0_12
; %bb.11:
Lloh18:
	adrp	x8, _mcf_edma_tx_handler@GOTPAGE
Lloh19:
	ldr	x8, [x8, _mcf_edma_tx_handler@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
Lloh21:
	adrp	x3, l_.str.1@PAGE
Lloh22:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	mov	x21, x0
	cbnz	w0, LBB0_16
LBB0_12:
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_platform_get_irq_byname
	ldr	w8, [x22]
	cmn	w0, w8
	b.eq	LBB0_14
; %bb.13:
Lloh25:
	adrp	x8, _mcf_edma_err_handler@GOTPAGE
Lloh26:
	ldr	x8, [x8, _mcf_edma_err_handler@GOTPAGEOFF]
Lloh27:
	ldr	w1, [x8]
Lloh28:
	adrp	x3, l_.str.1@PAGE
Lloh29:
	add	x3, x3, l_.str.1@PAGEOFF
	mov	w2, #0
	mov	x4, x19
	bl	_request_irq
	mov	x21, x0
	cbnz	w0, LBB0_16
LBB0_14:
	mov	w21, #0
	b	LBB0_16
LBB0_15:
	mov	w21, #-1
LBB0_16:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_IORESOURCE_IRQ,4,2             ; @IORESOURCE_IRQ
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"edma-tx-00-15"

	.comm	_mcf_edma_tx_handler,4,2        ; @mcf_edma_tx_handler
l_.str.1:                               ; @.str.1
	.asciz	"eDMA"

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

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

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

	.comm	_mcf_edma_err_handler,4,2       ; @mcf_edma_err_handler
	.no_dead_strip	_mcf_edma_irq_init
.subsections_via_symbols
