	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwl_mvm_mac_ampdu_action
_iwl_mvm_mac_ampdu_action:              ## @iwl_mvm_mac_ampdu_action
	.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	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %r14
	movq	%rsi, -48(%rbp)                 ## 8-byte Spill
	callq	_IWL_MAC80211_GET_MVM
	movq	%rax, %rbx
	movq	48(%r14), %r12
	movl	(%r14), %r15d
	movq	8(%r14), %rcx
	movq	24(%r14), %rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
	movl	32(%r14), %r13d
	movq	40(%r14), %rax
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movl	(%r12), %edx
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movq	%rcx, -56(%rbp)                 ## 8-byte Spill
	movl	%r15d, %r8d
	callq	_IWL_DEBUG_HT
	movq	16(%rbx), %rax
	cmpl	$0, (%rax)
	je	LBB0_4
## %bb.1:
	addq	$16, %r14
	movq	%rbx, %rdi
	callq	_mutex_lock
	leal	-128(%r15), %eax
	cmpl	$6, %eax
	ja	LBB0_5
## %bb.2:
	leaq	LJTI0_0(%rip), %rcx
	movslq	(%rcx,%rax,4), %rax
	addq	%rcx, %rax
	jmpq	*%rax
LBB0_3:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_iwl_mvm_sta_tx_agg_flush
	jmp	LBB0_15
LBB0_4:
	movq	_EACCES@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_24
LBB0_5:
	movl	$1, %edi
	callq	_WARN_ON_ONCE
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r13d, %r13d
	jmp	LBB0_18
LBB0_6:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	callq	_iwl_mvm_sta_tx_agg_stop
	jmp	LBB0_15
LBB0_7:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_iwl_enable_tx_ampdu
	testl	%eax, %eax
	je	LBB0_17
## %bb.8:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	%r14, %r8
	callq	_iwl_mvm_sta_tx_agg_start
	jmp	LBB0_15
LBB0_9:
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	jmp	LBB0_14
LBB0_10:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	callq	_iwl_mvm_vif_from_mac80211
	movl	12(%rax), %r13d
	movq	%r12, %rdi
	callq	_iwl_mvm_sta_from_mac80211
	cmpl	(%rax), %r13d
	jne	LBB0_12
## %bb.11:
	movq	-48(%rbp), %r13                 ## 8-byte Reload
	movq	%r13, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	movq	(%rax), %rax
	movq	8(%rbx), %rcx
	movl	$1, (%rcx,%rax,4)
	movq	%r13, %rdi
	callq	_iwl_mvm_vif_from_mac80211
	leaq	8(%rax), %rdi
	callq	_cancel_delayed_work
LBB0_12:
	xorl	%r13d, %r13d
	xorl	%eax, %eax
	callq	_iwl_enable_rx_ampdu
	testl	%eax, %eax
	je	LBB0_17
## %bb.13:
	movq	(%r14), %rcx
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	movq	%rax, (%rsp)
	movq	%rbx, %rdi
	movq	%r12, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	$1, %r8d
LBB0_14:
	movq	-64(%rbp), %r9                  ## 8-byte Reload
	callq	_iwl_mvm_sta_rx_agg
	jmp	LBB0_15
LBB0_16:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movq	-64(%rbp), %r8                  ## 8-byte Reload
	movl	%r13d, %r9d
	callq	_iwl_mvm_sta_tx_agg_oper
LBB0_15:
	movl	%eax, %r13d
	testl	%r13d, %r13d
	jne	LBB0_23
	jmp	LBB0_19
LBB0_17:
	movq	_EINVAL@GOTPCREL(%rip), %rax
LBB0_18:
	subl	(%rax), %r13d
	testl	%r13d, %r13d
	jne	LBB0_23
LBB0_19:
	cmpl	$134, %r15d
	jne	LBB0_21
## %bb.20:
	movq	(%r14), %r8
	jmp	LBB0_22
LBB0_21:
	xorl	%r8d, %r8d
LBB0_22:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %rdx
	movq	-56(%rbp), %rcx                 ## 8-byte Reload
	movl	%r15d, %r9d
	callq	_iwl_mvm_ampdu_check_trigger
LBB0_23:
	movq	%rbx, %rdi
	callq	_mutex_unlock
LBB0_24:
	movl	%r13d, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_3, LBB0_3-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_16, LBB0_16-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
LJTI0_0:
	.long	L0_0_set_3
	.long	L0_0_set_3
	.long	L0_0_set_6
	.long	L0_0_set_7
	.long	L0_0_set_16
	.long	L0_0_set_9
	.long	L0_0_set_10
	.end_data_region
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"A-MPDU action on addr %pM tid %d: action %d\n"

	.comm	_EACCES,4,2                     ## @EACCES
	.comm	_EINVAL,4,2                     ## @EINVAL
	.no_dead_strip	_iwl_mvm_mac_ampdu_action
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function iwl_mvm_mac_ampdu_action
_iwl_mvm_mac_ampdu_action:              ; @iwl_mvm_mac_ampdu_action
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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	x24, x2
	mov	x20, x1
	bl	_IWL_MAC80211_GET_MVM
	mov	x19, x0
	ldr	w21, [x24]
	ldr	x22, [x24, #8]
	ldr	x25, [x24, #24]
	ldr	w27, [x24, #32]
	ldp	x26, x23, [x24, #40]
	ldr	w2, [x23]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x3, x22
	mov	x4, x21
	bl	_IWL_DEBUG_HT
	ldr	x8, [x19, #16]
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
	add	x24, x24, #16
	mov	x0, x19
	bl	_mutex_lock
	sub	w8, w21, #128
	cmp	w8, #6
	b.hi	LBB0_5
; %bb.2:
Lloh2:
	adrp	x9, lJTI0_0@PAGE
Lloh3:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	bl	_iwl_mvm_sta_tx_agg_flush
	mov	x25, x0
	cbnz	w25, LBB0_21
	b	LBB0_17
LBB0_4:
Lloh4:
	adrp	x8, _EACCES@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w25, w8
	b	LBB0_22
LBB0_5:
	mov	w0, #1
	bl	_WARN_ON_ONCE
	b	LBB0_15
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	bl	_iwl_mvm_sta_tx_agg_stop
	mov	x25, x0
	cbnz	w25, LBB0_21
	b	LBB0_17
LBB0_7:
	bl	_iwl_enable_tx_ampdu
	cbz	w0, LBB0_15
; %bb.8:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	mov	x4, x24
	bl	_iwl_mvm_sta_tx_agg_start
	mov	x25, x0
	cbnz	w25, LBB0_21
	b	LBB0_17
LBB0_9:
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	x3, #0
	mov	w4, #0
	b	LBB0_14
LBB0_10:
	mov	x0, x20
	bl	_iwl_mvm_vif_from_mac80211
	ldr	w27, [x0, #12]
	mov	x0, x23
	bl	_iwl_mvm_sta_from_mac80211
	ldr	w8, [x0]
	cmp	w27, w8
	b.ne	LBB0_12
; %bb.11:
	mov	x0, x20
	bl	_iwl_mvm_vif_from_mac80211
	ldr	x8, [x0]
	ldr	x9, [x19, #8]
	mov	w10, #1
	str	w10, [x9, x8, lsl #2]
	mov	x0, x20
	bl	_iwl_mvm_vif_from_mac80211
	add	x0, x0, #8
	bl	_cancel_delayed_work
LBB0_12:
	bl	_iwl_enable_rx_ampdu
	cbz	w0, LBB0_15
; %bb.13:
	ldr	x3, [x24]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	mov	w4, #1
LBB0_14:
	mov	x5, x25
	mov	x6, x26
	bl	_iwl_mvm_sta_rx_agg
	mov	x25, x0
	cbnz	w25, LBB0_21
	b	LBB0_17
LBB0_15:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w25, w8
	cbnz	w25, LBB0_21
	b	LBB0_17
LBB0_16:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	mov	x4, x25
	mov	x5, x27
	bl	_iwl_mvm_sta_tx_agg_oper
	mov	x25, x0
	cbnz	w25, LBB0_21
LBB0_17:
	cmp	w21, #134
	b.ne	LBB0_19
; %bb.18:
	ldr	x4, [x24]
	b	LBB0_20
LBB0_19:
	mov	x4, #0
LBB0_20:
	mov	x0, x19
	mov	x1, x20
	mov	x2, x23
	mov	x3, x22
	mov	x5, x21
	bl	_iwl_mvm_ampdu_check_trigger
LBB0_21:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_22:
	mov	x0, x25
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"A-MPDU action on addr %pM tid %d: action %d\n"

	.comm	_EACCES,4,2                     ; @EACCES
	.comm	_EINVAL,4,2                     ; @EINVAL
	.no_dead_strip	_iwl_mvm_mac_ampdu_action
.subsections_via_symbols
