	.file	"extr_netxen_nic_init.c_netxen_release_tx_buffers.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	netxen_release_tx_buffers
	.type	netxen_release_tx_buffers, @function
netxen_release_tx_buffers:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	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
	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
	mov	r14, QWORD PTR 8[rdi]
	call	spin_lock_bh@PLT
	mov	eax, DWORD PTR [r14]
	mov	r15, QWORD PTR 8[r14]
	test	eax, eax
	jle	.L2
	xor	r13d, r13d
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rbx, QWORD PTR 16[r15]
	mov	rsi, QWORD PTR [rbx]
	test	rsi, rsi
	jne	.L22
.L3:
	cmp	DWORD PTR [r15], 1
	jle	.L4
	mov	ebp, 1
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L5:
	add	ebp, 1
	cmp	DWORD PTR [r15], ebp
	jle	.L4
.L6:
	mov	rsi, QWORD PTR 16[rbx]
	add	rbx, 16
	test	rsi, rsi
	je	.L5
	mov	edx, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 4[r12]
	add	ebp, 1
	mov	ecx, DWORD PTR PCI_DMA_TODEVICE[rip]
	call	pci_unmap_page@PLT
	mov	QWORD PTR [rbx], 0
	cmp	DWORD PTR [r15], ebp
	jg	.L6
.L4:
	mov	rdi, QWORD PTR 8[r15]
	test	rdi, rdi
	je	.L7
	call	dev_kfree_skb_any@PLT
	mov	QWORD PTR 8[r15], 0
.L7:
	add	r15, 24
	add	r13d, 1
	cmp	DWORD PTR [r14], r13d
	jg	.L8
.L2:
	add	rsp, 8
	.cfi_remember_state
	.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	spin_unlock_bh@PLT
	.p2align 4,,10
	.p2align 3
.L22:
	.cfi_restore_state
	mov	edx, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR 4[r12]
	mov	ecx, DWORD PTR PCI_DMA_TODEVICE[rip]
	call	pci_unmap_single@PLT
	mov	QWORD PTR [rbx], 0
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	netxen_release_tx_buffers, .-netxen_release_tx_buffers
	.comm	PCI_DMA_TODEVICE,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_netxen_nic_init.c_netxen_release_tx_buffers.c"
	.text
	.align	2
	.global	netxen_release_tx_buffers
	.syntax unified
	.arm
	.fpu softvfp
	.type	netxen_release_tx_buffers, %function
netxen_release_tx_buffers:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, [r0, #8]
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r4, r2
	sub	sp, sp, #20
	mov	r6, r0
	str	r2, [sp, #12]
	bl	spin_lock_bh
	ldr	r3, [r4]
	ldr	r1, [r4, #4]
	cmp	r3, #0
	ble	.L2
	mov	r7, #0
	mov	r8, #0
	mov	r9, #0
	ldr	r10, .L23
	add	fp, r1, #12
.L8:
	ldr	r4, [fp, #-4]
	ldmia	r4, {r2-r3}
	orrs	r1, r2, r3
	bne	.L22
.L3:
	ldr	r0, [fp, #-12]
	cmp	r0, #1
	ble	.L4
	mov	r5, #1
	b	.L6
.L5:
	cmp	r0, r5
	add	r4, r4, #16
	ble	.L4
.L6:
	add	r3, r4, #16
	ldmia	r3, {r2-r3}
	orrs	r1, r2, r3
	add	r5, r5, #1
	beq	.L5
	ldr	r0, [r10]
	add	r4, r4, #16
	str	r0, [sp, #4]
	ldr	ip, [r4, #8]
	ldr	r0, [r6, #4]
	str	ip, [sp]
	bl	pci_unmap_page
	ldr	r0, [fp, #-12]
	stm	r4, {r8-r9}
	cmp	r0, r5
	bgt	.L6
.L4:
	ldr	r0, [fp, #-8]
	cmp	r0, #0
	beq	.L7
	bl	dev_kfree_skb_any
	mov	r3, #0
	str	r3, [fp, #-8]
.L7:
	ldr	r3, [sp, #12]
	add	r7, r7, #1
	ldr	r3, [r3]
	add	fp, fp, #12
	cmp	r3, r7
	bgt	.L8
.L2:
	mov	r0, r6
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	b	spin_unlock_bh
.L22:
	ldr	r0, [r10]
	str	r0, [sp, #4]
	ldr	ip, [r4, #8]
	ldr	r0, [r6, #4]
	str	ip, [sp]
	bl	pci_unmap_single
	stm	r4, {r8-r9}
	b	.L3
.L24:
	.align	2
.L23:
	.word	PCI_DMA_TODEVICE
	.size	netxen_release_tx_buffers, .-netxen_release_tx_buffers
	.comm	PCI_DMA_TODEVICE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
