	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function wil_vring_free
_wil_vring_free:                        ## @wil_vring_free
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_wil_to_dev
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movslq	(%r15), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	leaq	8(%r14), %rdi
	callq	_lockdep_assert_held
	cmpl	$0, 44(%r15)
	je	LBB0_1
## %bb.2:
	movl	(%r15), %edx
	movq	32(%r15), %rcx
	leaq	40(%r15), %r8
	movq	24(%r15), %r9
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_wil_dbg_misc
	jmp	LBB0_3
LBB0_1:
	movq	%r15, %rax
	subq	(%r14), %rax
	shrq	$4, %rax
	imull	$-1431655765, %eax, %edx        ## imm = 0xAAAAAAAB
	movl	(%r15), %ecx
	movq	32(%r15), %r8
	leaq	40(%r15), %r9
	movq	24(%r15), %rax
	movq	%rax, (%rsp)
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_wil_dbg_misc
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	32(%r15), %rax
	movq	16(%r15), %rbx
	movq	24(%r15), %r12
	leaq	(%rbx,%rbx,2), %rcx
	movq	(%rax,%rcx,4), %rax
	movq	%rax, -64(%rbp)
	leaq	-60(%rbp), %rdi
	callq	_wil_desc_addr
	movl	%eax, %r13d
	movl	-64(%rbp), %edi
	callq	_le16_to_cpu
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	movl	%eax, %edx
	callq	_dma_unmap_single
	movq	(%r12,%rbx,8), %rdi
	callq	_kfree_skb
	movq	%r15, %rdi
	movl	$1, %esi
	callq	_wil_ring_advance_head
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r15, %rdi
	callq	_wil_ring_is_empty
	testl	%eax, %eax
	jne	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 44(%r15)
	jne	LBB0_10
## %bb.5:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	8(%r15), %r13
	movq	24(%r15), %rbx
	testq	%rbx, %rbx
	je	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	leaq	(%rbx,%r13,8), %rdx
	movq	32(%r15), %rax
	leaq	(,%r13,2), %rcx
	addq	%r13, %rcx
	movl	8(%rax,%rcx,4), %eax
	movl	%eax, -56(%rbp)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	leaq	-56(%rbp), %rsi
	callq	_wil_txdesc_unmap
	movq	(%rbx,%r13,8), %rdi
	testq	%rdi, %rdi
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_3 Depth=1
	callq	_dev_kfree_skb_any
	jmp	LBB0_9
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r14, %rdi
	leaq	L_.str.2(%rip), %rsi
	movq	%r13, %rdx
	callq	_wil_dbg_txrx
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%r15, %rdi
	callq	_wil_ring_next_tail
	movq	%rax, 8(%r15)
	jmp	LBB0_3
LBB0_11:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	shlq	$2, %rax
	leaq	(%rax,%rax,2), %rsi
	movq	32(%r15), %rdx
	movl	40(%r15), %ecx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_dma_free_coherent
	movq	24(%r15), %rdi
	callq	_kfree
	xorps	%xmm0, %xmm0
	movups	%xmm0, 24(%r15)
	movl	$0, 40(%r15)
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"free Tx vring %d [%d] 0x%p:%pad 0x%p\n"

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

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

	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_wil_vring_free
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function wil_vring_free
_wil_vring_free:                        ; @wil_vring_free
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x1
	mov	x21, x0
	bl	_wil_to_dev
	mov	x20, x0
	ldrsw	x25, [x19]
	add	x0, x21, #8
	bl	_lockdep_assert_held
	ldr	w8, [x19, #44]
	cbz	w8, LBB0_2
; %bb.1:
	ldr	w2, [x19]
	add	x8, x19, #40
	ldp	x10, x9, [x19, #24]
	stp	x8, x10, [sp, #8]
	str	x9, [sp]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_3
LBB0_2:
	ldr	x8, [x21]
	sub	x8, x19, x8
	lsr	x8, x8, #4
	mov	w9, #43691
	movk	w9, #43690, lsl #16
	mul	w2, w8, w9
	add	x8, x19, #40
	ldp	x10, x9, [x19, #24]
	ldr	w11, [x19]
	stp	x8, x10, [sp, #16]
	stp	x11, x9, [sp]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
LBB0_3:
	mov	x0, x21
	bl	_wil_dbg_misc
	mov	x0, x19
	bl	_wil_ring_is_empty
	cbz	w0, LBB0_5
LBB0_4:
	add	x8, x25, x25, lsl #1
	lsl	x1, x8, #2
	ldr	x2, [x19, #32]
	ldr	w3, [x19, #40]
	mov	x0, x20
	bl	_dma_free_coherent
	ldr	x0, [x19, #24]
	bl	_kfree
	stp	xzr, xzr, [x19, #24]
	str	wzr, [x19, #40]
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
LBB0_5:
	add	x8, sp, #32
	orr	x22, x8, #0x4
	mov	w26, #12
Lloh4:
	adrp	x27, _DMA_FROM_DEVICE@GOTPAGE
Lloh5:
	ldr	x27, [x27, _DMA_FROM_DEVICE@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:                                 ;   in Loop: Header=BB0_8 Depth=1
	ldp	x23, x8, [x19, #24]
	ldr	x28, [x19, #16]
	mul	x9, x28, x26
	ldr	x8, [x8, x9]
	str	x8, [sp, #32]
	mov	x0, x22
	bl	_wil_desc_addr
	mov	x24, x0
	ldr	w0, [sp, #32]
	bl	_le16_to_cpu
	mov	x2, x0
	ldr	w3, [x27]
	mov	x0, x20
	mov	x1, x24
	bl	_dma_unmap_single
	ldr	x0, [x23, x28, lsl #3]
	bl	_kfree_skb
	mov	x0, x19
	mov	w1, #1
	bl	_wil_ring_advance_head
LBB0_7:                                 ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	bl	_wil_ring_is_empty
	cbnz	w0, LBB0_4
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w8, [x19, #44]
	cbnz	w8, LBB0_6
; %bb.9:                                ;   in Loop: Header=BB0_8 Depth=1
	ldr	x2, [x19, #8]
	ldr	x8, [x19, #24]
	cbz	x8, LBB0_12
; %bb.10:                               ;   in Loop: Header=BB0_8 Depth=1
	add	x24, x8, x2, lsl #3
	ldr	x8, [x19, #32]
	madd	x8, x2, x26, x8
	ldr	w8, [x8, #8]
	str	w8, [sp, #40]
	add	x1, sp, #40
	mov	x0, x20
	mov	x2, x24
	bl	_wil_txdesc_unmap
	ldr	x0, [x24]
	cbz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_8 Depth=1
	bl	_dev_kfree_skb_any
	b	LBB0_13
LBB0_12:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x21
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_wil_dbg_txrx
LBB0_13:                                ;   in Loop: Header=BB0_8 Depth=1
	mov	x0, x19
	bl	_wil_ring_next_tail
	str	x0, [x19, #8]
	b	LBB0_7
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"free Tx vring %d [%d] 0x%p:%pad 0x%p\n"

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

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

	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_wil_vring_free
.subsections_via_symbols
