	.file	"extr_b44.c_b44_recycle_rx.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	b44_recycle_rx, @function
b44_recycle_rx:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	movsx	r12, esi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	eax, DWORD PTR B44_RX_RING_SIZE[rip]
	lea	ecx, -1[rax]
	mov	rax, QWORD PTR 24[rdi]
	and	edx, ecx
	movsx	rbp, edx
	mov	rdx, QWORD PTR 32[rdi]
	mov	r13, rbp
	lea	r8, [rdx+r12*8]
	sal	r12, 4
	lea	r15, [rdx+rbp*8]
	sal	rbp, 4
	add	r12, rax
	add	rbp, rax
	mov	rax, QWORD PTR 8[r12]
	mov	QWORD PTR 8[rbp], rax
	mov	rax, QWORD PTR [rax]
	mov	QWORD PTR 8[rax], 0
	mov	QWORD PTR [rax], 0
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR 0[rbp], eax
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR B44_FLAG_RX_RING_HACK[rip], eax
	jne	.L14
.L2:
	mov	r14d, DWORD PTR 4[r8]
	mov	edi, DWORD PTR DESC_CTRL_EOT[rip]
	mov	QWORD PTR 8[rsp], r8
	cmp	r13d, ecx
	je	.L15
	not	edi
	call	cpu_to_le32@PLT
	mov	r8, QWORD PTR 8[rsp]
	and	r14d, eax
.L4:
	mov	eax, DWORD PTR [r8]
	mov	rdi, QWORD PTR 8[rbx]
	mov	DWORD PTR 4[r15], r14d
	mov	DWORD PTR [r15], eax
	mov	eax, DWORD PTR [rbx]
	mov	QWORD PTR 8[r12], 0
	test	DWORD PTR B44_FLAG_RX_RING_HACK[rip], eax
	jne	.L16
.L5:
	mov	esi, DWORD PTR 0[rbp]
	mov	ecx, DWORD PTR DMA_FROM_DEVICE[rip]
	mov	edx, DWORD PTR RX_PKT_BUF_SZ[rip]
	mov	edi, DWORD PTR [rdi]
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	dma_sync_single_for_device@PLT
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	call	cpu_to_le32@PLT
	mov	r8, QWORD PTR 8[rsp]
	or	r14d, eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L14:
	mov	ecx, DWORD PTR DMA_BIDIRECTIONAL[rip]
	lea	edx, 0[0+rsi*8]
	mov	esi, DWORD PTR 16[rdi]
	mov	QWORD PTR 8[rsp], r8
	mov	rdi, QWORD PTR 8[rdi]
	call	b44_sync_dma_desc_for_cpu@PLT
	mov	eax, DWORD PTR B44_RX_RING_SIZE[rip]
	mov	r8, QWORD PTR 8[rsp]
	lea	ecx, -1[rax]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L16:
	mov	esi, DWORD PTR 16[rbx]
	mov	ecx, DWORD PTR DMA_BIDIRECTIONAL[rip]
	lea	edx, 0[0+r13*8]
	call	b44_sync_dma_desc_for_device@PLT
	mov	rdi, QWORD PTR 8[rbx]
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	b44_recycle_rx, .-b44_recycle_rx
	.comm	RX_PKT_BUF_SZ,4,4
	.comm	DMA_FROM_DEVICE,4,4
	.comm	DMA_BIDIRECTIONAL,4,4
	.comm	DESC_CTRL_EOT,4,4
	.comm	B44_RX_RING_SIZE,4,4
	.comm	B44_FLAG_RX_RING_HACK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_b44.c_b44_recycle_rx.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	b44_recycle_rx, %function
b44_recycle_rx:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r6, r1
	mov	r5, r0
	mov	r1, #0
	ldr	r7, [r0, #12]
	ldr	r3, .L17
	add	r9, r7, r6, lsl #3
	ldr	r3, [r3]
	ldr	r0, [r9, #4]
	ldr	r10, .L17+4
	sub	r3, r3, #1
	ldr	lr, [r5]
	ldr	r8, [r5, #16]
	ldr	fp, [r10]
	and	r4, r3, r2
	ldr	r2, [r0]
	add	ip, r7, r4, lsl #3
	tst	lr, fp
	sub	sp, sp, #12
	ldr	lr, [r7, r6, lsl #3]
	str	r0, [ip, #4]
	str	r1, [r2, #4]
	str	r1, [r2]
	add	r2, r8, r4, lsl #3
	str	r2, [sp, #4]
	add	r2, r8, r6, lsl #3
	mov	fp, r2
	str	lr, [r7, r4, lsl #3]
	bne	.L14
.L2:
	ldr	r2, .L17+8
	cmp	r4, r3
	ldr	fp, [fp, #4]
	ldr	r0, [r2]
	beq	.L15
	mvn	r0, r0
	bl	cpu_to_le32
	and	fp, fp, r0
.L4:
	mov	r3, #0
	ldr	r0, [r5]
	ldr	r1, [r10]
	ldr	r2, [r8, r6, lsl #3]
	add	ip, r8, r4, lsl #3
	tst	r0, r1
	str	fp, [ip, #4]
	ldr	r0, [r5, #4]
	str	r2, [r8, r4, lsl #3]
	str	r3, [r9, #4]
	bne	.L16
.L5:
	ldr	r3, .L17+12
	ldr	r2, .L17+16
	ldr	r1, [r7, r4, lsl #3]
	ldr	r0, [r0]
	ldr	r3, [r3]
	ldr	r2, [r2]
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	dma_sync_single_for_device
.L15:
	bl	cpu_to_le32
	orr	fp, fp, r0
	b	.L4
.L14:
	ldr	r3, .L17+20
	lsl	r2, r6, #3
	ldr	r3, [r3]
	ldmib	r5, {r0, r1}
	bl	b44_sync_dma_desc_for_cpu
	ldr	r3, .L17
	ldr	r3, [r3]
	sub	r3, r3, #1
	b	.L2
.L16:
	ldr	r3, .L17+20
	ldr	r1, [r5, #8]
	ldr	r3, [r3]
	lsl	r2, r4, #3
	bl	b44_sync_dma_desc_for_device
	ldr	r0, [r5, #4]
	b	.L5
.L18:
	.align	2
.L17:
	.word	B44_RX_RING_SIZE
	.word	B44_FLAG_RX_RING_HACK
	.word	DESC_CTRL_EOT
	.word	DMA_FROM_DEVICE
	.word	RX_PKT_BUF_SZ
	.word	DMA_BIDIRECTIONAL
	.size	b44_recycle_rx, .-b44_recycle_rx
	.comm	RX_PKT_BUF_SZ,4,4
	.comm	DMA_FROM_DEVICE,4,4
	.comm	DMA_BIDIRECTIONAL,4,4
	.comm	DESC_CTRL_EOT,4,4
	.comm	B44_RX_RING_SIZE,4,4
	.comm	B44_FLAG_RX_RING_HACK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
