	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dw_edma_done_interrupt
_dw_edma_done_interrupt:                ## @dw_edma_done_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	%rdi, %rbx
	callq	_dw_edma_v0_core_clear_done_int
	leaq	4(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%r14, %rdi
	callq	_vchan_next_desc
	testq	%rax, %rax
	je	LBB0_11
## %bb.1:
	movq	%rax, %r15
	movl	(%rbx), %eax
	cmpl	$128, %eax
	je	LBB0_6
## %bb.2:
	cmpl	$129, %eax
	je	LBB0_7
## %bb.3:
	cmpl	$130, %eax
	jne	LBB0_11
## %bb.4:
	movq	%r15, %rdi
	callq	_vd2dw_edma_desc
	cmpl	$0, (%rax)
	je	LBB0_8
## %bb.5:
	movq	_EDMA_ST_BUSY@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	%rbx, %rdi
	callq	_dw_edma_start_transfer
	jmp	LBB0_11
LBB0_6:
	movq	%r15, %rdi
	callq	_list_del
	movq	%r15, %rdi
	callq	_vchan_cookie_complete
	movl	$130, (%rbx)
	jmp	LBB0_9
LBB0_7:
	movl	$130, (%rbx)
	movq	_EDMA_ST_PAUSE@GOTPCREL(%rip), %rax
	jmp	LBB0_10
LBB0_8:
	movq	%r15, %rdi
	callq	_list_del
	movq	%r15, %rdi
	callq	_vchan_cookie_complete
LBB0_9:
	movq	_EDMA_ST_IDLE@GOTPCREL(%rip), %rax
LBB0_10:
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
LBB0_11:
	movq	%r14, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_EDMA_ST_BUSY,8,3               ## @EDMA_ST_BUSY
	.comm	_EDMA_ST_IDLE,8,3               ## @EDMA_ST_IDLE
	.comm	_EDMA_ST_PAUSE,8,3              ## @EDMA_ST_PAUSE
	.no_dead_strip	_dw_edma_done_interrupt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dw_edma_done_interrupt
_dw_edma_done_interrupt:                ; @dw_edma_done_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	x20, x0
	bl	_dw_edma_v0_core_clear_done_int
	add	x19, x20, #4
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_vchan_next_desc
	cbz	x0, LBB0_11
; %bb.1:
	mov	x21, x0
	ldr	w8, [x20]
	cmp	w8, #128
	b.eq	LBB0_6
; %bb.2:
	cmp	w8, #129
	b.eq	LBB0_7
; %bb.3:
	cmp	w8, #130
	b.ne	LBB0_11
; %bb.4:
	mov	x0, x21
	bl	_vd2dw_edma_desc
	ldr	w8, [x0]
	cbz	w8, LBB0_8
; %bb.5:
Lloh0:
	adrp	x8, _EDMA_ST_BUSY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EDMA_ST_BUSY@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [x20, #8]
	mov	x0, x20
	bl	_dw_edma_start_transfer
	b	LBB0_11
LBB0_6:
	mov	x0, x21
	bl	_list_del
	mov	x0, x21
	bl	_vchan_cookie_complete
	mov	w8, #130
	str	w8, [x20]
	b	LBB0_9
LBB0_7:
	mov	w8, #130
	str	w8, [x20]
Lloh3:
	adrp	x8, _EDMA_ST_PAUSE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _EDMA_ST_PAUSE@GOTPAGEOFF]
	b	LBB0_10
LBB0_8:
	mov	x0, x21
	bl	_list_del
	mov	x0, x21
	bl	_vchan_cookie_complete
LBB0_9:
Lloh5:
	adrp	x8, _EDMA_ST_IDLE@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EDMA_ST_IDLE@GOTPAGEOFF]
LBB0_10:
	ldr	x8, [x8]
	str	x8, [x20, #8]
LBB0_11:
	mov	x0, x19
	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
	b	_spin_unlock_irqrestore
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_EDMA_ST_BUSY,8,3               ; @EDMA_ST_BUSY
	.comm	_EDMA_ST_IDLE,8,3               ; @EDMA_ST_IDLE
	.comm	_EDMA_ST_PAUSE,8,3              ; @EDMA_ST_PAUSE
	.no_dead_strip	_dw_edma_done_interrupt
.subsections_via_symbols
