	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wcn36xx_smd_add_ba_session     ## -- Begin function wcn36xx_smd_add_ba_session
	.p2align	4, 0x90
_wcn36xx_smd_add_ba_session:            ## @wcn36xx_smd_add_ba_session
	.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	$152, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, %rbx
	movq	%r8, -120(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r15
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r12
	callq	_mutex_lock
	movq	_WCN36XX_HAL_ADD_BA_SESSION_REQ@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	-48(%rbp), %rax
	movq	%rax, 64(%rsp)
	movups	-112(%rbp), %xmm0
	movups	-96(%rbp), %xmm1
	movups	-80(%rbp), %xmm2
	movups	-64(%rbp), %xmm3
	movups	%xmm3, 48(%rsp)
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_INIT_HAL_MSG
	movq	%rbx, -48(%rbp)
	leaq	-56(%rbp), %rdi
	movl	(%r14), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movabsq	$4294967312, %rax               ## imm = 0x100000010
	movq	%rax, -112(%rbp)
	movq	%r13, -64(%rbp)
	movq	_WCN36XX_AGGR_BUFFER_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -72(%rbp)
	movq	$0, -80(%rbp)
	testq	%r15, %r15
	je	LBB0_2
## %bb.1:
	movq	(%r15), %rax
	movq	%rax, -88(%rbp)
LBB0_2:
	movq	-120(%rbp), %rax                ## 8-byte Reload
	movq	%rax, -96(%rbp)
	movl	8(%r12), %edi
	movq	-48(%rbp), %rax
	movq	%rax, 64(%rsp)
	movups	-112(%rbp), %xmm0
	movups	-96(%rbp), %xmm1
	movups	-80(%rbp), %xmm2
	movups	-64(%rbp), %xmm3
	movups	%xmm3, 48(%rsp)
	movups	%xmm2, 32(%rsp)
	movups	%xmm1, 16(%rsp)
	movups	%xmm0, (%rsp)
	callq	_PREPARE_HAL_BUF
	movl	-104(%rbp), %esi
	movq	%r12, %rdi
	callq	_wcn36xx_smd_send_and_wait
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_wcn36xx_err
	jmp	LBB0_7
LBB0_4:
	movl	4(%r12), %esi
	movl	8(%r12), %edi
	callq	_wcn36xx_smd_rsp_status_check
	testl	%eax, %eax
	je	LBB0_5
## %bb.6:
	movl	%eax, %ebx
	leaq	L_.str.1(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_wcn36xx_err
	jmp	LBB0_7
LBB0_5:
	xorl	%ebx, %ebx
LBB0_7:
	movq	%r12, %rdi
	callq	_mutex_unlock
	movl	%ebx, %eax
	addq	$152, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WCN36XX_HAL_ADD_BA_SESSION_REQ,4,2 ## @WCN36XX_HAL_ADD_BA_SESSION_REQ
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_WCN36XX_AGGR_BUFFER_SIZE,4,2   ## @WCN36XX_AGGR_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Sending hal_add_ba_session failed\n"

L_.str.1:                               ## @.str.1
	.asciz	"hal_add_ba_session response failed err=%d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function wcn36xx_smd_add_ba_session
lCPI0_0:
	.long	16                              ; 0x10
	.long	1                               ; 0x1
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_wcn36xx_smd_add_ba_session
	.p2align	2
_wcn36xx_smd_add_ba_session:            ; @wcn36xx_smd_add_ba_session
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #240
	.cfi_def_cfa_offset 240
	stp	x26, x25, [sp, #160]            ; 16-byte Folded Spill
	stp	x24, x23, [sp, #176]            ; 16-byte Folded Spill
	stp	x22, x21, [sp, #192]            ; 16-byte Folded Spill
	stp	x20, x19, [sp, #208]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #224]            ; 16-byte Folded Spill
	add	x29, sp, #224
	.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	x22, x5
	mov	x20, x4
	mov	x21, x3
	mov	x23, x2
	mov	x24, x1
	mov	x19, x0
	bl	_mutex_lock
Lloh0:
	adrp	x8, _WCN36XX_HAL_ADD_BA_SESSION_REQ@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WCN36XX_HAL_ADD_BA_SESSION_REQ@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	add	x25, sp, #88
	add	x0, sp, #88
	bl	_INIT_HAL_MSG
	str	x22, [sp, #152]
	add	x0, x25, #56
	ldr	w1, [x24]
Lloh3:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh4:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh5:
	ldr	w2, [x8]
	bl	_memcpy
	str	x23, [sp, #136]
Lloh6:
	adrp	x8, lCPI0_0@PAGE
Lloh7:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [sp, #88]
Lloh8:
	adrp	x8, _WCN36XX_AGGR_BUFFER_SIZE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _WCN36XX_AGGR_BUFFER_SIZE@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	str	w8, [sp, #128]
	str	xzr, [sp, #120]
	cbz	x21, LBB0_2
; %bb.1:
	ldr	x8, [x21]
	str	x8, [sp, #112]
LBB0_2:
	str	x20, [sp, #104]
	ldr	w0, [x19, #8]
	ldur	q0, [sp, #120]
	ldur	q1, [sp, #136]
	stp	q0, q1, [sp, #48]
	ldr	x8, [sp, #152]
	str	x8, [sp, #80]
	ldur	q0, [sp, #104]
	ldur	q1, [sp, #88]
	stp	q1, q0, [sp, #16]
	add	x1, sp, #16
	bl	_PREPARE_HAL_BUF
	ldr	w1, [sp, #96]
	mov	x0, x19
	bl	_wcn36xx_smd_send_and_wait
	cbz	w0, LBB0_4
; %bb.3:
	mov	x20, x0
Lloh11:
	adrp	x0, l_.str@PAGE
Lloh12:
	add	x0, x0, l_.str@PAGEOFF
	b	LBB0_6
LBB0_4:
	ldp	w1, w0, [x19, #4]
	bl	_wcn36xx_smd_rsp_status_check
	mov	x20, x0
	cbz	w0, LBB0_7
; %bb.5:
	str	x20, [sp]
Lloh13:
	adrp	x0, l_.str.1@PAGE
Lloh14:
	add	x0, x0, l_.str.1@PAGEOFF
LBB0_6:
	bl	_wcn36xx_err
LBB0_7:
	mov	x0, x19
	bl	_mutex_unlock
	mov	x0, x20
	ldp	x29, x30, [sp, #224]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #208]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #192]            ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #176]            ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #160]            ; 16-byte Folded Reload
	add	sp, sp, #240
	ret
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdrp	Lloh6, Lloh8
	.loh AdrpLdr	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_WCN36XX_HAL_ADD_BA_SESSION_REQ,4,2 ; @WCN36XX_HAL_ADD_BA_SESSION_REQ
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_WCN36XX_AGGR_BUFFER_SIZE,4,2   ; @WCN36XX_AGGR_BUFFER_SIZE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Sending hal_add_ba_session failed\n"

l_.str.1:                               ; @.str.1
	.asciz	"hal_add_ba_session response failed err=%d\n"

.subsections_via_symbols
