	.file	"extr_qsvvpp.c_ff_qsvvpp_create.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Fail to get frame info from link.\n"
	.align 8
.LC1:
	.string	"Failed to create a qsvvpp, ret = %d.\n"
	.text
	.p2align 4
	.globl	ff_qsvvpp_create
	.type	ff_qsvvpp_create, @function
ff_qsvvpp_create:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	mov	r14, rdi
	mov	edi, 120
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	mov	rbp, rdx
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rsi
	sub	rsp, 16
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	av_mallocz@PLT
	mov	QWORD PTR [rsp], rax
	test	rax, rax
	je	.L41
	mov	rsi, rax
	mov	rax, QWORD PTR 32[rbp]
	mov	QWORD PTR 112[rsi], rax
	test	rax, rax
	je	.L42
.L4:
	mov	eax, DWORD PTR 24[rbp]
	mov	rdi, r14
	mov	DWORD PTR 104[rsi], eax
	call	init_vpp_session@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L5
	mov	edi, DWORD PTR [r14]
	mov	esi, 16
	mov	r12, QWORD PTR [rsp]
	call	av_mallocz_array@PLT
	mov	rsi, QWORD PTR [rsp]
	mov	QWORD PTR 96[r12], rax
	mov	rdi, QWORD PTR 96[rsi]
	test	rdi, rdi
	je	.L15
	mov	eax, DWORD PTR [r14]
	xor	r13d, r13d
	test	eax, eax
	jg	.L7
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L43:
	mov	eax, DWORD PTR [r14]
	add	r13, 1
	mov	rsi, QWORD PTR [rsp]
	cmp	eax, r13d
	jle	.L8
	mov	rdi, QWORD PTR 96[rsi]
.L7:
	mov	rax, QWORD PTR 16[r14]
	mov	esi, DWORD PTR [rax+r13*4]
	mov	rax, r13
	sal	rax, 4
	add	rdi, rax
	call	fill_frameinfo_by_link@PLT
	mov	r12d, eax
	test	eax, eax
	jns	.L43
.L5:
	mov	rdi, rsp
	call	ff_qsvvpp_free@PLT
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L44
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L42:
	.cfi_restore_state
	mov	rax, QWORD PTR ff_filter_frame[rip]
	mov	QWORD PTR 112[rsi], rax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR 0[rbp]
	test	edi, edi
	jle	.L9
	mov	rdx, QWORD PTR 16[rbp]
	movsx	rcx, eax
	lea	eax, -1[rdi]
	lea	rax, [rax+rax*2]
	lea	r9, 24[rdx+rax*8]
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L10:
	mov	rdi, QWORD PTR 96[rsi]
	mov	r8d, DWORD PTR 20[rdx]
	sal	rax, 4
	add	rdx, 24
	add	rax, rdi
	mov	DWORD PTR 12[rax], r8d
	mov	r8d, DWORD PTR -8[rdx]
	mov	DWORD PTR 8[rax], r8d
	mov	r8d, DWORD PTR -12[rdx]
	mov	DWORD PTR 4[rax], r8d
	mov	r8d, DWORD PTR -16[rdx]
	mov	DWORD PTR [rax], r8d
	cmp	rdx, r9
	je	.L12
.L11:
	mov	rax, QWORD PTR [rdx]
	cmp	rax, rcx
	jbe	.L10
	mov	edi, DWORD PTR EINVAL[rip]
	call	AVERROR@PLT
	mov	r12d, eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L15:
	mov	edi, DWORD PTR ENOMEM[rip]
	call	AVERROR@PLT
	mov	r12d, eax
	jmp	.L5
.L9:
	mov	rdi, QWORD PTR 96[rsi]
	.p2align 4,,10
	.p2align 3
.L12:
	movdqu	xmm0, XMMWORD PTR [rdi]
	mov	rax, QWORD PTR 8[r14]
	lea	rdi, 32[rsi]
	movups	XMMWORD PTR 48[rsi], xmm0
	mov	esi, DWORD PTR [rax]
	call	fill_frameinfo_by_link@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L45
	mov	rax, QWORD PTR [rsp]
	mov	edi, DWORD PTR 72[rax]
	call	IS_OPAQUE_MEMORY@PLT
	test	rax, rax
	je	.L14
.L17:
	mov	eax, DWORD PTR 4[rbp]
	mov	r12, QWORD PTR [rsp]
	mov	esi, 8
	lea	edi, 1[rax]
	mov	DWORD PTR [r12], edi
	call	av_mallocz_array@PLT
	mov	rsi, QWORD PTR [rsp]
	mov	QWORD PTR 80[r12], rax
	mov	rcx, QWORD PTR 80[rsi]
	test	rcx, rcx
	je	.L15
	lea	rax, 88[rsi]
	mov	QWORD PTR [rcx], rax
	mov	eax, DWORD PTR 4[rbp]
	cmp	eax, 1
	jle	.L22
	mov	r8, QWORD PTR 8[rbp]
	lea	edi, -2[rax]
	xor	eax, eax
	.p2align 4,,10
	.p2align 3
.L21:
	mov	rdx, QWORD PTR [r8+rax*8]
	mov	QWORD PTR 8[rcx+rax*8], rdx
	mov	rdx, rax
	add	rax, 1
	cmp	rdi, rdx
	jne	.L21
.L22:
	mov	eax, DWORD PTR [rsi]
	mov	QWORD PTR 24[rsi], rcx
	mov	DWORD PTR 8[rsi], eax
.L20:
	mov	DWORD PTR 12[rsi], 1
	mov	edi, DWORD PTR 72[rsi]
	call	IS_SYSTEM_MEMORY@PLT
	test	rax, rax
	mov	rax, QWORD PTR [rsp]
	je	.L23
	mov	edx, DWORD PTR MFX_IOPATTERN_IN_SYSTEM_MEMORY[rip]
	or	DWORD PTR 16[rax], edx
.L24:
	mov	edi, DWORD PTR 68[rax]
	call	IS_SYSTEM_MEMORY@PLT
	test	rax, rax
	mov	rax, QWORD PTR [rsp]
	je	.L27
	mov	edx, DWORD PTR MFX_IOPATTERN_OUT_SYSTEM_MEMORY[rip]
	or	DWORD PTR 16[rax], edx
.L28:
	mov	edi, DWORD PTR 64[rax]
	lea	rsi, 8[rax]
	call	MFXVideoVPP_Init@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L46
	mov	rax, QWORD PTR [rsp]
	xor	r12d, r12d
	mov	QWORD PTR [rbx], rax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L41:
	mov	edi, DWORD PTR ENOMEM[rip]
	call	AVERROR@PLT
	mov	r12d, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L14:
	mov	rax, QWORD PTR [rsp]
	mov	edi, DWORD PTR 68[rax]
	call	IS_OPAQUE_MEMORY@PLT
	test	rax, rax
	jne	.L17
	mov	eax, DWORD PTR 4[rbp]
	mov	rsi, QWORD PTR [rsp]
	mov	DWORD PTR 8[rsi], eax
	mov	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR 24[rsi], rax
	jmp	.L20
.L45:
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	lea	rdx, .LC0[rip]
	mov	rdi, r14
	xor	eax, eax
	call	av_log@PLT
	jmp	.L5
.L27:
	mov	edi, DWORD PTR 68[rax]
	call	IS_VIDEO_MEMORY@PLT
	test	rax, rax
	mov	rax, QWORD PTR [rsp]
	je	.L29
	mov	edx, DWORD PTR MFX_IOPATTERN_OUT_VIDEO_MEMORY[rip]
	or	DWORD PTR 16[rax], edx
	jmp	.L28
.L23:
	mov	edi, DWORD PTR 72[rax]
	call	IS_VIDEO_MEMORY@PLT
	test	rax, rax
	mov	rax, QWORD PTR [rsp]
	je	.L25
	mov	edx, DWORD PTR MFX_IOPATTERN_IN_VIDEO_MEMORY[rip]
	or	DWORD PTR 16[rax], edx
	jmp	.L24
.L46:
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	mov	ecx, eax
	lea	rdx, .LC1[rip]
	mov	rdi, r14
	xor	eax, eax
	call	av_log@PLT
	jmp	.L5
.L25:
	mov	edi, DWORD PTR 72[rax]
	call	IS_OPAQUE_MEMORY@PLT
	test	rax, rax
	mov	rax, QWORD PTR [rsp]
	je	.L24
	mov	edx, DWORD PTR MFX_IOPATTERN_IN_OPAQUE_MEMORY[rip]
	or	DWORD PTR 16[rax], edx
	jmp	.L24
.L29:
	mov	edi, DWORD PTR 68[rax]
	call	IS_OPAQUE_MEMORY@PLT
	test	rax, rax
	mov	rax, QWORD PTR [rsp]
	je	.L28
	mov	edx, DWORD PTR MFX_IOPATTERN_OUT_OPAQUE_MEMORY[rip]
	or	DWORD PTR 16[rax], edx
	jmp	.L28
.L44:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ff_qsvvpp_create, .-ff_qsvvpp_create
	.comm	ff_filter_frame,8,8
	.comm	MFX_IOPATTERN_OUT_VIDEO_MEMORY,4,4
	.comm	MFX_IOPATTERN_OUT_SYSTEM_MEMORY,4,4
	.comm	MFX_IOPATTERN_OUT_OPAQUE_MEMORY,4,4
	.comm	MFX_IOPATTERN_IN_VIDEO_MEMORY,4,4
	.comm	MFX_IOPATTERN_IN_SYSTEM_MEMORY,4,4
	.comm	MFX_IOPATTERN_IN_OPAQUE_MEMORY,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	AV_LOG_ERROR,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_qsvvpp.c_ff_qsvvpp_create.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Fail to get frame info from link.\012\000"
	.align	2
.LC1:
	.ascii	"Failed to create a qsvvpp, ret = %d.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.global	ff_qsvvpp_create
	.syntax unified
	.arm
	.fpu softvfp
	.type	ff_qsvvpp_create, %function
ff_qsvvpp_create:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, lr}
	ldr	r3, .L45
	sub	sp, sp, #12
	mov	r6, r0
	mov	r0, #84
	mov	r7, r1
	mov	r8, r2
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bl	av_mallocz
	cmp	r0, #0
	str	r0, [sp]
	beq	.L40
	ldr	r3, [r8, #20]
	mov	r1, r0
	cmp	r3, #0
	str	r3, [r0, #80]
	ldreq	r3, .L45+4
	ldreq	r3, [r3]
	streq	r3, [r0, #80]
	ldr	r3, [r8, #16]
	str	r3, [r0, #76]
	mov	r0, r6
	bl	init_vpp_session
	subs	r4, r0, #0
	blt	.L5
	mov	r1, #16
	ldr	r0, [r6]
	ldr	r4, [sp]
	bl	av_mallocz_array
	ldr	ip, [sp]
	str	r0, [r4, #72]
	ldr	r0, [ip, #72]
	cmp	r0, #0
	beq	.L15
	ldr	r2, [r6]
	cmp	r2, #0
	movgt	r5, #0
	bgt	.L7
	b	.L8
.L41:
	ldr	r2, [r6]
	add	r5, r5, #1
	cmp	r2, r5
	ldr	ip, [sp]
	ble	.L8
	ldr	r0, [ip, #72]
.L7:
	ldr	r3, [r6, #8]
	add	r0, r0, r5, lsl #4
	ldr	r1, [r3, r5, lsl #2]
	bl	fill_frameinfo_by_link
	subs	r4, r0, #0
	bge	.L41
.L5:
	mov	r0, sp
	bl	ff_qsvvpp_free
.L1:
	ldr	r3, .L45
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L42
	mov	r0, r4
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, pc}
.L8:
	ldr	r9, [r8]
	cmp	r9, #0
	ble	.L9
	mov	r4, #0
	ldr	r3, [r8, #12]
	b	.L11
.L10:
	ldr	lr, [ip, #72]
	ldr	r5, [r3, #16]
	add	r0, lr, r1, lsl #4
	str	r5, [r0, #12]
	ldr	r5, [r3, #12]
	add	r4, r4, #1
	str	r5, [r0, #8]
	ldr	r5, [r3, #8]
	cmp	r4, r9
	str	r5, [r0, #4]
	ldr	r0, [r3, #4]
	add	r3, r3, #20
	str	r0, [lr, r1, lsl #4]
	beq	.L12
.L11:
	ldr	r1, [r3]
	cmp	r1, r2
	bls	.L10
	ldr	r3, .L45+8
	ldr	r0, [r3]
	bl	AVERROR
	mov	r4, r0
	b	.L5
.L15:
	ldr	r3, .L45+12
	ldr	r0, [r3]
	bl	AVERROR
	mov	r4, r0
	b	.L5
.L9:
	ldr	lr, [ip, #72]
.L12:
	add	r4, ip, #36
	ldm	lr, {r0, r1, r2, r3}
	stm	r4, {r0, r1, r2, r3}
	ldr	r3, [r6, #4]
	add	r0, ip, #20
	ldr	r1, [r3]
	bl	fill_frameinfo_by_link
	subs	r4, r0, #0
	blt	.L43
	ldr	r3, [sp]
	ldr	r0, [r3, #60]
	bl	IS_OPAQUE_MEMORY
	cmp	r0, #0
	beq	.L14
.L17:
	ldr	r0, [r8, #4]
	ldr	r4, [sp]
	add	r0, r0, #1
	mov	r1, #4
	str	r0, [r4]
	bl	av_mallocz_array
	ldr	ip, [sp]
	str	r0, [r4, #64]
	ldr	lr, [ip, #64]
	cmp	lr, #0
	beq	.L15
	ldr	r1, [r8, #4]
	add	r3, ip, #68
	cmp	r1, #1
	str	r3, [lr]
	ble	.L22
	mov	r2, lr
	ldr	r3, [r8, #8]
	sub	r0, r3, #8
	add	r0, r0, r1, lsl #2
	sub	r3, r3, #4
.L21:
	ldr	r1, [r3, #4]!
	cmp	r0, r3
	str	r1, [r2, #4]!
	bne	.L21
.L22:
	ldr	r3, [ip]
	str	lr, [ip, #16]
	str	r3, [ip, #4]
.L20:
	mov	r3, #1
	ldr	r0, [ip, #60]
	str	r3, [ip, #8]
	bl	IS_SYSTEM_MEMORY
	cmp	r0, #0
	ldr	r3, [sp]
	beq	.L23
	ldr	r1, .L45+16
	ldr	r2, [r3, #12]
	ldr	r1, [r1]
	orr	r2, r2, r1
	str	r2, [r3, #12]
.L24:
	ldr	r0, [r3, #56]
	bl	IS_SYSTEM_MEMORY
	cmp	r0, #0
	ldr	r3, [sp]
	beq	.L27
	ldr	r1, .L45+20
	ldr	r2, [r3, #12]
	ldr	r1, [r1]
	orr	r2, r2, r1
	str	r2, [r3, #12]
.L28:
	ldr	r0, [r3, #52]
	add	r1, r3, #4
	bl	MFXVideoVPP_Init
	subs	r4, r0, #0
	blt	.L44
	ldr	r3, [sp]
	mov	r4, #0
	str	r3, [r7]
	b	.L1
.L40:
	ldr	r3, .L45+12
	ldr	r0, [r3]
	bl	AVERROR
	mov	r4, r0
	b	.L1
.L14:
	ldr	r3, [sp]
	ldr	r0, [r3, #56]
	bl	IS_OPAQUE_MEMORY
	cmp	r0, #0
	bne	.L17
	ldmib	r8, {r2, r3}
	ldr	ip, [sp]
	str	r2, [ip, #4]
	str	r3, [ip, #16]
	b	.L20
.L43:
	ldr	r3, .L45+24
	mov	r0, r6
	ldr	r1, [r3]
	ldr	r2, .L45+28
	bl	av_log
	b	.L5
.L27:
	ldr	r0, [r3, #56]
	bl	IS_VIDEO_MEMORY
	cmp	r0, #0
	ldr	r3, [sp]
	beq	.L29
	ldr	r1, .L45+32
	ldr	r2, [r3, #12]
	ldr	r1, [r1]
	orr	r2, r2, r1
	str	r2, [r3, #12]
	b	.L28
.L23:
	ldr	r0, [r3, #60]
	bl	IS_VIDEO_MEMORY
	cmp	r0, #0
	ldr	r3, [sp]
	beq	.L25
	ldr	r1, .L45+36
	ldr	r2, [r3, #12]
	ldr	r1, [r1]
	orr	r2, r2, r1
	str	r2, [r3, #12]
	b	.L24
.L44:
	ldr	r3, .L45+24
	mov	r0, r6
	ldr	r1, [r3]
	ldr	r2, .L45+40
	mov	r3, r4
	bl	av_log
	b	.L5
.L25:
	ldr	r0, [r3, #60]
	bl	IS_OPAQUE_MEMORY
	cmp	r0, #0
	ldr	r3, [sp]
	ldrne	r1, .L45+44
	ldrne	r2, [r3, #12]
	ldrne	r1, [r1]
	orrne	r2, r2, r1
	strne	r2, [r3, #12]
	b	.L24
.L29:
	ldr	r0, [r3, #56]
	bl	IS_OPAQUE_MEMORY
	cmp	r0, #0
	ldr	r3, [sp]
	ldrne	r1, .L45+48
	ldrne	r2, [r3, #12]
	ldrne	r1, [r1]
	orrne	r2, r2, r1
	strne	r2, [r3, #12]
	b	.L28
.L42:
	bl	__stack_chk_fail
.L46:
	.align	2
.L45:
	.word	.LC2
	.word	ff_filter_frame
	.word	EINVAL
	.word	ENOMEM
	.word	MFX_IOPATTERN_IN_SYSTEM_MEMORY
	.word	MFX_IOPATTERN_OUT_SYSTEM_MEMORY
	.word	AV_LOG_ERROR
	.word	.LC0
	.word	MFX_IOPATTERN_OUT_VIDEO_MEMORY
	.word	MFX_IOPATTERN_IN_VIDEO_MEMORY
	.word	.LC1
	.word	MFX_IOPATTERN_IN_OPAQUE_MEMORY
	.word	MFX_IOPATTERN_OUT_OPAQUE_MEMORY
	.size	ff_qsvvpp_create, .-ff_qsvvpp_create
	.comm	ff_filter_frame,4,4
	.comm	MFX_IOPATTERN_OUT_VIDEO_MEMORY,4,4
	.comm	MFX_IOPATTERN_OUT_SYSTEM_MEMORY,4,4
	.comm	MFX_IOPATTERN_OUT_OPAQUE_MEMORY,4,4
	.comm	MFX_IOPATTERN_IN_VIDEO_MEMORY,4,4
	.comm	MFX_IOPATTERN_IN_SYSTEM_MEMORY,4,4
	.comm	MFX_IOPATTERN_IN_OPAQUE_MEMORY,4,4
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	AV_LOG_ERROR,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
