	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsldma_chan_irq
_fsldma_chan_irq:                       ## @fsldma_chan_irq
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rsi, %rdi
	callq	_get_sr
	movl	%eax, %ebx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_set_sr
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_chan_dbg
	movq	_FSL_DMA_SR_CB@GOTPCREL(%rip), %rax
	movq	_FSL_DMA_SR_CH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r15d
	orl	(%rax), %r15d
	notl	%r15d
	andl	%ebx, %r15d
	je	LBB0_1
## %bb.2:
	movq	_FSL_DMA_SR_TE@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_4
## %bb.3:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_chan_err
LBB0_4:
	movq	_FSL_DMA_SR_PE@GOTPCREL(%rip), %rbx
	testl	%r15d, (%rbx)
	je	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_chan_dbg
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, %r15d
	movq	%r14, %rdi
	callq	_get_bcr
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_chan_err
LBB0_7:
	movq	_FSL_DMA_SR_EOCDI@GOTPCREL(%rip), %rbx
	testl	%r15d, (%rbx)
	je	LBB0_9
## %bb.8:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_chan_dbg
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, %r15d
LBB0_9:
	movq	_FSL_DMA_SR_EOLNI@GOTPCREL(%rip), %rbx
	testl	%r15d, (%rbx)
	je	LBB0_11
## %bb.10:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_chan_dbg
	movl	(%rbx), %eax
	notl	%eax
	andl	%eax, %r15d
LBB0_11:
	movq	%r14, %rdi
	callq	_dma_is_idle
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	testl	%r15d, %r15d
	je	LBB0_15
LBB0_14:
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_chan_err
LBB0_15:
	movq	%r14, %rdi
	callq	_tasklet_schedule
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_chan_dbg
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_16
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_16:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_chan_err
	testl	%r15d, %r15d
	jne	LBB0_14
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"irq: stat = 0x%x\n"

	.comm	_FSL_DMA_SR_CB,4,2              ## @FSL_DMA_SR_CB
	.comm	_FSL_DMA_SR_CH,4,2              ## @FSL_DMA_SR_CH
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_FSL_DMA_SR_TE,4,2              ## @FSL_DMA_SR_TE
L_.str.1:                               ## @.str.1
	.asciz	"Transfer Error!\n"

	.comm	_FSL_DMA_SR_PE,4,2              ## @FSL_DMA_SR_PE
L_.str.2:                               ## @.str.2
	.asciz	"irq: Programming Error INT\n"

L_.str.3:                               ## @.str.3
	.asciz	"Programming Error!\n"

	.comm	_FSL_DMA_SR_EOCDI,4,2           ## @FSL_DMA_SR_EOCDI
L_.str.4:                               ## @.str.4
	.asciz	"irq: End-of-Chain link INT\n"

	.comm	_FSL_DMA_SR_EOLNI,4,2           ## @FSL_DMA_SR_EOLNI
L_.str.5:                               ## @.str.5
	.asciz	"irq: End-of-link INT\n"

L_.str.6:                               ## @.str.6
	.asciz	"irq: controller not idle!\n"

L_.str.7:                               ## @.str.7
	.asciz	"irq: unhandled sr 0x%08x\n"

L_.str.8:                               ## @.str.8
	.asciz	"irq: Exit\n"

	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_fsldma_chan_irq
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsldma_chan_irq
_fsldma_chan_irq:                       ; @fsldma_chan_irq
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x19, x1
	mov	x0, x1
	bl	_get_sr
	mov	x20, x0
	mov	x0, x19
	mov	x1, x20
	bl	_set_sr
	str	x20, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_chan_dbg
Lloh2:
	adrp	x8, _FSL_DMA_SR_CB@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FSL_DMA_SR_CB@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _FSL_DMA_SR_CH@GOTPAGE
Lloh6:
	ldr	x9, [x9, _FSL_DMA_SR_CH@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	orr	w8, w9, w8
	bics	w20, w20, w8
	b.eq	LBB0_14
; %bb.1:
Lloh8:
	adrp	x8, _FSL_DMA_SR_TE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FSL_DMA_SR_TE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_3
; %bb.2:
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_chan_err
LBB0_3:
Lloh13:
	adrp	x21, _FSL_DMA_SR_PE@GOTPAGE
Lloh14:
	ldr	x21, [x21, _FSL_DMA_SR_PE@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.4:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_chan_dbg
	ldr	w8, [x21]
	bic	w20, w20, w8
	mov	x0, x19
	bl	_get_bcr
	cbz	x0, LBB0_6
; %bb.5:
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_chan_err
LBB0_6:
Lloh19:
	adrp	x21, _FSL_DMA_SR_EOCDI@GOTPAGE
Lloh20:
	ldr	x21, [x21, _FSL_DMA_SR_EOCDI@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_8
; %bb.7:
Lloh21:
	adrp	x1, l_.str.4@PAGE
Lloh22:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_chan_dbg
	ldr	w8, [x21]
	bic	w20, w20, w8
LBB0_8:
Lloh23:
	adrp	x21, _FSL_DMA_SR_EOLNI@GOTPAGE
Lloh24:
	ldr	x21, [x21, _FSL_DMA_SR_EOLNI@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w20
	b.eq	LBB0_10
; %bb.9:
Lloh25:
	adrp	x1, l_.str.5@PAGE
Lloh26:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_chan_dbg
	ldr	w8, [x21]
	bic	w20, w20, w8
LBB0_10:
	mov	x0, x19
	bl	_dma_is_idle
	cbz	w0, LBB0_16
; %bb.11:
	cbz	w20, LBB0_13
LBB0_12:
	str	x20, [sp]
Lloh27:
	adrp	x1, l_.str.7@PAGE
Lloh28:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_chan_err
LBB0_13:
	mov	x0, x19
	bl	_tasklet_schedule
Lloh29:
	adrp	x1, l_.str.8@PAGE
Lloh30:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_chan_dbg
Lloh31:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_15
LBB0_14:
Lloh33:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh34:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_15:
	ldr	w0, [x8]
	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
	add	sp, sp, #64
	ret
LBB0_16:
Lloh35:
	adrp	x1, l_.str.6@PAGE
Lloh36:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_chan_err
	cbnz	w20, LBB0_12
	b	LBB0_13
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh33, Lloh34
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"irq: stat = 0x%x\n"

	.comm	_FSL_DMA_SR_CB,4,2              ; @FSL_DMA_SR_CB
	.comm	_FSL_DMA_SR_CH,4,2              ; @FSL_DMA_SR_CH
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_FSL_DMA_SR_TE,4,2              ; @FSL_DMA_SR_TE
l_.str.1:                               ; @.str.1
	.asciz	"Transfer Error!\n"

	.comm	_FSL_DMA_SR_PE,4,2              ; @FSL_DMA_SR_PE
l_.str.2:                               ; @.str.2
	.asciz	"irq: Programming Error INT\n"

l_.str.3:                               ; @.str.3
	.asciz	"Programming Error!\n"

	.comm	_FSL_DMA_SR_EOCDI,4,2           ; @FSL_DMA_SR_EOCDI
l_.str.4:                               ; @.str.4
	.asciz	"irq: End-of-Chain link INT\n"

	.comm	_FSL_DMA_SR_EOLNI,4,2           ; @FSL_DMA_SR_EOLNI
l_.str.5:                               ; @.str.5
	.asciz	"irq: End-of-link INT\n"

l_.str.6:                               ; @.str.6
	.asciz	"irq: controller not idle!\n"

l_.str.7:                               ; @.str.7
	.asciz	"irq: unhandled sr 0x%08x\n"

l_.str.8:                               ; @.str.8
	.asciz	"irq: Exit\n"

	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_fsldma_chan_irq
.subsections_via_symbols
