	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_tc_handle
_dma_tc_handle:                         ## @dma_tc_handle
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	callq	_d40_first_active_get
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %rbx
	cmpq	$0, 16(%rax)
	je	LBB0_7
## %bb.2:
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jge	LBB0_11
## %bb.3:
	movq	%r14, %rdi
	callq	_d40_tx_is_linked
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:
	movq	%r14, %rdi
	callq	_d40_residue
	testl	%eax, %eax
	jne	LBB0_11
## %bb.5:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_d40_lcla_free_all
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_d40_desc_load
	movq	%r14, %rdi
	callq	_d40_start
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jne	LBB0_11
## %bb.6:
	movq	$0, (%rbx)
	jmp	LBB0_11
LBB0_12:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_7:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_d40_lcla_free_all
	movq	(%rbx), %rax
	cmpq	8(%rbx), %rax
	jge	LBB0_8
## %bb.13:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_d40_desc_load
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_d40_start                      ## TAILCALL
LBB0_8:
	movq	%r14, %rdi
	callq	_d40_queue_start
	testq	%rax, %rax
	jne	LBB0_10
## %bb.9:
	movl	$0, (%r14)
	movq	16(%r14), %rax
	movl	(%rax), %edi
	callq	_pm_runtime_mark_last_busy
	movq	16(%r14), %rax
	movl	(%rax), %edi
	callq	_pm_runtime_put_autosuspend
LBB0_10:
	movq	%rbx, %rdi
	callq	_d40_desc_remove
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_d40_desc_done
LBB0_11:
	incl	8(%r14)
	addq	$4, %r14
	movq	%r14, %rdi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_tasklet_schedule               ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dma_tc_handle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_tc_handle
_dma_tc_handle:                         ; @dma_tc_handle
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_d40_first_active_get
	cbz	x0, LBB0_7
; %bb.1:
	mov	x20, x0
	ldr	x8, [x0, #16]
	cbz	x8, LBB0_8
; %bb.2:
	ldp	x8, x9, [x20]
	cmp	x8, x9
	b.ge	LBB0_13
; %bb.3:
	mov	x0, x19
	bl	_d40_tx_is_linked
	cbnz	w0, LBB0_13
; %bb.4:
	mov	x0, x19
	bl	_d40_residue
	cbnz	w0, LBB0_13
; %bb.5:
	mov	x0, x19
	mov	x1, x20
	bl	_d40_lcla_free_all
	mov	x0, x19
	mov	x1, x20
	bl	_d40_desc_load
	mov	x0, x19
	bl	_d40_start
	ldp	x8, x9, [x20]
	cmp	x8, x9
	b.ne	LBB0_13
; %bb.6:
	str	xzr, [x20]
	b	LBB0_13
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_8:
	mov	x0, x19
	mov	x1, x20
	bl	_d40_lcla_free_all
	ldp	x8, x9, [x20]
	mov	x0, x19
	cmp	x8, x9
	b.ge	LBB0_10
; %bb.9:
	mov	x1, x20
	bl	_d40_desc_load
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_d40_start
LBB0_10:
	bl	_d40_queue_start
	cbnz	x0, LBB0_12
; %bb.11:
	str	wzr, [x19]
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_pm_runtime_mark_last_busy
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_pm_runtime_put_autosuspend
LBB0_12:
	mov	x0, x20
	bl	_d40_desc_remove
	mov	x0, x19
	mov	x1, x20
	bl	_d40_desc_done
LBB0_13:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	add	x0, x19, #4
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_tasklet_schedule
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dma_tc_handle
.subsections_via_symbols
