	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function octeon_mgmt_update_rx_stats
_octeon_mgmt_update_rx_stats:           ## @octeon_mgmt_update_rx_stats
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_netdev_priv
	movq	%rax, %rbx
	movq	_AGL_GMX_RX_STATS_PKTS_DRP@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_cvmx_read_csr
	movq	%rax, %r15
	movq	_AGL_GMX_RX_STATS_PKTS_BAD@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	addq	8(%rbx), %rdi
	callq	_cvmx_read_csr
	movq	%rax, %r12
	movq	%r15, %rax
	orq	%r12, %rax
	je	LBB0_1
## %bb.2:
	movq	%rbx, %rdi
	callq	_spin_lock_irqsave
	addl	%r12d, 4(%r14)
	addl	%r15d, (%r14)
	movq	%rbx, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_irqrestore         ## TAILCALL
LBB0_1:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AGL_GMX_RX_STATS_PKTS_DRP,8,3  ## @AGL_GMX_RX_STATS_PKTS_DRP
	.comm	_AGL_GMX_RX_STATS_PKTS_BAD,8,3  ## @AGL_GMX_RX_STATS_PKTS_BAD
	.no_dead_strip	_octeon_mgmt_update_rx_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function octeon_mgmt_update_rx_stats
_octeon_mgmt_update_rx_stats:           ; @octeon_mgmt_update_rx_stats
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_netdev_priv
	mov	x20, x0
	ldr	x8, [x0, #8]
Lloh0:
	adrp	x9, _AGL_GMX_RX_STATS_PKTS_DRP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _AGL_GMX_RX_STATS_PKTS_DRP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_cvmx_read_csr
	mov	x21, x0
	ldr	x8, [x20, #8]
Lloh3:
	adrp	x9, _AGL_GMX_RX_STATS_PKTS_BAD@GOTPAGE
Lloh4:
	ldr	x9, [x9, _AGL_GMX_RX_STATS_PKTS_BAD@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_cvmx_read_csr
	orr	x8, x21, x0
	cbz	x8, LBB0_2
; %bb.1:
	mov	x22, x0
	mov	x0, x20
	bl	_spin_lock_irqsave
	ldp	w9, w8, [x19]
	add	w8, w8, w22
	add	w9, w9, w21
	stp	w9, w8, [x19]
	mov	x0, x20
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_irqrestore
LBB0_2:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AGL_GMX_RX_STATS_PKTS_DRP,8,3  ; @AGL_GMX_RX_STATS_PKTS_DRP
	.comm	_AGL_GMX_RX_STATS_PKTS_BAD,8,3  ; @AGL_GMX_RX_STATS_PKTS_BAD
	.no_dead_strip	_octeon_mgmt_update_rx_stats
.subsections_via_symbols
