	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function find_target
_find_target:                           ## @find_target
	.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
	subq	$16, %rsp
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	leaq	L_.str(%rip), %rsi
	leaq	-20(%rbp), %rdx
	callq	_of_property_read_u32
	testl	%eax, %eax
	je	LBB0_1
## %bb.3:
	leaq	L_.str.2(%rip), %rsi
	leaq	-32(%rbp), %rdx
	movq	%r14, %rdi
	callq	_of_property_read_string
	testl	%eax, %eax
	je	LBB0_4
## %bb.6:
	leaq	L_.str.4(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_7
LBB0_1:
	movl	-20(%rbp), %edi
	callq	_of_find_node_by_phandle
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.2:
	movl	-20(%rbp), %edx
	leaq	L_.str.1(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_pr_err
	jmp	LBB0_7
LBB0_4:
	movq	-32(%rbp), %rdi
	callq	_of_find_node_by_path
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_7
## %bb.5:
	movq	-32(%rbp), %rdx
	leaq	L_.str.3(%rip), %rdi
	xorl	%ebx, %ebx
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_pr_err
LBB0_7:
	movq	%rbx, %rax
	addq	$16, %rsp
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"target"

L_.str.1:                               ## @.str.1
	.asciz	"find target, node: %pOF, phandle 0x%x not found\n"

L_.str.2:                               ## @.str.2
	.asciz	"target-path"

L_.str.3:                               ## @.str.3
	.asciz	"find target, node: %pOF, path '%s' not found\n"

L_.str.4:                               ## @.str.4
	.asciz	"find target, node: %pOF, no target property\n"

	.no_dead_strip	_find_target
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function find_target
_find_target:                           ; @find_target
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	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
	mov	x19, x0
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	add	x2, sp, #20
	bl	_of_property_read_u32
	cbz	w0, LBB0_3
; %bb.1:
Lloh2:
	adrp	x1, l_.str.2@PAGE
Lloh3:
	add	x1, x1, l_.str.2@PAGEOFF
	add	x2, sp, #24
	mov	x0, x19
	bl	_of_property_read_string
	cbz	w0, LBB0_5
; %bb.2:
Lloh4:
	adrp	x0, l_.str.4@PAGE
Lloh5:
	add	x0, x0, l_.str.4@PAGEOFF
	b	LBB0_7
LBB0_3:
	ldr	w0, [sp, #20]
	bl	_of_find_node_by_phandle
	cbnz	x0, LBB0_8
; %bb.4:
	ldr	w8, [sp, #20]
	str	x8, [sp]
Lloh6:
	adrp	x0, l_.str.1@PAGE
Lloh7:
	add	x0, x0, l_.str.1@PAGEOFF
	b	LBB0_7
LBB0_5:
	ldr	x0, [sp, #24]
	bl	_of_find_node_by_path
	cbnz	x0, LBB0_8
; %bb.6:
	ldr	x8, [sp, #24]
	str	x8, [sp]
Lloh8:
	adrp	x0, l_.str.3@PAGE
Lloh9:
	add	x0, x0, l_.str.3@PAGEOFF
LBB0_7:
	mov	x1, x19
	bl	_pr_err
	mov	x0, #0
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"target"

l_.str.1:                               ; @.str.1
	.asciz	"find target, node: %pOF, phandle 0x%x not found\n"

l_.str.2:                               ; @.str.2
	.asciz	"target-path"

l_.str.3:                               ; @.str.3
	.asciz	"find target, node: %pOF, path '%s' not found\n"

l_.str.4:                               ; @.str.4
	.asciz	"find target, node: %pOF, no target property\n"

	.no_dead_strip	_find_target
.subsections_via_symbols
