	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function ov8856_check_hwcfg
_ov8856_check_hwcfg:                    ## @ov8856_check_hwcfg
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r15
	pushq	%r14
	pushq	%r12
	pushq	%rbx
	subq	$48, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	callq	_dev_fwnode
	movq	%rax, %rbx
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -48(%rbp)
	movaps	%xmm0, -64(%rbp)
	movq	_V4L2_MBUS_CSI2_DPHY@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -40(%rbp)
	testq	%rbx, %rbx
	je	LBB0_1
## %bb.2:
	leaq	L_.str(%rip), %rsi
	leaq	-72(%rbp), %rdx
	movq	%rbx, %rdi
	callq	_fwnode_property_read_u32
	movl	%eax, %r15d
	testl	%eax, %eax
	jne	LBB0_25
## %bb.3:
	movq	-72(%rbp), %rdx
	movq	_OV8856_MCLK@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_4
## %bb.5:
	xorl	%r15d, %r15d
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_fwnode_graph_get_next_endpoint
	testq	%rax, %rax
	je	LBB0_6
## %bb.7:
	movq	%rax, %rbx
	leaq	-64(%rbp), %rsi
	movq	%rax, %rdi
	callq	_v4l2_fwnode_endpoint_alloc_parse
	movl	%eax, %r15d
	movq	%rbx, %rdi
	callq	_fwnode_handle_put
	testl	%r15d, %r15d
	jne	LBB0_25
## %bb.8:
	movq	-48(%rbp), %rdx
	movq	_OV8856_DATA_LANES@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_9
## %bb.12:
	cmpl	$0, -64(%rbp)
	je	LBB0_15
## %bb.13:
	movq	_link_freq_menu_items@GOTPCREL(%rip), %r12
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	testl	%eax, %eax
	je	LBB0_14
## %bb.16:
	xorl	%ebx, %ebx
LBB0_17:                                ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_19 Depth 2
	movl	-64(%rbp), %eax
	movl	$0, %ecx
	testq	%rax, %rax
	je	LBB0_21
## %bb.18:                              ##   in Loop: Header=BB0_17 Depth=1
	movq	(%r12), %rcx
	movq	(%rcx,%rbx,8), %rdx
	movq	-56(%rbp), %rsi
	xorl	%ecx, %ecx
LBB0_19:                                ##   Parent Loop BB0_17 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpq	(%rsi,%rcx,8), %rdx
	je	LBB0_21
## %bb.20:                              ##   in Loop: Header=BB0_19 Depth=2
	incq	%rcx
	cmpq	%rcx, %rax
	jne	LBB0_19
	jmp	LBB0_22
LBB0_21:                                ##   in Loop: Header=BB0_17 Depth=1
	cmpl	%eax, %ecx
	je	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_17 Depth=1
	incq	%rbx
	movq	(%r12), %rdi
	callq	_ARRAY_SIZE
	movl	%eax, %eax
	xorl	%r15d, %r15d
	cmpq	%rax, %rbx
	jb	LBB0_17
	jmp	LBB0_24
LBB0_1:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%r15d, %r15d
	subl	(%rax), %r15d
	jmp	LBB0_25
LBB0_4:
	leaq	L_.str.1(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_25
LBB0_6:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
	jmp	LBB0_25
LBB0_9:
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_10
LBB0_15:
	leaq	L_.str.3(%rip), %rsi
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
	jmp	LBB0_11
LBB0_22:
	movq	(%r12), %rax
	movl	%ebx, %ecx
	movq	(%rax,%rcx,8), %rdx
	leaq	L_.str.4(%rip), %rsi
LBB0_10:
	xorl	%r15d, %r15d
	movq	%r14, %rdi
	xorl	%eax, %eax
	callq	_dev_err
LBB0_11:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %r15d
LBB0_24:
	leaq	-64(%rbp), %rdi
	callq	_v4l2_fwnode_endpoint_free
LBB0_25:
	movl	%r15d, %eax
	addq	$48, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	xorl	%r15d, %r15d
	jmp	LBB0_24
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_MBUS_CSI2_DPHY,4,2        ## @V4L2_MBUS_CSI2_DPHY
	.comm	_ENXIO,4,2                      ## @ENXIO
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clock-frequency"

	.comm	_OV8856_MCLK,8,3                ## @OV8856_MCLK
L_.str.1:                               ## @.str.1
	.asciz	"external clock %d is not supported"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_OV8856_DATA_LANES,8,3          ## @OV8856_DATA_LANES
L_.str.2:                               ## @.str.2
	.asciz	"number of CSI2 data lanes %d is not supported"

L_.str.3:                               ## @.str.3
	.asciz	"no link frequencies defined"

	.comm	_link_freq_menu_items,8,3       ## @link_freq_menu_items
L_.str.4:                               ## @.str.4
	.asciz	"no link frequency %lld supported"

	.no_dead_strip	_ov8856_check_hwcfg
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function ov8856_check_hwcfg
_ov8856_check_hwcfg:                    ; @ov8856_check_hwcfg
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x19, x0
	bl	_dev_fwnode
	movi.2d	v0, #0000000000000000
	stp	q0, q0, [sp, #16]
Lloh0:
	adrp	x8, _V4L2_MBUS_CSI2_DPHY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_MBUS_CSI2_DPHY@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [sp, #40]
	cbz	x0, LBB0_16
; %bb.1:
	mov	x21, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #8
	bl	_fwnode_property_read_u32
	mov	x20, x0
	cbnz	w0, LBB0_19
; %bb.2:
	ldr	x8, [sp, #8]
Lloh5:
	adrp	x9, _OV8856_MCLK@GOTPAGE
Lloh6:
	ldr	x9, [x9, _OV8856_MCLK@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_17
; %bb.3:
	mov	x0, x21
	mov	x1, #0
	bl	_fwnode_graph_get_next_endpoint
	cbz	x0, LBB0_16
; %bb.4:
	mov	x21, x0
	add	x1, sp, #16
	bl	_v4l2_fwnode_endpoint_alloc_parse
	mov	x20, x0
	mov	x0, x21
	bl	_fwnode_handle_put
	cbnz	w20, LBB0_19
; %bb.5:
	ldr	x8, [sp, #32]
Lloh8:
	adrp	x9, _OV8856_DATA_LANES@GOTPAGE
Lloh9:
	ldr	x9, [x9, _OV8856_DATA_LANES@GOTPAGEOFF]
Lloh10:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_20
; %bb.6:
	ldr	w8, [sp, #16]
	cbz	w8, LBB0_21
; %bb.7:
Lloh11:
	adrp	x21, _link_freq_menu_items@GOTPAGE
Lloh12:
	ldr	x21, [x21, _link_freq_menu_items@GOTPAGEOFF]
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	cbz	w0, LBB0_25
; %bb.8:
	mov	x22, #0
LBB0_9:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_11 Depth 2
	ldr	w8, [sp, #16]
	cbz	w8, LBB0_13
; %bb.10:                               ;   in Loop: Header=BB0_9 Depth=1
	mov	x9, #0
	ldr	x10, [x21]
	ldr	x10, [x10, x22, lsl #3]
	ldr	x11, [sp, #24]
LBB0_11:                                ;   Parent Loop BB0_9 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldr	x12, [x11, x9, lsl #3]
	cmp	x10, x12
	b.eq	LBB0_14
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=2
	add	x9, x9, #1
	cmp	x8, x9
	b.ne	LBB0_11
	b	LBB0_22
LBB0_13:                                ;   in Loop: Header=BB0_9 Depth=1
	mov	w9, #0
LBB0_14:                                ;   in Loop: Header=BB0_9 Depth=1
	cmp	w9, w8
	b.eq	LBB0_22
; %bb.15:                               ;   in Loop: Header=BB0_9 Depth=1
	add	x22, x22, #1
	ldr	x0, [x21]
	bl	_ARRAY_SIZE
	mov	w20, #0
	cmp	x22, w0, uxtw
	b.lo	LBB0_9
	b	LBB0_24
LBB0_16:
Lloh13:
	adrp	x8, _ENXIO@GOTPAGE
Lloh14:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
	b	LBB0_18
LBB0_17:
	str	x8, [sp]
Lloh15:
	adrp	x1, l_.str.1@PAGE
Lloh16:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_dev_err
Lloh17:
	adrp	x8, _EINVAL@GOTPAGE
Lloh18:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
LBB0_18:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_19:
	mov	x0, x20
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
LBB0_20:
	str	x8, [sp]
Lloh19:
	adrp	x1, l_.str.2@PAGE
Lloh20:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_23
LBB0_21:
Lloh21:
	adrp	x1, l_.str.3@PAGE
Lloh22:
	add	x1, x1, l_.str.3@PAGEOFF
	b	LBB0_23
LBB0_22:
	ldr	x8, [x21]
	ldr	x8, [x8, w22, uxtw #3]
	str	x8, [sp]
Lloh23:
	adrp	x1, l_.str.4@PAGE
Lloh24:
	add	x1, x1, l_.str.4@PAGEOFF
LBB0_23:
	mov	x0, x19
	bl	_dev_err
Lloh25:
	adrp	x8, _EINVAL@GOTPAGE
Lloh26:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh27:
	ldr	w8, [x8]
	neg	w20, w8
LBB0_24:
	add	x0, sp, #16
	bl	_v4l2_fwnode_endpoint_free
	b	LBB0_19
LBB0_25:
	mov	w20, #0
	b	LBB0_24
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh17, Lloh18
	.loh AdrpAdd	Lloh15, Lloh16
	.loh AdrpAdd	Lloh19, Lloh20
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpLdrGotLdr	Lloh25, Lloh26, Lloh27
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_MBUS_CSI2_DPHY,4,2        ; @V4L2_MBUS_CSI2_DPHY
	.comm	_ENXIO,4,2                      ; @ENXIO
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clock-frequency"

	.comm	_OV8856_MCLK,8,3                ; @OV8856_MCLK
l_.str.1:                               ; @.str.1
	.asciz	"external clock %d is not supported"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_OV8856_DATA_LANES,8,3          ; @OV8856_DATA_LANES
l_.str.2:                               ; @.str.2
	.asciz	"number of CSI2 data lanes %d is not supported"

l_.str.3:                               ; @.str.3
	.asciz	"no link frequencies defined"

	.comm	_link_freq_menu_items,8,3       ; @link_freq_menu_items
l_.str.4:                               ; @.str.4
	.asciz	"no link frequency %lld supported"

	.no_dead_strip	_ov8856_check_hwcfg
.subsections_via_symbols
