	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function s5pcsis_parse_dt
_s5pcsis_parse_dt:                      ## @s5pcsis_parse_dt
	.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	$32, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r12
	movq	(%rdi), %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	leaq	24(%rsi), %rbx
	leaq	L_.str(%rip), %rsi
	movq	%r14, %rdi
	movq	%rbx, %rdx
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	_DEFAULT_SCLK_CSIS_FREQ@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
LBB0_2:
	leaq	20(%r15), %rdx
	leaq	L_.str.1(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_property_read_u32
	testq	%rax, %rax
	je	LBB0_4
## %bb.3:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_4:
	xorl	%ebx, %ebx
	movq	%r14, %rdi
	xorl	%esi, %esi
	callq	_of_graph_get_next_endpoint
	testq	%rax, %rax
	je	LBB0_5
## %bb.6:
	movq	%rax, %r14
	movq	%rax, %rdi
	callq	_of_fwnode_handle
	leaq	-64(%rbp), %rsi
	movl	%eax, %edi
	callq	_v4l2_fwnode_endpoint_parse
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_10
## %bb.7:
	movq	-56(%rbp), %rax
	movq	_FIMC_INPUT_MIPI_CSI2_0@GOTPCREL(%rip), %rcx
	subq	(%rcx), %rax
	movq	%rax, (%r15)
	movq	_CSIS_MAX_ENTITIES@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jge	LBB0_8
## %bb.9:
	leaq	16(%r15), %rdx
	leaq	L_.str.3(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_property_read_u32
	leaq	L_.str.4(%rip), %rsi
	movq	%r14, %rdi
	callq	_of_property_read_bool
	movl	%eax, 12(%r15)
	movl	-64(%rbp), %eax
	movl	%eax, 8(%r15)
	xorl	%ebx, %ebx
	jmp	LBB0_10
LBB0_5:
	movq	(%r12), %rdx
	leaq	L_.str.2(%rip), %rsi
	movq	%r12, %rdi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_8:
	movq	_ENXIO@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_10:
	movq	%r14, %rdi
	callq	_of_node_put
LBB0_11:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"clock-frequency"

	.comm	_DEFAULT_SCLK_CSIS_FREQ,4,2     ## @DEFAULT_SCLK_CSIS_FREQ
L_.str.1:                               ## @.str.1
	.asciz	"bus-width"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.2:                               ## @.str.2
	.asciz	"No port node at %pOF\n"

	.comm	_FIMC_INPUT_MIPI_CSI2_0,8,3     ## @FIMC_INPUT_MIPI_CSI2_0
	.comm	_CSIS_MAX_ENTITIES,8,3          ## @CSIS_MAX_ENTITIES
	.comm	_ENXIO,4,2                      ## @ENXIO
L_.str.3:                               ## @.str.3
	.asciz	"samsung,csis-hs-settle"

L_.str.4:                               ## @.str.4
	.asciz	"samsung,csis-wclk"

	.no_dead_strip	_s5pcsis_parse_dt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function s5pcsis_parse_dt
_s5pcsis_parse_dt:                      ; @s5pcsis_parse_dt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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, x1
	mov	x21, x0
	ldr	x20, [x0]
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	add	x22, x1, #24
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x20
	mov	x2, x22
	bl	_of_property_read_u32
	cbz	x0, LBB0_2
; %bb.1:
Lloh2:
	adrp	x8, _DEFAULT_SCLK_CSIS_FREQ@GOTPAGE
Lloh3:
	ldr	x8, [x8, _DEFAULT_SCLK_CSIS_FREQ@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	str	w8, [x22]
LBB0_2:
	add	x2, x19, #20
Lloh5:
	adrp	x1, l_.str.1@PAGE
Lloh6:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x20
	bl	_of_property_read_u32
	cbz	x0, LBB0_4
LBB0_3:
Lloh7:
	adrp	x8, _EINVAL@GOTPAGE
Lloh8:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_11
LBB0_4:
	mov	x0, x20
	mov	x1, #0
	bl	_of_graph_get_next_endpoint
	cbz	x0, LBB0_8
; %bb.5:
	mov	x20, x0
	bl	_of_fwnode_handle
	add	x1, sp, #8
	bl	_v4l2_fwnode_endpoint_parse
	mov	x21, x0
	cbnz	w0, LBB0_10
; %bb.6:
	ldr	x8, [sp, #16]
Lloh10:
	adrp	x9, _FIMC_INPUT_MIPI_CSI2_0@GOTPAGE
Lloh11:
	ldr	x9, [x9, _FIMC_INPUT_MIPI_CSI2_0@GOTPAGEOFF]
Lloh12:
	ldr	x9, [x9]
	sub	x8, x8, x9
	str	x8, [x19]
Lloh13:
	adrp	x9, _CSIS_MAX_ENTITIES@GOTPAGE
Lloh14:
	ldr	x9, [x9, _CSIS_MAX_ENTITIES@GOTPAGEOFF]
Lloh15:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ge	LBB0_9
; %bb.7:
	add	x2, x19, #16
Lloh16:
	adrp	x1, l_.str.3@PAGE
Lloh17:
	add	x1, x1, l_.str.3@PAGEOFF
	mov	x0, x20
	bl	_of_property_read_u32
Lloh18:
	adrp	x1, l_.str.4@PAGE
Lloh19:
	add	x1, x1, l_.str.4@PAGEOFF
	mov	x0, x20
	bl	_of_property_read_bool
	mov	w21, #0
	ldr	w8, [sp, #8]
	stp	w8, w0, [x19, #8]
	b	LBB0_10
LBB0_8:
	ldr	x2, [x21]
Lloh20:
	adrp	x1, l_.str.2@PAGE
Lloh21:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x21
	bl	_dev_err
	b	LBB0_3
LBB0_9:
Lloh22:
	adrp	x8, _ENXIO@GOTPAGE
Lloh23:
	ldr	x8, [x8, _ENXIO@GOTPAGEOFF]
Lloh24:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_10:
	mov	x0, x20
	bl	_of_node_put
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGotLdr	Lloh13, Lloh14, Lloh15
	.loh AdrpLdrGotLdr	Lloh10, Lloh11, Lloh12
	.loh AdrpAdd	Lloh18, Lloh19
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh22, Lloh23, Lloh24
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"clock-frequency"

	.comm	_DEFAULT_SCLK_CSIS_FREQ,4,2     ; @DEFAULT_SCLK_CSIS_FREQ
l_.str.1:                               ; @.str.1
	.asciz	"bus-width"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.2:                               ; @.str.2
	.asciz	"No port node at %pOF\n"

	.comm	_FIMC_INPUT_MIPI_CSI2_0,8,3     ; @FIMC_INPUT_MIPI_CSI2_0
	.comm	_CSIS_MAX_ENTITIES,8,3          ; @CSIS_MAX_ENTITIES
	.comm	_ENXIO,4,2                      ; @ENXIO
l_.str.3:                               ; @.str.3
	.asciz	"samsung,csis-hs-settle"

l_.str.4:                               ; @.str.4
	.asciz	"samsung,csis-wclk"

	.no_dead_strip	_s5pcsis_parse_dt
.subsections_via_symbols
