	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76u_free_rx
_mt76u_free_rx:                         ## @mt76u_free_rx
	.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
	movq	(%rdi), %r15
	movq	_MT_RXQ_MAIN@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	leaq	(%rax,%rax,2), %r12
	cmpl	$0, (%r15,%r12,8)
	jle	LBB0_3
## %bb.1:
	leaq	(%r15,%r12,8), %r14
	xorl	%ebx, %ebx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	16(%r14), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_mt76u_urb_free
	incq	%rbx
	movslq	(%r14), %rax
	cmpq	%rax, %rbx
	jl	LBB0_2
LBB0_3:
	movl	8(%r15,%r12,8), %edi
	testl	%edi, %edi
	je	LBB0_4
## %bb.5:
	leaq	(%r15,%r12,8), %r14
	addq	$4, %r14
	callq	_virt_to_page
	movl	4(%r15,%r12,8), %esi
	movq	%rax, %rdi
	callq	___page_frag_cache_drain
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$8, %edx
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_memset                         ## TAILCALL
LBB0_4:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MT_RXQ_MAIN,8,3                ## @MT_RXQ_MAIN
	.no_dead_strip	_mt76u_free_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76u_free_rx
_mt76u_free_rx:                         ; @mt76u_free_rx
	.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
Lloh0:
	adrp	x8, _MT_RXQ_MAIN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MT_RXQ_MAIN@GOTPAGEOFF]
	ldr	x19, [x0]
Lloh2:
	ldr	x20, [x8]
	mov	w8, #24
	madd	x21, x20, x8, x19
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_3
; %bb.1:
	mov	x22, #0
	mov	w8, #24
	madd	x8, x20, x8, x19
	add	x23, x8, #16
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x23]
	ldr	w0, [x8, x22, lsl #2]
	bl	_mt76u_urb_free
	add	x22, x22, #1
	ldrsw	x8, [x21]
	cmp	x22, x8
	b.lt	LBB0_2
LBB0_3:
	mov	w8, #24
	madd	x8, x20, x8, x19
	ldr	w0, [x8, #8]
	cbz	w0, LBB0_5
; %bb.4:
	mov	w8, #24
	madd	x19, x20, x8, x19
	bl	_virt_to_page
	ldr	w1, [x19, #4]!
	bl	___page_frag_cache_drain
	mov	x0, x19
	mov	w1, #0
	mov	w2, #8
	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
	b	_memset
LBB0_5:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_MT_RXQ_MAIN,8,3                ; @MT_RXQ_MAIN
	.no_dead_strip	_mt76u_free_rx
.subsections_via_symbols
