	.file	"extr_b53_common.c_b53_get_ethtool_stats.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	b53_get_ethtool_stats
	.type	b53_get_ethtool_stats, @function
b53_get_ethtool_stats:
.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
	mov	r13d, esi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 56
	.cfi_def_cfa_offset 112
	mov	r12, QWORD PTR [rdi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 40[rsp], rax
	xor	eax, eax
	mov	rdi, r12
	call	b53_get_mib@PLT
	mov	rdi, r12
	mov	rbp, rax
	call	b53_get_mib_size@PLT
	mov	rdi, r12
	mov	QWORD PTR 24[rsp], 0
	mov	r14d, eax
	call	is5365@PLT
	test	rax, rax
	je	.L2
	cmp	r13d, 5
	mov	eax, 8
	cmove	r13d, eax
.L2:
	mov	rdi, r12
	call	mutex_lock@PLT
	test	r14d, r14d
	je	.L8
	lea	eax, -1[r14]
	add	rbp, 4
	lea	r15, 32[rsp]
	lea	rax, 8[rbx+rax*8]
	mov	QWORD PTR 8[rsp], rax
	jmp	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	call	B53_MIB_PAGE@PLT
	mov	rcx, r15
	mov	edx, r14d
	mov	rdi, r12
	mov	esi, eax
	call	b53_read32@PLT
	mov	rax, QWORD PTR 32[rsp]
	mov	QWORD PTR 24[rsp], rax
.L6:
	mov	QWORD PTR [rbx], rax
	add	rbp, 8
	add	rbx, 8
	cmp	rbx, QWORD PTR 8[rsp]
	je	.L8
.L7:
	cmp	DWORD PTR -4[rbp], 8
	mov	r14d, DWORD PTR 0[rbp]
	mov	edi, r13d
	jne	.L5
	call	B53_MIB_PAGE@PLT
	lea	rcx, 24[rsp]
	mov	edx, r14d
	mov	rdi, r12
	mov	esi, eax
	call	b53_read64@PLT
	mov	rax, QWORD PTR 24[rsp]
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rdi, r12
	call	mutex_unlock@PLT
	mov	rax, QWORD PTR 40[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L18
	add	rsp, 56
	.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
	ret
.L18:
	.cfi_restore_state
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	b53_get_ethtool_stats, .-b53_get_ethtool_stats
	.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_b53_common.c_b53_get_ethtool_stats.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	b53_get_ethtool_stats
	.syntax unified
	.arm
	.fpu softvfp
	.type	b53_get_ethtool_stats, %function
b53_get_ethtool_stats:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, [r0]
	ldr	r3, .L15
	sub	sp, sp, #16
	mov	r0, r7
	mov	r8, r1
	mov	r5, r2
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	b53_get_mib
	mov	r4, r0
	mov	r0, r7
	bl	b53_get_mib_size
	mov	r3, #0
	mov	r6, r0
	mov	r0, r7
	str	r3, [sp, #4]
	bl	is5365
	sub	r3, r8, #5
	clz	r3, r3
	cmp	r0, #0
	lsr	r3, r3, #5
	moveq	r3, #0
	mov	r0, r7
	cmp	r3, #0
	movne	r8, #8
	bl	mutex_lock
	cmp	r6, #0
	addne	r6, r4, r6, lsl #3
	addne	r6, r6, #4
	subne	r5, r5, #4
	addne	r4, r4, #4
	bne	.L6
	b	.L7
.L4:
	bl	B53_MIB_PAGE
	ldr	r2, [r4]
	mov	r1, r0
	add	r3, sp, #8
	mov	r0, r7
	bl	b53_read32
	add	r4, r4, #8
	ldr	r3, [sp, #8]
	cmp	r4, r6
	str	r3, [sp, #4]
	str	r3, [r5, #4]!
	beq	.L7
.L6:
	ldr	r3, [r4, #-4]
	mov	r0, r8
	cmp	r3, #8
	bne	.L4
	bl	B53_MIB_PAGE
	ldr	r2, [r4]
	mov	r1, r0
	add	r3, sp, #4
	mov	r0, r7
	bl	b53_read64
	add	r4, r4, #8
	ldr	r3, [sp, #4]
	cmp	r4, r6
	str	r3, [r5, #4]!
	bne	.L6
.L7:
	mov	r0, r7
	bl	mutex_unlock
	ldr	r3, .L15
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L14
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	bl	__stack_chk_fail
.L16:
	.align	2
.L15:
	.word	.LC0
	.size	b53_get_ethtool_stats, .-b53_get_ethtool_stats
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
