	.file	"extr_s5c73m3-core.c___s5c73m3_set_frame_interval.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC0:
	.string	"Changed frame interval to %u us\n"
	.text
	.p2align 4
	.type	__s5c73m3_set_frame_interval, @function
__s5c73m3_set_frame_interval:
.LFB0:
	.cfi_startproc
	endbr64
	mov	ecx, DWORD PTR [rsi]
	test	ecx, ecx
	je	.L11
	push	r15
	.cfi_def_cfa_offset 16
	.cfi_offset 15, -16
	xor	r15d, r15d
	push	r14
	.cfi_def_cfa_offset 24
	.cfi_offset 14, -24
	push	r13
	.cfi_def_cfa_offset 32
	.cfi_offset 13, -32
	push	r12
	.cfi_def_cfa_offset 40
	.cfi_offset 12, -40
	mov	r12, rdi
	push	rbp
	.cfi_def_cfa_offset 48
	.cfi_offset 6, -48
	push	rbx
	.cfi_def_cfa_offset 56
	.cfi_offset 3, -56
	sub	rsp, 8
	.cfi_def_cfa_offset 64
	mov	rax, QWORD PTR 16[rdi]
	mov	ebp, DWORD PTR UINT_MAX[rip]
	mov	rdx, QWORD PTR RES_ISP[rip]
	mov	rdi, QWORD PTR s5c73m3_intervals[rip]
	mov	rbx, QWORD PTR [rax+rdx*8]
	imul	eax, DWORD PTR 4[rsi], 1000
	mov	r13, rdi
	cdq
	idiv	ecx
	mov	r14d, eax
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L6:
	mov	rdi, QWORD PTR s5c73m3_intervals[rip]
	mov	eax, r15d
	lea	rax, [rax+rax*2]
	lea	rax, [rdi+rax*8]
	mov	rsi, QWORD PTR 8[rax]
	cmp	QWORD PTR [rbx], rsi
	jg	.L5
	mov	rdx, QWORD PTR 16[rax]
	cmp	QWORD PTR 8[rbx], rdx
	jg	.L5
	movsx	rcx, DWORD PTR [rax]
	mov	rdx, rcx
	imul	rcx, rcx, 274877907
	sar	edx, 31
	sar	rcx, 38
	sub	ecx, edx
	sub	ecx, r14d
	cmp	ebp, ecx
	jbe	.L5
	mov	ebp, ecx
	mov	r13, rax
.L5:
	add	r15d, 1
.L4:
	call	ARRAY_SIZE@PLT
	cmp	eax, r15d
	ja	.L6
	mov	QWORD PTR 8[r12], r13
	mov	r8d, DWORD PTR 0[r13]
	mov	rdx, r12
	mov	edi, 1
	mov	esi, DWORD PTR s5c73m3_dbg[rip]
	lea	rcx, .LC0[rip]
	call	v4l2_dbg@PLT
	add	rsp, 8
	.cfi_def_cfa_offset 56
	xor	eax, eax
	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
.L11:
	.cfi_restore 3
	.cfi_restore 6
	.cfi_restore 12
	.cfi_restore 13
	.cfi_restore 14
	.cfi_restore 15
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
	ret
	.cfi_endproc
.LFE0:
	.size	__s5c73m3_set_frame_interval, .-__s5c73m3_set_frame_interval
	.comm	s5c73m3_intervals,8,8
	.comm	s5c73m3_dbg,4,4
	.comm	UINT_MAX,4,4
	.comm	RES_ISP,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_s5c73m3-core.c___s5c73m3_set_frame_interval.c"
	.text
	.global	__aeabi_idiv
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"Changed frame interval to %u us\012\000"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	__s5c73m3_set_frame_interval, %function
__s5c73m3_set_frame_interval:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	mov	r3, r1
	ldr	r1, [r1]
	cmp	r1, #0
	beq	.L11
	push	{r4, r5, r6, r7, r8, r9, r10, fp, lr}
	mov	r7, r0
	ldr	r0, [r3, #4]
	ldr	r3, .L13
	rsb	r2, r0, r0, lsl #5
	ldr	ip, [r3]
	add	r0, r0, r2, lsl #2
	ldr	r3, .L13+4
	ldr	r2, [r7, #8]
	sub	sp, sp, #12
	lsl	r0, r0, #3
	ldr	fp, [r2, ip, lsl #2]
	ldr	r4, [r3]
	bl	__aeabi_idiv
	ldr	r6, .L13+8
	mov	r8, r0
	ldr	r0, [r6]
	mov	r10, #0
	mov	r5, r0
	ldr	r9, .L13+12
.L4:
	bl	ARRAY_SIZE
	cmp	r0, r10
	add	r3, r10, r10, lsl #1
	bls	.L12
.L6:
	ldr	r0, [r6]
	ldr	r1, [fp]
	add	r3, r0, r3, lsl #2
	ldr	r2, [r3, #4]
	add	r10, r10, #1
	cmp	r1, r2
	bgt	.L4
	ldr	r1, [fp, #4]
	ldr	r2, [r3, #8]
	cmp	r1, r2
	bgt	.L4
	ldr	r1, [r3]
	smull	r2, ip, r9, r1
	asr	r2, r1, #31
	rsb	r2, r2, ip, asr #6
	sub	r2, r2, r8
	cmp	r4, r2
	movhi	r5, r3
	movhi	r4, r2
	bl	ARRAY_SIZE
	cmp	r0, r10
	add	r3, r10, r10, lsl #1
	bhi	.L6
.L12:
	ldr	r2, [r5]
	ldr	r3, .L13+16
	str	r5, [r7, #4]
	str	r2, [sp]
	ldr	r1, [r3]
	mov	r2, r7
	ldr	r3, .L13+20
	mov	r0, #1
	bl	v4l2_dbg
	mov	r0, #0
	add	sp, sp, #12
	@ sp needed
	pop	{r4, r5, r6, r7, r8, r9, r10, fp, pc}
.L11:
	ldr	r3, .L13+24
	ldr	r0, [r3]
	rsb	r0, r0, #0
	bx	lr
.L14:
	.align	2
.L13:
	.word	RES_ISP
	.word	UINT_MAX
	.word	s5c73m3_intervals
	.word	274877907
	.word	s5c73m3_dbg
	.word	.LC0
	.word	EINVAL
	.size	__s5c73m3_set_frame_interval, .-__s5c73m3_set_frame_interval
	.comm	s5c73m3_intervals,4,4
	.comm	s5c73m3_dbg,4,4
	.comm	UINT_MAX,4,4
	.comm	RES_ISP,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
