	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_ring_free_edma
_wil_ring_free_edma:                    ## @wil_ring_free_edma
	.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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_wil_to_dev
	cmpq	$0, 24(%rbx)
	je	LBB0_4
## %bb.1:
	movq	%rax, %r14
	movslq	(%rbx), %rax
	shlq	$2, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	8(%r12), %rdi
	callq	_lockdep_assert_held
	cmpq	$0, 56(%rbx)
	je	LBB0_5
## %bb.2:
	movl	(%rbx), %edx
	movq	24(%rbx), %rcx
	leaq	32(%rbx), %r8
	movq	16(%rbx), %r9
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_wil_dbg_misc
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_wil_move_all_rx_buff_to_free_list
	movq	40(%rbx), %rdx
	movl	48(%rbx), %ecx
	movl	$1, %esi
	movq	%r14, %rdi
	callq	_dma_free_coherent
LBB0_3:
	movq	24(%rbx), %rdx
	movl	32(%rbx), %ecx
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_dma_free_coherent
	movq	16(%rbx), %rdi
	callq	_kfree
	xorps	%xmm0, %xmm0
	movups	%xmm0, 16(%rbx)
	movl	$0, 32(%rbx)
LBB0_4:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_5:
	movq	%rbx, %rdx
	subq	(%r12), %rdx
	shrq	$6, %rdx
	movl	(%rbx), %ecx
	movq	24(%rbx), %r8
	leaq	32(%rbx), %r9
	movq	16(%rbx), %rax
	movq	%rax, (%rsp)
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
                                        ## kill: def $edx killed $edx killed $rdx
	xorl	%eax, %eax
	callq	_wil_dbg_misc
	jmp	LBB0_6
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_6 Depth=1
	movq	%r12, %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdx
	callq	_wil_dbg_txrx
LBB0_11:                                ##   in Loop: Header=BB0_6 Depth=1
	movq	%rbx, %rdi
	callq	_wil_ring_next_tail
	movq	%rax, 8(%rbx)
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_wil_ring_is_empty
	testl	%eax, %eax
	jne	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_6 Depth=1
	movq	8(%rbx), %r13
	movq	16(%rbx), %r15
	testq	%r15, %r15
	je	LBB0_8
## %bb.9:                               ##   in Loop: Header=BB0_6 Depth=1
	leaq	(%r15,%r13,8), %rdx
	movq	24(%rbx), %rax
	movl	(%rax,%r13,4), %eax
	movl	%eax, -48(%rbp)
	movq	%r14, %rdi
	leaq	-48(%rbp), %rsi
	callq	_wil_tx_desc_unmap_edma
	movq	(%r15,%r13,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_6 Depth=1
	callq	_dev_kfree_skb_any
	jmp	LBB0_11
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"free Rx ring [%d] 0x%p:%pad 0x%p\n"

L_.str.1:                               ## @.str.1
	.asciz	"free Tx ring %d [%d] 0x%p:%pad 0x%p\n"

L_.str.2:                               ## @.str.2
	.asciz	"ctx(%d) was already completed\n"

	.no_dead_strip	_wil_ring_free_edma
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil_ring_free_edma
_wil_ring_free_edma:                    ; @wil_ring_free_edma
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x1
	mov	x22, x0
	bl	_wil_to_dev
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_5
; %bb.1:
	mov	x20, x0
	ldrsw	x8, [x19]
	lsl	x21, x8, #2
	add	x0, x22, #8
	bl	_lockdep_assert_held
	ldr	x8, [x19, #56]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w2, [x19]
	add	x8, x19, #32
	ldp	x10, x9, [x19, #16]
	stp	x8, x10, [sp, #8]
	str	x9, [sp]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x22
	bl	_wil_dbg_misc
	mov	x0, x22
	mov	x1, x19
	bl	_wil_move_all_rx_buff_to_free_list
	ldr	x2, [x19, #40]
	ldr	w3, [x19, #48]
	mov	x0, x20
	mov	w1, #1
	bl	_dma_free_coherent
	b	LBB0_4
LBB0_3:
	ldr	x8, [x22]
	sub	x8, x19, x8
	lsr	x2, x8, #6
	add	x8, x19, #32
	ldp	x10, x9, [x19, #16]
	ldr	w11, [x19]
	stp	x8, x10, [sp, #16]
	stp	x11, x9, [sp]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x22
                                        ; kill: def $w2 killed $w2 killed $x2
	bl	_wil_dbg_misc
	mov	x0, x19
	bl	_wil_ring_is_empty
	cbz	w0, LBB0_6
LBB0_4:
	ldr	x2, [x19, #24]
	ldr	w3, [x19, #32]
	mov	x0, x20
	mov	x1, x21
	bl	_dma_free_coherent
	ldr	x0, [x19, #16]
	bl	_kfree
	stp	xzr, xzr, [x19, #16]
	str	wzr, [x19, #32]
LBB0_5:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
LBB0_6:
Lloh4:
	adrp	x23, l_.str.2@PAGE
Lloh5:
	add	x23, x23, l_.str.2@PAGEOFF
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x22
	mov	x1, x23
	bl	_wil_dbg_txrx
LBB0_8:                                 ;   in Loop: Header=BB0_9 Depth=1
	mov	x0, x19
	bl	_wil_ring_next_tail
	str	x0, [x19, #8]
	mov	x0, x19
	bl	_wil_ring_is_empty
	cbnz	w0, LBB0_4
LBB0_9:                                 ; =>This Inner Loop Header: Depth=1
	ldp	x2, x8, [x19, #8]
	cbz	x8, LBB0_7
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x24, x8, x2, lsl #3
	ldr	x8, [x19, #24]
	ldr	w8, [x8, x2, lsl #2]
	str	w8, [sp, #40]
	add	x1, sp, #40
	mov	x0, x20
	mov	x2, x24
	bl	_wil_tx_desc_unmap_edma
	ldr	x0, [x24]
	cbz	x0, LBB0_8
; %bb.11:                               ;   in Loop: Header=BB0_9 Depth=1
	bl	_dev_kfree_skb_any
	b	LBB0_8
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"free Rx ring [%d] 0x%p:%pad 0x%p\n"

l_.str.1:                               ; @.str.1
	.asciz	"free Tx ring %d [%d] 0x%p:%pad 0x%p\n"

l_.str.2:                               ; @.str.2
	.asciz	"ctx(%d) was already completed\n"

	.no_dead_strip	_wil_ring_free_edma
.subsections_via_symbols
