	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function get_error_counter_summary
_get_error_counter_summary:             ## @get_error_counter_summary
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	movl	%esi, %r14d
	movq	%rdi, %rbx
	callq	_dd_from_ibdev
	movq	%rax, %r13
	movq	%rbx, %rdi
	movl	%r14d, %esi
	callq	_to_iport
	movq	%rax, %rdi
	callq	_ppd_from_ibp
	movq	%rax, %rbx
	movq	_C_SW_RCV_CSTR_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_CNTR_INVALID_VL@GOTPCREL(%rip), %r14
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_read_port_cntr
	movq	%rax, %r12
	movq	_C_SW_XMIT_DSCD@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	callq	_read_port_cntr
	movq	%rax, %r15
	addl	%r12d, %r15d
	movq	_C_SW_XMIT_CSTR_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%rbx, %rdi
	callq	_read_port_cntr
	movq	%rax, %rbx
	addl	%r15d, %ebx
	movq	_C_DC_RMT_PHY_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r13, %rdi
	callq	_read_dev_cntr
	movl	%eax, %r15d
	addl	%ebx, %r15d
	movq	_C_DC_RX_REPLAY@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r13, %rdi
	callq	_read_dev_cntr
	movl	%eax, %r12d
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %r12d
	addl	%r15d, %r12d
	movq	_C_DC_SEQ_CRC_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r13, %rdi
	callq	_read_dev_cntr
	movl	%eax, %r15d
	movq	_C_DC_REINIT_FROM_PEER_CNT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r13, %rdi
	callq	_read_dev_cntr
	movl	%eax, %ebx
	addl	%r15d, %ebx
	movl	-48(%rbp), %ecx                 ## 4-byte Reload
                                        ## kill: def $cl killed $cl killed $ecx
	sarl	%cl, %ebx
	addl	%r12d, %ebx
	movq	_C_DC_RCV_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r13, %rdi
	callq	_read_dev_cntr
	movl	%eax, %r15d
	addl	%ebx, %r15d
	movq	_C_RCV_OVF@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r13, %rdi
	callq	_read_dev_cntr
	movl	%eax, %ebx
	addl	%r15d, %ebx
	movq	_C_DC_FM_CFG_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r13, %rdi
	callq	_read_dev_cntr
	movl	%eax, %r15d
	addl	%ebx, %r15d
	movq	_C_SW_LINK_DOWN@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	callq	_read_port_cntr
	movq	%rax, %rbx
	addl	%r15d, %ebx
	movq	_C_DC_UNC_ERR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	(%r14), %edx
	movq	%r13, %rdi
	callq	_read_dev_cntr
	movzbl	%al, %ecx
	cmpl	$256, %eax                      ## imm = 0x100
	movl	$255, %eax
	cmovll	%ecx, %eax
	addl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_C_SW_RCV_CSTR_ERR,4,2          ## @C_SW_RCV_CSTR_ERR
	.comm	_CNTR_INVALID_VL,4,2            ## @CNTR_INVALID_VL
	.comm	_C_SW_XMIT_DSCD,4,2             ## @C_SW_XMIT_DSCD
	.comm	_C_SW_XMIT_CSTR_ERR,4,2         ## @C_SW_XMIT_CSTR_ERR
	.comm	_C_DC_RMT_PHY_ERR,4,2           ## @C_DC_RMT_PHY_ERR
	.comm	_C_DC_RX_REPLAY,4,2             ## @C_DC_RX_REPLAY
	.comm	_C_DC_SEQ_CRC_CNT,4,2           ## @C_DC_SEQ_CRC_CNT
	.comm	_C_DC_REINIT_FROM_PEER_CNT,4,2  ## @C_DC_REINIT_FROM_PEER_CNT
	.comm	_C_DC_RCV_ERR,4,2               ## @C_DC_RCV_ERR
	.comm	_C_RCV_OVF,4,2                  ## @C_RCV_OVF
	.comm	_C_DC_FM_CFG_ERR,4,2            ## @C_DC_FM_CFG_ERR
	.comm	_C_SW_LINK_DOWN,4,2             ## @C_SW_LINK_DOWN
	.comm	_C_DC_UNC_ERR,4,2               ## @C_DC_UNC_ERR
	.no_dead_strip	_get_error_counter_summary
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function get_error_counter_summary
_get_error_counter_summary:             ; @get_error_counter_summary
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x21, x3
	mov	x22, x2
	mov	x20, x1
	mov	x23, x0
	bl	_dd_from_ibdev
	mov	x19, x0
	mov	x0, x23
	mov	x1, x20
	bl	_to_iport
	bl	_ppd_from_ibp
	mov	x20, x0
Lloh0:
	adrp	x8, _C_SW_RCV_CSTR_ERR@GOTPAGE
Lloh1:
	ldr	x8, [x8, _C_SW_RCV_CSTR_ERR@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
Lloh3:
	adrp	x24, _CNTR_INVALID_VL@GOTPAGE
Lloh4:
	ldr	x24, [x24, _CNTR_INVALID_VL@GOTPAGEOFF]
	ldr	w2, [x24]
	bl	_read_port_cntr
	mov	x23, x0
Lloh5:
	adrp	x8, _C_SW_XMIT_DSCD@GOTPAGE
Lloh6:
	ldr	x8, [x8, _C_SW_XMIT_DSCD@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_read_port_cntr
	add	w23, w0, w23
Lloh8:
	adrp	x8, _C_SW_XMIT_CSTR_ERR@GOTPAGE
Lloh9:
	ldr	x8, [x8, _C_SW_XMIT_CSTR_ERR@GOTPAGEOFF]
Lloh10:
	ldr	w1, [x8]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_read_port_cntr
	add	w23, w23, w0
Lloh11:
	adrp	x8, _C_DC_RMT_PHY_ERR@GOTPAGE
Lloh12:
	ldr	x8, [x8, _C_DC_RMT_PHY_ERR@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_read_dev_cntr
	add	w23, w0, w23
Lloh14:
	adrp	x8, _C_DC_RX_REPLAY@GOTPAGE
Lloh15:
	ldr	x8, [x8, _C_DC_RX_REPLAY@GOTPAGEOFF]
Lloh16:
	ldr	w1, [x8]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_read_dev_cntr
	asr	w8, w0, w22
	add	w23, w23, w8
Lloh17:
	adrp	x8, _C_DC_SEQ_CRC_CNT@GOTPAGE
Lloh18:
	ldr	x8, [x8, _C_DC_SEQ_CRC_CNT@GOTPAGEOFF]
Lloh19:
	ldr	w1, [x8]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_read_dev_cntr
	mov	x22, x0
Lloh20:
	adrp	x8, _C_DC_REINIT_FROM_PEER_CNT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _C_DC_REINIT_FROM_PEER_CNT@GOTPAGEOFF]
Lloh22:
	ldr	w1, [x8]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_read_dev_cntr
	add	w8, w0, w22
	asr	w8, w8, w21
	add	w21, w23, w8
Lloh23:
	adrp	x8, _C_DC_RCV_ERR@GOTPAGE
Lloh24:
	ldr	x8, [x8, _C_DC_RCV_ERR@GOTPAGEOFF]
Lloh25:
	ldr	w1, [x8]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_read_dev_cntr
	add	w21, w21, w0
Lloh26:
	adrp	x8, _C_RCV_OVF@GOTPAGE
Lloh27:
	ldr	x8, [x8, _C_RCV_OVF@GOTPAGEOFF]
Lloh28:
	ldr	w1, [x8]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_read_dev_cntr
	add	w21, w21, w0
Lloh29:
	adrp	x8, _C_DC_FM_CFG_ERR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _C_DC_FM_CFG_ERR@GOTPAGEOFF]
Lloh31:
	ldr	w1, [x8]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_read_dev_cntr
	add	w21, w21, w0
Lloh32:
	adrp	x8, _C_SW_LINK_DOWN@GOTPAGE
Lloh33:
	ldr	x8, [x8, _C_SW_LINK_DOWN@GOTPAGEOFF]
Lloh34:
	ldr	w1, [x8]
	ldr	w2, [x24]
	mov	x0, x20
	bl	_read_port_cntr
	add	w20, w21, w0
Lloh35:
	adrp	x8, _C_DC_UNC_ERR@GOTPAGE
Lloh36:
	ldr	x8, [x8, _C_DC_UNC_ERR@GOTPAGEOFF]
Lloh37:
	ldr	w1, [x8]
	ldr	w2, [x24]
	mov	x0, x19
	bl	_read_dev_cntr
	and	w8, w0, #0xff
	mov	w9, #255
	cmp	w0, #255
	csel	w8, w9, w8, gt
	add	w0, w20, w8
	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
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_C_SW_RCV_CSTR_ERR,4,2          ; @C_SW_RCV_CSTR_ERR
	.comm	_CNTR_INVALID_VL,4,2            ; @CNTR_INVALID_VL
	.comm	_C_SW_XMIT_DSCD,4,2             ; @C_SW_XMIT_DSCD
	.comm	_C_SW_XMIT_CSTR_ERR,4,2         ; @C_SW_XMIT_CSTR_ERR
	.comm	_C_DC_RMT_PHY_ERR,4,2           ; @C_DC_RMT_PHY_ERR
	.comm	_C_DC_RX_REPLAY,4,2             ; @C_DC_RX_REPLAY
	.comm	_C_DC_SEQ_CRC_CNT,4,2           ; @C_DC_SEQ_CRC_CNT
	.comm	_C_DC_REINIT_FROM_PEER_CNT,4,2  ; @C_DC_REINIT_FROM_PEER_CNT
	.comm	_C_DC_RCV_ERR,4,2               ; @C_DC_RCV_ERR
	.comm	_C_RCV_OVF,4,2                  ; @C_RCV_OVF
	.comm	_C_DC_FM_CFG_ERR,4,2            ; @C_DC_FM_CFG_ERR
	.comm	_C_SW_LINK_DOWN,4,2             ; @C_SW_LINK_DOWN
	.comm	_C_DC_UNC_ERR,4,2               ; @C_DC_UNC_ERR
	.no_dead_strip	_get_error_counter_summary
.subsections_via_symbols
