	.file	"extr_imx-media-csi.c_csi_enum_frame_interval.c"
	.intel_syntax noprefix
	.text
	.p2align 4
	.type	csi_enum_frame_interval, @function
csi_enum_frame_interval:
.LFB0:
	.cfi_startproc
	endbr64
	push	r14
	.cfi_def_cfa_offset 16
	.cfi_offset 14, -16
	push	r13
	.cfi_def_cfa_offset 24
	.cfi_offset 13, -24
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	mov	r12, rsi
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	mov	rbx, rdx
	call	v4l2_get_subdevdata@PLT
	mov	rdx, QWORD PTR [rbx]
	cmp	rdx, QWORD PTR CSI_NUM_PADS[rip]
	jge	.L5
	cmp	rdx, QWORD PTR CSI_SRC_PAD_IDMAC[rip]
	mov	rbp, rax
	mov	r13d, DWORD PTR 8[rbx]
	mov	eax, 1
	je	.L14
.L4:
	cmp	r13d, eax
	jl	.L15
.L5:
	mov	r12d, DWORD PTR EINVAL[rip]
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	pop	rbp
	.cfi_def_cfa_offset 32
	neg	r12d
	mov	eax, r12d
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L15:
	.cfi_restore_state
	mov	rdi, rbp
	call	mutex_lock@PLT
	mov	edx, DWORD PTR 24[rbx]
	mov	rsi, r12
	mov	rdi, rbp
	mov	r13, QWORD PTR 8[rbp]
	mov	r14, QWORD PTR CSI_SINK_PAD[rip]
	call	__csi_get_crop@PLT
	mov	esi, DWORD PTR 12[rbx]
	mov	ecx, DWORD PTR [rax]
	cmp	esi, ecx
	je	.L6
	mov	edx, ecx
	shr	edx, 31
	add	edx, ecx
	sar	edx
	cmp	esi, edx
	je	.L6
.L7:
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L6:
	mov	ecx, DWORD PTR 16[rbx]
	mov	edx, DWORD PTR 4[rax]
	cmp	ecx, edx
	je	.L8
	mov	eax, edx
	shr	eax, 31
	add	eax, edx
	sar	eax
	cmp	ecx, eax
	jne	.L7
.L8:
	mov	eax, DWORD PTR 0[r13+r14*4]
	xor	r12d, r12d
	mov	DWORD PTR 20[rbx], eax
	mov	rax, QWORD PTR CSI_SRC_PAD_IDMAC[rip]
	cmp	QWORD PTR [rbx], rax
	je	.L16
.L9:
	mov	rdi, rbp
	call	mutex_unlock@PLT
	pop	rbx
	.cfi_remember_state
	.cfi_def_cfa_offset 40
	mov	eax, r12d
	pop	rbp
	.cfi_def_cfa_offset 32
	pop	r12
	.cfi_def_cfa_offset 24
	pop	r13
	.cfi_def_cfa_offset 16
	pop	r14
	.cfi_def_cfa_offset 8
	ret
	.p2align 4,,10
	.p2align 3
.L14:
	.cfi_restore_state
	mov	rdi, QWORD PTR csi_skip[rip]
	call	ARRAY_SIZE@PLT
	jmp	.L4
	.p2align 4,,10
	.p2align 3
.L16:
	movsx	rdx, DWORD PTR 8[rbx]
	mov	rax, QWORD PTR csi_skip[rip]
	lea	rsi, 20[rbx]
	lea	rdi, [rax+rdx*4]
	call	csi_apply_skip_interval@PLT
	jmp	.L9
	.cfi_endproc
.LFE0:
	.size	csi_enum_frame_interval, .-csi_enum_frame_interval
	.comm	csi_skip,8,8
	.comm	EINVAL,4,4
	.comm	CSI_SRC_PAD_IDMAC,8,8
	.comm	CSI_SINK_PAD,8,8
	.comm	CSI_NUM_PADS,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_imx-media-csi.c_csi_enum_frame_interval.c"
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	csi_enum_frame_interval, %function
csi_enum_frame_interval:
	@ args = 0, pretend = 0, frame = 0
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, r8, lr}
	mov	r4, r2
	mov	r6, r1
	bl	v4l2_get_subdevdata
	ldr	r2, .L17
	ldr	r3, [r4]
	ldr	r2, [r2]
	cmp	r3, r2
	bge	.L5
	ldr	r7, .L17+4
	mov	r5, r0
	ldr	r2, [r7]
	ldr	r8, [r4, #4]
	cmp	r3, r2
	movne	r0, #1
	beq	.L14
.L4:
	cmp	r8, r0
	blt	.L15
.L5:
	ldr	r3, .L17+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L15:
	mov	r0, r5
	bl	mutex_lock
	ldr	r3, .L17+12
	mov	r1, r6
	ldr	r2, [r4, #20]
	mov	r0, r5
	ldr	r8, [r3]
	ldr	r6, [r5, #4]
	bl	__csi_get_crop
	ldr	r2, [r4, #8]
	ldr	r3, [r0]
	cmp	r2, r3
	beq	.L6
	add	r3, r3, r3, lsr #31
	cmp	r2, r3, asr #1
	beq	.L6
.L7:
	ldr	r3, .L17+8
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L9
.L6:
	ldr	r3, [r0, #4]
	ldr	r2, [r4, #12]
	cmp	r2, r3
	beq	.L8
	add	r3, r3, r3, lsr #31
	cmp	r2, r3, asr #1
	bne	.L7
.L8:
	ldr	r1, [r4]
	ldr	r2, [r7]
	ldr	r3, [r6, r8, lsl #2]
	cmp	r1, r2
	str	r3, [r4, #16]
	movne	r4, #0
	beq	.L16
.L9:
	mov	r0, r5
	bl	mutex_unlock
	mov	r0, r4
	pop	{r4, r5, r6, r7, r8, pc}
.L14:
	ldr	r3, .L17+16
	ldr	r0, [r3]
	bl	ARRAY_SIZE
	b	.L4
.L16:
	ldr	r3, .L17+16
	ldr	r0, [r4, #4]
	ldr	r3, [r3]
	add	r1, r4, #16
	add	r0, r3, r0, lsl #2
	bl	csi_apply_skip_interval
	mov	r4, #0
	b	.L9
.L18:
	.align	2
.L17:
	.word	CSI_NUM_PADS
	.word	CSI_SRC_PAD_IDMAC
	.word	EINVAL
	.word	CSI_SINK_PAD
	.word	csi_skip
	.size	csi_enum_frame_interval, .-csi_enum_frame_interval
	.comm	csi_skip,4,4
	.comm	EINVAL,4,4
	.comm	CSI_SRC_PAD_IDMAC,4,4
	.comm	CSI_SINK_PAD,4,4
	.comm	CSI_NUM_PADS,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
