	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wmi_addba                      ## -- Begin function wmi_addba
	.p2align	4, 0x90
_wmi_addba:                             ## @wmi_addba
	.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	%r8d, %r15d
	movl	%ecx, %r12d
	movl	%edx, %r13d
	movq	%rdi, %rbx
	xorl	%r14d, %r14d
	cmpq	$0, 24(%rdi)
	movl	%esi, -44(%rbp)                 ## 4-byte Spill
	je	LBB0_4
## %bb.1:
	cmpq	$0, 16(%rbx)
	je	LBB0_4
## %bb.2:
	movq	_WMI_FW_CAPABILITY_AMSDU@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movl	8(%rbx), %esi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	xorl	%r14d, %r14d
	cmpq	$0, (%rbx)
	setne	%r14b
LBB0_4:
	movl	%r13d, -64(%rbp)
	movl	%r12d, -60(%rbp)
	movl	%r14d, -56(%rbp)
	movl	%r15d, %edi
	callq	_cpu_to_le16
	movl	%eax, -52(%rbp)
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	movl	%r12d, %ecx
	movl	%r15d, %r8d
	movl	%r14d, %r9d
	callq	_wil_dbg_wmi
	movq	_WMI_RING_BA_EN_CMDID@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-64(%rbp), %rcx
	movq	%rbx, %rdi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	movl	$16, %r8d
	callq	_wmi_send
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_WMI_FW_CAPABILITY_AMSDU,4,2    ## @WMI_FW_CAPABILITY_AMSDU
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"addba: (ring %d size %d timeout %d amsdu %d)\n"

	.comm	_WMI_RING_BA_EN_CMDID,4,2       ## @WMI_RING_BA_EN_CMDID
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_wmi_addba                      ; -- Begin function wmi_addba
	.p2align	2
_wmi_addba:                             ; @wmi_addba
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x21, x4
	mov	x22, x3
	mov	x23, x2
	mov	x19, x1
	mov	x20, x0
	ldr	x8, [x0, #24]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	x8, [x20, #16]
	cbz	x8, LBB0_4
; %bb.2:
Lloh0:
	adrp	x8, _WMI_FW_CAPABILITY_AMSDU@GOTPAGE
Lloh1:
	ldr	x8, [x8, _WMI_FW_CAPABILITY_AMSDU@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
	ldr	w1, [x20, #8]
	bl	_test_bit
	cbz	x0, LBB0_4
; %bb.3:
	ldr	x8, [x20]
	cmp	x8, #0
	cset	w24, ne
	b	LBB0_5
LBB0_4:
	mov	w24, #0
LBB0_5:
	stp	w23, w22, [sp]
	str	w24, [sp, #8]
	mov	x0, x21
	bl	_cpu_to_le16
	str	w0, [sp, #12]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x23
	mov	x3, x22
	mov	x4, x21
	mov	x5, x24
	bl	_wil_dbg_wmi
Lloh5:
	adrp	x8, _WMI_RING_BA_EN_CMDID@GOTPAGE
Lloh6:
	ldr	x8, [x8, _WMI_RING_BA_EN_CMDID@GOTPAGEOFF]
Lloh7:
	ldr	w1, [x8]
	mov	x3, sp
	mov	x0, x20
	mov	x2, x19
	mov	w4, #16
	bl	_wmi_send
	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
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.comm	_WMI_FW_CAPABILITY_AMSDU,4,2    ; @WMI_FW_CAPABILITY_AMSDU
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"addba: (ring %d size %d timeout %d amsdu %d)\n"

	.comm	_WMI_RING_BA_EN_CMDID,4,2       ; @WMI_RING_BA_EN_CMDID
.subsections_via_symbols
