	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_tx_h_unicast_ps_buf
_ieee80211_tx_h_unicast_ps_buf:         ## @ieee80211_tx_h_unicast_ps_buf
	.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	$24, %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	8(%rdi), %rdi
	movq	24(%rbx), %r15
	callq	_IEEE80211_SKB_CB
	movq	%rax, %r14
	movq	8(%rbx), %rax
	movq	16(%rbx), %r12
	movq	(%rax), %r13
	xorl	%edi, %edi
	testq	%r15, %r15
	sete	%dil
	callq	_unlikely
	movq	_TX_CONTINUE@GOTPCREL(%rip), %rcx
	testq	%rax, %rax
	jne	LBB0_22
## %bb.1:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%r12, -56(%rbp)                 ## 8-byte Spill
	movq	_WLAN_STA_PS_STA@GOTPCREL(%rip), %r13
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_test_sta_flag
	testl	%eax, %eax
	jne	LBB0_4
## %bb.2:
	movq	_WLAN_STA_PS_DRIVER@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	%r15, %rdi
	callq	_test_sta_flag
	testl	%eax, %eax
	je	LBB0_3
LBB0_4:
	movq	_IEEE80211_TX_CTL_NO_PS_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	xorl	%edi, %edi
	movq	%r14, %r12
	testl	%eax, (%r14)
	sete	%dil
LBB0_5:
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_19
## %bb.6:
	movq	8(%rbx), %rdi
	callq	_skb_get_queue_mapping
	movl	%eax, %r13d
	movq	-48(%rbp), %r14                 ## 8-byte Reload
	movl	(%r14), %edi
	callq	_ieee80211_is_mgmt
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:
	movl	(%r14), %edi
	callq	_ieee80211_is_deauth
	testl	%eax, %eax
	jne	LBB0_11
## %bb.8:
	movl	(%r14), %edi
	callq	_ieee80211_is_disassoc
	testl	%eax, %eax
	jne	LBB0_11
## %bb.9:
	movl	(%r14), %edi
	callq	_ieee80211_is_action
	testl	%eax, %eax
	je	LBB0_10
LBB0_11:
	movslq	16(%r15), %rdi
	movl	(%r15), %edx
	movl	4(%r15), %ecx
	leaq	L_.str(%rip), %rsi
	movl	%r13d, %r8d
	xorl	%eax, %eax
	callq	_ps_dbg
	movq	16(%rbx), %rdi
	movq	(%rdi), %rax
	movq	_TOTAL_MAX_TX_BUFFER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_13
## %bb.12:
	callq	_purge_old_ps_buffers
LBB0_13:
	movl	%r13d, %r14d
	movslq	%r13d, %r13
	shlq	$2, %r13
	movq	8(%r15), %rdi
	addq	%r13, %rdi
	callq	_skb_queue_len
	movq	_STA_MAX_TX_BUFFER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_14
## %bb.15:
	movq	16(%rbx), %rax
	incq	(%rax)
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	jmp	LBB0_16
LBB0_19:
	movl	(%r13), %esi
	movq	%r15, %rdi
	callq	_test_sta_flag
	movl	%eax, %edi
	callq	_unlikely
	testq	%rax, %rax
	je	LBB0_21
## %bb.20:
	movq	(%rbx), %rdi
	movl	(%r15), %edx
	leaq	L_.str.2(%rip), %rsi
	xorl	%eax, %eax
	callq	_ps_dbg
LBB0_21:
	movq	_TX_CONTINUE@GOTPCREL(%rip), %rcx
	jmp	LBB0_22
LBB0_14:
	movq	8(%r15), %rdi
	addq	%r13, %rdi
	callq	_skb_dequeue
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	(%rbx), %rdi
	movl	(%r15), %edx
	leaq	L_.str.1(%rip), %rsi
	movl	%r14d, %ecx
	xorl	%eax, %eax
	callq	_ps_dbg
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	leaq	12(%r14), %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ieee80211_free_txskb
LBB0_16:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 16(%r12)
	movq	(%rbx), %rax
	movq	%rax, 8(%r12)
	movq	_IEEE80211_TX_INTFL_NEED_TXPROCESSING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	addq	8(%r15), %r13
	movq	8(%rbx), %rsi
	movq	%r13, %rdi
	callq	_skb_queue_tail
	addq	$8, %r14
	movq	%r14, %rdi
	callq	_timer_pending
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:
	movq	_STA_INFO_CLEANUP_INTERVAL@GOTPCREL(%rip), %rax
	movq	(%rax), %rdi
	movq	_jiffies@GOTPCREL(%rip), %rax
	addq	(%rax), %rdi
	callq	_round_jiffies
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mod_timer
LBB0_18:
	movq	%r15, %rdi
	callq	_sta_info_recalc_tim
	movq	_TX_QUEUED@GOTPCREL(%rip), %rcx
LBB0_22:
	movl	(%rcx), %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	xorl	%edi, %edi
	movq	%r14, %r12
	jmp	LBB0_5
LBB0_10:
	movq	_IEEE80211_TX_CTL_NO_PS_BUFFER@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r12)
	jmp	LBB0_21
	.cfi_endproc
                                        ## -- End function
	.comm	_TX_CONTINUE,4,2                ## @TX_CONTINUE
	.comm	_WLAN_STA_PS_STA,4,2            ## @WLAN_STA_PS_STA
	.comm	_WLAN_STA_PS_DRIVER,4,2         ## @WLAN_STA_PS_DRIVER
	.comm	_IEEE80211_TX_CTL_NO_PS_BUFFER,4,2 ## @IEEE80211_TX_CTL_NO_PS_BUFFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"STA %pM aid %d: PS buffer for AC %d\n"

	.comm	_TOTAL_MAX_TX_BUFFER,8,3        ## @TOTAL_MAX_TX_BUFFER
	.comm	_STA_MAX_TX_BUFFER,8,3          ## @STA_MAX_TX_BUFFER
L_.str.1:                               ## @.str.1
	.asciz	"STA %pM TX buffer for AC %d full - dropping oldest frame\n"

	.comm	_jiffies,8,3                    ## @jiffies
	.comm	_IEEE80211_TX_INTFL_NEED_TXPROCESSING,4,2 ## @IEEE80211_TX_INTFL_NEED_TXPROCESSING
	.comm	_STA_INFO_CLEANUP_INTERVAL,8,3  ## @STA_INFO_CLEANUP_INTERVAL
	.comm	_TX_QUEUED,4,2                  ## @TX_QUEUED
L_.str.2:                               ## @.str.2
	.asciz	"STA %pM in PS mode, but polling/in SP -> send frame\n"

	.no_dead_strip	_ieee80211_tx_h_unicast_ps_buf
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_tx_h_unicast_ps_buf
_ieee80211_tx_h_unicast_ps_buf:         ; @ieee80211_tx_h_unicast_ps_buf
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	mov	x20, x0
	ldr	x19, [x0, #24]
	ldr	x0, [x0, #8]
	bl	_IEEE80211_SKB_CB
	mov	x21, x0
	ldp	x8, x24, [x20, #8]
	ldr	x23, [x8]
	cmp	x19, #0
	cset	w0, eq
	bl	_unlikely
	cbz	x0, LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _TX_CONTINUE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _TX_CONTINUE@GOTPAGEOFF]
	b	LBB0_20
LBB0_2:
Lloh2:
	adrp	x22, _WLAN_STA_PS_STA@GOTPAGE
Lloh3:
	ldr	x22, [x22, _WLAN_STA_PS_STA@GOTPAGEOFF]
	ldr	w1, [x22]
	mov	x0, x19
	bl	_test_sta_flag
	cbnz	w0, LBB0_4
; %bb.3:
Lloh4:
	adrp	x8, _WLAN_STA_PS_DRIVER@GOTPAGE
Lloh5:
	ldr	x8, [x8, _WLAN_STA_PS_DRIVER@GOTPAGEOFF]
Lloh6:
	ldr	w1, [x8]
	mov	x0, x19
	bl	_test_sta_flag
	cbz	w0, LBB0_5
LBB0_4:
	ldr	w8, [x21]
Lloh7:
	adrp	x9, _IEEE80211_TX_CTL_NO_PS_BUFFER@GOTPAGE
Lloh8:
	ldr	x9, [x9, _IEEE80211_TX_CTL_NO_PS_BUFFER@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	tst	w9, w8
	cset	w0, eq
LBB0_5:
	bl	_unlikely
	cbz	x0, LBB0_14
; %bb.6:
	ldr	x0, [x20, #8]
	bl	_skb_get_queue_mapping
	mov	x22, x0
	ldr	w0, [x23]
	bl	_ieee80211_is_mgmt
	cbz	x0, LBB0_10
; %bb.7:
	ldr	w0, [x23]
	bl	_ieee80211_is_deauth
	cbnz	w0, LBB0_10
; %bb.8:
	ldr	w0, [x23]
	bl	_ieee80211_is_disassoc
	cbnz	w0, LBB0_10
; %bb.9:
	ldr	w0, [x23]
	bl	_ieee80211_is_action
	cbz	w0, LBB0_21
LBB0_10:
	ldrsw	x0, [x19, #16]
	ldp	w2, w8, [x19]
	stp	x8, x22, [sp]
Lloh10:
	adrp	x1, l_.str@PAGE
Lloh11:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ps_dbg
	ldr	x0, [x20, #16]
	ldr	x8, [x0]
Lloh12:
	adrp	x9, _TOTAL_MAX_TX_BUFFER@GOTPAGE
Lloh13:
	ldr	x9, [x9, _TOTAL_MAX_TX_BUFFER@GOTPAGEOFF]
Lloh14:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_12
; %bb.11:
	bl	_purge_old_ps_buffers
LBB0_12:
	ldr	x8, [x19, #8]
	mov	x9, x22
	sxtw	x25, w9
	add	x0, x8, w22, sxtw #2
	bl	_skb_queue_len
Lloh15:
	adrp	x8, _STA_MAX_TX_BUFFER@GOTPAGE
Lloh16:
	ldr	x8, [x8, _STA_MAX_TX_BUFFER@GOTPAGEOFF]
Lloh17:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_16
; %bb.13:
	ldr	x8, [x20, #16]
	ldr	x9, [x8]
	add	x9, x9, #1
	str	x9, [x8]
	b	LBB0_17
LBB0_14:
	ldr	w1, [x22]
	mov	x0, x19
	bl	_test_sta_flag
	bl	_unlikely
	cbz	x0, LBB0_1
; %bb.15:
	ldr	x0, [x20]
	ldr	w2, [x19]
Lloh18:
	adrp	x1, l_.str.2@PAGE
Lloh19:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_ps_dbg
	b	LBB0_1
LBB0_16:
	ldr	x8, [x19, #8]
	add	x0, x8, x25, lsl #2
	bl	_skb_dequeue
	mov	x23, x0
	ldr	x0, [x20]
	ldr	w2, [x19]
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	str	x22, [sp]
Lloh20:
	adrp	x1, l_.str.1@PAGE
Lloh21:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_ps_dbg
	add	x0, x24, #12
	mov	x1, x23
	bl	_ieee80211_free_txskb
LBB0_17:
Lloh22:
	adrp	x22, _jiffies@GOTPAGE
Lloh23:
	ldr	x22, [x22, _jiffies@GOTPAGEOFF]
	ldr	x8, [x22]
	ldp	x9, x1, [x20]
	stp	x9, x8, [x21, #8]
Lloh24:
	adrp	x8, _IEEE80211_TX_INTFL_NEED_TXPROCESSING@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IEEE80211_TX_INTFL_NEED_TXPROCESSING@GOTPAGEOFF]
Lloh26:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	ldr	x8, [x19, #8]
	add	x0, x8, x25, lsl #2
	bl	_skb_queue_tail
	add	x20, x24, #8
	mov	x0, x20
	bl	_timer_pending
	cbnz	w0, LBB0_19
; %bb.18:
	ldr	x8, [x22]
Lloh27:
	adrp	x9, _STA_INFO_CLEANUP_INTERVAL@GOTPAGE
Lloh28:
	ldr	x9, [x9, _STA_INFO_CLEANUP_INTERVAL@GOTPAGEOFF]
Lloh29:
	ldr	x9, [x9]
	add	x0, x9, x8
	bl	_round_jiffies
	mov	x1, x0
	mov	x0, x20
	bl	_mod_timer
LBB0_19:
	mov	x0, x19
	bl	_sta_info_recalc_tim
Lloh30:
	adrp	x8, _TX_QUEUED@GOTPAGE
Lloh31:
	ldr	x8, [x8, _TX_QUEUED@GOTPAGEOFF]
LBB0_20:
	ldr	w0, [x8]
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_21:
Lloh32:
	adrp	x8, _IEEE80211_TX_CTL_NO_PS_BUFFER@GOTPAGE
Lloh33:
	ldr	x8, [x8, _IEEE80211_TX_CTL_NO_PS_BUFFER@GOTPAGEOFF]
Lloh34:
	ldr	w8, [x8]
	ldr	w9, [x21]
	orr	w8, w9, w8
	str	w8, [x21]
	b	LBB0_1
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGot	Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.cfi_endproc
                                        ; -- End function
	.comm	_TX_CONTINUE,4,2                ; @TX_CONTINUE
	.comm	_WLAN_STA_PS_STA,4,2            ; @WLAN_STA_PS_STA
	.comm	_WLAN_STA_PS_DRIVER,4,2         ; @WLAN_STA_PS_DRIVER
	.comm	_IEEE80211_TX_CTL_NO_PS_BUFFER,4,2 ; @IEEE80211_TX_CTL_NO_PS_BUFFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"STA %pM aid %d: PS buffer for AC %d\n"

	.comm	_TOTAL_MAX_TX_BUFFER,8,3        ; @TOTAL_MAX_TX_BUFFER
	.comm	_STA_MAX_TX_BUFFER,8,3          ; @STA_MAX_TX_BUFFER
l_.str.1:                               ; @.str.1
	.asciz	"STA %pM TX buffer for AC %d full - dropping oldest frame\n"

	.comm	_jiffies,8,3                    ; @jiffies
	.comm	_IEEE80211_TX_INTFL_NEED_TXPROCESSING,4,2 ; @IEEE80211_TX_INTFL_NEED_TXPROCESSING
	.comm	_STA_INFO_CLEANUP_INTERVAL,8,3  ; @STA_INFO_CLEANUP_INTERVAL
	.comm	_TX_QUEUED,4,2                  ; @TX_QUEUED
l_.str.2:                               ; @.str.2
	.asciz	"STA %pM in PS mode, but polling/in SP -> send frame\n"

	.no_dead_strip	_ieee80211_tx_h_unicast_ps_buf
.subsections_via_symbols
