	.file	"extr_if_nfe.c_nfe_free_jrx_ring.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nfe_free_jrx_ring, @function
nfe_free_jrx_ring:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR [rdi]
	test	DWORD PTR NFE_JUMBO_SUP[rip], eax
	je	.L33
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	test	DWORD PTR NFE_40BIT_ADDR[rip], eax
	mov	eax, DWORD PTR NFE_JUMBO_RX_RING_COUNT[rip]
	mov	r13, QWORD PTR 16[rsi]
	cmove	r13, QWORD PTR 8[rsi]
	xor	ebp, ebp
	test	eax, eax
	jle	.L10
	.p2align 4,,10
	.p2align 3
.L5:
	mov	rbx, rbp
	sal	rbx, 4
	add	rbx, QWORD PTR 48[r12]
	mov	rsi, QWORD PTR 8[rbx]
	test	rsi, rsi
	je	.L8
	mov	rdi, QWORD PTR 32[r12]
	call	bus_dmamap_destroy@PLT
	mov	QWORD PTR 8[rbx], 0
.L8:
	mov	rdi, QWORD PTR [rbx]
	test	rdi, rdi
	je	.L9
	call	m_freem@PLT
	mov	QWORD PTR [rbx], 0
.L9:
	add	rbp, 1
	cmp	DWORD PTR NFE_JUMBO_RX_RING_COUNT[rip], ebp
	jg	.L5
.L10:
	mov	rdi, QWORD PTR 32[r12]
	test	rdi, rdi
	je	.L7
	mov	rsi, QWORD PTR 40[r12]
	test	rsi, rsi
	je	.L11
	call	bus_dmamap_destroy@PLT
	mov	rdi, QWORD PTR 32[r12]
	mov	QWORD PTR 40[r12], 0
.L11:
	call	bus_dma_tag_destroy@PLT
	mov	QWORD PTR 32[r12], 0
.L7:
	mov	rdi, QWORD PTR [r12]
	test	r13, r13
	je	.L12
	mov	esi, DWORD PTR 24[r12]
	call	bus_dmamap_unload@PLT
	mov	rdi, QWORD PTR [r12]
	mov	edx, DWORD PTR 24[r12]
	mov	rsi, r13
	call	bus_dmamem_free@PLT
	mov	rdi, QWORD PTR [r12]
	mov	QWORD PTR 16[r12], 0
	mov	QWORD PTR 8[r12], 0
.L12:
	test	rdi, rdi
	je	.L1
	call	bus_dma_tag_destroy@PLT
	mov	QWORD PTR [r12], 0
.L1:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L33:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	ret
	.cfi_endproc
.LFE0:
	.size	nfe_free_jrx_ring, .-nfe_free_jrx_ring
	.comm	NFE_JUMBO_SUP,4,4
	.comm	NFE_JUMBO_RX_RING_COUNT,4,4
	.comm	NFE_40BIT_ADDR,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_if_nfe.c_nfe_free_jrx_ring.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nfe_free_jrx_ring, %function
nfe_free_jrx_ring:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L33
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r2, [r2]
	ldr	r3, [r0]
	tst	r3, r2
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r6, r1
	ldr	r2, .L33+4
	ldr	fp, .L33+8
	ldr	r1, [r2]
	ldmib	r6, {r2, r10}
	tst	r3, r1
	ldr	r3, [fp]
	moveq	r10, r2
	cmp	r3, #0
	movgt	r4, #0
	movgt	r9, r4
	ble	.L10
.L5:
	ldr	r5, [r6, #24]
	lsl	r7, r4, #3
	add	r8, r5, r4, lsl #3
	ldr	r1, [r8, #4]
	add	r4, r4, #1
	cmp	r1, #0
	beq	.L8
	ldr	r0, [r6, #16]
	bl	bus_dmamap_destroy
	str	r9, [r8, #4]
.L8:
	ldr	r0, [r5, r7]
	cmp	r0, #0
	beq	.L9
	bl	m_freem
	str	r9, [r5, r7]
.L9:
	ldr	r3, [fp]
	cmp	r3, r4
	bgt	.L5
.L10:
	ldr	r0, [r6, #16]
	cmp	r0, #0
	beq	.L7
	ldr	r1, [r6, #20]
	cmp	r1, #0
	beq	.L11
	bl	bus_dmamap_destroy
	mov	r3, #0
	ldr	r0, [r6, #16]
	str	r3, [r6, #20]
.L11:
	bl	bus_dma_tag_destroy
	mov	r3, #0
	str	r3, [r6, #16]
.L7:
	cmp	r10, #0
	ldr	r0, [r6]
	beq	.L12
	ldr	r1, [r6, #12]
	bl	bus_dmamap_unload
	mov	r1, r10
	ldr	r2, [r6, #12]
	ldr	r0, [r6]
	bl	bus_dmamem_free
	mov	r3, #0
	ldr	r0, [r6]
	str	r3, [r6, #8]
	str	r3, [r6, #4]
.L12:
	cmp	r0, #0
	popeq	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	bl	bus_dma_tag_destroy
	mov	r3, #0
	str	r3, [r6]
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L34:
	.align	2
.L33:
	.word	NFE_JUMBO_SUP
	.word	NFE_40BIT_ADDR
	.word	NFE_JUMBO_RX_RING_COUNT
	.size	nfe_free_jrx_ring, .-nfe_free_jrx_ring
	.comm	NFE_JUMBO_SUP,4,4
	.comm	NFE_JUMBO_RX_RING_COUNT,4,4
	.comm	NFE_40BIT_ADDR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
