	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function prism2_hostapd_sta_clear_stats
_prism2_hostapd_sta_clear_stats:        ## @prism2_hostapd_sta_clear_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, %rbx
	movq	%rdi, %r14
	callq	_spin_lock_bh
	movl	(%rbx), %esi
	movq	%r14, %rdi
	callq	_ap_get_sta
	testq	%rax, %rax
	je	LBB0_17
## %bb.1:
	xorps	%xmm0, %xmm0
	movups	%xmm0, 32(%rax)
	movups	%xmm0, 16(%rax)
	movq	_WLAN_RATE_COUNT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %r8d
	testl	%r8d, %r8d
	jle	LBB0_16
## %bb.2:
	movq	(%rax), %rdx
	movq	8(%rax), %rax
	xorl	%esi, %esi
	cmpl	$4, %r8d
	jb	LBB0_12
## %bb.3:
	movq	%rdx, %rcx
	subq	%rax, %rcx
	cmpq	$32, %rcx
	jb	LBB0_12
## %bb.4:
	movl	%r8d, %esi
	andl	$-4, %esi
	leaq	-4(%rsi), %rcx
	movq	%rcx, %rdi
	shrq	$2, %rdi
	incq	%rdi
	movl	%edi, %r9d
	andl	$3, %r9d
	cmpq	$12, %rcx
	jae	LBB0_6
## %bb.5:
	xorl	%ecx, %ecx
	jmp	LBB0_8
LBB0_17:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movq	_ENOENT@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_18
LBB0_6:
	andq	$-4, %rdi
	xorl	%ecx, %ecx
	xorps	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movups	%xmm0, (%rax,%rcx,8)
	movups	%xmm0, 16(%rax,%rcx,8)
	movups	%xmm0, (%rdx,%rcx,8)
	movups	%xmm0, 16(%rdx,%rcx,8)
	movups	%xmm0, 32(%rax,%rcx,8)
	movups	%xmm0, 48(%rax,%rcx,8)
	movups	%xmm0, 32(%rdx,%rcx,8)
	movups	%xmm0, 48(%rdx,%rcx,8)
	movups	%xmm0, 64(%rax,%rcx,8)
	movups	%xmm0, 80(%rax,%rcx,8)
	movups	%xmm0, 64(%rdx,%rcx,8)
	movups	%xmm0, 80(%rdx,%rcx,8)
	movups	%xmm0, 96(%rax,%rcx,8)
	movups	%xmm0, 112(%rax,%rcx,8)
	movups	%xmm0, 96(%rdx,%rcx,8)
	movups	%xmm0, 112(%rdx,%rcx,8)
	addq	$16, %rcx
	addq	$-4, %rdi
	jne	LBB0_7
LBB0_8:
	testq	%r9, %r9
	je	LBB0_11
## %bb.9:
	leaq	(%rdx,%rcx,8), %rdi
	addq	$16, %rdi
	leaq	(%rax,%rcx,8), %rcx
	addq	$16, %rcx
	shlq	$5, %r9
	xorl	%ebx, %ebx
	xorps	%xmm0, %xmm0
	.p2align	4, 0x90
LBB0_10:                                ## =>This Inner Loop Header: Depth=1
	movups	%xmm0, -16(%rcx,%rbx)
	movups	%xmm0, (%rcx,%rbx)
	movups	%xmm0, -16(%rdi,%rbx)
	movups	%xmm0, (%rdi,%rbx)
	addq	$32, %rbx
	cmpq	%rbx, %r9
	jne	LBB0_10
LBB0_11:
	cmpq	%r8, %rsi
	je	LBB0_16
LBB0_12:
	movq	%rsi, %rcx
	notq	%rcx
	addq	%r8, %rcx
	movq	%r8, %rdi
	andq	$3, %rdi
	je	LBB0_14
	.p2align	4, 0x90
LBB0_13:                                ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rax,%rsi,8)
	movq	$0, (%rdx,%rsi,8)
	incq	%rsi
	decq	%rdi
	jne	LBB0_13
LBB0_14:
	cmpq	$3, %rcx
	jb	LBB0_16
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movq	$0, (%rax,%rsi,8)
	movq	$0, (%rdx,%rsi,8)
	movq	$0, 8(%rax,%rsi,8)
	movq	$0, 8(%rdx,%rsi,8)
	movq	$0, 16(%rax,%rsi,8)
	movq	$0, 16(%rdx,%rsi,8)
	movq	$0, 24(%rax,%rsi,8)
	movq	$0, 24(%rdx,%rsi,8)
	addq	$4, %rsi
	cmpq	%rsi, %r8
	jne	LBB0_15
LBB0_16:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	xorl	%eax, %eax
LBB0_18:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_RATE_COUNT,4,2            ## @WLAN_RATE_COUNT
	.comm	_ENOENT,4,2                     ## @ENOENT
	.no_dead_strip	_prism2_hostapd_sta_clear_stats
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function prism2_hostapd_sta_clear_stats
_prism2_hostapd_sta_clear_stats:        ; @prism2_hostapd_sta_clear_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	x20, x1
	mov	x19, x0
	bl	_spin_lock_bh
	ldr	w1, [x20]
	mov	x0, x19
	bl	_ap_get_sta
	cbz	x0, LBB0_10
; %bb.1:
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [x0, #16]
Lloh0:
	adrp	x8, _WLAN_RATE_COUNT@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_RATE_COUNT@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.2:
	mov	x9, #0
	ldp	x11, x10, [x0]
	cmp	w8, #8
	b.lo	LBB0_7
; %bb.3:
	sub	x12, x11, x10
	cmp	x12, #64
	b.lo	LBB0_7
; %bb.4:
	and	x9, x8, #0xfffffff8
	add	x12, x11, #32
	add	x13, x10, #32
	movi.2d	v0, #0000000000000000
	mov	x14, x9
LBB0_5:                                 ; =>This Inner Loop Header: Depth=1
	stp	q0, q0, [x13, #-32]
	stp	q0, q0, [x13], #64
	stp	q0, q0, [x12, #-32]
	stp	q0, q0, [x12], #64
	subs	x14, x14, #8
	b.ne	LBB0_5
; %bb.6:
	cmp	x9, x8
	b.eq	LBB0_9
LBB0_7:
	lsl	x12, x9, #3
	add	x11, x11, x12
	add	x10, x10, x12
	sub	x8, x8, x9
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	str	xzr, [x10], #8
	str	xzr, [x11], #8
	subs	x8, x8, #1
	b.ne	LBB0_8
LBB0_9:
	mov	x0, x19
	bl	_spin_unlock_bh
	mov	w0, #0
	b	LBB0_11
LBB0_10:
	mov	x0, x19
	bl	_spin_unlock_bh
Lloh3:
	adrp	x8, _ENOENT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ENOENT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_11:
	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 AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_RATE_COUNT,4,2            ; @WLAN_RATE_COUNT
	.comm	_ENOENT,4,2                     ; @ENOENT
	.no_dead_strip	_prism2_hostapd_sta_clear_stats
.subsections_via_symbols
