	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl12xx_acx_set_ba_receiver_session ## -- Begin function wl12xx_acx_set_ba_receiver_session
	.p2align	4, 0x90
_wl12xx_acx_set_ba_receiver_session:    ## @wl12xx_acx_set_ba_receiver_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%r9d, -44(%rbp)                 ## 4-byte Spill
	movl	%r8d, %r15d
	movl	%ecx, %r14d
	movl	%edx, %ebx
	movl	%esi, %r13d
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	movq	_DEBUG_ACX@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_wl1271_debug
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$20, %edi
	callq	_kzalloc
	movq	%rax, %r12
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movl	%r15d, (%r12)
	movl	%r13d, 4(%r12)
	movl	%r14d, 8(%r12)
	movl	-44(%rbp), %eax                 ## 4-byte Reload
	movl	%eax, 12(%r12)
	movl	%ebx, 16(%r12)
	movq	_ACX_BA_SESSION_RX_SETUP@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_CMD_STATUS_NO_RX_BA_SESSION@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	callq	_BIT
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	movq	%r12, %rdx
	movl	$20, %ecx
	movl	%eax, %r8d
	callq	_wlcore_cmd_configure_failsafe
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_3
## %bb.4:
	cmpl	(%r14), %ebx
	movl	$0, %ebx
	jne	LBB0_7
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	movl	%r13d, %esi
	callq	_wl1271_warning
	movq	_EBUSY@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	movl	%ebx, %esi
	callq	_wl1271_warning
LBB0_7:
	movq	%r12, %rdi
	callq	_kfree
	movl	%ebx, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_DEBUG_ACX,4,2                  ## @DEBUG_ACX
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"acx ba receiver session setting"

	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_ACX_BA_SESSION_RX_SETUP,4,2    ## @ACX_BA_SESSION_RX_SETUP
	.comm	_CMD_STATUS_NO_RX_BA_SESSION,4,2 ## @CMD_STATUS_NO_RX_BA_SESSION
L_.str.1:                               ## @.str.1
	.asciz	"acx ba receiver session failed: %d"

L_.str.2:                               ## @.str.2
	.asciz	"no fw rx ba on tid %d"

	.comm	_EBUSY,4,2                      ## @EBUSY
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wl12xx_acx_set_ba_receiver_session ; -- Begin function wl12xx_acx_set_ba_receiver_session
	.p2align	2
_wl12xx_acx_set_ba_receiver_session:    ; @wl12xx_acx_set_ba_receiver_session
	.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	x22, x5
	mov	x25, x4
	mov	x24, x3
	mov	x23, x2
	mov	x20, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _DEBUG_ACX@GOTPAGE
Lloh1:
	ldr	x8, [x8, _DEBUG_ACX@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wl1271_debug
Lloh5:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	w0, #20
	bl	_kzalloc
	mov	x19, x0
	cbz	x0, LBB0_4
; %bb.1:
	stp	w25, w20, [x19]
	stp	w24, w22, [x19, #8]
	str	w23, [x19, #16]
Lloh8:
	adrp	x8, _ACX_BA_SESSION_RX_SETUP@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ACX_BA_SESSION_RX_SETUP@GOTPAGEOFF]
Lloh10:
	ldr	w22, [x8]
Lloh11:
	adrp	x23, _CMD_STATUS_NO_RX_BA_SESSION@GOTPAGE
Lloh12:
	ldr	x23, [x23, _CMD_STATUS_NO_RX_BA_SESSION@GOTPAGEOFF]
	ldr	w0, [x23]
	bl	_BIT
	mov	x4, x0
	mov	x0, x21
	mov	x1, x22
	mov	x2, x19
	mov	w3, #20
	bl	_wlcore_cmd_configure_failsafe
	mov	x21, x0
	tbnz	w0, #31, LBB0_6
; %bb.2:
	ldr	w8, [x23]
	cmp	w21, w8
	b.ne	LBB0_7
; %bb.3:
Lloh13:
	adrp	x0, l_.str.2@PAGE
Lloh14:
	add	x0, x0, l_.str.2@PAGEOFF
	mov	x1, x20
	bl	_wl1271_warning
Lloh15:
	adrp	x8, _EBUSY@GOTPAGE
Lloh16:
	ldr	x8, [x8, _EBUSY@GOTPAGEOFF]
	b	LBB0_5
LBB0_4:
Lloh17:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh18:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
LBB0_5:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_6:
Lloh19:
	adrp	x0, l_.str.1@PAGE
Lloh20:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x21
	bl	_wl1271_warning
	b	LBB0_8
LBB0_7:
	mov	w21, #0
LBB0_8:
	mov	x0, x19
	bl	_kfree
	mov	x0, x21
	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
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.cfi_endproc
                                        ; -- End function
	.comm	_DEBUG_ACX,4,2                  ; @DEBUG_ACX
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"acx ba receiver session setting"

	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_ACX_BA_SESSION_RX_SETUP,4,2    ; @ACX_BA_SESSION_RX_SETUP
	.comm	_CMD_STATUS_NO_RX_BA_SESSION,4,2 ; @CMD_STATUS_NO_RX_BA_SESSION
l_.str.1:                               ; @.str.1
	.asciz	"acx ba receiver session failed: %d"

l_.str.2:                               ; @.str.2
	.asciz	"no fw rx ba on tid %d"

	.comm	_EBUSY,4,2                      ; @EBUSY
.subsections_via_symbols
