	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcsi2_parse_dt
_rcsi2_parse_dt:                        ## @rcsi2_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	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$0, -40(%rbp)
	movq	24(%rdi), %rax
	movl	(%rax), %edi
	xorl	%ebx, %ebx
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_of_graph_get_endpoint_by_regs
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_of_fwnode_handle
	leaq	-40(%rbp), %rsi
	movl	%eax, %edi
	callq	_v4l2_fwnode_endpoint_parse
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movq	24(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
	callq	_dev_err
	movq	%r15, %rdi
	callq	_of_node_put
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_1:
	movq	24(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_err
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_4:
	leaq	-40(%rbp), %rsi
	movq	%r14, %rdi
	callq	_rcsi2_parse_v4l2
	testl	%eax, %eax
	je	LBB0_6
## %bb.5:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_of_node_put
	jmp	LBB0_11
LBB0_6:
	movq	%r15, %rdi
	callq	_of_fwnode_handle
	movl	%eax, %edi
	callq	_fwnode_graph_get_remote_endpoint
	leaq	12(%r14), %r12
	movl	%eax, 12(%r14)
	movq	_V4L2_ASYNC_MATCH_FWNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 16(%r14)
	movq	%r15, %rdi
	callq	_of_node_put
	movq	%r14, %rdi
	callq	_v4l2_async_notifier_init
	movq	%r14, %rdi
	movq	%r12, %rsi
	callq	_v4l2_async_notifier_add_subdev
	testl	%eax, %eax
	je	LBB0_8
## %bb.7:
	movl	%eax, %ebx
	movl	(%r12), %edi
	callq	_fwnode_handle_put
	jmp	LBB0_11
LBB0_8:
	movq	_rcar_csi2_notify_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%r14)
	movq	24(%r14), %rbx
	movl	12(%r14), %edi
	callq	_to_of_node
	leaq	L_.str.2(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_dev_dbg
	leaq	8(%r14), %rdi
	movq	%r14, %rsi
	callq	_v4l2_async_subdev_notifier_register
	testl	%eax, %eax
	je	LBB0_9
## %bb.10:
	movl	%eax, %ebx
	movq	%r14, %rdi
	callq	_v4l2_async_notifier_cleanup
	jmp	LBB0_11
LBB0_9:
	xorl	%ebx, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$16, %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	"Not connected to subdevice\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
L_.str.1:                               ## @.str.1
	.asciz	"Could not parse v4l2 endpoint\n"

	.comm	_V4L2_ASYNC_MATCH_FWNODE,4,2    ## @V4L2_ASYNC_MATCH_FWNODE
	.comm	_rcar_csi2_notify_ops,4,2       ## @rcar_csi2_notify_ops
L_.str.2:                               ## @.str.2
	.asciz	"Found '%pOF'\n"

	.no_dead_strip	_rcsi2_parse_dt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcsi2_parse_dt
_rcsi2_parse_dt:                        ; @rcsi2_parse_dt
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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
	str	wzr, [sp, #8]
	ldr	x8, [x0, #24]
	ldr	w0, [x8]
	mov	w1, #0
	mov	w2, #0
	bl	_of_graph_get_endpoint_by_regs
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	bl	_of_fwnode_handle
	add	x1, sp, #8
	bl	_v4l2_fwnode_endpoint_parse
	cbz	w0, LBB0_6
; %bb.2:
	ldr	x0, [x19, #24]
Lloh0:
	adrp	x1, l_.str.1@PAGE
Lloh1:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_dev_err
	mov	x0, x20
	bl	_of_node_put
	b	LBB0_4
LBB0_3:
	ldr	x0, [x19, #24]
Lloh2:
	adrp	x1, l_.str@PAGE
Lloh3:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
LBB0_4:
Lloh4:
	adrp	x8, _EINVAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_5:
	mov	x0, x21
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
LBB0_6:
	add	x1, sp, #8
	mov	x0, x19
	bl	_rcsi2_parse_v4l2
	cbz	w0, LBB0_8
; %bb.7:
	mov	x21, x0
	mov	x0, x20
	bl	_of_node_put
	b	LBB0_5
LBB0_8:
	mov	x0, x20
	bl	_of_fwnode_handle
	bl	_fwnode_graph_get_remote_endpoint
	mov	x22, x19
	str	w0, [x22, #12]!
Lloh7:
	adrp	x8, _V4L2_ASYNC_MATCH_FWNODE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _V4L2_ASYNC_MATCH_FWNODE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	str	w8, [x19, #16]
	mov	x0, x20
	bl	_of_node_put
	mov	x0, x19
	bl	_v4l2_async_notifier_init
	mov	x0, x19
	mov	x1, x22
	bl	_v4l2_async_notifier_add_subdev
	cbz	w0, LBB0_10
; %bb.9:
	mov	x21, x0
	ldr	w0, [x22]
	bl	_fwnode_handle_put
	b	LBB0_5
LBB0_10:
Lloh10:
	adrp	x8, _rcar_csi2_notify_ops@GOTPAGE
Lloh11:
	ldr	x8, [x8, _rcar_csi2_notify_ops@GOTPAGEOFF]
	str	x8, [x19]
	ldr	x20, [x19, #24]
	ldr	w0, [x19, #12]
	bl	_to_of_node
	mov	x2, x0
Lloh12:
	adrp	x1, l_.str.2@PAGE
Lloh13:
	add	x1, x1, l_.str.2@PAGEOFF
	mov	x0, x20
	bl	_dev_dbg
	add	x0, x19, #8
	mov	x1, x19
	bl	_v4l2_async_subdev_notifier_register
	mov	x21, x0
	cbz	w0, LBB0_5
; %bb.11:
	mov	x0, x19
	bl	_v4l2_async_notifier_cleanup
	b	LBB0_5
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Not connected to subdevice\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
l_.str.1:                               ; @.str.1
	.asciz	"Could not parse v4l2 endpoint\n"

	.comm	_V4L2_ASYNC_MATCH_FWNODE,4,2    ; @V4L2_ASYNC_MATCH_FWNODE
	.comm	_rcar_csi2_notify_ops,4,2       ; @rcar_csi2_notify_ops
l_.str.2:                               ; @.str.2
	.asciz	"Found '%pOF'\n"

	.no_dead_strip	_rcsi2_parse_dt
.subsections_via_symbols
