	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_process_addba_resp   ## -- Begin function ieee80211_process_addba_resp
	.p2align	4, 0x90
_ieee80211_process_addba_resp:          ## @ieee80211_process_addba_resp
	.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	%rdx, %r12
	movq	%rsi, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movl	12(%rdx), %edi
	callq	_le16_to_cpu
	movq	%rax, %r13
	movq	_IEEE80211_ADDBA_PARAM_TID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	andl	%r13d, %ebx
	sarl	$2, %ebx
	movq	_IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK@GOTPCREL(%rip), %rax
	andl	(%rax), %r13d
	movq	%r14, %rdi
	callq	_mutex_lock
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_rcu_dereference_protected_tid_tx
	testq	%rax, %rax
	je	LBB0_15
## %bb.1:
	movq	%rax, %r15
	movq	(%r12), %rax
	cmpq	(%r15), %rax
	jne	LBB0_2
## %bb.4:
	leaq	32(%r15), %rdi
	callq	_del_timer_sync
	movl	16(%r14), %edx
	movl	20(%r14), %edi
	leaq	L_.str.1(%rip), %rsi
	movl	%ebx, %ecx
	callq	_ht_dbg
	movq	_HT_AGG_STATE_WANT_STOP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	28(%r15), %rsi
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_test_bit
	testq	%rax, %rax
	jne	LBB0_6
## %bb.5:
	movq	_HT_AGG_STATE_STOPPING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_7
LBB0_6:
	movl	16(%r14), %edx
	movl	20(%r14), %edi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_3
LBB0_2:
	movl	16(%r14), %edx
	movl	20(%r14), %edi
	leaq	L_.str(%rip), %rsi
LBB0_3:
	movl	%ebx, %ecx
	callq	_ht_dbg
LBB0_15:
	movq	%r14, %rdi
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mutex_unlock                   ## TAILCALL
LBB0_7:
	movl	8(%r12), %edi
	callq	_le16_to_cpu
	movq	_WLAN_STATUS_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_14
## %bb.8:
	cmpl	$64, %r13d
	jb	LBB0_14
## %bb.9:
	movq	_HT_AGG_STATE_RESPONSE_RECEIVED@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rsi
	callq	_test_and_set_bit
	testq	%rax, %rax
	jne	LBB0_15
## %bb.10:
	sarl	$6, %r13d
	movl	%r13d, 8(%r15)
	movq	_HT_AGG_STATE_DRV_READY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	%r12, %rsi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_12
## %bb.11:
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_ieee80211_agg_tx_operational
LBB0_12:
	movq	8(%r14), %rax
	movslq	%ebx, %rcx
	movq	$0, (%rax,%rcx,8)
	movq	16(%r15), %rdi
	testq	%rdi, %rdi
	je	LBB0_15
## %bb.13:
	movq	%r15, %rbx
	addq	$24, %rbx
	callq	_TU_TO_EXP_TIME
	movq	%rbx, %rdi
	movl	%eax, %esi
	callq	_mod_timer
	movq	_jiffies@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 12(%r15)
	jmp	LBB0_15
LBB0_14:
	movq	_AGG_STOP_DECLINED@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	____ieee80211_stop_tx_ba_session
	jmp	LBB0_15
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_ADDBA_PARAM_TID_MASK,4,2 ## @IEEE80211_ADDBA_PARAM_TID_MASK
	.comm	_IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK,4,2 ## @IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"wrong addBA response token, %pM tid %d\n"

L_.str.1:                               ## @.str.1
	.asciz	"switched off addBA timer for %pM tid %d\n"

	.comm	_HT_AGG_STATE_WANT_STOP,4,2     ## @HT_AGG_STATE_WANT_STOP
	.comm	_HT_AGG_STATE_STOPPING,4,2      ## @HT_AGG_STATE_STOPPING
L_.str.2:                               ## @.str.2
	.asciz	"got addBA resp for %pM tid %d but we already gave up\n"

	.comm	_WLAN_STATUS_SUCCESS,8,3        ## @WLAN_STATUS_SUCCESS
	.comm	_HT_AGG_STATE_RESPONSE_RECEIVED,4,2 ## @HT_AGG_STATE_RESPONSE_RECEIVED
	.comm	_HT_AGG_STATE_DRV_READY,4,2     ## @HT_AGG_STATE_DRV_READY
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_AGG_STOP_DECLINED,4,2          ## @AGG_STOP_DECLINED
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_ieee80211_process_addba_resp   ; -- Begin function ieee80211_process_addba_resp
	.p2align	2
_ieee80211_process_addba_resp:          ; @ieee80211_process_addba_resp
	.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	x24, x2
	mov	x19, x1
	mov	x22, x0
	ldr	w0, [x2, #12]
	bl	_le16_to_cpu
	mov	x23, x0
Lloh0:
	adrp	x8, _IEEE80211_ADDBA_PARAM_TID_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IEEE80211_ADDBA_PARAM_TID_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w8, w8, w23
	asr	w20, w8, #2
Lloh3:
	adrp	x8, _IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w26, [x8]
	mov	x0, x19
	bl	_mutex_lock
	mov	x0, x19
	mov	x1, x20
	bl	_rcu_dereference_protected_tid_tx
	cbz	x0, LBB0_7
; %bb.1:
	mov	x21, x0
	ldr	x8, [x24]
	ldr	x9, [x0]
	cmp	x8, x9
	b.ne	LBB0_5
; %bb.2:
	add	x0, x21, #32
	bl	_del_timer_sync
	ldp	w2, w0, [x19, #16]
Lloh6:
	adrp	x1, l_.str.1@PAGE
Lloh7:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x3, x20
	bl	_ht_dbg
Lloh8:
	adrp	x8, _HT_AGG_STATE_WANT_STOP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HT_AGG_STATE_WANT_STOP@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	add	x25, x21, #28
	mov	x1, x25
	bl	_test_bit
	cbnz	x0, LBB0_4
; %bb.3:
Lloh11:
	adrp	x8, _HT_AGG_STATE_STOPPING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _HT_AGG_STATE_STOPPING@GOTPAGEOFF]
Lloh13:
	ldr	w0, [x8]
	mov	x1, x25
	bl	_test_bit
	cbz	x0, LBB0_8
LBB0_4:
	ldp	w2, w0, [x19, #16]
Lloh14:
	adrp	x1, l_.str.2@PAGE
Lloh15:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_6
LBB0_5:
	ldp	w2, w0, [x19, #16]
Lloh16:
	adrp	x1, l_.str@PAGE
Lloh17:
	add	x1, x1, l_.str@PAGEOFF
LBB0_6:
	mov	x3, x20
	bl	_ht_dbg
LBB0_7:
	mov	x0, x19
	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	_mutex_unlock
LBB0_8:
	ldr	w0, [x24, #8]
	bl	_le16_to_cpu
Lloh18:
	adrp	x8, _WLAN_STATUS_SUCCESS@GOTPAGE
Lloh19:
	ldr	x8, [x8, _WLAN_STATUS_SUCCESS@GOTPAGEOFF]
Lloh20:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_15
; %bb.9:
	and	w23, w26, w23
	cmp	w23, #64
	b.lo	LBB0_15
; %bb.10:
Lloh21:
	adrp	x8, _HT_AGG_STATE_RESPONSE_RECEIVED@GOTPAGE
Lloh22:
	ldr	x8, [x8, _HT_AGG_STATE_RESPONSE_RECEIVED@GOTPAGEOFF]
Lloh23:
	ldr	w0, [x8]
	mov	x1, x25
	bl	_test_and_set_bit
	cbnz	x0, LBB0_7
; %bb.11:
	asr	w8, w23, #6
	str	w8, [x21, #8]
Lloh24:
	adrp	x8, _HT_AGG_STATE_DRV_READY@GOTPAGE
Lloh25:
	ldr	x8, [x8, _HT_AGG_STATE_DRV_READY@GOTPAGEOFF]
Lloh26:
	ldr	w0, [x8]
	mov	x1, x25
	bl	_test_bit
	cbz	x0, LBB0_13
; %bb.12:
	mov	x0, x22
	mov	x1, x19
	mov	x2, x20
	bl	_ieee80211_agg_tx_operational
LBB0_13:
	ldr	x8, [x19, #8]
	str	xzr, [x8, w20, sxtw #3]
	ldr	x0, [x21, #16]
	cbz	x0, LBB0_7
; %bb.14:
	add	x20, x21, #24
	bl	_TU_TO_EXP_TIME
	mov	x1, x0
	mov	x0, x20
	bl	_mod_timer
Lloh27:
	adrp	x8, _jiffies@GOTPAGE
Lloh28:
	ldr	x8, [x8, _jiffies@GOTPAGEOFF]
Lloh29:
	ldr	w8, [x8]
	str	w8, [x21, #12]
	b	LBB0_7
LBB0_15:
Lloh30:
	adrp	x8, _AGG_STOP_DECLINED@GOTPAGE
Lloh31:
	ldr	x8, [x8, _AGG_STOP_DECLINED@GOTPAGEOFF]
Lloh32:
	ldr	w2, [x8]
	mov	x0, x19
	mov	x1, x20
	bl	____ieee80211_stop_tx_ba_session
	b	LBB0_7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGotLdr	Lloh27, Lloh28, Lloh29
	.loh AdrpLdrGotLdr	Lloh30, Lloh31, Lloh32
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_ADDBA_PARAM_TID_MASK,4,2 ; @IEEE80211_ADDBA_PARAM_TID_MASK
	.comm	_IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK,4,2 ; @IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"wrong addBA response token, %pM tid %d\n"

l_.str.1:                               ; @.str.1
	.asciz	"switched off addBA timer for %pM tid %d\n"

	.comm	_HT_AGG_STATE_WANT_STOP,4,2     ; @HT_AGG_STATE_WANT_STOP
	.comm	_HT_AGG_STATE_STOPPING,4,2      ; @HT_AGG_STATE_STOPPING
l_.str.2:                               ; @.str.2
	.asciz	"got addBA resp for %pM tid %d but we already gave up\n"

	.comm	_WLAN_STATUS_SUCCESS,8,3        ; @WLAN_STATUS_SUCCESS
	.comm	_HT_AGG_STATE_RESPONSE_RECEIVED,4,2 ; @HT_AGG_STATE_RESPONSE_RECEIVED
	.comm	_HT_AGG_STATE_DRV_READY,4,2     ; @HT_AGG_STATE_DRV_READY
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_AGG_STOP_DECLINED,4,2          ; @AGG_STOP_DECLINED
.subsections_via_symbols
