	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function sun4i_csi_notifier_init
_sun4i_csi_notifier_init:               ## @sun4i_csi_notifier_init
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r14
	movl	$0, -32(%rbp)
	movq	_V4L2_MBUS_PARALLEL@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, -28(%rbp)
	callq	_v4l2_async_notifier_init
	movl	16(%r14), %edi
	callq	_dev_fwnode
	movq	_FWNODE_GRAPH_ENDPOINT_NEXT@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	xorl	%ebx, %ebx
	movl	%eax, %edi
	xorl	%esi, %esi
	xorl	%edx, %edx
	callq	_fwnode_graph_get_endpoint_by_id
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	leaq	-32(%rbp), %rsi
	movq	%rax, %rdi
	callq	_v4l2_fwnode_endpoint_parse
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.3:
	movl	-32(%rbp), %eax
	movl	%eax, 12(%r14)
	leaq	8(%r14), %rdx
	movq	%r14, %rdi
	movq	%r15, %rsi
	callq	_v4l2_async_notifier_add_fwnode_remote_subdev
	movl	%eax, %ebx
	testl	%eax, %eax
	jne	LBB0_5
## %bb.4:
	movq	_sun4i_csi_notify_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%r14)
	xorl	%ebx, %ebx
LBB0_5:
	movq	%r15, %rdi
	callq	_fwnode_handle_put
	jmp	LBB0_6
LBB0_1:
	movq	_EINVAL@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_6:
	movl	%ebx, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_V4L2_MBUS_PARALLEL,4,2         ## @V4L2_MBUS_PARALLEL
	.comm	_FWNODE_GRAPH_ENDPOINT_NEXT,4,2 ## @FWNODE_GRAPH_ENDPOINT_NEXT
	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_sun4i_csi_notify_ops,4,2       ## @sun4i_csi_notify_ops
	.no_dead_strip	_sun4i_csi_notifier_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function sun4i_csi_notifier_init
_sun4i_csi_notifier_init:               ; @sun4i_csi_notifier_init
	.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
Lloh0:
	adrp	x8, _V4L2_MBUS_PARALLEL@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_MBUS_PARALLEL@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	stp	wzr, w8, [sp, #8]
	bl	_v4l2_async_notifier_init
	ldr	w0, [x19, #16]
	bl	_dev_fwnode
Lloh3:
	adrp	x8, _FWNODE_GRAPH_ENDPOINT_NEXT@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FWNODE_GRAPH_ENDPOINT_NEXT@GOTPAGEOFF]
Lloh5:
	ldr	w3, [x8]
	mov	w1, #0
	mov	w2, #0
	bl	_fwnode_graph_get_endpoint_by_id
	cbz	x0, LBB0_5
; %bb.1:
	mov	x20, x0
	add	x1, sp, #8
	bl	_v4l2_fwnode_endpoint_parse
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.2:
	ldr	w8, [sp, #8]
	str	w8, [x19, #12]
	add	x2, x19, #8
	mov	x0, x19
	mov	x1, x20
	bl	_v4l2_async_notifier_add_fwnode_remote_subdev
	mov	x21, x0
	cbnz	w0, LBB0_4
; %bb.3:
Lloh6:
	adrp	x8, _sun4i_csi_notify_ops@GOTPAGE
Lloh7:
	ldr	x8, [x8, _sun4i_csi_notify_ops@GOTPAGEOFF]
	str	x8, [x19]
LBB0_4:
	mov	x0, x20
	bl	_fwnode_handle_put
	b	LBB0_6
LBB0_5:
Lloh8:
	adrp	x8, _EINVAL@GOTPAGE
Lloh9:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_6:
	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
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.comm	_V4L2_MBUS_PARALLEL,4,2         ; @V4L2_MBUS_PARALLEL
	.comm	_FWNODE_GRAPH_ENDPOINT_NEXT,4,2 ; @FWNODE_GRAPH_ENDPOINT_NEXT
	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_sun4i_csi_notify_ops,4,2       ; @sun4i_csi_notify_ops
	.no_dead_strip	_sun4i_csi_notifier_init
.subsections_via_symbols
