	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_chan_put
_dma_chan_put:                          ## @dma_chan_put
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movl	24(%rdi), %eax
	testl	%eax, %eax
	je	LBB0_7
## %bb.1:
	movq	%rdi, %rbx
	decl	%eax
	movl	%eax, 24(%rdi)
	callq	_dma_chan_to_owner
	movl	%eax, %edi
	callq	_module_put
	cmpl	$0, 24(%rbx)
	jne	LBB0_4
## %bb.2:
	movq	16(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_dmaengine_synchronize
	movq	16(%rbx), %rax
	movq	%rbx, %rdi
	callq	*(%rax)
LBB0_4:
	movq	8(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.5:
	movq	8(%rax), %rcx
	testq	%rcx, %rcx
	je	LBB0_7
## %bb.6:
	movl	(%rax), %edi
	movq	(%rbx), %rsi
	callq	*%rcx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rbx)
LBB0_7:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_dma_chan_put
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_chan_put
_dma_chan_put:                          ; @dma_chan_put
	.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
	ldr	w8, [x0, #24]
	cbz	w8, LBB0_7
; %bb.1:
	mov	x19, x0
	sub	w8, w8, #1
	str	w8, [x0, #24]
	bl	_dma_chan_to_owner
	bl	_module_put
	ldr	w8, [x19, #24]
	cbnz	w8, LBB0_4
; %bb.2:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	cbz	x8, LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_dmaengine_synchronize
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	mov	x0, x19
	blr	x8
LBB0_4:
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x9, [x8, #8]
	cbz	x9, LBB0_7
; %bb.6:
	ldr	w0, [x8]
	ldr	x1, [x19]
	blr	x9
	stp	xzr, xzr, [x19]
LBB0_7:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_dma_chan_put
.subsections_via_symbols
