	.file	"extr_....rt2860commonba_action.c_ba_reordering_resource_release.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ba_reordering_resource_release
	.type	ba_reordering_resource_release, @function
ba_reordering_resource_release:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	r15, 8[rdi]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	mov	rdi, r15
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	call	NdisAcquireSpinLock@PLT
	mov	eax, DWORD PTR MAX_LEN_OF_BA_REC_TABLE[rip]
	test	eax, eax
	jle	.L2
	xor	r14d, r14d
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L11:
	add	r14, 1
	cmp	DWORD PTR MAX_LEN_OF_BA_REC_TABLE[rip], r14d
	jle	.L2
.L4:
	mov	rbx, r14
	mov	rax, QWORD PTR Recipient_NONE[rip]
	sal	rbx, 4
	add	rbx, QWORD PTR 16[r12]
	cmp	QWORD PTR [rbx], rax
	je	.L11
	lea	r13, 8[rbx]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L6:
	mov	edi, DWORD PTR 0[rbp]
	call	ASSERT@PLT
	mov	esi, DWORD PTR 0[rbp]
	mov	edx, DWORD PTR NDIS_STATUS_FAILURE[rip]
	mov	rdi, r12
	call	RELEASE_NDIS_PACKET@PLT
	mov	rsi, rbp
	mov	rdi, r12
	call	ba_mpdu_blk_free@PLT
.L5:
	mov	rdi, r13
	call	ba_reordering_mpdu_dequeue@PLT
	mov	rbp, rax
	test	rax, rax
	jne	.L6
	add	r14, 1
	cmp	DWORD PTR MAX_LEN_OF_BA_REC_TABLE[rip], r14d
	jg	.L4
.L2:
	mov	rdi, r15
	call	NdisReleaseSpinLock@PLT
	xor	edi, edi
	cmp	QWORD PTR 8[rbx], 0
	sete	dil
	call	ASSERT@PLT
	mov	rdi, r12
	call	NdisAcquireSpinLock@PLT
	mov	esi, DWORD PTR 4[r12]
	mov	rdi, r12
	call	os_free_mem@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 56
	mov	rdi, r12
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	jmp	NdisReleaseSpinLock@PLT
	.cfi_endproc
.LFE0:
	.size	ba_reordering_resource_release, .-ba_reordering_resource_release
	.comm	Recipient_NONE,8,8
	.comm	NDIS_STATUS_FAILURE,4,4
	.comm	MAX_LEN_OF_BA_REC_TABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",@progbits
	.section	.note.gnu.property,"a"
	.align 8
	.long	 1f - 0f
	.long	 4f - 1f
	.long	 5
0:
	.string	 "GNU"
1:
	.align 8
	.long	 0xc0000002
	.long	 3f - 2f
2:
	.long	 0x3
3:
	.align 8
4:

	.arch armv5t
	.eabi_attribute 20, 1
	.eabi_attribute 21, 1
	.eabi_attribute 23, 3
	.eabi_attribute 24, 1
	.eabi_attribute 25, 1
	.eabi_attribute 26, 2
	.eabi_attribute 30, 2
	.eabi_attribute 34, 0
	.eabi_attribute 18, 4
	.file	"extr_....rt2860commonba_action.c_ba_reordering_resource_release.c"
	.text
	.align	2
	.global	ba_reordering_resource_release
	.syntax unified
	.arm
	.fpu softvfp
	.type	ba_reordering_resource_release, %function
ba_reordering_resource_release:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	add	r3, r0, #8
	ldr	r9, .L12
	sub	sp, sp, #12
	mov	r4, r0
	mov	r0, r3
	str	r3, [sp, #4]
	bl	NdisAcquireSpinLock
	ldr	r3, [r9]
	cmp	r3, #0
	ble	.L2
	mov	r5, #0
	ldr	r10, .L12+4
	ldr	r8, .L12+8
	b	.L4
.L11:
	ldr	r3, [r9]
	add	r5, r5, #1
	cmp	r3, r5
	ble	.L2
.L4:
	ldr	r6, [r4, #12]
	ldr	r3, [r10]
	ldr	r2, [r6, r5, lsl #3]
	add	r6, r6, r5, lsl #3
	cmp	r2, r3
	beq	.L11
	add	r7, r6, #4
	b	.L5
.L6:
	ldr	r0, [fp]
	bl	ASSERT
	ldr	r1, [fp]
	mov	r0, r4
	ldr	r2, [r8]
	bl	RELEASE_NDIS_PACKET
	mov	r1, fp
	mov	r0, r4
	bl	ba_mpdu_blk_free
.L5:
	mov	r0, r7
	bl	ba_reordering_mpdu_dequeue
	subs	fp, r0, #0
	bne	.L6
	ldr	r3, [r9]
	add	r5, r5, #1
	cmp	r3, r5
	bgt	.L4
.L2:
	ldr	r0, [sp, #4]
	bl	NdisReleaseSpinLock
	ldr	r0, [r6, #4]
	clz	r0, r0
	lsr	r0, r0, #5
	bl	ASSERT
	mov	r0, r4
	bl	NdisAcquireSpinLock
	mov	r0, r4
	ldr	r1, [r4, #4]
	bl	os_free_mem
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	NdisReleaseSpinLock
.L13:
	.align	2
.L12:
	.word	MAX_LEN_OF_BA_REC_TABLE
	.word	Recipient_NONE
	.word	NDIS_STATUS_FAILURE
	.size	ba_reordering_resource_release, .-ba_reordering_resource_release
	.comm	Recipient_NONE,4,4
	.comm	NDIS_STATUS_FAILURE,4,4
	.comm	MAX_LEN_OF_BA_REC_TABLE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
