	.file	"extr_xring.c_xring_remove.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	xring_remove, @function
xring_remove:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, DWORD PTR [rdi]
	xor	eax, eax
	cmp	edx, DWORD PTR 4[rdi]
	jge	.L1
	mov	eax, DWORD PTR XRING_SIZE[rip]
	mov	rcx, QWORD PTR 8[rdi]
	sub	eax, 1
	and	eax, edx
	cdqe
	lea	rcx, [rcx+rax*8]
	mov	rax, QWORD PTR [rcx]
	test	rax, rax
	je	.L1
	add	edx, 1
	mov	QWORD PTR [rcx], 0
	mov	DWORD PTR [rdi], edx
.L1:
	ret
	.cfi_endproc
.LFE0:
	.size	xring_remove, .-xring_remove
	.comm	XRING_SIZE,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_xring.c_xring_remove.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	xring_remove, %function
xring_remove:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldm	r0, {r1, r2}
	cmp	r1, r2
	bge	.L3
	ldr	r2, .L12
	ldr	ip, [r0, #8]
	ldr	r2, [r2]
	mov	r3, r0
	sub	r2, r2, #1
	and	r2, r2, r1
	ldr	r0, [ip, r2, lsl #2]
	cmp	r0, #0
	bxeq	lr
	str	lr, [sp, #-4]!
	mov	lr, #0
	add	r1, r1, #1
	str	lr, [ip, r2, lsl #2]
	str	r1, [r3]
	ldr	pc, [sp], #4
.L3:
	mov	r0, #0
	bx	lr
.L13:
	.align	2
.L12:
	.word	XRING_SIZE
	.size	xring_remove, .-xring_remove
	.comm	XRING_SIZE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
