	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mvpp2_rx_error
_mvpp2_rx_error:                        ## @mvpp2_rx_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r12
	callq	_mvpp2_rxdesc_status_get
	movl	%eax, %r14d
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_mvpp2_rxdesc_size_get
	movq	%rax, %r15
	movq	_MVPP2_RXD_ERR_CODE_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r14d, %ebx
	addl	$-128, %ebx
	cmpl	$2, %ebx
	ja	LBB0_2
## %bb.1:
	xorl	%eax, %eax
	callq	_net_ratelimit
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movslq	%ebx, %rax
	leaq	l_reltable.mvpp2_rx_error(%rip), %rdx
	movslq	(%rdx,%rax,4), %rcx
	addq	%rdx, %rcx
	movl	(%r12), %edi
	leaq	L_.str.3(%rip), %rsi
	movl	%r14d, %edx
	movq	%r15, %r8
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_netdev_err                     ## TAILCALL
LBB0_2:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MVPP2_RXD_ERR_CODE_MASK,4,2    ## @MVPP2_RXD_ERR_CODE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"crc"

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

L_.str.2:                               ## @.str.2
	.asciz	"resource"

L_.str.3:                               ## @.str.3
	.asciz	"bad rx status %08x (%s error), size=%zu\n"

	.no_dead_strip	_mvpp2_rx_error
	.section	__TEXT,__const
	.p2align	2                               ## @reltable.mvpp2_rx_error
l_reltable.mvpp2_rx_error:
	.long	L_.str.2-l_reltable.mvpp2_rx_error
	.long	L_.str.1-l_reltable.mvpp2_rx_error
	.long	L_.str-l_reltable.mvpp2_rx_error

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mvpp2_rx_error
_mvpp2_rx_error:                        ; @mvpp2_rx_error
	.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	x21, x1
	mov	x19, x0
	bl	_mvpp2_rxdesc_status_get
	mov	x20, x0
	mov	x0, x19
	mov	x1, x21
	bl	_mvpp2_rxdesc_size_get
Lloh0:
	adrp	x8, _MVPP2_RXD_ERR_CODE_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MVPP2_RXD_ERR_CODE_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w20
	sub	w22, w8, #128
	cmp	w22, #2
	b.hi	LBB0_3
; %bb.1:
	mov	x21, x0
	bl	_net_ratelimit
	cbz	x0, LBB0_3
; %bb.2:
Lloh3:
	adrp	x8, l_switch.table.mvpp2_rx_error@PAGE
Lloh4:
	add	x8, x8, l_switch.table.mvpp2_rx_error@PAGEOFF
	ldr	x3, [x8, w22, sxtw #3]
Lloh5:
	adrp	x1, l_.str.3@PAGE
Lloh6:
	add	x1, x1, l_.str.3@PAGEOFF
	ldr	w0, [x19]
	mov	x2, x20
	mov	x4, x21
	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	_netdev_err
LBB0_3:
	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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_MVPP2_RXD_ERR_CODE_MASK,4,2    ; @MVPP2_RXD_ERR_CODE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"crc"

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

l_.str.2:                               ; @.str.2
	.asciz	"resource"

l_.str.3:                               ; @.str.3
	.asciz	"bad rx status %08x (%s error), size=%zu\n"

	.no_dead_strip	_mvpp2_rx_error
	.section	__DATA,__const
	.p2align	3                               ; @switch.table.mvpp2_rx_error
l_switch.table.mvpp2_rx_error:
	.quad	l_.str.2
	.quad	l_.str.1
	.quad	l_.str

.subsections_via_symbols
