	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_sta_ps_deliver_wakeup ## -- Begin function ieee80211_sta_ps_deliver_wakeup
	.p2align	4, 0x90
_ieee80211_sta_ps_deliver_wakeup:       ## @ieee80211_sta_ps_deliver_wakeup
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	32(%rdi), %r14
	movq	(%r14), %r15
	movq	_WLAN_STA_SP@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_clear_sta_flag
	movq	_IEEE80211_NUM_TIDS@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_BITS_TO_LONGS
	xorl	%edi, %edi
	cmpl	$2, %eax
	setge	%dil
	callq	_BUILD_BUG_ON
	movq	$0, 24(%rbx)
	movq	_IEEE80211_HW_AP_LINK_PS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, 4(%r15)
	jne	LBB0_2
## %bb.1:
	movq	_STA_NOTIFY_AWAKE@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r15, %rdi
	movq	%r14, %rsi
	movq	%rbx, %rcx
	callq	_drv_sta_notify
LBB0_2:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	movq	%rbx, %r15
	movq	%r14, -80(%rbp)                 ## 8-byte Spill
	leaq	-48(%rbp), %rdi
	callq	_skb_queue_head_init
	movq	_IEEE80211_NUM_ACS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	jle	LBB0_3
## %bb.4:
	xorl	%r12d, %r12d
	xorl	%r14d, %r14d
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	.p2align	4, 0x90
LBB0_5:                                 ## =>This Inner Loop Header: Depth=1
	leaq	-48(%rbp), %rdi
	callq	_skb_queue_len
	movl	%eax, -56(%rbp)                 ## 4-byte Spill
	movq	16(%r15), %rdi
	addq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	16(%r15), %rdi
	addq	%r12, %rdi
	leaq	-48(%rbp), %rsi
	callq	_skb_queue_splice_tail_init
	movq	16(%r15), %rdi
	addq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	leaq	-48(%rbp), %rdi
	callq	_skb_queue_len
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	subl	-56(%rbp), %ebx                 ## 4-byte Folded Reload
	addl	%eax, %ebx
	movq	8(%r15), %rdi
	addq	%r12, %rdi
	callq	_spin_lock_irqsave
	movq	8(%r15), %rdi
	addq	%r12, %rdi
	leaq	-48(%rbp), %rsi
	callq	_skb_queue_splice_tail_init
	movq	8(%r15), %rdi
	addq	%r12, %rdi
	callq	_spin_unlock_irqrestore
	leaq	-48(%rbp), %rdi
	callq	_skb_queue_len
	movq	_IEEE80211_NUM_ACS@GOTPCREL(%rip), %rcx
	subl	-52(%rbp), %r13d                ## 4-byte Folded Reload
	addl	%eax, %r13d
	incq	%r14
	movslq	(%rcx), %rax
	addq	$4, %r12
	cmpq	%rax, %r14
	jl	LBB0_5
	jmp	LBB0_6
LBB0_3:
	xorl	%r13d, %r13d
	xorl	%ebx, %ebx
LBB0_6:
	movq	_clear_sta_ps_flags@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-48(%rbp), %rsi
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdi
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	movq	%r15, %rcx
	callq	_ieee80211_add_pending_skbs_fn
	subl	%r13d, (%r14)
	movq	%r15, %rdi
	callq	_sta_info_recalc_tim
	movl	(%r15), %ecx
	movl	4(%r15), %edx
	leaq	L_.str(%rip), %rsi
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %r8d
	movl	%r13d, %r9d
	callq	_ps_dbg
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WLAN_STA_SP,4,2                ## @WLAN_STA_SP
	.comm	_IEEE80211_NUM_TIDS,4,2         ## @IEEE80211_NUM_TIDS
	.comm	_IEEE80211_HW_AP_LINK_PS,4,2    ## @IEEE80211_HW_AP_LINK_PS
	.comm	_STA_NOTIFY_AWAKE,4,2           ## @STA_NOTIFY_AWAKE
	.comm	_IEEE80211_NUM_ACS,4,2          ## @IEEE80211_NUM_ACS
	.comm	_clear_sta_ps_flags,4,2         ## @clear_sta_ps_flags
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"STA %pM aid %d sending %d filtered/%d PS frames since STA not sleeping anymore\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_sta_ps_deliver_wakeup ; -- Begin function ieee80211_sta_ps_deliver_wakeup
	.p2align	2
_ieee80211_sta_ps_deliver_wakeup:       ; @ieee80211_sta_ps_deliver_wakeup
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x20, x0
	ldr	x19, [x0, #32]
	ldr	x21, [x19]
Lloh0:
	adrp	x8, _WLAN_STA_SP@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WLAN_STA_SP@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	bl	_clear_sta_flag
Lloh3:
	adrp	x8, _IEEE80211_NUM_TIDS@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_NUM_TIDS@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_BITS_TO_LONGS
	cmp	w0, #1
	cset	w0, gt
	bl	_BUILD_BUG_ON
	str	xzr, [x20, #24]
	ldr	w8, [x21, #4]
Lloh6:
	adrp	x9, _IEEE80211_HW_AP_LINK_PS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _IEEE80211_HW_AP_LINK_PS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	tst	w9, w8
	b.ne	LBB0_2
; %bb.1:
Lloh9:
	adrp	x8, _STA_NOTIFY_AWAKE@GOTPAGE
Lloh10:
	ldr	x8, [x8, _STA_NOTIFY_AWAKE@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	mov	x0, x21
	mov	x1, x19
	mov	x3, x20
	bl	_drv_sta_notify
LBB0_2:
	add	x0, sp, #8
	bl	_skb_queue_head_init
Lloh12:
	adrp	x26, _IEEE80211_NUM_ACS@GOTPAGE
Lloh13:
	ldr	x26, [x26, _IEEE80211_NUM_ACS@GOTPAGEOFF]
	ldr	w8, [x26]
	cmp	w8, #1
	b.lt	LBB0_5
; %bb.3:
	mov	x27, #0
	mov	x28, #0
	mov	w23, #0
	mov	w22, #0
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	add	x0, sp, #8
	bl	_skb_queue_len
	mov	x24, x0
	ldr	x8, [x20, #16]
	add	x0, x8, x27
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #16]
	add	x0, x8, x27
	add	x1, sp, #8
	bl	_skb_queue_splice_tail_init
	ldr	x8, [x20, #16]
	add	x0, x8, x27
	bl	_spin_unlock_irqrestore
	add	x0, sp, #8
	bl	_skb_queue_len
	mov	x25, x0
	sub	w8, w23, w24
	add	w23, w8, w0
	ldr	x8, [x20, #8]
	add	x0, x8, x27
	bl	_spin_lock_irqsave
	ldr	x8, [x20, #8]
	add	x0, x8, x27
	add	x1, sp, #8
	bl	_skb_queue_splice_tail_init
	ldr	x8, [x20, #8]
	add	x0, x8, x27
	bl	_spin_unlock_irqrestore
	add	x0, sp, #8
	bl	_skb_queue_len
	sub	w8, w22, w25
	add	w22, w8, w0
	add	x28, x28, #1
	ldrsw	x8, [x26]
	add	x27, x27, #4
	cmp	x28, x8
	b.lt	LBB0_4
	b	LBB0_6
LBB0_5:
	mov	w22, #0
	mov	w23, #0
LBB0_6:
Lloh14:
	adrp	x8, _clear_sta_ps_flags@GOTPAGE
Lloh15:
	ldr	x8, [x8, _clear_sta_ps_flags@GOTPAGEOFF]
Lloh16:
	ldr	w2, [x8]
	add	x1, sp, #8
	mov	x0, x21
	mov	x3, x20
	bl	_ieee80211_add_pending_skbs_fn
	ldr	w8, [x21]
	sub	w8, w8, w22
	str	w8, [x21]
	mov	x0, x20
	bl	_sta_info_recalc_tim
	ldp	w3, w2, [x20]
Lloh17:
	adrp	x1, l_.str@PAGE
Lloh18:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	mov	x4, x23
	mov	x5, x22
	bl	_ps_dbg
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGot	Lloh12, Lloh13
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_WLAN_STA_SP,4,2                ; @WLAN_STA_SP
	.comm	_IEEE80211_NUM_TIDS,4,2         ; @IEEE80211_NUM_TIDS
	.comm	_IEEE80211_HW_AP_LINK_PS,4,2    ; @IEEE80211_HW_AP_LINK_PS
	.comm	_STA_NOTIFY_AWAKE,4,2           ; @STA_NOTIFY_AWAKE
	.comm	_IEEE80211_NUM_ACS,4,2          ; @IEEE80211_NUM_ACS
	.comm	_clear_sta_ps_flags,4,2         ; @clear_sta_ps_flags
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"STA %pM aid %d sending %d filtered/%d PS frames since STA not sleeping anymore\n"

.subsections_via_symbols
