	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_rxq_deinit
_mwl8k_rxq_deinit:                      ## @mwl8k_rxq_deinit
	.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	(%rdi), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	16(%rax), %rcx
	movslq	%esi, %rax
	leaq	(%rax,%rax,2), %rax
	cmpq	$0, (%rcx,%rax,8)
	je	LBB0_8
## %bb.1:
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	leaq	(%rcx,%rax,8), %r14
	movq	_MWL8K_RX_DESCS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_2
## %bb.3:
	movq	16(%r14), %rdi
	xorl	%r12d, %r12d
	xorl	%r15d, %r15d
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movslq	%eax, %rcx
	addq	$8, %r12
	cmpq	%rcx, %r15
	jge	LBB0_7
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	$0, (%rdi,%r12)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	%r12, %rdi
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %ebx
	movq	_dma@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	callq	_dma_unmap_addr
	movq	_MWL8K_RX_MAXSZ@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	movq	_PCI_DMA_FROMDEVICE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ebx, %edi
	movl	%eax, %esi
	callq	_pci_unmap_single
	movq	16(%r14), %rdi
	addq	%r12, %rdi
	movl	(%r13), %esi
	xorl	%edx, %edx
	callq	_dma_unmap_addr_set
	movq	16(%r14), %rax
	movq	(%rax,%r12), %rdi
	callq	_kfree_skb
	movq	16(%r14), %rdi
	movq	$0, (%rdi,%r12)
	movq	_MWL8K_RX_DESCS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	jmp	LBB0_6
LBB0_2:
	movq	16(%r14), %rdi
LBB0_7:
	callq	_kfree
	movq	$0, 16(%r14)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	8(%rax), %edi
	movq	(%rax), %rax
	movl	(%rax), %esi
	movq	_MWL8K_RX_DESCS@GOTPCREL(%rip), %rax
	imull	(%rax), %esi
	movq	(%r14), %rdx
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	8(%rax,%rcx,8), %ecx
	callq	_pci_free_consistent
	movq	$0, (%r14)
LBB0_8:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWL8K_RX_DESCS,4,2             ## @MWL8K_RX_DESCS
	.comm	_dma,4,2                        ## @dma
	.comm	_MWL8K_RX_MAXSZ,4,2             ## @MWL8K_RX_MAXSZ
	.comm	_PCI_DMA_FROMDEVICE,4,2         ## @PCI_DMA_FROMDEVICE
	.no_dead_strip	_mwl8k_rxq_deinit
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwl8k_rxq_deinit
_mwl8k_rxq_deinit:                      ; @mwl8k_rxq_deinit
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
                                        ; kill: def $w1 killed $w1 def $x1
	ldr	x22, [x0]
	ldr	x21, [x22, #16]
	mov	w8, #24
	smaddl	x9, w1, w8, x21
	ldr	x8, [x9]
	cbz	x8, LBB0_8
; %bb.1:
	str	x9, [sp, #8]                    ; 8-byte Folded Spill
Lloh0:
	adrp	x24, _MWL8K_RX_DESCS@GOTPAGE
Lloh1:
	ldr	x24, [x24, _MWL8K_RX_DESCS@GOTPAGEOFF]
	sxtw	x10, w1
	ldr	w9, [x24]
	mov	w8, #24
	str	x10, [sp]                       ; 8-byte Folded Spill
	madd	x8, x10, x8, x21
	add	x25, x8, #16
	cmp	w9, #0
	b.le	LBB0_6
; %bb.2:
	mov	x26, #0
	mov	x27, #0
	ldr	x0, [x25]
Lloh2:
	adrp	x28, _dma@GOTPAGE
Lloh3:
	ldr	x28, [x28, _dma@GOTPAGEOFF]
Lloh4:
	adrp	x23, _MWL8K_RX_MAXSZ@GOTPAGE
Lloh5:
	ldr	x23, [x23, _MWL8K_RX_MAXSZ@GOTPAGEOFF]
Lloh6:
	adrp	x20, _PCI_DMA_FROMDEVICE@GOTPAGE
Lloh7:
	ldr	x20, [x20, _PCI_DMA_FROMDEVICE@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
	add	x26, x26, #8
	cmp	x27, w9, sxtw
	b.ge	LBB0_7
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x8, x0, x26
	ldr	x10, [x8]
	cbz	x10, LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w19, [x22, #8]
	ldr	w1, [x28]
	mov	x0, x8
	bl	_dma_unmap_addr
	mov	x1, x0
	ldr	w2, [x23]
	ldr	w3, [x20]
	mov	x0, x19
	bl	_pci_unmap_single
	ldr	x8, [x25]
	add	x0, x8, x26
	ldr	w1, [x28]
	mov	w2, #0
	bl	_dma_unmap_addr_set
	ldr	x8, [x25]
	ldr	x0, [x8, x26]
	bl	_kfree_skb
	ldr	x0, [x25]
	str	xzr, [x0, x26]
	ldr	w9, [x24]
	b	LBB0_3
LBB0_6:
	ldr	x0, [x25]
LBB0_7:
	bl	_kfree
	str	xzr, [x25]
	ldr	w0, [x22, #8]
	ldr	w8, [x24]
	ldr	x9, [x22]
	ldr	w9, [x9]
	mul	w1, w9, w8
	ldp	x9, x19, [sp]                   ; 16-byte Folded Reload
	ldr	x2, [x19]
	mov	w8, #24
	madd	x8, x9, x8, x21
	ldr	w3, [x8, #8]
	bl	_pci_free_consistent
	str	xzr, [x19]
LBB0_8:
	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
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_MWL8K_RX_DESCS,4,2             ; @MWL8K_RX_DESCS
	.comm	_dma,4,2                        ; @dma
	.comm	_MWL8K_RX_MAXSZ,4,2             ; @MWL8K_RX_MAXSZ
	.comm	_PCI_DMA_FROMDEVICE,4,2         ; @PCI_DMA_FROMDEVICE
	.no_dead_strip	_mwl8k_rxq_deinit
.subsections_via_symbols
