	.file	"extr_ql_os.c_qla_free_rcv_std.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	qla_free_rcv_std, @function
qla_free_rcv_std:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR 16[rdi]
	test	edx, edx
	jle	.L17
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	xor	r13d, r13d
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	.p2align 4,,10
	.p2align 3
.L2:
	mov	eax, DWORD PTR NUM_RX_DESCRIPTORS[rip]
	lea	r14, 0[0+r13*8]
	xor	ebp, ebp
	test	eax, eax
	jle	.L7
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rax, QWORD PTR 8[r12]
	mov	rbx, rbp
	sal	rbx, 4
	add	rbx, QWORD PTR [rax+r14]
	cmp	QWORD PTR [rbx], 0
	je	.L4
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR [r12]
	call	bus_dmamap_unload@PLT
	mov	esi, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR [r12]
	call	bus_dmamap_destroy@PLT
	mov	rdi, QWORD PTR [rbx]
	call	m_freem@PLT
	mov	QWORD PTR [rbx], 0
.L4:
	add	rbp, 1
	cmp	DWORD PTR NUM_RX_DESCRIPTORS[rip], ebp
	jg	.L5
.L7:
	add	r13, 1
	cmp	DWORD PTR 16[r12], r13d
	jg	.L2
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
.L17:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	ret
	.cfi_endproc
.LFE0:
	.size	qla_free_rcv_std, .-qla_free_rcv_std
	.comm	NUM_RX_DESCRIPTORS,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_ql_os.c_qla_free_rcv_std.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	qla_free_rcv_std, %function
qla_free_rcv_std:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0, #8]
	cmp	r3, #0
	pople	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r9, #0
	mov	r6, r0
	mov	r8, r9
	ldr	r10, .L17
.L2:
	ldr	r2, [r10]
	cmp	r2, #0
	movgt	r4, #0
	lslgt	fp, r9, #2
	ble	.L7
.L5:
	ldr	r3, [r6, #4]
	ldr	r5, [r3, fp]
	ldr	r3, [r5, r4, lsl #3]
	add	r7, r5, r4, lsl #3
	cmp	r3, #0
	beq	.L4
	ldr	r1, [r7, #4]
	ldr	r0, [r6]
	bl	bus_dmamap_unload
	ldr	r1, [r7, #4]
	ldr	r0, [r6]
	bl	bus_dmamap_destroy
	ldr	r0, [r5, r4, lsl #3]
	bl	m_freem
	str	r8, [r5, r4, lsl #3]
.L4:
	ldr	r3, [r10]
	add	r4, r4, #1
	cmp	r3, r4
	bgt	.L5
	ldr	r3, [r6, #8]
.L7:
	add	r9, r9, #1
	cmp	r3, r9
	bgt	.L2
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L18:
	.align	2
.L17:
	.word	NUM_RX_DESCRIPTORS
	.size	qla_free_rcv_std, .-qla_free_rcv_std
	.comm	NUM_RX_DESCRIPTORS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
