	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xilinx_dma_irq_handler
_xilinx_dma_irq_handler:                ## @xilinx_dma_irq_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, %rbx
	movq	_XILINX_DMA_REG_DMASR@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_dma_ctrl_read
	movl	%eax, %r14d
	movq	_XILINX_DMA_DMAXR_ALL_IRQ_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	andl	%r14d, %edx
	je	LBB0_1
## %bb.2:
	movl	(%r12), %esi
	movq	%rbx, %rdi
	callq	_dma_ctrl_write
	movq	_XILINX_DMA_DMASR_ERR_IRQ@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_6
## %bb.3:
	movq	_XILINX_DMA_DMASR_ALL_ERR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	%r14d, %r15d
	movl	(%r12), %esi
	movq	_XILINX_DMA_DMASR_ERR_RECOVER_MASK@GOTPCREL(%rip), %r12
	movl	(%r12), %edx
	andl	%r15d, %edx
	movq	%rbx, %rdi
	callq	_dma_ctrl_write
	cmpl	$0, 28(%rbx)
	je	LBB0_5
## %bb.4:
	movl	(%r12), %eax
	notl	%eax
	testl	%eax, %r15d
	je	LBB0_6
LBB0_5:
	movl	24(%rbx), %r12d
	movq	_XILINX_DMA_REG_CURDESC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dma_ctrl_read
	movl	%eax, %r13d
	movq	_XILINX_DMA_REG_TAILDESC@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_dma_ctrl_read
	leaq	L_.str(%rip), %rsi
	movl	%r12d, %edi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	movl	%r13d, %r8d
	movl	%eax, %r9d
	callq	_dev_err
	movl	$1, (%rbx)
LBB0_6:
	movq	_XILINX_DMA_DMASR_DLY_CNT_IRQ@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_8
## %bb.7:
	movl	24(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_dbg
LBB0_8:
	movq	_XILINX_DMA_DMASR_FRM_CNT_IRQ@GOTPCREL(%rip), %rax
	testl	%r14d, (%rax)
	je	LBB0_10
## %bb.9:
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock
	movq	%rbx, %rdi
	callq	_xilinx_dma_complete_descriptor
	movl	$1, 4(%rbx)
	movq	%rbx, %rdi
	callq	*16(%rbx)
	movq	%r14, %rdi
	callq	_spin_unlock
LBB0_10:
	addq	$8, %rbx
	movq	%rbx, %rdi
	callq	_tasklet_schedule
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	jmp	LBB0_11
LBB0_1:
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
LBB0_11:
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XILINX_DMA_REG_DMASR,4,2       ## @XILINX_DMA_REG_DMASR
	.comm	_XILINX_DMA_DMAXR_ALL_IRQ_MASK,4,2 ## @XILINX_DMA_DMAXR_ALL_IRQ_MASK
	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_XILINX_DMA_DMASR_ERR_IRQ,4,2   ## @XILINX_DMA_DMASR_ERR_IRQ
	.comm	_XILINX_DMA_DMASR_ALL_ERR_MASK,4,2 ## @XILINX_DMA_DMASR_ALL_ERR_MASK
	.comm	_XILINX_DMA_DMASR_ERR_RECOVER_MASK,4,2 ## @XILINX_DMA_DMASR_ERR_RECOVER_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Channel %p has errors %x, cdr %x tdr %x\n"

	.comm	_XILINX_DMA_REG_CURDESC,4,2     ## @XILINX_DMA_REG_CURDESC
	.comm	_XILINX_DMA_REG_TAILDESC,4,2    ## @XILINX_DMA_REG_TAILDESC
	.comm	_XILINX_DMA_DMASR_DLY_CNT_IRQ,4,2 ## @XILINX_DMA_DMASR_DLY_CNT_IRQ
L_.str.1:                               ## @.str.1
	.asciz	"Inter-packet latency too long\n"

	.comm	_XILINX_DMA_DMASR_FRM_CNT_IRQ,4,2 ## @XILINX_DMA_DMASR_FRM_CNT_IRQ
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.no_dead_strip	_xilinx_dma_irq_handler
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xilinx_dma_irq_handler
_xilinx_dma_irq_handler:                ; @xilinx_dma_irq_handler
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x1
Lloh0:
	adrp	x22, _XILINX_DMA_REG_DMASR@GOTPAGE
Lloh1:
	ldr	x22, [x22, _XILINX_DMA_REG_DMASR@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_dma_ctrl_read
Lloh2:
	adrp	x8, _XILINX_DMA_DMAXR_ALL_IRQ_MASK@GOTPAGE
Lloh3:
	ldr	x8, [x8, _XILINX_DMA_DMAXR_ALL_IRQ_MASK@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ands	w2, w8, w0
	b.eq	LBB0_10
; %bb.1:
	mov	x20, x0
	ldr	w1, [x22]
	mov	x0, x19
	bl	_dma_ctrl_write
Lloh5:
	adrp	x8, _XILINX_DMA_DMASR_ERR_IRQ@GOTPAGE
Lloh6:
	ldr	x8, [x8, _XILINX_DMA_DMASR_ERR_IRQ@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_5
; %bb.2:
Lloh8:
	adrp	x8, _XILINX_DMA_DMASR_ALL_ERR_MASK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _XILINX_DMA_DMASR_ALL_ERR_MASK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	and	w21, w8, w20
	ldr	w1, [x22]
Lloh11:
	adrp	x22, _XILINX_DMA_DMASR_ERR_RECOVER_MASK@GOTPAGE
Lloh12:
	ldr	x22, [x22, _XILINX_DMA_DMASR_ERR_RECOVER_MASK@GOTPAGEOFF]
	ldr	w8, [x22]
	and	w2, w8, w21
	mov	x0, x19
	bl	_dma_ctrl_write
	ldr	w8, [x19, #28]
	cbz	w8, LBB0_4
; %bb.3:
	ldr	w8, [x22]
	bics	wzr, w21, w8
	b.eq	LBB0_5
LBB0_4:
	ldr	w22, [x19, #24]
Lloh13:
	adrp	x8, _XILINX_DMA_REG_CURDESC@GOTPAGE
Lloh14:
	ldr	x8, [x8, _XILINX_DMA_REG_CURDESC@GOTPAGEOFF]
Lloh15:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dma_ctrl_read
	mov	x23, x0
Lloh16:
	adrp	x8, _XILINX_DMA_REG_TAILDESC@GOTPAGE
Lloh17:
	ldr	x8, [x8, _XILINX_DMA_REG_TAILDESC@GOTPAGEOFF]
Lloh18:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_dma_ctrl_read
	mov	x5, x0
Lloh19:
	adrp	x1, l_.str@PAGE
Lloh20:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	mov	x2, x19
	mov	x3, x21
	mov	x4, x23
	bl	_dev_err
	mov	w8, #1
	str	w8, [x19]
LBB0_5:
Lloh21:
	adrp	x8, _XILINX_DMA_DMASR_DLY_CNT_IRQ@GOTPAGE
Lloh22:
	ldr	x8, [x8, _XILINX_DMA_DMASR_DLY_CNT_IRQ@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_7
; %bb.6:
	ldr	w0, [x19, #24]
Lloh24:
	adrp	x1, l_.str.1@PAGE
Lloh25:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_dbg
LBB0_7:
Lloh26:
	adrp	x8, _XILINX_DMA_DMASR_FRM_CNT_IRQ@GOTPAGE
Lloh27:
	ldr	x8, [x8, _XILINX_DMA_DMASR_FRM_CNT_IRQ@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_9
; %bb.8:
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock
	mov	x0, x19
	bl	_xilinx_dma_complete_descriptor
	mov	w8, #1
	str	w8, [x19, #4]
	ldr	x8, [x19, #16]
	mov	x0, x19
	blr	x8
	mov	x0, x20
	bl	_spin_unlock
LBB0_9:
	add	x0, x19, #8
	bl	_tasklet_schedule
Lloh29:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh30:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
	b	LBB0_11
LBB0_10:
Lloh31:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh32:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
LBB0_11:
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_XILINX_DMA_REG_DMASR,4,2       ; @XILINX_DMA_REG_DMASR
	.comm	_XILINX_DMA_DMAXR_ALL_IRQ_MASK,4,2 ; @XILINX_DMA_DMAXR_ALL_IRQ_MASK
	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_XILINX_DMA_DMASR_ERR_IRQ,4,2   ; @XILINX_DMA_DMASR_ERR_IRQ
	.comm	_XILINX_DMA_DMASR_ALL_ERR_MASK,4,2 ; @XILINX_DMA_DMASR_ALL_ERR_MASK
	.comm	_XILINX_DMA_DMASR_ERR_RECOVER_MASK,4,2 ; @XILINX_DMA_DMASR_ERR_RECOVER_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Channel %p has errors %x, cdr %x tdr %x\n"

	.comm	_XILINX_DMA_REG_CURDESC,4,2     ; @XILINX_DMA_REG_CURDESC
	.comm	_XILINX_DMA_REG_TAILDESC,4,2    ; @XILINX_DMA_REG_TAILDESC
	.comm	_XILINX_DMA_DMASR_DLY_CNT_IRQ,4,2 ; @XILINX_DMA_DMASR_DLY_CNT_IRQ
l_.str.1:                               ; @.str.1
	.asciz	"Inter-packet latency too long\n"

	.comm	_XILINX_DMA_DMASR_FRM_CNT_IRQ,4,2 ; @XILINX_DMA_DMASR_FRM_CNT_IRQ
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.no_dead_strip	_xilinx_dma_irq_handler
.subsections_via_symbols
