	.file	"extr_net2280.c_fill_dma_desc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	fill_dma_desc, @function
fill_dma_desc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	cmp	QWORD PTR 16[rdi], 0
	mov	esi, edx
	mov	r12, QWORD PTR 16[rbx]
	mov	ebp, DWORD PTR 4[rbx]
	je	.L2
	mov	ecx, DWORD PTR DMA_DIRECTION[rip]
	mov	eax, 1
	sal	eax, cl
	or	ebp, eax
.L8:
	mov	rax, QWORD PTR [rdi]
	mov	rax, QWORD PTR [rax]
	cmp	DWORD PTR [rax], 8832
	je	.L3
.L7:
	mov	ecx, DWORD PTR END_OF_CHAIN[rip]
	mov	eax, 1
	sal	eax, cl
	or	ebp, eax
.L3:
	mov	DWORD PTR [rbx], esi
	test	esi, esi
	je	.L4
	mov	ecx, DWORD PTR VALID_BIT[rip]
	mov	eax, 1
	sal	eax, cl
	or	ebp, eax
.L4:
	mov	edx, DWORD PTR 12[rbx]
	mov	edi, 1
	test	edx, edx
	je	.L5
	mov	eax, DWORD PTR use_dma_chaining[rip]
	xor	edi, edi
	test	eax, eax
	sete	dil
.L5:
	call	likely@PLT
	test	rax, rax
	je	.L6
	mov	ecx, DWORD PTR DMA_DONE_INTERRUPT_ENABLE[rip]
	mov	eax, 1
	sal	eax, cl
	or	ebp, eax
.L6:
	mov	edi, DWORD PTR 8[rbx]
	call	cpu_to_le32@PLT
	mov	QWORD PTR 8[r12], rax
	xor	eax, eax
	call	wmb@PLT
	mov	edi, ebp
	call	cpu_to_le32@PLT
	mov	QWORD PTR [r12], rax
	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
.L2:
	.cfi_restore_state
	mov	eax, ebp
	cdq
	idiv	DWORD PTR 8[rdi]
	test	edx, edx
	jne	.L7
	jmp	.L8
	.cfi_endproc
.LFE0:
	.size	fill_dma_desc, .-fill_dma_desc
	.comm	use_dma_chaining,4,4
	.comm	VALID_BIT,4,4
	.comm	END_OF_CHAIN,4,4
	.comm	DMA_DONE_INTERRUPT_ENABLE,4,4
	.comm	DMA_DIRECTION,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_net2280.c_fill_dma_desc.c"
	.text
	.global	__aeabi_idivmod
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	fill_dma_desc, %function
fill_dma_desc:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0, #8]
	push	{r4, r5, r6, r7, r8, lr}
	cmp	r3, #0
	mov	r6, r0
	mov	r4, r1
	mov	r8, r2
	ldr	r7, [r1, #16]
	ldr	r5, [r1, #4]
	beq	.L2
	mov	r2, #1
	ldr	r3, .L22
	ldr	r3, [r3]
	orr	r5, r5, r2, lsl r3
.L8:
	ldr	r3, [r6]
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #8832
	beq	.L3
.L7:
	mov	r2, #1
	ldr	r3, .L22+4
	ldr	r3, [r3]
	orr	r5, r5, r2, lsl r3
.L3:
	cmp	r8, #0
	movne	r2, #1
	ldrne	r3, .L22+8
	str	r8, [r4]
	ldrne	r3, [r3]
	orrne	r5, r5, r2, lsl r3
	ldr	r3, [r4, #12]
	cmp	r3, #0
	ldrne	r3, .L22+12
	moveq	r0, #1
	ldrne	r0, [r3]
	clzne	r0, r0
	lsrne	r0, r0, #5
	bl	likely
	cmp	r0, #0
	movne	r2, #1
	ldrne	r3, .L22+16
	ldr	r0, [r4, #8]
	ldrne	r3, [r3]
	orrne	r5, r5, r2, lsl r3
	bl	cpu_to_le32
	str	r0, [r7, #4]
	bl	wmb
	mov	r0, r5
	bl	cpu_to_le32
	str	r0, [r7]
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r1, [r0, #4]
	mov	r0, r5
	bl	__aeabi_idivmod
	cmp	r1, #0
	bne	.L7
	b	.L8
.L23:
	.align	2
.L22:
	.word	DMA_DIRECTION
	.word	END_OF_CHAIN
	.word	VALID_BIT
	.word	use_dma_chaining
	.word	DMA_DONE_INTERRUPT_ENABLE
	.size	fill_dma_desc, .-fill_dma_desc
	.comm	use_dma_chaining,4,4
	.comm	VALID_BIT,4,4
	.comm	END_OF_CHAIN,4,4
	.comm	DMA_DONE_INTERRUPT_ENABLE,4,4
	.comm	DMA_DIRECTION,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
