	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dma_chan_free_chan_resources
_dma_chan_free_chan_resources:          ## @dma_chan_free_chan_resources
	.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, %r14
	callq	_dchan_to_axi_dma_chan
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_axi_chan_is_hw_enable
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r14, %rdi
	callq	_dchan2dev
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_axi_chan_name
	leaq	L_.str(%rip), %rsi
	movl	%r15d, %edi
	movl	%eax, %edx
	callq	_dev_err
LBB0_2:
	movq	%rbx, %rdi
	callq	_axi_chan_disable
	movq	_DWAXIDMAC_IRQ_ALL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_axi_chan_irq_disable
	leaq	12(%rbx), %rdi
	callq	_vchan_free_chan_resources
	movq	%r14, %rdi
	callq	_dchan2dev
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_axi_chan_name
	movl	%eax, %r15d
	movq	%rbx, %rdi
	addq	$8, %rdi
	callq	_atomic_read
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %edi
	movl	%r15d, %edx
	movl	%eax, %ecx
	callq	_dev_vdbg
	movq	(%rbx), %rax
	movl	(%rax), %edi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_pm_runtime_put                 ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s is non-idle!\n"

	.comm	_DWAXIDMAC_IRQ_ALL,4,2          ## @DWAXIDMAC_IRQ_ALL
L_.str.1:                               ## @.str.1
	.asciz	"%s: free resources, descriptor still allocated: %u\n"

	.no_dead_strip	_dma_chan_free_chan_resources
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dma_chan_free_chan_resources
_dma_chan_free_chan_resources:          ; @dma_chan_free_chan_resources
	.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	_dchan_to_axi_dma_chan
	mov	x19, x0
	bl	_axi_chan_is_hw_enable
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x20
	bl	_dchan2dev
	mov	x21, x0
	mov	x0, x19
	bl	_axi_chan_name
	mov	x2, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	bl	_dev_err
LBB0_2:
	mov	x0, x19
	bl	_axi_chan_disable
Lloh2:
	adrp	x8, _DWAXIDMAC_IRQ_ALL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DWAXIDMAC_IRQ_ALL@GOTPAGEOFF]
Lloh4:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_axi_chan_irq_disable
	add	x0, x19, #12
	bl	_vchan_free_chan_resources
	mov	x0, x20
	bl	_dchan2dev
	mov	x20, x0
	mov	x0, x19
	bl	_axi_chan_name
	mov	x21, x0
	add	x0, x19, #8
	bl	_atomic_read
	mov	x3, x0
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	x2, x21
	bl	_dev_vdbg
	ldr	x8, [x19]
	ldr	w0, [x8]
	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	_pm_runtime_put
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s is non-idle!\n"

	.comm	_DWAXIDMAC_IRQ_ALL,4,2          ; @DWAXIDMAC_IRQ_ALL
l_.str.1:                               ; @.str.1
	.asciz	"%s: free resources, descriptor still allocated: %u\n"

	.no_dead_strip	_dma_chan_free_chan_resources
.subsections_via_symbols
