	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_tasklet
_dma_tasklet:                           ## @dma_tasklet
	.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
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r15
	leaq	8(%rdi), %r12
	movq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	%r15, %rdi
	callq	_d40_first_done
	testq	%rax, %rax
	je	LBB0_1
## %bb.4:
	movq	%rax, %rbx
	leaq	12(%rax), %r14
	cmpl	$0, 12(%rax)
	jne	LBB0_6
## %bb.5:
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_dma_cookie_complete
LBB0_6:
	cmpq	$0, (%r15)
	je	LBB0_19
LBB0_7:
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%rbx), %r12
	movq	_DMA_PREP_INTERRUPT@GOTPCREL(%rip), %rax
	movl	(%rax), %r13d
	andl	8(%rbx), %r13d
	leaq	-48(%rbp), %rsi
	movq	%r12, %rdi
	callq	_dmaengine_desc_get_callback
	cmpl	$0, (%r14)
	jne	LBB0_12
## %bb.8:
	movq	%r12, %rdi
	callq	_async_tx_test_ack
	testq	%rax, %rax
	je	LBB0_10
## %bb.9:
	movq	%rbx, %rdi
	callq	_d40_desc_remove
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_d40_desc_free
	jmp	LBB0_12
LBB0_1:
	movq	%r15, %rdi
	callq	_d40_first_active_get
	testq	%rax, %rax
	je	LBB0_17
## %bb.2:
	movq	%rax, %rbx
	cmpl	$0, 12(%rax)
	je	LBB0_17
## %bb.3:
	movq	%rbx, %r14
	addq	$12, %r14
	cmpq	$0, (%r15)
	jne	LBB0_7
	jmp	LBB0_19
LBB0_17:
	movq	(%r15), %rax
	testq	%rax, %rax
	jle	LBB0_19
## %bb.18:
	decq	%rax
	movq	%rax, (%r15)
LBB0_19:
	movq	%r12, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_10:
	cmpl	$0, (%rbx)
	jne	LBB0_12
## %bb.11:
	movq	%rbx, %rdi
	callq	_d40_desc_remove
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_d40_lcla_free_all
	leaq	4(%rbx), %rdi
	leaq	16(%r15), %rsi
	callq	_list_add_tail
	movl	$1, (%rbx)
LBB0_12:
	decq	(%r15)
	je	LBB0_14
## %bb.13:
	addq	$12, %r15
	movq	%r15, %rdi
	callq	_tasklet_schedule
LBB0_14:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_irqrestore
	testl	%r13d, %r13d
	je	LBB0_16
## %bb.15:
	leaq	-48(%rbp), %rdi
	xorl	%esi, %esi
	callq	_dmaengine_desc_callback_invoke
LBB0_16:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DMA_PREP_INTERRUPT,4,2         ## @DMA_PREP_INTERRUPT
	.no_dead_strip	_dma_tasklet
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_tasklet
_dma_tasklet:                           ; @dma_tasklet
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x20, x0
	add	x19, x0, #8
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x20
	bl	_d40_first_done
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	mov	x25, x0
	ldr	w8, [x25, #12]!
	cbnz	w8, LBB0_5
; %bb.2:
	add	x0, x21, #8
	bl	_dma_cookie_complete
	b	LBB0_5
LBB0_3:
	mov	x0, x20
	bl	_d40_first_active_get
	cbz	x0, LBB0_9
; %bb.4:
	mov	x21, x0
	mov	x25, x0
	ldr	w8, [x25, #12]!
	cbz	w8, LBB0_9
LBB0_5:
	ldr	x8, [x20]
	cbz	x8, LBB0_11
; %bb.6:
	mov	x22, x21
	ldr	w23, [x22, #8]!
Lloh0:
	adrp	x8, _DMA_PREP_INTERRUPT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DMA_PREP_INTERRUPT@GOTPAGEOFF]
Lloh2:
	ldr	w24, [x8]
	add	x1, sp, #8
	mov	x0, x22
	bl	_dmaengine_desc_get_callback
	ldr	w8, [x25]
	cbnz	w8, LBB0_14
; %bb.7:
	mov	x0, x22
	bl	_async_tx_test_ack
	cbz	x0, LBB0_12
; %bb.8:
	mov	x0, x21
	bl	_d40_desc_remove
	mov	x0, x20
	mov	x1, x21
	bl	_d40_desc_free
	b	LBB0_14
LBB0_9:
	ldr	x8, [x20]
	subs	x8, x8, #1
	b.lt	LBB0_11
; %bb.10:
	str	x8, [x20]
LBB0_11:
	mov	x0, x19
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	b	_spin_unlock_irqrestore
LBB0_12:
	ldr	w8, [x21]
	cbnz	w8, LBB0_14
; %bb.13:
	mov	x0, x21
	bl	_d40_desc_remove
	mov	x0, x20
	mov	x1, x21
	bl	_d40_lcla_free_all
	add	x0, x21, #4
	add	x1, x20, #16
	bl	_list_add_tail
	mov	w8, #1
	str	w8, [x21]
LBB0_14:
	and	w21, w24, w23
	ldr	x8, [x20]
	subs	x8, x8, #1
	str	x8, [x20]
	b.eq	LBB0_16
; %bb.15:
	add	x0, x20, #12
	bl	_tasklet_schedule
LBB0_16:
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	cbz	w21, LBB0_18
; %bb.17:
	add	x0, sp, #8
	mov	x1, #0
	bl	_dmaengine_desc_callback_invoke
LBB0_18:
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_DMA_PREP_INTERRUPT,4,2         ; @DMA_PREP_INTERRUPT
	.no_dead_strip	_dma_tasklet
.subsections_via_symbols
