	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_tx_h_multicast_ps_buf
_ieee80211_tx_h_multicast_ps_buf:       ## @ieee80211_tx_h_multicast_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	%r12
	pushq	%rbx
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	movq	(%rdi), %rdi
	callq	_IEEE80211_SKB_CB
	movq	%rax, %r15
	movq	(%rbx), %rax
	movq	16(%rbx), %rdi
	movq	(%rax), %r12
	movq	(%rdi), %rax
	movq	_NL80211_IFTYPE_AP@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.1:
	movq	_NL80211_IFTYPE_AP_VLAN@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_4
## %bb.2:
	callq	_ieee80211_vif_is_mesh
	testq	%rax, %rax
	je	LBB0_15
## %bb.3:
	movq	16(%rbx), %r14
	addq	$16, %r14
	jmp	LBB0_5
LBB0_4:
	movq	24(%rdi), %r14
	testq	%r14, %r14
	je	LBB0_15
LBB0_5:
	movl	(%r12), %edi
	callq	_ieee80211_has_order
	movq	_TX_CONTINUE@GOTPCREL(%rip), %r12
	testq	%rax, %rax
	jne	LBB0_18
## %bb.6:
	leaq	4(%r14), %rdi
	callq	_atomic_read
	testl	%eax, %eax
	je	LBB0_18
## %bb.7:
	movq	_IEEE80211_TX_CTL_SEND_AFTER_DTIM@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 4(%r15)
	movq	8(%rbx), %rdi
	movl	8(%rdi), %eax
	movq	_IEEE80211_HW_QUEUE_CONTROL@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_9
## %bb.8:
	movq	16(%rbx), %rcx
	movl	8(%rcx), %ecx
	movl	%ecx, (%r15)
LBB0_9:
	movq	_IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING@GOTPCREL(%rip), %rcx
	testl	%eax, (%rcx)
	je	LBB0_18
## %bb.10:
	movq	(%rdi), %rax
	movq	_TOTAL_MAX_TX_BUFFER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jl	LBB0_12
## %bb.11:
	callq	_purge_old_ps_buffers
LBB0_12:
	movq	%r14, %rdi
	callq	_skb_queue_len
	movq	_AP_MAX_BC_BUFFER@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_16
## %bb.13:
	movq	8(%rbx), %rax
	incq	(%rax)
	jmp	LBB0_17
LBB0_15:
	movq	_TX_CONTINUE@GOTPCREL(%rip), %r12
	jmp	LBB0_18
LBB0_16:
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_ps_dbg
	movq	%r14, %rdi
	callq	_skb_dequeue
	movl	%eax, %edi
	callq	_dev_kfree_skb
LBB0_17:
	movq	(%rbx), %rsi
	movq	%r14, %rdi
	callq	_skb_queue_tail
	movq	_TX_QUEUED@GOTPCREL(%rip), %r12
LBB0_18:
	movl	(%r12), %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	_NL80211_IFTYPE_AP_VLAN,8,3     ## @NL80211_IFTYPE_AP_VLAN
	.comm	_TX_CONTINUE,4,2                ## @TX_CONTINUE
	.comm	_IEEE80211_TX_CTL_SEND_AFTER_DTIM,4,2 ## @IEEE80211_TX_CTL_SEND_AFTER_DTIM
	.comm	_IEEE80211_HW_QUEUE_CONTROL,4,2 ## @IEEE80211_HW_QUEUE_CONTROL
	.comm	_IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING,4,2 ## @IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING
	.comm	_TOTAL_MAX_TX_BUFFER,8,3        ## @TOTAL_MAX_TX_BUFFER
	.comm	_AP_MAX_BC_BUFFER,8,3           ## @AP_MAX_BC_BUFFER
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BC TX buffer full - dropping the oldest frame\n"

	.comm	_TX_QUEUED,4,2                  ## @TX_QUEUED
	.no_dead_strip	_ieee80211_tx_h_multicast_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_multicast_ps_buf
_ieee80211_tx_h_multicast_ps_buf:       ; @ieee80211_tx_h_multicast_ps_buf
	.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
	mov	x19, x0
	ldr	x0, [x0]
	bl	_IEEE80211_SKB_CB
	mov	x21, x0
	ldr	x8, [x19]
	ldr	x22, [x8]
	ldr	x0, [x19, #16]
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _NL80211_IFTYPE_AP@GOTPAGE
Lloh1:
	ldr	x9, [x9, _NL80211_IFTYPE_AP@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
Lloh3:
	adrp	x10, _NL80211_IFTYPE_AP_VLAN@GOTPAGE
Lloh4:
	ldr	x10, [x10, _NL80211_IFTYPE_AP_VLAN@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_2
; %bb.1:
	ldr	x20, [x0, #24]
	cbnz	x20, LBB0_4
	b	LBB0_5
LBB0_2:
	bl	_ieee80211_vif_is_mesh
	cbz	x0, LBB0_5
; %bb.3:
	ldr	x8, [x19, #16]
	add	x20, x8, #16
LBB0_4:
	ldr	w0, [x22]
	bl	_ieee80211_has_order
	cbz	x0, LBB0_7
LBB0_5:
Lloh6:
	adrp	x8, _TX_CONTINUE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _TX_CONTINUE@GOTPAGEOFF]
LBB0_6:
	ldr	w0, [x8]
	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
LBB0_7:
	add	x0, x20, #4
	bl	_atomic_read
	cbz	w0, LBB0_5
; %bb.8:
Lloh8:
	adrp	x8, _IEEE80211_TX_CTL_SEND_AFTER_DTIM@GOTPAGE
Lloh9:
	ldr	x8, [x8, _IEEE80211_TX_CTL_SEND_AFTER_DTIM@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	ldr	w9, [x21, #4]
	orr	w8, w9, w8
	str	w8, [x21, #4]
	ldr	x0, [x19, #8]
	ldr	w8, [x0, #8]
Lloh11:
	adrp	x9, _IEEE80211_HW_QUEUE_CONTROL@GOTPAGE
Lloh12:
	ldr	x9, [x9, _IEEE80211_HW_QUEUE_CONTROL@GOTPAGEOFF]
Lloh13:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_10
; %bb.9:
	ldr	x9, [x19, #16]
	ldr	w9, [x9, #8]
	str	w9, [x21]
LBB0_10:
Lloh14:
	adrp	x9, _IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING@GOTPAGEOFF]
Lloh16:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_5
; %bb.11:
	ldr	x8, [x0]
Lloh17:
	adrp	x9, _TOTAL_MAX_TX_BUFFER@GOTPAGE
Lloh18:
	ldr	x9, [x9, _TOTAL_MAX_TX_BUFFER@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x9]
	cmp	x8, x9
	b.lt	LBB0_13
; %bb.12:
	bl	_purge_old_ps_buffers
LBB0_13:
	mov	x0, x20
	bl	_skb_queue_len
Lloh20:
	adrp	x8, _AP_MAX_BC_BUFFER@GOTPAGE
Lloh21:
	ldr	x8, [x8, _AP_MAX_BC_BUFFER@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ge	LBB0_15
; %bb.14:
	ldr	x8, [x19, #8]
	ldr	x9, [x8]
	add	x9, x9, #1
	str	x9, [x8]
	b	LBB0_16
LBB0_15:
	ldr	x0, [x19, #16]
Lloh23:
	adrp	x1, l_.str@PAGE
Lloh24:
	add	x1, x1, l_.str@PAGEOFF
	bl	_ps_dbg
	mov	x0, x20
	bl	_skb_dequeue
	bl	_dev_kfree_skb
LBB0_16:
	ldr	x1, [x19]
	mov	x0, x20
	bl	_skb_queue_tail
Lloh25:
	adrp	x8, _TX_QUEUED@GOTPAGE
Lloh26:
	ldr	x8, [x8, _TX_QUEUED@GOTPAGEOFF]
	b	LBB0_6
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGot	Lloh25, Lloh26
	.cfi_endproc
                                        ; -- End function
	.comm	_NL80211_IFTYPE_AP,8,3          ; @NL80211_IFTYPE_AP
	.comm	_NL80211_IFTYPE_AP_VLAN,8,3     ; @NL80211_IFTYPE_AP_VLAN
	.comm	_TX_CONTINUE,4,2                ; @TX_CONTINUE
	.comm	_IEEE80211_TX_CTL_SEND_AFTER_DTIM,4,2 ; @IEEE80211_TX_CTL_SEND_AFTER_DTIM
	.comm	_IEEE80211_HW_QUEUE_CONTROL,4,2 ; @IEEE80211_HW_QUEUE_CONTROL
	.comm	_IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING,4,2 ; @IEEE80211_HW_HOST_BROADCAST_PS_BUFFERING
	.comm	_TOTAL_MAX_TX_BUFFER,8,3        ; @TOTAL_MAX_TX_BUFFER
	.comm	_AP_MAX_BC_BUFFER,8,3           ; @AP_MAX_BC_BUFFER
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BC TX buffer full - dropping the oldest frame\n"

	.comm	_TX_QUEUED,4,2                  ; @TX_QUEUED
	.no_dead_strip	_ieee80211_tx_h_multicast_ps_buf
.subsections_via_symbols
