	.file	"extr_if_bge.c_bge_init_rx_ring_std.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	bge_init_rx_ring_std, @function
bge_init_rx_ring_std:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR 16[rdi]
	mov	esi, DWORD PTR BGE_STD_RX_RING_SZ[rip]
	call	bzero@PLT
	mov	eax, DWORD PTR BGE_STD_RX_RING_CNT[rip]
	mov	QWORD PTR 0[rbp], 0
	test	eax, eax
	jle	.L2
	xor	ebx, ebx
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	mov	esi, DWORD PTR BGE_STD_RX_RING_CNT[rip]
	mov	rdi, QWORD PTR 0[rbp]
	add	ebx, 1
	call	BGE_INC@PLT
	cmp	DWORD PTR BGE_STD_RX_RING_CNT[rip], ebx
	jle	.L2
.L4:
	mov	esi, ebx
	mov	rdi, rbp
	call	bge_newbuf_std@PLT
	test	eax, eax
	je	.L8
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	esi, DWORD PTR 8[rbp]
	mov	edi, DWORD PTR 12[rbp]
	mov	edx, DWORD PTR BUS_DMASYNC_PREWRITE[rip]
	call	bus_dmamap_sync@PLT
	mov	QWORD PTR 0[rbp], 0
	mov	eax, DWORD PTR BGE_STD_RX_RING_CNT[rip]
	mov	rdi, rbp
	mov	esi, DWORD PTR BGE_MBX_RX_STD_PROD_LO[rip]
	lea	edx, -1[rax]
	call	bge_writembx@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	bge_init_rx_ring_std, .-bge_init_rx_ring_std
	.comm	BUS_DMASYNC_PREWRITE,4,4
	.comm	BGE_STD_RX_RING_SZ,4,4
	.comm	BGE_STD_RX_RING_CNT,4,4
	.comm	BGE_MBX_RX_STD_PROD_LO,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_bge.c_bge_init_rx_ring_std.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	bge_init_rx_ring_std, %function
bge_init_rx_ring_std:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, #0
	mov	r5, r0
	ldr	r3, .L8
	ldr	r6, .L8+4
	ldr	r1, [r3]
	ldr	r0, [r0, #12]
	bl	bzero
	ldr	r3, [r6]
	str	r4, [r5]
	cmp	r3, r4
	ble	.L2
.L4:
	mov	r1, r4
	mov	r0, r5
	bl	bge_newbuf_std
	cmp	r0, #0
	add	r4, r4, #1
	popne	{r4, r5, r6, pc}
	ldr	r1, [r6]
	ldr	r0, [r5]
	bl	BGE_INC
	ldr	r3, [r6]
	cmp	r3, r4
	bgt	.L4
.L2:
	mov	r4, #0
	ldr	r3, .L8+8
	ldr	r1, [r5, #4]
	ldr	r2, [r3]
	ldr	r0, [r5, #8]
	bl	bus_dmamap_sync
	ldr	r2, [r6]
	ldr	r3, .L8+12
	mov	r0, r5
	ldr	r1, [r3]
	sub	r2, r2, #1
	str	r4, [r5]
	bl	bge_writembx
	mov	r0, r4
	pop	{r4, r5, r6, pc}
.L9:
	.align	2
.L8:
	.word	BGE_STD_RX_RING_SZ
	.word	BGE_STD_RX_RING_CNT
	.word	BUS_DMASYNC_PREWRITE
	.word	BGE_MBX_RX_STD_PROD_LO
	.size	bge_init_rx_ring_std, .-bge_init_rx_ring_std
	.comm	BUS_DMASYNC_PREWRITE,4,4
	.comm	BGE_STD_RX_RING_SZ,4,4
	.comm	BGE_STD_RX_RING_CNT,4,4
	.comm	BGE_MBX_RX_STD_PROD_LO,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
