	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ap_control_kick_mac            ## -- Begin function ap_control_kick_mac
	.p2align	4, 0x90
_ap_control_kick_mac:                   ## @ap_control_kick_mac
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_spin_lock_bh
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ap_get_sta
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %rbx
	movq	%r15, %rdi
	movq	%rax, %rsi
	callq	_ap_sta_hash_del
	movq	%rbx, %rdi
	addq	$12, %rdi
	callq	_list_del
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movq	_WLAN_REASON_PREV_AUTH_NOT_VALID@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movl	%eax, -36(%rbp)
	movq	_IEEE80211_FTYPE_MGMT@GOTPCREL(%rip), %rax
	movq	_IEEE80211_STYPE_DEAUTH@GOTPCREL(%rip), %rcx
	movl	(%rcx), %esi
	orl	(%rax), %esi
	movl	8(%rbx), %r8d
	leaq	-36(%rbp), %rdx
	xorl	%r12d, %r12d
	movq	%r14, %rdi
	movl	$2, %ecx
	xorl	%r9d, %r9d
	callq	_prism2_send_mgmt
	movq	_WLAN_STA_ASSOC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%rbx)
	je	LBB0_4
## %bb.2:
	cmpl	$0, 4(%rbx)
	jne	LBB0_4
## %bb.3:
	movq	%r14, %rdi
	movq	%rbx, %rsi
	callq	_hostap_event_expired_sta
LBB0_4:
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_ap_free_sta
	jmp	LBB0_5
LBB0_6:
	movq	%r15, %rdi
	callq	_spin_unlock_bh
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_5:
	movl	%r12d, %eax
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_WLAN_REASON_PREV_AUTH_NOT_VALID,4,2 ## @WLAN_REASON_PREV_AUTH_NOT_VALID
	.comm	_IEEE80211_FTYPE_MGMT,4,2       ## @IEEE80211_FTYPE_MGMT
	.comm	_IEEE80211_STYPE_DEAUTH,4,2     ## @IEEE80211_STYPE_DEAUTH
	.comm	_WLAN_STA_ASSOC,4,2             ## @WLAN_STA_ASSOC
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ap_control_kick_mac            ; -- Begin function ap_control_kick_mac
	.p2align	2
_ap_control_kick_mac:                   ; @ap_control_kick_mac
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.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
	mov	x21, x2
	mov	x20, x1
	mov	x19, x0
	bl	_spin_lock_bh
	mov	x0, x19
	mov	x1, x21
	bl	_ap_get_sta
	cbz	x0, LBB0_5
; %bb.1:
	mov	x21, x0
	mov	x0, x19
	mov	x1, x21
	bl	_ap_sta_hash_del
	add	x0, x21, #12
	bl	_list_del
	mov	x0, x19
	bl	_spin_unlock_bh
Lloh0:
	adrp	x8, _WLAN_REASON_PREV_AUTH_NOT_VALID@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_REASON_PREV_AUTH_NOT_VALID@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	w0, [sp, #12]
Lloh3:
	adrp	x8, _IEEE80211_FTYPE_MGMT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_FTYPE_MGMT@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
Lloh6:
	adrp	x9, _IEEE80211_STYPE_DEAUTH@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_STYPE_DEAUTH@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldr	w4, [x21, #8]
	add	x2, sp, #12
	mov	x0, x20
	mov	w3, #2
	mov	w5, #0
	bl	_prism2_send_mgmt
	ldr	w8, [x21]
Lloh9:
	adrp	x9, _WLAN_STA_ASSOC@GOTPAGE
Lloh10:
	ldr	x9, [x9, _WLAN_STA_ASSOC@GOTPAGEOFF]
Lloh11:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
	ldr	w8, [x21, #4]
	cbnz	w8, LBB0_4
; %bb.3:
	mov	x0, x20
	mov	x1, x21
	bl	_hostap_event_expired_sta
LBB0_4:
	mov	x0, x19
	mov	x1, x21
	bl	_ap_free_sta
	mov	w0, #0
	b	LBB0_6
LBB0_5:
	mov	x0, x19
	bl	_spin_unlock_bh
Lloh12:
	adrp	x8, _EINVAL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_6:
	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
	add	sp, sp, #64
	ret
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_WLAN_REASON_PREV_AUTH_NOT_VALID,4,2 ; @WLAN_REASON_PREV_AUTH_NOT_VALID
	.comm	_IEEE80211_FTYPE_MGMT,4,2       ; @IEEE80211_FTYPE_MGMT
	.comm	_IEEE80211_STYPE_DEAUTH,4,2     ; @IEEE80211_STYPE_DEAUTH
	.comm	_WLAN_STA_ASSOC,4,2             ; @WLAN_STA_ASSOC
.subsections_via_symbols
