	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function b44_recycle_rx
_b44_recycle_rx:                        ## @b44_recycle_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	%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
	movl	%esi, %eax
	movq	%rdi, %r14
	movq	_B44_RX_RING_SIZE@GOTPCREL(%rip), %rsi
	movslq	(%rsi), %rcx
	decq	%rcx
	movslq	%edx, %r15
	andq	%rcx, %r15
	movq	24(%rdi), %rbx
	movq	32(%rdi), %rcx
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movslq	%eax, %r12
	movq	%r12, %rcx
	movq	%r12, -48(%rbp)                 ## 8-byte Spill
	shlq	$4, %r12
	movq	8(%rbx,%r12), %rcx
	movq	%r15, %r13
	shlq	$4, %r13
	movq	%rcx, 8(%rbx,%r13)
	movq	8(%rbx,%r12), %rcx
	movq	(%rcx), %rcx
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rcx)
	movl	(%rbx,%r12), %ecx
	movl	%ecx, (%rbx,%r13)
	movq	_B44_FLAG_RX_RING_HACK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rdi)
	je	LBB0_2
## %bb.1:
	movq	8(%r14), %rdi
	movl	16(%r14), %esi
	shll	$3, %eax
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%eax, %edx
	callq	_b44_sync_dma_desc_for_cpu
	movq	_B44_RX_RING_SIZE@GOTPCREL(%rip), %rsi
LBB0_2:
	leaq	(%rbx,%r12), %rax
	addq	$8, %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movl	4(%rax,%rcx,8), %r12d
	movl	(%rsi), %eax
	decl	%eax
	movq	_DESC_CTRL_EOT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	cmpl	%eax, %r15d
	jne	LBB0_4
## %bb.3:
	callq	_cpu_to_le32
	orl	%r12d, %eax
	jmp	LBB0_5
LBB0_4:
	notl	%edi
	callq	_cpu_to_le32
	andl	%r12d, %eax
LBB0_5:
	addq	%r13, %rbx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, 4(%rcx,%r15,8)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movl	(%rcx,%rax,8), %eax
	movl	%eax, (%rcx,%r15,8)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	$0, (%rax)
	movq	_B44_FLAG_RX_RING_HACK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_7
## %bb.6:
	movq	8(%r14), %rdi
	movl	16(%r14), %esi
	leal	(,%r15,8), %edx
	movq	_DMA_BIDIRECTIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	callq	_b44_sync_dma_desc_for_device
LBB0_7:
	movq	8(%r14), %rax
	movl	(%rax), %edi
	movl	(%rbx), %esi
	movq	_RX_PKT_BUF_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_DMA_FROM_DEVICE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_dma_sync_single_for_device     ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_B44_RX_RING_SIZE,4,2           ## @B44_RX_RING_SIZE
	.comm	_B44_FLAG_RX_RING_HACK,4,2      ## @B44_FLAG_RX_RING_HACK
	.comm	_DMA_BIDIRECTIONAL,4,2          ## @DMA_BIDIRECTIONAL
	.comm	_DESC_CTRL_EOT,4,2              ## @DESC_CTRL_EOT
	.comm	_RX_PKT_BUF_SZ,4,2              ## @RX_PKT_BUF_SZ
	.comm	_DMA_FROM_DEVICE,4,2            ## @DMA_FROM_DEVICE
	.no_dead_strip	_b44_recycle_rx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function b44_recycle_rx
_b44_recycle_rx:                        ; @b44_recycle_rx
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x19, x0
Lloh0:
	adrp	x27, _B44_RX_RING_SIZE@GOTPAGE
Lloh1:
	ldr	x27, [x27, _B44_RX_RING_SIZE@GOTPAGEOFF]
	ldr	w8, [x27]
	sub	w8, w8, #1
	and	w8, w8, w2
	sxtw	x21, w8
	ldp	x9, x22, [x0, #24]
	sxtw	x24, w1
	sbfiz	x10, x1, #4, #32
	add	x23, x9, x10
	ldr	x11, [x23, #8]!
	add	x20, x9, w8, sxtw #4
	str	x11, [x20, #8]
	ldr	x8, [x23]
	ldr	x8, [x8]
	stp	xzr, xzr, [x8]
	ldr	w8, [x9, x10]
	str	w8, [x20]
	ldr	w8, [x0]
Lloh2:
	adrp	x26, _B44_FLAG_RX_RING_HACK@GOTPAGE
Lloh3:
	ldr	x26, [x26, _B44_FLAG_RX_RING_HACK@GOTPAGEOFF]
	ldr	w9, [x26]
Lloh4:
	adrp	x25, _DMA_BIDIRECTIONAL@GOTPAGE
Lloh5:
	ldr	x25, [x25, _DMA_BIDIRECTIONAL@GOTPAGEOFF]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	x0, [x19, #8]
	ldr	w8, [x19, #16]
	lsl	w2, w1, #3
	ldr	w3, [x25]
	mov	x1, x8
	bl	_b44_sync_dma_desc_for_cpu
LBB0_2:
	add	x8, x22, x24, lsl #3
	ldr	w28, [x8, #4]
	ldr	w8, [x27]
	sub	w8, w8, #1
Lloh6:
	adrp	x9, _DESC_CTRL_EOT@GOTPAGE
Lloh7:
	ldr	x9, [x9, _DESC_CTRL_EOT@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x9]
	cmp	w21, w8
	b.ne	LBB0_4
; %bb.3:
	bl	_cpu_to_le32
	orr	w8, w0, w28
	b	LBB0_5
LBB0_4:
	mvn	w0, w0
	bl	_cpu_to_le32
	and	w8, w0, w28
LBB0_5:
	add	x9, x22, x21, lsl #3
	lsl	x10, x24, #3
	ldr	w10, [x22, x10]
	stp	w10, w8, [x9]
	str	xzr, [x23]
	ldr	w8, [x19]
	ldr	w9, [x26]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
	ldr	x0, [x19, #8]
	ldr	w1, [x19, #16]
	lsl	w2, w21, #3
	ldr	w3, [x25]
	bl	_b44_sync_dma_desc_for_device
LBB0_7:
	ldr	x8, [x19, #8]
	ldr	w0, [x8]
	ldr	w1, [x20]
Lloh9:
	adrp	x8, _RX_PKT_BUF_SZ@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RX_PKT_BUF_SZ@GOTPAGEOFF]
Lloh11:
	adrp	x9, _DMA_FROM_DEVICE@GOTPAGE
Lloh12:
	ldr	x9, [x9, _DMA_FROM_DEVICE@GOTPAGEOFF]
Lloh13:
	ldr	w2, [x8]
Lloh14:
	ldr	w3, [x9]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	b	_dma_sync_single_for_device
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_B44_RX_RING_SIZE,4,2           ; @B44_RX_RING_SIZE
	.comm	_B44_FLAG_RX_RING_HACK,4,2      ; @B44_FLAG_RX_RING_HACK
	.comm	_DMA_BIDIRECTIONAL,4,2          ; @DMA_BIDIRECTIONAL
	.comm	_DESC_CTRL_EOT,4,2              ; @DESC_CTRL_EOT
	.comm	_RX_PKT_BUF_SZ,4,2              ; @RX_PKT_BUF_SZ
	.comm	_DMA_FROM_DEVICE,4,2            ; @DMA_FROM_DEVICE
	.no_dead_strip	_b44_recycle_rx
.subsections_via_symbols
