	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _ath10k_ce_free_pipe
__ath10k_ce_free_pipe:                  ## @_ath10k_ce_free_pipe
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r14
	callq	_ath10k_ce_priv
	movq	(%rax), %r12
	movslq	%r15d, %rbx
	shlq	$4, %rbx
	movq	8(%r12,%rbx), %rax
	testq	%rax, %rax
	je	LBB0_4
## %bb.1:
	leaq	(%r12,%rbx), %r15
	addq	$8, %r15
	cmpq	$0, 8(%r14)
	je	LBB0_3
## %bb.2:
	movq	16(%rax), %rdi
	callq	_kfree
	movq	(%r15), %rax
LBB0_3:
	movl	(%r14), %edi
	movslq	(%rax), %rsi
	shlq	$2, %rsi
	movq	_CE_DESC_RING_ALIGN@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rsi
	movl	4(%rax), %ecx
	movl	8(%rax), %edx
	callq	_dma_free_coherent
	movq	(%r15), %rdi
	callq	_kfree
LBB0_4:
	leaq	(%r12,%rbx), %r15
	movq	(%r12,%rbx), %rax
	testq	%rax, %rax
	je	LBB0_6
## %bb.5:
	movl	(%r14), %edi
	movslq	(%rax), %rsi
	shlq	$2, %rsi
	movq	_CE_DESC_RING_ALIGN@GOTPCREL(%rip), %rcx
	addq	(%rcx), %rsi
	movl	4(%rax), %ecx
	movl	8(%rax), %edx
	callq	_dma_free_coherent
	movq	(%r15), %rdi
	callq	_kfree
LBB0_6:
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%r15)
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CE_DESC_RING_ALIGN,8,3         ## @CE_DESC_RING_ALIGN
	.no_dead_strip	__ath10k_ce_free_pipe
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _ath10k_ce_free_pipe
__ath10k_ce_free_pipe:                  ; @_ath10k_ce_free_pipe
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x20, x1
	mov	x19, x0
	bl	_ath10k_ce_priv
	ldr	x21, [x0]
	sxtw	x22, w20
	add	x23, x21, w20, sxtw #4
	ldr	x8, [x23, #8]!
Lloh0:
	adrp	x20, _CE_DESC_RING_ALIGN@GOTPAGE
Lloh1:
	ldr	x20, [x20, _CE_DESC_RING_ALIGN@GOTPAGEOFF]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x9, [x19, #8]
	cbz	x9, LBB0_3
; %bb.2:
	ldr	x0, [x8, #16]
	bl	_kfree
	ldr	x8, [x23]
LBB0_3:
	ldr	w0, [x19]
	ldr	x9, [x20]
	ldp	w10, w3, [x8]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	add	x1, x9, x10, lsl #2
	ldr	w2, [x8, #8]
	bl	_dma_free_coherent
	ldr	x0, [x23]
	bl	_kfree
LBB0_4:
	add	x21, x21, x22, lsl #4
	ldr	x8, [x21]
	cbz	x8, LBB0_6
; %bb.5:
	ldr	w0, [x19]
	ldr	x9, [x20]
	ldp	w10, w3, [x8]
                                        ; kill: def $w10 killed $w10 def $x10
	sxtw	x10, w10
	add	x1, x9, x10, lsl #2
	ldr	w2, [x8, #8]
	bl	_dma_free_coherent
	ldr	x0, [x21]
	bl	_kfree
LBB0_6:
	stp	xzr, xzr, [x21]
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CE_DESC_RING_ALIGN,8,3         ; @CE_DESC_RING_ALIGN
	.no_dead_strip	__ath10k_ce_free_pipe
.subsections_via_symbols
