	.file	"extr_soc_ov5642.c_ov5642_get_selection.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	ov5642_get_selection, @function
ov5642_get_selection:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbx
	.cfi_def_cfa_offset 16
	.cfi_offset 3, -16
	mov	rbx, rdx
	call	v4l2_get_subdevdata@PLT
	mov	rdi, rax
	call	to_ov5642@PLT
	mov	rcx, QWORD PTR V4L2_SUBDEV_FORMAT_ACTIVE[rip]
	cmp	QWORD PTR [rbx], rcx
	jne	.L7
	mov	edx, DWORD PTR 8[rbx]
	cmp	edx, 128
	je	.L4
	cmp	edx, 129
	je	.L5
.L7:
	mov	eax, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	neg	eax
	ret
	.p2align 4,,10
	.p2align 3
.L5:
	.cfi_restore_state
	movdqu	xmm0, XMMWORD PTR [rax]
	xor	eax, eax
	movups	XMMWORD PTR 12[rbx], xmm0
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L4:
	.cfi_restore_state
	mov	eax, DWORD PTR OV5642_MAX_WIDTH[rip]
	mov	QWORD PTR 20[rbx], 0
	mov	DWORD PTR 16[rbx], eax
	mov	eax, DWORD PTR OV5642_MAX_HEIGHT[rip]
	mov	DWORD PTR 12[rbx], eax
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 8
	ret
	.cfi_endproc
.LFE0:
	.size	ov5642_get_selection, .-ov5642_get_selection
	.comm	V4L2_SUBDEV_FORMAT_ACTIVE,8,8
	.comm	OV5642_MAX_WIDTH,4,4
	.comm	OV5642_MAX_HEIGHT,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_soc_ov5642.c_ov5642_get_selection.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ov5642_get_selection, %function
ov5642_get_selection:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, lr}
	mov	r4, r2
	bl	v4l2_get_subdevdata
	bl	to_ov5642
	ldr	r3, .L10
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L7
	ldr	r3, [r4, #4]
	cmp	r3, #128
	beq	.L4
	cmp	r3, #129
	beq	.L5
.L7:
	ldr	r3, .L10+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
	pop	{r4, pc}
.L5:
	add	r4, r4, #8
	ldm	r0, {r0, r1, r2, r3}
	stm	r4, {r0, r1, r2, r3}
	mov	r0, #0
	pop	{r4, pc}
.L4:
	mov	r0, #0
	ldr	r2, .L10+8
	ldr	r3, .L10+12
	ldr	r2, [r2]
	ldr	r3, [r3]
	str	r2, [r4, #12]
	str	r3, [r4, #8]
	str	r0, [r4, #20]
	str	r0, [r4, #16]
	pop	{r4, pc}
.L11:
	.align	2
.L10:
	.word	V4L2_SUBDEV_FORMAT_ACTIVE
	.word	EINVAL
	.word	OV5642_MAX_WIDTH
	.word	OV5642_MAX_HEIGHT
	.size	ov5642_get_selection, .-ov5642_get_selection
	.comm	V4L2_SUBDEV_FORMAT_ACTIVE,4,4
	.comm	OV5642_MAX_WIDTH,4,4
	.comm	OV5642_MAX_HEIGHT,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
