	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ieee80211_tx_prep_agg
_ieee80211_tx_prep_agg:                 ## @ieee80211_tx_prep_agg
	.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
	movl	%r8d, -44(%rbp)                 ## 4-byte Spill
	movq	%rcx, %r12
	movq	%rdx, %r15
	movq	%rsi, %r14
	movq	%rdi, %r13
	movq	_HT_AGG_STATE_OPERATIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%rcx), %rbx
	movq	%rbx, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_IEEE80211_TX_CTL_AMPDU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
LBB0_11:
	xorl	%r13d, %r13d
	cmpq	$0, 8(%r12)
	je	LBB0_13
## %bb.12:
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%r12)
	jmp	LBB0_13
LBB0_2:
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	movq	%r13, %r12
	movq	_HT_AGG_STATE_WANT_START@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%rbx, %rsi
	callq	_test_bit
	xorl	%r13d, %r13d
	testq	%rax, %rax
	jne	LBB0_13
## %bb.3:
	movq	%r12, %rbx
	movq	8(%r12), %rdi
	callq	_spin_lock
	movq	8(%r12), %rdi
	movl	-44(%rbp), %esi                 ## 4-byte Reload
	callq	_rcu_dereference_protected_tid_tx
	testq	%rax, %rax
	je	LBB0_4
## %bb.6:
	movq	%rax, %r12
	movq	_HT_AGG_STATE_OPERATIONAL@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	20(%r12), %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
## %bb.10:
	movq	_IEEE80211_TX_CTL_AMPDU@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	movq	8(%rbx), %rdi
	callq	_spin_unlock
	jmp	LBB0_11
LBB0_4:
	xorl	%r13d, %r13d
	jmp	LBB0_5
LBB0_7:
	movq	16(%rbx), %rax
	movq	%rax, 8(%r15)
	movq	_IEEE80211_TX_INTFL_NEED_TXPROCESSING@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, (%r15)
	addq	$16, %r12
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	___skb_queue_tail
	movq	%r12, %rdi
	callq	_skb_queue_len
	movq	_STA_MAX_TX_BUFFER@GOTPCREL(%rip), %rcx
	movl	$1, %r13d
	cmpq	(%rcx), %rax
	jle	LBB0_5
## %bb.8:
	movq	%r12, %rdi
	callq	___skb_dequeue
	movq	%rax, %r14
	movq	8(%rbx), %rdi
	callq	_spin_unlock
	movl	$1, %r13d
	testq	%r14, %r14
	je	LBB0_13
## %bb.9:
	movq	(%rbx), %rdi
	movq	%r14, %rsi
	callq	_ieee80211_free_txskb
	jmp	LBB0_13
LBB0_5:
	movq	8(%rbx), %rdi
	callq	_spin_unlock
LBB0_13:
	movl	%r13d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_HT_AGG_STATE_OPERATIONAL,4,2   ## @HT_AGG_STATE_OPERATIONAL
	.comm	_IEEE80211_TX_CTL_AMPDU,4,2     ## @IEEE80211_TX_CTL_AMPDU
	.comm	_HT_AGG_STATE_WANT_START,4,2    ## @HT_AGG_STATE_WANT_START
	.comm	_IEEE80211_TX_INTFL_NEED_TXPROCESSING,4,2 ## @IEEE80211_TX_INTFL_NEED_TXPROCESSING
	.comm	_STA_MAX_TX_BUFFER,8,3          ## @STA_MAX_TX_BUFFER
	.comm	_jiffies,4,2                    ## @jiffies
	.no_dead_strip	_ieee80211_tx_prep_agg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ieee80211_tx_prep_agg
_ieee80211_tx_prep_agg:                 ; @ieee80211_tx_prep_agg
	.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
	mov	x23, x4
	mov	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x19, x0
	add	x24, x3, #20
Lloh0:
	adrp	x25, _HT_AGG_STATE_OPERATIONAL@GOTPAGE
Lloh1:
	ldr	x25, [x25, _HT_AGG_STATE_OPERATIONAL@GOTPAGEOFF]
	ldr	w0, [x25]
	mov	x1, x24
	bl	_test_bit
	cbz	x0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x8, _IEEE80211_TX_CTL_AMPDU@GOTPAGE
Lloh3:
	ldr	x8, [x8, _IEEE80211_TX_CTL_AMPDU@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	ldr	x8, [x21, #8]
	cbz	x8, LBB0_4
LBB0_2:
	mov	w20, #0
Lloh5:
	adrp	x8, _jiffies@GOTPAGE
Lloh6:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	str	w8, [x21]
	b	LBB0_5
LBB0_3:
Lloh8:
	adrp	x8, _HT_AGG_STATE_WANT_START@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HT_AGG_STATE_WANT_START@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	mov	x1, x24
	bl	_test_bit
	cbz	x0, LBB0_6
LBB0_4:
	mov	w20, #0
LBB0_5:
	mov	x0, x20
	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
LBB0_6:
	ldr	x0, [x19, #8]
	bl	_spin_lock
	ldr	x0, [x19, #8]
	mov	x1, x23
	bl	_rcu_dereference_protected_tid_tx
	cbz	x0, LBB0_9
; %bb.7:
	mov	x21, x0
	ldr	w0, [x25]
	add	x1, x21, #20
	bl	_test_bit
	cbz	x0, LBB0_10
; %bb.8:
Lloh11:
	adrp	x8, _IEEE80211_TX_CTL_AMPDU@GOTPAGE
Lloh12:
	ldr	x8, [x8, _IEEE80211_TX_CTL_AMPDU@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	ldr	x0, [x19, #8]
	bl	_spin_unlock
	ldr	x8, [x21, #8]
	cbnz	x8, LBB0_2
	b	LBB0_4
LBB0_9:
	mov	w20, #0
	b	LBB0_14
LBB0_10:
	ldr	x8, [x19, #16]
Lloh14:
	adrp	x9, _IEEE80211_TX_INTFL_NEED_TXPROCESSING@GOTPAGE
Lloh15:
	ldr	x9, [x9, _IEEE80211_TX_INTFL_NEED_TXPROCESSING@GOTPAGEOFF]
	str	x8, [x20, #8]
Lloh16:
	ldr	w8, [x9]
	ldr	w9, [x20]
	orr	w8, w9, w8
	str	w8, [x20]
	add	x20, x21, #16
	mov	x0, x20
	mov	x1, x22
	bl	___skb_queue_tail
	mov	x0, x20
	bl	_skb_queue_len
Lloh17:
	adrp	x8, _STA_MAX_TX_BUFFER@GOTPAGE
Lloh18:
	ldr	x8, [x8, _STA_MAX_TX_BUFFER@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	cmp	x0, x8
	b.le	LBB0_13
; %bb.11:
	mov	x0, x20
	bl	___skb_dequeue
	mov	x20, x0
	ldr	x0, [x19, #8]
	bl	_spin_unlock
	cbz	x20, LBB0_15
; %bb.12:
	ldr	x0, [x19]
	mov	x1, x20
	bl	_ieee80211_free_txskb
	mov	w20, #1
	b	LBB0_5
LBB0_13:
	mov	w20, #1
LBB0_14:
	ldr	x0, [x19, #8]
	bl	_spin_unlock
	b	LBB0_5
LBB0_15:
	mov	w20, #1
	b	LBB0_5
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_HT_AGG_STATE_OPERATIONAL,4,2   ; @HT_AGG_STATE_OPERATIONAL
	.comm	_IEEE80211_TX_CTL_AMPDU,4,2     ; @IEEE80211_TX_CTL_AMPDU
	.comm	_HT_AGG_STATE_WANT_START,4,2    ; @HT_AGG_STATE_WANT_START
	.comm	_IEEE80211_TX_INTFL_NEED_TXPROCESSING,4,2 ; @IEEE80211_TX_INTFL_NEED_TXPROCESSING
	.comm	_STA_MAX_TX_BUFFER,8,3          ; @STA_MAX_TX_BUFFER
	.comm	_jiffies,4,2                    ; @jiffies
	.no_dead_strip	_ieee80211_tx_prep_agg
.subsections_via_symbols
