	.file	"extr_vaapi_decode.c_ff_vaapi_decode_init.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to create decode context: %d (%s).\n"
	.align 8
.LC1:
	.string	"Decode context initialised: %#x/%#x.\n"
	.text
	.p2align 4
	.globl	ff_vaapi_decode_init
	.type	ff_vaapi_decode_init, @function
ff_vaapi_decode_init:
.LFB0:
	.cfi_startproc
	endbr64
	push	r13
	.cfi_def_cfa_offset 16
	.cfi_offset 13, -16
	push	r12
	.cfi_def_cfa_offset 24
	.cfi_offset 12, -24
	push	rbp
	.cfi_def_cfa_offset 32
	.cfi_offset 6, -32
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR 24[rdi]
	mov	esi, DWORD PTR AV_HWDEVICE_TYPE_VAAPI[rip]
	mov	rbx, QWORD PTR [rax]
	mov	rax, QWORD PTR VA_INVALID_ID[rip]
	mov	QWORD PTR [rbx], rax
	mov	QWORD PTR 16[rbx], rax
	call	ff_decode_get_hw_frames_ctx@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L2
	mov	rcx, QWORD PTR 8[rbp]
	mov	rdi, rbp
	mov	rax, QWORD PTR [rcx]
	mov	rdx, QWORD PTR 16[rax]
	mov	esi, DWORD PTR [rax]
	mov	QWORD PTR 40[rbx], rax
	mov	QWORD PTR 24[rbx], rdx
	mov	rdx, QWORD PTR 8[rax]
	mov	QWORD PTR 48[rbx], rdx
	mov	rdx, QWORD PTR [rdx]
	mov	QWORD PTR 32[rbx], rdx
	mov	rdx, rbx
	call	vaapi_decode_make_config@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L7
.L2:
	mov	rdi, rbp
	call	ff_vaapi_decode_uninit@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L7:
	.cfi_restore_state
	mov	rax, QWORD PTR 24[rbx]
	mov	rdi, QWORD PTR 32[rbx]
	lea	rcx, 16[rbx]
	mov	edx, DWORD PTR 4[rbp]
	mov	r8d, DWORD PTR VA_PROGRESSIVE[rip]
	mov	r9d, DWORD PTR 4[rax]
	mov	eax, DWORD PTR [rax]
	push	rcx
	.cfi_def_cfa_offset 56
	mov	rsi, QWORD PTR [rbx]
	mov	ecx, DWORD PTR 0[rbp]
	push	rax
	.cfi_def_cfa_offset 64
	mov	edi, DWORD PTR [rdi]
	call	vaCreateContext@PLT
	mov	r13, rax
	cmp	QWORD PTR VA_STATUS_SUCCESS[rip], r13
	pop	rax
	.cfi_def_cfa_offset 56
	pop	rdx
	.cfi_def_cfa_offset 48
	je	.L3
	mov	rdi, r13
	call	vaErrorStr@PLT
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	mov	rcx, r13
	mov	rdi, rbp
	mov	r8, rax
	lea	rdx, .LC0[rip]
	xor	eax, eax
	call	av_log@PLT
	mov	edi, DWORD PTR EIO[rip]
	call	AVERROR@PLT
	mov	r12d, eax
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L3:
	mov	r8, QWORD PTR 16[rbx]
	mov	rcx, QWORD PTR [rbx]
	mov	rdi, rbp
	xor	eax, eax
	mov	esi, DWORD PTR AV_LOG_DEBUG[rip]
	lea	rdx, .LC1[rip]
	call	av_log@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 32
	pop	rbp
	.cfi_def_cfa_offset 24
	pop	r12
	.cfi_def_cfa_offset 16
	pop	r13
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ff_vaapi_decode_init, .-ff_vaapi_decode_init
	.comm	VA_STATUS_SUCCESS,8,8
	.comm	VA_PROGRESSIVE,4,4
	.comm	VA_INVALID_ID,8,8
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	AV_VAAPI_DRIVER_QUIRK_RENDER_PARAM_BUFFERS,4,4
	.comm	AV_LOG_WARNING,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AV_LOG_DEBUG,4,4
	.comm	AV_HWDEVICE_TYPE_VAAPI,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_vaapi_decode.c_ff_vaapi_decode_init.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to create decode context: %d (%s).\012\000"
	.align	2
.LC1:
	.ascii	"Decode context initialised: %#x/%#x.\012\000"
	.text
	.align	2
	.global	ff_vaapi_decode_init
	.syntax unified
	.arm
	.fpu softvfp
	.type	ff_vaapi_decode_init, %function
ff_vaapi_decode_init:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r2, [r0, #16]
	ldr	r3, .L8
	ldr	r6, [r2]
	ldr	r3, [r3]
	ldr	r2, .L8+4
	sub	sp, sp, #20
	ldr	r1, [r2]
	str	r3, [r6]
	str	r3, [r6, #8]
	mov	r5, r0
	bl	ff_decode_get_hw_frames_ctx
	subs	r4, r0, #0
	blt	.L2
	ldr	r3, [r5, #8]
	mov	r2, r6
	ldr	r1, [r3]
	ldmib	r1, {r0, ip}
	ldr	lr, [r0]
	str	r1, [r6, #20]
	str	r0, [r6, #24]
	ldr	r1, [r1]
	mov	r0, r5
	str	lr, [r6, #16]
	str	ip, [r6, #12]
	bl	vaapi_decode_make_config
	subs	r4, r0, #0
	beq	.L7
.L2:
	mov	r0, r5
	bl	ff_vaapi_decode_uninit
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L7:
	ldr	r1, [r6, #16]
	ldr	r2, [r6, #12]
	add	r3, r6, #8
	ldr	r0, [r1]
	ldr	r1, [r6]
	str	r3, [sp, #12]
	ldr	ip, [r2]
	ldr	r3, .L8+8
	str	ip, [sp, #8]
	ldr	r2, [r2, #4]
	ldr	r3, [r3]
	str	r2, [sp, #4]
	str	r3, [sp]
	ldr	r3, [r5]
	ldr	r2, [r5, #4]
	bl	vaCreateContext
	ldr	r3, .L8+12
	mov	r7, r0
	ldr	r3, [r3]
	cmp	r3, r0
	beq	.L3
	ldr	r3, .L8+16
	ldr	r4, [r3]
	bl	vaErrorStr
	mov	r1, r4
	mov	r3, r7
	ldr	r2, .L8+20
	str	r0, [sp]
	mov	r0, r5
	bl	av_log
	ldr	r3, .L8+24
	ldr	r0, [r3]
	bl	AVERROR
	mov	r4, r0
	b	.L2
.L3:
	ldr	r1, [r6, #8]
	ldr	r2, .L8+28
	ldr	r3, [r6]
	str	r1, [sp]
	ldr	r1, [r2]
	mov	r0, r5
	ldr	r2, .L8+32
	bl	av_log
	mov	r0, r4
	add	sp, sp, #20
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L9:
	.align	2
.L8:
	.word	VA_INVALID_ID
	.word	AV_HWDEVICE_TYPE_VAAPI
	.word	VA_PROGRESSIVE
	.word	VA_STATUS_SUCCESS
	.word	AV_LOG_ERROR
	.word	.LC0
	.word	EIO
	.word	AV_LOG_DEBUG
	.word	.LC1
	.size	ff_vaapi_decode_init, .-ff_vaapi_decode_init
	.comm	VA_STATUS_SUCCESS,4,4
	.comm	VA_PROGRESSIVE,4,4
	.comm	VA_INVALID_ID,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	AV_VAAPI_DRIVER_QUIRK_RENDER_PARAM_BUFFERS,4,4
	.comm	AV_LOG_WARNING,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AV_LOG_DEBUG,4,4
	.comm	AV_HWDEVICE_TYPE_VAAPI,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
