	.file	"extr_dwc-xlgmac-hw.c_xlgmac_config_rx_coalesce.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xlgmac_config_rx_coalesce, @function
xlgmac_config_rx_coalesce:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	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
	mov	edx, DWORD PTR [rdi]
	mov	rbx, QWORD PTR 8[rdi]
	test	edx, edx
	je	.L2
	mov	r12, rdi
	xor	r13d, r13d
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L7:
	mov	esi, DWORD PTR DMA_CH_RIWT[rip]
	mov	rdi, rbx
	add	r13d, 1
	call	XLGMAC_DMA_REG@PLT
	mov	edi, eax
	call	readl@PLT
	mov	ecx, DWORD PTR 4[r12]
	mov	edx, DWORD PTR DMA_CH_RIWT_RWT_LEN[rip]
	mov	esi, DWORD PTR DMA_CH_RIWT_RWT_POS[rip]
	mov	edi, eax
	call	XLGMAC_SET_REG_BITS@PLT
	mov	esi, DWORD PTR DMA_CH_RIWT[rip]
	mov	rdi, rbx
	add	rbx, 4
	mov	ebp, eax
	call	XLGMAC_DMA_REG@PLT
	mov	edi, ebp
	mov	esi, eax
	call	writel@PLT
	cmp	DWORD PTR [r12], r13d
	jbe	.L2
.L3:
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	jne	.L7
.L2:
	add	rsp, 8
	.cfi_def_cfa_offset 40
	xor	eax, eax
	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
	.cfi_endproc
.LFE0:
	.size	xlgmac_config_rx_coalesce, .-xlgmac_config_rx_coalesce
	.comm	DMA_CH_RIWT_RWT_POS,4,4
	.comm	DMA_CH_RIWT_RWT_LEN,4,4
	.comm	DMA_CH_RIWT,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_dwc-xlgmac-hw.c_xlgmac_config_rx_coalesce.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xlgmac_config_rx_coalesce, %function
xlgmac_config_rx_coalesce:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldr	r3, [r0]
	ldr	r6, [r0, #8]
	cmp	r3, #0
	beq	.L2
	mov	r8, r0
	mov	r7, #0
	ldr	r9, .L14
	ldr	fp, .L14+4
	ldr	r10, .L14+8
	b	.L3
.L13:
	ldr	r1, [r9]
	mov	r0, r4
	bl	XLGMAC_DMA_REG
	bl	readl
	ldr	r3, [r8, #4]
	ldr	r2, [fp]
	ldr	r1, [r10]
	bl	XLGMAC_SET_REG_BITS
	ldr	r1, [r9]
	mov	r5, r0
	mov	r0, r4
	bl	XLGMAC_DMA_REG
	mov	r1, r0
	mov	r0, r5
	bl	writel
	ldr	r3, [r8]
	cmp	r3, r7
	bls	.L2
.L3:
	ldr	r3, [r6]
	mov	r4, r6
	cmp	r3, #0
	add	r7, r7, #1
	add	r6, r6, #4
	bne	.L13
.L2:
	mov	r0, #0
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L15:
	.align	2
.L14:
	.word	DMA_CH_RIWT
	.word	DMA_CH_RIWT_RWT_LEN
	.word	DMA_CH_RIWT_RWT_POS
	.size	xlgmac_config_rx_coalesce, .-xlgmac_config_rx_coalesce
	.comm	DMA_CH_RIWT_RWT_POS,4,4
	.comm	DMA_CH_RIWT_RWT_LEN,4,4
	.comm	DMA_CH_RIWT,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
