	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function csi2rx_parse_dt
_csi2rx_parse_dt:                       ## @csi2rx_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	%rdi, %r14
	xorps	%xmm0, %xmm0
	movaps	%xmm0, -64(%rbp)
	movq	$0, -48(%rbp)
	movq	40(%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
	movq	%rax, %r12
	leaq	-64(%rbp), %rsi
	movq	%rax, %rdi
	callq	_v4l2_fwnode_endpoint_parse
	testl	%eax, %eax
	je	LBB0_4
## %bb.3:
	movl	%eax, %ebx
	movq	40(%r14), %rdi
	leaq	L_.str(%rip), %rsi
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r15, %rdi
	callq	_of_node_put
	jmp	LBB0_14
LBB0_4:
	movq	-64(%rbp), %rdx
	movq	_V4L2_MBUS_CSI2_DPHY@GOTPCREL(%rip), %rax
	cmpq	(%rax), %rdx
	jne	LBB0_5
## %bb.7:
	movl	48(%r14), %edi
	movl	-48(%rbp), %esi
	movl	$4, %edx
	callq	_memcpy
	movq	-56(%rbp), %rdx
	movq	%rdx, (%r14)
	cmpq	8(%r14), %rdx
	jle	LBB0_9
## %bb.8:
	movq	40(%r14), %rdi
	leaq	L_.str.2(%rip), %rsi
	jmp	LBB0_6
LBB0_5:
	movq	40(%r14), %rdi
	leaq	L_.str.1(%rip), %rsi
LBB0_6:
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dev_err
	movq	%r15, %rdi
	callq	_of_node_put
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_14:
	movl	%ebx, %eax
	addq	$32, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_9:
	movq	%r12, %rdi
	callq	_fwnode_graph_get_remote_port_parent
	leaq	28(%r14), %r12
	movl	%eax, 28(%r14)
	movq	_V4L2_ASYNC_MATCH_FWNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, 32(%r14)
	movq	%r15, %rdi
	callq	_of_node_put
	leaq	16(%r14), %r15
	movq	%r15, %rdi
	callq	_v4l2_async_notifier_init
	movq	%r15, %rdi
	movq	%r12, %rsi
	callq	_v4l2_async_notifier_add_subdev
	testl	%eax, %eax
	je	LBB0_11
## %bb.10:
	movl	%eax, %ebx
	movl	(%r12), %edi
	callq	_fwnode_handle_put
	jmp	LBB0_14
LBB0_11:
	movq	_csi2rx_notifier_ops@GOTPCREL(%rip), %rax
	movq	%rax, 16(%r14)
	addq	$24, %r14
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_v4l2_async_subdev_notifier_register
	testl	%eax, %eax
	je	LBB0_12
## %bb.13:
	movl	%eax, %ebx
	movq	%r15, %rdi
	callq	_v4l2_async_notifier_cleanup
	jmp	LBB0_14
LBB0_12:
	xorl	%ebx, %ebx
	jmp	LBB0_14
	.cfi_endproc
                                        ## -- End function
	.comm	_EINVAL,4,2                     ## @EINVAL
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Could not parse v4l2 endpoint\n"

	.comm	_V4L2_MBUS_CSI2_DPHY,8,3        ## @V4L2_MBUS_CSI2_DPHY
L_.str.1:                               ## @.str.1
	.asciz	"Unsupported media bus type: 0x%x\n"

L_.str.2:                               ## @.str.2
	.asciz	"Unsupported number of data-lanes: %d\n"

	.comm	_V4L2_ASYNC_MATCH_FWNODE,4,2    ## @V4L2_ASYNC_MATCH_FWNODE
	.comm	_csi2rx_notifier_ops,4,2        ## @csi2rx_notifier_ops
	.no_dead_strip	_csi2rx_parse_dt
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function csi2rx_parse_dt
_csi2rx_parse_dt:                       ; @csi2rx_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, x0
	stp	xzr, xzr, [sp, #8]
	str	xzr, [sp, #24]
	ldr	x8, [x0, #40]
	ldr	w0, [x8]
	mov	w1, #0
	mov	w2, #0
	bl	_of_graph_get_endpoint_by_regs
	cbz	x0, LBB0_8
; %bb.1:
	mov	x20, x0
	bl	_of_fwnode_handle
	mov	x22, x0
	add	x1, sp, #8
	bl	_v4l2_fwnode_endpoint_parse
	cbz	w0, LBB0_3
; %bb.2:
	mov	x21, x0
	ldr	x0, [x19, #40]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_err
	mov	x0, x20
	bl	_of_node_put
	b	LBB0_9
LBB0_3:
	ldr	x8, [sp, #8]
Lloh2:
	adrp	x9, _V4L2_MBUS_CSI2_DPHY@GOTPAGE
Lloh3:
	ldr	x9, [x9, _V4L2_MBUS_CSI2_DPHY@GOTPAGEOFF]
Lloh4:
	ldr	x9, [x9]
	cmp	x8, x9
	b.ne	LBB0_6
; %bb.4:
	ldr	w0, [x19, #48]
	ldr	w1, [sp, #24]
	mov	w2, #4
	bl	_memcpy
	ldr	x8, [sp, #16]
	str	x8, [x19]
	ldr	x9, [x19, #8]
	cmp	x8, x9
	b.le	LBB0_10
; %bb.5:
	ldr	x0, [x19, #40]
	str	x8, [sp]
Lloh5:
	adrp	x1, l_.str.2@PAGE
Lloh6:
	add	x1, x1, l_.str.2@PAGEOFF
	b	LBB0_7
LBB0_6:
	ldr	x0, [x19, #40]
	str	x8, [sp]
Lloh7:
	adrp	x1, l_.str.1@PAGE
Lloh8:
	add	x1, x1, l_.str.1@PAGEOFF
LBB0_7:
	bl	_dev_err
	mov	x0, x20
	bl	_of_node_put
LBB0_8:
Lloh9:
	adrp	x8, _EINVAL@GOTPAGE
Lloh10:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh11:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_9:
	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
LBB0_10:
	mov	x0, x22
	bl	_fwnode_graph_get_remote_port_parent
	mov	x22, x19
	str	w0, [x22, #28]!
Lloh12:
	adrp	x8, _V4L2_ASYNC_MATCH_FWNODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _V4L2_ASYNC_MATCH_FWNODE@GOTPAGEOFF]
Lloh14:
	ldr	w8, [x8]
	str	w8, [x22, #4]
	mov	x0, x20
	bl	_of_node_put
	sub	x20, x22, #12
	mov	x0, x20
	bl	_v4l2_async_notifier_init
	mov	x0, x20
	mov	x1, x22
	bl	_v4l2_async_notifier_add_subdev
	cbz	w0, LBB0_12
; %bb.11:
	mov	x21, x0
	ldr	w0, [x22]
	bl	_fwnode_handle_put
	b	LBB0_9
LBB0_12:
Lloh15:
	adrp	x8, _csi2rx_notifier_ops@GOTPAGE
Lloh16:
	ldr	x8, [x8, _csi2rx_notifier_ops@GOTPAGEOFF]
	str	x8, [x19, #16]
	add	x0, x19, #24
	mov	x1, x20
	bl	_v4l2_async_subdev_notifier_register
	mov	x21, x0
	cbz	w0, LBB0_9
; %bb.13:
	mov	x0, x20
	bl	_v4l2_async_notifier_cleanup
	b	LBB0_9
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh9, Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGot	Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_EINVAL,4,2                     ; @EINVAL
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Could not parse v4l2 endpoint\n"

	.comm	_V4L2_MBUS_CSI2_DPHY,8,3        ; @V4L2_MBUS_CSI2_DPHY
l_.str.1:                               ; @.str.1
	.asciz	"Unsupported media bus type: 0x%x\n"

l_.str.2:                               ; @.str.2
	.asciz	"Unsupported number of data-lanes: %d\n"

	.comm	_V4L2_ASYNC_MATCH_FWNODE,4,2    ; @V4L2_ASYNC_MATCH_FWNODE
	.comm	_csi2rx_notifier_ops,4,2        ; @csi2rx_notifier_ops
	.no_dead_strip	_csi2rx_parse_dt
.subsections_via_symbols
