	.file	"extr_bnx2.c_bnx2_get_ethtool_stats.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bnx2_get_ethtool_stats, @function
bnx2_get_ethtool_stats:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	netdev_priv@PLT
	mov	rbx, QWORD PTR 8[rax]
	test	rbx, rbx
	je	.L17
	mov	rdi, rax
	mov	r13, QWORD PTR [rax]
	mov	r12, rax
	call	BNX2_CHIP_ID@PLT
	cmp	rax, QWORD PTR BNX2_CHIP_ID_5706_A0[rip]
	jne	.L3
.L5:
	mov	rsi, QWORD PTR bnx2_5706_stats_len_arr[rip]
.L4:
	mov	edx, DWORD PTR BNX2_NUM_STATS[rip]
	mov	rdi, QWORD PTR bnx2_stats_offset_arr[rip]
	xor	eax, eax
	test	edx, edx
	jg	.L11
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rcx, QWORD PTR [rdi+rax*8]
	cmp	edx, 4
	je	.L18
	mov	edx, DWORD PTR 4[rbx+rcx*4]
	add	edx, DWORD PTR 4[r13+rcx*4]
	mov	DWORD PTR 0[rbp+rax*4], edx
.L9:
	add	rax, 1
	cmp	DWORD PTR BNX2_NUM_STATS[rip], eax
	jle	.L1
.L11:
	mov	edx, DWORD PTR [rsi+rax*4]
	test	edx, edx
	jne	.L8
	mov	DWORD PTR 0[rbp+rax*4], 0
	add	rax, 1
	cmp	DWORD PTR BNX2_NUM_STATS[rip], eax
	jg	.L11
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L18:
	.cfi_restore_state
	mov	edx, DWORD PTR 0[r13+rcx*4]
	add	edx, DWORD PTR [rbx+rcx*4]
	mov	DWORD PTR 0[rbp+rax*4], edx
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L3:
	mov	rdi, r12
	call	BNX2_CHIP_ID@PLT
	cmp	rax, QWORD PTR BNX2_CHIP_ID_5706_A1[rip]
	je	.L5
	mov	rdi, r12
	call	BNX2_CHIP_ID@PLT
	cmp	rax, QWORD PTR BNX2_CHIP_ID_5706_A2[rip]
	je	.L5
	mov	rdi, r12
	call	BNX2_CHIP_ID@PLT
	cmp	rax, QWORD PTR BNX2_CHIP_ID_5708_A0[rip]
	je	.L5
	mov	rsi, QWORD PTR bnx2_5708_stats_len_arr[rip]
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L17:
	mov	eax, DWORD PTR BNX2_NUM_STATS[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	rdi, rbp
	xor	esi, esi
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	lea	edx, 0[0+rax*4]
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	jmp	memset@PLT
	.cfi_endproc
.LFE0:
	.size	bnx2_get_ethtool_stats, .-bnx2_get_ethtool_stats
	.comm	bnx2_stats_offset_arr,8,8
	.comm	bnx2_5708_stats_len_arr,8,8
	.comm	bnx2_5706_stats_len_arr,8,8
	.comm	BNX2_NUM_STATS,4,4
	.comm	BNX2_CHIP_ID_5708_A0,8,8
	.comm	BNX2_CHIP_ID_5706_A2,8,8
	.comm	BNX2_CHIP_ID_5706_A1,8,8
	.comm	BNX2_CHIP_ID_5706_A0,8,8
	.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_bnx2.c_bnx2_get_ethtool_stats.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnx2_get_ethtool_stats, %function
bnx2_get_ethtool_stats:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r2
	bl	netdev_priv
	ldr	r5, [r0, #4]
	cmp	r5, #0
	beq	.L18
	mov	r7, r0
	ldr	r6, [r0]
	bl	BNX2_CHIP_ID
	ldr	r3, .L19
	ldr	r3, [r3]
	cmp	r0, r3
	bne	.L3
.L5:
	ldr	r3, .L19+4
	ldr	ip, [r3]
.L4:
	ldr	r2, .L19+8
	ldr	r3, [r2]
	cmp	r3, #0
	pople	{r4, r5, r6, r7, r8, pc}
	mov	r3, #0
	ldr	r1, .L19+12
	sub	ip, ip, #4
	ldr	r1, [r1]
.L11:
	ldr	r0, [ip, #4]!
	cmp	r0, #0
	beq	.L15
	cmp	r0, #4
	ldr	r0, [r1, r3, lsl #2]
	addne	r0, r0, #1
	ldr	lr, [r5, r0, lsl #2]
	ldr	r0, [r6, r0, lsl #2]
	add	r0, lr, r0
.L15:
	str	r0, [r4, r3, lsl #2]
	ldr	r0, [r2]
	add	r3, r3, #1
	cmp	r0, r3
	bgt	.L11
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	mov	r0, r7
	bl	BNX2_CHIP_ID
	ldr	r3, .L19+16
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L5
	mov	r0, r7
	bl	BNX2_CHIP_ID
	ldr	r3, .L19+20
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L5
	mov	r0, r7
	bl	BNX2_CHIP_ID
	ldr	r3, .L19+24
	ldr	r3, [r3]
	cmp	r0, r3
	beq	.L5
	ldr	r3, .L19+28
	ldr	ip, [r3]
	b	.L4
.L18:
	ldr	r3, .L19+8
	mov	r1, r5
	ldr	r2, [r3]
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, lr}
	lsl	r2, r2, #2
	b	memset
.L20:
	.align	2
.L19:
	.word	BNX2_CHIP_ID_5706_A0
	.word	bnx2_5706_stats_len_arr
	.word	BNX2_NUM_STATS
	.word	bnx2_stats_offset_arr
	.word	BNX2_CHIP_ID_5706_A1
	.word	BNX2_CHIP_ID_5706_A2
	.word	BNX2_CHIP_ID_5708_A0
	.word	bnx2_5708_stats_len_arr
	.size	bnx2_get_ethtool_stats, .-bnx2_get_ethtool_stats
	.comm	bnx2_stats_offset_arr,4,4
	.comm	bnx2_5708_stats_len_arr,4,4
	.comm	bnx2_5706_stats_len_arr,4,4
	.comm	BNX2_NUM_STATS,4,4
	.comm	BNX2_CHIP_ID_5708_A0,4,4
	.comm	BNX2_CHIP_ID_5706_A2,4,4
	.comm	BNX2_CHIP_ID_5706_A1,4,4
	.comm	BNX2_CHIP_ID_5706_A0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
