	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcmgenet_get_ethtool_stats
_bcmgenet_get_ethtool_stats:            ## @bcmgenet_get_ethtool_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r15
	movq	%rbx, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r15, %rdi
	callq	_bcmgenet_update_mib_counters
LBB0_2:
	movq	_BCMGENET_STATS_LEN@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	testl	%r9d, %r9d
	jle	LBB0_9
## %bb.3:
	movq	_bcmgenet_gstrings_stats@GOTPCREL(%rip), %rax
	movq	(%rax), %r8
	cmpl	$1, %r9d
	jne	LBB0_5
## %bb.4:
	xorl	%edx, %edx
	jmp	LBB0_7
LBB0_5:
	movl	%r9d, %r10d
	andl	$-2, %r10d
	leaq	28(%r8), %rdi
	xorl	%edx, %edx
	movq	_BCMGENET_STAT_NETDEV@GOTPCREL(%rip), %rax
	.p2align	4, 0x90
LBB0_6:                                 ## =>This Inner Loop Header: Depth=1
	movq	-28(%rdi), %rcx
	cmpq	(%rax), %rcx
	movq	%r15, %rcx
	cmoveq	%rbx, %rcx
	movslq	-16(%rdi), %rsi
	movq	(%rcx,%rsi), %rcx
	movq	%rcx, (%r14,%rdx,8)
	movq	-12(%rdi), %rcx
	cmpq	(%rax), %rcx
	movq	%r15, %rcx
	cmoveq	%rbx, %rcx
	movslq	(%rdi), %rsi
	movq	(%rcx,%rsi), %rcx
	movq	%rcx, 8(%r14,%rdx,8)
	addq	$2, %rdx
	addq	$32, %rdi
	cmpq	%rdx, %r10
	jne	LBB0_6
LBB0_7:
	testb	$1, %r9b
	je	LBB0_9
## %bb.8:
	movq	%rdx, %rax
	shlq	$4, %rax
	movq	(%r8,%rax), %rcx
	movq	_BCMGENET_STAT_NETDEV@GOTPCREL(%rip), %rsi
	cmpq	(%rsi), %rcx
	cmoveq	%rbx, %r15
	movslq	12(%r8,%rax), %rax
	movq	(%r15,%rax), %rax
	movq	%rax, (%r14,%rdx,8)
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCMGENET_STATS_LEN,4,2         ## @BCMGENET_STATS_LEN
	.comm	_bcmgenet_gstrings_stats,8,3    ## @bcmgenet_gstrings_stats
	.comm	_BCMGENET_STAT_NETDEV,8,3       ## @BCMGENET_STAT_NETDEV
	.no_dead_strip	_bcmgenet_get_ethtool_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcmgenet_get_ethtool_stats
_bcmgenet_get_ethtool_stats:            ; @bcmgenet_get_ethtool_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, x2
	mov	x20, x0
	bl	_netdev_priv
	mov	x21, x0
	mov	x0, x20
	bl	_netif_running
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x21
	bl	_bcmgenet_update_mib_counters
LBB0_2:
Lloh0:
	adrp	x8, _BCMGENET_STATS_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BCMGENET_STATS_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
Lloh3:
	adrp	x9, _bcmgenet_gstrings_stats@GOTPAGE
Lloh4:
	ldr	x9, [x9, _bcmgenet_gstrings_stats@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _BCMGENET_STAT_NETDEV@GOTPAGE
Lloh7:
	ldr	x10, [x10, _BCMGENET_STAT_NETDEV@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x9]
	ldr	x12, [x10]
	cmp	x11, x12
	csel	x11, x20, x21, eq
	ldrsw	x12, [x9, #12]
	ldr	x11, [x11, x12]
	str	x11, [x19], #8
	add	x9, x9, #16
	subs	x8, x8, #1
	b.ne	LBB0_4
LBB0_5:
	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	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_BCMGENET_STATS_LEN,4,2         ; @BCMGENET_STATS_LEN
	.comm	_bcmgenet_gstrings_stats,8,3    ; @bcmgenet_gstrings_stats
	.comm	_BCMGENET_STAT_NETDEV,8,3       ; @BCMGENET_STAT_NETDEV
	.no_dead_strip	_bcmgenet_get_ethtool_stats
.subsections_via_symbols
