	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ap_handle_dropped_data
_ap_handle_dropped_data:                ## @ap_handle_dropped_data
	.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	%rsi, %r15
	movq	%rdi, %rbx
	movq	8(%rdi), %r14
	movq	(%rdi), %rdi
	callq	_spin_lock_bh
	movq	(%rbx), %rdi
	movl	(%r15), %esi
	callq	_ap_get_sta
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	leaq	4(%r12), %r13
	movq	%r13, %rdi
	callq	_atomic_inc
	movq	(%rbx), %rdi
	callq	_spin_unlock_bh
	movq	_WLAN_STA_ASSOC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, (%r12)
	je	LBB0_4
## %bb.2:
	movq	_DEBUG_AP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_PDEBUG
	movq	%r13, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_atomic_dec                     ## TAILCALL
LBB0_3:
	movq	(%rbx), %rdi
	callq	_spin_unlock_bh
LBB0_4:
	movq	_WLAN_REASON_CLASS3_FRAME_FROM_NONASSOC_STA@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movl	%eax, -44(%rbp)
	movq	_IEEE80211_FTYPE_MGMT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	testq	%r12, %r12
	je	LBB0_9
## %bb.5:
	movq	_WLAN_STA_ASSOC@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	(%r12), %eax
	jne	LBB0_6
## %bb.7:
	movq	_IEEE80211_STYPE_DEAUTH@GOTPCREL(%rip), %rax
	jmp	LBB0_8
LBB0_9:
	movq	_IEEE80211_STYPE_DEAUTH@GOTPCREL(%rip), %rax
	orl	(%rax), %esi
	movl	(%r15), %r8d
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	$4, %ecx
	xorl	%r9d, %r9d
	callq	_prism2_send_mgmt
	jmp	LBB0_10
LBB0_6:
	movq	_IEEE80211_STYPE_DISASSOC@GOTPCREL(%rip), %rax
LBB0_8:
	orl	(%rax), %esi
	movl	(%r15), %r8d
	leaq	-44(%rbp), %rdx
	movq	%r14, %rdi
	movl	$4, %ecx
	xorl	%r9d, %r9d
	callq	_prism2_send_mgmt
	addq	$4, %r12
	movq	%r12, %rdi
	callq	_atomic_dec
LBB0_10:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_STA_ASSOC,4,2             ## @WLAN_STA_ASSOC
	.comm	_DEBUG_AP,4,2                   ## @DEBUG_AP
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"ap_handle_dropped_data: STA is now okay?\n"

	.comm	_WLAN_REASON_CLASS3_FRAME_FROM_NONASSOC_STA,4,2 ## @WLAN_REASON_CLASS3_FRAME_FROM_NONASSOC_STA
	.comm	_IEEE80211_FTYPE_MGMT,4,2       ## @IEEE80211_FTYPE_MGMT
	.comm	_IEEE80211_STYPE_DEAUTH,4,2     ## @IEEE80211_STYPE_DEAUTH
	.comm	_IEEE80211_STYPE_DISASSOC,4,2   ## @IEEE80211_STYPE_DISASSOC
	.no_dead_strip	_ap_handle_dropped_data
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ap_handle_dropped_data
_ap_handle_dropped_data:                ; @ap_handle_dropped_data
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x20, x1
	mov	x23, x0
	ldp	x0, x19, [x0]
	bl	_spin_lock_bh
	ldr	x0, [x23]
	ldr	w1, [x20]
	bl	_ap_get_sta
	mov	x21, x0
	cbz	x0, LBB0_3
; %bb.1:
	add	x22, x21, #4
	mov	x0, x22
	bl	_atomic_inc
	ldr	x0, [x23]
	bl	_spin_unlock_bh
	ldr	w8, [x21]
Lloh0:
	adrp	x9, _WLAN_STA_ASSOC@GOTPAGE
Lloh1:
	ldr	x9, [x9, _WLAN_STA_ASSOC@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.2:
Lloh3:
	adrp	x8, _DEBUG_AP@GOTPAGE
Lloh4:
	ldr	x8, [x8, _DEBUG_AP@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
Lloh6:
	adrp	x1, l_.str@PAGE
Lloh7:
	add	x1, x1, l_.str@PAGEOFF
	bl	_PDEBUG
	mov	x0, x22
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	b	_atomic_dec
LBB0_3:
	ldr	x0, [x23]
	bl	_spin_unlock_bh
LBB0_4:
Lloh8:
	adrp	x8, _WLAN_REASON_CLASS3_FRAME_FROM_NONASSOC_STA@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WLAN_REASON_CLASS3_FRAME_FROM_NONASSOC_STA@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	w0, [sp, #12]
Lloh11:
	adrp	x8, _IEEE80211_FTYPE_MGMT@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IEEE80211_FTYPE_MGMT@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	cbz	x21, LBB0_6
; %bb.5:
	ldr	w9, [x21], #4
Lloh14:
	adrp	x10, _WLAN_STA_ASSOC@GOTPAGE
Lloh15:
	ldr	x10, [x10, _WLAN_STA_ASSOC@GOTPAGEOFF]
Lloh16:
	adrp	x11, _IEEE80211_STYPE_DEAUTH@GOTPAGE
Lloh17:
	ldr	x11, [x11, _IEEE80211_STYPE_DEAUTH@GOTPAGEOFF]
Lloh18:
	adrp	x12, _IEEE80211_STYPE_DISASSOC@GOTPAGE
Lloh19:
	ldr	x12, [x12, _IEEE80211_STYPE_DISASSOC@GOTPAGEOFF]
Lloh20:
	ldr	w10, [x10]
	tst	w10, w9
	csel	x9, x11, x12, eq
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldr	w4, [x20]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #4
	mov	w5, #0
	bl	_prism2_send_mgmt
	mov	x0, x21
	bl	_atomic_dec
	b	LBB0_7
LBB0_6:
Lloh21:
	adrp	x9, _IEEE80211_STYPE_DEAUTH@GOTPAGE
Lloh22:
	ldr	x9, [x9, _IEEE80211_STYPE_DEAUTH@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w1, w9, w8
	ldr	w4, [x20]
	add	x2, sp, #12
	mov	x0, x19
	mov	w3, #4
	mov	w5, #0
	bl	_prism2_send_mgmt
LBB0_7:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_STA_ASSOC,4,2             ; @WLAN_STA_ASSOC
	.comm	_DEBUG_AP,4,2                   ; @DEBUG_AP
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"ap_handle_dropped_data: STA is now okay?\n"

	.comm	_WLAN_REASON_CLASS3_FRAME_FROM_NONASSOC_STA,4,2 ; @WLAN_REASON_CLASS3_FRAME_FROM_NONASSOC_STA
	.comm	_IEEE80211_FTYPE_MGMT,4,2       ; @IEEE80211_FTYPE_MGMT
	.comm	_IEEE80211_STYPE_DEAUTH,4,2     ; @IEEE80211_STYPE_DEAUTH
	.comm	_IEEE80211_STYPE_DISASSOC,4,2   ; @IEEE80211_STYPE_DISASSOC
	.no_dead_strip	_ap_handle_dropped_data
.subsections_via_symbols
