	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_sta_remove              ## -- Begin function cw1200_sta_remove
	.p2align	4, 0x90
_cw1200_sta_remove:                     ## @cw1200_sta_remove
	.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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	(%rdi), %rbx
	movq	(%rbx), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_5
## %bb.1:
	movslq	(%rdx), %r15
	testq	%r15, %r15
	je	LBB0_5
## %bb.2:
	movq	24(%rbx), %r12
	leaq	12(%rbx), %r14
	movq	%r14, %rdi
	callq	_spin_lock_bh
	movq	_CW1200_LINK_RESERVE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -4(%r12,%r15,8)
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -8(%r12,%r15,8)
	movq	%rbx, %rdi
	callq	_wsm_lock_tx_async
	movl	8(%rbx), %edi
	leaq	16(%rbx), %rsi
	callq	_queue_work
	testq	%rax, %rax
	jg	LBB0_4
## %bb.3:
	movq	%rbx, %rdi
	callq	_wsm_unlock_tx
LBB0_4:
	movq	%r14, %rdi
	callq	_spin_unlock_bh
	movl	8(%rbx), %edi
	callq	_flush_workqueue
LBB0_5:
	xorl	%eax, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ## @NL80211_IFTYPE_AP
	.comm	_CW1200_LINK_RESERVE,4,2        ## @CW1200_LINK_RESERVE
	.comm	_jiffies,4,2                    ## @jiffies
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_cw1200_sta_remove              ; -- Begin function cw1200_sta_remove
	.p2align	2
_cw1200_sta_remove:                     ; @cw1200_sta_remove
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	ldr	x19, [x0]
	ldr	x8, [x19]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.1:
	ldr	w8, [x2]
	cbz	w8, LBB0_5
; %bb.2:
	ldr	x21, [x19, #24]
	sub	w22, w8, #1
	add	x20, x19, #12
	mov	x0, x20
	bl	_spin_lock_bh
Lloh3:
	adrp	x8, _CW1200_LINK_RESERVE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _CW1200_LINK_RESERVE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	x9, x21, w22, sxtw #3
	str	w8, [x9, #4]
Lloh6:
	adrp	x8, _jiffies@GOTPAGE
Lloh7:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
	str	w8, [x9]
	mov	x0, x19
	bl	_wsm_lock_tx_async
	ldr	w0, [x19, #8]
	add	x1, x19, #16
	bl	_queue_work
	cmp	x0, #0
	b.gt	LBB0_4
; %bb.3:
	mov	x0, x19
	bl	_wsm_unlock_tx
LBB0_4:
	mov	x0, x20
	bl	_spin_unlock_bh
	ldr	w0, [x19, #8]
	bl	_flush_workqueue
LBB0_5:
	mov	w0, #0
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_CW1200_LINK_RESERVE,4,2        ; @CW1200_LINK_RESERVE
	.comm	_jiffies,4,2                    ; @jiffies
.subsections_via_symbols
