	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function iwlagn_mac_ampdu_action
_iwlagn_mac_ampdu_action:               ## @iwlagn_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, %r15
	movq	%rsi, -64(%rbp)                 ## 8-byte Spill
	callq	_IWL_MAC80211_GET_DVM
	movq	%rax, %r14
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	movq	16(%r15), %rax
	movl	(%r15), %r12d
	movl	4(%r15), %ecx
	movl	%ecx, -68(%rbp)                 ## 4-byte Spill
	movl	12(%r15), %ecx
	movq	8(%rax), %rdx
	movq	%rdx, -80(%rbp)                 ## 8-byte Spill
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	movl	(%rax), %edx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movl	%ecx, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_IWL_DEBUG_HT
	movq	24(%r14), %rax
	cmpl	$0, (%rax)
	je	LBB0_1
## %bb.2:
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_IWL_DEBUG_MAC80211
	movq	%r14, %rdi
	callq	_mutex_lock
	addl	$-128, %r12d
	cmpl	$6, %r12d
	ja	LBB0_19
## %bb.3:
	addq	$8, %r15
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r12,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_10:
	leaq	L_.str.5(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_HT
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_iwlagn_tx_agg_flush
	jmp	LBB0_18
LBB0_1:
	movq	_EACCES@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	movl	%ebx, %r13d
	jmp	LBB0_20
LBB0_11:
	leaq	L_.str.6(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_HT
	movq	%r14, %rdi
	movq	-64(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_iwlagn_tx_agg_stop
	movl	%eax, %r13d
	testl	%eax, %eax
	jne	LBB0_14
## %bb.12:
	movl	8(%r14), %edx
	testl	%edx, %edx
	jle	LBB0_14
## %bb.13:
	decl	%edx
	movl	%edx, 8(%r14)
	leaq	L_.str.7(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_HT
LBB0_14:
	cmpl	$0, 8(%r14)
	jne	LBB0_19
## %bb.15:
	cmpl	$0, 4(%r14)
	je	LBB0_19
## %bb.16:
	movq	_LINK_QUAL_FLAGS_SET_STA_TLC_RTS_MSK@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	notl	%eax
	movq	-80(%rbp), %r15                 ## 8-byte Reload
	andl	%eax, (%r15)
	movq	%rbx, %rdi
	callq	_iwl_rxon_ctx_from_vif
	movq	_CMD_ASYNC@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r14, %rdi
	movl	%eax, %esi
	movq	%r15, %rdx
	xorl	%r8d, %r8d
	callq	_iwl_send_lq_cmd
	jmp	LBB0_19
LBB0_7:
	movq	16(%r14), %rax
	movq	(%rax), %rax
	cmpl	$0, (%rax)
	je	LBB0_19
## %bb.8:
	xorl	%eax, %eax
	callq	_iwl_enable_tx_ampdu
	testl	%eax, %eax
	je	LBB0_19
## %bb.9:
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_HT
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%r15, %r8
	callq	_iwlagn_tx_agg_start
	jmp	LBB0_18
LBB0_17:
	movq	%r14, %rdi
	movq	-64(%rbp), %rsi                 ## 8-byte Reload
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movl	-68(%rbp), %r8d                 ## 4-byte Reload
	callq	_iwlagn_tx_agg_oper
	jmp	LBB0_18
LBB0_6:
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_HT
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_iwl_sta_rx_agg_stop
	jmp	LBB0_18
LBB0_4:
	xorl	%eax, %eax
	callq	_iwl_enable_rx_ampdu
	testl	%eax, %eax
	je	LBB0_19
## %bb.5:
	leaq	L_.str.2(%rip), %rsi
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_IWL_DEBUG_HT
	movl	(%r15), %ecx
	movq	%r14, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_iwl_sta_rx_agg_start
LBB0_18:
	movl	%eax, %r13d
LBB0_19:
	movq	%r14, %rdi
	callq	_mutex_unlock
	leaq	L_.str.8(%rip), %rsi
	movq	%r14, %rdi
	callq	_IWL_DEBUG_MAC80211
LBB0_20:
	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_10, LBB0_10-LJTI0_0
.set L0_0_set_11, LBB0_11-LJTI0_0
.set L0_0_set_7, LBB0_7-LJTI0_0
.set L0_0_set_17, LBB0_17-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_10
	.long	L0_0_set_10
	.long	L0_0_set_11
	.long	L0_0_set_7
	.long	L0_0_set_17
	.long	L0_0_set_6
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"A-MPDU action on addr %pM tid %d\n"

	.comm	_EACCES,4,2                     ## @EACCES
L_.str.1:                               ## @.str.1
	.asciz	"enter\n"

L_.str.2:                               ## @.str.2
	.asciz	"start Rx\n"

L_.str.3:                               ## @.str.3
	.asciz	"stop Rx\n"

L_.str.4:                               ## @.str.4
	.asciz	"start Tx\n"

L_.str.5:                               ## @.str.5
	.asciz	"Flush Tx\n"

L_.str.6:                               ## @.str.6
	.asciz	"stop Tx\n"

L_.str.7:                               ## @.str.7
	.asciz	"priv->agg_tids_count = %u\n"

	.comm	_LINK_QUAL_FLAGS_SET_STA_TLC_RTS_MSK,4,2 ## @LINK_QUAL_FLAGS_SET_STA_TLC_RTS_MSK
	.comm	_CMD_ASYNC,4,2                  ## @CMD_ASYNC
L_.str.8:                               ## @.str.8
	.asciz	"leave\n"

	.no_dead_strip	_iwlagn_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 iwlagn_mac_ampdu_action
_iwlagn_mac_ampdu_action:               ; @iwlagn_mac_ampdu_action
	.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	x25, x2
	mov	x21, x1
	bl	_IWL_MAC80211_GET_DVM
	mov	x19, x0
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh2:
	ldr	w20, [x8]
	ldr	x23, [x25, #16]
	ldr	w22, [x25, #12]
	ldp	w27, w26, [x25]
	ldr	x24, [x23, #8]
	ldr	w8, [x23]
	stp	x8, x22, [sp]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_IWL_DEBUG_HT
	ldr	x8, [x19, #24]
	ldr	w8, [x8]
	cbz	w8, LBB0_4
; %bb.1:
	neg	w20, w20
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_MAC80211
	mov	x0, x19
	bl	_mutex_lock
	sub	w8, w27, #128
	cmp	w8, #6
	b.hi	LBB0_19
; %bb.2:
	add	x25, x25, #8
Lloh7:
	adrp	x9, lJTI0_0@PAGE
Lloh8:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh9:
	adrp	x1, l_.str.5@PAGE
Lloh10:
	add	x1, x1, l_.str.5@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_HT
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	bl	_iwlagn_tx_agg_flush
	b	LBB0_18
LBB0_4:
Lloh11:
	adrp	x8, _EACCES@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh13:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_20
LBB0_5:
Lloh14:
	adrp	x1, l_.str.6@PAGE
Lloh15:
	add	x1, x1, l_.str.6@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_HT
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	bl	_iwlagn_tx_agg_stop
	mov	x20, x0
	cbnz	w0, LBB0_8
; %bb.6:
	ldr	w8, [x19, #8]
	subs	w8, w8, #1
	b.lt	LBB0_8
; %bb.7:
	str	w8, [x19, #8]
	str	x8, [sp]
Lloh16:
	adrp	x1, l_.str.7@PAGE
Lloh17:
	add	x1, x1, l_.str.7@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_HT
LBB0_8:
	ldr	w8, [x19, #8]
	cbnz	w8, LBB0_19
; %bb.9:
	ldr	w8, [x19, #4]
	cbz	w8, LBB0_19
; %bb.10:
Lloh18:
	adrp	x8, _LINK_QUAL_FLAGS_SET_STA_TLC_RTS_MSK@GOTPAGE
Lloh19:
	ldr	x8, [x8, _LINK_QUAL_FLAGS_SET_STA_TLC_RTS_MSK@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	ldr	w9, [x24]
	bic	w8, w9, w8
	str	w8, [x24]
	mov	x0, x21
	bl	_iwl_rxon_ctx_from_vif
	mov	x1, x0
Lloh21:
	adrp	x8, _CMD_ASYNC@GOTPAGE
Lloh22:
	ldr	x8, [x8, _CMD_ASYNC@GOTPAGEOFF]
Lloh23:
	ldr	w3, [x8]
	mov	x0, x19
	mov	x2, x24
	mov	w4, #0
	bl	_iwl_send_lq_cmd
	b	LBB0_19
LBB0_11:
	ldr	x8, [x19, #16]
	ldr	x8, [x8]
	ldr	w8, [x8]
	cbz	w8, LBB0_19
; %bb.12:
	bl	_iwl_enable_tx_ampdu
	cbz	w0, LBB0_19
; %bb.13:
Lloh24:
	adrp	x1, l_.str.4@PAGE
Lloh25:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_HT
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	mov	x4, x25
	bl	_iwlagn_tx_agg_start
	b	LBB0_18
LBB0_14:
	mov	x0, x19
	mov	x1, x21
	mov	x2, x23
	mov	x3, x22
	mov	x4, x26
	bl	_iwlagn_tx_agg_oper
	b	LBB0_18
LBB0_15:
Lloh26:
	adrp	x1, l_.str.3@PAGE
Lloh27:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_HT
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_iwl_sta_rx_agg_stop
	b	LBB0_18
LBB0_16:
	bl	_iwl_enable_rx_ampdu
	cbz	w0, LBB0_19
; %bb.17:
Lloh28:
	adrp	x1, l_.str.2@PAGE
Lloh29:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_HT
	ldr	w3, [x25]
	mov	x0, x19
	mov	x1, x23
	mov	x2, x22
	bl	_iwl_sta_rx_agg_start
LBB0_18:
	mov	x20, x0
LBB0_19:
	mov	x0, x19
	bl	_mutex_unlock
Lloh30:
	adrp	x1, l_.str.8@PAGE
Lloh31:
	add	x1, x1, l_.str.8@PAGEOFF
	mov	x0, x19
	bl	_IWL_DEBUG_MAC80211
LBB0_20:
	mov	x0, x20
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh21, Lloh22, Lloh23
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh24, Lloh25
	.loh AdrpAdd	Lloh26, Lloh27
	.loh AdrpAdd	Lloh28, Lloh29
	.loh AdrpAdd	Lloh30, Lloh31
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_5-LBB0_3)>>2
	.byte	(LBB0_11-LBB0_3)>>2
	.byte	(LBB0_14-LBB0_3)>>2
	.byte	(LBB0_15-LBB0_3)>>2
	.byte	(LBB0_16-LBB0_3)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"A-MPDU action on addr %pM tid %d\n"

	.comm	_EACCES,4,2                     ; @EACCES
l_.str.1:                               ; @.str.1
	.asciz	"enter\n"

l_.str.2:                               ; @.str.2
	.asciz	"start Rx\n"

l_.str.3:                               ; @.str.3
	.asciz	"stop Rx\n"

l_.str.4:                               ; @.str.4
	.asciz	"start Tx\n"

l_.str.5:                               ; @.str.5
	.asciz	"Flush Tx\n"

l_.str.6:                               ; @.str.6
	.asciz	"stop Tx\n"

l_.str.7:                               ; @.str.7
	.asciz	"priv->agg_tids_count = %u\n"

	.comm	_LINK_QUAL_FLAGS_SET_STA_TLC_RTS_MSK,4,2 ; @LINK_QUAL_FLAGS_SET_STA_TLC_RTS_MSK
	.comm	_CMD_ASYNC,4,2                  ; @CMD_ASYNC
l_.str.8:                               ; @.str.8
	.asciz	"leave\n"

	.no_dead_strip	_iwlagn_mac_ampdu_action
.subsections_via_symbols
