	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_mac_ampdu_action        ## -- Begin function il4965_mac_ampdu_action
	.p2align	4, 0x90
_il4965_mac_ampdu_action:               ## @il4965_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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdx, %rbx
	movq	%rsi, -56(%rbp)                 ## 8-byte Spill
	movq	(%rdi), %r12
	movq	_EINVAL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movq	16(%rdx), %r15
	movl	(%rdx), %r14d
	movl	8(%rdx), %edx
	movl	(%r15), %esi
	leaq	L_.str(%rip), %rdi
	xorl	%r13d, %r13d
	movl	%edx, -44(%rbp)                 ## 4-byte Spill
	xorl	%eax, %eax
	callq	_D_HT
	movq	8(%r12), %rax
	movq	_IL_SKU_N@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	testl	%ecx, (%rax)
	je	LBB0_1
## %bb.2:
	movq	%r12, %rdi
	callq	_mutex_lock
	addl	$-128, %r14d
	cmpl	$6, %r14d
	ja	LBB0_3
## %bb.4:
	addq	$4, %rbx
	leaq	LJTI0_0(%rip), %rax
	movslq	(%rax,%r14,4), %rcx
	addq	%rax, %rcx
	jmpq	*%rcx
LBB0_9:
	leaq	L_.str.4(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_D_HT
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	callq	_il4965_tx_agg_stop
	jmp	LBB0_7
LBB0_1:
	movq	_EACCES@GOTPCREL(%rip), %rax
	subl	(%rax), %r13d
	jmp	LBB0_12
LBB0_3:
	movl	-48(%rbp), %r13d                ## 4-byte Reload
	negl	%r13d
	jmp	LBB0_11
LBB0_8:
	leaq	L_.str.3(%rip), %rdi
	xorl	%eax, %eax
	callq	_D_HT
	movq	%r12, %rdi
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	movq	%r15, %rdx
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	movq	%rbx, %r8
	callq	_il4965_tx_agg_start
	movl	%eax, %r13d
	jmp	LBB0_11
LBB0_6:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_D_HT
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_il4965_sta_rx_agg_stop
LBB0_7:
	movl	%eax, %r13d
	movq	_S_EXIT_PENDING@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	4(%r12), %rsi
	callq	_test_bit
	testl	%eax, %eax
	cmovnel	%ebx, %r13d
	jmp	LBB0_11
LBB0_5:
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_D_HT
	movl	(%rbx), %ecx
	movq	%r12, %rdi
	movq	%r15, %rsi
	movl	-44(%rbp), %edx                 ## 4-byte Reload
	callq	_il4965_sta_rx_agg_start
	movl	%eax, %r13d
	jmp	LBB0_11
LBB0_10:
	xorl	%r13d, %r13d
LBB0_11:
	movq	%r12, %rdi
	callq	_mutex_unlock
LBB0_12:
	movl	%r13d, %eax
	addq	$24, %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_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
LJTI0_0:
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_10
	.long	L0_0_set_6
	.long	L0_0_set_5
	.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	_IL_SKU_N,4,2                   ## @IL_SKU_N
	.comm	_EACCES,4,2                     ## @EACCES
L_.str.1:                               ## @.str.1
	.asciz	"start Rx\n"

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

	.comm	_S_EXIT_PENDING,4,2             ## @S_EXIT_PENDING
L_.str.3:                               ## @.str.3
	.asciz	"start Tx\n"

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

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_il4965_mac_ampdu_action        ; -- Begin function il4965_mac_ampdu_action
	.p2align	2
_il4965_mac_ampdu_action:               ; @il4965_mac_ampdu_action
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x23, x2
	mov	x22, x1
Lloh0:
	adrp	x8, _EINVAL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
	ldr	x19, [x0]
Lloh2:
	ldr	w24, [x8]
	ldr	x21, [x2, #16]
	ldr	w25, [x2]
	ldr	w20, [x2, #8]
	ldr	w8, [x21]
	stp	x8, x20, [sp]
Lloh3:
	adrp	x0, l_.str@PAGE
Lloh4:
	add	x0, x0, l_.str@PAGEOFF
	bl	_D_HT
	ldr	x8, [x19, #8]
	ldr	w8, [x8]
Lloh5:
	adrp	x9, _IL_SKU_N@GOTPAGE
Lloh6:
	ldr	x9, [x9, _IL_SKU_N@GOTPAGEOFF]
Lloh7:
	ldr	w9, [x9]
	tst	w9, w8
	b.eq	LBB0_4
; %bb.1:
	mov	x0, x19
	bl	_mutex_lock
	sub	w8, w25, #128
	cmp	w8, #6
	b.hi	LBB0_5
; %bb.2:
	add	x23, x23, #4
Lloh8:
	adrp	x9, lJTI0_0@PAGE
Lloh9:
	add	x9, x9, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x9, x8]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
Lloh10:
	adrp	x0, l_.str.4@PAGE
Lloh11:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_D_HT
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	bl	_il4965_tx_agg_stop
	b	LBB0_8
LBB0_4:
Lloh12:
	adrp	x8, _EACCES@GOTPAGE
Lloh13:
	ldr	x8, [x8, _EACCES@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	neg	w20, w8
	b	LBB0_12
LBB0_5:
	neg	w20, w24
	b	LBB0_11
LBB0_6:
Lloh15:
	adrp	x0, l_.str.3@PAGE
Lloh16:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	_D_HT
	mov	x0, x19
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x23
	bl	_il4965_tx_agg_start
	mov	x20, x0
	b	LBB0_11
LBB0_7:
Lloh17:
	adrp	x0, l_.str.2@PAGE
Lloh18:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_D_HT
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_il4965_sta_rx_agg_stop
LBB0_8:
	mov	x20, x0
Lloh19:
	adrp	x8, _S_EXIT_PENDING@GOTPAGE
Lloh20:
	ldr	x8, [x8, _S_EXIT_PENDING@GOTPAGEOFF]
Lloh21:
	ldr	w0, [x8]
	add	x1, x19, #4
	bl	_test_bit
	cmp	w0, #0
	csel	w20, w20, wzr, eq
	b	LBB0_11
LBB0_9:
Lloh22:
	adrp	x0, l_.str.1@PAGE
Lloh23:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_D_HT
	ldr	w3, [x23]
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_il4965_sta_rx_agg_start
	mov	x20, x0
	b	LBB0_11
LBB0_10:
	mov	w20, #0
LBB0_11:
	mov	x0, x19
	bl	_mutex_unlock
LBB0_12:
	mov	x0, x20
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh17, Lloh18
	.loh AdrpLdrGotLdr	Lloh19, Lloh20, Lloh21
	.loh AdrpAdd	Lloh22, Lloh23
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_9-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	_IL_SKU_N,4,2                   ; @IL_SKU_N
	.comm	_EACCES,4,2                     ; @EACCES
l_.str.1:                               ; @.str.1
	.asciz	"start Rx\n"

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

	.comm	_S_EXIT_PENDING,4,2             ; @S_EXIT_PENDING
l_.str.3:                               ; @.str.3
	.asciz	"start Tx\n"

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

.subsections_via_symbols
