	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cp_rx_err_acct
_cp_rx_err_acct:                        ## @cp_rx_err_acct
	.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
	movl	%ecx, %r15d
	movl	%edx, %r14d
	movl	%esi, %r12d
	movq	%rdi, %rbx
	callq	_netif_msg_rx_err
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	(%rbx), %rax
	movl	20(%rax), %esi
	leaq	L_.str(%rip), %rdi
	movl	%r12d, %edx
	movl	%r14d, %ecx
	movl	%r15d, %r8d
	callq	_pr_debug
LBB0_2:
	movq	(%rbx), %rax
	incl	16(%rax)
	movq	_RxErrFrame@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_4
## %bb.3:
	incl	12(%rax)
LBB0_4:
	movq	_RxErrCRC@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_6
## %bb.5:
	incl	8(%rax)
LBB0_6:
	movq	_RxErrRunt@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	jne	LBB0_8
## %bb.7:
	movq	_RxErrLong@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_9
LBB0_8:
	incl	4(%rax)
LBB0_9:
	movq	_FirstFrag@GOTPCREL(%rip), %rcx
	movq	_LastFrag@GOTPCREL(%rip), %rdx
	movl	(%rdx), %edx
	orl	(%rcx), %edx
	movl	%r14d, %ecx
	notl	%ecx
	testl	%ecx, %edx
	je	LBB0_11
## %bb.10:
	incl	4(%rax)
LBB0_11:
	movq	_RxErrFIFO@GOTPCREL(%rip), %rcx
	testl	%r14d, (%rcx)
	je	LBB0_13
## %bb.12:
	incl	(%rax)
LBB0_13:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%s: rx err, slot %d status 0x%x len %d\n"

	.comm	_RxErrFrame,4,2                 ## @RxErrFrame
	.comm	_RxErrCRC,4,2                   ## @RxErrCRC
	.comm	_RxErrRunt,4,2                  ## @RxErrRunt
	.comm	_RxErrLong,4,2                  ## @RxErrLong
	.comm	_FirstFrag,4,2                  ## @FirstFrag
	.comm	_LastFrag,4,2                   ## @LastFrag
	.comm	_RxErrFIFO,4,2                  ## @RxErrFIFO
	.no_dead_strip	_cp_rx_err_acct
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cp_rx_err_acct
_cp_rx_err_acct:                        ; @cp_rx_err_acct
	.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, x3
	mov	x19, x2
	mov	x22, x1
	mov	x20, x0
	bl	_netif_msg_rx_err
	cbz	x0, LBB0_2
; %bb.1:
	ldr	x8, [x20]
	ldr	w1, [x8, #20]
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x2, x22
	mov	x3, x19
	mov	x4, x21
	bl	_pr_debug
LBB0_2:
	ldr	x8, [x20]
	ldr	w9, [x8, #16]
	add	w9, w9, #1
	str	w9, [x8, #16]
Lloh2:
	adrp	x9, _RxErrFrame@GOTPAGE
Lloh3:
	ldr	x9, [x9, _RxErrFrame@GOTPAGEOFF]
Lloh4:
	ldr	w9, [x9]
	tst	w9, w19
	b.eq	LBB0_4
; %bb.3:
	ldr	w9, [x8, #12]
	add	w9, w9, #1
	str	w9, [x8, #12]
LBB0_4:
Lloh5:
	adrp	x9, _RxErrCRC@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RxErrCRC@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w19
	b.eq	LBB0_6
; %bb.5:
	ldr	w9, [x8, #8]
	add	w9, w9, #1
	str	w9, [x8, #8]
LBB0_6:
Lloh8:
	adrp	x9, _RxErrRunt@GOTPAGE
Lloh9:
	ldr	x9, [x9, _RxErrRunt@GOTPAGEOFF]
Lloh10:
	ldr	w9, [x9]
	tst	w9, w19
	b.ne	LBB0_8
; %bb.7:
Lloh11:
	adrp	x9, _RxErrLong@GOTPAGE
Lloh12:
	ldr	x9, [x9, _RxErrLong@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w19
	b.eq	LBB0_9
LBB0_8:
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
LBB0_9:
Lloh14:
	adrp	x9, _FirstFrag@GOTPAGE
Lloh15:
	ldr	x9, [x9, _FirstFrag@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
Lloh17:
	adrp	x10, _LastFrag@GOTPAGE
Lloh18:
	ldr	x10, [x10, _LastFrag@GOTPAGEOFF]
Lloh19:
	ldr	w10, [x10]
	orr	w9, w10, w9
	bics	wzr, w9, w19
	b.eq	LBB0_11
; %bb.10:
	ldr	w9, [x8, #4]
	add	w9, w9, #1
	str	w9, [x8, #4]
LBB0_11:
Lloh20:
	adrp	x9, _RxErrFIFO@GOTPAGE
Lloh21:
	ldr	x9, [x9, _RxErrFIFO@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w19
	b.eq	LBB0_13
; %bb.12:
	ldr	w9, [x8]
	add	w9, w9, #1
	str	w9, [x8]
LBB0_13:
	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 AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s: rx err, slot %d status 0x%x len %d\n"

	.comm	_RxErrFrame,4,2                 ; @RxErrFrame
	.comm	_RxErrCRC,4,2                   ; @RxErrCRC
	.comm	_RxErrRunt,4,2                  ; @RxErrRunt
	.comm	_RxErrLong,4,2                  ; @RxErrLong
	.comm	_FirstFrag,4,2                  ; @FirstFrag
	.comm	_LastFrag,4,2                   ; @LastFrag
	.comm	_RxErrFIFO,4,2                  ; @RxErrFIFO
	.no_dead_strip	_cp_rx_err_acct
.subsections_via_symbols
