	.file	"extr_ag71xx_debugfs.c_ag71xx_debugfs_update_napi_stats.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ag71xx_debugfs_update_napi_stats
	.type	ag71xx_debugfs_update_napi_stats, @function
ag71xx_debugfs_update_napi_stats:
.LFB0:
	.cfi_startproc
	endbr64
	test	esi, esi
	je	.L3
	add	DWORD PTR 40[rdi], 1
	add	DWORD PTR [rdi], esi
	cmp	DWORD PTR AG71XX_NAPI_WEIGHT[rip], esi
	jl	.L4
	mov	rcx, QWORD PTR 32[rdi]
	movsx	rax, esi
	add	DWORD PTR [rcx+rax*4], 1
.L4:
	cmp	DWORD PTR 4[rdi], esi
	jl	.L11
.L3:
	test	edx, edx
	je	.L1
	add	DWORD PTR 24[rdi], 1
	add	DWORD PTR 8[rdi], edx
	cmp	DWORD PTR AG71XX_NAPI_WEIGHT[rip], edx
	jl	.L8
	mov	rcx, QWORD PTR 16[rdi]
	movsx	rax, edx
	add	DWORD PTR [rcx+rax*4], 1
.L8:
	cmp	DWORD PTR 12[rdi], edx
	jge	.L1
	mov	DWORD PTR 12[rdi], edx
.L1:
	ret
	.p2align 4,,10
	.p2align 3
.L11:
	mov	DWORD PTR 4[rdi], esi
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	ag71xx_debugfs_update_napi_stats, .-ag71xx_debugfs_update_napi_stats
	.comm	AG71XX_NAPI_WEIGHT,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_ag71xx_debugfs.c_ag71xx_debugfs_update_napi_stats.c"
	.text
	.align	2
	.global	ag71xx_debugfs_update_napi_stats
	.syntax unified
	.arm
	.fpu softvfp
	.type	ag71xx_debugfs_update_napi_stats, %function
ag71xx_debugfs_update_napi_stats:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	str	lr, [sp, #-4]!
	beq	.L3
	ldr	r3, .L12
	ldr	ip, [r0, #28]
	ldr	lr, [r3]
	ldr	r3, [r0]
	cmp	lr, r1
	add	ip, ip, #1
	add	r3, r3, r1
	str	ip, [r0, #28]
	ldrge	ip, [r0, #24]
	str	r3, [r0]
	ldrge	r3, [ip, r1, lsl #2]
	addge	r3, r3, #1
	strge	r3, [ip, r1, lsl #2]
	ldr	r3, [r0, #4]
	cmp	r3, r1
	strlt	r1, [r0, #4]
.L3:
	cmp	r2, #0
	ldreq	pc, [sp], #4
	ldr	r3, .L12
	ldr	r1, [r0, #20]
	ldr	ip, [r3]
	ldr	r3, [r0, #8]
	cmp	ip, r2
	add	r1, r1, #1
	add	r3, r3, r2
	str	r1, [r0, #20]
	ldrge	r1, [r0, #16]
	str	r3, [r0, #8]
	ldrge	r3, [r1, r2, lsl #2]
	addge	r3, r3, #1
	strge	r3, [r1, r2, lsl #2]
	ldr	r3, [r0, #12]
	cmp	r3, r2
	strlt	r2, [r0, #12]
	ldr	pc, [sp], #4
.L13:
	.align	2
.L12:
	.word	AG71XX_NAPI_WEIGHT
	.size	ag71xx_debugfs_update_napi_stats, .-ag71xx_debugfs_update_napi_stats
	.comm	AG71XX_NAPI_WEIGHT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
