	.file	"extr_bnad.c_bnad_tx_res_free.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bnad_tx_res_free, @function
bnad_tx_res_free:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR BNA_TX_RES_T_MAX[rip]
	test	eax, eax
	jle	.L8
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	xor	ebp, ebp
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	cmp	rax, QWORD PTR BNA_RES_T_INTR[rip]
	je	.L12
.L4:
	add	ebp, 1
	add	rbx, 16
	cmp	DWORD PTR BNA_TX_RES_T_MAX[rip], ebp
	jle	.L13
.L5:
	mov	rax, QWORD PTR [rbx]
	cmp	rax, QWORD PTR BNA_RES_T_MEM[rip]
	jne	.L3
	lea	rsi, 12[rbx]
	mov	rdi, r12
	add	ebp, 1
	add	rbx, 16
	call	bnad_mem_free@PLT
	cmp	DWORD PTR BNA_TX_RES_T_MAX[rip], ebp
	jg	.L5
.L13:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	lea	rsi, 8[rbx]
	mov	rdi, r12
	call	bnad_txrx_irq_free@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_def_cfa_offset 8
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	ret
	.cfi_endproc
.LFE0:
	.size	bnad_tx_res_free, .-bnad_tx_res_free
	.comm	BNA_TX_RES_T_MAX,4,4
	.comm	BNA_RES_T_MEM,8,8
	.comm	BNA_RES_T_INTR,8,8
	.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_bnad.c_bnad_tx_res_free.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bnad_tx_res_free, %function
bnad_tx_res_free:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r6, .L10
	ldr	r3, [r6]
	cmp	r3, #0
	pople	{r4, r5, r6, r7, r8, r9, r10, pc}
	mov	r8, r0
	mov	r5, #0
	ldr	r7, .L10+4
	ldr	r9, .L10+8
	add	r4, r1, #8
	b	.L5
.L3:
	ldr	r2, [r9]
	cmp	r3, r2
	beq	.L9
.L4:
	ldr	r3, [r6]
	add	r5, r5, #1
	cmp	r3, r5
	add	r4, r4, #12
	pople	{r4, r5, r6, r7, r8, r9, r10, pc}
.L5:
	ldr	r3, [r4, #-8]
	ldr	r2, [r7]
	cmp	r3, r2
	bne	.L3
	mov	r1, r4
	mov	r0, r8
	bl	bnad_mem_free
	b	.L4
.L9:
	mov	r0, r8
	sub	r1, r4, #4
	bl	bnad_txrx_irq_free
	b	.L4
.L11:
	.align	2
.L10:
	.word	BNA_TX_RES_T_MAX
	.word	BNA_RES_T_MEM
	.word	BNA_RES_T_INTR
	.size	bnad_tx_res_free, .-bnad_tx_res_free
	.comm	BNA_TX_RES_T_MAX,4,4
	.comm	BNA_RES_T_MEM,4,4
	.comm	BNA_RES_T_INTR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
