	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_add_stream
_mwl8k_add_stream:                      ## @mwl8k_add_stream
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	movq	_MWL8K_NUM_AMPDU_STREAMS@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	testl	%eax, %eax
	jle	LBB0_5
## %bb.1:
	movl	%edx, %r8d
	movq	8(%rdi), %rcx
	movq	(%rcx), %rbx
	movq	_AMPDU_NO_STREAM@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	xorl	%edx, %edx
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	cmpq	%rcx, (%rbx)
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%rdx
	addq	$24, %rbx
	cmpq	%rdx, %rax
	jne	LBB0_2
LBB0_5:
	xorl	%ebx, %ebx
	jmp	LBB0_6
LBB0_3:
	movq	%rsi, 16(%rbx)
	movq	_AMPDU_STREAM_NEW@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, (%rbx)
	movl	%r8d, 12(%rbx)
	movl	%edx, 8(%rbx)
	movl	(%rdi), %edi
	movl	(%rsi), %edx
	leaq	L_.str(%rip), %rsi
	movl	%r8d, %ecx
	callq	_wiphy_debug
LBB0_6:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_MWL8K_NUM_AMPDU_STREAMS,4,2    ## @MWL8K_NUM_AMPDU_STREAMS
	.comm	_AMPDU_NO_STREAM,8,3            ## @AMPDU_NO_STREAM
	.comm	_AMPDU_STREAM_NEW,8,3           ## @AMPDU_STREAM_NEW
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Added a new stream for %pM %d"

	.no_dead_strip	_mwl8k_add_stream
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwl8k_add_stream
_mwl8k_add_stream:                      ; @mwl8k_add_stream
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, _MWL8K_NUM_AMPDU_STREAMS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _MWL8K_NUM_AMPDU_STREAMS@GOTPAGEOFF]
Lloh2:
	ldr	w9, [x8]
	cmp	w9, #1
	b.lt	LBB0_4
; %bb.1:
	mov	x3, x2
	mov	x8, #0
	ldr	x10, [x0, #8]
	ldr	x19, [x10]
Lloh3:
	adrp	x10, _AMPDU_NO_STREAM@GOTPAGE
Lloh4:
	ldr	x10, [x10, _AMPDU_NO_STREAM@GOTPAGEOFF]
Lloh5:
	ldr	x10, [x10]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x11, [x19]
	cmp	x11, x10
	b.eq	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x8, x8, #1
	add	x19, x19, #24
	cmp	x9, x8
	b.ne	LBB0_2
LBB0_4:
	mov	x19, #0
	b	LBB0_6
LBB0_5:
	str	x1, [x19, #16]
Lloh6:
	adrp	x9, _AMPDU_STREAM_NEW@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AMPDU_STREAM_NEW@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	str	x9, [x19]
	stp	w8, w3, [x19, #8]
	ldr	w0, [x0]
	ldr	w2, [x1]
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	bl	_wiphy_debug
LBB0_6:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_MWL8K_NUM_AMPDU_STREAMS,4,2    ; @MWL8K_NUM_AMPDU_STREAMS
	.comm	_AMPDU_NO_STREAM,8,3            ; @AMPDU_NO_STREAM
	.comm	_AMPDU_STREAM_NEW,8,3           ; @AMPDU_STREAM_NEW
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Added a new stream for %pM %d"

	.no_dead_strip	_mwl8k_add_stream
.subsections_via_symbols
