	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ehea_treat_poll_error
_ehea_treat_poll_error:                 ## @ehea_treat_poll_error
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movl	(%rdx), %eax
	movq	_EHEA_CQE_STAT_ERR_TCP@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_2
## %bb.1:
	incl	40(%rbx)
LBB0_2:
	movq	_EHEA_CQE_STAT_ERR_IP@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_4
## %bb.3:
	incl	36(%rbx)
LBB0_4:
	movq	_EHEA_CQE_STAT_ERR_CRC@GOTPCREL(%rip), %rdx
	testl	%eax, (%rdx)
	je	LBB0_6
## %bb.5:
	incl	32(%rbx)
LBB0_6:
	cmpl	$3, %esi
	je	LBB0_9
## %bb.7:
	cmpl	$2, %esi
	jne	LBB0_11
## %bb.8:
	incl	(%rcx)
	leaq	28(%rbx), %rax
	leaq	24(%rbx), %rcx
	jmp	LBB0_10
LBB0_9:
	incl	(%r8)
	leaq	20(%rbx), %rax
	leaq	16(%rbx), %rcx
LBB0_10:
	movl	(%rax), %edi
	movl	(%rcx), %esi
	movq	%r14, %rdx
	callq	_get_skb_by_index
	movq	%rax, %rdi
	callq	_dev_kfree_skb
LBB0_11:
	movq	_EHEA_CQE_STAT_FAT_ERR_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_12
## %bb.13:
	movl	(%rbx), %edi
	callq	_netif_msg_rx_err
	testq	%rax, %rax
	je	LBB0_15
## %bb.14:
	movq	8(%rbx), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdi
	callq	_pr_err
	leaq	L_.str.1(%rip), %rdx
	movq	%r14, %rdi
	movl	$4, %esi
	callq	_ehea_dump
LBB0_15:
	movl	(%rbx), %edi
	callq	_ehea_schedule_port_reset
	movl	$1, %eax
	jmp	LBB0_16
LBB0_12:
	xorl	%eax, %eax
LBB0_16:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EHEA_CQE_STAT_ERR_TCP,4,2      ## @EHEA_CQE_STAT_ERR_TCP
	.comm	_EHEA_CQE_STAT_ERR_IP,4,2       ## @EHEA_CQE_STAT_ERR_IP
	.comm	_EHEA_CQE_STAT_ERR_CRC,4,2      ## @EHEA_CQE_STAT_ERR_CRC
	.comm	_EHEA_CQE_STAT_FAT_ERR_MASK,4,2 ## @EHEA_CQE_STAT_FAT_ERR_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Critical receive error for QP %d. Resetting port.\n"

L_.str.1:                               ## @.str.1
	.asciz	"CQE"

	.no_dead_strip	_ehea_treat_poll_error
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ehea_treat_poll_error
_ehea_treat_poll_error:                 ; @ehea_treat_poll_error
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x20, x2
	mov	x19, x0
	ldr	w8, [x2]
Lloh0:
	adrp	x9, _EHEA_CQE_STAT_ERR_TCP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _EHEA_CQE_STAT_ERR_TCP@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	ldr	w9, [x19, #40]
	add	w9, w9, #1
	str	w9, [x19, #40]
LBB0_2:
Lloh3:
	adrp	x9, _EHEA_CQE_STAT_ERR_IP@GOTPAGE
Lloh4:
	ldr	x9, [x9, _EHEA_CQE_STAT_ERR_IP@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	ldr	w9, [x19, #36]
	add	w9, w9, #1
	str	w9, [x19, #36]
LBB0_4:
Lloh6:
	adrp	x9, _EHEA_CQE_STAT_ERR_CRC@GOTPAGE
Lloh7:
	ldr	x9, [x9, _EHEA_CQE_STAT_ERR_CRC@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x19, #32]
	add	w8, w8, #1
	str	w8, [x19, #32]
LBB0_6:
	cmp	w1, #3
	b.eq	LBB0_9
; %bb.7:
	cmp	w1, #2
	b.ne	LBB0_11
; %bb.8:
	ldr	w8, [x3]
	add	w8, w8, #1
	str	w8, [x3]
	add	x8, x19, #28
	add	x9, x19, #24
	b	LBB0_10
LBB0_9:
	ldr	w8, [x4]
	add	w8, w8, #1
	str	w8, [x4]
	add	x8, x19, #20
	add	x9, x19, #16
LBB0_10:
	ldr	w0, [x8]
	ldr	w1, [x9]
	mov	x2, x20
	bl	_get_skb_by_index
	bl	_dev_kfree_skb
LBB0_11:
	ldr	w8, [x20]
Lloh9:
	adrp	x9, _EHEA_CQE_STAT_FAT_ERR_MASK@GOTPAGE
Lloh10:
	ldr	x9, [x9, _EHEA_CQE_STAT_FAT_ERR_MASK@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.12:
	ldr	w0, [x19]
	bl	_netif_msg_rx_err
	cbz	x0, LBB0_14
; %bb.13:
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh12:
	adrp	x0, l_.str@PAGE
Lloh13:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_err
Lloh14:
	adrp	x2, l_.str.1@PAGE
Lloh15:
	add	x2, x2, l_.str.1@PAGEOFF
	mov	x0, x20
	mov	w1, #4
	bl	_ehea_dump
LBB0_14:
	ldr	w0, [x19]
	bl	_ehea_schedule_port_reset
	mov	w0, #1
	b	LBB0_16
LBB0_15:
	mov	w0, #0
LBB0_16:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.cfi_endproc
                                        ; -- End function
	.comm	_EHEA_CQE_STAT_ERR_TCP,4,2      ; @EHEA_CQE_STAT_ERR_TCP
	.comm	_EHEA_CQE_STAT_ERR_IP,4,2       ; @EHEA_CQE_STAT_ERR_IP
	.comm	_EHEA_CQE_STAT_ERR_CRC,4,2      ; @EHEA_CQE_STAT_ERR_CRC
	.comm	_EHEA_CQE_STAT_FAT_ERR_MASK,4,2 ; @EHEA_CQE_STAT_FAT_ERR_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Critical receive error for QP %d. Resetting port.\n"

l_.str.1:                               ; @.str.1
	.asciz	"CQE"

	.no_dead_strip	_ehea_treat_poll_error
.subsections_via_symbols
