	.file	"extr_enh_desc.c_enh_desc_init_rx_desc.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	enh_desc_init_rx_desc, @function
enh_desc_init_rx_desc:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14d, ecx
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	mov	r13d, edx
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12d, r8d
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	ebp, esi
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdi
	mov	edi, DWORD PTR RDES0_OWN[rip]
	call	cpu_to_le32@PLT
	or	DWORD PTR 4[rbx], eax
	mov	esi, DWORD PTR BUF_SIZE_8KiB[rip]
	mov	edi, r12d
	call	min@PLT
	and	eax, DWORD PTR ERDES1_BUFFER1_SIZE_MASK[rip]
	mov	edi, eax
	call	cpu_to_le32@PLT
	or	DWORD PTR [rbx], eax
	cmp	DWORD PTR STMMAC_CHAIN_MODE[rip], r13d
	je	.L10
	mov	edx, r12d
	mov	esi, r14d
	mov	rdi, rbx
	call	ehn_desc_rx_set_on_ring@PLT
	test	ebp, ebp
	jne	.L11
.L1:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L10:
	.cfi_restore_state
	mov	rdi, rbx
	call	ehn_desc_rx_set_on_chain@PLT
	test	ebp, ebp
	je	.L1
.L11:
	mov	edi, DWORD PTR ERDES1_DISABLE_IC[rip]
	call	cpu_to_le32@PLT
	or	DWORD PTR [rbx], eax
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	enh_desc_init_rx_desc, .-enh_desc_init_rx_desc
	.comm	STMMAC_CHAIN_MODE,4,4
	.comm	RDES0_OWN,4,4
	.comm	ERDES1_DISABLE_IC,4,4
	.comm	ERDES1_BUFFER1_SIZE_MASK,4,4
	.comm	BUF_SIZE_8KiB,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_enh_desc.c_enh_desc_init_rx_desc.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	enh_desc_init_rx_desc, %function
enh_desc_init_rx_desc:
	@ args = 4, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	ip, .L12
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r0, [ip]
	mov	r6, r2
	mov	r5, r1
	mov	r8, r3
	ldr	r7, [sp, #24]
	bl	cpu_to_le32
	ldr	r2, [r4, #4]
	ldr	r3, .L12+4
	orr	r2, r2, r0
	ldr	r1, [r3]
	str	r2, [r4, #4]
	mov	r0, r7
	bl	min
	ldr	r3, .L12+8
	ldr	r3, [r3]
	and	r0, r0, r3
	bl	cpu_to_le32
	ldr	r3, .L12+12
	ldr	r1, [r4]
	ldr	r3, [r3]
	orr	r1, r1, r0
	cmp	r3, r6
	str	r1, [r4]
	beq	.L10
	mov	r2, r7
	mov	r1, r8
	mov	r0, r4
	bl	ehn_desc_rx_set_on_ring
	cmp	r5, #0
	popeq	{r4, r5, r6, r7, r8, pc}
.L11:
	ldr	r3, .L12+16
	ldr	r0, [r3]
	bl	cpu_to_le32
	ldr	r3, [r4]
	orr	r3, r3, r0
	str	r3, [r4]
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	mov	r0, r4
	bl	ehn_desc_rx_set_on_chain
	cmp	r5, #0
	popeq	{r4, r5, r6, r7, r8, pc}
	b	.L11
.L13:
	.align	2
.L12:
	.word	RDES0_OWN
	.word	BUF_SIZE_8KiB
	.word	ERDES1_BUFFER1_SIZE_MASK
	.word	STMMAC_CHAIN_MODE
	.word	ERDES1_DISABLE_IC
	.size	enh_desc_init_rx_desc, .-enh_desc_init_rx_desc
	.comm	STMMAC_CHAIN_MODE,4,4
	.comm	RDES0_OWN,4,4
	.comm	ERDES1_DISABLE_IC,4,4
	.comm	ERDES1_BUFFER1_SIZE_MASK,4,4
	.comm	BUF_SIZE_8KiB,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
