	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00link_update_stats        ## -- Begin function rt2x00link_update_stats
	.p2align	4, 0x90
_rt2x00link_update_stats:               ## @rt2x00link_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
	cmpl	$0, (%rdi)
	je	LBB0_3
## %bb.1:
	movq	%rdx, %r14
	movq	%rdi, %rbx
	movq	(%rsi), %rax
	incl	12(%rdi)
	movl	(%rax), %edi
	callq	_ieee80211_is_beacon
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movq	_RXDONE_MY_BSS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r14)
	je	LBB0_3
## %bb.4:
	leaq	4(%rbx), %rdi
	xorl	%r15d, %r15d
	xorl	%esi, %esi
	subl	4(%r14), %esi
	callq	_ewma_rssi_add
	addq	$8, %rbx
	subl	4(%r14), %r15d
	movq	%rbx, %rdi
	movl	%r15d, %esi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_ewma_rssi_add                  ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_RXDONE_MY_BSS,4,2              ## @RXDONE_MY_BSS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_rt2x00link_update_stats        ; -- Begin function rt2x00link_update_stats
	.p2align	2
_rt2x00link_update_stats:               ; @rt2x00link_update_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
	ldr	w8, [x0]
	cbz	w8, LBB0_4
; %bb.1:
	mov	x19, x2
	mov	x20, x0
	ldr	x8, [x1]
	ldr	w9, [x0, #12]
	add	w9, w9, #1
	str	w9, [x0, #12]
	ldr	w0, [x8]
	bl	_ieee80211_is_beacon
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w8, [x19]
Lloh0:
	adrp	x9, _RXDONE_MY_BSS@GOTPAGE
Lloh1:
	ldr	x9, [x9, _RXDONE_MY_BSS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.3:
	add	x0, x20, #4
	ldr	w8, [x19, #4]
	neg	w1, w8
	bl	_ewma_rssi_add
	add	x0, x20, #8
	ldr	w8, [x19, #4]
	neg	w1, w8
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	b	_ewma_rssi_add
LBB0_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
	.cfi_endproc
                                        ; -- End function
	.comm	_RXDONE_MY_BSS,4,2              ; @RXDONE_MY_BSS
.subsections_via_symbols
