	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_stats_init               ## -- Begin function bnx2x_stats_init
	.p2align	4, 0x90
_bnx2x_stats_init:                      ## @bnx2x_stats_init
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r12
	callq	_BP_PORT
	movl	%eax, %r15d
	movq	%r12, %rdi
	callq	_BP_FW_MB_IDX
	movl	%eax, %r14d
	xorps	%xmm0, %xmm0
	movups	%xmm0, 56(%r12)
	movq	$0, 72(%r12)
	movq	%r12, %rdi
	callq	_BP_NOMCP
	testl	%eax, %eax
	je	LBB0_1
## %bb.2:
	movq	$0, 40(%r12)
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	jmp	LBB0_3
LBB0_1:
	movq	_port_mb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r15d, %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r12, %rdi
	callq	_SHMEM_RD
	movq	%rax, 40(%r12)
	movq	_func_mb@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%r14d, %rcx
	movl	(%rax,%rcx,4), %esi
	movq	%r12, %rdi
	callq	_SHMEM_RD
	movq	%rax, %rcx
	movq	40(%r12), %rdx
LBB0_3:
	movq	%rcx, (%r12)
	movq	_BNX2X_MSG_STATS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	cmpq	$0, 8(%r12)
	jne	LBB0_7
## %bb.4:
	cmpq	$0, 48(%r12)
	je	LBB0_7
## %bb.5:
	cmpq	$0, 40(%r12)
	je	LBB0_7
## %bb.6:
	movq	_STATS_EVENT_PMF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_bnx2x_stats_handle
LBB0_7:
	movq	%r12, %rdi
	callq	_BP_PORT
	movl	%eax, %r15d
	leaq	16(%r12), %r14
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	_NIG_REG_STAT0_BRB_DISCARD@GOTPCREL(%rip), %rax
	imull	$56, %r15d, %ecx
	movslq	%ecx, %rbx
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	movq	%r12, %rdi
	callq	_REG_RD
	movq	%rax, 32(%r12)
	movq	_NIG_REG_STAT0_BRB_TRUNCATE@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_REG_RD
	movq	%rax, 24(%r12)
	movq	%r12, %rdi
	callq	_CHIP_IS_E3
	testl	%eax, %eax
	jne	LBB0_9
## %bb.8:
	movq	_NIG_REG_STAT0_EGRESS_MAC_PKT0@GOTPCREL(%rip), %rax
	shll	$4, %r15d
	leal	(%r15,%r15,4), %ecx
	movslq	%ecx, %rbx
	movq	(%rax), %rsi
	addq	%rbx, %rsi
	leaq	20(%r12), %rdx
	movq	%r12, %rdi
	movl	$2, %ecx
	callq	_REG_RD_DMAE
	movq	_NIG_REG_STAT0_EGRESS_MAC_PKT1@GOTPCREL(%rip), %rax
	addq	(%rax), %rbx
	movq	%r12, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	movl	$2, %ecx
	callq	_REG_RD_DMAE
LBB0_9:
	movq	%r12, %rdi
	callq	_bnx2x_prep_fw_stats_req
	cmpq	$0, 8(%r12)
	je	LBB0_12
## %bb.10:
	cmpq	$0, (%r12)
	je	LBB0_12
## %bb.11:
	movq	_func_stats@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r12, %rdi
	callq	_bnx2x_sp
	movq	%rax, %rdi
	xorl	%esi, %esi
	movl	$4, %edx
	callq	_memset
	movq	%r12, %rdi
	callq	_bnx2x_func_stats_init
	movq	%r12, %rdi
	callq	_bnx2x_hw_stats_post
	movq	%r12, %rdi
	callq	_bnx2x_stats_comp
LBB0_12:
	movq	%r12, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_bnx2x_memset_stats             ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_port_mb,8,3                    ## @port_mb
	.comm	_func_mb,8,3                    ## @func_mb
	.comm	_BNX2X_MSG_STATS,4,2            ## @BNX2X_MSG_STATS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"port_stx 0x%x  func_stx 0x%x\n"

	.comm	_STATS_EVENT_PMF,4,2            ## @STATS_EVENT_PMF
	.comm	_NIG_REG_STAT0_BRB_DISCARD,8,3  ## @NIG_REG_STAT0_BRB_DISCARD
	.comm	_NIG_REG_STAT0_BRB_TRUNCATE,8,3 ## @NIG_REG_STAT0_BRB_TRUNCATE
	.comm	_NIG_REG_STAT0_EGRESS_MAC_PKT0,8,3 ## @NIG_REG_STAT0_EGRESS_MAC_PKT0
	.comm	_NIG_REG_STAT0_EGRESS_MAC_PKT1,8,3 ## @NIG_REG_STAT0_EGRESS_MAC_PKT1
	.comm	_func_stats,4,2                 ## @func_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_bnx2x_stats_init               ; -- Begin function bnx2x_stats_init
	.p2align	2
_bnx2x_stats_init:                      ; @bnx2x_stats_init
	.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, x0
	bl	_BP_PORT
	mov	x21, x0
	mov	x0, x19
	bl	_BP_FW_MB_IDX
	mov	x20, x0
	stp	xzr, xzr, [x19, #64]
	str	xzr, [x19, #56]
	mov	x0, x19
	bl	_BP_NOMCP
	cbz	w0, LBB0_2
; %bb.1:
	mov	x2, #0
	mov	x3, #0
	str	xzr, [x19, #40]
	b	LBB0_3
LBB0_2:
Lloh0:
	adrp	x8, _port_mb@GOTPAGE
Lloh1:
	ldr	x8, [x8, _port_mb@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w1, [x8, w21, sxtw #2]
	mov	x0, x19
	bl	_SHMEM_RD
	str	x0, [x19, #40]
Lloh3:
	adrp	x8, _func_mb@GOTPAGE
Lloh4:
	ldr	x8, [x8, _func_mb@GOTPAGEOFF]
Lloh5:
	ldr	x8, [x8]
	ldr	w1, [x8, w20, sxtw #2]
	mov	x0, x19
	bl	_SHMEM_RD
	mov	x3, x0
	ldr	x2, [x19, #40]
LBB0_3:
	str	x3, [x19]
Lloh6:
	adrp	x8, _BNX2X_MSG_STATS@GOTPAGE
Lloh7:
	ldr	x8, [x8, _BNX2X_MSG_STATS@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	ldr	x8, [x19, #8]
	cbnz	x8, LBB0_7
; %bb.4:
	ldr	x8, [x19, #48]
	cbz	x8, LBB0_7
; %bb.5:
	ldr	x8, [x19, #40]
	cbz	x8, LBB0_7
; %bb.6:
Lloh11:
	adrp	x8, _STATS_EVENT_PMF@GOTPAGE
Lloh12:
	ldr	x8, [x8, _STATS_EVENT_PMF@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bnx2x_stats_handle
LBB0_7:
	mov	x0, x19
	bl	_BP_PORT
	mov	x21, x0
	add	x20, x19, #16
	mov	x0, x20
	mov	w1, #0
	mov	w2, #4
	bl	_memset
Lloh14:
	adrp	x8, _NIG_REG_STAT0_BRB_DISCARD@GOTPAGE
Lloh15:
	ldr	x8, [x8, _NIG_REG_STAT0_BRB_DISCARD@GOTPAGEOFF]
Lloh16:
	ldr	x8, [x8]
	mov	w9, #56
	mul	w9, w21, w9
	sxtw	x22, w9
	add	x1, x8, x22
	mov	x0, x19
	bl	_REG_RD
	str	x0, [x19, #32]
Lloh17:
	adrp	x8, _NIG_REG_STAT0_BRB_TRUNCATE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _NIG_REG_STAT0_BRB_TRUNCATE@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	add	x1, x8, x22
	mov	x0, x19
	bl	_REG_RD
	str	x0, [x19, #24]
	mov	x0, x19
	bl	_CHIP_IS_E3
	cbnz	w0, LBB0_9
; %bb.8:
Lloh20:
	adrp	x8, _NIG_REG_STAT0_EGRESS_MAC_PKT0@GOTPAGE
Lloh21:
	ldr	x8, [x8, _NIG_REG_STAT0_EGRESS_MAC_PKT0@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	add	w9, w21, w21, lsl #2
	lsl	w9, w9, #4
	sxtw	x21, w9
	add	x1, x8, x21
	add	x2, x19, #20
	mov	x0, x19
	mov	w3, #2
	bl	_REG_RD_DMAE
Lloh23:
	adrp	x8, _NIG_REG_STAT0_EGRESS_MAC_PKT1@GOTPAGE
Lloh24:
	ldr	x8, [x8, _NIG_REG_STAT0_EGRESS_MAC_PKT1@GOTPAGEOFF]
Lloh25:
	ldr	x8, [x8]
	add	x1, x8, x21
	mov	x0, x19
	mov	x2, x20
	mov	w3, #2
	bl	_REG_RD_DMAE
LBB0_9:
	mov	x0, x19
	bl	_bnx2x_prep_fw_stats_req
	ldr	x8, [x19, #8]
	cbz	x8, LBB0_12
; %bb.10:
	ldr	x8, [x19]
	cbz	x8, LBB0_12
; %bb.11:
Lloh26:
	adrp	x8, _func_stats@GOTPAGE
Lloh27:
	ldr	x8, [x8, _func_stats@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bnx2x_sp
	mov	w1, #0
	mov	w2, #4
	bl	_memset
	mov	x0, x19
	bl	_bnx2x_func_stats_init
	mov	x0, x19
	bl	_bnx2x_hw_stats_post
	mov	x0, x19
	bl	_bnx2x_stats_comp
LBB0_12:
	mov	x0, x19
	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
	b	_bnx2x_memset_stats
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_port_mb,8,3                    ; @port_mb
	.comm	_func_mb,8,3                    ; @func_mb
	.comm	_BNX2X_MSG_STATS,4,2            ; @BNX2X_MSG_STATS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"port_stx 0x%x  func_stx 0x%x\n"

	.comm	_STATS_EVENT_PMF,4,2            ; @STATS_EVENT_PMF
	.comm	_NIG_REG_STAT0_BRB_DISCARD,8,3  ; @NIG_REG_STAT0_BRB_DISCARD
	.comm	_NIG_REG_STAT0_BRB_TRUNCATE,8,3 ; @NIG_REG_STAT0_BRB_TRUNCATE
	.comm	_NIG_REG_STAT0_EGRESS_MAC_PKT0,8,3 ; @NIG_REG_STAT0_EGRESS_MAC_PKT0
	.comm	_NIG_REG_STAT0_EGRESS_MAC_PKT1,8,3 ; @NIG_REG_STAT0_EGRESS_MAC_PKT1
	.comm	_func_stats,4,2                 ; @func_stats
.subsections_via_symbols
