	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function handle_send_egress_err_info
_handle_send_egress_err_info:           ## @handle_send_egress_err_info
	.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	$120, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%esi, %r15d
	movq	%rdi, %r12
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	(%rdi), %r14
	movq	_SEND_EGRESS_ERR_SOURCE@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_read_csr
	movl	%eax, -148(%rbp)                ## 4-byte Spill
	movq	_SEND_EGRESS_ERR_INFO@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r12, %rdi
	callq	_read_csr
	movl	%eax, %ebx
	movl	(%r13), %esi
	movq	%r12, %rdi
	movl	%eax, %edx
	callq	_write_csr
	leaq	-144(%rbp), %rdi
	movl	$96, %esi
	movl	%ebx, %edx
	callq	_egress_err_info_string
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	movl	%eax, %ecx
	movl	-148(%rbp), %r8d                ## 4-byte Reload
	callq	_dd_dev_info
	movq	_PORT_DISCARD_EGRESS_ERRS@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	je	LBB0_10
## %bb.1:
	movl	%ebx, %edi
	callq	_hweight64
	testl	%eax, %eax
	jle	LBB0_10
## %bb.2:
	movl	%eax, %ebx
	movl	%r15d, %r12d
	movq	_TXE_NUM_DATA_VL@GOTPCREL(%rip), %r13
	shlq	$2, %r12
	jmp	LBB0_3
	.p2align	4, 0x90
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	(%r14), %rdi
	addq	%r12, %rdi
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	callq	_incr_cntr64
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	decl	%ebx
	je	LBB0_10
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	callq	___count_port_discards
	testl	%r15d, %r15d
	js	LBB0_6
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	cmpl	%r15d, (%r13)
	jg	LBB0_5
LBB0_6:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$15, %r15d
	jne	LBB0_9
## %bb.7:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_C_VL_15@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	shlq	$2, %rdi
	addq	(%r14), %rdi
	jmp	LBB0_8
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_12
## %bb.11:
	addq	$120, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_12:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_SEND_EGRESS_ERR_SOURCE,4,2     ## @SEND_EGRESS_ERR_SOURCE
	.comm	_SEND_EGRESS_ERR_INFO,4,2       ## @SEND_EGRESS_ERR_INFO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Egress Error Info: 0x%llx, %s Egress Error Src 0x%llx\n"

	.comm	_PORT_DISCARD_EGRESS_ERRS,4,2   ## @PORT_DISCARD_EGRESS_ERRS
	.comm	_TXE_NUM_DATA_VL,4,2            ## @TXE_NUM_DATA_VL
	.comm	_C_VL_15,8,3                    ## @C_VL_15
	.no_dead_strip	_handle_send_egress_err_info
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function handle_send_egress_err_info
_handle_send_egress_err_info:           ; @handle_send_egress_err_info
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #176
	.cfi_def_cfa_offset 176
	stp	x24, x23, [sp, #112]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #128]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #144]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #160]            ; 16-byte Folded Spill
	add	x29, sp, #160
	.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, x1
	mov	x21, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-56]
	ldr	x20, [x0]
Lloh3:
	adrp	x8, _SEND_EGRESS_ERR_SOURCE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _SEND_EGRESS_ERR_SOURCE@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	bl	_read_csr
	mov	x22, x0
Lloh6:
	adrp	x24, _SEND_EGRESS_ERR_INFO@GOTPAGE
Lloh7:
	ldr	x24, [x24, _SEND_EGRESS_ERR_INFO@GOTPAGEOFF]
	ldr	w1, [x24]
	mov	x0, x21
	bl	_read_csr
	mov	x23, x0
	ldr	w1, [x24]
	mov	x0, x21
	mov	x2, x23
	bl	_write_csr
	add	x0, sp, #8
	mov	w1, #96
	mov	x2, x23
	bl	_egress_err_info_string
	mov	x3, x0
Lloh8:
	adrp	x1, l_.str@PAGE
Lloh9:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x21
	mov	x2, x23
	mov	x4, x22
	bl	_dd_dev_info
Lloh10:
	adrp	x8, _PORT_DISCARD_EGRESS_ERRS@GOTPAGE
Lloh11:
	ldr	x8, [x8, _PORT_DISCARD_EGRESS_ERRS@GOTPAGEOFF]
Lloh12:
	ldr	w8, [x8]
	ands	w0, w8, w23
	b.eq	LBB0_10
; %bb.1:
	bl	_hweight64
	cmp	w0, #1
	b.lt	LBB0_10
; %bb.2:
	mov	x21, x0
	mov	w22, w19
Lloh13:
	adrp	x23, _TXE_NUM_DATA_VL@GOTPAGE
Lloh14:
	ldr	x23, [x23, _TXE_NUM_DATA_VL@GOTPAGEOFF]
Lloh15:
	adrp	x24, _C_VL_15@GOTPAGE
Lloh16:
	ldr	x24, [x24, _C_VL_15@GOTPAGEOFF]
	b	LBB0_6
LBB0_3:                                 ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20]
	add	x0, x8, x22, lsl #2
LBB0_4:                                 ;   in Loop: Header=BB0_6 Depth=1
	bl	_incr_cntr64
LBB0_5:                                 ;   in Loop: Header=BB0_6 Depth=1
	subs	w21, w21, #1
	b.eq	LBB0_10
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x20
	bl	___count_port_discards
	tbnz	w19, #31, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	w8, [x23]
	cmp	w8, w19
	b.gt	LBB0_3
LBB0_8:                                 ;   in Loop: Header=BB0_6 Depth=1
	cmp	w19, #15
	b.ne	LBB0_5
; %bb.9:                                ;   in Loop: Header=BB0_6 Depth=1
	ldr	x8, [x20]
	ldr	x9, [x24]
	add	x0, x8, x9, lsl #2
	b	LBB0_4
LBB0_10:
	ldur	x8, [x29, #-56]
Lloh17:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh18:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_12
; %bb.11:
	ldp	x29, x30, [sp, #160]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #144]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #128]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #112]            ; 16-byte Folded Reload
	add	sp, sp, #176
	ret
LBB0_12:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.cfi_endproc
                                        ; -- End function
	.comm	_SEND_EGRESS_ERR_SOURCE,4,2     ; @SEND_EGRESS_ERR_SOURCE
	.comm	_SEND_EGRESS_ERR_INFO,4,2       ; @SEND_EGRESS_ERR_INFO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Egress Error Info: 0x%llx, %s Egress Error Src 0x%llx\n"

	.comm	_PORT_DISCARD_EGRESS_ERRS,4,2   ; @PORT_DISCARD_EGRESS_ERRS
	.comm	_TXE_NUM_DATA_VL,4,2            ; @TXE_NUM_DATA_VL
	.comm	_C_VL_15,8,3                    ; @C_VL_15
	.no_dead_strip	_handle_send_egress_err_info
.subsections_via_symbols
