	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function mt76_rx_aggr_check_ctl
_mt76_rx_aggr_check_ctl:                ## @mt76_rx_aggr_check_ctl
	.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	%rsi, %r15
	movq	(%rdi), %rbx
	movq	8(%rdi), %r13
	movq	8(%r13), %r12
	movl	8(%rbx), %edi
	callq	_ieee80211_is_ctl
	testl	%eax, %eax
	je	LBB0_3
## %bb.1:
	movl	8(%rbx), %edi
	callq	_ieee80211_is_back_req
	testl	%eax, %eax
	je	LBB0_3
## %bb.2:
	movl	4(%rbx), %edi
	callq	_le16_to_cpu
	sarl	$12, %eax
	movl	%eax, (%r13)
	movl	(%rbx), %edi
	callq	_le16_to_cpu
	movl	%eax, %edi
	callq	_IEEE80211_SEQ_TO_SN
	movl	%eax, %r14d
	movq	(%r12), %rax
	movslq	(%r13), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_spin_lock_bh
	movq	%rbx, %rdi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_mt76_rx_aggr_release_frames
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_mt76_rx_aggr_release_head
	movq	%rbx, %rdi
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
LBB0_3:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	_mt76_rx_aggr_check_ctl
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function mt76_rx_aggr_check_ctl
_mt76_rx_aggr_check_ctl:                ; @mt76_rx_aggr_check_ctl
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	mov	x19, x1
	ldp	x20, x21, [x0]
	ldr	x22, [x21, #8]
	ldr	w0, [x20, #8]
	bl	_ieee80211_is_ctl
	cbz	w0, LBB0_4
; %bb.1:
	ldr	w0, [x20, #8]
	bl	_ieee80211_is_back_req
	cbz	w0, LBB0_4
; %bb.2:
	ldr	w0, [x20, #4]
	bl	_le16_to_cpu
	asr	w8, w0, #12
	str	w8, [x21]
	ldr	w0, [x20]
	bl	_le16_to_cpu
	bl	_IEEE80211_SEQ_TO_SN
	mov	x20, x0
	ldr	x8, [x22]
	ldrsw	x9, [x21]
	ldr	w0, [x8, x9, lsl #2]
	bl	_rcu_dereference
	cbz	x0, LBB0_4
; %bb.3:
	mov	x21, x0
	bl	_spin_lock_bh
	mov	x0, x21
	mov	x1, x19
	mov	x2, x20
	bl	_mt76_rx_aggr_release_frames
	mov	x0, x21
	mov	x1, x19
	bl	_mt76_rx_aggr_release_head
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	b	_spin_unlock_bh
LBB0_4:
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	_mt76_rx_aggr_check_ctl
.subsections_via_symbols
