	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function smsc9420_tx_update_stats
_smsc9420_tx_update_stats:              ## @smsc9420_tx_update_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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movl	%esi, %ebx
	movq	%rdi, %r14
	movq	_TDES0_ERROR_SUMMARY_@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	andl	%esi, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	incl	24(%r14)
	movq	_TDES0_EXCESSIVE_DEFERRAL_@GOTPCREL(%rip), %rax
	movq	_TDES0_EXCESSIVE_COLLISIONS_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	movl	(%rax), %eax
	orl	%edi, %eax
	testl	%ebx, %eax
	je	LBB0_3
## %bb.2:
	incl	20(%r14)
LBB0_3:
	movq	_TDES0_LOSS_OF_CARRIER_@GOTPCREL(%rip), %rax
	movq	_TDES0_NO_CARRIER_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	orl	(%rax), %ecx
	testl	%ebx, %ecx
	je	LBB0_6
## %bb.4:
	incl	16(%r14)
	jmp	LBB0_6
LBB0_5:
	incl	12(%r14)
	andl	$2047, %r15d                    ## imm = 0x7FF
	addl	%r15d, (%r14)
	movq	_TDES0_EXCESSIVE_COLLISIONS_@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
LBB0_6:
	andl	%ebx, %edi
	callq	_unlikely
	movq	_TDES0_COLLISION_COUNT_MASK_@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edx
	andl	%ebx, %edx
	movq	_TDES0_COLLISION_COUNT_SHFT_@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %edx
	testq	%rax, %rax
	movl	$16, %eax
	cmovel	%edx, %eax
	addl	%eax, 4(%r14)
	movq	_TDES0_HEARTBEAT_FAIL_@GOTPCREL(%rip), %rax
	andl	(%rax), %ebx
	movl	%ebx, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	incl	8(%r14)
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TDES0_ERROR_SUMMARY_,4,2       ## @TDES0_ERROR_SUMMARY_
	.comm	_TDES0_EXCESSIVE_DEFERRAL_,4,2  ## @TDES0_EXCESSIVE_DEFERRAL_
	.comm	_TDES0_EXCESSIVE_COLLISIONS_,4,2 ## @TDES0_EXCESSIVE_COLLISIONS_
	.comm	_TDES0_LOSS_OF_CARRIER_,4,2     ## @TDES0_LOSS_OF_CARRIER_
	.comm	_TDES0_NO_CARRIER_,4,2          ## @TDES0_NO_CARRIER_
	.comm	_TDES0_COLLISION_COUNT_MASK_,4,2 ## @TDES0_COLLISION_COUNT_MASK_
	.comm	_TDES0_COLLISION_COUNT_SHFT_,4,2 ## @TDES0_COLLISION_COUNT_SHFT_
	.comm	_TDES0_HEARTBEAT_FAIL_,4,2      ## @TDES0_HEARTBEAT_FAIL_
	.no_dead_strip	_smsc9420_tx_update_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function smsc9420_tx_update_stats
_smsc9420_tx_update_stats:              ; @smsc9420_tx_update_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	x21, x2
	mov	x20, x1
	mov	x19, x0
Lloh0:
	adrp	x8, _TDES0_ERROR_SUMMARY_@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TDES0_ERROR_SUMMARY_@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w0, w8, w1
	bl	_unlikely
	cbz	x0, LBB0_5
; %bb.1:
	ldr	w8, [x19, #24]
	add	w8, w8, #1
	str	w8, [x19, #24]
Lloh3:
	adrp	x8, _TDES0_EXCESSIVE_DEFERRAL_@GOTPAGE
Lloh4:
	ldr	x8, [x8, _TDES0_EXCESSIVE_DEFERRAL_@GOTPAGEOFF]
Lloh5:
	ldr	w9, [x8]
Lloh6:
	adrp	x8, _TDES0_EXCESSIVE_COLLISIONS_@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TDES0_EXCESSIVE_COLLISIONS_@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	orr	w9, w8, w9
	tst	w9, w20
	b.eq	LBB0_3
; %bb.2:
	ldr	w9, [x19, #20]
	add	w9, w9, #1
	str	w9, [x19, #20]
LBB0_3:
Lloh9:
	adrp	x9, _TDES0_LOSS_OF_CARRIER_@GOTPAGE
Lloh10:
	ldr	x9, [x9, _TDES0_LOSS_OF_CARRIER_@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
Lloh12:
	adrp	x10, _TDES0_NO_CARRIER_@GOTPAGE
Lloh13:
	ldr	x10, [x10, _TDES0_NO_CARRIER_@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	orr	w9, w10, w9
	tst	w9, w20
	b.eq	LBB0_6
; %bb.4:
	ldr	w9, [x19, #16]
	add	w9, w9, #1
	str	w9, [x19, #16]
	b	LBB0_6
LBB0_5:
	ldr	w8, [x19, #12]
	add	w8, w8, #1
	str	w8, [x19, #12]
	and	w8, w21, #0x7ff
	ldr	w9, [x19]
	add	w8, w9, w8
	str	w8, [x19]
Lloh15:
	adrp	x8, _TDES0_EXCESSIVE_COLLISIONS_@GOTPAGE
Lloh16:
	ldr	x8, [x8, _TDES0_EXCESSIVE_COLLISIONS_@GOTPAGEOFF]
Lloh17:
	ldr	w8, [x8]
LBB0_6:
	and	w0, w8, w20
	bl	_unlikely
Lloh18:
	adrp	x8, _TDES0_COLLISION_COUNT_MASK_@GOTPAGE
Lloh19:
	ldr	x8, [x8, _TDES0_COLLISION_COUNT_MASK_@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	and	w8, w8, w20
Lloh21:
	adrp	x9, _TDES0_COLLISION_COUNT_SHFT_@GOTPAGE
Lloh22:
	ldr	x9, [x9, _TDES0_COLLISION_COUNT_SHFT_@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	asr	w8, w8, w9
	cmp	x0, #0
	mov	w9, #16
	csel	w8, w8, w9, eq
	ldr	w9, [x19, #4]
	add	w8, w9, w8
	str	w8, [x19, #4]
Lloh24:
	adrp	x8, _TDES0_HEARTBEAT_FAIL_@GOTPAGE
Lloh25:
	ldr	x8, [x8, _TDES0_HEARTBEAT_FAIL_@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	and	w0, w8, w20
	bl	_unlikely
	cbz	x0, LBB0_8
; %bb.7:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
LBB0_8:
	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 AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_TDES0_ERROR_SUMMARY_,4,2       ; @TDES0_ERROR_SUMMARY_
	.comm	_TDES0_EXCESSIVE_DEFERRAL_,4,2  ; @TDES0_EXCESSIVE_DEFERRAL_
	.comm	_TDES0_EXCESSIVE_COLLISIONS_,4,2 ; @TDES0_EXCESSIVE_COLLISIONS_
	.comm	_TDES0_LOSS_OF_CARRIER_,4,2     ; @TDES0_LOSS_OF_CARRIER_
	.comm	_TDES0_NO_CARRIER_,4,2          ; @TDES0_NO_CARRIER_
	.comm	_TDES0_COLLISION_COUNT_MASK_,4,2 ; @TDES0_COLLISION_COUNT_MASK_
	.comm	_TDES0_COLLISION_COUNT_SHFT_,4,2 ; @TDES0_COLLISION_COUNT_SHFT_
	.comm	_TDES0_HEARTBEAT_FAIL_,4,2      ; @TDES0_HEARTBEAT_FAIL_
	.no_dead_strip	_smsc9420_tx_update_stats
.subsections_via_symbols
