	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_fwnode_parse_link         ## -- Begin function v4l2_fwnode_parse_link
	.p2align	4, 0x90
_v4l2_fwnode_parse_link:                ## @v4l2_fwnode_parse_link
	.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
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r14
	movq	%rdi, %r15
	callq	_is_of_node
	testq	%rax, %rax
	leaq	L_.str.1(%rip), %rax
	leaq	L_.str(%rip), %r12
	cmoveq	%rax, %r12
	movq	%r14, %rdi
	xorl	%esi, %esi
	movl	$32, %edx
	callq	_memset
	movq	%r15, %rdi
	callq	_fwnode_get_parent
	movq	%rax, %rbx
	leaq	24(%r14), %rdx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_fwnode_property_read_u32
	movq	%rbx, %rdi
	callq	_fwnode_get_next_parent
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_is_of_node
	testq	%rax, %rax
	je	LBB0_3
## %bb.1:
	movq	%rbx, %rdi
	callq	_to_of_node
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	callq	_of_node_name_eq
	testq	%rax, %rax
	je	LBB0_3
## %bb.2:
	movq	%rbx, %rdi
	callq	_fwnode_get_next_parent
	movq	%rax, %rbx
LBB0_3:
	movq	%rbx, 16(%r14)
	movq	%r15, %rdi
	callq	_fwnode_graph_get_remote_endpoint
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %rdi
	callq	_fwnode_get_parent
	movq	%rax, %rbx
	leaq	8(%r14), %rdx
	movq	%rax, %rdi
	movq	%r12, %rsi
	callq	_fwnode_property_read_u32
	movq	%rbx, %rdi
	callq	_fwnode_get_next_parent
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_is_of_node
	testq	%rax, %rax
	je	LBB0_8
## %bb.6:
	movq	%rbx, %rdi
	callq	_to_of_node
	leaq	L_.str.2(%rip), %rsi
	movl	%eax, %edi
	callq	_of_node_name_eq
	testq	%rax, %rax
	je	LBB0_8
## %bb.7:
	movq	%rbx, %rdi
	callq	_fwnode_get_next_parent
	movq	%rax, %rbx
LBB0_8:
	movq	%rbx, (%r14)
	xorl	%ebx, %ebx
	jmp	LBB0_9
LBB0_4:
	xorl	%ebx, %ebx
	xorl	%edi, %edi
	callq	_fwnode_handle_put
	movq	_ENOLINK@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
LBB0_9:
	movl	%ebx, %eax
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"reg"

L_.str.1:                               ## @.str.1
	.asciz	"port"

L_.str.2:                               ## @.str.2
	.asciz	"ports"

	.comm	_ENOLINK,4,2                    ## @ENOLINK
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_v4l2_fwnode_parse_link         ; -- Begin function v4l2_fwnode_parse_link
	.p2align	2
_v4l2_fwnode_parse_link:                ; @v4l2_fwnode_parse_link
	.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, x1
	mov	x21, x0
	bl	_is_of_node
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
Lloh2:
	adrp	x9, l_.str.1@PAGE
Lloh3:
	add	x9, x9, l_.str.1@PAGEOFF
	cmp	x0, #0
	csel	x20, x9, x8, eq
	mov	x0, x19
	mov	w1, #0
	mov	w2, #32
	bl	_memset
	mov	x0, x21
	bl	_fwnode_get_parent
	mov	x22, x0
	add	x2, x19, #24
	mov	x1, x20
	bl	_fwnode_property_read_u32
	mov	x0, x22
	bl	_fwnode_get_next_parent
	mov	x22, x0
	bl	_is_of_node
	cbz	x0, LBB0_3
; %bb.1:
	mov	x0, x22
	bl	_to_of_node
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_of_node_name_eq
	cbz	x0, LBB0_3
; %bb.2:
	mov	x0, x22
	bl	_fwnode_get_next_parent
	mov	x22, x0
LBB0_3:
	str	x22, [x19, #16]
	mov	x0, x21
	bl	_fwnode_graph_get_remote_endpoint
	cbz	x0, LBB0_8
; %bb.4:
	bl	_fwnode_get_parent
	mov	x21, x0
	add	x2, x19, #8
	mov	x1, x20
	bl	_fwnode_property_read_u32
	mov	x0, x21
	bl	_fwnode_get_next_parent
	mov	x20, x0
	bl	_is_of_node
	cbz	x0, LBB0_7
; %bb.5:
	mov	x0, x20
	bl	_to_of_node
Lloh6:
	adrp	x1, l_.str.2@PAGE
Lloh7:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_of_node_name_eq
	cbz	x0, LBB0_7
; %bb.6:
	mov	x0, x20
	bl	_fwnode_get_next_parent
	mov	x20, x0
LBB0_7:
	mov	w0, #0
	str	x20, [x19]
	b	LBB0_9
LBB0_8:
	bl	_fwnode_handle_put
Lloh8:
	adrp	x8, _ENOLINK@GOTPAGE
Lloh9:
	ldr	x8, [x8, _ENOLINK@GOTPAGEOFF]
Lloh10:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_9:
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"reg"

l_.str.1:                               ; @.str.1
	.asciz	"port"

l_.str.2:                               ; @.str.2
	.asciz	"ports"

	.comm	_ENOLINK,4,2                    ; @ENOLINK
.subsections_via_symbols
