	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcm_sf2_cfp_get_ethtool_stats  ## -- Begin function bcm_sf2_cfp_get_ethtool_stats
	.p2align	4, 0x90
_bcm_sf2_cfp_get_ethtool_stats:         ## @bcm_sf2_cfp_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	%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, -88(%rbp)                 ## 8-byte Spill
	movl	%esi, -52(%rbp)                 ## 4-byte Spill
	callq	_bcm_sf2_to_priv
	movq	%rax, %rbx
	movq	_bcm_sf2_cfp_stats@GOTPCREL(%rip), %r14
	movq	(%r14), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	leaq	4(%rbx), %rdi
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	callq	_mutex_lock
	cmpl	$2, (%rbx)
	jb	LBB0_9
## %bb.1:
	movl	-48(%rbp), %r12d                ## 4-byte Reload
	movl	$1, %esi
	xorl	%eax, %eax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movq	%r12, -80(%rbp)                 ## 8-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incl	%esi
	addq	%r12, -64(%rbp)                 ## 8-byte Folded Spill
	cmpl	(%rbx), %esi
	jae	LBB0_9
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_5 Depth 2
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	movq	%rbx, %rdi
	movl	-52(%rbp), %esi                 ## 4-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_bcm_sf2_cfp_rule_find
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	testq	%rax, %rax
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	cmpl	$0, -48(%rbp)                   ## 4-byte Folded Reload
	je	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	xorl	%r13d, %r13d
	jmp	LBB0_5
	.p2align	4, 0x90
LBB0_7:                                 ##   in Loop: Header=BB0_5 Depth=2
	incq	%r13
	cmpq	%r13, %r12
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	je	LBB0_8
LBB0_5:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	(%r14), %r15
	movq	%rbx, %rdi
	callq	_bcm_sf2_cfp_rule_addr_set
	movq	_OP_SEL_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	orl	(%r15,%r13,8), %esi
	movq	%rbx, %rdi
	callq	_bcm_sf2_cfp_op
	testl	%eax, %eax
	jne	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=2
	movq	%r14, %r12
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	leal	(%rax,%r13), %r14d
	movl	4(%r15,%r13,8), %esi
	movq	%rbx, %rdi
	callq	_core_readl
	movq	-88(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx,%r14,4)
	movq	%r12, %r14
	movq	-80(%rbp), %r12                 ## 8-byte Reload
	jmp	LBB0_7
LBB0_9:
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_bcm_sf2_cfp_stats,8,3          ## @bcm_sf2_cfp_stats
	.comm	_OP_SEL_READ,4,2                ## @OP_SEL_READ
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bcm_sf2_cfp_get_ethtool_stats  ; -- Begin function bcm_sf2_cfp_get_ethtool_stats
	.p2align	2
_bcm_sf2_cfp_get_ethtool_stats:         ; @bcm_sf2_cfp_get_ethtool_stats
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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	x19, x2
	str	w1, [sp, #8]                    ; 4-byte Folded Spill
	bl	_bcm_sf2_to_priv
	mov	x21, x0
Lloh0:
	adrp	x25, _bcm_sf2_cfp_stats@GOTPAGE
Lloh1:
	ldr	x25, [x25, _bcm_sf2_cfp_stats@GOTPAGEOFF]
	ldr	x0, [x25]
	bl	_ARRAY_SIZE
	str	w0, [sp, #12]                   ; 4-byte Folded Spill
	add	x0, x21, #4
	str	x0, [sp]                        ; 8-byte Folded Spill
	bl	_mutex_lock
	ldr	w8, [x21]
	cmp	w8, #2
	b.lo	LBB0_9
; %bb.1:
	mov	w20, #0
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	mov	w8, w8
	lsl	x27, x8, #3
	mov	w24, #1
Lloh2:
	adrp	x28, _OP_SEL_READ@GOTPAGE
Lloh3:
	ldr	x28, [x28, _OP_SEL_READ@GOTPAGEOFF]
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	add	w24, w24, #1
	ldr	w8, [x21]
	ldr	w9, [sp, #12]                   ; 4-byte Folded Reload
	add	w20, w20, w9
	cmp	w24, w8
	b.hs	LBB0_9
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	mov	x0, x21
	ldr	w1, [sp, #8]                    ; 4-byte Folded Reload
	mov	x2, x24
	bl	_bcm_sf2_cfp_rule_find
	cbz	x0, LBB0_2
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #12]                   ; 4-byte Folded Reload
	cbz	w8, LBB0_2
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x22, #0
	mov	x26, x20
	b	LBB0_7
LBB0_6:                                 ;   in Loop: Header=BB0_7 Depth=2
	add	w26, w26, #1
	add	x22, x22, #8
	cmp	x27, x22
	b.eq	LBB0_2
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x23, [x25]
	mov	x0, x21
	mov	x1, x24
	bl	_bcm_sf2_cfp_rule_addr_set
	ldr	w8, [x23, x22]
	ldr	w9, [x28]
	orr	w1, w9, w8
	mov	x0, x21
	bl	_bcm_sf2_cfp_op
	cbnz	w0, LBB0_6
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x8, x23, x22
	ldr	w1, [x8, #4]
	mov	x0, x21
	bl	_core_readl
	str	w0, [x19, w26, uxtw #2]
	b	LBB0_6
LBB0_9:
	ldr	x0, [sp]                        ; 8-byte Folded Reload
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	b	_mutex_unlock
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_bcm_sf2_cfp_stats,8,3          ; @bcm_sf2_cfp_stats
	.comm	_OP_SEL_READ,4,2                ; @OP_SEL_READ
.subsections_via_symbols
