	.file	"extr_picture_pool.c_picture_pool_ReleasePicture.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	picture_pool_ReleasePicture, @function
picture_pool_ReleasePicture:
.LFB0:
	.cfi_startproc
	endbr64
	mov	eax, DWORD PTR POOL_MAX[rip]
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	ebp, eax
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	ebx, DWORD PTR [rdi]
	sub	eax, 1
	neg	ebp
	and	ebp, ebx
	and	ebx, eax
	movsx	rbp, ebp
	mov	edx, ebx
	mov	rax, QWORD PTR 24[rbp]
	mov	r12, QWORD PTR [rax+rdx*8]
	mov	rax, QWORD PTR 16[rbp]
	test	rax, rax
	je	.L2
	mov	rdi, r12
	call	rax
.L2:
	mov	rdi, r12
	lea	r12, 8[rbp]
	call	picture_Release@PLT
	mov	rdi, r12
	call	vlc_mutex_lock@PLT
	mov	rdi, QWORD PTR 0[rbp]
	mov	ecx, ebx
	shr	rdi, cl
	not	rdi
	and	edi, 1
	call	assert@PLT
	mov	ecx, ebx
	mov	edx, 1
	lea	rdi, 12[rbp]
	sal	rdx, cl
	or	QWORD PTR 0[rbp], rdx
	call	vlc_cond_signal@PLT
	mov	rdi, r12
	call	vlc_mutex_unlock@PLT
	pop	rbx
	.cfi_def_cfa_offset 24
	mov	rdi, rbp
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	picture_pool_Destroy@PLT
	.cfi_endproc
.LFE0:
	.size	picture_pool_ReleasePicture, .-picture_pool_ReleasePicture
	.comm	POOL_MAX,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_picture_pool.c_picture_pool_ReleasePicture.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	picture_pool_ReleasePicture, %function
picture_pool_ReleasePicture:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r2, .L8
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r5, [r2]
	ldr	r3, [r0]
	rsb	r4, r5, #0
	and	r4, r4, r3
	ldr	r2, [r4, #16]
	ldr	r1, [r4, #20]
	sub	r5, r5, #1
	and	r5, r5, r3
	cmp	r2, #0
	ldr	r6, [r1, r5, lsl #2]
	beq	.L2
	mov	r0, r6
	blx	r2
.L2:
	add	r7, r4, #8
	mov	r0, r6
	bl	picture_Release
	mov	r0, r7
	bl	vlc_mutex_lock
	ldm	r4, {r0, r3}
	rsb	r9, r5, #32
	lsr	r0, r0, r5
	orr	r0, r0, r3, lsl r9
	sub	r6, r5, #32
	orr	r0, r0, r3, lsr r6
	mov	r8, #1
	mvn	r0, r0
	and	r0, r0, r8
	bl	assert
	ldr	r1, [r4, #4]
	ldr	r2, [r4]
	lsl	r3, r8, r6
	orr	r3, r3, r8, lsr r9
	orr	r5, r2, r8, lsl r5
	orr	r3, r1, r3
	str	r3, [r4, #4]
	str	r5, [r4]
	add	r0, r4, #12
	bl	vlc_cond_signal
	mov	r0, r7
	bl	vlc_mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	b	picture_pool_Destroy
.L9:
	.align	2
.L8:
	.word	POOL_MAX
	.size	picture_pool_ReleasePicture, .-picture_pool_ReleasePicture
	.comm	POOL_MAX,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
