	.file	"extr_vpe.c_vpe_g_fmt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vpe_g_fmt, @function
vpe_g_fmt:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdx
	call	file2ctx@PLT
	mov	esi, DWORD PTR [rbx]
	mov	edi, DWORD PTR [rax]
	mov	r12, rax
	call	v4l2_m2m_get_vq@PLT
	test	rax, rax
	je	.L11
	mov	esi, DWORD PTR [rbx]
	mov	rdi, r12
	call	get_q_data@PLT
	mov	edi, DWORD PTR [rbx]
	mov	rbp, rax
	mov	eax, DWORD PTR 44[rax]
	mov	DWORD PTR 40[rbx], eax
	mov	eax, DWORD PTR 40[rbp]
	mov	DWORD PTR 36[rbx], eax
	mov	rax, QWORD PTR 32[rbp]
	mov	eax, DWORD PTR [rax]
	mov	DWORD PTR 32[rbx], eax
	mov	eax, DWORD PTR 28[rbp]
	mov	DWORD PTR 28[rbx], eax
	call	V4L2_TYPE_IS_OUTPUT@PLT
	test	rax, rax
	je	.L4
	mov	eax, DWORD PTR 24[rbp]
	mov	DWORD PTR 24[rbx], eax
.L5:
	mov	eax, DWORD PTR 0[rbp]
	mov	DWORD PTR 8[rbx], eax
	test	eax, eax
	jle	.L6
	mov	r8, QWORD PTR 16[rbp]
	mov	rdx, QWORD PTR 16[rbx]
	lea	esi, -1[rax]
	xor	eax, eax
	mov	rdi, QWORD PTR 8[rbp]
	.p2align 4,,10
	.p2align 3
.L7:
	mov	ecx, DWORD PTR [r8+rax*4]
	mov	DWORD PTR 4[rdx+rax*8], ecx
	mov	ecx, DWORD PTR [rdi+rax*4]
	mov	DWORD PTR [rdx+rax*8], ecx
	mov	rcx, rax
	add	rax, 1
	cmp	rcx, rsi
	jne	.L7
.L6:
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	esi, DWORD PTR V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE[rip]
	mov	rdi, r12
	call	get_q_data@PLT
	mov	eax, DWORD PTR 24[rax]
	mov	DWORD PTR 24[rbx], eax
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L11:
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	vpe_g_fmt, .-vpe_g_fmt
	.comm	V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,4,4
	.comm	EINVAL,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_vpe.c_vpe_g_fmt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vpe_g_fmt, %function
vpe_g_fmt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r2
	bl	file2ctx
	ldr	r1, [r4]
	mov	r6, r0
	ldr	r0, [r0]
	bl	v4l2_m2m_get_vq
	cmp	r0, #0
	beq	.L11
	ldr	r1, [r4]
	mov	r0, r6
	bl	get_q_data
	ldr	r2, [r0, #20]
	ldr	r3, [r0, #28]
	ldr	r1, [r2]
	ldr	r2, [r0, #24]
	str	r3, [r4, #28]
	ldr	r3, [r0, #16]
	mov	r5, r0
	str	r1, [r4, #20]
	ldr	r0, [r4]
	str	r2, [r4, #24]
	str	r3, [r4, #16]
	bl	V4L2_TYPE_IS_OUTPUT
	cmp	r0, #0
	beq	.L4
	ldr	r3, [r5, #12]
	str	r3, [r4, #12]
.L5:
	ldr	ip, [r5]
	cmp	ip, #0
	str	ip, [r4, #4]
	ble	.L6
	ldr	r3, [r4, #8]
	ldr	r1, [r5, #8]
	ldr	r2, [r5, #4]
	add	ip, r3, ip, lsl #3
	sub	r1, r1, #4
	sub	r2, r2, #4
.L7:
	ldr	r0, [r1, #4]!
	str	r0, [r3, #4]
	ldr	r0, [r2, #4]!
	str	r0, [r3], #8
	cmp	r3, ip
	bne	.L7
.L6:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L4:
	ldr	r3, .L12
	mov	r0, r6
	ldr	r1, [r3]
	bl	get_q_data
	ldr	r3, [r0, #12]
	str	r3, [r4, #12]
	b	.L5
.L11:
	ldr	r3, .L12+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, r5, r6, pc}
.L13:
	.align	2
.L12:
	.word	V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE
	.word	EINVAL
	.size	vpe_g_fmt, .-vpe_g_fmt
	.comm	V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
