	.file	"extr_r8192U_core.c_rtl819x_update_rxcounts.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	rtl819x_update_rxcounts, @function
rtl819x_update_rxcounts:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rdi, QWORD PTR [rdi]
	mov	QWORD PTR [rsi], 0
	mov	rcx, rdx
	mov	QWORD PTR [rdx], 0
	movsx	rax, DWORD PTR 40[rdi]
	mov	r8, QWORD PTR 16[rdi]
	mov	r9, QWORD PTR 8[rdi]
	lea	edx, 1[rax]
	mov	DWORD PTR 40[rdi], edx
	xor	edx, edx
	div	QWORD PTR [rdi]
	mov	rax, QWORD PTR 32[rdi]
	mov	QWORD PTR [r8+rdx*8], rax
	mov	rax, QWORD PTR 24[rdi]
	mov	QWORD PTR [r9+rdx*8], rax
	cmp	QWORD PTR [rdi], 0
	je	.L1
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdx, QWORD PTR [r8+rax*8]
	add	QWORD PTR [rsi], rdx
	mov	rdx, QWORD PTR [r9+rax*8]
	add	rax, 1
	add	QWORD PTR [rcx], rdx
	cmp	QWORD PTR [rdi], rax
	ja	.L3
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	rtl819x_update_rxcounts, .-rtl819x_update_rxcounts
	.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_r8192U_core.c_rtl819x_update_rxcounts.c"
	.text
	.global	__aeabi_uidivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	rtl819x_update_rxcounts, %function
rtl819x_update_rxcounts:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, #0
	ldr	r6, [r0]
	str	r7, [r1]
	ldr	r0, [r6, #20]
	str	r7, [r2]
	add	r3, r0, #1
	str	r3, [r6, #20]
	mov	r4, r1
	ldr	r1, [r6]
	mov	r5, r2
	bl	__aeabi_uidivmod
	ldr	r0, [r6, #16]
	ldr	r3, [r6, #8]
	ldr	r2, [r6, #4]
	str	r0, [r3, r1, lsl #2]
	ldr	r0, [r6, #12]
	str	r0, [r2, r1, lsl #2]
	ldr	r1, [r6]
	cmp	r1, r7
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r0, r7
	sub	r1, r3, #4
	sub	r2, r2, #4
.L3:
	ldr	ip, [r1, #4]!
	ldr	r3, [r4]
	add	r0, r0, #1
	add	r3, r3, ip
	str	r3, [r4]
	ldr	r3, [r5]
	ldr	ip, [r2, #4]!
	add	r3, r3, ip
	str	r3, [r5]
	ldr	r3, [r6]
	cmp	r3, r0
	bhi	.L3
	pop	{r4, r5, r6, r7, r8, pc}
	.size	rtl819x_update_rxcounts, .-rtl819x_update_rxcounts
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
