	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ep93xx_dma_interrupt
_ep93xx_dma_interrupt:                  ## @ep93xx_dma_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	movq	%rsi, %rdi
	callq	_spin_lock
	movq	%rbx, %rdi
	callq	_ep93xx_dma_get_active
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
	cmpl	$128, %eax
	je	LBB0_5
## %bb.3:
	cmpl	$129, %eax
	jne	LBB0_7
## %bb.4:
	movl	$1, (%r15)
	jmp	LBB0_6
LBB0_1:
	movq	%rbx, %rdi
	callq	_chan2dev
	leaq	L_.str(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_warn
	movq	%rbx, %rdi
	callq	_spin_unlock
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
	jmp	LBB0_9
LBB0_5:
	movq	_EP93XX_DMA_IS_CYCLIC@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	8(%rbx), %rsi
	callq	_test_bit
	testl	%eax, %eax
	je	LBB0_8
LBB0_6:
	leaq	4(%rbx), %rdi
	callq	_tasklet_schedule
	jmp	LBB0_8
LBB0_7:
	movq	%rbx, %rdi
	callq	_chan2dev
	leaq	L_.str.1(%rip), %rsi
	movl	%eax, %edi
	callq	_dev_warn
	movq	_IRQ_NONE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_8:
	movq	%rbx, %rdi
	callq	_spin_unlock
LBB0_9:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IRQ_HANDLED,4,2                ## @IRQ_HANDLED
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"got interrupt while active list is empty\n"

	.comm	_IRQ_NONE,4,2                   ## @IRQ_NONE
	.comm	_EP93XX_DMA_IS_CYCLIC,4,2       ## @EP93XX_DMA_IS_CYCLIC
L_.str.1:                               ## @.str.1
	.asciz	"unknown interrupt!\n"

	.no_dead_strip	_ep93xx_dma_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ep93xx_dma_interrupt
_ep93xx_dma_interrupt:                  ; @ep93xx_dma_interrupt
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
Lloh0:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	mov	x0, x1
	bl	_spin_lock
	mov	x0, x19
	bl	_ep93xx_dma_get_active
	cbz	x0, LBB0_4
; %bb.1:
	mov	x21, x0
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
	cmp	w0, #128
	b.eq	LBB0_5
; %bb.2:
	cmp	w0, #129
	b.ne	LBB0_7
; %bb.3:
	mov	w8, #1
	str	w8, [x21]
	b	LBB0_6
LBB0_4:
	mov	x0, x19
	bl	_chan2dev
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	mov	x0, x19
	bl	_spin_unlock
Lloh5:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh7:
	ldr	w20, [x8]
	b	LBB0_9
LBB0_5:
Lloh8:
	adrp	x8, _EP93XX_DMA_IS_CYCLIC@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EP93XX_DMA_IS_CYCLIC@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x1, x19, #8
	bl	_test_bit
	cbz	w0, LBB0_8
LBB0_6:
	add	x0, x19, #4
	bl	_tasklet_schedule
	b	LBB0_8
LBB0_7:
	mov	x0, x19
	bl	_chan2dev
Lloh11:
	adrp	x1, l_.str.1@PAGE
Lloh12:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_warn
Lloh13:
	adrp	x8, _IRQ_NONE@GOTPAGE
Lloh14:
	ldr	x8, [x8, _IRQ_NONE@GOTPAGEOFF]
Lloh15:
	ldr	w20, [x8]
LBB0_8:
	mov	x0, x19
	bl	_spin_unlock
LBB0_9:
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpAdd	Lloh11, Lloh12
	.cfi_endproc
                                        ; -- End function
	.comm	_IRQ_HANDLED,4,2                ; @IRQ_HANDLED
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"got interrupt while active list is empty\n"

	.comm	_IRQ_NONE,4,2                   ; @IRQ_NONE
	.comm	_EP93XX_DMA_IS_CYCLIC,4,2       ; @EP93XX_DMA_IS_CYCLIC
l_.str.1:                               ; @.str.1
	.asciz	"unknown interrupt!\n"

	.no_dead_strip	_ep93xx_dma_interrupt
.subsections_via_symbols
