	.file	"extr_aspeed-video.c_aspeed_video_set_parm.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	aspeed_video_set_parm, @function
aspeed_video_set_parm:
.LFB0:
	.cfi_startproc
	endbr64
	push	rbp
	.cfi_def_cfa_offset 16
	.cfi_offset 6, -16
	push	rbx
	.cfi_def_cfa_offset 24
	.cfi_offset 3, -24
	mov	rbx, rdx
	sub	rsp, 8
	.cfi_def_cfa_offset 32
	call	video_drvdata@PLT
	mov	ecx, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR MAX_FRAME_RATE[rip]
	mov	rbp, rax
	mov	eax, DWORD PTR V4L2_CAP_TIMEPERFRAME[rip]
	mov	DWORD PTR [rbx], 3
	mov	DWORD PTR 12[rbx], eax
	test	ecx, ecx
	je	.L3
	mov	eax, DWORD PTR 8[rbx]
	mov	edi, DWORD PTR MAX_FRAME_RATE[rip]
	cmp	eax, ecx
	jnb	.L8
.L3:
	mov	DWORD PTR 8[rbx], edi
	xor	esi, esi
	mov	DWORD PTR 4[rbx], 1
.L4:
	cmp	DWORD PTR 0[rbp], esi
	je	.L5
	mov	DWORD PTR 0[rbp], esi
	mov	edi, DWORD PTR VE_CTRL_FRC[rip]
	call	FIELD_PREP@PLT
	mov	edx, DWORD PTR VE_CTRL_FRC[rip]
	mov	esi, DWORD PTR VE_CTRL[rip]
	mov	rdi, rbp
	mov	ecx, eax
	call	aspeed_video_update@PLT
.L5:
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 24
	xor	eax, eax
	pop	rbx
	.cfi_def_cfa_offset 16
	pop	rbp
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L8:
	.cfi_restore_state
	xor	edx, edx
	div	ecx
	mov	esi, eax
	cmp	eax, edi
	jbe	.L4
	jmp	.L3
	.cfi_endproc
.LFE0:
	.size	aspeed_video_set_parm, .-aspeed_video_set_parm
	.comm	VE_CTRL_FRC,4,4
	.comm	VE_CTRL,4,4
	.comm	V4L2_CAP_TIMEPERFRAME,4,4
	.comm	MAX_FRAME_RATE,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_aspeed-video.c_aspeed_video_set_parm.c"
	.text
	.global	__aeabi_uidiv
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	aspeed_video_set_parm, %function
aspeed_video_set_parm:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r2
	bl	video_drvdata
	mov	r3, #3
	ldr	r2, .L8
	ldr	r1, [r4, #4]
	ldr	r2, [r2]
	cmp	r1, #0
	mov	r5, r0
	str	r2, [r4, #12]
	str	r3, [r4]
	bne	.L2
	ldr	r3, .L8+4
	ldr	r6, [r3]
.L3:
	mov	r3, #1
	mov	r1, #0
	stmib	r4, {r3, r6}
.L4:
	ldr	r3, [r5]
	cmp	r3, r1
	beq	.L5
	ldr	r3, .L8+8
	str	r1, [r5]
	ldr	r4, [r3]
	ldr	r3, .L8+12
	mov	r0, r4
	ldr	r6, [r3]
	bl	FIELD_PREP
	mov	r2, r4
	mov	r3, r0
	mov	r1, r6
	mov	r0, r5
	bl	aspeed_video_update
.L5:
	mov	r0, #0
	pop	{r4, r5, r6, pc}
.L2:
	ldr	r0, [r4, #8]
	ldr	r3, .L8+4
	cmp	r0, r1
	ldr	r6, [r3]
	bcc	.L3
	bl	__aeabi_uidiv
	cmp	r0, r6
	mov	r1, r0
	bls	.L4
	b	.L3
.L9:
	.align	2
.L8:
	.word	V4L2_CAP_TIMEPERFRAME
	.word	MAX_FRAME_RATE
	.word	VE_CTRL_FRC
	.word	VE_CTRL
	.size	aspeed_video_set_parm, .-aspeed_video_set_parm
	.comm	VE_CTRL_FRC,4,4
	.comm	VE_CTRL,4,4
	.comm	V4L2_CAP_TIMEPERFRAME,4,4
	.comm	MAX_FRAME_RATE,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
