	.file	"extr_......includelinuxptr_ring.h_ptr_ring_unconsume.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ptr_ring_unconsume, @function
ptr_ring_unconsume:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	lea	rax, 12[rdi]
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, rcx
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rsi
	xor	esi, esi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdi
	mov	rdi, rax
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR [rsp], rax
	call	spin_lock_irqsave@PLT
	lea	rax, 16[rbx]
	mov	rdi, rax
	mov	QWORD PTR 8[rsp], rax
	call	spin_lock@PLT
	mov	eax, DWORD PTR [rbx]
	test	eax, eax
	je	.L2
	mov	eax, DWORD PTR 4[rbx]
	lea	r15d, -1[rax]
	movsx	rcx, r15d
	lea	r14, 0[0+rcx*8]
	jmp	.L3
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, QWORD PTR 24[rbx]
	sub	r15d, 1
	mov	QWORD PTR [rax+r14], 0
	sub	r14, 8
.L3:
	xor	edi, edi
	cmp	DWORD PTR 8[rbx], r15d
	setle	dil
	call	likely@PLT
	test	rax, rax
	jne	.L4
	mov	edi, DWORD PTR 4[rbx]
	mov	DWORD PTR 8[rbx], edi
	test	r12d, r12d
	je	.L5
	movsx	r14, r12d
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L8:
	mov	rcx, QWORD PTR -8[rbp+r14*8]
	sub	r14, 1
	mov	QWORD PTR [rax], rcx
	mov	DWORD PTR 8[rbx], esi
	call	WRITE_ONCE@PLT
	test	r14d, r14d
	je	.L5
	mov	edi, DWORD PTR 4[rbx]
.L6:
	mov	esi, edi
	mov	r12d, r14d
	sub	esi, 1
	jns	.L7
	mov	eax, DWORD PTR [rbx]
	lea	esi, -1[rax]
.L7:
	mov	rcx, QWORD PTR 24[rbx]
	movsx	rax, esi
	lea	rax, [rcx+rax*8]
	cmp	QWORD PTR [rax], 0
	je	.L8
.L2:
	movsx	rbx, r12d
	test	r12d, r12d
	je	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR -8[rbp+rbx*8]
	sub	rbx, 1
	call	r13
	test	ebx, ebx
	jne	.L10
.L5:
	mov	rdi, QWORD PTR 8[rsp]
	call	spin_unlock@PLT
	mov	rdi, QWORD PTR [rsp]
	add	rsp, 24
	.cfi_def_cfa_offset 56
	xor	esi, esi
	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
	jmp	spin_unlock_irqrestore@PLT
	.cfi_endproc
.LFE0:
	.size	ptr_ring_unconsume, .-ptr_ring_unconsume
	.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_......includelinuxptr_ring.h_ptr_ring_unconsume.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ptr_ring_unconsume, %function
ptr_ring_unconsume:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r5, r0
	add	r8, r0, #12
	mov	r6, r1
	mov	r0, r8
	mov	r1, #0
	add	r9, r5, #16
	mov	r7, r3
	mov	r4, r2
	bl	spin_lock_irqsave
	mov	r0, r9
	bl	spin_lock
	ldr	r3, [r5]
	cmp	r3, #0
	beq	.L2
	ldr	r10, [r5, #4]
	mov	fp, #0
	sub	r10, r10, #1
	b	.L3
.L4:
	ldr	r3, [r5, #20]
	str	fp, [r3, r10, lsl #2]
	sub	r10, r10, #1
.L3:
	ldr	r0, [r5, #8]
	cmp	r0, r10
	movgt	r0, #0
	movle	r0, #1
	bl	likely
	cmp	r0, #0
	bne	.L4
	ldr	r0, [r5, #4]
	cmp	r4, #0
	str	r0, [r5, #8]
	beq	.L5
	add	r10, r6, r4, lsl #2
	b	.L6
.L18:
	ldr	r2, [r10, #-4]!
	sub	r4, r4, #1
	str	r2, [r3, r1, lsl #2]
	str	r1, [r5, #8]
	bl	WRITE_ONCE
	cmp	r4, #0
	beq	.L5
	ldr	r0, [r5, #4]
.L6:
	subs	r1, r0, #1
	ldrmi	r1, [r5]
	ldr	r3, [r5, #20]
	submi	r1, r1, #1
	ldr	r2, [r3, r1, lsl #2]
	cmp	r2, #0
	beq	.L18
.L8:
	add	r4, r6, r4, lsl #2
.L10:
	ldr	r0, [r4, #-4]!
	blx	r7
	cmp	r6, r4
	bne	.L10
.L5:
	mov	r0, r9
	bl	spin_unlock
	mov	r0, r8
	pop	{r3, r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r1, #0
	b	spin_unlock_irqrestore
.L2:
	cmp	r4, #0
	bne	.L8
	b	.L5
	.size	ptr_ring_unconsume, .-ptr_ring_unconsume
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
