	.file	"extr_octeon_mgmt.c_octeon_mgmt_update_tx_stats.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	octeon_mgmt_update_tx_stats, @function
octeon_mgmt_update_tx_stats:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	call	netdev_priv@PLT
	mov	rdi, QWORD PTR AGL_GMX_TX_STAT0[rip]
	mov	rbp, rax
	add	rdi, QWORD PTR 8[rax]
	call	cvmx_read_csr@PLT
	mov	rdi, QWORD PTR AGL_GMX_TX_STAT1[rip]
	add	rdi, QWORD PTR 8[rbp]
	mov	r13, rax
	call	cvmx_read_csr@PLT
	mov	r12, rax
	mov	rax, r13
	or	rax, r12
	je	.L1
	xor	r14d, r14d
	mov	rdi, rbp
	mov	rsi, r14
	call	spin_lock_irqsave@PLT
	add	DWORD PTR 4[rbx], r13d
	mov	rsi, r14
	mov	rdi, rbp
	add	DWORD PTR [rbx], r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	jmp	spin_unlock_irqrestore@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	octeon_mgmt_update_tx_stats, .-octeon_mgmt_update_tx_stats
	.comm	AGL_GMX_TX_STAT1,8,8
	.comm	AGL_GMX_TX_STAT0,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_octeon_mgmt.c_octeon_mgmt_update_tx_stats.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	octeon_mgmt_update_tx_stats, %function
octeon_mgmt_update_tx_stats:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r0
	bl	netdev_priv
	ldr	r3, .L5
	mov	r4, r0
	ldr	r3, [r3]
	ldr	r0, [r0, #4]
	add	r0, r0, r3
	bl	cvmx_read_csr
	ldr	r3, .L5+4
	ldr	r2, [r4, #4]
	ldr	r3, [r3]
	mov	r6, r0
	add	r0, r2, r3
	bl	cvmx_read_csr
	orrs	r3, r6, r0
	popeq	{r4, r5, r6, r7, r8, pc}
	mov	r8, #0
	mov	r5, r0
	mov	r1, r8
	mov	r0, r4
	bl	spin_lock_irqsave
	ldm	r7, {r0, r3}
	add	r5, r5, r0
	add	r6, r6, r3
	mov	r1, r8
	mov	r0, r4
	stm	r7, {r5, r6}
	pop	{r4, r5, r6, r7, r8, lr}
	b	spin_unlock_irqrestore
.L6:
	.align	2
.L5:
	.word	AGL_GMX_TX_STAT0
	.word	AGL_GMX_TX_STAT1
	.size	octeon_mgmt_update_tx_stats, .-octeon_mgmt_update_tx_stats
	.comm	AGL_GMX_TX_STAT1,4,4
	.comm	AGL_GMX_TX_STAT0,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
