	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_cmd_11n_addba_rsp_gen  ## -- Begin function mwifiex_cmd_11n_addba_rsp_gen
	.p2align	4, 0x90
_mwifiex_cmd_11n_addba_rsp_gen:         ## @mwifiex_cmd_11n_addba_rsp_gen
	.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, %r15
	movq	%rdi, %rbx
	movl	8(%rdi), %r14d
	callq	_GET_BSS_ROLE
	movq	_MWIFIEX_BSS_ROLE_STA@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	movq	%rbx, -48(%rbp)                 ## 8-byte Spill
	jne	LBB0_11
## %bb.1:
	movq	24(%rbx), %rax
	movl	8(%rax), %edi
	callq	_ISSUPP_TDLS_ENABLED
	testq	%rax, %rax
	je	LBB0_11
## %bb.2:
	movq	24(%rbx), %rax
	cmpq	$0, (%rax)
	je	LBB0_11
## %bb.3:
	movl	32(%rbx), %edi
	movl	8(%r12), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcmp
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:
	leaq	16(%rbx), %r13
	movq	%r13, %rdi
	callq	_spin_lock_bh
	movl	8(%r12), %esi
	movq	%rbx, %rdi
	callq	_mwifiex_get_sta_entry
	testq	%rax, %rax
	je	LBB0_18
## %bb.5:
	cmpq	$0, (%rax)
	je	LBB0_7
## %bb.6:
	movq	_MWIFIEX_11AC_STA_AMPDU_DEF_RXWINSIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r14d
LBB0_7:
	movl	%r14d, %ebx
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	jmp	LBB0_12
LBB0_11:
	movl	%r14d, %ebx
LBB0_12:
	movq	_HostCmd_CMD_11N_ADDBA_RSP@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%r15)
	movq	_S_DS_GEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addl	$40, %edi
	callq	_cpu_to_le16
	movq	%rax, (%r15)
	movl	48(%r15), %edi
	movl	8(%r12), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	28(%r12), %eax
	movl	%eax, 44(%r15)
	movl	24(%r12), %eax
	movl	%eax, 40(%r15)
	movq	(%r12), %rax
	movq	%rax, 32(%r15)
	movq	16(%r12), %rdi
	callq	_le16_to_cpu
	movl	%eax, %r13d
	movq	_IEEE80211_ADDBA_PARAM_TID_MASK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	andl	%r13d, %eax
	movq	_BLOCKACKPARAM_TID_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	sarl	%cl, %eax
	movslq	%eax, %r14
	movq	_ADDBA_RSP_STATUS_ACCEPT@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 24(%r15)
	movq	_IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK@GOTPCREL(%rip), %rsi
	movl	(%rsi), %eax
	notl	%eax
	andl	%r13d, %eax
	movq	-48(%rbp), %rcx                 ## 8-byte Reload
	cmpl	$0, 12(%rcx)
	movq	%r14, -56(%rbp)                 ## 8-byte Spill
	je	LBB0_14
## %bb.13:
	movq	(%rcx), %rcx
	movq	(%rcx,%r14,8), %rcx
	movq	_BA_STREAM_NOT_ALLOWED@GOTPCREL(%rip), %rdx
	cmpq	(%rdx), %rcx
	jne	LBB0_15
LBB0_14:
	movq	%rsi, %r13
	movq	_BLOCKACKPARAM_AMSDU_SUPP_MASK@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	notl	%ecx
	andl	%ecx, %eax
	jmp	LBB0_16
LBB0_15:
	movq	%rsi, %r13
LBB0_16:
	movq	_BLOCKACKPARAM_WINSIZE_POS@GOTPCREL(%rip), %rcx
	movb	(%rcx), %cl
	shll	%cl, %ebx
	orl	%eax, %ebx
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r15)
	movq	%rax, %rdi
	callq	_le16_to_cpu
	movl	%eax, %r14d
	andl	(%r13), %r14d
	movq	_BLOCKACKPARAM_WINSIZE_POS@GOTPCREL(%rip), %rax
	movb	(%rax), %cl
	sarl	%cl, %r14d
	movl	%ebx, %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%r12)
	movl	8(%r12), %r15d
	movq	(%r12), %rdi
	callq	_le16_to_cpu
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%r15d, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	%r14d, %ecx
	movl	%eax, %r8d
	callq	_mwifiex_11n_create_rx_reorder_tbl
	xorl	%eax, %eax
LBB0_17:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_18:
	movq	%r13, %rdi
	callq	_spin_unlock_bh
	movq	24(%rbx), %rdi
	movq	_ERROR@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	8(%r12), %ecx
	leaq	L_.str(%rip), %rdx
	callq	_mwifiex_dbg
	movl	$-1, %eax
	jmp	LBB0_17
	.cfi_endproc
                                        ## -- End function
	.comm	_MWIFIEX_BSS_ROLE_STA,8,3       ## @MWIFIEX_BSS_ROLE_STA
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_ERROR,4,2                      ## @ERROR
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"BA setup with unknown TDLS peer %pM!\n"

	.comm	_MWIFIEX_11AC_STA_AMPDU_DEF_RXWINSIZE,4,2 ## @MWIFIEX_11AC_STA_AMPDU_DEF_RXWINSIZE
	.comm	_HostCmd_CMD_11N_ADDBA_RSP,4,2  ## @HostCmd_CMD_11N_ADDBA_RSP
	.comm	_S_DS_GEN,4,2                   ## @S_DS_GEN
	.comm	_IEEE80211_ADDBA_PARAM_TID_MASK,4,2 ## @IEEE80211_ADDBA_PARAM_TID_MASK
	.comm	_BLOCKACKPARAM_TID_POS,4,2      ## @BLOCKACKPARAM_TID_POS
	.comm	_ADDBA_RSP_STATUS_ACCEPT,4,2    ## @ADDBA_RSP_STATUS_ACCEPT
	.comm	_IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK,4,2 ## @IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK
	.comm	_BA_STREAM_NOT_ALLOWED,8,3      ## @BA_STREAM_NOT_ALLOWED
	.comm	_BLOCKACKPARAM_AMSDU_SUPP_MASK,4,2 ## @BLOCKACKPARAM_AMSDU_SUPP_MASK
	.comm	_BLOCKACKPARAM_WINSIZE_POS,4,2  ## @BLOCKACKPARAM_WINSIZE_POS
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mwifiex_cmd_11n_addba_rsp_gen  ; -- Begin function mwifiex_cmd_11n_addba_rsp_gen
	.p2align	2
_mwifiex_cmd_11n_addba_rsp_gen:         ; @mwifiex_cmd_11n_addba_rsp_gen
	.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	x20, x2
	mov	x21, x1
	mov	x19, x0
	ldr	w24, [x0, #8]
	bl	_GET_BSS_ROLE
Lloh0:
	adrp	x8, _MWIFIEX_BSS_ROLE_STA@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MWIFIEX_BSS_ROLE_STA@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
Lloh3:
	adrp	x23, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x23, [x23, _ETH_ALEN@GOTPAGEOFF]
	cmp	x0, x8
	b.ne	LBB0_6
; %bb.1:
	ldr	x8, [x19, #24]
	ldr	w0, [x8, #8]
	bl	_ISSUPP_TDLS_ENABLED
	cbz	x0, LBB0_6
; %bb.2:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
	cbz	x8, LBB0_6
; %bb.3:
	ldr	w0, [x19, #32]
	ldr	w1, [x20, #8]
	ldr	w2, [x23]
	bl	_memcmp
	cbz	x0, LBB0_6
; %bb.4:
	add	x22, x19, #16
	mov	x0, x22
	bl	_spin_lock_bh
	ldr	w1, [x20, #8]
	mov	x0, x19
	bl	_mwifiex_get_sta_entry
	cbz	x0, LBB0_11
; %bb.5:
	ldr	x8, [x0]
Lloh5:
	adrp	x9, _MWIFIEX_11AC_STA_AMPDU_DEF_RXWINSIZE@GOTPAGE
Lloh6:
	ldr	x9, [x9, _MWIFIEX_11AC_STA_AMPDU_DEF_RXWINSIZE@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	cmp	x8, #0
	csel	w24, w24, w9, eq
	mov	x0, x22
	bl	_spin_unlock_bh
LBB0_6:
Lloh8:
	adrp	x8, _HostCmd_CMD_11N_ADDBA_RSP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HostCmd_CMD_11N_ADDBA_RSP@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x21, #8]
Lloh11:
	adrp	x8, _S_DS_GEN@GOTPAGE
Lloh12:
	ldr	x8, [x8, _S_DS_GEN@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	add	w0, w8, #40
	bl	_cpu_to_le16
	str	x0, [x21]
	ldr	w0, [x21, #48]
	ldr	w1, [x20, #8]
	ldr	w2, [x23]
	bl	_memcpy
	ldr	d0, [x20, #24]
	str	d0, [x21, #40]
	ldr	x8, [x20]
	str	x8, [x21, #32]
	ldr	x0, [x20, #16]
	bl	_le16_to_cpu
	mov	x23, x0
Lloh14:
	adrp	x8, _IEEE80211_ADDBA_PARAM_TID_MASK@GOTPAGE
Lloh15:
	ldr	x8, [x8, _IEEE80211_ADDBA_PARAM_TID_MASK@GOTPAGEOFF]
Lloh16:
	ldr	w8, [x8]
	and	w8, w8, w0
Lloh17:
	adrp	x9, _BLOCKACKPARAM_TID_POS@GOTPAGE
Lloh18:
	ldr	x9, [x9, _BLOCKACKPARAM_TID_POS@GOTPAGEOFF]
Lloh19:
	ldr	w9, [x9]
	asr	w8, w8, w9
	sxtw	x22, w8
Lloh20:
	adrp	x8, _ADDBA_RSP_STATUS_ACCEPT@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ADDBA_RSP_STATUS_ACCEPT@GOTPAGEOFF]
Lloh22:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x21, #24]
Lloh23:
	adrp	x25, _IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK@GOTPAGE
Lloh24:
	ldr	x25, [x25, _IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK@GOTPAGEOFF]
	ldr	w8, [x25]
	bic	w8, w23, w8
	ldr	w9, [x19, #12]
	cbz	w9, LBB0_8
; %bb.7:
	ldr	x9, [x19]
	ldr	x9, [x9, x22, lsl #3]
Lloh25:
	adrp	x10, _BA_STREAM_NOT_ALLOWED@GOTPAGE
Lloh26:
	ldr	x10, [x10, _BA_STREAM_NOT_ALLOWED@GOTPAGEOFF]
Lloh27:
	ldr	x10, [x10]
	cmp	x9, x10
	b.ne	LBB0_9
LBB0_8:
Lloh28:
	adrp	x9, _BLOCKACKPARAM_AMSDU_SUPP_MASK@GOTPAGE
Lloh29:
	ldr	x9, [x9, _BLOCKACKPARAM_AMSDU_SUPP_MASK@GOTPAGEOFF]
Lloh30:
	ldr	w9, [x9]
	bic	w8, w8, w9
LBB0_9:
Lloh31:
	adrp	x26, _BLOCKACKPARAM_WINSIZE_POS@GOTPAGE
Lloh32:
	ldr	x26, [x26, _BLOCKACKPARAM_WINSIZE_POS@GOTPAGEOFF]
	ldr	w9, [x26]
	lsl	w9, w24, w9
	orr	w23, w9, w8
	mov	x0, x23
	bl	_cpu_to_le16
	str	x0, [x21, #16]
	bl	_le16_to_cpu
	ldr	w8, [x25]
	and	w8, w8, w0
	ldr	w9, [x26]
	asr	w21, w8, w9
	mov	x0, x23
	bl	_cpu_to_le16
	str	x0, [x20, #16]
	ldr	w23, [x20, #8]
	ldr	x0, [x20]
	bl	_le16_to_cpu
	mov	x4, x0
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, x21
	bl	_mwifiex_11n_create_rx_reorder_tbl
	mov	w0, #0
LBB0_10:
	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_11:
	mov	x0, x22
	bl	_spin_unlock_bh
	ldr	x0, [x19, #24]
Lloh33:
	adrp	x8, _ERROR@GOTPAGE
Lloh34:
	ldr	x8, [x8, _ERROR@GOTPAGEOFF]
Lloh35:
	ldr	w1, [x8]
	ldr	w3, [x20, #8]
Lloh36:
	adrp	x2, l_.str@PAGE
Lloh37:
	add	x2, x2, l_.str@PAGEOFF
	bl	_mwifiex_dbg
	mov	w0, #-1
	b	LBB0_10
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh31, Lloh32
	.loh AdrpAdd	Lloh36, Lloh37
	.loh AdrpLdrGotLdr	Lloh33, Lloh34, Lloh35
	.cfi_endproc
                                        ; -- End function
	.comm	_MWIFIEX_BSS_ROLE_STA,8,3       ; @MWIFIEX_BSS_ROLE_STA
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_ERROR,4,2                      ; @ERROR
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"BA setup with unknown TDLS peer %pM!\n"

	.comm	_MWIFIEX_11AC_STA_AMPDU_DEF_RXWINSIZE,4,2 ; @MWIFIEX_11AC_STA_AMPDU_DEF_RXWINSIZE
	.comm	_HostCmd_CMD_11N_ADDBA_RSP,4,2  ; @HostCmd_CMD_11N_ADDBA_RSP
	.comm	_S_DS_GEN,4,2                   ; @S_DS_GEN
	.comm	_IEEE80211_ADDBA_PARAM_TID_MASK,4,2 ; @IEEE80211_ADDBA_PARAM_TID_MASK
	.comm	_BLOCKACKPARAM_TID_POS,4,2      ; @BLOCKACKPARAM_TID_POS
	.comm	_ADDBA_RSP_STATUS_ACCEPT,4,2    ; @ADDBA_RSP_STATUS_ACCEPT
	.comm	_IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK,4,2 ; @IEEE80211_ADDBA_PARAM_BUF_SIZE_MASK
	.comm	_BA_STREAM_NOT_ALLOWED,8,3      ; @BA_STREAM_NOT_ALLOWED
	.comm	_BLOCKACKPARAM_AMSDU_SUPP_MASK,4,2 ; @BLOCKACKPARAM_AMSDU_SUPP_MASK
	.comm	_BLOCKACKPARAM_WINSIZE_POS,4,2  ; @BLOCKACKPARAM_WINSIZE_POS
.subsections_via_symbols
