	.file	"extr_dwc-xlgmac-desc.c_xlgmac_tx_desc_init.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xlgmac_tx_desc_init, @function
xlgmac_tx_desc_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	edx, DWORD PTR [rdi]
	mov	rbp, QWORD PTR 8[rdi]
	mov	QWORD PTR 8[rsp], rdi
	test	edx, edx
	je	.L1
	xor	r12d, r12d
	.p2align 4,,10
	.p2align 3
.L5:
	mov	r13, QWORD PTR 0[rbp]
	test	r13, r13
	je	.L1
	mov	eax, DWORD PTR 4[r13]
	mov	r14, QWORD PTR 32[r13]
	mov	ebx, DWORD PTR 0[r13]
	test	eax, eax
	je	.L3
	xor	r15d, r15d
	sub	ebx, r14d
	.p2align 4,,10
	.p2align 3
.L4:
	mov	esi, r15d
	mov	rdi, r13
	add	r15d, 1
	call	XLGMAC_GET_DESC_DATA@PLT
	lea	edx, [rbx+r14]
	mov	QWORD PTR 8[rax], r14
	add	r14, 4
	mov	DWORD PTR [rax], edx
	cmp	DWORD PTR 4[r13], r15d
	ja	.L4
.L3:
	lea	rdi, 8[r13]
	mov	edx, 4
	xor	esi, esi
	add	r12d, 1
	mov	QWORD PTR 24[r13], 0
	mov	QWORD PTR 16[r13], 0
	call	memset@PLT
	mov	rbx, QWORD PTR 8[rsp]
	mov	rdi, rbp
	add	rbp, 8
	mov	rax, rbx
	call	[QWORD PTR 16[rax]]
	cmp	DWORD PTR [rbx], r12d
	ja	.L5
.L1:
	add	rsp, 24
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	xlgmac_tx_desc_init, .-xlgmac_tx_desc_init
	.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-desc.c_xlgmac_tx_desc_init.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xlgmac_tx_desc_init, %function
xlgmac_tx_desc_init:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	ldm	r0, {r3, r6}
	cmp	r3, #0
	sub	sp, sp, #12
	beq	.L1
	mov	r7, #0
	mov	r8, r0
	mov	r5, r7
.L5:
	str	r6, [sp, #4]
	ldr	fp, [r6], #4
	cmp	fp, #0
	beq	.L1
	ldr	r3, [fp, #4]
	ldr	r10, [fp, #20]
	cmp	r3, #0
	ldr	r4, [fp]
	beq	.L3
	mov	r9, #0
	sub	r4, r4, r10
.L4:
	mov	r1, r9
	mov	r0, fp
	bl	XLGMAC_GET_DESC_DATA
	ldr	r2, [fp, #4]
	add	r9, r9, #1
	add	r3, r10, r4
	cmp	r2, r9
	stm	r0, {r3, r10}
	add	r10, r10, #4
	bhi	.L4
.L3:
	strb	r5, [fp, #8]
	strb	r5, [fp, #9]
	strb	r5, [fp, #10]
	strb	r5, [fp, #11]
	ldr	r3, [r8, #8]
	ldr	r0, [sp, #4]
	str	r5, [fp, #16]
	str	r5, [fp, #12]
	blx	r3
	ldr	r3, [r8]
	add	r7, r7, #1
	cmp	r3, r7
	bhi	.L5
.L1:
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
	.size	xlgmac_tx_desc_init, .-xlgmac_tx_desc_init
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
