	.file	"extr_if_nfe.c_nfe_init_jrx_ring.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	nfe_init_jrx_ring, @function
nfe_init_jrx_ring:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	eax, DWORD PTR 0[rbp]
	mov	QWORD PTR 24[rsi], 0
	test	DWORD PTR NFE_40BIT_ADDR[rip], eax
	mov	QWORD PTR 32[rsi], 0
	mov	rax, QWORD PTR NFE_JUMBO_RX_RING_COUNT[rip]
	mov	rdi, QWORD PTR 16[rsi]
	cmove	rdi, QWORD PTR 8[rsi]
	lea	rsi, 0[0+rax*4]
	call	bzero@PLT
	cmp	QWORD PTR NFE_JUMBO_RX_RING_COUNT[rip], 0
	je	.L3
	xor	ebx, ebx
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	add	rbx, 1
	cmp	QWORD PTR NFE_JUMBO_RX_RING_COUNT[rip], rbx
	jbe	.L3
.L6:
	mov	esi, ebx
	mov	rdi, rbp
	call	nfe_jnewbuf@PLT
	test	rax, rax
	je	.L4
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	eax, DWORD PTR ENOBUFS[rip]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	edi, DWORD PTR 4[r12]
	mov	esi, DWORD PTR [r12]
	mov	edx, DWORD PTR BUS_DMASYNC_PREREAD[rip]
	or	edx, DWORD PTR BUS_DMASYNC_PREWRITE[rip]
	call	bus_dmamap_sync@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	nfe_init_jrx_ring, .-nfe_init_jrx_ring
	.comm	NFE_JUMBO_RX_RING_COUNT,8,8
	.comm	NFE_40BIT_ADDR,4,4
	.comm	ENOBUFS,4,4
	.comm	BUS_DMASYNC_PREWRITE,4,4
	.comm	BUS_DMASYNC_PREREAD,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_init_jrx_ring.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	nfe_init_jrx_ring, %function
nfe_init_jrx_ring:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r7, r1
	mov	r4, #0
	ldr	r3, .L13
	ldr	r1, [r0]
	ldr	r2, [r3]
	ldr	r6, .L13+4
	tst	r1, r2
	ldr	r3, [r7, #8]
	ldr	r1, [r6]
	mov	r5, r0
	str	r4, [r7, #16]
	ldr	r0, [r7, #12]
	str	r4, [r7, #20]
	moveq	r0, r3
	lsl	r1, r1, #2
	bl	bzero
	ldr	r3, [r6]
	cmp	r3, r4
	bne	.L6
	b	.L3
.L4:
	ldr	r3, [r6]
	cmp	r3, r4
	bls	.L3
.L6:
	mov	r1, r4
	mov	r0, r5
	bl	nfe_jnewbuf
	cmp	r0, #0
	add	r4, r4, #1
	beq	.L4
	ldr	r3, .L13+8
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L3:
	ldr	r2, .L13+12
	ldr	r3, .L13+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	ldr	r1, [r7]
	ldr	r0, [r7, #4]
	orr	r2, r2, r3
	bl	bus_dmamap_sync
	mov	r0, #0
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	.align	2
.L13:
	.word	NFE_40BIT_ADDR
	.word	NFE_JUMBO_RX_RING_COUNT
	.word	ENOBUFS
	.word	BUS_DMASYNC_PREREAD
	.word	BUS_DMASYNC_PREWRITE
	.size	nfe_init_jrx_ring, .-nfe_init_jrx_ring
	.comm	NFE_JUMBO_RX_RING_COUNT,4,4
	.comm	NFE_40BIT_ADDR,4,4
	.comm	ENOBUFS,4,4
	.comm	BUS_DMASYNC_PREWRITE,4,4
	.comm	BUS_DMASYNC_PREREAD,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
