	.file	"extr_if_malo.c_malo_rxbuf_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	malo_rxbuf_init, @function
malo_rxbuf_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	cmp	QWORD PTR 8[rsi], 0
	mov	rbx, rsi
	mov	rbp, QWORD PTR 16[rsi]
	je	.L6
.L2:
	mov	eax, DWORD PTR MALO_RXD_STATUS_IDLE[rip]
	mov	QWORD PTR 48[rbp], 0
	mov	QWORD PTR 40[rbp], 0
	mov	edi, DWORD PTR MALO_RXSIZE[rip]
	mov	DWORD PTR 32[rbp], eax
	mov	QWORD PTR 24[rbp], 0
	call	htole16@PLT
	mov	QWORD PTR 8[rbp], 0
	mov	edi, DWORD PTR [rbx]
	mov	DWORD PTR 16[rbp], eax
	call	htole32@PLT
	mov	edx, DWORD PTR BUS_DMASYNC_PREREAD[rip]
	mov	rsi, rbp
	mov	rdi, r12
	mov	DWORD PTR 4[rbp], eax
	mov	eax, DWORD PTR MALO_RXD_CTRL_DRIVER_OWN[rip]
	or	edx, DWORD PTR BUS_DMASYNC_PREWRITE[rip]
	mov	DWORD PTR 0[rbp], eax
	call	MALO_RXDESC_SYNC@PLT
	xor	eax, eax
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore_state
	call	malo_getrxmbuf@PLT
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	jne	.L2
	mov	eax, DWORD PTR MALO_RXD_CTRL_OS_OWN[rip]
	mov	edx, DWORD PTR BUS_DMASYNC_PREWRITE[rip]
	mov	rsi, rbp
	mov	rdi, r12
	mov	DWORD PTR 0[rbp], eax
	call	MALO_RXDESC_SYNC@PLT
	mov	eax, DWORD PTR ENOMEM[rip]
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	malo_rxbuf_init, .-malo_rxbuf_init
	.comm	MALO_RXSIZE,4,4
	.comm	MALO_RXD_STATUS_IDLE,4,4
	.comm	MALO_RXD_CTRL_OS_OWN,4,4
	.comm	MALO_RXD_CTRL_DRIVER_OWN,4,4
	.comm	ENOMEM,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_malo.c_malo_rxbuf_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	malo_rxbuf_init, %function
malo_rxbuf_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r1, #4]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #0
	mov	r6, r1
	mov	r7, r0
	ldr	r4, [r1, #8]
	beq	.L6
.L2:
	mov	r5, #0
	ldr	r2, .L7
	ldr	r3, .L7+4
	ldr	r2, [r2]
	ldr	r0, [r3]
	str	r2, [r4, #20]
	str	r5, [r4, #28]
	str	r5, [r4, #24]
	str	r5, [r4, #16]
	bl	htole16
	str	r5, [r4, #8]
	str	r0, [r4, #12]
	ldr	r0, [r6]
	bl	htole32
	ldr	r1, .L7+8
	ldr	r2, .L7+12
	ldr	r3, .L7+16
	ldr	r1, [r1]
	ldr	r3, [r3]
	ldr	r2, [r2]
	str	r0, [r4, #4]
	str	r1, [r4]
	mov	r0, r7
	mov	r1, r4
	orr	r2, r2, r3
	bl	MALO_RXDESC_SYNC
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L6:
	bl	malo_getrxmbuf
	cmp	r0, #0
	str	r0, [r6, #4]
	bne	.L2
	ldr	r2, .L7+20
	ldr	r3, .L7+16
	ldr	r2, [r2]
	mov	r0, r7
	str	r2, [r4]
	mov	r1, r4
	ldr	r2, [r3]
	bl	MALO_RXDESC_SYNC
	ldr	r3, .L7+24
	ldr	r0, [r3]
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	.align	2
.L7:
	.word	MALO_RXD_STATUS_IDLE
	.word	MALO_RXSIZE
	.word	MALO_RXD_CTRL_DRIVER_OWN
	.word	BUS_DMASYNC_PREREAD
	.word	BUS_DMASYNC_PREWRITE
	.word	MALO_RXD_CTRL_OS_OWN
	.word	ENOMEM
	.size	malo_rxbuf_init, .-malo_rxbuf_init
	.comm	MALO_RXSIZE,4,4
	.comm	MALO_RXD_STATUS_IDLE,4,4
	.comm	MALO_RXD_CTRL_OS_OWN,4,4
	.comm	MALO_RXD_CTRL_DRIVER_OWN,4,4
	.comm	ENOMEM,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
