	.file	"extr_vf_hwupload.c_hwupload_config_output.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"No input hwframe context.\n"
.LC1:
	.string	"Surface format is %s.\n"
	.text
	.p2align 4
	.type	hwupload_config_output, @function
hwupload_config_output:
.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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	mov	r13, QWORD PTR 24[rdi]
	mov	rax, QWORD PTR 16[r13]
	mov	rbp, QWORD PTR 8[r13]
	mov	r12, QWORD PTR [rax]
	mov	rdi, rbp
	call	av_buffer_unref@PLT
	mov	rax, QWORD PTR [rbx]
	cmp	QWORD PTR [r12], rax
	jne	.L2
	mov	rdi, QWORD PTR 8[r12]
	test	rdi, rdi
	je	.L14
	call	av_buffer_ref@PLT
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	je	.L12
.L9:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	xor	r12d, r12d
	pop	rbx
	.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
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR 16[rbp]
	call	av_hwframe_ctx_alloc@PLT
	mov	QWORD PTR 0[rbp], rax
	test	rax, rax
	je	.L12
	mov	rax, QWORD PTR [rax]
	mov	rdi, QWORD PTR [r12]
	mov	QWORD PTR 8[rbp], rax
	call	av_get_pix_fmt_name@PLT
	mov	esi, DWORD PTR AV_LOG_DEBUG[rip]
	lea	rdx, .LC1[rip]
	mov	rdi, rbp
	mov	ecx, eax
	xor	eax, eax
	call	av_log@PLT
	mov	rdx, QWORD PTR [rbx]
	mov	rax, QWORD PTR 8[rbp]
	mov	QWORD PTR [rax], rdx
	mov	rdx, QWORD PTR [r12]
	mov	QWORD PTR 8[rax], rdx
	mov	edx, DWORD PTR 20[r12]
	mov	DWORD PTR 28[rax], edx
	mov	edx, DWORD PTR 16[r12]
	mov	DWORD PTR 24[rax], edx
	mov	rdx, QWORD PTR 0[r13]
	test	rdx, rdx
	js	.L7
	add	rdx, 2
	mov	QWORD PTR 16[rax], rdx
.L7:
	mov	rdi, QWORD PTR 0[rbp]
	call	av_hwframe_ctx_init@PLT
	mov	r12d, eax
	test	eax, eax
	js	.L8
	mov	rdi, QWORD PTR 0[rbp]
	call	av_buffer_ref@PLT
	mov	QWORD PTR 8[rbx], rax
	test	rax, rax
	jne	.L9
	mov	edi, DWORD PTR ENOMEM[rip]
	call	AVERROR@PLT
	mov	r12d, eax
.L8:
	mov	rdi, rbp
	call	av_buffer_unref@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
.L14:
	.cfi_restore_state
	mov	esi, DWORD PTR AV_LOG_ERROR[rip]
	mov	rdi, rbp
	lea	rdx, .LC0[rip]
	xor	eax, eax
	call	av_log@PLT
	mov	edi, DWORD PTR EINVAL[rip]
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	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
	jmp	AVERROR@PLT
	.p2align 4,,10
	.p2align 3
.L12:
	.cfi_restore_state
	mov	edi, DWORD PTR ENOMEM[rip]
	add	rsp, 8
	.cfi_def_cfa_offset 40
	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
	jmp	AVERROR@PLT
	.cfi_endproc
.LFE0:
	.size	hwupload_config_output, .-hwupload_config_output
	.comm	ENOMEM,4,4
	.comm	EINVAL,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_vf_hwupload.c_hwupload_config_output.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"No input hwframe context.\012\000"
	.align	2
.LC1:
	.ascii	"Surface format is %s.\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	hwupload_config_output, %function
hwupload_config_output:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r0
	ldr	r7, [r0, #16]
	ldr	r3, [r7, #8]
	ldr	r5, [r7, #4]
	ldr	r6, [r3]
	mov	r0, r5
	bl	av_buffer_unref
	ldr	r2, [r6]
	ldr	r3, [r4]
	cmp	r2, r3
	bne	.L2
	ldr	r0, [r6, #4]
	cmp	r0, #0
	beq	.L13
	bl	av_buffer_ref
	cmp	r0, #0
	str	r0, [r4, #4]
	beq	.L11
.L9:
	mov	r6, #0
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L2:
	ldr	r0, [r5, #8]
	bl	av_hwframe_ctx_alloc
	cmp	r0, #0
	str	r0, [r5]
	beq	.L11
	ldr	r3, [r0]
	ldr	r2, .L14
	ldr	r0, [r6]
	str	r3, [r5, #4]
	ldr	r8, [r2]
	bl	av_get_pix_fmt_name
	mov	r1, r8
	mov	r3, r0
	ldr	r2, .L14+4
	mov	r0, r5
	bl	av_log
	ldr	r2, [r7]
	ldr	r0, [r6, #12]
	ldr	ip, [r6]
	ldr	r1, [r6, #8]
	ldr	r3, [r5, #4]
	ldr	lr, [r4]
	cmp	r2, #0
	addge	r2, r2, #2
	str	r0, [r3, #16]
	strge	r2, [r3, #8]
	ldr	r0, [r5]
	str	lr, [r3]
	str	ip, [r3, #4]
	str	r1, [r3, #12]
	bl	av_hwframe_ctx_init
	subs	r6, r0, #0
	blt	.L8
	ldr	r0, [r5]
	bl	av_buffer_ref
	cmp	r0, #0
	str	r0, [r4, #4]
	bne	.L9
	ldr	r3, .L14+8
	ldr	r0, [r3]
	bl	AVERROR
	mov	r6, r0
.L8:
	mov	r0, r5
	bl	av_buffer_unref
	mov	r0, r6
	pop	{r4, r5, r6, r7, r8, pc}
.L13:
	ldr	r3, .L14+12
	mov	r0, r5
	ldr	r1, [r3]
	ldr	r2, .L14+16
	bl	av_log
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r3, .L14+20
	ldr	r0, [r3]
	b	AVERROR
.L11:
	ldr	r3, .L14+8
	pop	{r4, r5, r6, r7, r8, lr}
	ldr	r0, [r3]
	b	AVERROR
.L15:
	.align	2
.L14:
	.word	AV_LOG_DEBUG
	.word	.LC1
	.word	ENOMEM
	.word	AV_LOG_ERROR
	.word	.LC0
	.word	EINVAL
	.size	hwupload_config_output, .-hwupload_config_output
	.comm	ENOMEM,4,4
	.comm	EINVAL,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
