	.file	"extr_vpfe_capture.c_vpfe_config_image_format.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"standard not supported\n"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"error in getting g_fmt from sub device\n"
	.text
	.p2align 4
	.type	vpfe_config_image_format, @function
vpfe_config_image_format:
.LFB0:
	.cfi_startproc
	endbr64
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rsi
	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
	xor	ebx, ebx
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	r14, QWORD PTR 72[rdi]
	mov	rdi, QWORD PTR vpfe_standards[rip]
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L4:
	mov	rax, rbx
	add	rbx, 1
	sal	rax, 4
	add	rax, rdi
	mov	edx, DWORD PTR [rax]
	test	DWORD PTR [r12], edx
	jne	.L17
.L2:
	call	ARRAY_SIZE@PLT
	mov	r13d, ebx
	mov	rdi, QWORD PTR vpfe_standards[rip]
	cmp	eax, ebx
	jg	.L4
	call	ARRAY_SIZE@PLT
	lea	r15, 28[rbp]
	cmp	eax, r13d
	je	.L18
.L5:
	mov	eax, DWORD PTR 32[rbp]
	mov	edx, DWORD PTR 40[rbp]
	mov	QWORD PTR 64[rbp], 0
	mov	QWORD PTR 56[rbp], 0
	mov	DWORD PTR 48[rbp], eax
	mov	DWORD PTR 4[rbp], eax
	mov	eax, DWORD PTR 36[rbp]
	mov	DWORD PTR 52[rbp], edx
	mov	DWORD PTR 24[rbp], edx
	test	eax, eax
	jne	.L19
	mov	eax, DWORD PTR V4L2_FIELD_NONE[rip]
	mov	DWORD PTR 20[rbp], eax
	mov	eax, DWORD PTR V4L2_PIX_FMT_SBGGR8[rip]
	mov	DWORD PTR 16[rbp], eax
.L8:
	mov	ecx, DWORD PTR g_fmt[rip]
	mov	esi, DWORD PTR [r14]
	lea	r8, 4[rbp]
	mov	rdi, r15
	mov	edx, DWORD PTR video[rip]
	call	v4l2_device_call_until_err@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L9
	add	eax, DWORD PTR ENOIOCTLCMD[rip]
	jne	.L20
.L9:
	mov	rdi, rbp
	call	vpfe_config_ccdc_image_format@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdx, QWORD PTR ccdc_dev[rip]
	xor	eax, eax
	call	[QWORD PTR [rdx]]
	mov	DWORD PTR 8[rbp], eax
	imul	eax, DWORD PTR 4[rbp]
	mov	DWORD PTR 12[rbp], eax
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	mov	eax, r12d
	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
.L19:
	.cfi_restore_state
	mov	eax, DWORD PTR V4L2_FIELD_INTERLACED[rip]
	mov	DWORD PTR 20[rbp], eax
	mov	eax, DWORD PTR V4L2_PIX_FMT_UYVY[rip]
	mov	DWORD PTR 16[rbp], eax
	jmp	.L8
	.p2align 4,,10
	.p2align 3
.L17:
	mov	edx, DWORD PTR 12[rax]
	lea	r15, 28[rbp]
	mov	DWORD PTR 40[rbp], edx
	mov	edx, DWORD PTR 4[rax]
	mov	eax, DWORD PTR 8[rax]
	mov	DWORD PTR 0[rbp], r13d
	mov	DWORD PTR 32[rbp], edx
	mov	DWORD PTR 36[rbp], eax
	call	ARRAY_SIZE@PLT
	cmp	eax, r13d
	jne	.L5
.L18:
	lea	rsi, .LC0[rip]
	mov	rdi, r15
	call	v4l2_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L20:
	lea	rsi, .LC1[rip]
	mov	rdi, r15
	call	v4l2_err@PLT
	jmp	.L1
	.cfi_endproc
.LFE0:
	.size	vpfe_config_image_format, .-vpfe_config_image_format
	.comm	vpfe_standards,8,8
	.comm	video,4,4
	.comm	g_fmt,4,4
	.comm	ccdc_dev,8,8
	.comm	V4L2_PIX_FMT_UYVY,4,4
	.comm	V4L2_PIX_FMT_SBGGR8,4,4
	.comm	V4L2_FIELD_NONE,4,4
	.comm	V4L2_FIELD_INTERLACED,4,4
	.comm	ENOIOCTLCMD,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_vpfe_capture.c_vpfe_config_image_format.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"standard not supported\012\000"
	.align	2
.LC1:
	.ascii	"error in getting g_fmt from sub device\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vpfe_config_image_format, %function
vpfe_config_image_format:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	ldr	r7, .L19
	mov	r5, r0
	ldr	r8, [r0, #60]
	mov	r6, r1
	mov	r4, #0
	ldr	r0, [r7]
	sub	sp, sp, #8
	b	.L2
.L5:
	ldr	r3, [r6]
	ldr	r2, [r0, r4, lsl #4]
	add	r1, r0, r4, lsl #4
	tst	r2, r3
	bne	.L16
	add	r4, r4, #1
.L2:
	bl	ARRAY_SIZE
	cmp	r0, r4
	ldr	r0, [r7]
	bgt	.L5
	bl	ARRAY_SIZE
	cmp	r0, r4
	add	r6, r5, #28
	beq	.L17
.L6:
	mov	r1, #0
	ldr	r3, [r5, #36]
	ldr	r2, [r5, #40]
	cmp	r3, r1
	ldr	r3, [r5, #32]
	str	r2, [r5, #48]
	str	r2, [r5, #24]
	str	r3, [r5, #44]
	str	r3, [r5, #4]
	ldrne	r2, .L19+4
	ldrne	r3, .L19+8
	ldreq	r2, .L19+12
	ldreq	r3, .L19+16
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r2, [r5, #20]
	str	r3, [r5, #16]
	ldr	r2, .L19+20
	ldr	r3, .L19+24
	add	r0, r5, #4
	str	r1, [r5, #56]
	str	r1, [r5, #52]
	ldr	r3, [r3]
	ldr	r1, [r8]
	ldr	r2, [r2]
	str	r0, [sp]
	mov	r0, r6
	bl	v4l2_device_call_until_err
	subs	r4, r0, #0
	beq	.L10
	ldr	r3, .L19+28
	ldr	r3, [r3]
	cmn	r4, r3
	bne	.L18
.L10:
	mov	r0, r5
	bl	vpfe_config_ccdc_image_format
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, .L19+32
	ldr	r3, [r3]
	ldr	r3, [r3]
	blx	r3
	ldr	r3, [r5, #4]
	str	r0, [r5, #8]
	mul	r0, r3, r0
	str	r0, [r5, #12]
.L1:
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L16:
	ldmib	r1, {r2, r3, ip}
	str	r4, [r5]
	str	ip, [r5, #40]
	str	r2, [r5, #32]
	str	r3, [r5, #36]
	bl	ARRAY_SIZE
	cmp	r0, r4
	add	r6, r5, #28
	bne	.L6
.L17:
	mov	r0, r6
	ldr	r1, .L19+36
	bl	v4l2_err
	ldr	r3, .L19+40
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L18:
	mov	r0, r6
	ldr	r1, .L19+44
	bl	v4l2_err
	mov	r0, r4
	add	sp, sp, #8
	@ sp needed
	pop	{r4, r5, r6, r7, r8, pc}
.L20:
	.align	2
.L19:
	.word	vpfe_standards
	.word	V4L2_FIELD_INTERLACED
	.word	V4L2_PIX_FMT_UYVY
	.word	V4L2_FIELD_NONE
	.word	V4L2_PIX_FMT_SBGGR8
	.word	video
	.word	g_fmt
	.word	ENOIOCTLCMD
	.word	ccdc_dev
	.word	.LC0
	.word	EINVAL
	.word	.LC1
	.size	vpfe_config_image_format, .-vpfe_config_image_format
	.comm	vpfe_standards,4,4
	.comm	video,4,4
	.comm	g_fmt,4,4
	.comm	ccdc_dev,4,4
	.comm	V4L2_PIX_FMT_UYVY,4,4
	.comm	V4L2_PIX_FMT_SBGGR8,4,4
	.comm	V4L2_FIELD_NONE,4,4
	.comm	V4L2_FIELD_INTERLACED,4,4
	.comm	ENOIOCTLCMD,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
