	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function rcar_drif_parse_subdevs
_rcar_drif_parse_subdevs:               ## @rcar_drif_parse_subdevs
	.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	%r13
	pushq	%r12
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %rbx
	leaq	24(%rdi), %r12
	movq	%r12, %rdi
	callq	_v4l2_async_notifier_init
	movq	16(%rbx), %rax
	movl	(%rax), %edi
	callq	_of_fwnode_handle
	xorl	%r14d, %r14d
	movl	%eax, %edi
	xorl	%esi, %esi
	callq	_fwnode_graph_get_next_endpoint
	testq	%rax, %rax
	je	LBB0_6
## %bb.1:
	movq	%rax, %r15
	movq	%rax, %rdi
	callq	_fwnode_graph_get_remote_port_parent
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%rax, %r13
	movq	%rax, 8(%rbx)
	movq	_V4L2_ASYNC_MATCH_FWNODE@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movl	%eax, (%rbx)
	movq	%r12, %rdi
	movq	%rbx, %rsi
	callq	_v4l2_async_notifier_add_subdev
	testl	%eax, %eax
	je	LBB0_5
## %bb.4:
	movl	%eax, %r12d
	movq	%r13, %rdi
	callq	_fwnode_handle_put
	movl	%r12d, %r14d
	jmp	LBB0_6
LBB0_2:
	movq	16(%rbx), %rdi
	leaq	L_.str(%rip), %rsi
	callq	_dev_warn
	movq	%r15, %rdi
	callq	_fwnode_handle_put
	movq	_EINVAL@GOTPCREL(%rip), %rax
	xorl	%r14d, %r14d
	subl	(%rax), %r14d
	jmp	LBB0_6
LBB0_5:
	movq	%rbx, %rdi
	movq	%r15, %rsi
	callq	_rcar_drif_get_ep_properties
	movq	%r13, %rdi
	callq	_fwnode_handle_put
	movq	%r15, %rdi
	callq	_fwnode_handle_put
LBB0_6:
	movl	%r14d, %eax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad remote port parent\n"

	.comm	_EINVAL,4,2                     ## @EINVAL
	.comm	_V4L2_ASYNC_MATCH_FWNODE,4,2    ## @V4L2_ASYNC_MATCH_FWNODE
	.no_dead_strip	_rcar_drif_parse_subdevs
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function rcar_drif_parse_subdevs
_rcar_drif_parse_subdevs:               ; @rcar_drif_parse_subdevs
	.cfi_startproc
; %bb.0:
	stp	x22, x21, [sp, #-48]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 48
	stp	x20, x19, [sp, #16]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #32]             ; 16-byte Folded Spill
	add	x29, sp, #32
	.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
	add	x21, x0, #24
	mov	x0, x21
	bl	_v4l2_async_notifier_init
	ldr	x8, [x19, #16]
	ldr	w0, [x8]
	bl	_of_fwnode_handle
	mov	x1, #0
	bl	_fwnode_graph_get_next_endpoint
	cbz	x0, LBB0_4
; %bb.1:
	mov	x20, x0
	bl	_fwnode_graph_get_remote_port_parent
	cbz	x0, LBB0_5
; %bb.2:
	mov	x22, x0
	str	x0, [x19, #8]
Lloh0:
	adrp	x8, _V4L2_ASYNC_MATCH_FWNODE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _V4L2_ASYNC_MATCH_FWNODE@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	str	w8, [x19]
	mov	x0, x21
	mov	x1, x19
	bl	_v4l2_async_notifier_add_subdev
	mov	x21, x0
	cbz	w0, LBB0_6
; %bb.3:
	mov	x0, x22
	b	LBB0_7
LBB0_4:
	mov	w21, #0
	b	LBB0_8
LBB0_5:
	ldr	x0, [x19, #16]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_dev_warn
	mov	x0, x20
	bl	_fwnode_handle_put
Lloh5:
	adrp	x8, _EINVAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _EINVAL@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	neg	w21, w8
	b	LBB0_8
LBB0_6:
	mov	x0, x19
	mov	x1, x20
	bl	_rcar_drif_get_ep_properties
	mov	x0, x22
	bl	_fwnode_handle_put
	mov	x0, x20
LBB0_7:
	bl	_fwnode_handle_put
LBB0_8:
	mov	x0, x21
	ldp	x29, x30, [sp, #32]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #16]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp], #48             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh3, Lloh4
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad remote port parent\n"

	.comm	_EINVAL,4,2                     ; @EINVAL
	.comm	_V4L2_ASYNC_MATCH_FWNODE,4,2    ; @V4L2_ASYNC_MATCH_FWNODE
	.no_dead_strip	_rcar_drif_parse_subdevs
.subsections_via_symbols
