	.file	"extr_hwcontext_vaapi.c_vaapi_transfer_data_to.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vaapi_transfer_data_to, @function
vaapi_transfer_data_to:
.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
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rdi]
	cmp	QWORD PTR [rdx], rax
	jg	.L2
	mov	rax, QWORD PTR 8[rdi]
	mov	r12, rdi
	mov	rbp, rdx
	cmp	QWORD PTR 8[rdx], rax
	jle	.L3
.L2:
	mov	edi, DWORD PTR EINVAL[rip]
	call	AVERROR@PLT
	mov	r12d, eax
.L1:
	mov	rax, QWORD PTR 8[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L10
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	mov	eax, r12d
	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
.L3:
	.cfi_restore_state
	xor	eax, eax
	mov	r13, rsi
	call	av_frame_alloc@PLT
	mov	QWORD PTR [rsp], rax
	mov	rsi, rax
	test	rax, rax
	je	.L11
	mov	eax, DWORD PTR 16[rbp]
	mov	ecx, DWORD PTR AV_HWFRAME_MAP_WRITE[rip]
	mov	rdi, r12
	mov	rdx, r13
	or	ecx, DWORD PTR AV_HWFRAME_MAP_OVERWRITE[rip]
	mov	DWORD PTR 16[rsi], eax
	call	vaapi_map_frame@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L12
.L6:
	endbr64
	mov	rdi, rsp
	call	av_frame_free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L12:
	mov	rdi, QWORD PTR [rsp]
	mov	rax, QWORD PTR 0[rbp]
	mov	rsi, rbp
	mov	QWORD PTR [rdi], rax
	mov	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR 8[rdi], rax
	call	av_frame_copy@PLT
	mov	rdi, rsp
	mov	r12d, eax
	call	av_frame_free@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L11:
	mov	edi, DWORD PTR ENOMEM[rip]
	call	AVERROR@PLT
	mov	r12d, eax
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vaapi_transfer_data_to, .-vaapi_transfer_data_to
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	AV_HWFRAME_MAP_WRITE,4,4
	.comm	AV_HWFRAME_MAP_OVERWRITE,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_transfer_data_to.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vaapi_transfer_data_to, %function
vaapi_transfer_data_to:
	@ args = 0, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r5, r0
	ldr	r0, [r2]
	ldr	r3, [r5]
	sub	sp, sp, #8
	cmp	r0, r3
	ldr	r3, .L13
	ldr	r3, [r3]
	str	r3, [sp, #4]
	mov	r3,#0
	bgt	.L2
	mov	r4, r2
	ldr	r3, [r5, #4]
	ldr	r2, [r2, #4]
	cmp	r2, r3
	ble	.L3
.L2:
	ldr	r3, .L13+4
	ldr	r0, [r3]
	bl	AVERROR
	mov	r5, r0
.L1:
	ldr	r3, .L13
	ldr	r2, [r3]
	ldr	r3, [sp, #4]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	mov	r0, r5
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, pc}
.L3:
	mov	r6, r1
	bl	av_frame_alloc
	cmp	r0, #0
	mov	r1, r0
	str	r0, [sp]
	beq	.L11
	ldr	r2, .L13+8
	ldr	r3, .L13+12
	ldr	lr, [r2]
	ldr	r3, [r3]
	ldr	ip, [r4, #8]
	mov	r0, r5
	mov	r2, r6
	orr	r3, lr, r3
	str	ip, [r1, #8]
	bl	vaapi_map_frame
	subs	r5, r0, #0
	beq	.L12
.L6:
	mov	r0, sp
	bl	av_frame_free
	b	.L1
.L12:
	ldr	r0, [sp]
	ldm	r4, {r2, r3}
	mov	r1, r4
	stm	r0, {r2, r3}
	bl	av_frame_copy
	mov	r5, r0
	mov	r0, sp
	bl	av_frame_free
	b	.L1
.L11:
	ldr	r3, .L13+16
	ldr	r0, [r3]
	bl	AVERROR
	mov	r5, r0
	b	.L1
.L10:
	bl	__stack_chk_fail
.L14:
	.align	2
.L13:
	.word	.LC0
	.word	EINVAL
	.word	AV_HWFRAME_MAP_WRITE
	.word	AV_HWFRAME_MAP_OVERWRITE
	.word	ENOMEM
	.size	vaapi_transfer_data_to, .-vaapi_transfer_data_to
	.comm	ENOMEM,4,4
	.comm	EINVAL,4,4
	.comm	AV_HWFRAME_MAP_WRITE,4,4
	.comm	AV_HWFRAME_MAP_OVERWRITE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
