	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ethoc_update_rx_stats
_ethoc_update_rx_stats:                 ## @ethoc_update_rx_stats
	.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, %r12
	movq	%rdi, %r15
	movq	24(%rdi), %r14
	movl	(%rsi), %eax
	movq	_RX_BD_TL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	incl	20(%r15)
	movl	(%r12), %eax
	movl	$1, %ebx
	jmp	LBB0_3
LBB0_1:
	xorl	%ebx, %ebx
LBB0_3:
	movq	_RX_BD_SF@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	incl	20(%r15)
	incl	%ebx
	movl	(%r12), %eax
LBB0_5:
	movq	_RX_BD_DN@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_7
## %bb.6:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	incl	16(%r15)
	movl	(%r12), %eax
LBB0_7:
	movq	_RX_BD_CRC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	incl	12(%r15)
	incl	%ebx
	movl	(%r12), %eax
LBB0_9:
	movq	_RX_BD_OR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_11
## %bb.10:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	incl	8(%r15)
	incl	%ebx
	movl	(%r12), %eax
LBB0_11:
	movq	_RX_BD_MISS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_13
## %bb.12:
	incl	4(%r15)
LBB0_13:
	movq	_RX_BD_LC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_15
## %bb.14:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	callq	_dev_err
	incl	(%r15)
	incl	%ebx
LBB0_15:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RX_BD_TL,4,2                   ## @RX_BD_TL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RX: frame too long\n"

	.comm	_RX_BD_SF,4,2                   ## @RX_BD_SF
L_.str.1:                               ## @.str.1
	.asciz	"RX: frame too short\n"

	.comm	_RX_BD_DN,4,2                   ## @RX_BD_DN
L_.str.2:                               ## @.str.2
	.asciz	"RX: dribble nibble\n"

	.comm	_RX_BD_CRC,4,2                  ## @RX_BD_CRC
L_.str.3:                               ## @.str.3
	.asciz	"RX: wrong CRC\n"

	.comm	_RX_BD_OR,4,2                   ## @RX_BD_OR
L_.str.4:                               ## @.str.4
	.asciz	"RX: overrun\n"

	.comm	_RX_BD_MISS,4,2                 ## @RX_BD_MISS
	.comm	_RX_BD_LC,4,2                   ## @RX_BD_LC
L_.str.5:                               ## @.str.5
	.asciz	"RX: late collision\n"

	.no_dead_strip	_ethoc_update_rx_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ethoc_update_rx_stats
_ethoc_update_rx_stats:                 ; @ethoc_update_rx_stats
	.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	x22, x1
	mov	x19, x0
	ldr	x20, [x0, #24]
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _RX_BD_TL@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RX_BD_TL@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
	ldr	w8, [x22]
	mov	w21, #1
	b	LBB0_3
LBB0_2:
	mov	w21, #0
LBB0_3:
Lloh5:
	adrp	x9, _RX_BD_SF@GOTPAGE
Lloh6:
	ldr	x9, [x9, _RX_BD_SF@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.4:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w8, [x19, #20]
	add	w8, w8, #1
	str	w8, [x19, #20]
	add	w21, w21, #1
	ldr	w8, [x22]
LBB0_5:
Lloh10:
	adrp	x9, _RX_BD_DN@GOTPAGE
Lloh11:
	ldr	x9, [x9, _RX_BD_DN@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_7
; %bb.6:
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w8, [x19, #16]
	add	w8, w8, #1
	str	w8, [x19, #16]
	ldr	w8, [x22]
LBB0_7:
Lloh15:
	adrp	x9, _RX_BD_CRC@GOTPAGE
Lloh16:
	ldr	x9, [x9, _RX_BD_CRC@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_9
; %bb.8:
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	add	w21, w21, #1
	ldr	w8, [x22]
LBB0_9:
Lloh20:
	adrp	x9, _RX_BD_OR@GOTPAGE
Lloh21:
	ldr	x9, [x9, _RX_BD_OR@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_11
; %bb.10:
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	add	w21, w21, #1
	ldr	w8, [x22]
LBB0_11:
Lloh25:
	adrp	x9, _RX_BD_MISS@GOTPAGE
Lloh26:
	ldr	x9, [x9, _RX_BD_MISS@GOTPAGEOFF]
Lloh27:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_13
; %bb.12:
	ldr	w9, [x19, #4]
	add	w9, w9, #1
	str	w9, [x19, #4]
LBB0_13:
Lloh28:
	adrp	x9, _RX_BD_LC@GOTPAGE
Lloh29:
	ldr	x9, [x9, _RX_BD_LC@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_15
; %bb.14:
Lloh31:
	adrp	x1, l_.str.5@PAGE
Lloh32:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_dev_err
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
	add	w21, w21, #1
LBB0_15:
	mov	x0, 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
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpAdd	Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_RX_BD_TL,4,2                   ; @RX_BD_TL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RX: frame too long\n"

	.comm	_RX_BD_SF,4,2                   ; @RX_BD_SF
l_.str.1:                               ; @.str.1
	.asciz	"RX: frame too short\n"

	.comm	_RX_BD_DN,4,2                   ; @RX_BD_DN
l_.str.2:                               ; @.str.2
	.asciz	"RX: dribble nibble\n"

	.comm	_RX_BD_CRC,4,2                  ; @RX_BD_CRC
l_.str.3:                               ; @.str.3
	.asciz	"RX: wrong CRC\n"

	.comm	_RX_BD_OR,4,2                   ; @RX_BD_OR
l_.str.4:                               ; @.str.4
	.asciz	"RX: overrun\n"

	.comm	_RX_BD_MISS,4,2                 ; @RX_BD_MISS
	.comm	_RX_BD_LC,4,2                   ; @RX_BD_LC
l_.str.5:                               ; @.str.5
	.asciz	"RX: late collision\n"

	.no_dead_strip	_ethoc_update_rx_stats
.subsections_via_symbols
