	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function xgene_get_extd_stats
_xgene_get_extd_stats:                  ## @xgene_get_extd_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movq	_XGENE_EXTD_STATS_LEN@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_5
## %bb.1:
	xorl	%ebx, %ebx
	movq	_gstrings_extd_stats@GOTPCREL(%rip), %r13
	xorl	%r15d, %r15d
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r15
	movq	_XGENE_EXTD_STATS_LEN@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$4, %rbx
	cmpq	%rax, %r15
	jge	LBB0_5
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	8(%rax,%rbx,4), %esi
	movq	%r14, %rdi
	callq	_xgene_enet_rd_stat
	movl	%eax, %r12d
	movq	(%r13), %rax
	movq	(%rax,%rbx,4), %rdi
	testq	%rdi, %rdi
	je	LBB0_4
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	decq	%rdi
	xorl	%esi, %esi
	callq	_GENMASK
	andl	%r12d, %eax
	movq	(%r14), %rcx
	addl	%eax, (%rcx,%rbx)
	jmp	LBB0_4
LBB0_5:
	movq	(%r14), %rax
	movq	8(%r14), %rdx
	movq	_PHY_INTERFACE_MODE_XGMII@GOTPCREL(%rip), %rsi
	movq	_RALN_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	cmpq	(%rsi), %rdx
	jne	LBB0_7
## %bb.6:
	movl	$0, (%rax,%rcx,4)
	jmp	LBB0_8
LBB0_7:
	movl	(%rax,%rcx,4), %ecx
	movq	_RFCS_IDX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	subl	%ecx, (%rax,%rdx,4)
	movq	_RUND_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	_RFLR_IDX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	subl	%ecx, (%rax,%rdx,4)
	movq	_TFRG_IDX@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	movl	(%rax,%rcx,4), %ecx
	movq	_TFCS_IDX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	subl	%ecx, (%rax,%rdx,4)
LBB0_8:
	movq	24(%r14), %rax
	leaq	-48(%rbp), %rsi
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	callq	*(%rax)
	movl	-48(%rbp), %eax
	movq	(%r14), %rcx
	movq	_RX_OVERRUN_IDX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addl	%eax, (%rcx,%rdx,4)
	movl	-44(%rbp), %eax
	movq	_TX_UNDERRUN_IDX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	addl	%eax, (%rcx,%rdx,4)
	movl	16(%r14), %eax
	movq	_FALSE_RFLR_IDX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	movl	20(%r14), %eax
	movq	_FALSE_RJBR_IDX@GOTPCREL(%rip), %rdx
	movq	(%rdx), %rdx
	movl	%eax, (%rcx,%rdx,4)
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_XGENE_EXTD_STATS_LEN,4,2       ## @XGENE_EXTD_STATS_LEN
	.comm	_gstrings_extd_stats,8,3        ## @gstrings_extd_stats
	.comm	_PHY_INTERFACE_MODE_XGMII,8,3   ## @PHY_INTERFACE_MODE_XGMII
	.comm	_RALN_IDX,8,3                   ## @RALN_IDX
	.comm	_RFCS_IDX,8,3                   ## @RFCS_IDX
	.comm	_RUND_IDX,8,3                   ## @RUND_IDX
	.comm	_RFLR_IDX,8,3                   ## @RFLR_IDX
	.comm	_TFRG_IDX,8,3                   ## @TFRG_IDX
	.comm	_TFCS_IDX,8,3                   ## @TFCS_IDX
	.comm	_RX_OVERRUN_IDX,8,3             ## @RX_OVERRUN_IDX
	.comm	_TX_UNDERRUN_IDX,8,3            ## @TX_UNDERRUN_IDX
	.comm	_FALSE_RFLR_IDX,8,3             ## @FALSE_RFLR_IDX
	.comm	_FALSE_RJBR_IDX,8,3             ## @FALSE_RJBR_IDX
	.no_dead_strip	_xgene_get_extd_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function xgene_get_extd_stats
_xgene_get_extd_stats:                  ; @xgene_get_extd_stats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x19, x0
Lloh0:
	adrp	x21, _XGENE_EXTD_STATS_LEN@GOTPAGE
Lloh1:
	ldr	x21, [x21, _XGENE_EXTD_STATS_LEN@GOTPAGEOFF]
	ldr	w8, [x21]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.1:
	mov	x22, #0
	mov	x23, #0
Lloh2:
	adrp	x24, _gstrings_extd_stats@GOTPAGE
Lloh3:
	ldr	x24, [x24, _gstrings_extd_stats@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x21]
	add	x22, x22, #16
	cmp	x23, x8
	b.ge	LBB0_5
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x24]
	add	x8, x8, x22
	ldr	w1, [x8, #8]
	mov	x0, x19
	bl	_xgene_enet_rd_stat
	ldr	x8, [x24]
	ldr	x8, [x8, x22]
	cbz	x8, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x20, x0
	sub	x0, x8, #1
	mov	w1, #0
	bl	_GENMASK
	and	w8, w0, w20
	ldr	x9, [x19]
	lsl	x10, x23, #2
	ldr	w11, [x9, x10]
	add	w8, w11, w8
	str	w8, [x9, x10]
	b	LBB0_2
LBB0_5:
Lloh4:
	adrp	x8, _PHY_INTERFACE_MODE_XGMII@GOTPAGE
Lloh5:
	ldr	x8, [x8, _PHY_INTERFACE_MODE_XGMII@GOTPAGEOFF]
Lloh6:
	ldr	x10, [x8]
	ldp	x8, x11, [x19]
Lloh7:
	adrp	x9, _RALN_IDX@GOTPAGE
Lloh8:
	ldr	x9, [x9, _RALN_IDX@GOTPAGEOFF]
Lloh9:
	ldr	x9, [x9]
	cmp	x11, x10
	b.ne	LBB0_7
; %bb.6:
	str	wzr, [x8, x9, lsl #2]
	b	LBB0_8
LBB0_7:
	ldr	w9, [x8, x9, lsl #2]
Lloh10:
	adrp	x10, _RFCS_IDX@GOTPAGE
Lloh11:
	ldr	x10, [x10, _RFCS_IDX@GOTPAGEOFF]
Lloh12:
	ldr	x10, [x10]
	lsl	x10, x10, #2
	ldr	w11, [x8, x10]
	sub	w9, w11, w9
	str	w9, [x8, x10]
Lloh13:
	adrp	x9, _RUND_IDX@GOTPAGE
Lloh14:
	ldr	x9, [x9, _RUND_IDX@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
Lloh16:
	adrp	x10, _RFLR_IDX@GOTPAGE
Lloh17:
	ldr	x10, [x10, _RFLR_IDX@GOTPAGEOFF]
Lloh18:
	ldr	x10, [x10]
	lsl	x10, x10, #2
	ldr	w11, [x8, x10]
	sub	w9, w11, w9
	str	w9, [x8, x10]
Lloh19:
	adrp	x9, _TFRG_IDX@GOTPAGE
Lloh20:
	ldr	x9, [x9, _TFRG_IDX@GOTPAGEOFF]
Lloh21:
	ldr	x9, [x9]
	ldr	w9, [x8, x9, lsl #2]
Lloh22:
	adrp	x10, _TFCS_IDX@GOTPAGE
Lloh23:
	ldr	x10, [x10, _TFCS_IDX@GOTPAGEOFF]
Lloh24:
	ldr	x10, [x10]
	lsl	x10, x10, #2
	ldr	w11, [x8, x10]
	sub	w9, w11, w9
	str	w9, [x8, x10]
LBB0_8:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	add	x1, sp, #12
	add	x2, sp, #8
	mov	x0, x19
	blr	x8
	ldr	w8, [sp, #12]
Lloh25:
	adrp	x9, _RX_OVERRUN_IDX@GOTPAGE
Lloh26:
	ldr	x9, [x9, _RX_OVERRUN_IDX@GOTPAGEOFF]
	ldr	x10, [x19]
Lloh27:
	ldr	x9, [x9]
	lsl	x9, x9, #2
	ldr	w11, [x10, x9]
	add	w8, w11, w8
	str	w8, [x10, x9]
	ldr	w8, [sp, #8]
Lloh28:
	adrp	x9, _TX_UNDERRUN_IDX@GOTPAGE
Lloh29:
	ldr	x9, [x9, _TX_UNDERRUN_IDX@GOTPAGEOFF]
Lloh30:
	ldr	x9, [x9]
	lsl	x9, x9, #2
	ldr	w11, [x10, x9]
	add	w8, w11, w8
	str	w8, [x10, x9]
	ldr	w8, [x19, #16]
Lloh31:
	adrp	x9, _FALSE_RFLR_IDX@GOTPAGE
Lloh32:
	ldr	x9, [x9, _FALSE_RFLR_IDX@GOTPAGEOFF]
Lloh33:
	ldr	x9, [x9]
	str	w8, [x10, x9, lsl #2]
	ldr	w8, [x19, #20]
Lloh34:
	adrp	x9, _FALSE_RJBR_IDX@GOTPAGE
Lloh35:
	ldr	x9, [x9, _FALSE_RJBR_IDX@GOTPAGEOFF]
Lloh36:
	ldr	x9, [x9]
	str	w8, [x10, x9, lsl #2]
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh16, Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_XGENE_EXTD_STATS_LEN,4,2       ; @XGENE_EXTD_STATS_LEN
	.comm	_gstrings_extd_stats,8,3        ; @gstrings_extd_stats
	.comm	_PHY_INTERFACE_MODE_XGMII,8,3   ; @PHY_INTERFACE_MODE_XGMII
	.comm	_RALN_IDX,8,3                   ; @RALN_IDX
	.comm	_RFCS_IDX,8,3                   ; @RFCS_IDX
	.comm	_RUND_IDX,8,3                   ; @RUND_IDX
	.comm	_RFLR_IDX,8,3                   ; @RFLR_IDX
	.comm	_TFRG_IDX,8,3                   ; @TFRG_IDX
	.comm	_TFCS_IDX,8,3                   ; @TFCS_IDX
	.comm	_RX_OVERRUN_IDX,8,3             ; @RX_OVERRUN_IDX
	.comm	_TX_UNDERRUN_IDX,8,3            ; @TX_UNDERRUN_IDX
	.comm	_FALSE_RFLR_IDX,8,3             ; @FALSE_RFLR_IDX
	.comm	_FALSE_RJBR_IDX,8,3             ; @FALSE_RJBR_IDX
	.no_dead_strip	_xgene_get_extd_stats
.subsections_via_symbols
