	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mwl8k_cmd_set_new_stn_del
_mwl8k_cmd_set_new_stn_del:             ## @mwl8k_cmd_set_new_stn_del
	.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
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r13
	movq	%r13, %rdi
	callq	_spin_lock
	movq	_MWL8K_NUM_AMPDU_STREAMS@GOTPCREL(%rip), %rax
	cmpl	$0, (%rax)
	jle	LBB0_9
## %bb.1:
	xorl	%r15d, %r15d
	movq	_AMPDU_NO_STREAM@GOTPCREL(%rip), %r12
	xorl	%r14d, %r14d
	jmp	LBB0_2
LBB0_5:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	8(%rbx,%r15), %ebx
	movq	%r13, %rdi
	callq	_spin_unlock
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	callq	_mwl8k_destroy_ba
	movq	%r13, %rdi
	callq	_spin_lock
	.p2align	4, 0x90
LBB0_8:                                 ##   in Loop: Header=BB0_2 Depth=1
	incq	%r14
	movq	_MWL8K_NUM_AMPDU_STREAMS@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	addq	$24, %r15
	cmpq	%rax, %r14
	jge	LBB0_9
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	8(%r13), %rbx
	movq	(%rbx,%r15), %rax
	cmpq	(%r12), %rax
	je	LBB0_8
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	16(%rbx,%r15), %rax
	movl	(%rax), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcmp
	testq	%rax, %rax
	jne	LBB0_8
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	(%rbx,%r15), %rax
	movq	_AMPDU_STREAM_ACTIVE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_5
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	_AMPDU_STREAM_NEW@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_8
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	addq	%r15, %rbx
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	callq	_mwl8k_remove_stream
	jmp	LBB0_8
LBB0_9:
	movq	%r13, %rdi
	callq	_spin_unlock
	movq	_GFP_KERNEL@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movl	$32, %edi
	callq	_kzalloc
	testq	%rax, %rax
	je	LBB0_10
## %bb.12:
	movq	%rax, %rbx
	movq	_MWL8K_CMD_SET_NEW_STN@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 8(%rbx)
	movl	$32, %edi
	callq	_cpu_to_le16
	movq	%rax, (%rbx)
	movl	24(%rbx), %edi
	movq	_ETH_ALEN@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	callq	_memcpy
	movq	_MWL8K_STA_ACTION_REMOVE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_le16
	movq	%rax, 16(%rbx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	%rbx, %rdx
	callq	_mwl8k_post_pervif_cmd
	movl	%eax, %r14d
	movq	%rbx, %rdi
	callq	_kfree
	movl	%r14d, %eax
	jmp	LBB0_11
LBB0_10:
	movq	_ENOMEM@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_11:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	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	_ETH_ALEN,4,2                   ## @ETH_ALEN
	.comm	_AMPDU_STREAM_ACTIVE,8,3        ## @AMPDU_STREAM_ACTIVE
	.comm	_AMPDU_STREAM_NEW,8,3           ## @AMPDU_STREAM_NEW
	.comm	_GFP_KERNEL,4,2                 ## @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ## @ENOMEM
	.comm	_MWL8K_CMD_SET_NEW_STN,4,2      ## @MWL8K_CMD_SET_NEW_STN
	.comm	_MWL8K_STA_ACTION_REMOVE,4,2    ## @MWL8K_STA_ACTION_REMOVE
	.no_dead_strip	_mwl8k_cmd_set_new_stn_del
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mwl8k_cmd_set_new_stn_del
_mwl8k_cmd_set_new_stn_del:             ; @mwl8k_cmd_set_new_stn_del
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x21, x2
	str	x1, [sp, #8]                    ; 8-byte Folded Spill
	mov	x20, x0
	ldr	x22, [x0]
	mov	x0, x22
	bl	_spin_lock
Lloh0:
	adrp	x25, _MWL8K_NUM_AMPDU_STREAMS@GOTPAGE
Lloh1:
	ldr	x25, [x25, _MWL8K_NUM_AMPDU_STREAMS@GOTPAGEOFF]
	ldr	w8, [x25]
Lloh2:
	adrp	x24, _ETH_ALEN@GOTPAGE
Lloh3:
	ldr	x24, [x24, _ETH_ALEN@GOTPAGEOFF]
	cmp	w8, #1
	b.lt	LBB0_9
; %bb.1:
	mov	x26, #0
	mov	x27, #0
Lloh4:
	adrp	x28, _AMPDU_NO_STREAM@GOTPAGE
Lloh5:
	ldr	x28, [x28, _AMPDU_NO_STREAM@GOTPAGEOFF]
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x8, x19, x26
	ldr	w23, [x8, #8]
	mov	x0, x22
	bl	_spin_unlock
	mov	x0, x20
	mov	x1, x23
	bl	_mwl8k_destroy_ba
	mov	x0, x22
	bl	_spin_lock
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	add	x27, x27, #1
	ldrsw	x8, [x25]
	add	x26, x26, #24
	cmp	x27, x8
	b.ge	LBB0_9
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x19, [x22, #8]
	add	x23, x19, x26
	ldr	x8, [x23]
	ldr	x9, [x28]
	cmp	x8, x9
	b.eq	LBB0_3
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x23, #16]
	ldr	w0, [x8]
	ldr	w2, [x24]
	mov	x1, x21
	bl	_memcmp
	cbnz	x0, LBB0_3
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x19, x26]
Lloh6:
	adrp	x9, _AMPDU_STREAM_ACTIVE@GOTPAGE
Lloh7:
	ldr	x9, [x9, _AMPDU_STREAM_ACTIVE@GOTPAGEOFF]
Lloh8:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_2
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh9:
	adrp	x9, _AMPDU_STREAM_NEW@GOTPAGE
Lloh10:
	ldr	x9, [x9, _AMPDU_STREAM_NEW@GOTPAGEOFF]
Lloh11:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_3
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x20
	mov	x1, x23
	bl	_mwl8k_remove_stream
	b	LBB0_3
LBB0_9:
	mov	x0, x22
	bl	_spin_unlock
Lloh12:
	adrp	x8, _GFP_KERNEL@GOTPAGE
Lloh13:
	ldr	x8, [x8, _GFP_KERNEL@GOTPAGEOFF]
Lloh14:
	ldr	w1, [x8]
	mov	w0, #32
	bl	_kzalloc
	cbz	x0, LBB0_11
; %bb.10:
	mov	x22, x0
Lloh15:
	adrp	x8, _MWL8K_CMD_SET_NEW_STN@GOTPAGE
Lloh16:
	ldr	x8, [x8, _MWL8K_CMD_SET_NEW_STN@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x22, #8]
	mov	w0, #32
	bl	_cpu_to_le16
	str	x0, [x22]
	ldr	w0, [x22, #24]
	ldr	w2, [x24]
	mov	x1, x21
	bl	_memcpy
Lloh18:
	adrp	x8, _MWL8K_STA_ACTION_REMOVE@GOTPAGE
Lloh19:
	ldr	x8, [x8, _MWL8K_STA_ACTION_REMOVE@GOTPAGEOFF]
Lloh20:
	ldr	w0, [x8]
	bl	_cpu_to_le16
	str	x0, [x22, #16]
	mov	x0, x20
	ldr	x1, [sp, #8]                    ; 8-byte Folded Reload
	mov	x2, x22
	bl	_mwl8k_post_pervif_cmd
	mov	x19, x0
	mov	x0, x22
	bl	_kfree
	mov	x0, x19
	b	LBB0_12
LBB0_11:
Lloh21:
	adrp	x8, _ENOMEM@GOTPAGE
Lloh22:
	ldr	x8, [x8, _ENOMEM@GOTPAGEOFF]
Lloh23:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_12:
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.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	_ETH_ALEN,4,2                   ; @ETH_ALEN
	.comm	_AMPDU_STREAM_ACTIVE,8,3        ; @AMPDU_STREAM_ACTIVE
	.comm	_AMPDU_STREAM_NEW,8,3           ; @AMPDU_STREAM_NEW
	.comm	_GFP_KERNEL,4,2                 ; @GFP_KERNEL
	.comm	_ENOMEM,4,2                     ; @ENOMEM
	.comm	_MWL8K_CMD_SET_NEW_STN,4,2      ; @MWL8K_CMD_SET_NEW_STN
	.comm	_MWL8K_STA_ACTION_REMOVE,4,2    ; @MWL8K_STA_ACTION_REMOVE
	.no_dead_strip	_mwl8k_cmd_set_new_stn_del
.subsections_via_symbols
