	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function idma64_terminate_all
_idma64_terminate_all:                  ## @idma64_terminate_all
	.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
	callq	_to_idma64_chan
	movq	%rax, %rbx
	movq	_head@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_LIST_HEAD
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	movl	$1, %esi
	callq	_idma64_chan_deactivate
	movq	%rbx, %rdi
	callq	_idma64_stop_transfer
	movq	8(%rbx), %rdi
	testq	%rdi, %rdi
	je	LBB0_2
## %bb.1:
	callq	_idma64_vdesc_free
	movq	$0, 8(%rbx)
LBB0_2:
	movq	_head@GOTPCREL(%rip), %r14
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_vchan_get_all_descriptors
	movq	%rbx, %rdi
	callq	_spin_unlock_irqrestore
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_vchan_dma_desc_free_list
	xorl	%eax, %eax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_head,4,2                       ## @head
	.no_dead_strip	_idma64_terminate_all
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function idma64_terminate_all
_idma64_terminate_all:                  ; @idma64_terminate_all
	.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
	bl	_to_idma64_chan
	mov	x19, x0
Lloh0:
	adrp	x8, _head@GOTPAGE
Lloh1:
	ldr	x8, [x8, _head@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_LIST_HEAD
	mov	x0, x19
	bl	_spin_lock_irqsave
	mov	x0, x19
	mov	w1, #1
	bl	_idma64_chan_deactivate
	mov	x0, x19
	bl	_idma64_stop_transfer
	ldr	x0, [x19, #8]
	cbz	x0, LBB0_2
; %bb.1:
	bl	_idma64_vdesc_free
	str	xzr, [x19, #8]
LBB0_2:
Lloh3:
	adrp	x20, _head@GOTPAGE
Lloh4:
	ldr	x20, [x20, _head@GOTPAGEOFF]
	mov	x0, x19
	mov	x1, x20
	bl	_vchan_get_all_descriptors
	mov	x0, x19
	bl	_spin_unlock_irqrestore
	mov	x0, x19
	mov	x1, x20
	bl	_vchan_dma_desc_free_list
	mov	w0, #0
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_head,4,2                       ; @head
	.no_dead_strip	_idma64_terminate_all
.subsections_via_symbols
