	.file	"extr_rxmq.c_iwl_mvm_rx_bar_frame_release.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Got valid BAID %d but not allocated, invalid BAR release!\n"
	.align 8
.LC1:
	.string	"baid 0x%x is mapped to sta:%d tid:%d, but BAR release received for sta:%d tid:%d\n"
	.text
	.p2align 4
	.globl	iwl_mvm_rx_bar_frame_release
	.type	iwl_mvm_rx_bar_frame_release, @function
iwl_mvm_rx_bar_frame_release:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15d, ecx
	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
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	mov	rdi, rdx
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR 8[rsp], rsi
	call	rxb_addr@PLT
	mov	esi, DWORD PTR IWL_BAR_FRAME_RELEASE_BAID_MASK[rip]
	mov	r13, QWORD PTR [rax]
	mov	edi, DWORD PTR 4[r13]
	call	le32_get_bits@PLT
	mov	edi, DWORD PTR 4[r13]
	mov	esi, DWORD PTR IWL_BAR_FRAME_RELEASE_NSSN_MASK[rip]
	mov	r12d, eax
	call	le32_get_bits@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	esi, DWORD PTR IWL_BAR_FRAME_RELEASE_STA_MASK[rip]
	mov	r14d, eax
	call	le32_get_bits@PLT
	mov	edi, DWORD PTR 0[r13]
	mov	esi, DWORD PTR IWL_BAR_FRAME_RELEASE_TID_MASK[rip]
	mov	ebx, eax
	call	le32_get_bits@PLT
	cmp	DWORD PTR IWL_RX_REORDER_DATA_INVALID_BAID[rip], r12d
	mov	edi, 1
	mov	r13d, eax
	je	.L2
	mov	rdi, QWORD PTR 0[rbp]
	call	ARRAY_SIZE@PLT
	xor	edi, edi
	cmp	eax, r12d
	setbe	dil
.L2:
	call	WARN_ON_ONCE@PLT
	test	rax, rax
	je	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	call	rcu_read_lock@PLT
	mov	rdx, QWORD PTR 0[rbp]
	mov	eax, r12d
	mov	edi, DWORD PTR [rdx+rax*4]
	call	rcu_dereference@PLT
	test	rax, rax
	je	.L11
	mov	r8d, DWORD PTR [rax]
	mov	ecx, DWORD PTR 4[rax]
	mov	edx, r12d
	mov	r9d, ebx
	lea	rsi, .LC1[rip]
	cmp	r8d, r13d
	setne	dil
	cmp	ecx, ebx
	setne	al
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	push	r13
	.cfi_def_cfa_offset 96
	or	edi, eax
	movzx	edi, dil
	call	WARN@PLT
	pop	rdx
	.cfi_def_cfa_offset 88
	pop	rcx
	.cfi_def_cfa_offset 80
	test	rax, rax
	jne	.L5
	mov	rsi, QWORD PTR 8[rsp]
	xor	r9d, r9d
	mov	r8d, r15d
	mov	ecx, r14d
	mov	edx, r12d
	mov	rdi, rbp
	call	iwl_mvm_release_frames_from_notif@PLT
.L5:
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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	rcu_read_unlock@PLT
	.p2align 4,,10
	.p2align 3
.L11:
	.cfi_restore_state
	mov	edx, r12d
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	IWL_DEBUG_RX@PLT
	jmp	.L5
	.cfi_endproc
.LFE0:
	.size	iwl_mvm_rx_bar_frame_release, .-iwl_mvm_rx_bar_frame_release
	.comm	IWL_RX_REORDER_DATA_INVALID_BAID,4,4
	.comm	IWL_BAR_FRAME_RELEASE_TID_MASK,4,4
	.comm	IWL_BAR_FRAME_RELEASE_STA_MASK,4,4
	.comm	IWL_BAR_FRAME_RELEASE_NSSN_MASK,4,4
	.comm	IWL_BAR_FRAME_RELEASE_BAID_MASK,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_rxmq.c_iwl_mvm_rx_bar_frame_release.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Got valid BAID %d but not allocated, invalid BAR re"
	.ascii	"lease!\012\000"
	.align	2
.LC1:
	.ascii	"baid 0x%x is mapped to sta:%d tid:%d, but BAR relea"
	.ascii	"se received for sta:%d tid:%d\012\000"
	.text
	.align	2
	.global	iwl_mvm_rx_bar_frame_release
	.syntax unified
	.arm
	.fpu softvfp
	.type	iwl_mvm_rx_bar_frame_release, %function
iwl_mvm_rx_bar_frame_release:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r6, r0
	sub	sp, sp, #16
	mov	r0, r2
	mov	r8, r1
	mov	r10, r3
	bl	rxb_addr
	ldr	r3, .L13
	ldr	r5, [r0]
	ldr	r1, [r3]
	ldr	r0, [r5, #4]
	bl	le32_get_bits
	ldr	r3, .L13+4
	mov	r4, r0
	ldr	r1, [r3]
	ldr	r0, [r5, #4]
	bl	le32_get_bits
	ldr	r3, .L13+8
	mov	r9, r0
	ldr	r1, [r3]
	ldr	r0, [r5]
	bl	le32_get_bits
	ldr	r3, .L13+12
	mov	r7, r0
	ldr	r1, [r3]
	ldr	r0, [r5]
	bl	le32_get_bits
	ldr	r3, .L13+16
	mov	r5, r0
	ldr	r3, [r3]
	cmp	r3, r4
	moveq	r0, #1
	beq	.L2
	ldr	r0, [r6]
	bl	ARRAY_SIZE
	cmp	r0, r4
	movhi	r0, #0
	movls	r0, #1
.L2:
	bl	WARN_ON_ONCE
	cmp	r0, #0
	beq	.L11
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, pc}
.L11:
	bl	rcu_read_lock
	ldr	r3, [r6]
	ldr	r0, [r3, r4, lsl #2]
	bl	rcu_dereference
	cmp	r0, #0
	beq	.L12
	ldm	r0, {r2, r3}
	cmp	r2, r5
	movne	r0, #1
	bne	.L6
	subs	r0, r7, r3
	movne	r0, #1
.L6:
	stm	sp, {r2, r7}
	ldr	r1, .L13+20
	mov	r2, r4
	str	r5, [sp, #8]
	bl	WARN
	cmp	r0, #0
	bne	.L5
	str	r0, [sp, #4]
	mov	r3, r9
	mov	r2, r4
	mov	r1, r8
	mov	r0, r6
	str	r10, [sp]
	bl	iwl_mvm_release_frames_from_notif
.L5:
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	rcu_read_unlock
.L12:
	mov	r2, r4
	mov	r0, r6
	ldr	r1, .L13+24
	bl	IWL_DEBUG_RX
	b	.L5
.L14:
	.align	2
.L13:
	.word	IWL_BAR_FRAME_RELEASE_BAID_MASK
	.word	IWL_BAR_FRAME_RELEASE_NSSN_MASK
	.word	IWL_BAR_FRAME_RELEASE_STA_MASK
	.word	IWL_BAR_FRAME_RELEASE_TID_MASK
	.word	IWL_RX_REORDER_DATA_INVALID_BAID
	.word	.LC1
	.word	.LC0
	.size	iwl_mvm_rx_bar_frame_release, .-iwl_mvm_rx_bar_frame_release
	.comm	IWL_RX_REORDER_DATA_INVALID_BAID,4,4
	.comm	IWL_BAR_FRAME_RELEASE_TID_MASK,4,4
	.comm	IWL_BAR_FRAME_RELEASE_STA_MASK,4,4
	.comm	IWL_BAR_FRAME_RELEASE_NSSN_MASK,4,4
	.comm	IWL_BAR_FRAME_RELEASE_BAID_MASK,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
