	.file	"extr_ringbuf.c_ringbuf_put16.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.globl	ringbuf_put16
	.type	ringbuf_put16, @function
ringbuf_put16:
.LFB0:
	.cfi_startproc
	endbr64
	mov	edx, esi
	movsx	rsi, DWORD PTR [rdi]
	mov	r10d, DWORD PTR 4[rdi]
	xor	r9d, r9d
	mov	r8d, DWORD PTR 8[rdi]
	lea	eax, 1[rsi]
	cmp	r10d, eax
	cmove	eax, r9d
	cmp	r8d, eax
	je	.L6
	lea	ecx, 1[rax]
	cmp	r10d, ecx
	cmove	ecx, r9d
	cmp	r8d, ecx
	je	.L6
	mov	r8, QWORD PTR 16[rdi]
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	cdqe
	movzx	ebx, dh
	and	edx, 255
	mov	DWORD PTR [r8+rsi*4], ebx
	mov	DWORD PTR [r8+rax*4], edx
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	mov	DWORD PTR [rdi], ecx
	ret
	.p2align 4,,10
	.p2align 3
.L6:
	.cfi_restore 3
	mov	eax, -1
	ret
	.cfi_endproc
.LFE0:
	.size	ringbuf_put16, .-ringbuf_put16
	.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_ringbuf.c_ringbuf_put16.c"
	.text
	.align	2
	.global	ringbuf_put16
	.syntax unified
	.arm
	.fpu softvfp
	.type	ringbuf_put16, %function
ringbuf_put16:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	ldm	r0, {r4, lr}
	add	r2, r4, #1
	cmp	lr, r2
	moveq	r2, #0
	mov	r3, r0
	ldr	r0, [r0, #8]
	cmp	r0, r2
	beq	.L6
	add	ip, r2, #1
	cmp	lr, ip
	moveq	ip, #0
	cmp	r0, ip
	beq	.L6
	ldr	lr, [r3, #12]
	asr	r0, r1, #8
	and	r0, r0, #255
	and	r1, r1, #255
	str	r0, [lr, r4, lsl #2]
	str	r1, [lr, r2, lsl #2]
	mov	r0, #0
	str	ip, [r3]
	pop	{r4, pc}
.L6:
	mvn	r0, #0
	pop	{r4, pc}
	.size	ringbuf_put16, .-ringbuf_put16
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
