	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ap_free_sta
_ap_free_sta:                           ## @ap_free_sta
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -32(%rbp)
	cmpq	$0, 16(%rsi)
	je	LBB0_3
## %bb.1:
	movq	64(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_hostap_event_expired_sta
LBB0_3:
	cmpq	$0, 16(%r14)
	je	LBB0_5
## %bb.4:
	movl	56(%rbx), %edx
	leaq	L_.str(%rip), %rsi
	leaq	-64(%rbp), %r15
	movq	%r15, %rdi
	callq	_sprintf
	movq	16(%r14), %rsi
	movq	%r15, %rdi
	callq	_remove_proc_entry
LBB0_5:
	movq	32(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_7
## %bb.6:
	movq	48(%rax), %rcx
	movl	40(%rax), %edi
	callq	*(%rcx)
	movq	32(%rbx), %rdi
	callq	_kfree
	movq	$0, 32(%rbx)
LBB0_7:
	leaq	24(%rbx), %rdi
	callq	_skb_queue_purge
	decl	8(%r14)
	movl	(%rbx), %eax
	testl	%eax, %eax
	jle	LBB0_9
## %bb.8:
	movq	(%r14), %rcx
	decl	%eax
	movq	$0, (%rcx,%rax,8)
LBB0_9:
	cmpq	$0, 16(%rbx)
	jne	LBB0_11
## %bb.10:
	movq	8(%rbx), %rdi
	callq	_kfree
LBB0_11:
	leaq	4(%rbx), %rdi
	callq	_del_timer_sync
	movq	%rbx, %rdi
	callq	_kfree
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-32(%rbp), %rax
	jne	LBB0_13
## %bb.12:
	addq	$40, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_13:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"%pM"

	.no_dead_strip	_ap_free_sta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ap_free_sta
_ap_free_sta:                           ; @ap_free_sta
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x1
	mov	x20, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	str	x8, [sp, #24]
	ldr	x8, [x1, #16]
	cbz	x8, LBB0_3
; %bb.1:
	ldr	x8, [x19, #64]
	cbz	x8, LBB0_3
; %bb.2:
	ldr	w0, [x8]
	mov	x1, x19
	bl	_hostap_event_expired_sta
LBB0_3:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_5
; %bb.4:
	ldr	w2, [x19, #56]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x0, sp, #4
	bl	_sprintf
	ldr	x1, [x20, #16]
	add	x0, sp, #4
	bl	_remove_proc_entry
LBB0_5:
	ldr	x8, [x19, #32]
	cbz	x8, LBB0_7
; %bb.6:
	ldr	x9, [x8, #48]
	ldr	x9, [x9]
	ldr	w0, [x8, #40]
	blr	x9
	ldr	x0, [x19, #32]
	bl	_kfree
	str	xzr, [x19, #32]
LBB0_7:
	add	x0, x19, #24
	bl	_skb_queue_purge
	ldr	w8, [x20, #8]
	sub	w8, w8, #1
	str	w8, [x20, #8]
	ldr	w8, [x19]
	subs	w8, w8, #1
	b.lt	LBB0_9
; %bb.8:
	ldr	x9, [x20]
	str	xzr, [x9, w8, uxtw #3]
LBB0_9:
	ldr	x8, [x19, #16]
	cbnz	x8, LBB0_11
; %bb.10:
	ldr	x0, [x19, #8]
	bl	_kfree
LBB0_11:
	add	x0, x19, #4
	bl	_del_timer_sync
	mov	x0, x19
	bl	_kfree
	ldr	x8, [sp, #24]
Lloh5:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh6:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_13
; %bb.12:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_13:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%pM"

	.no_dead_strip	_ap_free_sta
.subsections_via_symbols
