	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function zynqmp_dma_free_chan_resources
_zynqmp_dma_free_chan_resources:        ## @zynqmp_dma_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	callq	_to_chan
	movq	%rax, %rbx
	leaq	16(%rax), %r14
	movq	%r14, %rdi
	callq	_spin_lock_irqsave
	movq	%rbx, %rdi
	callq	_zynqmp_dma_free_descriptors
	movq	%r14, %rdi
	callq	_spin_unlock_irqrestore
	movl	(%rbx), %r14d
	movq	%rbx, %rdi
	callq	_ZYNQMP_DMA_DESC_SIZE
                                        ## kill: def $eax killed $eax def $rax
	movq	_ZYNQMP_DMA_NUM_DESCS@GOTPCREL(%rip), %rcx
	imull	(%rcx), %eax
	leal	(%rax,%rax), %esi
	movl	8(%rbx), %ecx
	movl	12(%rbx), %edx
	movl	%r14d, %edi
	callq	_dma_free_coherent
	movl	4(%rbx), %edi
	callq	_kfree
	movl	(%rbx), %edi
	callq	_pm_runtime_mark_last_busy
	movl	(%rbx), %edi
	popq	%rbx
	popq	%r14
	popq	%rbp
	jmp	_pm_runtime_put_autosuspend     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_ZYNQMP_DMA_NUM_DESCS,4,2       ## @ZYNQMP_DMA_NUM_DESCS
	.no_dead_strip	_zynqmp_dma_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 zynqmp_dma_free_chan_resources
_zynqmp_dma_free_chan_resources:        ; @zynqmp_dma_free_chan_resources
	.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_chan
	mov	x19, x0
	add	x20, x0, #16
	mov	x0, x20
	bl	_spin_lock_irqsave
	mov	x0, x19
	bl	_zynqmp_dma_free_descriptors
	mov	x0, x20
	bl	_spin_unlock_irqrestore
	ldr	w20, [x19]
	mov	x0, x19
	bl	_ZYNQMP_DMA_DESC_SIZE
Lloh0:
	adrp	x8, _ZYNQMP_DMA_NUM_DESCS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _ZYNQMP_DMA_NUM_DESCS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	mul	w8, w0, w8
	lsl	w1, w8, #1
	ldp	w3, w2, [x19, #8]
	mov	x0, x20
	bl	_dma_free_coherent
	ldr	w0, [x19, #4]
	bl	_kfree
	ldr	w0, [x19]
	bl	_pm_runtime_mark_last_busy
	ldr	w0, [x19]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_pm_runtime_put_autosuspend
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_ZYNQMP_DMA_NUM_DESCS,4,2       ; @ZYNQMP_DMA_NUM_DESCS
	.no_dead_strip	_zynqmp_dma_free_chan_resources
.subsections_via_symbols
