	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76x02_ampdu_action           ## -- Begin function mt76x02_ampdu_action
	.p2align	4, 0x90
_mt76x02_ampdu_action:                  ## @mt76x02_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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	32(%rdx), %r15
	movq	8(%r15), %rax
	movq	8(%rdx), %r14
	movq	(%rax,%r14,8), %r8
	testq	%r8, %r8
	je	LBB0_1
## %bb.2:
	movl	(%rdx), %ebx
	xorl	%eax, %eax
	addl	$-128, %ebx
	cmpl	$6, %ebx
	ja	LBB0_11
## %bb.3:
	movq	%rsi, %r12
	movq	(%rdi), %r9
	movq	16(%r15), %rsi
	movq	16(%rdx), %rcx
	movq	(%r8), %r13
	leaq	LJTI0_0(%rip), %rdi
	movslq	(%rdi,%rbx,4), %rbx
	addq	%rdi, %rbx
	jmpq	*%rbx
LBB0_7:
	movl	$0, (%r13)
	jmp	LBB0_11
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_11
LBB0_9:
	movl	$0, (%r13)
	movl	(%r15), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_ieee80211_stop_tx_ba_cb_irqsafe
	jmp	LBB0_10
LBB0_8:
	movq	%rcx, %rdi
	callq	_IEEE80211_SN_TO_SEQ
	movl	%eax, 8(%r13)
	movl	(%r15), %esi
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_ieee80211_start_tx_ba_cb_irqsafe
	jmp	LBB0_10
LBB0_5:
	movq	%r9, %r15
	movq	%r9, %rdi
	movq	%r14, %rdx
	movq	%rsi, %rbx
	callq	_mt76_rx_aggr_stop
	movl	(%rbx), %edi
	callq	_MT_WCID_ADDR
                                        ## kill: def $eax killed $eax def $rax
	leal	4(%rax), %r12d
	addl	$16, %r14d
	movl	%r14d, %edi
	callq	_BIT
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_mt76_clear
	jmp	LBB0_10
LBB0_4:
	movl	24(%rdx), %r8d
	movq	%r9, %r15
	movq	%r9, %rdi
	movq	%r14, %rdx
	movq	%rsi, %rbx
	callq	_mt76_rx_aggr_start
	movl	(%rbx), %edi
	callq	_MT_WCID_ADDR
                                        ## kill: def $eax killed $eax def $rax
	leal	4(%rax), %r12d
	addl	$16, %r14d
	movl	%r14d, %edi
	callq	_BIT
	movq	%r15, %rdi
	movl	%r12d, %esi
	movl	%eax, %edx
	callq	_mt76_set
	jmp	LBB0_10
LBB0_6:
	movq	$1, (%r13)
	movl	(%r15), %esi
	movl	8(%r13), %ecx
	movq	%r12, %rdi
	movq	%r14, %rdx
	callq	_ieee80211_send_bar
LBB0_10:
	xorl	%eax, %eax
LBB0_11:
	addq	$8, %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_7, LBB0_7-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
.set L0_0_set_6, LBB0_6-LJTI0_0
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_4, LBB0_4-LJTI0_0
LJTI0_0:
	.long	L0_0_set_7
	.long	L0_0_set_7
	.long	L0_0_set_9
	.long	L0_0_set_8
	.long	L0_0_set_6
	.long	L0_0_set_5
	.long	L0_0_set_4
	.end_data_region
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.section	__TEXT,__literal8,8byte_literals
	.p2align	3                               ; -- Begin function mt76x02_ampdu_action
lCPI0_0:
	.long	1                               ; 0x1
	.long	0                               ; 0x0
	.section	__TEXT,__text,regular,pure_instructions
	.globl	_mt76x02_ampdu_action
	.p2align	2
_mt76x02_ampdu_action:                  ; @mt76x02_ampdu_action
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	ldr	x23, [x2, #32]
	ldr	x8, [x23, #8]
	ldr	x19, [x2, #8]
	ldr	x8, [x8, x19, lsl #3]
	cbz	x8, LBB0_4
; %bb.1:
	ldr	w9, [x2]
	sub	w9, w9, #128
	cmp	w9, #6
	b.hi	LBB0_10
; %bb.2:
	mov	x21, x1
	ldr	x20, [x0]
	ldr	x22, [x23, #16]
	ldr	x3, [x2, #16]
	ldr	x24, [x8]
Lloh0:
	adrp	x8, lJTI0_0@PAGE
Lloh1:
	add	x8, x8, lJTI0_0@PAGEOFF
	adr	x10, LBB0_3
	ldrb	w11, [x8, x9]
	add	x10, x10, x11, lsl #2
	br	x10
LBB0_3:
	mov	w0, #0
	str	wzr, [x24]
	b	LBB0_11
LBB0_4:
Lloh2:
	adrp	x8, _EINVAL@GOTPAGE
Lloh3:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_11
LBB0_5:
	str	wzr, [x24]
	ldr	w1, [x23]
	mov	x0, x21
	mov	x2, x19
	bl	_ieee80211_stop_tx_ba_cb_irqsafe
	b	LBB0_10
LBB0_6:
	mov	x0, x3
	bl	_IEEE80211_SN_TO_SEQ
	str	w0, [x24, #8]
	ldr	w1, [x23]
	mov	x0, x21
	mov	x2, x19
	bl	_ieee80211_start_tx_ba_cb_irqsafe
	b	LBB0_10
LBB0_7:
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_mt76_rx_aggr_stop
	ldr	w0, [x22]
	bl	_MT_WCID_ADDR
	add	w21, w0, #4
	add	w0, w19, #16
	bl	_BIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_mt76_clear
	b	LBB0_10
LBB0_8:
	ldr	w4, [x2, #24]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x19
	bl	_mt76_rx_aggr_start
	ldr	w0, [x22]
	bl	_MT_WCID_ADDR
	add	w21, w0, #4
	add	w0, w19, #16
	bl	_BIT
	mov	x2, x0
	mov	x0, x20
	mov	x1, x21
	bl	_mt76_set
	b	LBB0_10
LBB0_9:
Lloh5:
	adrp	x8, lCPI0_0@PAGE
Lloh6:
	ldr	d0, [x8, lCPI0_0@PAGEOFF]
	str	d0, [x24]
	ldr	w1, [x23]
	ldr	w3, [x24, #8]
	mov	x0, x21
	mov	x2, x19
	bl	_ieee80211_send_bar
LBB0_10:
	mov	w0, #0
LBB0_11:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdr	Lloh5, Lloh6
	.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_6-LBB0_3)>>2
	.byte	(LBB0_9-LBB0_3)>>2
	.byte	(LBB0_7-LBB0_3)>>2
	.byte	(LBB0_8-LBB0_3)>>2
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
.subsections_via_symbols
