	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mcf_edma_err_handler
_mcf_edma_err_handler:                  ## @mcf_edma_err_handler
	.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
	movl	16(%rsi), %edi
	callq	_ioread32
	movq	_IRQ_NONE@GOTPCREL(%rip), %rdx
	testl	%eax, %eax
	je	LBB0_13
## %bb.1:
	movl	%eax, %r14d
	movq	_EDMA_CHANNELS@GOTPCREL(%rip), %r13
	movl	(%r13), %eax
	incl	%eax
	cmpl	$3, %eax
	jae	LBB0_2
LBB0_6:
	movl	12(%r15), %edi
	callq	_ioread32
	testl	%eax, %eax
	movq	_IRQ_NONE@GOTPCREL(%rip), %rdx
	je	LBB0_13
## %bb.7:
	movl	%eax, %r14d
	movl	(%r13), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rdx
	cmpl	%eax, %ecx
	jae	LBB0_13
## %bb.8:
	movl	%ecx, %ebx
	movq	%rbx, %r12
	shlq	$4, %r12
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_9 Depth=1
	incq	%rbx
	movl	(%r13), %eax
	addq	$16, %r12
	cmpq	%rax, %rbx
	jae	LBB0_12
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	movl	%ebx, %edi
	subl	%ecx, %edi
	callq	_BIT
	testl	%r14d, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_9 Depth=1
	movq	(%r15), %rdi
	addq	%r12, %rdi
	callq	_fsl_edma_disable_request
	movl	%ebx, %edi
	callq	_EDMA_CERR_CERR
	movl	8(%r15), %esi
	movl	%eax, %edi
	callq	_iowrite8
	movq	_DMA_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx,%r12)
	movl	$1, (%rcx,%r12)
	jmp	LBB0_11
LBB0_2:
	xorl	%r12d, %r12d
	xorl	%ebx, %ebx
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	incq	%rbx
	movl	(%r13), %eax
	movl	%eax, %ecx
	shrl	$31, %ecx
	addl	%eax, %ecx
	sarl	%ecx
	addq	$16, %r12
	cmpq	%rcx, %rbx
	jae	LBB0_6
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	callq	_BIT
	testl	%r14d, %eax
	je	LBB0_5
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r15), %rdi
	addq	%r12, %rdi
	callq	_fsl_edma_disable_request
	movl	%ebx, %edi
	callq	_EDMA_CERR_CERR
	movl	8(%r15), %esi
	movl	%eax, %edi
	callq	_iowrite8
	movq	_DMA_ERROR@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	(%r15), %rcx
	movq	%rax, 8(%rcx,%r12)
	movl	$1, (%rcx,%r12)
	jmp	LBB0_5
LBB0_12:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rdx
LBB0_13:
	movl	(%rdx), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_EDMA_CHANNELS,4,2              ## @EDMA_CHANNELS
	.comm	_DMA_ERROR,8,3                  ## @DMA_ERROR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_mcf_edma_err_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mcf_edma_err_handler
_mcf_edma_err_handler:                  ; @mcf_edma_err_handler
	.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
	ldr	w0, [x1, #16]
	bl	_ioread32
	cbz	w0, LBB0_8
; %bb.1:
Lloh0:
	adrp	x22, _EDMA_CHANNELS@GOTPAGE
Lloh1:
	ldr	x22, [x22, _EDMA_CHANNELS@GOTPAGEOFF]
	ldr	w8, [x22]
	add	w8, w8, #1
	cmp	w8, #3
	b.hs	LBB0_9
LBB0_2:
	ldr	w0, [x19, #12]
	bl	_ioread32
	cbz	w0, LBB0_8
; %bb.3:
	ldr	w8, [x22]
	cmp	w8, #0
	cinc	w9, w8, lt
	asr	w21, w9, #1
	cmp	w21, w8
	b.hs	LBB0_13
; %bb.4:
	mov	x20, x0
	lsl	x24, x21, #4
Lloh2:
	adrp	x23, _IRQ_HANDLED@GOTPAGE
Lloh3:
	ldr	x23, [x23, _IRQ_HANDLED@GOTPAGEOFF]
Lloh4:
	adrp	x25, _DMA_ERROR@GOTPAGE
Lloh5:
	ldr	x25, [x25, _DMA_ERROR@GOTPAGEOFF]
	mov	w26, #1
	b	LBB0_6
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x21, x21, #1
	ldr	w8, [x22]
	add	x24, x24, #16
	cmp	x21, x8
	b.hs	LBB0_14
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	cmp	w8, #0
	cinc	w8, w8, lt
	sub	w0, w21, w8, asr #1
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_5
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x19]
	add	x0, x8, x24
	bl	_fsl_edma_disable_request
	mov	x0, x21
	bl	_EDMA_CERR_CERR
	ldr	w1, [x19, #8]
	bl	_iowrite8
	ldr	x8, [x25]
	ldr	x9, [x19]
	add	x9, x9, x24
	str	x8, [x9, #8]
	str	w26, [x9]
	b	LBB0_5
LBB0_8:
Lloh6:
	adrp	x23, _IRQ_NONE@GOTPAGE
Lloh7:
	ldr	x23, [x23, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_14
LBB0_9:
	mov	x20, x0
	mov	x23, #0
	mov	x21, #0
Lloh8:
	adrp	x24, _DMA_ERROR@GOTPAGE
Lloh9:
	ldr	x24, [x24, _DMA_ERROR@GOTPAGEOFF]
	mov	w25, #1
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	add	x21, x21, #1
	ldr	w8, [x22]
	cmp	w8, #0
	cinc	w8, w8, lt
	asr	w8, w8, #1
	add	x23, x23, #16
	cmp	x21, x8
	b.hs	LBB0_2
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_BIT
	tst	w0, w20
	b.eq	LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	ldr	x8, [x19]
	add	x0, x8, x23
	bl	_fsl_edma_disable_request
	mov	x0, x21
	bl	_EDMA_CERR_CERR
	ldr	w1, [x19, #8]
	bl	_iowrite8
	ldr	x8, [x24]
	ldr	x9, [x19]
	add	x9, x9, x23
	str	x8, [x9, #8]
	str	w25, [x9]
	b	LBB0_10
LBB0_13:
Lloh10:
	adrp	x23, _IRQ_HANDLED@GOTPAGE
Lloh11:
	ldr	x23, [x23, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_14:
	ldr	w0, [x23]
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_EDMA_CHANNELS,4,2              ; @EDMA_CHANNELS
	.comm	_DMA_ERROR,8,3                  ; @DMA_ERROR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_mcf_edma_err_handler
.subsections_via_symbols
