	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76_rx_aggr_reorder           ## -- Begin function mt76_rx_aggr_reorder
	.p2align	4, 0x90
_mt76_rx_aggr_reorder:                  ## @mt76_rx_aggr_reorder
	.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	%rsi, %r14
	movq	%rdi, %r15
	movq	(%rdi), %r12
	movq	8(%rdi), %r13
	movq	32(%r13), %rbx
	movq	%rsi, %rdi
	movq	%r15, %rsi
	callq	___skb_queue_tail
	movq	%rbx, %rdi
	callq	_wcid_to_sta
	testq	%rax, %rax
	je	LBB0_24
## %bb.1:
	cmpl	$0, 24(%r13)
	je	LBB0_25
## %bb.2:
	movq	%r12, %rdi
	callq	_ieee80211_get_qos_ctl
	movq	_IEEE80211_QOS_CTL_ACK_POLICY_MASK@GOTPCREL(%rip), %rcx
	movq	(%rcx), %rcx
	andq	(%rax), %rcx
	movq	_IEEE80211_QOS_CTL_ACK_POLICY_BLOCKACK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	je	LBB0_4
## %bb.3:
	movq	_IEEE80211_QOS_CTL_ACK_POLICY_NORMAL@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rcx
	jne	LBB0_24
LBB0_4:
	movq	(%rbx), %rax
	movq	(%r13), %rcx
	movl	(%rax,%rcx,4), %edi
	callq	_rcu_dereference
	testq	%rax, %rax
	je	LBB0_24
## %bb.5:
	movq	%rax, %r12
	movq	_RX_FLAG_DUP_VALIDATED@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	orl	%eax, 20(%r13)
	leaq	20(%r12), %rbx
	movq	%rbx, %rdi
	callq	_spin_lock_bh
	cmpq	$0, 56(%r12)
	jne	LBB0_23
## %bb.6:
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	(%r12), %rsi
	movq	8(%r12), %rax
	movq	%rax, -48(%rbp)                 ## 8-byte Spill
	movq	8(%r13), %rdi
	movq	%rdi, -64(%rbp)                 ## 8-byte Spill
	movq	%rsi, -72(%rbp)                 ## 8-byte Spill
	callq	_ieee80211_sn_less
	cmpl	$0, 16(%r12)
	je	LBB0_7
## %bb.12:
	testl	%eax, %eax
	je	LBB0_9
## %bb.13:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	___skb_unlink
	jmp	LBB0_20
LBB0_24:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_25:
	movq	%r15, %rdi
	movq	%r14, %rsi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_mt76_rx_aggr_check_ctl         ## TAILCALL
LBB0_7:
	testl	%eax, %eax
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	jne	LBB0_23
## %bb.8:
	movl	$1, 16(%r12)
LBB0_9:
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rbx, %rax
	jne	LBB0_14
## %bb.10:
	movq	%rbx, %rdi
	callq	_ieee80211_sn_inc
	movq	%rax, (%r12)
	cmpq	$0, 40(%r12)
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	je	LBB0_23
## %bb.11:
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_mt76_rx_aggr_release_head
	jmp	LBB0_23
LBB0_14:
	movq	%r15, %rdi
	movq	%r14, %rsi
	callq	___skb_unlink
	addq	-48(%rbp), %rbx                 ## 8-byte Folded Reload
	movq	-64(%rbp), %rdi                 ## 8-byte Reload
	movq	%rbx, %rsi
	movq	%rdi, %rbx
	callq	_ieee80211_sn_less
	testl	%eax, %eax
	jne	LBB0_16
## %bb.15:
	movq	%rbx, %rdi
	movq	-48(%rbp), %rsi                 ## 8-byte Reload
	callq	_ieee80211_sn_sub
	movq	%rax, %rdi
	callq	_ieee80211_sn_inc
	movq	%r12, %rdi
	movq	%r14, %rsi
	movq	%rax, %rdx
	callq	_mt76_rx_aggr_release_frames
LBB0_16:
	movq	%rbx, %rax
	orq	-48(%rbp), %rax                 ## 8-byte Folded Reload
	shrq	$32, %rax
	je	LBB0_17
## %bb.18:
	movq	%rbx, %rax
	xorl	%edx, %edx
	divq	-48(%rbp)                       ## 8-byte Folded Reload
	jmp	LBB0_19
LBB0_17:
	movl	%ebx, %eax
	xorl	%edx, %edx
	divl	-48(%rbp)                       ## 4-byte Folded Reload
                                        ## kill: def $edx killed $edx def $rdx
LBB0_19:
	movq	48(%r12), %rax
	cmpq	$0, (%rax,%rdx,8)
	je	LBB0_21
LBB0_20:
	movq	%r15, %rdi
	callq	_dev_kfree_skb
LBB0_22:
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
LBB0_23:
	movq	%rbx, %rdi
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_spin_unlock_bh                 ## TAILCALL
LBB0_21:
	movq	_jiffies@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movl	%ecx, 16(%r13)
	movq	%r15, (%rax,%rdx,8)
	incq	40(%r12)
	movq	%r12, %rdi
	movq	%r14, %rsi
	callq	_mt76_rx_aggr_release_head
	movq	32(%r12), %rax
	movl	(%rax), %edi
	addq	$24, %r12
	movq	_REORDER_TIMEOUT@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	%r12, %rsi
	callq	_ieee80211_queue_delayed_work
	jmp	LBB0_22
	.cfi_endproc
                                        ## -- End function
	.comm	_IEEE80211_QOS_CTL_ACK_POLICY_MASK,8,3 ## @IEEE80211_QOS_CTL_ACK_POLICY_MASK
	.comm	_IEEE80211_QOS_CTL_ACK_POLICY_BLOCKACK,8,3 ## @IEEE80211_QOS_CTL_ACK_POLICY_BLOCKACK
	.comm	_IEEE80211_QOS_CTL_ACK_POLICY_NORMAL,8,3 ## @IEEE80211_QOS_CTL_ACK_POLICY_NORMAL
	.comm	_RX_FLAG_DUP_VALIDATED,4,2      ## @RX_FLAG_DUP_VALIDATED
	.comm	_jiffies,4,2                    ## @jiffies
	.comm	_REORDER_TIMEOUT,4,2            ## @REORDER_TIMEOUT
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_mt76_rx_aggr_reorder           ; -- Begin function mt76_rx_aggr_reorder
	.p2align	2
_mt76_rx_aggr_reorder:                  ; @mt76_rx_aggr_reorder
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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	x19, x1
	mov	x20, x0
	ldp	x22, x26, [x0]
	ldr	x21, [x26, #32]
	mov	x0, x1
	mov	x1, x20
	bl	___skb_queue_tail
	mov	x0, x21
	bl	_wcid_to_sta
	cbz	x0, LBB0_8
; %bb.1:
	ldr	w8, [x26, #24]
	cbz	w8, LBB0_9
; %bb.2:
	mov	x0, x22
	bl	_ieee80211_get_qos_ctl
	ldr	x8, [x0]
Lloh0:
	adrp	x9, _IEEE80211_QOS_CTL_ACK_POLICY_MASK@GOTPAGE
Lloh1:
	ldr	x9, [x9, _IEEE80211_QOS_CTL_ACK_POLICY_MASK@GOTPAGEOFF]
Lloh2:
	ldr	x9, [x9]
	and	x8, x9, x8
Lloh3:
	adrp	x9, _IEEE80211_QOS_CTL_ACK_POLICY_BLOCKACK@GOTPAGE
Lloh4:
	ldr	x9, [x9, _IEEE80211_QOS_CTL_ACK_POLICY_BLOCKACK@GOTPAGEOFF]
Lloh5:
	ldr	x9, [x9]
Lloh6:
	adrp	x10, _IEEE80211_QOS_CTL_ACK_POLICY_NORMAL@GOTPAGE
Lloh7:
	ldr	x10, [x10, _IEEE80211_QOS_CTL_ACK_POLICY_NORMAL@GOTPAGEOFF]
Lloh8:
	ldr	x10, [x10]
	cmp	x8, x9
	ccmp	x8, x10, #4, ne
	b.ne	LBB0_8
; %bb.3:
	ldr	x8, [x21]
	ldr	x9, [x26]
	ldr	w0, [x8, x9, lsl #2]
	bl	_rcu_dereference
	cbz	x0, LBB0_8
; %bb.4:
	mov	x22, x0
Lloh9:
	adrp	x8, _RX_FLAG_DUP_VALIDATED@GOTPAGE
Lloh10:
	ldr	x8, [x8, _RX_FLAG_DUP_VALIDATED@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	ldr	w9, [x26, #20]
	orr	w8, w9, w8
	str	w8, [x26, #20]
	add	x21, x0, #20
	mov	x0, x21
	bl	_spin_lock_bh
	ldr	x8, [x22, #56]
	cbnz	x8, LBB0_19
; %bb.5:
	ldr	x23, [x26, #8]
	ldp	x25, x24, [x22]
	mov	x0, x23
	mov	x1, x25
	bl	_ieee80211_sn_less
	ldr	w8, [x22, #16]
	cbz	w8, LBB0_10
; %bb.6:
	cbz	w0, LBB0_12
; %bb.7:
	mov	x0, x20
	mov	x1, x19
	bl	___skb_unlink
	b	LBB0_18
LBB0_8:
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_9:
	mov	x0, x20
	mov	x1, x19
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_mt76_rx_aggr_check_ctl
LBB0_10:
	cbnz	w0, LBB0_19
; %bb.11:
	mov	w8, #1
	str	w8, [x22, #16]
LBB0_12:
	cmp	x23, x25
	b.ne	LBB0_15
; %bb.13:
	mov	x0, x25
	bl	_ieee80211_sn_inc
	str	x0, [x22]
	ldr	x8, [x22, #40]
	cbz	x8, LBB0_19
; %bb.14:
	mov	x0, x22
	mov	x1, x19
	bl	_mt76_rx_aggr_release_head
	b	LBB0_19
LBB0_15:
	mov	x0, x20
	mov	x1, x19
	bl	___skb_unlink
	add	x1, x24, x25
	mov	x0, x23
	bl	_ieee80211_sn_less
	cbnz	w0, LBB0_17
; %bb.16:
	mov	x0, x23
	mov	x1, x24
	bl	_ieee80211_sn_sub
	bl	_ieee80211_sn_inc
	mov	x2, x0
	mov	x0, x22
	mov	x1, x19
	bl	_mt76_rx_aggr_release_frames
LBB0_17:
	udiv	x8, x23, x24
	msub	x8, x8, x24, x23
	ldr	x9, [x22, #48]
	ldr	x10, [x9, x8, lsl #3]
	cbz	x10, LBB0_20
LBB0_18:
	mov	x0, x20
	bl	_dev_kfree_skb
LBB0_19:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	b	_spin_unlock_bh
LBB0_20:
Lloh12:
	adrp	x10, _jiffies@GOTPAGE
Lloh13:
	ldr	x10, [x10, _jiffies@GOTPAGEOFF]
Lloh14:
	ldr	w10, [x10]
	str	w10, [x26, #16]
	str	x20, [x9, x8, lsl #3]
	ldr	x8, [x22, #40]
	add	x8, x8, #1
	str	x8, [x22, #40]
	mov	x0, x22
	mov	x1, x19
	bl	_mt76_rx_aggr_release_head
	ldr	x8, [x22, #32]
	ldr	w0, [x8]
	add	x1, x22, #24
Lloh15:
	adrp	x8, _REORDER_TIMEOUT@GOTPAGE
Lloh16:
	ldr	x8, [x8, _REORDER_TIMEOUT@GOTPAGEOFF]
Lloh17:
	ldr	w2, [x8]
	bl	_ieee80211_queue_delayed_work
	b	LBB0_19
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_IEEE80211_QOS_CTL_ACK_POLICY_MASK,8,3 ; @IEEE80211_QOS_CTL_ACK_POLICY_MASK
	.comm	_IEEE80211_QOS_CTL_ACK_POLICY_BLOCKACK,8,3 ; @IEEE80211_QOS_CTL_ACK_POLICY_BLOCKACK
	.comm	_IEEE80211_QOS_CTL_ACK_POLICY_NORMAL,8,3 ; @IEEE80211_QOS_CTL_ACK_POLICY_NORMAL
	.comm	_RX_FLAG_DUP_VALIDATED,4,2      ; @RX_FLAG_DUP_VALIDATED
	.comm	_jiffies,4,2                    ; @jiffies
	.comm	_REORDER_TIMEOUT,4,2            ; @REORDER_TIMEOUT
.subsections_via_symbols
