	.file	"extr_v4l2_context.c_v4l2_save_to_context.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	v4l2_save_to_context, @function
v4l2_save_to_context:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	mov	edi, DWORD PTR 64[rdi]
	cmp	QWORD PTR 24[rsi], 0
	mov	DWORD PTR 56[rbp], edi
	je	.L2
	mov	eax, DWORD PTR 16[rsi]
	mov	DWORD PTR 68[rbp], eax
.L2:
	call	V4L2_TYPE_IS_MULTIPLANAR@PLT
	mov	edx, DWORD PTR 0[rbp]
	test	rax, rax
	je	.L3
	mov	esi, DWORD PTR 4[rbp]
	cmp	QWORD PTR 8[rbx], 0
	mov	DWORD PTR 48[rbp], edx
	mov	DWORD PTR 44[rbp], esi
	jne	.L9
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L3:
	.cfi_restore_state
	mov	esi, DWORD PTR 4[rbp]
	cmp	QWORD PTR 8[rbx], 0
	mov	DWORD PTR 24[rbp], edx
	mov	DWORD PTR 20[rbp], esi
	je	.L1
	mov	eax, DWORD PTR [rbx]
	mov	rdi, rbp
	mov	DWORD PTR 16[rbp], eax
	call	v4l2_get_framesize_compressed@PLT
	mov	QWORD PTR 8[rbp], rax
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L9:
	.cfi_restore_state
	mov	eax, DWORD PTR [rbx]
	mov	rdi, rbp
	mov	rbx, QWORD PTR 32[rbp]
	mov	DWORD PTR 40[rbp], eax
	call	v4l2_get_framesize_compressed@PLT
	mov	QWORD PTR [rbx], rax
	add	rsp, 8
	.cfi_def_cfa_offset 24
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	v4l2_save_to_context, .-v4l2_save_to_context
	.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_v4l2_context.c_v4l2_save_to_context.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	v4l2_save_to_context, %function
v4l2_save_to_context:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r0
	ldr	r3, [r1, #12]
	ldr	r0, [r0, #44]
	cmp	r3, #0
	ldrne	r3, [r1, #8]
	str	r0, [r4, #40]
	strne	r3, [r4, #48]
	mov	r5, r1
	bl	V4L2_TYPE_IS_MULTIPLANAR
	cmp	r0, #0
	ldr	r3, [r5, #4]
	ldr	r2, [r4]
	ldr	r1, [r4, #4]
	beq	.L3
	cmp	r3, #0
	str	r2, [r4, #36]
	str	r1, [r4, #32]
	popeq	{r4, r5, r6, pc}
	ldr	r3, [r5]
	mov	r0, r4
	str	r3, [r4, #28]
	ldr	r4, [r4, #24]
	bl	v4l2_get_framesize_compressed
	str	r0, [r4]
	pop	{r4, r5, r6, pc}
.L3:
	cmp	r3, #0
	str	r2, [r4, #20]
	str	r1, [r4, #16]
	popeq	{r4, r5, r6, pc}
	ldr	r3, [r5]
	mov	r0, r4
	str	r3, [r4, #12]
	bl	v4l2_get_framesize_compressed
	str	r0, [r4, #8]
	pop	{r4, r5, r6, pc}
	.size	v4l2_save_to_context, .-v4l2_save_to_context
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
