	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_dma_interrupt
_dw_dma_interrupt:                      ## @dw_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
	movl	8(%rsi), %r14d
	movq	_STATUS_INT@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_dma_readl
	leaq	L_.str(%rip), %rsi
	movl	%r14d, %edi
	movq	%rax, %rdx
	callq	_dev_vdbg
	movq	_MASK@GOTPCREL(%rip), %r14
	movl	16(%r14), %esi
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_channel_clear_bit
	movl	12(%r14), %esi
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_channel_clear_bit
	movl	(%r14), %esi
	movl	(%rbx), %edx
	movq	%rbx, %rdi
	callq	_channel_clear_bit
	movl	(%r15), %esi
	movq	%rbx, %rdi
	callq	_dma_readl
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movl	8(%rbx), %edi
	leaq	L_.str.1(%rip), %rsi
	movq	%rax, %rdx
	callq	_dev_err
	movl	16(%r14), %esi
	movq	%rbx, %rdi
	movl	$255, %edx
	callq	_channel_clear_bit
	movl	12(%r14), %esi
	movq	%rbx, %rdi
	movl	$255, %edx
	callq	_channel_clear_bit
	movl	8(%r14), %esi
	movq	%rbx, %rdi
	movl	$255, %edx
	callq	_channel_clear_bit
	movl	4(%r14), %esi
	movq	%rbx, %rdi
	movl	$255, %edx
	callq	_channel_clear_bit
	movl	(%r14), %esi
	movq	%rbx, %rdi
	movl	$255, %edx
	callq	_channel_clear_bit
LBB0_2:
	addq	$4, %rbx
	movq	%rbx, %rdi
	callq	_tasklet_schedule
	movq	_IRQ_HANDLED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"interrupt: status=0x%x\n"

	.comm	_STATUS_INT,4,2                 ## @STATUS_INT
	.comm	_MASK,20,2                      ## @MASK
L_.str.1:                               ## @.str.1
	.asciz	"BUG: Unexpected interrupts pending: 0x%x\n"

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

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_dma_interrupt
_dw_dma_interrupt:                      ; @dw_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
	ldr	w20, [x1, #8]
Lloh0:
	adrp	x21, _STATUS_INT@GOTPAGE
Lloh1:
	ldr	x21, [x21, _STATUS_INT@GOTPAGEOFF]
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dma_readl
	mov	x2, x0
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_vdbg
Lloh4:
	adrp	x20, _MASK@GOTPAGE
Lloh5:
	ldr	x20, [x20, _MASK@GOTPAGEOFF]
	ldr	w1, [x20, #16]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_channel_clear_bit
	ldr	w1, [x20, #12]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_channel_clear_bit
	ldr	w1, [x20]
	ldr	w2, [x19]
	mov	x0, x19
	bl	_channel_clear_bit
	ldr	w1, [x21]
	mov	x0, x19
	bl	_dma_readl
	cbz	x0, LBB0_2
; %bb.1:
	mov	x2, x0
	ldr	w0, [x19, #8]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	w1, [x20, #16]
	mov	x0, x19
	mov	w2, #255
	bl	_channel_clear_bit
	ldr	w1, [x20, #12]
	mov	x0, x19
	mov	w2, #255
	bl	_channel_clear_bit
	ldr	w1, [x20, #8]
	mov	x0, x19
	mov	w2, #255
	bl	_channel_clear_bit
	ldr	w1, [x20, #4]
	mov	x0, x19
	mov	w2, #255
	bl	_channel_clear_bit
	ldr	w1, [x20]
	mov	x0, x19
	mov	w2, #255
	bl	_channel_clear_bit
LBB0_2:
	add	x0, x19, #4
	bl	_tasklet_schedule
Lloh8:
	adrp	x8, _IRQ_HANDLED@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IRQ_HANDLED@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	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 AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"interrupt: status=0x%x\n"

	.comm	_STATUS_INT,4,2                 ; @STATUS_INT
	.comm	_MASK,20,2                      ; @MASK
l_.str.1:                               ; @.str.1
	.asciz	"BUG: Unexpected interrupts pending: 0x%x\n"

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