	.file	"extr_hwcontext_vaapi.c_vaapi_get_image_format.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vaapi_get_image_format, @function
vaapi_get_image_format:
.LFB0:
	.cfi_startproc
	endbr64
	mov	rax, QWORD PTR [rdi]
	mov	rax, QWORD PTR [rax]
	mov	ecx, DWORD PTR [rax]
	test	ecx, ecx
	jle	.L2
	mov	rax, QWORD PTR 8[rax]
	sub	ecx, 1
	lea	rcx, 8[rax+rcx*8]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L3:
	add	rax, 8
	cmp	rax, rcx
	je	.L2
.L5:
	cmp	DWORD PTR [rax], esi
	jne	.L3
	test	rdx, rdx
	je	.L1
	add	rax, 4
	mov	QWORD PTR [rdx], rax
.L1:
	xor	eax, eax
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	mov	edi, DWORD PTR EINVAL[rip]
	jmp	AVERROR@PLT
	.cfi_endproc
.LFE0:
	.size	vaapi_get_image_format, .-vaapi_get_image_format
	.comm	EINVAL,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_hwcontext_vaapi.c_vaapi_get_image_format.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vaapi_get_image_format, %function
vaapi_get_image_format:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	ldr	r3, [r0]
	push	{r4, lr}
	ldr	r3, [r3]
	ldr	r4, [r3]
	cmp	r4, #0
	ble	.L2
	ldr	lr, [r3, #4]
	mov	r3, #0
	mov	r0, lr
	b	.L5
.L3:
	cmp	r3, r4
	add	r0, r0, #8
	beq	.L2
.L5:
	ldr	ip, [lr, r3, lsl #3]
	add	r3, r3, #1
	cmp	ip, r1
	bne	.L3
	cmp	r2, #0
	addne	r0, r0, #4
	strne	r0, [r2]
.L1:
	mov	r0, #0
	pop	{r4, pc}
.L2:
	ldr	r3, .L11
	pop	{r4, lr}
	ldr	r0, [r3]
	b	AVERROR
.L12:
	.align	2
.L11:
	.word	EINVAL
	.size	vaapi_get_image_format, .-vaapi_get_image_format
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
