	.file	"extr_mpegpicture.c_find_unused_picture.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Internal error, picture buffer overflow\n"
	.text
	.p2align 4
	.type	find_unused_picture, @function
find_unused_picture:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	mov	eax, DWORD PTR MAX_PICTURE_COUNT[rip]
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rsi
	test	edx, edx
	jne	.L2
	xor	r12d, r12d
	test	eax, eax
	jg	.L7
.L5:
	mov	esi, DWORD PTR AV_LOG_FATAL[rip]
	mov	rdi, rbp
	lea	rdx, .LC0[rip]
	mov	r12d, -1
	call	av_log@PLT
	xor	eax, eax
	call	abort@PLT
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	add	r12d, 1
	add	rbx, 8
	cmp	DWORD PTR MAX_PICTURE_COUNT[rip], r12d
	jle	.L5
.L7:
	mov	rdi, rbx
	call	pic_is_unused@PLT
	test	rax, rax
	je	.L15
	mov	eax, r12d
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	test	eax, eax
	jle	.L5
	lea	ecx, -1[rax]
	xor	eax, eax
	jmp	.L6
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rdx, 1[rax]
	cmp	rcx, rax
	je	.L5
	mov	rax, rdx
.L6:
	mov	rdx, QWORD PTR [rbx+rax*8]
	mov	r12d, eax
	mov	rdx, QWORD PTR [rdx]
	mov	edx, DWORD PTR [rdx]
	test	edx, edx
	jne	.L16
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	find_unused_picture, .-find_unused_picture
	.comm	MAX_PICTURE_COUNT,4,4
	.comm	AV_LOG_FATAL,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_mpegpicture.c_find_unused_picture.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Internal error, picture buffer overflow\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	find_unused_picture, %function
find_unused_picture:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L19
	subs	r4, r2, #0
	mov	r6, r0
	ldr	r0, [r7]
	bne	.L2
	cmp	r0, #0
	movgt	r5, r1
	bgt	.L7
.L5:
	mvn	r4, #0
	ldr	r3, .L19+4
	ldr	r2, .L19+8
	ldr	r1, [r3]
	mov	r0, r6
	bl	av_log
	bl	abort
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L17:
	ldr	r3, [r7]
	add	r4, r4, #1
	cmp	r3, r4
	add	r5, r5, #4
	ble	.L5
.L7:
	mov	r0, r5
	bl	pic_is_unused
	cmp	r0, #0
	beq	.L17
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	cmp	r0, #0
	ble	.L5
	mov	r4, #0
	sub	r1, r1, #4
	b	.L6
.L18:
	add	r4, r4, #1
	cmp	r4, r0
	beq	.L5
.L6:
	ldr	r3, [r1, #4]!
	ldr	r3, [r3]
	ldr	r3, [r3]
	cmp	r3, #0
	bne	.L18
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	.align	2
.L19:
	.word	MAX_PICTURE_COUNT
	.word	AV_LOG_FATAL
	.word	.LC0
	.size	find_unused_picture, .-find_unused_picture
	.comm	MAX_PICTURE_COUNT,4,4
	.comm	AV_LOG_FATAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
