	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ethoc_update_tx_stats
_ethoc_update_tx_stats:                 ## @ethoc_update_tx_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rsi, %r14
	movq	(%rdi), %rbx
	movl	(%rsi), %eax
	movq	_TX_BD_LC@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_2
## %bb.1:
	leaq	32(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	incl	28(%rbx)
	movl	(%r14), %eax
LBB0_2:
	movq	_TX_BD_RL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_4
## %bb.3:
	leaq	32(%rbx), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	incl	24(%rbx)
	movl	(%r14), %eax
LBB0_4:
	movq	_TX_BD_UR@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_6
## %bb.5:
	leaq	32(%rbx), %rdi
	leaq	L_.str.2(%rip), %rsi
	callq	_dev_err
	incl	20(%rbx)
	movl	(%r14), %eax
LBB0_6:
	movq	_TX_BD_CS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_8
## %bb.7:
	leaq	32(%rbx), %rdi
	leaq	L_.str.3(%rip), %rsi
	callq	_dev_err
	incl	16(%rbx)
	movl	(%r14), %eax
LBB0_8:
	movq	_TX_BD_STATS@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_10
## %bb.9:
	incl	12(%rbx)
LBB0_10:
	movl	%eax, %ecx
	shrl	$4, %ecx
	andl	$15, %ecx
	addl	%ecx, (%rbx)
	sarl	$16, %eax
	addl	%eax, 4(%rbx)
	incl	8(%rbx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_BD_LC,4,2                   ## @TX_BD_LC
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"TX: late collision\n"

	.comm	_TX_BD_RL,4,2                   ## @TX_BD_RL
L_.str.1:                               ## @.str.1
	.asciz	"TX: retransmit limit\n"

	.comm	_TX_BD_UR,4,2                   ## @TX_BD_UR
L_.str.2:                               ## @.str.2
	.asciz	"TX: underrun\n"

	.comm	_TX_BD_CS,4,2                   ## @TX_BD_CS
L_.str.3:                               ## @.str.3
	.asciz	"TX: carrier sense lost\n"

	.comm	_TX_BD_STATS,4,2                ## @TX_BD_STATS
	.no_dead_strip	_ethoc_update_tx_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_tx_stats
_ethoc_update_tx_stats:                 ; @ethoc_update_tx_stats
	.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	x19, x1
	ldr	x20, [x0]
	ldr	w8, [x1]
Lloh0:
	adrp	x9, _TX_BD_LC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _TX_BD_LC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_2
; %bb.1:
	add	x0, x20, #32
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	ldr	w8, [x20, #28]
	add	w8, w8, #1
	str	w8, [x20, #28]
	ldr	w8, [x19]
LBB0_2:
Lloh5:
	adrp	x9, _TX_BD_RL@GOTPAGE
Lloh6:
	ldr	x9, [x9, _TX_BD_RL@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	add	x0, x20, #32
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	ldr	w8, [x20, #24]
	add	w8, w8, #1
	str	w8, [x20, #24]
	ldr	w8, [x19]
LBB0_4:
Lloh10:
	adrp	x9, _TX_BD_UR@GOTPAGE
Lloh11:
	ldr	x9, [x9, _TX_BD_UR@GOTPAGEOFF]
Lloh12:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_6
; %bb.5:
	add	x0, x20, #32
Lloh13:
	adrp	x1, l_.str.2@PAGE
Lloh14:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_dev_err
	ldr	w8, [x20, #20]
	add	w8, w8, #1
	str	w8, [x20, #20]
	ldr	w8, [x19]
LBB0_6:
Lloh15:
	adrp	x9, _TX_BD_CS@GOTPAGE
Lloh16:
	ldr	x9, [x9, _TX_BD_CS@GOTPAGEOFF]
Lloh17:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_8
; %bb.7:
	add	x0, x20, #32
Lloh18:
	adrp	x1, l_.str.3@PAGE
Lloh19:
	add	x1, x1, l_.str.3@PAGEOFF
	bl	_dev_err
	ldr	w8, [x20, #16]
	add	w8, w8, #1
	str	w8, [x20, #16]
	ldr	w8, [x19]
LBB0_8:
Lloh20:
	adrp	x9, _TX_BD_STATS@GOTPAGE
Lloh21:
	ldr	x9, [x9, _TX_BD_STATS@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	w9, [x20, #12]
	add	w9, w9, #1
	str	w9, [x20, #12]
LBB0_10:
	ubfx	w9, w8, #4, #4
	ldr	w10, [x20]
	add	w9, w10, w9
	str	w9, [x20]
	asr	w8, w8, #16
	ldur	d0, [x20, #4]
	movi.2s	v1, #1
	mov.s	v1[0], w8
	add.2s	v0, v0, v1
	stur	d0, [x20, #4]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 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
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_BD_LC,4,2                   ; @TX_BD_LC
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"TX: late collision\n"

	.comm	_TX_BD_RL,4,2                   ; @TX_BD_RL
l_.str.1:                               ; @.str.1
	.asciz	"TX: retransmit limit\n"

	.comm	_TX_BD_UR,4,2                   ; @TX_BD_UR
l_.str.2:                               ; @.str.2
	.asciz	"TX: underrun\n"

	.comm	_TX_BD_CS,4,2                   ; @TX_BD_CS
l_.str.3:                               ; @.str.3
	.asciz	"TX: carrier sense lost\n"

	.comm	_TX_BD_STATS,4,2                ; @TX_BD_STATS
	.no_dead_strip	_ethoc_update_tx_stats
.subsections_via_symbols
