	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fsl_dma_chan_do_interrupt
_fsl_dma_chan_do_interrupt:             ## @fsl_dma_chan_do_interrupt
	.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, %r14
	movq	%rsi, %rdi
	callq	_get_sr
	movl	%eax, %ebx
	movl	4(%r14), %edi
	movl	8(%r14), %edx
	leaq	L_.str(%rip), %rsi
	movl	%eax, %ecx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_set_sr
	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:
	movl	4(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
LBB0_4:
	movq	_FSL_DMA_SR_PE@GOTPCREL(%rip), %r12
	testl	%r15d, (%r12)
	je	LBB0_5
## %bb.6:
	movl	4(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r14, %rdi
	callq	_get_bcr
	xorl	%ebx, %ebx
	testq	%rax, %rax
	sete	%bl
	movl	(%r12), %eax
	notl	%eax
	andl	%eax, %r15d
	jmp	LBB0_7
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	jmp	LBB0_21
LBB0_5:
	xorl	%ebx, %ebx
LBB0_7:
	movq	_FSL_DMA_SR_EOSI@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	je	LBB0_8
## %bb.9:
	movl	4(%r14), %edi
	leaq	L_.str.3(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	4(%r14), %r12d
	movq	%r14, %rdi
	callq	_get_cdar
	movq	%rax, %r13
	movq	%r14, %rdi
	callq	_get_ndar
	leaq	L_.str.4(%rip), %rsi
	movl	%r12d, %edi
	movq	%r13, %rdx
	movq	%rax, %rcx
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	_FSL_DMA_SR_EOSI@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	andl	%eax, %r15d
	movl	$1, %r12d
	jmp	LBB0_10
LBB0_8:
	movl	%ebx, %r12d
LBB0_10:
	movq	_FSL_DMA_SR_EOCDI@GOTPCREL(%rip), %r13
	testl	%r15d, (%r13)
	je	LBB0_12
## %bb.11:
	movl	4(%r14), %edi
	leaq	L_.str.5(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%r13), %eax
	notl	%eax
	andl	%eax, %r15d
	movl	$1, %r12d
	movl	$1, %ebx
LBB0_12:
	movq	_FSL_DMA_SR_EOLNI@GOTPCREL(%rip), %r13
	testl	%r15d, (%r13)
	je	LBB0_14
## %bb.13:
	movl	4(%r14), %edi
	leaq	L_.str.6(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movl	(%r13), %eax
	notl	%eax
	andl	%eax, %r15d
	movl	$1, %ebx
LBB0_14:
	testl	%r12d, %r12d
	je	LBB0_16
## %bb.15:
	movq	%r14, %rdi
	callq	_fsl_dma_update_completed_cookie
LBB0_16:
	testl	%ebx, %ebx
	je	LBB0_18
## %bb.17:
	movq	%r14, %rdi
	callq	_fsl_chan_xfer_ld_queue
LBB0_18:
	testl	%r15d, %r15d
	je	LBB0_20
## %bb.19:
	movl	4(%r14), %edi
	leaq	L_.str.7(%rip), %rsi
	movl	%r15d, %edx
	xorl	%eax, %eax
	callq	_dev_dbg
LBB0_20:
	movl	4(%r14), %edi
	leaq	L_.str.8(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_dbg
	movq	%r14, %rdi
	callq	_tasklet_schedule
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
LBB0_21:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"event: channel %d, 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	"event: Programming Error INT\n"

	.comm	_FSL_DMA_SR_EOSI,4,2            ## @FSL_DMA_SR_EOSI
L_.str.3:                               ## @.str.3
	.asciz	"event: End-of-segments INT\n"

L_.str.4:                               ## @.str.4
	.asciz	"event: clndar 0x%llx, nlndar 0x%llx\n"

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

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

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

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

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fsl_dma_chan_do_interrupt
_fsl_dma_chan_do_interrupt:             ; @fsl_dma_chan_do_interrupt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x1
	mov	x0, x1
	bl	_get_sr
	mov	x20, x0
	ldp	w0, w8, [x19, #4]
	stp	x8, x20, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	mov	x1, x20
	bl	_set_sr
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	w22, w20, w8
	b.eq	LBB0_5
; %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, w22
	b.eq	LBB0_3
; %bb.2:
	ldr	w0, [x19, #4]
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
LBB0_3:
Lloh13:
	adrp	x20, _FSL_DMA_SR_PE@GOTPAGE
Lloh14:
	ldr	x20, [x20, _FSL_DMA_SR_PE@GOTPAGEOFF]
	ldr	w8, [x20]
	tst	w8, w22
	b.eq	LBB0_6
; %bb.4:
	ldr	w0, [x19, #4]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	bl	_get_bcr
	cmp	x0, #0
	cset	w23, eq
	ldr	w8, [x20]
	bic	w22, w22, w8
	b	LBB0_7
LBB0_5:
Lloh17:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
	b	LBB0_21
LBB0_6:
	mov	w23, #0
LBB0_7:
Lloh19:
	adrp	x24, _FSL_DMA_SR_EOSI@GOTPAGE
Lloh20:
	ldr	x24, [x24, _FSL_DMA_SR_EOSI@GOTPAGEOFF]
	ldr	w8, [x24]
	tst	w8, w22
	b.eq	LBB0_9
; %bb.8:
	ldr	w0, [x19, #4]
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_dbg
	ldr	w20, [x19, #4]
	mov	x0, x19
	bl	_get_cdar
	mov	x21, x0
	mov	x0, x19
	bl	_get_ndar
	stp	x21, x0, [sp]
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	ldr	w8, [x24]
	bic	w22, w22, w8
	mov	w20, #1
	b	LBB0_10
LBB0_9:
	mov	x20, x23
LBB0_10:
Lloh25:
	adrp	x21, _FSL_DMA_SR_EOCDI@GOTPAGE
Lloh26:
	ldr	x21, [x21, _FSL_DMA_SR_EOCDI@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w22
	b.eq	LBB0_12
; %bb.11:
	ldr	w0, [x19, #4]
Lloh27:
	adrp	x1, l_.str.5@PAGE
Lloh28:
	add	x1, x1, l_.str.5@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x21]
	bic	w22, w22, w8
	mov	w20, #1
	mov	w23, #1
LBB0_12:
Lloh29:
	adrp	x21, _FSL_DMA_SR_EOLNI@GOTPAGE
Lloh30:
	ldr	x21, [x21, _FSL_DMA_SR_EOLNI@GOTPAGEOFF]
	ldr	w8, [x21]
	tst	w8, w22
	b.eq	LBB0_14
; %bb.13:
	ldr	w0, [x19, #4]
Lloh31:
	adrp	x1, l_.str.6@PAGE
Lloh32:
	add	x1, x1, l_.str.6@PAGEOFF
	bl	_dev_dbg
	ldr	w8, [x21]
	bic	w22, w22, w8
	mov	w23, #1
LBB0_14:
	cbz	w20, LBB0_16
; %bb.15:
	mov	x0, x19
	bl	_fsl_dma_update_completed_cookie
LBB0_16:
	cbz	w23, LBB0_18
; %bb.17:
	mov	x0, x19
	bl	_fsl_chan_xfer_ld_queue
LBB0_18:
	cbz	w22, LBB0_20
; %bb.19:
	ldr	w0, [x19, #4]
	str	x22, [sp]
Lloh33:
	adrp	x1, l_.str.7@PAGE
Lloh34:
	add	x1, x1, l_.str.7@PAGEOFF
	bl	_dev_dbg
LBB0_20:
	ldr	w0, [x19, #4]
Lloh35:
	adrp	x1, l_.str.8@PAGE
Lloh36:
	add	x1, x1, l_.str.8@PAGEOFF
	bl	_dev_dbg
	mov	x0, x19
	bl	_tasklet_schedule
Lloh37:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh38:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
LBB0_21:
	ldr	w0, [x8]
	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
	add	sp, sp, #80
	ret
	.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 AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpLdrGot	Lloh19, Lloh20
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGot	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.loh AdrpAdd	Lloh33, Lloh34
	.loh AdrpLdrGot	Lloh37, Lloh38
	.loh AdrpAdd	Lloh35, Lloh36
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"event: channel %d, 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	"event: Programming Error INT\n"

	.comm	_FSL_DMA_SR_EOSI,4,2            ; @FSL_DMA_SR_EOSI
l_.str.3:                               ; @.str.3
	.asciz	"event: End-of-segments INT\n"

l_.str.4:                               ; @.str.4
	.asciz	"event: clndar 0x%llx, nlndar 0x%llx\n"

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

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

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

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

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