	.file	"extr_cpia2_v4l.c_cpia2_s_parm.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	cpia2_s_parm, @function
cpia2_s_parm:
.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
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	mov	rbx, rdx
	sub	rsp, 24
	.cfi_def_cfa_offset 80
	mov	QWORD PTR [rsp], rsi
	call	video_drvdata@PLT
	mov	rdi, QWORD PTR framerate_controls[rip]
	mov	r14d, DWORD PTR [rbx]
	mov	QWORD PTR 8[rsp], rax
	mov	r15d, DWORD PTR 4[rbx]
	call	ARRAY_SIZE@PLT
	mov	rsi, QWORD PTR [rsp]
	mov	rdx, rbx
	mov	rdi, r13
	mov	r12d, eax
	lea	ebp, -1[rax]
	call	cpia2_g_parm@PLT
	test	eax, eax
	jne	.L1
	test	r14d, r14d
	je	.L1
	test	r15d, r15d
	je	.L1
	mov	rdi, QWORD PTR 8[rsp]
	mov	rdx, QWORD PTR DEVICE_STV_672[rip]
	cmp	QWORD PTR 8[rdi], rdx
	je	.L9
.L3:
	mov	rdi, QWORD PTR framerate_controls[rip]
	test	ebp, ebp
	js	.L4
	lea	rdx, 4[rdi]
	jmp	.L5
	.p2align 4,,10
	.p2align 3
.L10:
	add	eax, 1
	add	rdx, 12
	cmp	ebp, eax
	jl	.L4
.L5:
	mov	esi, DWORD PTR 4[rdx]
	mov	ecx, DWORD PTR [rdx]
	imul	esi, r14d
	imul	ecx, r15d
	cmp	esi, ecx
	jl	.L10
.L4:
	cmp	ebp, eax
	cmovle	eax, ebp
	cdqe
	lea	rax, [rax+rax*2]
	lea	rax, [rdi+rax*4]
	mov	rdi, QWORD PTR 8[rsp]
	mov	rdx, QWORD PTR 4[rax]
	mov	esi, DWORD PTR [rax]
	mov	QWORD PTR [rbx], rdx
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
	jmp	cpia2_set_fps@PLT
	.p2align 4,,10
	.p2align 3
.L1:
	.cfi_restore_state
	add	rsp, 24
	.cfi_remember_state
	.cfi_def_cfa_offset 56
	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
.L9:
	.cfi_restore_state
	mov	rcx, QWORD PTR CPIA2_VP_SENSOR_FLAGS_500[rip]
	cmp	QWORD PTR [rdi], rcx
	jne	.L3
	lea	ebp, -3[r12]
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	cpia2_s_parm, .-cpia2_s_parm
	.comm	framerate_controls,8,8
	.comm	DEVICE_STV_672,8,8
	.comm	CPIA2_VP_SENSOR_FLAGS_500,8,8
	.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_cpia2_v4l.c_cpia2_s_parm.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	cpia2_s_parm, %function
cpia2_s_parm:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, r9, r10, lr}
	mov	r4, r2
	mov	r9, r1
	mov	r8, r0
	bl	video_drvdata
	ldm	r4, {r5, r6}
	ldr	r10, .L11
	mov	r7, r0
	ldr	r0, [r10]
	bl	ARRAY_SIZE
	mov	r3, r0
	mov	r1, r9
	mov	r0, r8
	mov	r2, r4
	mov	r8, r3
	bl	cpia2_g_parm
	cmp	r0, #0
	popne	{r4, r5, r6, r7, r8, r9, r10, pc}
	cmp	r6, #0
	cmpne	r5, #0
	popeq	{r4, r5, r6, r7, r8, r9, r10, pc}
	ldr	r3, .L11+4
	ldr	r2, [r7, #4]
	ldr	r3, [r3]
	sub	lr, r8, #1
	cmp	r2, r3
	beq	.L9
.L3:
	cmp	lr, #0
	ldr	ip, [r10]
	blt	.L4
	mov	r2, ip
	b	.L5
.L10:
	add	r0, r0, #1
	cmp	lr, r0
	add	r2, r2, #12
	blt	.L4
.L5:
	ldr	r1, [r2, #8]
	ldr	r3, [r2, #4]
	mul	r1, r5, r1
	mul	r3, r6, r3
	cmp	r1, r3
	blt	.L10
.L4:
	cmp	lr, r0
	movlt	r0, lr
	add	r3, r0, r0, lsl #1
	add	r2, ip, r3, lsl #2
	ldmib	r2, {r0, r1}
	stm	r4, {r0, r1}
	mov	r0, r7
	pop	{r4, r5, r6, r7, r8, r9, r10, lr}
	ldr	r1, [ip, r3, lsl #2]
	b	cpia2_set_fps
.L9:
	ldr	r3, .L11+8
	ldr	r2, [r7]
	ldr	r3, [r3]
	cmp	r2, r3
	subeq	lr, r8, #3
	b	.L3
.L12:
	.align	2
.L11:
	.word	framerate_controls
	.word	DEVICE_STV_672
	.word	CPIA2_VP_SENSOR_FLAGS_500
	.size	cpia2_s_parm, .-cpia2_s_parm
	.comm	framerate_controls,4,4
	.comm	DEVICE_STV_672,4,4
	.comm	CPIA2_VP_SENSOR_FLAGS_500,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
