	.file	"extr_sxgbe_main.c_sxgbe_clear_descriptors.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	sxgbe_clear_descriptors, @function
sxgbe_clear_descriptors:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rdi
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	xor	r13d, r13d
	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	eax, DWORD PTR [rdi]
	mov	esi, DWORD PTR SXGBE_RX_QUEUES[rip]
	mov	DWORD PTR 8[rsp], eax
	mov	eax, DWORD PTR 4[rdi]
	mov	DWORD PTR 12[rsp], eax
	lea	ebx, -1[rax]
	test	esi, esi
	jle	.L3
	.p2align 4,,10
	.p2align 3
.L2:
	mov	ecx, DWORD PTR 12[rsp]
	lea	r12, 0[0+r13*8]
	mov	ebp, ebx
	xor	r14d, r14d
	test	ecx, ecx
	je	.L6
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 32[r15]
	xor	ecx, ecx
	cmp	ebx, r14d
	mov	edx, DWORD PTR 24[r15]
	sete	cl
	mov	esi, DWORD PTR 28[r15]
	mov	rax, QWORD PTR [rax+r12]
	mov	rax, QWORD PTR [rax]
	lea	rdi, [rax+r14*4]
	mov	rax, QWORD PTR 16[r15]
	mov	rax, QWORD PTR [rax]
	call	[QWORD PTR 8[rax]]
	mov	rax, r14
	add	r14, 1
	cmp	rbp, rax
	jne	.L4
.L6:
	add	r13, 1
	cmp	DWORD PTR SXGBE_RX_QUEUES[rip], r13d
	jg	.L2
.L3:
	mov	edx, DWORD PTR SXGBE_TX_QUEUES[rip]
	test	edx, edx
	jle	.L1
	mov	eax, DWORD PTR 8[rsp]
	xor	r13d, r13d
	sub	eax, 1
	lea	r12, 4[0+rax*4]
	.p2align 4,,10
	.p2align 3
.L8:
	mov	eax, DWORD PTR 8[rsp]
	lea	rbp, 0[0+r13*8]
	xor	ebx, ebx
	test	eax, eax
	je	.L11
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rax, QWORD PTR 8[r15]
	mov	rax, QWORD PTR [rax+rbp]
	mov	rdi, QWORD PTR [rax]
	mov	rax, QWORD PTR 16[r15]
	mov	rax, QWORD PTR [rax]
	add	rdi, rbx
	add	rbx, 4
	call	[QWORD PTR [rax]]
	cmp	rbx, r12
	jne	.L9
.L11:
	add	r13, 1
	cmp	DWORD PTR SXGBE_TX_QUEUES[rip], r13d
	jg	.L8
.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	sxgbe_clear_descriptors, .-sxgbe_clear_descriptors
	.comm	SXGBE_TX_QUEUES,4,4
	.comm	SXGBE_RX_QUEUES,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_sxgbe_main.c_sxgbe_clear_descriptors.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	sxgbe_clear_descriptors, %function
sxgbe_clear_descriptors:
	@ 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, .L20
	ldr	r7, [r0, #4]
	ldr	r3, [r3]
	mov	r4, r0
	cmp	r3, #0
	movgt	fp, #0
	ldr	r8, [r0]
	subgt	r10, r7, #1
	ble	.L3
.L2:
	cmp	r7, #0
	movne	r5, #0
	lslne	r9, fp, #2
	beq	.L6
.L4:
	ldr	r3, [r4, #12]
	ldr	r2, [r4, #24]
	ldr	r3, [r3]
	ldr	r2, [r2, r9]
	ldr	r6, [r3, #4]
	sub	r3, r5, r10
	clz	r3, r3
	ldr	r0, [r2]
	ldr	r1, [r4, #20]
	add	r0, r0, r5, lsl #2
	ldr	r2, [r4, #16]
	lsr	r3, r3, #5
	add	r5, r5, #1
	blx	r6
	cmp	r5, r7
	bne	.L4
.L6:
	ldr	r3, .L20
	add	fp, fp, #1
	ldr	r3, [r3]
	cmp	r3, fp
	bgt	.L2
.L3:
	ldr	r9, .L20+4
	ldr	r3, [r9]
	cmp	r3, #0
	pople	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
	mov	r7, #0
.L7:
	cmp	r8, #0
	movne	r5, #0
	lslne	r6, r7, #2
	beq	.L11
.L9:
	ldr	r2, [r4, #8]
	ldr	r3, [r4, #12]
	ldr	r2, [r2, r6]
	ldr	r3, [r3]
	ldr	r0, [r2]
	ldr	r3, [r3]
	add	r0, r0, r5, lsl #2
	add	r5, r5, #1
	blx	r3
	cmp	r5, r8
	bne	.L9
.L11:
	ldr	r3, [r9]
	add	r7, r7, #1
	cmp	r3, r7
	bgt	.L7
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L21:
	.align	2
.L20:
	.word	SXGBE_RX_QUEUES
	.word	SXGBE_TX_QUEUES
	.size	sxgbe_clear_descriptors, .-sxgbe_clear_descriptors
	.comm	SXGBE_TX_QUEUES,4,4
	.comm	SXGBE_RX_QUEUES,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
