	.file	"extr_s2250-board.c_s2250_set_fmt.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	s2250_set_fmt, @function
s2250_set_fmt:
.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
	mov	rbp, rdi
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	to_state@PLT
	mov	rdi, rbp
	mov	r12, rax
	call	v4l2_get_subdevdata@PLT
	mov	r13d, DWORD PTR EINVAL[rip]
	neg	r13d
	cmp	QWORD PTR 8[rbx], 0
	jne	.L1
	mov	rbp, rax
	xor	r13d, r13d
	mov	rax, QWORD PTR V4L2_SUBDEV_FORMAT_TRY[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L1
	cmp	DWORD PTR 16[rbx], 639
	mov	edx, DWORD PTR [r12]
	jle	.L9
	and	dh, -5
.L7:
	mov	esi, 299
	mov	rdi, rbp
	call	write_reg_fp@PLT
	mov	edx, 96
	mov	esi, 320
	mov	rdi, rbp
	call	write_reg_fp@PLT
.L1:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r13d
	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
.L9:
	.cfi_restore_state
	or	dh, 4
	jmp	.L7
	.cfi_endproc
.LFE0:
	.size	s2250_set_fmt, .-s2250_set_fmt
	.comm	V4L2_SUBDEV_FORMAT_TRY,8,8
	.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_s2250-board.c_s2250_set_fmt.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	s2250_set_fmt, %function
s2250_set_fmt:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r5, r0
	mov	r4, r2
	bl	to_state
	mov	r7, r0
	mov	r0, r5
	bl	v4l2_get_subdevdata
	ldr	r5, [r4, #4]
	cmp	r5, #0
	bne	.L8
	ldr	r3, .L9
	ldr	r2, [r4]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L1
	mov	r6, r0
	ldr	r3, [r4, #8]
	ldr	r2, [r7]
	cmp	r3, #640
	ldr	r1, .L9+4
	orrlt	r2, r2, #1024
	bicge	r2, r2, #1024
	bl	write_reg_fp
	mov	r0, r6
	mov	r2, #96
	mov	r1, #320
	bl	write_reg_fp
.L1:
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L8:
	ldr	r3, .L9+8
	ldr	r5, [r3]
	rsb	r5, r5, #0
	mov	r0, r5
	pop	{r4, r5, r6, r7, r8, pc}
.L10:
	.align	2
.L9:
	.word	V4L2_SUBDEV_FORMAT_TRY
	.word	299
	.word	EINVAL
	.size	s2250_set_fmt, .-s2250_set_fmt
	.comm	V4L2_SUBDEV_FORMAT_TRY,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
