	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_create_ba
_mwl8k_create_ba:                       ## @mwl8k_create_ba
	.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	%rcx, %r12
	movq	%rdx, %r13
	movq	%rsi, %r14
	movq	%rdi, %r15
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$80, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_1
## %bb.3:
	movq	%rax, %rbx
	movq	_MWL8K_CMD_BASTREAM@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	movl	$80, %edi
	callq	_cpu_to_le16
	movq	%rax, (%rbx)
	movq	_MWL8K_BA_CREATE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 72(%rbx)
	movl	%r13d, %edi
	callq	_cpu_to_le32
	movq	%rax, 64(%rbx)
	movl	%r13d, %edi
	callq	_cpu_to_le32
	movq	%rax, 56(%rbx)
	movl	16(%r14), %eax
	movl	%eax, 48(%rbx)
	movl	44(%rbx), %edi
	movq	8(%r14), %rax
	movl	(%rax), %esi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	callq	_memcpy
	movl	(%r14), %eax
	movl	%eax, 40(%rbx)
	xorl	%edi, %edi
	callq	_cpu_to_le16
	movq	%rax, 32(%rbx)
	movl	$1, 16(%rbx)
	movq	8(%r14), %rax
	movq	_IEEE80211_HT_AMPDU_PARM_FACTOR@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	andl	4(%rax), %ecx
	movl	8(%rax), %eax
	shll	$2, %eax
	movq	_IEEE80211_HT_AMPDU_PARM_DENSITY@GOTPCREL(%rip), %rdx
	andl	(%rdx), %eax
	orl	%ecx, %eax
	movl	%eax, 20(%rbx)
	movq	_BASTREAM_FLAG_IMMEDIATE_TYPE@GOTPCREL(%rip), %rax
	movq	_BASTREAM_FLAG_DIRECTION_UPSTREAM@GOTPCREL(%rip), %rcx
	movl	(%rcx), %edi
	orl	(%rax), %edi
	callq	_cpu_to_le32
	movq	%rax, 24(%rbx)
	movq	%r15, %rdi
	movq	%r12, %rsi
	movq	%rbx, %rdx
	callq	_mwl8k_post_pervif_cmd
	movl	%eax, %r12d
	movl	(%r15), %edi
	movq	8(%r14), %rax
	movl	(%rax), %edx
	movl	(%r14), %ecx
	leaq	L_.str(%rip), %rsi
	callq	_wiphy_debug
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r12d, %eax
	jmp	LBB0_2
LBB0_1:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MWL8K_CMD_BASTREAM,4,2         ## @MWL8K_CMD_BASTREAM
	.comm	_MWL8K_BA_CREATE,4,2            ## @MWL8K_BA_CREATE
	.comm	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_IEEE80211_HT_AMPDU_PARM_FACTOR,4,2 ## @IEEE80211_HT_AMPDU_PARM_FACTOR
	.comm	_IEEE80211_HT_AMPDU_PARM_DENSITY,4,2 ## @IEEE80211_HT_AMPDU_PARM_DENSITY
	.comm	_BASTREAM_FLAG_IMMEDIATE_TYPE,4,2 ## @BASTREAM_FLAG_IMMEDIATE_TYPE
	.comm	_BASTREAM_FLAG_DIRECTION_UPSTREAM,4,2 ## @BASTREAM_FLAG_DIRECTION_UPSTREAM
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Created a BA stream for %pM : tid %d\n"

	.no_dead_strip	_mwl8k_create_ba
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwl8k_create_ba
_mwl8k_create_ba:                       ; @mwl8k_create_ba
	.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, x3
	mov	x23, x2
	mov	x19, x1
	mov	x21, x0
Lloh0:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh2:
	ldr	w1, [x8]
	mov	w0, #80
	bl	_kzalloc
	cbz	x0, LBB0_2
; %bb.1:
	mov	x20, x0
Lloh3:
	adrp	x8, _MWL8K_CMD_BASTREAM@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MWL8K_CMD_BASTREAM@GOTPAGEOFF]
Lloh5:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x20, #8]
	mov	w0, #80
	bl	_cpu_to_le16
	str	x0, [x20]
Lloh6:
	adrp	x8, _MWL8K_BA_CREATE@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MWL8K_BA_CREATE@GOTPAGEOFF]
Lloh8:
	ldr	w0, [x8]
	bl	_cpu_to_le32
	str	x0, [x20, #72]
	mov	x0, x23
	bl	_cpu_to_le32
	str	x0, [x20, #64]
	mov	x0, x23
	bl	_cpu_to_le32
	str	x0, [x20, #56]
	ldr	w8, [x19, #16]
	str	w8, [x20, #48]
	ldr	w0, [x20, #44]
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
Lloh9:
	adrp	x8, _ETH_ALEN@GOTPAGE
Lloh10:
	ldr	x8, [x8, _ETH_ALEN@GOTPAGEOFF]
Lloh11:
	ldr	w2, [x8]
	bl	_memcpy
	ldr	w8, [x19]
	str	w8, [x20, #40]
	mov	w0, #0
	bl	_cpu_to_le16
	str	x0, [x20, #32]
	ldr	x8, [x19, #8]
Lloh12:
	adrp	x9, _IEEE80211_HT_AMPDU_PARM_FACTOR@GOTPAGE
Lloh13:
	ldr	x9, [x9, _IEEE80211_HT_AMPDU_PARM_FACTOR@GOTPAGEOFF]
Lloh14:
	ldr	w9, [x9]
	ldp	w10, w8, [x8, #4]
	and	w9, w9, w10
Lloh15:
	adrp	x10, _IEEE80211_HT_AMPDU_PARM_DENSITY@GOTPAGE
Lloh16:
	ldr	x10, [x10, _IEEE80211_HT_AMPDU_PARM_DENSITY@GOTPAGEOFF]
Lloh17:
	ldr	w10, [x10]
	and	w8, w10, w8, lsl #2
	mov	w10, #1
	orr	w8, w8, w9
Lloh18:
	adrp	x9, _BASTREAM_FLAG_IMMEDIATE_TYPE@GOTPAGE
Lloh19:
	ldr	x9, [x9, _BASTREAM_FLAG_IMMEDIATE_TYPE@GOTPAGEOFF]
	stp	w10, w8, [x20, #16]
Lloh20:
	ldr	w8, [x9]
Lloh21:
	adrp	x9, _BASTREAM_FLAG_DIRECTION_UPSTREAM@GOTPAGE
Lloh22:
	ldr	x9, [x9, _BASTREAM_FLAG_DIRECTION_UPSTREAM@GOTPAGEOFF]
Lloh23:
	ldr	w9, [x9]
	orr	w0, w9, w8
	bl	_cpu_to_le32
	str	x0, [x20, #24]
	mov	x0, x21
	mov	x1, x22
	mov	x2, x20
	bl	_mwl8k_post_pervif_cmd
	mov	x22, x0
	ldr	w0, [x21]
	ldr	x8, [x19, #8]
	ldr	w2, [x8]
	ldr	w3, [x19]
Lloh24:
	adrp	x1, l_.str@PAGE
Lloh25:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wiphy_debug
	mov	x0, x20
	bl	_kfree
	mov	x0, x22
	b	LBB0_3
LBB0_2:
Lloh26:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh27:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh28:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_3:
	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
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh26, Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MWL8K_CMD_BASTREAM,4,2         ; @MWL8K_CMD_BASTREAM
	.comm	_MWL8K_BA_CREATE,4,2            ; @MWL8K_BA_CREATE
	.comm	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_IEEE80211_HT_AMPDU_PARM_FACTOR,4,2 ; @IEEE80211_HT_AMPDU_PARM_FACTOR
	.comm	_IEEE80211_HT_AMPDU_PARM_DENSITY,4,2 ; @IEEE80211_HT_AMPDU_PARM_DENSITY
	.comm	_BASTREAM_FLAG_IMMEDIATE_TYPE,4,2 ; @BASTREAM_FLAG_IMMEDIATE_TYPE
	.comm	_BASTREAM_FLAG_DIRECTION_UPSTREAM,4,2 ; @BASTREAM_FLAG_DIRECTION_UPSTREAM
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Created a BA stream for %pM : tid %d\n"

	.no_dead_strip	_mwl8k_create_ba
.subsections_via_symbols
