	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ks8842_update_rx_err_counters
_ks8842_update_rx_err_counters:         ## @ks8842_update_rx_err_counters
	.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
	movl	%esi, %ebx
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	movl	%ebx, %edx
	callq	_netdev_dbg
	incl	12(%r14)
	movq	_RXSR_TOO_LONG@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_2
## %bb.1:
	incl	8(%r14)
LBB0_2:
	movq	_RXSR_CRC_ERROR@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_4
## %bb.3:
	incl	4(%r14)
LBB0_4:
	movq	_RXSR_RUNT@GOTPCREL(%rip), %rax
	testl	%ebx, (%rax)
	je	LBB0_6
## %bb.5:
	incl	(%r14)
LBB0_6:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"RX error, status: %x\n"

	.comm	_RXSR_TOO_LONG,4,2              ## @RXSR_TOO_LONG
	.comm	_RXSR_CRC_ERROR,4,2             ## @RXSR_CRC_ERROR
	.comm	_RXSR_RUNT,4,2                  ## @RXSR_RUNT
	.no_dead_strip	_ks8842_update_rx_err_counters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ks8842_update_rx_err_counters
_ks8842_update_rx_err_counters:         ; @ks8842_update_rx_err_counters
	.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, x1
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x2, x20
	bl	_netdev_dbg
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
Lloh2:
	adrp	x8, _RXSR_TOO_LONG@GOTPAGE
Lloh3:
	ldr	x8, [x8, _RXSR_TOO_LONG@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_2
; %bb.1:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_2:
Lloh5:
	adrp	x8, _RXSR_CRC_ERROR@GOTPAGE
Lloh6:
	ldr	x8, [x8, _RXSR_CRC_ERROR@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_4
; %bb.3:
	ldr	w8, [x19, #4]
	add	w8, w8, #1
	str	w8, [x19, #4]
LBB0_4:
Lloh8:
	adrp	x8, _RXSR_RUNT@GOTPAGE
Lloh9:
	ldr	x8, [x8, _RXSR_RUNT@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	tst	w8, w20
	b.eq	LBB0_6
; %bb.5:
	ldr	w8, [x19]
	add	w8, w8, #1
	str	w8, [x19]
LBB0_6:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"RX error, status: %x\n"

	.comm	_RXSR_TOO_LONG,4,2              ; @RXSR_TOO_LONG
	.comm	_RXSR_CRC_ERROR,4,2             ; @RXSR_CRC_ERROR
	.comm	_RXSR_RUNT,4,2                  ; @RXSR_RUNT
	.no_dead_strip	_ks8842_update_rx_err_counters
.subsections_via_symbols
