	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function cw1200_notify_buffered_tx
_cw1200_notify_buffered_tx:             ## @cw1200_notify_buffered_tx
	.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
	testl	%edx, %edx
	je	LBB0_5
## %bb.1:
	movl	%ecx, %r12d
	movq	_CW1200_MAX_TID@GOTPCREL(%rip), %rax
	cmpl	%ecx, (%rax)
	jle	LBB0_5
## %bb.2:
	movq	%rdi, %r14
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	movq	8(%rdi), %rax
	movslq	%edx, %rcx
	movq	-8(%rax,%rcx,8), %r13
	leaq	4(%rdi), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	movslq	%r12d, %r15
	xorl	%edi, %edi
	cmpq	$0, (%r13,%r15,8)
	sete	%dil
	callq	_WARN_ON
	testl	%eax, %eax
	je	LBB0_3
## %bb.6:
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	movq	_CW1200_MAX_TID@GOTPCREL(%rip), %rax
	cmpl	%r12d, (%rax)
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	jg	LBB0_7
	jmp	LBB0_5
LBB0_3:
	decq	(%r13,%r15,8)
	setne	%r15b
	movq	%rbx, %rdi
	callq	_spin_unlock_bh
	testb	%r15b, %r15b
	movq	-48(%rbp), %rax                 ## 8-byte Reload
	movq	_CW1200_MAX_TID@GOTPCREL(%rip), %rcx
	jne	LBB0_5
## %bb.4:
	cmpl	%r12d, (%rcx)
	jle	LBB0_5
LBB0_7:
	movq	(%rax), %rbx
	xorl	%eax, %eax
	callq	_rcu_read_lock
	movl	(%r14), %edi
	movl	(%rbx), %esi
	callq	_ieee80211_find_sta
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:
	movq	%rax, %rdi
	movl	%r12d, %esi
	xorl	%edx, %edx
	callq	_ieee80211_sta_set_buffered
LBB0_9:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_rcu_read_unlock                ## TAILCALL
LBB0_5:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_CW1200_MAX_TID,4,2             ## @CW1200_MAX_TID
	.no_dead_strip	_cw1200_notify_buffered_tx
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function cw1200_notify_buffered_tx
_cw1200_notify_buffered_tx:             ; @cw1200_notify_buffered_tx
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	cbz	w2, LBB0_8
; %bb.1:
	mov	x19, x3
Lloh0:
	adrp	x23, _CW1200_MAX_TID@GOTPAGE
Lloh1:
	ldr	x23, [x23, _CW1200_MAX_TID@GOTPAGEOFF]
	ldr	w8, [x23]
	cmp	w8, w3
	b.le	LBB0_8
; %bb.2:
	mov	x21, x1
	mov	x20, x0
	ldr	x8, [x0, #8]
	add	x8, x8, w2, sxtw #3
	ldur	x24, [x8, #-8]
	add	x22, x0, #4
	mov	x0, x22
	bl	_spin_lock_bh
	ldr	x8, [x24, w19, sxtw #3]
	cmp	x8, #0
	cset	w0, eq
	bl	_WARN_ON
	cbz	w0, LBB0_7
; %bb.3:
	mov	x0, x22
	bl	_spin_unlock_bh
	ldr	w8, [x23]
	cmp	w8, w19
	b.le	LBB0_8
LBB0_4:
	ldr	x21, [x21]
	bl	_rcu_read_lock
	ldr	w0, [x20]
	ldr	w1, [x21]
	bl	_ieee80211_find_sta
	cbz	x0, LBB0_6
; %bb.5:
	mov	x1, x19
	mov	w2, #0
	bl	_ieee80211_sta_set_buffered
LBB0_6:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_rcu_read_unlock
LBB0_7:
	sxtw	x8, w19
	lsl	x8, x8, #3
	ldr	x9, [x24, x8]
	sub	x25, x9, #1
	str	x25, [x24, x8]
	mov	x0, x22
	bl	_spin_unlock_bh
	ldr	w8, [x23]
	cmp	x25, #0
	ccmp	w8, w19, #4, eq
	b.gt	LBB0_4
LBB0_8:
	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
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh0, Lloh1
	.cfi_endproc
                                        ; -- End function
	.comm	_CW1200_MAX_TID,4,2             ; @CW1200_MAX_TID
	.no_dead_strip	_cw1200_notify_buffered_tx
.subsections_via_symbols
