	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cleanup_single_sta
_cleanup_single_sta:                    ## @cleanup_single_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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	32(%rdi), %rbx
	movq	24(%rbx), %r14
	movq	_WLAN_STA_PS_STA@GOTPCREL(%rip), %r15
	movl	(%r15), %esi
	callq	_test_sta_flag
	testq	%rax, %rax
	je	LBB0_7
## %bb.1:
	movq	32(%r13), %rax
	movq	(%rax), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.2:
	movq	_NL80211_IFTYPE_AP_VLAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_3
## %bb.4:
	movq	%rbx, %rdi
	callq	_ieee80211_vif_is_mesh
	testq	%rax, %rax
	je	LBB0_18
## %bb.5:
	leaq	8(%rbx), %r12
	jmp	LBB0_6
LBB0_3:
	movq	16(%rbx), %r12
LBB0_6:
	movl	(%r15), %esi
	movq	%r13, %rdi
	callq	_clear_sta_flag
	movq	%r12, %rdi
	callq	_atomic_dec
	movq	%r13, %rdi
	callq	_sta_info_recalc_tim
LBB0_7:
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	movq	_IEEE80211_NUM_ACS@GOTPCREL(%rip), %r12
	cmpl	$0, (%r12)
	jle	LBB0_10
## %bb.8:
	xorl	%ebx, %ebx
	xorl	%r15d, %r15d
	.p2align	4, 0x90
LBB0_9:                                 ## =>This Inner Loop Header: Depth=1
	movq	24(%r13), %rdi
	addq	%rbx, %rdi
	callq	_skb_queue_len
	subl	%eax, 4(%r14)
	movq	24(%r13), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	callq	_ieee80211_purge_tx_queue
	movq	16(%r13), %rsi
	addq	%rbx, %rsi
	movq	%r14, %rdi
	callq	_ieee80211_purge_tx_queue
	incq	%r15
	movslq	(%r12), %rax
	addq	$4, %rbx
	cmpq	%rax, %r15
	jl	LBB0_9
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_ieee80211_vif_is_mesh
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	%r13, %rdi
	callq	_mesh_sta_cleanup
LBB0_12:
	leaq	8(%r13), %rdi
	callq	_cancel_work_sync
	movq	_IEEE80211_NUM_TIDS@GOTPCREL(%rip), %r15
	cmpl	$0, (%r15)
	jle	LBB0_17
## %bb.13:
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.p2align	4, 0x90
LBB0_16:                                ##   in Loop: Header=BB0_14 Depth=1
	incq	%rbx
	movslq	(%r15), %rax
	cmpq	%rax, %rbx
	jge	LBB0_17
LBB0_14:                                ## =>This Inner Loop Header: Depth=1
	movq	(%r13), %rax
	movl	(%rax,%rbx,4), %edi
	callq	_rcu_dereference_raw
	testq	%rax, %rax
	je	LBB0_16
## %bb.15:                              ##   in Loop: Header=BB0_14 Depth=1
	movq	%rax, %r12
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_ieee80211_purge_tx_queue
	movq	%r12, %rdi
	callq	_kfree
	jmp	LBB0_16
LBB0_17:
	movq	%r14, %rdi
	movq	%r13, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_sta_info_free                  ## TAILCALL
LBB0_18:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_STA_PS_STA,4,2            ## @WLAN_STA_PS_STA
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_AP_VLAN,8,3     ## @NL80211_IFTYPE_AP_VLAN
	.comm	_IEEE80211_NUM_ACS,4,2          ## @IEEE80211_NUM_ACS
	.comm	_IEEE80211_NUM_TIDS,4,2         ## @IEEE80211_NUM_TIDS
	.no_dead_strip	_cleanup_single_sta
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cleanup_single_sta
_cleanup_single_sta:                    ; @cleanup_single_sta
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x19, x0
	ldr	x21, [x0, #32]
	ldr	x20, [x21, #24]
Lloh0:
	adrp	x23, _WLAN_STA_PS_STA@GOTPAGE
Lloh1:
	ldr	x23, [x23, _WLAN_STA_PS_STA@GOTPAGEOFF]
	ldr	w1, [x23]
	bl	_test_sta_flag
	cbz	x0, LBB0_6
; %bb.1:
	ldr	x8, [x19, #32]
	ldr	x8, [x8]
Lloh2:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh3:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
Lloh5:
	adrp	x10, _NL80211_IFTYPE_AP_VLAN@GOTPAGE
Lloh6:
	ldr	x10, [x10, _NL80211_IFTYPE_AP_VLAN@GOTPAGEOFF]
Lloh7:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_3
; %bb.2:
	ldr	x22, [x21, #16]
	b	LBB0_5
LBB0_3:
	mov	x0, x21
	bl	_ieee80211_vif_is_mesh
	cbz	x0, LBB0_17
; %bb.4:
	add	x22, x21, #8
LBB0_5:
	ldr	w1, [x23]
	mov	x0, x19
	bl	_clear_sta_flag
	mov	x0, x22
	bl	_atomic_dec
	mov	x0, x19
	bl	_sta_info_recalc_tim
LBB0_6:
Lloh8:
	adrp	x22, _IEEE80211_NUM_ACS@GOTPAGE
Lloh9:
	ldr	x22, [x22, _IEEE80211_NUM_ACS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.7:
	mov	x23, #0
	mov	x24, #0
LBB0_8:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19, #24]
	add	x0, x8, x23
	bl	_skb_queue_len
	ldr	w8, [x20, #4]
	sub	w8, w8, w0
	str	w8, [x20, #4]
	ldr	x8, [x19, #24]
	add	x1, x8, x23
	mov	x0, x20
	bl	_ieee80211_purge_tx_queue
	ldr	x8, [x19, #16]
	add	x1, x8, x23
	mov	x0, x20
	bl	_ieee80211_purge_tx_queue
	add	x24, x24, #1
	ldrsw	x8, [x22]
	add	x23, x23, #4
	cmp	x24, x8
	b.lt	LBB0_8
LBB0_9:
	mov	x0, x21
	bl	_ieee80211_vif_is_mesh
	cbz	x0, LBB0_11
; %bb.10:
	mov	x0, x19
	bl	_mesh_sta_cleanup
LBB0_11:
	add	x0, x19, #8
	bl	_cancel_work_sync
Lloh10:
	adrp	x22, _IEEE80211_NUM_TIDS@GOTPAGE
Lloh11:
	ldr	x22, [x22, _IEEE80211_NUM_TIDS@GOTPAGEOFF]
	ldr	w8, [x22]
	cmp	w8, #1
	b.lt	LBB0_16
; %bb.12:
	mov	x23, #0
	b	LBB0_14
LBB0_13:                                ;   in Loop: Header=BB0_14 Depth=1
	add	x23, x23, #1
	ldrsw	x8, [x22]
	cmp	x23, x8
	b.ge	LBB0_16
LBB0_14:                                ; =>This Inner Loop Header: Depth=1
	ldr	x8, [x19]
	ldr	w0, [x8, x23, lsl #2]
	bl	_rcu_dereference_raw
	cbz	x0, LBB0_13
; %bb.15:                               ;   in Loop: Header=BB0_14 Depth=1
	mov	x21, x0
	mov	x0, x20
	mov	x1, x21
	bl	_ieee80211_purge_tx_queue
	mov	x0, x21
	bl	_kfree
	b	LBB0_13
LBB0_16:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	b	_sta_info_free
LBB0_17:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_STA_PS_STA,4,2            ; @WLAN_STA_PS_STA
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_AP_VLAN,8,3     ; @NL80211_IFTYPE_AP_VLAN
	.comm	_IEEE80211_NUM_ACS,4,2          ; @IEEE80211_NUM_ACS
	.comm	_IEEE80211_NUM_TIDS,4,2         ; @IEEE80211_NUM_TIDS
	.no_dead_strip	_cleanup_single_sta
.subsections_via_symbols
