	.file	"extr_ov8856.c_ov8856_check_hwcfg.c"
	.intel_syntax noprefix
	.text
	.section	.rodata.str1.1,"aMS",@progbits,1
.LC0:
	.string	"clock-frequency"
	.section	.rodata.str1.8,"aMS",@progbits,1
	.align 8
.LC1:
	.string	"external clock %d is not supported"
	.align 8
.LC2:
	.string	"number of CSI2 data lanes %d is not supported"
	.section	.rodata.str1.1
.LC3:
	.string	"no link frequencies defined"
	.section	.rodata.str1.8
	.align 8
.LC4:
	.string	"no link frequency %lld supported"
	.text
	.p2align 4
	.type	ov8856_check_hwcfg, @function
ov8856_check_hwcfg:
.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
	mov	r13, rdi
	push	r12
	.cfi_def_cfa_offset 32
	.cfi_offset 12, -32
	push	rbp
	.cfi_def_cfa_offset 40
	.cfi_offset 6, -40
	push	rbx
	.cfi_def_cfa_offset 48
	.cfi_offset 3, -48
	sub	rsp, 64
	.cfi_def_cfa_offset 112
	mov	rax, QWORD PTR fs:40
	mov	QWORD PTR 56[rsp], rax
	xor	eax, eax
	call	dev_fwnode@PLT
	pxor	xmm0, xmm0
	mov	rbp, rax
	mov	eax, DWORD PTR V4L2_MBUS_CSI2_DPHY[rip]
	movaps	XMMWORD PTR 32[rsp], xmm0
	movaps	XMMWORD PTR 16[rsp], xmm0
	mov	DWORD PTR 40[rsp], eax
	test	rbp, rbp
	je	.L18
	lea	rdx, 8[rsp]
	lea	rsi, .LC0[rip]
	mov	rdi, rbp
	call	fwnode_property_read_u32@PLT
	mov	r12d, eax
	test	eax, eax
	jne	.L1
	mov	rdx, QWORD PTR 8[rsp]
	cmp	rdx, QWORD PTR OV8856_MCLK[rip]
	je	.L4
	lea	rsi, .LC1[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L1:
	mov	rax, QWORD PTR 56[rsp]
	xor	rax, QWORD PTR fs:40
	jne	.L20
	add	rsp, 64
	.cfi_remember_state
	.cfi_def_cfa_offset 48
	mov	eax, r12d
	pop	rbx
	.cfi_def_cfa_offset 40
	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
.L4:
	.cfi_restore_state
	xor	esi, esi
	mov	rdi, rbp
	call	fwnode_graph_get_next_endpoint@PLT
	mov	r14, rax
	test	rax, rax
	jne	.L5
	.p2align 4,,10
	.p2align 3
.L18:
	mov	r12d, DWORD PTR ENXIO[rip]
	neg	r12d
	jmp	.L1
	.p2align 4,,10
	.p2align 3
.L5:
	lea	rbp, 16[rsp]
	mov	rdi, rax
	mov	rsi, rbp
	call	v4l2_fwnode_endpoint_alloc_parse@PLT
	mov	rdi, r14
	mov	r12d, eax
	call	fwnode_handle_put@PLT
	test	r12d, r12d
	jne	.L1
	mov	rdx, QWORD PTR 32[rsp]
	cmp	rdx, QWORD PTR OV8856_DATA_LANES[rip]
	lea	rsi, .LC2[rip]
	jne	.L17
	mov	eax, DWORD PTR 16[rsp]
	test	eax, eax
	je	.L8
	mov	r10, QWORD PTR link_freq_menu_items[rip]
	xor	ebx, ebx
	.p2align 4,,10
	.p2align 3
.L9:
	mov	rdi, r10
	call	ARRAY_SIZE@PLT
	cmp	eax, ebx
	jbe	.L7
	mov	r10, QWORD PTR link_freq_menu_items[rip]
	mov	r9d, DWORD PTR 16[rsp]
	mov	eax, ebx
	mov	r8, QWORD PTR [r10+rax*8]
	test	r9d, r9d
	je	.L13
	mov	rcx, QWORD PTR 24[rsp]
	lea	esi, -1[r9]
	xor	eax, eax
	jmp	.L11
	.p2align 4,,10
	.p2align 3
.L22:
	lea	edi, 1[rax]
	lea	rdx, 1[rax]
	cmp	rsi, rax
	je	.L21
	mov	rax, rdx
.L11:
	cmp	QWORD PTR [rcx+rax*8], r8
	jne	.L22
.L10:
	add	ebx, 1
	jmp	.L9
	.p2align 4,,10
	.p2align 3
.L21:
	cmp	r9d, edi
	jne	.L10
.L13:
	mov	rdx, r8
	lea	rsi, .LC4[rip]
.L17:
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
.L7:
	mov	rdi, rbp
	call	v4l2_fwnode_endpoint_free@PLT
	jmp	.L1
.L8:
	lea	rsi, .LC3[rip]
	mov	rdi, r13
	xor	eax, eax
	call	dev_err@PLT
	mov	r12d, DWORD PTR EINVAL[rip]
	neg	r12d
	jmp	.L7
.L20:
	call	__stack_chk_fail@PLT
	.cfi_endproc
.LFE0:
	.size	ov8856_check_hwcfg, .-ov8856_check_hwcfg
	.comm	link_freq_menu_items,8,8
	.comm	V4L2_MBUS_CSI2_DPHY,4,4
	.comm	OV8856_MCLK,8,8
	.comm	OV8856_DATA_LANES,8,8
	.comm	ENXIO,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_ov8856.c_ov8856_check_hwcfg.c"
	.text
	.section	.rodata.str1.4,"aMS",%progbits,1
	.align	2
.LC0:
	.ascii	"clock-frequency\000"
	.align	2
.LC1:
	.ascii	"external clock %d is not supported\000"
	.align	2
.LC2:
	.ascii	"number of CSI2 data lanes %d is not supported\000"
	.align	2
.LC3:
	.ascii	"no link frequencies defined\000"
	.align	2
.LC4:
	.ascii	"no link frequency %lld supported\000"
	.section	.rodata.cst4,"aM",%progbits,4
	.align	2
.LC5:
	.word	__stack_chk_guard
	.text
	.align	2
	.syntax unified
	.arm
	.fpu softvfp
	.type	ov8856_check_hwcfg, %function
ov8856_check_hwcfg:
	@ args = 0, pretend = 0, frame = 24
	@ frame_needed = 0, uses_anonymous_args = 0
	push	{r4, r5, r6, r7, lr}
	ldr	r3, .L22
	sub	sp, sp, #28
	ldr	r3, [r3]
	str	r3, [sp, #20]
	mov	r3,#0
	mov	r5, r0
	bl	dev_fwnode
	mov	r3, #0
	ldr	r2, .L22+4
	subs	r6, r0, #0
	ldr	r2, [r2]
	str	r3, [sp, #4]
	str	r2, [sp, #16]
	str	r3, [sp, #8]
	str	r3, [sp, #12]
	beq	.L17
	mov	r2, sp
	ldr	r1, .L22+8
	bl	fwnode_property_read_u32
	subs	r4, r0, #0
	bne	.L1
	ldr	r3, .L22+12
	ldr	r2, [sp]
	ldr	r3, [r3]
	cmp	r2, r3
	beq	.L4
	mov	r0, r5
	ldr	r1, .L22+16
	bl	dev_err
	ldr	r3, .L22+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L1:
	ldr	r3, .L22
	ldr	r2, [r3]
	ldr	r3, [sp, #20]
	eors	r2, r3, r2
	mov	r3, #0
	bne	.L19
	mov	r0, r4
	add	sp, sp, #28
	@ sp needed
	pop	{r4, r5, r6, r7, pc}
.L4:
	mov	r0, r6
	mov	r1, r4
	bl	fwnode_graph_get_next_endpoint
	subs	r6, r0, #0
	bne	.L5
.L17:
	ldr	r3, .L22+24
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L1
.L5:
	add	r1, sp, #4
	bl	v4l2_fwnode_endpoint_alloc_parse
	mov	r4, r0
	mov	r0, r6
	bl	fwnode_handle_put
	cmp	r4, #0
	bne	.L1
	ldr	r3, .L22+28
	ldr	r2, [sp, #12]
	ldr	r3, [r3]
	cmp	r2, r3
	bne	.L20
	ldr	r3, [sp, #4]
	cmp	r3, #0
	beq	.L8
	mov	r7, r4
	ldr	r6, .L22+32
	ldr	r0, [r6]
.L9:
	bl	ARRAY_SIZE
	cmp	r0, r7
	bls	.L7
	ldr	r1, [sp, #4]
	ldr	r0, [r6]
	cmp	r1, #0
	ldr	r2, [r0, r7, lsl #2]
	beq	.L13
	ldr	ip, [sp, #8]
	mov	r3, #0
	sub	ip, ip, #4
	b	.L11
.L21:
	add	r3, r3, #1
	cmp	r1, r3
	beq	.L13
.L11:
	ldr	lr, [ip, #4]!
	cmp	lr, r2
	bne	.L21
	add	r7, r7, #1
	b	.L9
.L20:
	mov	r0, r5
	ldr	r1, .L22+36
	bl	dev_err
	ldr	r3, .L22+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
.L7:
	add	r0, sp, #4
	bl	v4l2_fwnode_endpoint_free
	b	.L1
.L13:
	mov	r0, r5
	ldr	r1, .L22+40
	bl	dev_err
	ldr	r3, .L22+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L7
.L8:
	mov	r0, r5
	ldr	r1, .L22+44
	bl	dev_err
	ldr	r3, .L22+20
	ldr	r4, [r3]
	rsb	r4, r4, #0
	b	.L7
.L19:
	bl	__stack_chk_fail
.L23:
	.align	2
.L22:
	.word	.LC5
	.word	V4L2_MBUS_CSI2_DPHY
	.word	.LC0
	.word	OV8856_MCLK
	.word	.LC1
	.word	EINVAL
	.word	ENXIO
	.word	OV8856_DATA_LANES
	.word	link_freq_menu_items
	.word	.LC2
	.word	.LC4
	.word	.LC3
	.size	ov8856_check_hwcfg, .-ov8856_check_hwcfg
	.comm	link_freq_menu_items,4,4
	.comm	V4L2_MBUS_CSI2_DPHY,4,4
	.comm	OV8856_MCLK,4,4
	.comm	OV8856_DATA_LANES,4,4
	.comm	ENXIO,4,4
	.comm	EINVAL,4,4
	.ident	"GCC: (Ubuntu 9.4.0-1ubuntu1~20.04.2) 9.4.0"
	.section	.note.GNU-stack,"",%progbits
