	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function bnx2x_hw_stats_update
_bnx2x_hw_stats_update:                 ## @bnx2x_hw_stats_update
	.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, %rbx
	movq	_nig_stats@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_bnx2x_sp
	movq	%rax, %r15
	movq	_port_stats@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_bnx2x_sp
	movq	%rax, %r14
	movl	(%rbx), %eax
	addl	$-128, %eax
	cmpl	$4, %eax
	ja	LBB0_6
## %bb.1:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_4:
	movq	%rbx, %rdi
	callq	_bnx2x_mstat_stats_update
	jmp	LBB0_7
LBB0_6:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_BNX2X_ERR
	jmp	LBB0_7
LBB0_5:
	movq	_BNX2X_MSG_STATS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_DP
	movl	$-1, %r14d
	jmp	LBB0_17
LBB0_3:
	movq	%rbx, %rdi
	callq	_bnx2x_emac_stats_update
	jmp	LBB0_7
LBB0_2:
	movq	%rbx, %rdi
	callq	_bnx2x_bmac_stats_update
LBB0_7:
	leaq	56(%rbx), %r12
	movl	4(%r14), %esi
	movl	8(%r14), %edi
	movq	8(%r15), %rdx
	subq	64(%rbx), %rdx
	callq	_ADD_EXTEND_64
	movl	48(%rbx), %esi
	movl	52(%rbx), %edi
	movq	(%r15), %rdx
	subq	56(%rbx), %rdx
	callq	_ADD_EXTEND_64
	movq	%rbx, %rdi
	callq	_CHIP_IS_E3
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	movq	_egress_mac_pkt0@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_etherstatspkts1024octetsto1522octets@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_UPDATE_STAT64_NIG
	movq	_egress_mac_pkt1@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_etherstatspktsover1522octets@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_UPDATE_STAT64_NIG
LBB0_9:
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	$16, %edx
	callq	_memcpy
	leaq	32(%rbx), %rdi
	movq	16(%r14), %rsi
	addq	$16, %rsi
	movl	$4, %edx
	callq	_memcpy
	movl	8(%r14), %eax
	movl	%eax, 24(%rbx)
	movl	4(%r14), %eax
	movl	%eax, 20(%rbx)
	incl	(%r14)
	movq	%rbx, %rdi
	callq	_CHIP_IS_E3
	testq	%rax, %rax
	je	LBB0_14
## %bb.10:
	movq	%rbx, %rdi
	callq	_BP_PORT
	testq	%rax, %rax
	jne	LBB0_11
## %bb.12:
	movq	_MISC_REG_CPMU_LP_SM_ENT_CNT_P0@GOTPCREL(%rip), %rax
	jmp	LBB0_13
LBB0_11:
	movq	_MISC_REG_CPMU_LP_SM_ENT_CNT_P1@GOTPCREL(%rip), %rax
LBB0_13:
	movq	(%rax), %rsi
	movq	%rbx, %rdi
	callq	_REG_RD
	addl	%eax, 16(%rbx)
LBB0_14:
	movq	%rbx, %rdi
	callq	_BP_NOMCP
	xorl	%r14d, %r14d
	testl	%eax, %eax
	jne	LBB0_17
## %bb.15:
	movq	_port_mb@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%rbx, %rdi
	callq	_BP_PORT
	movl	(%r15,%rax,4), %esi
	movq	%rbx, %rdi
	callq	_SHMEM_RD
	cmpq	8(%rbx), %rax
	je	LBB0_17
## %bb.16:
	movq	%rax, 8(%rbx)
	leaq	L_.str.2(%rip), %rdi
	xorl	%r14d, %r14d
	movq	%rax, %rsi
	xorl	%eax, %eax
	callq	_BNX2X_ERR
LBB0_17:
	movl	%r14d, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_4, LBB0_4-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_2, LBB0_2-LJTI0_0
LJTI0_0:
	.long	L0_0_set_4
	.long	L0_0_set_4
	.long	L0_0_set_5
	.long	L0_0_set_3
	.long	L0_0_set_2
	.end_data_region
                                        ## -- End function
	.comm	_nig_stats,4,2                  ## @nig_stats
	.comm	_port_stats,4,2                 ## @port_stats
	.comm	_BNX2X_MSG_STATS,4,2            ## @BNX2X_MSG_STATS
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"stats updated by DMAE but no MAC active\n"

L_.str.1:                               ## @.str.1
	.asciz	"Unknown MAC type\n"

	.comm	_egress_mac_pkt0,4,2            ## @egress_mac_pkt0
	.comm	_etherstatspkts1024octetsto1522octets,4,2 ## @etherstatspkts1024octetsto1522octets
	.comm	_egress_mac_pkt1,4,2            ## @egress_mac_pkt1
	.comm	_etherstatspktsover1522octets,4,2 ## @etherstatspktsover1522octets
	.comm	_MISC_REG_CPMU_LP_SM_ENT_CNT_P1,8,3 ## @MISC_REG_CPMU_LP_SM_ENT_CNT_P1
	.comm	_MISC_REG_CPMU_LP_SM_ENT_CNT_P0,8,3 ## @MISC_REG_CPMU_LP_SM_ENT_CNT_P0
	.comm	_port_mb,8,3                    ## @port_mb
L_.str.2:                               ## @.str.2
	.asciz	"NIG timer max (%u)\n"

	.no_dead_strip	_bnx2x_hw_stats_update
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function bnx2x_hw_stats_update
_bnx2x_hw_stats_update:                 ; @bnx2x_hw_stats_update
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
Lloh0:
	adrp	x8, _nig_stats@GOTPAGE
Lloh1:
	ldr	x8, [x8, _nig_stats@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_bnx2x_sp
	mov	x21, x0
Lloh3:
	adrp	x8, _port_stats@GOTPAGE
Lloh4:
	ldr	x8, [x8, _port_stats@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_bnx2x_sp
	mov	x20, x0
	mov	x22, x19
	ldr	w8, [x22], #56
	sub	w8, w8, #128
	cmp	w8, #4
	b.hi	LBB0_3
; %bb.1:
Lloh6:
	adrp	x9, lJTI0_0@PAGE
Lloh7:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_2
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_2:
	mov	x0, x19
	bl	_bnx2x_mstat_stats_update
	b	LBB0_7
LBB0_3:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_BNX2X_ERR
	b	LBB0_7
LBB0_4:
Lloh10:
	adrp	x8, _BNX2X_MSG_STATS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _BNX2X_MSG_STATS@GOTPAGEOFF]
Lloh12:
	ldr	w0, [x8]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_DP
	mov	w0, #-1
	b	LBB0_15
LBB0_5:
	mov	x0, x19
	bl	_bnx2x_emac_stats_update
	b	LBB0_7
LBB0_6:
	mov	x0, x19
	bl	_bnx2x_bmac_stats_update
LBB0_7:
	ldp	w1, w0, [x20, #4]
	ldr	x8, [x21, #8]
	ldr	x9, [x19, #64]
	sub	x2, x8, x9
	bl	_ADD_EXTEND_64
	ldp	w1, w0, [x19, #48]
	ldr	x8, [x21]
	ldr	x9, [x19, #56]
	sub	x2, x8, x9
	bl	_ADD_EXTEND_64
	mov	x0, x19
	bl	_CHIP_IS_E3
	cbnz	x0, LBB0_9
; %bb.8:
Lloh15:
	adrp	x8, _egress_mac_pkt0@GOTPAGE
Lloh16:
	ldr	x8, [x8, _egress_mac_pkt0@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
Lloh18:
	adrp	x8, _etherstatspkts1024octetsto1522octets@GOTPAGE
Lloh19:
	ldr	x8, [x8, _etherstatspkts1024octetsto1522octets@GOTPAGEOFF]
Lloh20:
	ldr	w1, [x8]
	bl	_UPDATE_STAT64_NIG
Lloh21:
	adrp	x8, _egress_mac_pkt1@GOTPAGE
Lloh22:
	ldr	x8, [x8, _egress_mac_pkt1@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
Lloh24:
	adrp	x8, _etherstatspktsover1522octets@GOTPAGE
Lloh25:
	ldr	x8, [x8, _etherstatspktsover1522octets@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_UPDATE_STAT64_NIG
LBB0_9:
	mov	x0, x22
	mov	x1, x21
	mov	w2, #16
	bl	_memcpy
	add	x0, x19, #32
	ldr	x8, [x20, #16]
	add	x1, x8, #16
	mov	w2, #4
	bl	_memcpy
	ldur	d0, [x20, #4]
	stur	d0, [x19, #20]
	ldr	w8, [x20]
	add	w8, w8, #1
	str	w8, [x20]
	mov	x0, x19
	bl	_CHIP_IS_E3
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_BP_PORT
Lloh27:
	adrp	x8, _MISC_REG_CPMU_LP_SM_ENT_CNT_P1@GOTPAGE
Lloh28:
	ldr	x8, [x8, _MISC_REG_CPMU_LP_SM_ENT_CNT_P1@GOTPAGEOFF]
Lloh29:
	adrp	x9, _MISC_REG_CPMU_LP_SM_ENT_CNT_P0@GOTPAGE
Lloh30:
	ldr	x9, [x9, _MISC_REG_CPMU_LP_SM_ENT_CNT_P0@GOTPAGEOFF]
	cmp	x0, #0
	csel	x8, x9, x8, eq
	ldr	x1, [x8]
	mov	x0, x19
	bl	_REG_RD
	ldr	w8, [x19, #16]
	add	w8, w8, w0
	str	w8, [x19, #16]
LBB0_11:
	mov	x0, x19
	bl	_BP_NOMCP
	cbnz	w0, LBB0_14
; %bb.12:
Lloh31:
	adrp	x8, _port_mb@GOTPAGE
Lloh32:
	ldr	x8, [x8, _port_mb@GOTPAGEOFF]
Lloh33:
	ldr	x20, [x8]
	mov	x0, x19
	bl	_BP_PORT
	ldr	w1, [x20, x0, lsl #2]
	mov	x0, x19
	bl	_SHMEM_RD
	ldr	x8, [x19, #8]
	cmp	x0, x8
	b.eq	LBB0_14
; %bb.13:
	str	x0, [x19, #8]
	str	x0, [sp]
Lloh34:
	adrp	x0, l_.str.2@PAGE
Lloh35:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_BNX2X_ERR
LBB0_14:
	mov	w0, #0
LBB0_15:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGot	Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpAdd	Lloh34, Lloh35
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_2-LBB0_2)>>2
	.byte	(LBB0_4-LBB0_2)>>2
	.byte	(LBB0_5-LBB0_2)>>2
	.byte	(LBB0_6-LBB0_2)>>2
                                        ; -- End function
	.comm	_nig_stats,4,2                  ; @nig_stats
	.comm	_port_stats,4,2                 ; @port_stats
	.comm	_BNX2X_MSG_STATS,4,2            ; @BNX2X_MSG_STATS
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"stats updated by DMAE but no MAC active\n"

l_.str.1:                               ; @.str.1
	.asciz	"Unknown MAC type\n"

	.comm	_egress_mac_pkt0,4,2            ; @egress_mac_pkt0
	.comm	_etherstatspkts1024octetsto1522octets,4,2 ; @etherstatspkts1024octetsto1522octets
	.comm	_egress_mac_pkt1,4,2            ; @egress_mac_pkt1
	.comm	_etherstatspktsover1522octets,4,2 ; @etherstatspktsover1522octets
	.comm	_MISC_REG_CPMU_LP_SM_ENT_CNT_P1,8,3 ; @MISC_REG_CPMU_LP_SM_ENT_CNT_P1
	.comm	_MISC_REG_CPMU_LP_SM_ENT_CNT_P0,8,3 ; @MISC_REG_CPMU_LP_SM_ENT_CNT_P0
	.comm	_port_mb,8,3                    ; @port_mb
l_.str.2:                               ; @.str.2
	.asciz	"NIG timer max (%u)\n"

	.no_dead_strip	_bnx2x_hw_stats_update
.subsections_via_symbols
