	.file	"extr_go7007-v4l2.c_vidioc_enum_frameintervals.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	vidioc_enum_frameintervals, @function
vidioc_enum_frameintervals:
.LFB0:
	.cfi_startproc
	endbr64
	push	r12
	.cfi_def_cfa_offset 16
	.cfi_offset 12, -16
	push	rbp
	.cfi_def_cfa_offset 24
	.cfi_offset 6, -24
	push	rbx
	.cfi_def_cfa_offset 32
	.cfi_offset 3, -32
	mov	rbx, rdx
	sub	rsp, 16
	.cfi_def_cfa_offset 48
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 8[rsp], rax
	xor	eax, eax
	call	video_drvdata@PLT
	cmp	DWORD PTR [rbx], 4
	jle	.L2
.L11:
	mov	eax, DWORD PTR EINVAL[rip]
	neg	eax
.L1:
	mov	rsi, QWORD PTR 8[rsp]
	xor	rsi, QWORD PTR fs:40
	jne	.L15
	add	rsp, 16
	.cfi_remember_state
	.cfi_def_cfa_offset 32
	pop	rbx
	.cfi_def_cfa_offset 24
	pop	rbp
	.cfi_def_cfa_offset 16
	pop	r12
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L2:
	.cfi_restore_state
	mov	edi, DWORD PTR 24[rbx]
	mov	r12, rax
	call	valid_pixelformat@PLT
	test	eax, eax
	je	.L11
	mov	rax, QWORD PTR 8[r12]
	mov	ebp, DWORD PTR [rax]
	and	ebp, DWORD PTR GO7007_SENSOR_SCALING[rip]
	je	.L16
.L5:
	mov	eax, DWORD PTR V4L2_FRMIVAL_TYPE_DISCRETE[rip]
	mov	DWORD PTR 20[rbx], eax
	mov	eax, DWORD PTR [rbx]
	add	eax, 1
	imul	eax, eax, 1001
	mov	DWORD PTR 12[rbx], eax
	mov	eax, DWORD PTR [r12]
	mov	DWORD PTR 16[rbx], eax
	xor	eax, eax
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L16:
	lea	rdx, 4[rsp]
	mov	rsi, rsp
	mov	rdi, r12
	call	get_resolution@PLT
	mov	edx, DWORD PTR [rsp]
	mov	ecx, ebp
	mov	esi, DWORD PTR 4[rbx]
	mov	edi, DWORD PTR 4[rsp]
	mov	eax, edx
	sar	eax, cl
	and	eax, -16
	cmp	esi, eax
	je	.L17
.L6:
	add	ebp, 1
	cmp	ebp, 3
	je	.L11
	mov	eax, edx
	mov	ecx, ebp
	sar	eax, cl
	and	eax, -16
	cmp	esi, eax
	jne	.L6
.L17:
	mov	eax, edi
	sar	eax, cl
	and	eax, -16
	cmp	DWORD PTR 8[rbx], eax
	jne	.L6
	jmp	.L5
.L15:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	vidioc_enum_frameintervals, .-vidioc_enum_frameintervals
	.comm	V4L2_FRMIVAL_TYPE_DISCRETE,4,4
	.comm	GO7007_SENSOR_SCALING,4,4
	.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_go7007-v4l2.c_vidioc_enum_frameintervals.c"
	.text
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC0:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	vidioc_enum_frameintervals, %function
vidioc_enum_frameintervals:
	@ args = 0, pretend = 0, frame = 16
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, lr}
	mov	r4, r2
	ldr	r3, .L18
	sub	sp, sp, #16
	ldr	r3, [r3]
	str	r3, [sp, #12]
	mov	r3,#0
	bl	video_drvdata
	ldr	r3, [r4]
	cmp	r3, #4
	ble	.L2
.L11:
	ldr	r3, .L18+4
	ldr	r0, [r3]
	rsb	r0, r0, #0
.L1:
	ldr	r3, .L18
	ldr	r2, [r3]
	ldr	r3, [sp, #12]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L15
	add	sp, sp, #16
	@ sp needed
	pop	{r4, r5, r6, pc}
.L2:
	mov	r6, r0
	ldr	r0, [r4, #24]
	bl	valid_pixelformat
	cmp	r0, #0
	beq	.L11
	ldr	r2, [r6, #4]
	ldr	r3, .L18+8
	ldr	r5, [r2]
	ldr	r3, [r3]
	ands	r5, r5, r3
	beq	.L16
.L5:
	ldr	r3, [r4]
	ldr	r2, .L18+12
	add	r3, r3, #1
	add	r0, r3, r3, lsl #3
	ldr	r1, [r6]
	rsb	r3, r3, r0, lsl #4
	ldr	r2, [r2]
	rsb	r3, r3, r3, lsl #3
	mov	r0, #0
	str	r1, [r4, #16]
	str	r3, [r4, #12]
	str	r2, [r4, #20]
	b	.L1
.L16:
	add	r2, sp, #8
	add	r1, sp, #4
	mov	r0, r6
	bl	get_resolution
	ldr	r2, [sp, #4]
	ldr	r1, [r4, #4]
	asr	r3, r2, r5
	bic	r3, r3, #15
	cmp	r1, r3
	ldr	r0, [sp, #8]
	beq	.L17
.L6:
	add	r5, r5, #1
	cmp	r5, #3
	beq	.L11
	asr	r3, r2, r5
	bic	r3, r3, #15
	cmp	r1, r3
	bne	.L6
.L17:
	ldr	ip, [r4, #8]
	asr	r3, r0, r5
	bic	r3, r3, #15
	cmp	ip, r3
	bne	.L6
	b	.L5
.L15:
	bl	__stack_chk_fail
.L19:
	.align	2
.L18:
	.word	.LC0
	.word	EINVAL
	.word	GO7007_SENSOR_SCALING
	.word	V4L2_FRMIVAL_TYPE_DISCRETE
	.size	vidioc_enum_frameintervals, .-vidioc_enum_frameintervals
	.comm	V4L2_FRMIVAL_TYPE_DISCRETE,4,4
	.comm	GO7007_SENSOR_SCALING,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
