	.file	"extr_vaapi_encode.c_vaapi_encode_make_param_buffer.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Failed to create parameter buffer (type %d): %d (%s).\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"Param buffer (%d) is %#x.\n"
	.text
	.p2align 4
	.type	vaapi_encode_make_param_buffer, @function
vaapi_encode_make_param_buffer:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	mov	r15, rcx
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	mov	r13, r8
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12d, edx
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rsi
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	r14, QWORD PTR [rdi]
	mov	rdi, QWORD PTR 8[rsi]
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	mov	rax, QWORD PTR [rsi]
	mov	esi, 4
	lea	rdx, 1[rax]
	call	av_realloc_array@PLT
	test	rax, rax
	je	.L8
	sub	rsp, 8
	.cfi_def_cfa_offset 88
	mov	QWORD PTR 8[rbx], rax
	mov	rax, QWORD PTR 8[r14]
	mov	rcx, r13
	lea	rdx, 12[rsp]
	mov	esi, DWORD PTR [r14]
	mov	r9, r15
	mov	r8d, 1
	push	rdx
	.cfi_def_cfa_offset 96
	mov	edi, DWORD PTR [rax]
	mov	edx, r12d
	call	vaCreateBuffer@PLT
	mov	r13, rax
	cmp	QWORD PTR VA_STATUS_SUCCESS[rip], r13
	pop	rax
	.cfi_def_cfa_offset 88
	pop	rdx
	.cfi_def_cfa_offset 80
	jne	.L9
	mov	rax, QWORD PTR [rbx]
	mov	rdx, QWORD PTR 8[rbx]
	mov	rdi, rbp
	lea	rcx, 1[rax]
	mov	QWORD PTR [rbx], rcx
	mov	ecx, DWORD PTR 4[rsp]
	mov	DWORD PTR [rdx+rax*4], ecx
	movsx	r8, DWORD PTR 4[rsp]
	mov	ecx, r12d
	xor	eax, eax
	mov	esi, DWORD PTR AV_LOG_DEBUG[rip]
	lea	rdx, .LC1[rip]
	call	av_log@PLT
	xor	eax, eax
.L1:
	mov	rbx, QWORD PTR 8[rsp]
	xor	rbx, QWORD PTR fs:40
	jne	.L10
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	pop	rbx
	.cfi_def_cfa_offset 48
	pop	rbp
	.cfi_def_cfa_offset 40
	pop	r12
	.cfi_def_cfa_offset 32
	pop	r13
	.cfi_def_cfa_offset 24
	pop	r14
	.cfi_def_cfa_offset 16
	pop	r15
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	rdi, r13
	call	vaErrorStr@PLT
	mov	rdi, rbp
	mov	r8, r13
	mov	ecx, r12d
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	mov	r9d, eax
	lea	rdx, .LC0[rip]
	xor	eax, eax
	call	av_log@PLT
	mov	edi, DWORD PTR EIO[rip]
	call	AVERROR@PLT
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L8:
	mov	edi, DWORD PTR ENOMEM[rip]
	call	AVERROR@PLT
	jmp	.L1
.L10:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vaapi_encode_make_param_buffer, .-vaapi_encode_make_param_buffer
	.comm	VA_STATUS_SUCCESS,8,8
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AV_LOG_DEBUG,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_encode.c_vaapi_encode_make_param_buffer.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Failed to create parameter buffer (type %d): %d (%s"
	.ascii	").\012\000"
	.align	2
.LC1:
	.ascii	"Param buffer (%d) is %#x.\012\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC2:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vaapi_encode_make_param_buffer, %function
vaapi_encode_make_param_buffer:
	@ args = 4, pretend = 0, frame = 8
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r6, r2
	ldr	r2, [r1]
	mov	r8, r3
	ldr	r3, .L11
	ldr	r0, [r1, #4]
	sub	sp, sp, #24
	mov	r4, r1
	add	r2, r2, #1
	mov	r1, #4
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	ldr	r7, [r5]
	bl	av_realloc_array
	subs	ip, r0, #0
	beq	.L8
	ldm	r7, {r1, r3}
	mov	r2, #1
	ldr	r0, [r3]
	add	r3, sp, #16
	str	ip, [r4, #4]
	stm	sp, {r2, r8}
	str	r3, [sp, #8]
	mov	r2, r6
	ldr	r3, [sp, #48]
	bl	vaCreateBuffer
	ldr	r3, .L11+4
	mov	r7, r0
	ldr	r3, [r3]
	cmp	r3, r0
	bne	.L9
	ldr	r2, [r4]
	ldr	r1, [r4, #4]
	ldr	r0, [sp, #16]
	add	r3, r2, #1
	str	r3, [r4]
	str	r0, [r1, r2, lsl #2]
	ldr	r1, [sp, #16]
	ldr	r2, .L11+8
	str	r1, [sp]
	ldr	r1, [r2]
	mov	r3, r6
	mov	r0, r5
	ldr	r2, .L11+12
	bl	av_log
	mov	r0, #0
.L1:
	ldr	r3, .L11
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L10
	add	sp, sp, #24
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L9:
	ldr	r3, .L11+16
	ldr	r4, [r3]
	bl	vaErrorStr
	mov	r3, r6
	str	r0, [sp, #4]
	mov	r1, r4
	mov	r0, r5
	ldr	r2, .L11+20
	str	r7, [sp]
	bl	av_log
	ldr	r3, .L11+24
	ldr	r0, [r3]
	bl	AVERROR
	b	.L1
.L8:
	ldr	r3, .L11+28
	ldr	r0, [r3]
	bl	AVERROR
	b	.L1
.L10:
	bl	__stack_chk_fail
.L12:
	.align	2
.L11:
	.word	.LC2
	.word	VA_STATUS_SUCCESS
	.word	AV_LOG_DEBUG
	.word	.LC1
	.word	AV_LOG_ERROR
	.word	.LC0
	.word	EIO
	.word	ENOMEM
	.size	vaapi_encode_make_param_buffer, .-vaapi_encode_make_param_buffer
	.comm	VA_STATUS_SUCCESS,4,4
	.comm	ENOMEM,4,4
	.comm	EIO,4,4
	.comm	AV_LOG_ERROR,4,4
	.comm	AV_LOG_DEBUG,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
