	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rtw_tx_stats
_rtw_tx_stats:                          ## @rtw_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	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r12
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	8(%rdx), %rbx
	movl	4(%rbx), %edi
	callq	_ieee80211_is_data
	testl	%eax, %eax
	je	LBB0_5
## %bb.1:
	movl	(%rbx), %edi
	callq	_is_broadcast_ether_addr
	testl	%eax, %eax
	jne	LBB0_5
## %bb.2:
	movl	(%rbx), %edi
	callq	_is_multicast_ether_addr
	testl	%eax, %eax
	je	LBB0_3
LBB0_5:
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movl	(%r12), %eax
	addl	%eax, 4(%r14)
	incl	(%r14)
	testq	%r15, %r15
	je	LBB0_5
## %bb.4:
	movq	(%r15), %rsi
	addl	%eax, 8(%rsi)
	movq	(%rsi), %rax
	leaq	1(%rax), %rcx
	movq	%rcx, (%rsi)
	movq	_RTW_LPS_THRESHOLD@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_5
## %bb.6:
	movq	%r14, %rdi
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rtw_leave_lps_irqsafe          ## TAILCALL
	.cfi_endproc
                                        ## -- End function
	.comm	_RTW_LPS_THRESHOLD,8,3          ## @RTW_LPS_THRESHOLD
	.no_dead_strip	_rtw_tx_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rtw_tx_stats
_rtw_tx_stats:                          ; @rtw_tx_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
	ldr	x22, [x2, #8]
	ldr	w0, [x22, #4]
	bl	_ieee80211_is_data
	cbz	w0, LBB0_3
; %bb.1:
	ldr	w0, [x22]
	bl	_is_broadcast_ether_addr
	cbnz	w0, LBB0_3
; %bb.2:
	ldr	w0, [x22]
	bl	_is_multicast_ether_addr
	cbz	w0, LBB0_4
LBB0_3:
	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
LBB0_4:
	ldr	w8, [x21]
	ldp	w10, w9, [x19]
	add	w9, w9, w8
	add	w10, w10, #1
	stp	w10, w9, [x19]
	cbz	x20, LBB0_3
; %bb.5:
	ldr	x1, [x20]
	ldr	w9, [x1, #8]
	add	w8, w9, w8
	str	w8, [x1, #8]
	ldr	x8, [x1]
	add	x9, x8, #1
	str	x9, [x1]
Lloh0:
	adrp	x9, _RTW_LPS_THRESHOLD@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RTW_LPS_THRESHOLD@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_3
; %bb.6:
	mov	x0, x19
	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
	b	_rtw_leave_lps_irqsafe
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_RTW_LPS_THRESHOLD,8,3          ; @RTW_LPS_THRESHOLD
	.no_dead_strip	_rtw_tx_stats
.subsections_via_symbols
