	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function imxdma_err_handler
_imxdma_err_handler:                    ## @imxdma_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
	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, %r12
	movq	_DMA_DISR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_imx_dmav1_readl
	movl	%eax, %r15d
	movq	_DMA_DBTOSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_imx_dmav1_readl
	movl	%eax, %r14d
	movq	_DMA_DRTOSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_imx_dmav1_readl
	movl	%eax, %ebx
	orl	%r14d, %ebx
	movq	_DMA_DSESR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_imx_dmav1_readl
	movl	%eax, %r13d
	orl	%ebx, %r13d
	movq	_DMA_DBOSR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_imx_dmav1_readl
	orl	%r13d, %eax
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_23
## %bb.1:
	andl	-44(%rbp), %r15d                ## 4-byte Folded Reload
	movq	_DMA_DISR@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_imx_dmav1_writel
	movq	_IMX_DMA_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_23
## %bb.2:
	xorl	%r15d, %r15d
	xorl	%r13d, %r13d
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_21:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %edx
	callq	_dev_warn
	movq	_IMX_DMA_CHANNELS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
LBB0_22:                                ##   in Loop: Header=BB0_3 Depth=1
	incq	%r13
	movslq	%eax, %rcx
	addq	$4, %r15
	cmpq	%rcx, %r13
	jge	LBB0_23
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movl	$1, %ebx
	movl	%r13d, %ecx
	shll	%cl, %ebx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	btl	%r13d, %ecx
	jae	LBB0_22
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_DMA_DBTOSR@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	callq	_imx_dmav1_readl
	testl	%ebx, %eax
	movq	%r15, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r14), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_imx_dmav1_writel
	movq	_IMX_DMA_ERR_BURST@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	xorl	%r14d, %r14d
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_DMA_DRTOSR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_imx_dmav1_readl
	testl	%ebx, %eax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_imx_dmav1_writel
	movq	_IMX_DMA_ERR_REQUEST@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	_DMA_DSESR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_imx_dmav1_readl
	testl	%ebx, %eax
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_imx_dmav1_writel
	movq	_IMX_DMA_ERR_TRANSFER@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_11:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_DMA_DBOSR@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%r12, %rdi
	callq	_imx_dmav1_readl
	testl	%ebx, %eax
	je	LBB0_13
## %bb.12:                              ##   in Loop: Header=BB0_3 Depth=1
	movl	(%r15), %edx
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	_imx_dmav1_writel
	movq	_IMX_DMA_ERR_BUFFER@GOTPCREL(%rip), %rax
	orl	(%rax), %r14d
LBB0_13:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	-56(%rbp), %r15                 ## 8-byte Reload
	leaq	L_.str.2(%rip), %rbx
	movq	8(%r12), %rdi
	addq	%r15, %rdi
	callq	_tasklet_schedule
	movl	(%r12), %edi
	movq	_IMX_DMA_ERR_BURST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %rcx
	andl	%r14d, %eax
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.1(%rip), %rcx
LBB0_15:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_IMX_DMA_ERR_REQUEST@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %r8
	andl	%r14d, %eax
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.3(%rip), %r8
LBB0_17:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_IMX_DMA_ERR_TRANSFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	%rbx, %r9
	andl	%r14d, %eax
	je	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.4(%rip), %r9
LBB0_19:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rax
	movq	_IMX_DMA_ERR_BUFFER@GOTPCREL(%rip), %rdx
	andl	(%rdx), %r14d
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.5(%rip), %rax
	jmp	LBB0_21
LBB0_23:
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_DISR,4,2                   ## @DMA_DISR
	.comm	_DMA_DBTOSR,4,2                 ## @DMA_DBTOSR
	.comm	_DMA_DRTOSR,4,2                 ## @DMA_DRTOSR
	.comm	_DMA_DSESR,4,2                  ## @DMA_DSESR
	.comm	_DMA_DBOSR,4,2                  ## @DMA_DBOSR
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.comm	_IMX_DMA_CHANNELS,4,2           ## @IMX_DMA_CHANNELS
	.comm	_IMX_DMA_ERR_BURST,4,2          ## @IMX_DMA_ERR_BURST
	.comm	_IMX_DMA_ERR_REQUEST,4,2        ## @IMX_DMA_ERR_REQUEST
	.comm	_IMX_DMA_ERR_TRANSFER,4,2       ## @IMX_DMA_ERR_TRANSFER
	.comm	_IMX_DMA_ERR_BUFFER,4,2         ## @IMX_DMA_ERR_BUFFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"DMA timeout on channel %d -%s%s%s%s\n"

L_.str.1:                               ## @.str.1
	.asciz	" burst"

L_.str.2:                               ## @.str.2
	.space	1

L_.str.3:                               ## @.str.3
	.asciz	" request"

L_.str.4:                               ## @.str.4
	.asciz	" transfer"

L_.str.5:                               ## @.str.5
	.asciz	" buffer"

	.no_dead_strip	_imxdma_err_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function imxdma_err_handler
_imxdma_err_handler:                    ; @imxdma_err_handler
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
Lloh0:
	adrp	x22, _DMA_DISR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _DMA_DISR@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_imx_dmav1_readl
	mov	x20, x0
Lloh2:
	adrp	x23, _DMA_DBTOSR@GOTPAGE
Lloh3:
	ldr	x23, [x23, _DMA_DBTOSR@GOTPAGEOFF]
	ldr	w1, [x23]
	mov	x0, x19
	bl	_imx_dmav1_readl
	mov	x21, x0
Lloh4:
	adrp	x8, _DMA_DRTOSR@GOTPAGE
Lloh5:
	ldr	x8, [x8, _DMA_DRTOSR@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_imx_dmav1_readl
	orr	w21, w0, w21
Lloh7:
	adrp	x8, _DMA_DSESR@GOTPAGE
Lloh8:
	ldr	x8, [x8, _DMA_DSESR@GOTPAGEOFF]
Lloh9:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_imx_dmav1_readl
	orr	w21, w21, w0
Lloh10:
	adrp	x8, _DMA_DBOSR@GOTPAGE
Lloh11:
	ldr	x8, [x8, _DMA_DBOSR@GOTPAGEOFF]
Lloh12:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_imx_dmav1_readl
	orr	w27, w21, w0
	cbz	w27, LBB0_15
; %bb.1:
	and	w1, w27, w20
	ldr	w2, [x22]
	mov	x0, x19
	bl	_imx_dmav1_writel
Lloh13:
	adrp	x8, _IMX_DMA_CHANNELS@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IMX_DMA_CHANNELS@GOTPAGEOFF]
Lloh15:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_15
; %bb.2:
	mov	x28, #0
	mov	x20, #0
Lloh16:
	adrp	x24, l_.str.2@PAGE
Lloh17:
	add	x24, x24, l_.str.2@PAGEOFF
Lloh18:
	adrp	x26, _IMX_DMA_ERR_TRANSFER@GOTPAGE
Lloh19:
	ldr	x26, [x26, _IMX_DMA_ERR_TRANSFER@GOTPAGEOFF]
Lloh20:
	adrp	x21, _IMX_DMA_ERR_BUFFER@GOTPAGE
Lloh21:
	ldr	x21, [x21, _IMX_DMA_ERR_BUFFER@GOTPAGEOFF]
	b	LBB0_5
LBB0_3:                                 ;   in Loop: Header=BB0_5 Depth=1
	ldr	x8, [x19, #8]
	add	x0, x8, x28
	bl	_tasklet_schedule
	ldr	w0, [x19]
Lloh22:
	adrp	x8, _IMX_DMA_ERR_BURST@GOTPAGE
Lloh23:
	ldr	x8, [x8, _IMX_DMA_ERR_BURST@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	tst	w8, w23
Lloh25:
	adrp	x8, l_.str.1@PAGE
Lloh26:
	add	x8, x8, l_.str.1@PAGEOFF
	csel	x3, x24, x8, eq
Lloh27:
	adrp	x8, _IMX_DMA_ERR_REQUEST@GOTPAGE
Lloh28:
	ldr	x8, [x8, _IMX_DMA_ERR_REQUEST@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	tst	w8, w23
Lloh30:
	adrp	x8, l_.str.3@PAGE
Lloh31:
	add	x8, x8, l_.str.3@PAGEOFF
	csel	x4, x24, x8, eq
	ldr	w8, [x26]
	tst	w8, w23
Lloh32:
	adrp	x8, l_.str.4@PAGE
Lloh33:
	add	x8, x8, l_.str.4@PAGEOFF
	csel	x5, x24, x8, eq
	ldr	w8, [x21]
	tst	w8, w23
Lloh34:
	adrp	x8, l_.str.5@PAGE
Lloh35:
	add	x8, x8, l_.str.5@PAGEOFF
	csel	x6, x24, x8, eq
Lloh36:
	adrp	x1, l_.str@PAGE
Lloh37:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_dev_warn
Lloh38:
	adrp	x8, _IMX_DMA_CHANNELS@GOTPAGE
Lloh39:
	ldr	x8, [x8, _IMX_DMA_CHANNELS@GOTPAGEOFF]
Lloh40:
	ldr	w8, [x8]
Lloh41:
	adrp	x23, _DMA_DBTOSR@GOTPAGE
Lloh42:
	ldr	x23, [x23, _DMA_DBTOSR@GOTPAGEOFF]
LBB0_4:                                 ;   in Loop: Header=BB0_5 Depth=1
	add	x20, x20, #1
	add	x28, x28, #4
	cmp	x20, w8, sxtw
	b.ge	LBB0_15
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	mov	w9, #1
	lsl	w22, w9, w20
	tst	w22, w27
	b.eq	LBB0_4
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w1, [x23]
	mov	x0, x19
	bl	_imx_dmav1_readl
	tst	w0, w22
	b.eq	LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x23]
	mov	x0, x19
	mov	x1, x22
	bl	_imx_dmav1_writel
Lloh43:
	adrp	x8, _IMX_DMA_ERR_BURST@GOTPAGE
Lloh44:
	ldr	x8, [x8, _IMX_DMA_ERR_BURST@GOTPAGEOFF]
Lloh45:
	ldr	w23, [x8]
	b	LBB0_9
LBB0_8:                                 ;   in Loop: Header=BB0_5 Depth=1
	mov	w23, #0
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
Lloh46:
	adrp	x25, _DMA_DRTOSR@GOTPAGE
Lloh47:
	ldr	x25, [x25, _DMA_DRTOSR@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_imx_dmav1_readl
	tst	w0, w22
	b.eq	LBB0_11
; %bb.10:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x22
	bl	_imx_dmav1_writel
Lloh48:
	adrp	x8, _IMX_DMA_ERR_REQUEST@GOTPAGE
Lloh49:
	ldr	x8, [x8, _IMX_DMA_ERR_REQUEST@GOTPAGEOFF]
Lloh50:
	ldr	w8, [x8]
	orr	w23, w8, w23
LBB0_11:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh51:
	adrp	x25, _DMA_DSESR@GOTPAGE
Lloh52:
	ldr	x25, [x25, _DMA_DSESR@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_imx_dmav1_readl
	tst	w0, w22
	b.eq	LBB0_13
; %bb.12:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x22
	bl	_imx_dmav1_writel
	ldr	w8, [x26]
	orr	w23, w8, w23
LBB0_13:                                ;   in Loop: Header=BB0_5 Depth=1
Lloh53:
	adrp	x25, _DMA_DBOSR@GOTPAGE
Lloh54:
	ldr	x25, [x25, _DMA_DBOSR@GOTPAGEOFF]
	ldr	w1, [x25]
	mov	x0, x19
	bl	_imx_dmav1_readl
	tst	w0, w22
	b.eq	LBB0_3
; %bb.14:                               ;   in Loop: Header=BB0_5 Depth=1
	ldr	w2, [x25]
	mov	x0, x19
	mov	x1, x22
	bl	_imx_dmav1_writel
	ldr	w8, [x21]
	orr	w23, w8, w23
	b	LBB0_3
LBB0_15:
Lloh55:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh56:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh57:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGot	Lloh20, Lloh21
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpAdd	Lloh34, Lloh35
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpAdd	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh48, Lloh49, Lloh50
	.loh AdrpLdrGot	Lloh51, Lloh52
	.loh AdrpLdrGot	Lloh53, Lloh54
	.loh AdrpLdrGotLdr	Lloh55, Lloh56, Lloh57
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_DISR,4,2                   ; @DMA_DISR
	.comm	_DMA_DBTOSR,4,2                 ; @DMA_DBTOSR
	.comm	_DMA_DRTOSR,4,2                 ; @DMA_DRTOSR
	.comm	_DMA_DSESR,4,2                  ; @DMA_DSESR
	.comm	_DMA_DBOSR,4,2                  ; @DMA_DBOSR
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.comm	_IMX_DMA_CHANNELS,4,2           ; @IMX_DMA_CHANNELS
	.comm	_IMX_DMA_ERR_BURST,4,2          ; @IMX_DMA_ERR_BURST
	.comm	_IMX_DMA_ERR_REQUEST,4,2        ; @IMX_DMA_ERR_REQUEST
	.comm	_IMX_DMA_ERR_TRANSFER,4,2       ; @IMX_DMA_ERR_TRANSFER
	.comm	_IMX_DMA_ERR_BUFFER,4,2         ; @IMX_DMA_ERR_BUFFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"DMA timeout on channel %d -%s%s%s%s\n"

l_.str.1:                               ; @.str.1
	.asciz	" burst"

l_.str.2:                               ; @.str.2
	.space	1

l_.str.3:                               ; @.str.3
	.asciz	" request"

l_.str.4:                               ; @.str.4
	.asciz	" transfer"

l_.str.5:                               ; @.str.5
	.asciz	" buffer"

	.no_dead_strip	_imxdma_err_handler
.subsections_via_symbols
