	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcmgenet_update_stat_misc
_bcmgenet_update_stat_misc:             ## @bcmgenet_update_stat_misc
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	cmpl	$129, %esi
	je	LBB0_7
## %bb.1:
	movl	%esi, %ebx
	movq	%r14, %rdi
	cmpl	$128, %esi
	jne	LBB0_10
## %bb.2:
	callq	_GENET_IS_V2
	testl	%eax, %eax
	jne	LBB0_3
## %bb.4:
	movq	_RBUF_OVFL_CNT_V3PLUS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_7:
	movq	%r14, %rdi
	callq	_GENET_IS_V2
	testl	%eax, %eax
	jne	LBB0_8
## %bb.9:
	movq	_RBUF_ERR_CNT_V3PLUS@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_10:
	movl	%ebx, %esi
	callq	_bcmgenet_umac_readl
	cmpl	$-1, %eax
	jne	LBB0_13
## %bb.11:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_bcmgenet_umac_writel
	jmp	LBB0_12
LBB0_3:
	movq	_RBUF_OVFL_CNT_V2@GOTPCREL(%rip), %rax
	jmp	LBB0_5
LBB0_8:
	movq	_RBUF_ERR_CNT_V2@GOTPCREL(%rip), %rax
LBB0_5:
	movl	(%rax), %ebx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_bcmgenet_rbuf_readl
	cmpl	$-1, %eax
	jne	LBB0_13
## %bb.6:
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	%ebx, %edx
	callq	_bcmgenet_rbuf_writel
LBB0_12:
	movl	$-1, %eax
LBB0_13:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RBUF_OVFL_CNT_V2,4,2           ## @RBUF_OVFL_CNT_V2
	.comm	_RBUF_OVFL_CNT_V3PLUS,4,2       ## @RBUF_OVFL_CNT_V3PLUS
	.comm	_RBUF_ERR_CNT_V2,4,2            ## @RBUF_ERR_CNT_V2
	.comm	_RBUF_ERR_CNT_V3PLUS,4,2        ## @RBUF_ERR_CNT_V3PLUS
	.no_dead_strip	_bcmgenet_update_stat_misc
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcmgenet_update_stat_misc
_bcmgenet_update_stat_misc:             ; @bcmgenet_update_stat_misc
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	cmp	w1, #129
	b.eq	LBB0_3
; %bb.1:
	mov	x20, x1
	mov	x0, x19
	cmp	w1, #128
	b.ne	LBB0_6
; %bb.2:
	bl	_GENET_IS_V2
Lloh0:
	adrp	x8, _RBUF_OVFL_CNT_V3PLUS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _RBUF_OVFL_CNT_V3PLUS@GOTPAGEOFF]
Lloh2:
	adrp	x9, _RBUF_OVFL_CNT_V2@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RBUF_OVFL_CNT_V2@GOTPAGEOFF]
	b	LBB0_4
LBB0_3:
	mov	x0, x19
	bl	_GENET_IS_V2
Lloh4:
	adrp	x8, _RBUF_ERR_CNT_V3PLUS@GOTPAGE
Lloh5:
	ldr	x8, [x8, _RBUF_ERR_CNT_V3PLUS@GOTPAGEOFF]
Lloh6:
	adrp	x9, _RBUF_ERR_CNT_V2@GOTPAGE
Lloh7:
	ldr	x9, [x9, _RBUF_ERR_CNT_V2@GOTPAGEOFF]
LBB0_4:
	cmp	w0, #0
	csel	x8, x8, x9, eq
	ldr	w20, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	_bcmgenet_rbuf_readl
	cmn	w0, #1
	b.ne	LBB0_9
; %bb.5:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_bcmgenet_rbuf_writel
	b	LBB0_8
LBB0_6:
	mov	x1, x20
	bl	_bcmgenet_umac_readl
	cmn	w0, #1
	b.ne	LBB0_9
; %bb.7:
	mov	x0, x19
	mov	w1, #0
	mov	x2, x20
	bl	_bcmgenet_umac_writel
LBB0_8:
	mov	w0, #-1
LBB0_9:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_RBUF_OVFL_CNT_V2,4,2           ; @RBUF_OVFL_CNT_V2
	.comm	_RBUF_OVFL_CNT_V3PLUS,4,2       ; @RBUF_OVFL_CNT_V3PLUS
	.comm	_RBUF_ERR_CNT_V2,4,2            ; @RBUF_ERR_CNT_V2
	.comm	_RBUF_ERR_CNT_V3PLUS,4,2        ; @RBUF_ERR_CNT_V3PLUS
	.no_dead_strip	_bcmgenet_update_stat_misc
.subsections_via_symbols
