	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_graph_get_remote_node       ## -- Begin function of_graph_get_remote_node
	.p2align	4, 0x90
_of_graph_get_remote_node:              ## @of_graph_get_remote_node
	.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
	movl	%edx, %r15d
	movl	%esi, %r13d
	movq	%rdi, %r12
	callq	_of_graph_get_endpoint_by_regs
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_of_graph_get_remote_port_parent
	movq	%rax, %r14
	movq	%rbx, %rdi
	callq	_of_node_put
	testq	%r14, %r14
	je	LBB0_3
## %bb.4:
	movq	%r14, %rdi
	callq	_of_device_is_available
	testl	%eax, %eax
	jne	LBB0_6
## %bb.5:
	leaq	L_.str.2(%rip), %rdi
	xorl	%eax, %eax
	callq	_pr_debug
	movq	%r14, %rdi
	callq	_of_node_put
	xorl	%r14d, %r14d
	jmp	LBB0_6
LBB0_1:
	leaq	L_.str(%rip), %rdi
	xorl	%r14d, %r14d
	movl	%r13d, %esi
	movl	%r15d, %edx
	movq	%r12, %rcx
	xorl	%eax, %eax
	callq	_pr_debug
	jmp	LBB0_6
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	xorl	%r14d, %r14d
	xorl	%eax, %eax
	callq	_pr_debug
LBB0_6:
	movq	%r14, %rax
	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	"no valid endpoint (%d, %d) for node %pOF\n"

L_.str.1:                               ## @.str.1
	.asciz	"no valid remote node\n"

L_.str.2:                               ## @.str.2
	.asciz	"not available for remote node\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_of_graph_get_remote_node       ; -- Begin function of_graph_get_remote_node
	.p2align	2
_of_graph_get_remote_node:              ; @of_graph_get_remote_node
	.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	x20, x2
	mov	x19, x1
	mov	x21, x0
	bl	_of_graph_get_endpoint_by_regs
	cbz	x0, LBB0_4
; %bb.1:
	mov	x22, x0
	bl	_of_graph_get_remote_port_parent
	mov	x19, x0
	mov	x0, x22
	bl	_of_node_put
	cbz	x19, LBB0_6
; %bb.2:
	mov	x0, x19
	bl	_of_device_is_available
	cbnz	w0, LBB0_7
; %bb.3:
Lloh0:
	adrp	x0, l_.str.2@PAGE
Lloh1:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_pr_debug
	mov	x0, x19
	bl	_of_node_put
	b	LBB0_5
LBB0_4:
	stp	x20, x21, [sp, #8]
	str	x19, [sp]
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_pr_debug
LBB0_5:
	mov	x19, #0
	b	LBB0_7
LBB0_6:
Lloh4:
	adrp	x0, l_.str.1@PAGE
Lloh5:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_pr_debug
LBB0_7:
	mov	x0, x19
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"no valid endpoint (%d, %d) for node %pOF\n"

l_.str.1:                               ; @.str.1
	.asciz	"no valid remote node\n"

l_.str.2:                               ; @.str.2
	.asciz	"not available for remote node\n"

.subsections_via_symbols
