	.file	"extr_imx274.c_imx274_s_frame_interval.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Exposure ctrl range update failed\n"
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC1:
	.string	"set frame interval to %uus\n"
	.text
	.p2align 4
	.type	imx274_s_frame_interval, @function
imx274_s_frame_interval:
.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
	push	rbx
	.cfi_def_cfa_offset 40
	.cfi_offset 3, -40
	mov	rbx, rsi
	sub	rsp, 8
	.cfi_def_cfa_offset 48
	call	to_imx274@PLT
	mov	rdi, rax
	mov	rbp, rax
	mov	r13, QWORD PTR 16[rax]
	call	mutex_lock@PLT
	mov	rsi, QWORD PTR [rbx]
	mov	rdi, rbp
	call	imx274_set_frame_interval@PLT
	mov	r12d, eax
	test	eax, eax
	je	.L6
.L2:
	mov	rdi, rbp
	call	mutex_unlock@PLT
	add	rsp, 8
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	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
.L6:
	.cfi_restore_state
	imul	eax, DWORD PTR [rbx], 1000000
	mov	esi, DWORD PTR IMX274_MIN_EXPOSURE_TIME[rip]
	mov	ecx, 1
	mov	rdi, r13
	cdq
	idiv	DWORD PTR 4[rbx]
	mov	r8d, eax
	mov	edx, eax
	call	__v4l2_ctrl_modify_range@PLT
	test	rax, rax
	jne	.L7
	mov	esi, DWORD PTR 0[r13]
	mov	rdi, rbp
	call	imx274_set_exposure@PLT
	imul	eax, DWORD PTR [rbx], 1000000
	mov	rdi, QWORD PTR 8[rbp]
	lea	rsi, .LC1[rip]
	cdq
	idiv	DWORD PTR 4[rbx]
	mov	edx, eax
	call	dev_dbg@PLT
	jmp	.L2
	.p2align 4,,10
	.p2align 3
.L7:
	mov	rdi, QWORD PTR 8[rbp]
	lea	rsi, .LC0[rip]
	call	dev_err@PLT
	jmp	.L2
	.cfi_endproc
.LFE0:
	.size	imx274_s_frame_interval, .-imx274_s_frame_interval
	.comm	IMX274_MIN_EXPOSURE_TIME,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_imx274.c_imx274_s_frame_interval.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Exposure ctrl range update failed\012\000"
	.align	2
.LC1:
	.ascii	"set frame interval to %uus\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	imx274_s_frame_interval, %function
imx274_s_frame_interval:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	sub	sp, sp, #12
	mov	r6, r1
	bl	to_imx274
	mov	r4, r0
	ldr	r7, [r0, #8]
	bl	mutex_lock
	ldm	r6, {r1, r2}
	mov	r0, r4
	bl	imx274_set_frame_interval
	subs	r5, r0, #0
	beq	.L6
.L2:
	mov	r0, r4
	bl	mutex_unlock
	mov	r0, r5
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L6:
	ldm	r6, {r0, r1}
	rsb	r3, r0, r0, lsl #5
	rsb	r3, r3, r3, lsl #6
	add	r0, r0, r3, lsl #3
	lsl	r0, r0, #6
	bl	__aeabi_idiv
	ldr	r3, .L8
	str	r0, [sp]
	mov	r2, r0
	ldr	r1, [r3]
	mov	r0, r7
	mov	r3, #1
	bl	__v4l2_ctrl_modify_range
	cmp	r0, #0
	bne	.L7
	ldr	r1, [r7]
	mov	r0, r4
	bl	imx274_set_exposure
	ldm	r6, {r0, r1}
	rsb	r3, r0, r0, lsl #5
	rsb	r3, r3, r3, lsl #6
	add	r0, r0, r3, lsl #3
	lsl	r0, r0, #6
	bl	__aeabi_idiv
	ldr	r1, .L8+4
	mov	r2, r0
	ldr	r0, [r4, #4]
	bl	dev_dbg
	b	.L2
.L7:
	ldr	r1, .L8+8
	ldr	r0, [r4, #4]
	bl	dev_err
	b	.L2
.L9:
	.align	2
.L8:
	.word	IMX274_MIN_EXPOSURE_TIME
	.word	.LC1
	.word	.LC0
	.size	imx274_s_frame_interval, .-imx274_s_frame_interval
	.comm	IMX274_MIN_EXPOSURE_TIME,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
