	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_ret_11n_addba_req      ## -- Begin function mwifiex_ret_11n_addba_req
	.p2align	4, 0x90
_mwifiex_ret_11n_addba_req:             ## @mwifiex_ret_11n_addba_req
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movl	20(%rsi), %edi
	callq	_le16_to_cpu
	movl	%eax, %r13d
	movl	16(%rbx), %edi
	callq	_le16_to_cpu
	movq	_SSN_MASK@GOTPCREL(%rip), %rcx
	andl	(%rcx), %eax
	movl	%eax, %edi
	callq	_cpu_to_le16
	movl	%eax, 16(%rbx)
	movq	_IEEE80211_ADDBA_PARAM_TID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	andl	%r13d, %r15d
	movq	_BLOCKACKPARAM_TID_POS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r15d
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_mwifiex_wmm_downgrade_tid
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	movl	%eax, %esi
	callq	_mwifiex_wmm_get_ralist_node
	movq	%rax, %r12
	movl	12(%rbx), %edi
	callq	_le16_to_cpu
	movq	_BA_RESULT_SUCCESS@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	jne	LBB0_1
## %bb.5:
	movl	8(%rbx), %edx
	movq	%r14, %rdi
	movl	%r15d, %esi
	callq	_mwifiex_get_ba_tbl
	movl	(%r14), %edi
	testq	%rax, %rax
	je	LBB0_12
## %bb.6:
	movq	%rax, %rbx
	movq	_EVENT@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str(%rip), %rdx
	callq	_mwifiex_dbg
	movq	_BA_SETUP_COMPLETE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%rbx)
	movq	_BLOCKACKPARAM_AMSDU_SUPP_MASK@GOTPCREL(%rip), %rcx
	testl	%r13d, (%rcx)
	je	LBB0_9
## %bb.7:
	cmpq	$0, 16(%r14)
	je	LBB0_9
## %bb.8:
	movq	8(%r14), %rcx
	movslq	%r15d, %rdx
	shlq	$4, %rdx
	movq	(%rcx,%rdx), %rdx
	movq	_BA_STREAM_NOT_ALLOWED@GOTPCREL(%rip), %rsi
	movl	$1, %ecx
	cmpq	(%rsi), %rdx
	jne	LBB0_10
LBB0_9:
	xorl	%ecx, %ecx
LBB0_10:
	movl	%ecx, (%rbx)
	testq	%r12, %r12
	je	LBB0_13
## %bb.11:
	movl	%ecx, (%r12)
	movq	%rax, 8(%r12)
	jmp	LBB0_13
LBB0_1:
	testq	%r12, %r12
	je	LBB0_3
## %bb.2:
	movq	_BA_SETUP_NONE@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, 8(%r12)
	movl	$0, (%r12)
LBB0_3:
	movl	8(%rbx), %edx
	movq	_TYPE_DELBA_SENT@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%r14, %rdi
	movl	%r15d, %esi
	movl	$1, %r8d
	callq	_mwifiex_del_ba_tbl
	movq	(%rbx), %rax
	movq	_BA_RESULT_TIMEOUT@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_13
## %bb.4:
	movq	_BA_STREAM_NOT_ALLOWED@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	8(%r14), %rcx
	movslq	%r15d, %rdx
	shlq	$4, %rdx
	movq	%rax, 8(%rcx,%rdx)
	jmp	LBB0_13
LBB0_12:
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	L_.str.1(%rip), %rdx
	callq	_mwifiex_dbg
LBB0_13:
	xorl	%eax, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_SSN_MASK,4,2                   ## @SSN_MASK
	.comm	_IEEE80211_ADDBA_PARAM_TID_MASK,4,2 ## @IEEE80211_ADDBA_PARAM_TID_MASK
	.comm	_BLOCKACKPARAM_TID_POS,4,2      ## @BLOCKACKPARAM_TID_POS
	.comm	_BA_RESULT_SUCCESS,4,2          ## @BA_RESULT_SUCCESS
	.comm	_BA_SETUP_NONE,8,3              ## @BA_SETUP_NONE
	.comm	_TYPE_DELBA_SENT,4,2            ## @TYPE_DELBA_SENT
	.comm	_BA_RESULT_TIMEOUT,8,3          ## @BA_RESULT_TIMEOUT
	.comm	_BA_STREAM_NOT_ALLOWED,8,3      ## @BA_STREAM_NOT_ALLOWED
	.comm	_EVENT,4,2                      ## @EVENT
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"info: BA stream complete\n"

	.comm	_BA_SETUP_COMPLETE,8,3          ## @BA_SETUP_COMPLETE
	.comm	_BLOCKACKPARAM_AMSDU_SUPP_MASK,4,2 ## @BLOCKACKPARAM_AMSDU_SUPP_MASK
	.comm	_ERROR,4,2                      ## @ERROR
L_.str.1:                               ## @.str.1
	.asciz	"BA stream not created\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_ret_11n_addba_req      ; -- Begin function mwifiex_ret_11n_addba_req
	.p2align	2
_mwifiex_ret_11n_addba_req:             ; @mwifiex_ret_11n_addba_req
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	mov	x22, x1
	mov	x19, x0
	ldr	w0, [x1, #20]
	bl	_le16_to_cpu
	mov	x23, x0
	ldr	w0, [x22, #16]
	bl	_le16_to_cpu
Lloh0:
	adrp	x8, _SSN_MASK@GOTPAGE
Lloh1:
	ldr	x8, [x8, _SSN_MASK@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	and	w0, w8, w0
	bl	_cpu_to_le16
	str	w0, [x22, #16]
Lloh3:
	adrp	x8, _IEEE80211_ADDBA_PARAM_TID_MASK@GOTPAGE
Lloh4:
	ldr	x8, [x8, _IEEE80211_ADDBA_PARAM_TID_MASK@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	and	w8, w8, w23
Lloh6:
	adrp	x9, _BLOCKACKPARAM_TID_POS@GOTPAGE
Lloh7:
	ldr	x9, [x9, _BLOCKACKPARAM_TID_POS@GOTPAGEOFF]
Lloh8:
	ldr	w9, [x9]
	asr	w20, w8, w9
	mov	x0, x19
	mov	x1, x20
	bl	_mwifiex_wmm_downgrade_tid
	mov	x1, x0
	ldr	w2, [x22, #8]
	mov	x0, x19
	bl	_mwifiex_wmm_get_ralist_node
	mov	x21, x0
	ldr	w0, [x22, #12]
	bl	_le16_to_cpu
Lloh9:
	adrp	x8, _BA_RESULT_SUCCESS@GOTPAGE
Lloh10:
	ldr	x8, [x8, _BA_RESULT_SUCCESS@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_7
; %bb.1:
	ldr	w2, [x22, #8]
	mov	x0, x19
	mov	x1, x20
	bl	_mwifiex_get_ba_tbl
	mov	x22, x0
	ldr	w0, [x19]
	cbz	x22, LBB0_11
; %bb.2:
Lloh12:
	adrp	x8, _EVENT@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EVENT@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
Lloh15:
	adrp	x2, l_.str@PAGE
Lloh16:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
Lloh17:
	adrp	x8, _BA_SETUP_COMPLETE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _BA_SETUP_COMPLETE@GOTPAGEOFF]
Lloh19:
	ldr	x8, [x8]
	str	x8, [x22, #8]
Lloh20:
	adrp	x9, _BLOCKACKPARAM_AMSDU_SUPP_MASK@GOTPAGE
Lloh21:
	ldr	x9, [x9, _BLOCKACKPARAM_AMSDU_SUPP_MASK@GOTPAGEOFF]
Lloh22:
	ldr	w9, [x9]
	tst	w9, w23
	b.eq	LBB0_5
; %bb.3:
	ldr	x9, [x19, #16]
	cbz	x9, LBB0_5
; %bb.4:
	ldr	x9, [x19, #8]
	sbfiz	x10, x20, #4, #32
	ldr	x9, [x9, x10]
Lloh23:
	adrp	x10, _BA_STREAM_NOT_ALLOWED@GOTPAGE
Lloh24:
	ldr	x10, [x10, _BA_STREAM_NOT_ALLOWED@GOTPAGEOFF]
Lloh25:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_13
LBB0_5:
	mov	w9, #0
	str	w9, [x22]
	cbz	x21, LBB0_12
LBB0_6:
	str	w9, [x21]
	str	x8, [x21, #8]
	b	LBB0_12
LBB0_7:
	cbz	x21, LBB0_9
; %bb.8:
Lloh26:
	adrp	x8, _BA_SETUP_NONE@GOTPAGE
Lloh27:
	ldr	x8, [x8, _BA_SETUP_NONE@GOTPAGEOFF]
Lloh28:
	ldr	x8, [x8]
	str	x8, [x21, #8]
	str	wzr, [x21]
LBB0_9:
	ldr	w2, [x22, #8]
Lloh29:
	adrp	x8, _TYPE_DELBA_SENT@GOTPAGE
Lloh30:
	ldr	x8, [x8, _TYPE_DELBA_SENT@GOTPAGEOFF]
Lloh31:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x1, x20
	mov	w4, #1
	bl	_mwifiex_del_ba_tbl
	ldr	x8, [x22]
Lloh32:
	adrp	x9, _BA_RESULT_TIMEOUT@GOTPAGE
Lloh33:
	ldr	x9, [x9, _BA_RESULT_TIMEOUT@GOTPAGEOFF]
Lloh34:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_12
; %bb.10:
Lloh35:
	adrp	x8, _BA_STREAM_NOT_ALLOWED@GOTPAGE
Lloh36:
	ldr	x8, [x8, _BA_STREAM_NOT_ALLOWED@GOTPAGEOFF]
Lloh37:
	ldr	x8, [x8]
	ldr	x9, [x19, #8]
	add	x9, x9, w20, sxtw #4
	str	x8, [x9, #8]
	b	LBB0_12
LBB0_11:
Lloh38:
	adrp	x8, _ERROR@GOTPAGE
Lloh39:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh40:
	ldr	w1, [x8]
Lloh41:
	adrp	x2, l_.str.1@PAGE
Lloh42:
	add	x2, x2, l_.str.1@PAGEOFF
	bl	_mwifiex_dbg
LBB0_12:
	mov	w0, #0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
LBB0_13:
	mov	w9, #1
	str	w9, [x22]
	cbnz	x21, LBB0_6
	b	LBB0_12
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh32, Lloh33, Lloh34
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGotLdr	Lloh35, Lloh36, Lloh37
	.loh AdrpAdd	Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh38, Lloh39, Lloh40
	.cfi_endproc
                                        ; -- End function
	.comm	_SSN_MASK,4,2                   ; @SSN_MASK
	.comm	_IEEE80211_ADDBA_PARAM_TID_MASK,4,2 ; @IEEE80211_ADDBA_PARAM_TID_MASK
	.comm	_BLOCKACKPARAM_TID_POS,4,2      ; @BLOCKACKPARAM_TID_POS
	.comm	_BA_RESULT_SUCCESS,4,2          ; @BA_RESULT_SUCCESS
	.comm	_BA_SETUP_NONE,8,3              ; @BA_SETUP_NONE
	.comm	_TYPE_DELBA_SENT,4,2            ; @TYPE_DELBA_SENT
	.comm	_BA_RESULT_TIMEOUT,8,3          ; @BA_RESULT_TIMEOUT
	.comm	_BA_STREAM_NOT_ALLOWED,8,3      ; @BA_STREAM_NOT_ALLOWED
	.comm	_EVENT,4,2                      ; @EVENT
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"info: BA stream complete\n"

	.comm	_BA_SETUP_COMPLETE,8,3          ; @BA_SETUP_COMPLETE
	.comm	_BLOCKACKPARAM_AMSDU_SUPP_MASK,4,2 ; @BLOCKACKPARAM_AMSDU_SUPP_MASK
	.comm	_ERROR,4,2                      ; @ERROR
l_.str.1:                               ; @.str.1
	.asciz	"BA stream not created\n"

.subsections_via_symbols
