	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ath9k_hw_ani_read_counters
_ath9k_hw_ani_read_counters:            ## @ath9k_hw_ani_read_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
	movq	%rdi, %rbx
	callq	_ath9k_hw_common
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_ath_hw_cycle_counters_update
	movq	%r14, %rdi
	callq	_ath_hw_get_listen_time
	testq	%rax, %rax
	jle	LBB0_1
## %bb.2:
	addl	%eax, 32(%rbx)
	leaq	12(%rbx), %rsi
	movq	%rbx, %rdi
	callq	_ath9k_hw_update_mibstats
	movq	_AR_PHY_ERR_1@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_REG_READ
	movq	%rax, %r14
	movq	_AR_PHY_ERR_2@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%rbx, %rdi
	callq	_REG_READ
	movl	16(%rbx), %ecx
	movl	%r14d, %edx
	subl	%ecx, %edx
	addl	%edx, 4(%rbx)
	movq	%r14, 16(%rbx)
	movl	24(%rbx), %ecx
	movl	%eax, %edx
	subl	%ecx, %edx
	addl	%edx, (%rbx)
	movq	%rax, 24(%rbx)
	movl	$1, %eax
	jmp	LBB0_3
LBB0_1:
	incl	8(%rbx)
	movq	%rbx, %rdi
	callq	_ath9k_ani_restart
	xorl	%eax, %eax
LBB0_3:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_AR_PHY_ERR_1,4,2               ## @AR_PHY_ERR_1
	.comm	_AR_PHY_ERR_2,4,2               ## @AR_PHY_ERR_2
	.no_dead_strip	_ath9k_hw_ani_read_counters
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ath9k_hw_ani_read_counters
_ath9k_hw_ani_read_counters:            ; @ath9k_hw_ani_read_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	x19, x0
	bl	_ath9k_hw_common
	mov	x20, x0
	bl	_ath_hw_cycle_counters_update
	mov	x0, x20
	bl	_ath_hw_get_listen_time
	cmp	x0, #0
	b.le	LBB0_2
; %bb.1:
	ldr	w8, [x19, #32]
	add	w8, w8, w0
	str	w8, [x19, #32]
	add	x1, x19, #12
	mov	x0, x19
	bl	_ath9k_hw_update_mibstats
Lloh0:
	adrp	x8, _AR_PHY_ERR_1@GOTPAGE
Lloh1:
	ldr	x8, [x8, _AR_PHY_ERR_1@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_REG_READ
	mov	x20, x0
Lloh3:
	adrp	x8, _AR_PHY_ERR_2@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AR_PHY_ERR_2@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_REG_READ
	ldr	w8, [x19, #16]
	ldp	w10, w9, [x19]
	sub	w8, w20, w8
	add	w8, w9, w8
	ldr	w9, [x19, #24]
	sub	w9, w0, w9
	add	w9, w10, w9
	stp	w9, w8, [x19]
	stp	x20, x0, [x19, #16]
	mov	w0, #1
	b	LBB0_3
LBB0_2:
	ldr	w8, [x19, #8]
	add	w8, w8, #1
	str	w8, [x19, #8]
	mov	x0, x19
	bl	_ath9k_ani_restart
	mov	w0, #0
LBB0_3:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_AR_PHY_ERR_1,4,2               ; @AR_PHY_ERR_1
	.comm	_AR_PHY_ERR_2,4,2               ; @AR_PHY_ERR_2
	.no_dead_strip	_ath9k_hw_ani_read_counters
.subsections_via_symbols
