	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bcm_sysport_get_stats
_bcm_sysport_get_stats:                 ## @bcm_sysport_get_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	%r13
	pushq	%r12
	pushq	%rbx
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rdi, %rbx
	callq	_netdev_priv
	movq	%rax, %r12
	movq	$0, -72(%rbp)
	movq	$0, -64(%rbp)
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	callq	_netif_running
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%r12, %rdi
	callq	_bcm_sysport_update_mib_counters
	leaq	-72(%rbp), %rsi
	leaq	-64(%rbp), %rdx
	movq	%r12, %rdi
	callq	_bcm_sysport_update_tx_stats
	movq	-72(%rbp), %rax
	movq	%rax, 32(%r12)
	movq	-64(%rbp), %rax
	movq	%rax, 24(%r12)
LBB0_2:
	movq	_BCM_SYSPORT_STATS_LEN@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_12
## %bb.3:
	leaq	24(%r12), %rax
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	leaq	16(%r12), %r13
	movq	-56(%rbp), %rax                 ## 8-byte Reload
	addq	$4, %rax
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	xorl	%r15d, %r15d
	movq	%r12, -96(%rbp)                 ## 8-byte Spill
	jmp	LBB0_4
	.p2align	4, 0x90
LBB0_10:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	(%r14,%r12), %rax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	movq	%rax, (%rcx,%r15,8)
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	incq	%r15
	movq	_BCM_SYSPORT_STATS_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	cmpq	%rax, %r15
	movq	-96(%rbp), %r12                 ## 8-byte Reload
	jge	LBB0_12
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_9 Depth 2
	movq	_bcm_sysport_gstrings_stats@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	%r15, %rbx
	shlq	$4, %rbx
	movq	(%rcx,%rbx), %rdi
	movq	_BCM_SYSPORT_STAT_NETDEV64@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	movq	%r12, %r14
	cmoveq	-88(%rbp), %r14                 ## 8-byte Folded Reload
	movq	_BCM_SYSPORT_STAT_NETDEV@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdi
	cmoveq	-80(%rbp), %r14                 ## 8-byte Folded Reload
	cmpq	$0, 8(%r12)
	je	LBB0_6
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	%rcx, %r12
	callq	_bcm_sysport_lite_stat_valid
	movq	%r12, %rcx
	testl	%eax, %eax
	je	LBB0_11
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	12(%rcx,%rbx), %r12
	cmpl	$8, 8(%rcx,%rbx)
	jne	LBB0_10
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	addq	%rbx, %rcx
	movq	(%rcx), %rax
	movq	_BCM_SYSPORT_STAT_NETDEV64@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_10
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-48(%rbp), %rbx                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_9:                                 ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	%r13, %rdi
	callq	_u64_stats_fetch_begin_irq
	movq	(%r14,%r12), %rcx
	movq	%rcx, (%rbx,%r15,8)
	movq	%r13, %rdi
	movl	%eax, %esi
	callq	_u64_stats_fetch_retry_irq
	testq	%rax, %rax
	jne	LBB0_9
	jmp	LBB0_11
LBB0_12:
	movq	_ETH_SS_STATS@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rdi
	callq	_bcm_sysport_get_sset_count
	movl	(%rbx), %r9d
	testl	%r9d, %r9d
	movq	-48(%rbp), %r10                 ## 8-byte Reload
	jle	LBB0_20
## %bb.13:
	movq	_NUM_SYSPORT_TXQ_STAT@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	imull	%r9d, %edx
	subl	%edx, %eax
	movslq	%eax, %r8
	cmpl	$1, %r9d
	jne	LBB0_15
## %bb.14:
	xorl	%edx, %edx
	testb	$1, %r9b
	jne	LBB0_19
	jmp	LBB0_20
LBB0_15:
	movl	%r9d, %esi
	andl	$-2, %esi
	leaq	(%r10,%r8,8), %rbx
	addq	$24, %rbx
	xorl	%edi, %edi
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_16:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r12), %rax
	movq	8(%rax,%rdi,8), %rcx
	movq	%rcx, -24(%rbx,%rdi,8)
	movq	(%rax,%rdi,8), %rax
	movq	%rax, -16(%rbx,%rdi,8)
	movq	(%r12), %rax
	movq	24(%rax,%rdi,8), %rcx
	movq	%rcx, -8(%rbx,%rdi,8)
	movq	16(%rax,%rdi,8), %rax
	movq	%rax, (%rbx,%rdi,8)
	addq	$2, %rdx
	addq	$4, %rdi
	cmpq	%rdx, %rsi
	jne	LBB0_16
## %bb.17:
	addq	%rdi, %r8
	testb	$1, %r9b
	je	LBB0_20
LBB0_19:
	movq	(%r12), %rax
	shlq	$4, %rdx
	movq	8(%rax,%rdx), %rcx
	movq	%rcx, (%r10,%r8,8)
	movq	(%rax,%rdx), %rax
	movq	%rax, 8(%r10,%r8,8)
LBB0_20:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_BCM_SYSPORT_STATS_LEN,4,2      ## @BCM_SYSPORT_STATS_LEN
	.comm	_bcm_sysport_gstrings_stats,8,3 ## @bcm_sysport_gstrings_stats
	.comm	_BCM_SYSPORT_STAT_NETDEV,8,3    ## @BCM_SYSPORT_STAT_NETDEV
	.comm	_BCM_SYSPORT_STAT_NETDEV64,8,3  ## @BCM_SYSPORT_STAT_NETDEV64
	.comm	_ETH_SS_STATS,4,2               ## @ETH_SS_STATS
	.comm	_NUM_SYSPORT_TXQ_STAT,4,2       ## @NUM_SYSPORT_TXQ_STAT
	.no_dead_strip	_bcm_sysport_get_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bcm_sysport_get_stats
_bcm_sysport_get_stats:                 ; @bcm_sysport_get_stats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x2
	mov	x21, x0
	bl	_netdev_priv
	mov	x19, x0
	stp	xzr, xzr, [sp, #16]
	str	x21, [sp, #8]                   ; 8-byte Folded Spill
	mov	x0, x21
	bl	_netif_running
	cbz	x0, LBB0_2
; %bb.1:
	mov	x0, x19
	bl	_bcm_sysport_update_mib_counters
	add	x1, sp, #24
	add	x2, sp, #16
	mov	x0, x19
	bl	_bcm_sysport_update_tx_stats
	ldp	x9, x8, [sp, #16]
	stp	x9, x8, [x19, #24]
LBB0_2:
Lloh0:
	adrp	x8, _BCM_SYSPORT_STATS_LEN@GOTPAGE
Lloh1:
	ldr	x8, [x8, _BCM_SYSPORT_STATS_LEN@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_11
; %bb.3:
	mov	x24, #0
	add	x22, x19, #16
	add	x25, x19, #24
	ldr	x8, [sp, #8]                    ; 8-byte Folded Reload
	add	x26, x8, #4
Lloh3:
	adrp	x21, _BCM_SYSPORT_STAT_NETDEV64@GOTPAGE
Lloh4:
	ldr	x21, [x21, _BCM_SYSPORT_STAT_NETDEV64@GOTPAGEOFF]
	b	LBB0_6
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x23, x27]
	str	x8, [x20, x24, lsl #3]
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	add	x24, x24, #1
Lloh5:
	adrp	x8, _BCM_SYSPORT_STATS_LEN@GOTPAGE
Lloh6:
	ldr	x8, [x8, _BCM_SYSPORT_STATS_LEN@GOTPAGEOFF]
Lloh7:
	ldrsw	x8, [x8]
	cmp	x24, x8
	b.ge	LBB0_11
LBB0_6:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_10 Depth 2
Lloh8:
	adrp	x8, _bcm_sysport_gstrings_stats@GOTPAGE
Lloh9:
	ldr	x8, [x8, _bcm_sysport_gstrings_stats@GOTPAGEOFF]
Lloh10:
	ldr	x8, [x8]
	add	x28, x8, x24, lsl #4
	ldr	x0, [x28]
Lloh11:
	adrp	x8, _BCM_SYSPORT_STAT_NETDEV@GOTPAGE
Lloh12:
	ldr	x8, [x8, _BCM_SYSPORT_STAT_NETDEV@GOTPAGEOFF]
Lloh13:
	ldr	x8, [x8]
	ldr	x9, [x21]
	cmp	x0, x9
	csel	x9, x25, x19, eq
	cmp	x0, x8
	csel	x23, x26, x9, eq
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	bl	_bcm_sysport_lite_stat_valid
	cbz	w0, LBB0_5
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldp	w8, w27, [x28, #8]
                                        ; kill: def $w27 killed $w27 def $x27
	sxtw	x27, w27
	cmp	w8, #8
	b.ne	LBB0_4
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x28]
	ldr	x9, [x21]
	cmp	x8, x9
	b.ne	LBB0_4
LBB0_10:                                ;   Parent Loop BB0_6 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x22
	bl	_u64_stats_fetch_begin_irq
	mov	x1, x0
	ldr	x8, [x23, x27]
	str	x8, [x20, x24, lsl #3]
	mov	x0, x22
	bl	_u64_stats_fetch_retry_irq
	cbnz	x0, LBB0_10
	b	LBB0_5
LBB0_11:
Lloh14:
	adrp	x8, _ETH_SS_STATS@GOTPAGE
Lloh15:
	ldr	x8, [x8, _ETH_SS_STATS@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	x21, [sp, #8]                   ; 8-byte Folded Reload
	mov	x0, x21
	bl	_bcm_sysport_get_sset_count
	ldr	w10, [x21]
	cmp	w10, #1
	b.lt	LBB0_14
; %bb.12:
	mov	x8, #0
Lloh17:
	adrp	x9, _NUM_SYSPORT_TXQ_STAT@GOTPAGE
Lloh18:
	ldr	x9, [x9, _NUM_SYSPORT_TXQ_STAT@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	msub	w9, w9, w10, w0
	add	x9, x20, w9, sxtw #3
	lsl	x10, x10, #4
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x19]
	add	x11, x11, x8
	ldr	x12, [x11, #8]
	add	x13, x9, x8
	str	x12, [x13]
	ldr	x11, [x11]
	str	x11, [x13, #8]
	add	x8, x8, #16
	cmp	x10, x8
	b.ne	LBB0_13
LBB0_14:
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_BCM_SYSPORT_STATS_LEN,4,2      ; @BCM_SYSPORT_STATS_LEN
	.comm	_bcm_sysport_gstrings_stats,8,3 ; @bcm_sysport_gstrings_stats
	.comm	_BCM_SYSPORT_STAT_NETDEV,8,3    ; @BCM_SYSPORT_STAT_NETDEV
	.comm	_BCM_SYSPORT_STAT_NETDEV64,8,3  ; @BCM_SYSPORT_STAT_NETDEV64
	.comm	_ETH_SS_STATS,4,2               ; @ETH_SS_STATS
	.comm	_NUM_SYSPORT_TXQ_STAT,4,2       ; @NUM_SYSPORT_TXQ_STAT
	.no_dead_strip	_bcm_sysport_get_stats
.subsections_via_symbols
