	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rvin_parallel_init
_rvin_parallel_init:                    ## @rvin_parallel_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	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %rbx
	callq	_v4l2_async_notifier_init
	movl	32(%rbx), %edi
	movq	_rvin_parallel_parse_v4l2@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	%rbx, %rsi
	movl	$4, %edx
	xorl	%ecx, %ecx
	callq	_v4l2_async_notifier_parse_fwnode_endpoints_by_port
	testl	%eax, %eax
	je	LBB0_1
LBB0_5:
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
LBB0_1:
	movq	16(%rbx), %rax
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movl	(%rax), %edi
	callq	_to_of_node
	leaq	L_.str(%rip), %rsi
	movq	%rbx, %rdi
	movl	%eax, %edx
	callq	_vin_dbg
	movq	_rvin_parallel_notify_ops@GOTPCREL(%rip), %rax
	movq	%rax, (%rbx)
	leaq	8(%rbx), %rdi
	movq	%rbx, %rsi
	callq	_v4l2_async_notifier_register
	movl	%eax, %r14d
	xorl	%eax, %eax
	testl	%r14d, %r14d
	jns	LBB0_5
## %bb.4:
	leaq	L_.str.1(%rip), %rsi
	movq	%rbx, %rdi
	callq	_vin_err
	movq	%rbx, %rdi
	callq	_v4l2_async_notifier_cleanup
	movl	%r14d, %eax
	jmp	LBB0_5
LBB0_2:
	movq	24(%rbx), %rcx
	movq	_ENODEV@GOTPCREL(%rip), %rdx
	xorl	%esi, %esi
	xorl	%eax, %eax
	subl	(%rdx), %eax
	cmpq	$0, (%rcx)
	cmovnel	%esi, %eax
	jmp	LBB0_5
	.cfi_endproc
                                        ## -- End function
	.comm	_rvin_parallel_parse_v4l2,4,2   ## @rvin_parallel_parse_v4l2
	.comm	_ENODEV,4,2                     ## @ENODEV
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Found parallel subdevice %pOF\n"

	.comm	_rvin_parallel_notify_ops,4,2   ## @rvin_parallel_notify_ops
L_.str.1:                               ## @.str.1
	.asciz	"Notifier registration failed\n"

	.no_dead_strip	_rvin_parallel_init
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rvin_parallel_init
_rvin_parallel_init:                    ; @rvin_parallel_init
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
	mov	x19, x0
	bl	_v4l2_async_notifier_init
	ldr	w0, [x19, #32]
Lloh0:
	adrp	x8, _rvin_parallel_parse_v4l2@GOTPAGE
Lloh1:
	ldr	x8, [x8, _rvin_parallel_parse_v4l2@GOTPAGEOFF]
Lloh2:
	ldr	w4, [x8]
	mov	x1, x19
	mov	w2, #4
	mov	w3, #0
	bl	_v4l2_async_notifier_parse_fwnode_endpoints_by_port
	mov	x20, x0
	cbz	w0, LBB0_2
LBB0_1:
	mov	x0, x20
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
LBB0_2:
	ldr	x8, [x19, #16]
	cbz	x8, LBB0_5
; %bb.3:
	ldr	w0, [x8]
	bl	_to_of_node
	mov	x2, x0
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	mov	x0, x19
	bl	_vin_dbg
Lloh5:
	adrp	x8, _rvin_parallel_notify_ops@GOTPAGE
Lloh6:
	ldr	x8, [x8, _rvin_parallel_notify_ops@GOTPAGEOFF]
	mov	x0, x19
	str	x8, [x0], #8
	mov	x1, x19
	bl	_v4l2_async_notifier_register
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	w20, #0
	b	LBB0_1
LBB0_5:
	ldr	x8, [x19, #24]
	ldr	x8, [x8]
Lloh7:
	adrp	x9, _ENODEV@GOTPAGE
Lloh8:
	ldr	x9, [x9, _ENODEV@GOTPAGEOFF]
Lloh9:
	ldr	w9, [x9]
	cmp	x8, #0
	csneg	w20, wzr, w9, ne
	b	LBB0_1
LBB0_6:
	mov	x20, x0
Lloh10:
	adrp	x1, l_.str.1@PAGE
Lloh11:
	add	x1, x1, l_.str.1@PAGEOFF
	mov	x0, x19
	bl	_vin_err
	mov	x0, x19
	bl	_v4l2_async_notifier_cleanup
	b	LBB0_1
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_rvin_parallel_parse_v4l2,4,2   ; @rvin_parallel_parse_v4l2
	.comm	_ENODEV,4,2                     ; @ENODEV
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Found parallel subdevice %pOF\n"

	.comm	_rvin_parallel_notify_ops,4,2   ; @rvin_parallel_notify_ops
l_.str.1:                               ; @.str.1
	.asciz	"Notifier registration failed\n"

	.no_dead_strip	_rvin_parallel_init
.subsections_via_symbols
