	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwlagn_tx_agg_stop             ## -- Begin function iwlagn_tx_agg_stop
	.p2align	4, 0x90
_iwlagn_tx_agg_stop:                    ## @iwlagn_tx_agg_stop
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r15
	movq	%rdx, %rbx
	movq	%rsi, %r14
	movq	%rdi, %r12
	movq	%rdx, %rdi
	callq	_iwl_sta_id
	movl	%eax, %r13d
	movq	_IWL_INVALID_STATION@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r13d
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rsi
	movq	%r12, %rdi
	movq	%r15, %rdx
	callq	_IWL_ERR
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_20
LBB0_2:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r14, -104(%rbp)                ## 8-byte Spill
	leaq	8(%r12), %rdi
	movq	%rdi, -48(%rbp)                 ## 8-byte Spill
	callq	_spin_lock_bh
	movq	%r12, -72(%rbp)                 ## 8-byte Spill
	movq	16(%r12), %rax
	movslq	%r13d, %rcx
	movq	(%rax,%rcx,8), %r12
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	leaq	(%r15,%r15,4), %r14
	movl	4(%r12,%r14,4), %r15d
	movl	8(%r12,%r14,4), %r8d
	leaq	(%r12,%r14,4), %rbx
	addq	$8, %rbx
	cmpl	$130, %r8d
	je	LBB0_8
## %bb.3:
	cmpl	$129, %r8d
	je	LBB0_6
## %bb.4:
	cmpl	$128, %r8d
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %r14                 ## 8-byte Reload
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	jne	LBB0_7
## %bb.5:
	leaq	L_.str.1(%rip), %rsi
	movq	%r12, %rdi
	callq	_IWL_DEBUG_HT
	jmp	LBB0_13
LBB0_8:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movl	16(%r12,%r14,4), %edi
	callq	_IEEE80211_SEQ_TO_SN
	leaq	(%r12,%r14,4), %rcx
	addq	$12, %rcx
	movq	%rcx, -96(%rbp)                 ## 8-byte Spill
	movl	%eax, 12(%r12,%r14,4)
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	movl	4(%rbx), %esi
	movl	%r15d, %edi
	movl	%r15d, -84(%rbp)                ## 4-byte Spill
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_9
## %bb.10:
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movl	(%r12,%r14,4), %ecx
	cmpl	%ecx, %edx
	movq	%rbx, %r12
	je	LBB0_11
## %bb.21:
	leaq	L_.str.5(%rip), %rsi
	xorl	%ebx, %ebx
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TX_QUEUES
	movq	_IWL_EMPTYING_HW_QUEUE_DELBA@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%eax, (%rcx)
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_bh
	jmp	LBB0_20
LBB0_6:
	leaq	L_.str.2(%rip), %rsi
	movq	-72(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	callq	_IWL_DEBUG_HT
	jmp	LBB0_12
LBB0_7:
	leaq	L_.str.3(%rip), %rsi
	movq	%r12, %rdi
	movl	%r13d, %edx
	callq	_IWL_WARN
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_spin_unlock_bh
	jmp	LBB0_19
LBB0_9:
	leaq	L_.str.4(%rip), %rsi
	movq	%rbx, %rdi
	movl	%r13d, %edx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
	movl	-84(%rbp), %r15d                ## 4-byte Reload
	movl	%r15d, %r8d
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TX_QUEUES
	movq	-96(%rbp), %rax                 ## 8-byte Reload
	movl	(%rax), %edx
	movq	%rbx, %r12
LBB0_11:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	leaq	L_.str.6(%rip), %rsi
	movq	%r12, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TX_QUEUES
LBB0_12:
	movq	-64(%rbp), %r14                 ## 8-byte Reload
LBB0_13:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rcx
	movl	(%rbx), %ebx
	movq	_IWL_AGG_OFF@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rcx)
	callq	_spin_unlock_bh
	movl	4(%r12), %esi
	movl	%r15d, %edi
	callq	_test_bit
	testq	%rax, %rax
	je	LBB0_18
## %bb.14:
	cmpl	$130, %ebx
	jne	LBB0_16
## %bb.15:
	movl	(%r12), %edi
	movl	%r15d, %esi
	movl	$1, %edx
	callq	_iwl_trans_txq_disable
	jmp	LBB0_17
LBB0_16:
	leaq	L_.str.7(%rip), %rsi
	movq	%r12, %rdi
	movl	%ebx, %edx
	xorl	%eax, %eax
	callq	_IWL_DEBUG_TX_QUEUES
LBB0_17:
	movq	%r12, %rdi
	movl	%r15d, %esi
	callq	_iwlagn_dealloc_agg_txq
LBB0_18:
	movl	(%r14), %esi
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	movq	-80(%rbp), %rdx                 ## 8-byte Reload
	callq	_ieee80211_stop_tx_ba_cb_irqsafe
LBB0_19:
	xorl	%ebx, %ebx
LBB0_20:
	movl	%ebx, %eax
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_IWL_INVALID_STATION,4,2        ## @IWL_INVALID_STATION
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Invalid station for AGG tid %d\n"

	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.1:                               ## @.str.1
	.asciz	"AGG stop before setup done\n"

L_.str.2:                               ## @.str.2
	.asciz	"AGG stop before AGG became operational\n"

L_.str.3:                               ## @.str.3
	.asciz	"Stopping AGG while state not ON or starting for %d on %d (%d)\n"

L_.str.4:                               ## @.str.4
	.asciz	"stopping AGG on STA/TID %d/%d but hwq %d not used\n"

L_.str.5:                               ## @.str.5
	.asciz	"Can't proceed: ssn %d, next_recl = %d\n"

	.comm	_IWL_EMPTYING_HW_QUEUE_DELBA,4,2 ## @IWL_EMPTYING_HW_QUEUE_DELBA
L_.str.6:                               ## @.str.6
	.asciz	"Can proceed: ssn = next_recl = %d\n"

	.comm	_IWL_AGG_OFF,4,2                ## @IWL_AGG_OFF
L_.str.7:                               ## @.str.7
	.asciz	"Don't disable tx agg: %d\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_iwlagn_tx_agg_stop             ; -- Begin function iwlagn_tx_agg_stop
	.p2align	2
_iwlagn_tx_agg_stop:                    ; @iwlagn_tx_agg_stop
	.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	x19, x3
	mov	x22, x2
	mov	x21, x1
	mov	x20, x0
	mov	x0, x2
	bl	_iwl_sta_id
Lloh0:
	adrp	x8, _IWL_INVALID_STATION@GOTPAGE
Lloh1:
	ldr	x8, [x8, _IWL_INVALID_STATION@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmp	w0, w8
	b.ne	LBB0_2
; %bb.1:
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x19
	bl	_IWL_ERR
Lloh5:
	adrp	x8, _ENXIO@GOTPAGE
Lloh6:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_2:
	mov	x25, x0
	add	x23, x20, #8
	mov	x0, x23
	bl	_spin_lock_bh
	ldr	x8, [x20, #16]
	ldr	x27, [x8, w25, sxtw #3]
	mov	w8, #20
	madd	x26, x19, x8, x27
	ldr	w4, [x26, #8]!
	ldur	w24, [x26, #-4]
	cmp	w4, #130
	b.eq	LBB0_6
; %bb.3:
	cmp	w4, #129
	b.eq	LBB0_9
; %bb.4:
	cmp	w4, #128
	b.ne	LBB0_11
; %bb.5:
Lloh8:
	adrp	x1, l_.str.1@PAGE
Lloh9:
	add	x1, x1, l_.str.1@PAGEOFF
	b	LBB0_10
LBB0_6:
	mov	w8, #20
	madd	x28, x19, x8, x27
	ldr	w0, [x28, #16]
	bl	_IEEE80211_SEQ_TO_SN
	str	w0, [x28, #12]!
	ldr	w1, [x20, #4]
	mov	x0, x24
	bl	_test_bit
	cbz	x0, LBB0_13
; %bb.7:
	ldr	w2, [x28]
	mov	w8, #20
	mul	x8, x19, x8
	ldr	w8, [x27, x8]
	cmp	w2, w8
	b.eq	LBB0_14
; %bb.8:
	str	x8, [sp]
Lloh10:
	adrp	x1, l_.str.5@PAGE
Lloh11:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x20
	bl	_IWL_DEBUG_TX_QUEUES
Lloh12:
	adrp	x8, _IWL_EMPTYING_HW_QUEUE_DELBA@GOTPAGE
Lloh13:
	ldr	x8, [x8, _IWL_EMPTYING_HW_QUEUE_DELBA@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x26]
	b	LBB0_12
LBB0_9:
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
LBB0_10:
	mov	x0, x20
	bl	_IWL_DEBUG_HT
	b	LBB0_15
LBB0_11:
Lloh17:
	adrp	x1, l_.str.3@PAGE
Lloh18:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	mov	x2, x25
	mov	x3, x19
	bl	_IWL_WARN
LBB0_12:
	mov	x0, x23
	bl	_spin_unlock_bh
	b	LBB0_21
LBB0_13:
	stp	x19, x24, [sp]
Lloh19:
	adrp	x1, l_.str.4@PAGE
Lloh20:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	mov	x2, x25
	bl	_IWL_DEBUG_TX_QUEUES
	ldr	w2, [x28]
LBB0_14:
Lloh21:
	adrp	x1, l_.str.6@PAGE
Lloh22:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x20
	bl	_IWL_DEBUG_TX_QUEUES
LBB0_15:
	ldr	w25, [x26]
Lloh23:
	adrp	x8, _IWL_AGG_OFF@GOTPAGE
Lloh24:
	ldr	x8, [x8, _IWL_AGG_OFF@GOTPAGEOFF]
Lloh25:
	ldr	w8, [x8]
	str	w8, [x26]
	mov	x0, x23
	bl	_spin_unlock_bh
	ldr	w1, [x20, #4]
	mov	x0, x24
	bl	_test_bit
	cbz	x0, LBB0_20
; %bb.16:
	cmp	w25, #130
	b.ne	LBB0_18
; %bb.17:
	ldr	w0, [x20]
	mov	x1, x24
	mov	w2, #1
	bl	_iwl_trans_txq_disable
	b	LBB0_19
LBB0_18:
Lloh26:
	adrp	x1, l_.str.7@PAGE
Lloh27:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x20
	mov	x2, x25
	bl	_IWL_DEBUG_TX_QUEUES
LBB0_19:
	mov	x0, x20
	mov	x1, x24
	bl	_iwlagn_dealloc_agg_txq
LBB0_20:
	ldr	w1, [x22]
	mov	x0, x21
	mov	x2, x19
	bl	_ieee80211_stop_tx_ba_cb_irqsafe
LBB0_21:
	mov	w0, #0
LBB0_22:
	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 AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_IWL_INVALID_STATION,4,2        ; @IWL_INVALID_STATION
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Invalid station for AGG tid %d\n"

	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.1:                               ; @.str.1
	.asciz	"AGG stop before setup done\n"

l_.str.2:                               ; @.str.2
	.asciz	"AGG stop before AGG became operational\n"

l_.str.3:                               ; @.str.3
	.asciz	"Stopping AGG while state not ON or starting for %d on %d (%d)\n"

l_.str.4:                               ; @.str.4
	.asciz	"stopping AGG on STA/TID %d/%d but hwq %d not used\n"

l_.str.5:                               ; @.str.5
	.asciz	"Can't proceed: ssn %d, next_recl = %d\n"

	.comm	_IWL_EMPTYING_HW_QUEUE_DELBA,4,2 ; @IWL_EMPTYING_HW_QUEUE_DELBA
l_.str.6:                               ; @.str.6
	.asciz	"Can proceed: ssn = next_recl = %d\n"

	.comm	_IWL_AGG_OFF,4,2                ; @IWL_AGG_OFF
l_.str.7:                               ; @.str.7
	.asciz	"Don't disable tx agg: %d\n"

.subsections_via_symbols
