	.file	"extr_video.c_get_req_frames.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	get_req_frames, @function
get_req_frames:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	test	esi, esi
	jne	.L9
	mov	rbx, rdi
	mov	rdi, QWORD PTR 16[rdi]
	mov	rax, QWORD PTR [rdi]
	mov	edx, DWORD PTR [rax]
	test	DWORD PTR VO_CAP_NORETAIN[rip], edx
	jne	.L9
	mov	rdx, QWORD PTR 32[rbx]
	test	rdx, rdx
	je	.L3
	cmp	QWORD PTR [rdx], 0
	jne	.L9
.L3:
	mov	rdx, QWORD PTR 24[rbx]
	cmp	QWORD PTR 8[rdx], 0
	jne	.L9
	cmp	QWORD PTR 8[rax], 0
	jne	.L9
	xor	r12d, r12d
	cmp	QWORD PTR [rdx], 0
	mov	rax, QWORD PTR MP_NOPTS_VALUE[rip]
	sete	r12b
	add	r12d, 1
	cmp	QWORD PTR [rbx], rax
	je	.L1
	call	vo_get_num_req_frames@PLT
	mov	edi, DWORD PTR 8[rbx]
	mov	ebp, eax
	call	MP_ARRAY_SIZE@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	mov	esi, r12d
	mov	edi, ebp
	lea	rdx, -1[rax]
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	jmp	MPCLAMP@PLT
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	r12d, 1
.L1:
	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	get_req_frames, .-get_req_frames
	.comm	VO_CAP_NORETAIN,4,4
	.comm	MP_NOPTS_VALUE,8,8
	.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_video.c_get_req_frames.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	get_req_frames, %function
get_req_frames:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	cmp	r1, #0
	push	{r4, r5, r6, lr}
	bne	.L9
	mov	r4, r0
	ldr	r0, [r0, #8]
	ldr	r2, .L16
	ldr	r3, [r0]
	ldr	r2, [r2]
	ldr	r1, [r3]
	tst	r1, r2
	bne	.L9
	ldr	r2, [r4, #16]
	cmp	r2, #0
	beq	.L3
	ldr	r2, [r2]
	cmp	r2, #0
	bne	.L9
.L3:
	ldr	r2, [r4, #12]
	ldr	r1, [r2, #4]
	cmp	r1, #0
	bne	.L9
	ldr	r3, [r3, #4]
	cmp	r3, #0
	bne	.L9
	ldr	r3, .L16+4
	ldr	r1, [r2]
	ldr	r3, [r3]
	ldr	r2, [r4]
	cmp	r1, #0
	movne	r5, #1
	moveq	r5, #2
	cmp	r2, r3
	beq	.L1
	bl	vo_get_num_req_frames
	mov	r3, r0
	ldr	r0, [r4, #4]
	mov	r4, r3
	bl	MP_ARRAY_SIZE
	mov	r2, r0
	mov	r1, r5
	mov	r0, r4
	pop	{r4, r5, r6, lr}
	sub	r2, r2, #1
	b	MPCLAMP
.L9:
	mov	r5, #1
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, pc}
.L17:
	.align	2
.L16:
	.word	VO_CAP_NORETAIN
	.word	MP_NOPTS_VALUE
	.size	get_req_frames, .-get_req_frames
	.comm	VO_CAP_NORETAIN,4,4
	.comm	MP_NOPTS_VALUE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
