	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtoverlay_find_symbol          ## -- Begin function dtoverlay_find_symbol
	.p2align	4, 0x90
_dtoverlay_find_symbol:                 ## @dtoverlay_find_symbol
	.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	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rsi, %r15
	movq	%rdi, %r14
	callq	_dtoverlay_get_alias
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	movq	%rax, %rbx
	movq	%rax, %rdi
	callq	_strlen
	movl	%eax, %edx
	movl	%eax, -28(%rbp)
LBB0_7:
	movl	(%r14), %edi
	movq	%rbx, %rsi
	callq	_fdt_path_offset_namelen
	jmp	LBB0_8
LBB0_2:
	movl	(%r14), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fdt_path_offset
	testl	%eax, %eax
	js	LBB0_3
## %bb.5:
	movl	(%r14), %edi
	leaq	-28(%rbp), %rcx
	movl	%eax, %esi
	movq	%r15, %rdx
	callq	_fdt_getprop
	movl	-28(%rbp), %edx
	testl	%edx, %edx
	js	LBB0_4
## %bb.6:
	movq	%rax, %rbx
	jmp	LBB0_7
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_dtoverlay_error
LBB0_4:
	movq	_FDT_ERR_NOTFOUND@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"/__symbols__"

L_.str.1:                               ## @.str.1
	.asciz	"No symbols found"

	.comm	_FDT_ERR_NOTFOUND,4,2           ## @FDT_ERR_NOTFOUND
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtoverlay_find_symbol          ; -- Begin function dtoverlay_find_symbol
	.p2align	2
_dtoverlay_find_symbol:                 ; @dtoverlay_find_symbol
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #64
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w21, -40
	.cfi_offset w22, -48
	mov	x20, x1
	mov	x19, x0
	bl	_dtoverlay_get_alias
	cbz	x0, LBB0_3
; %bb.1:
	mov	x21, x0
	bl	_strlen
	mov	x2, x0
	str	w0, [sp, #12]
LBB0_2:
	ldr	w0, [x19]
	mov	x1, x21
	bl	_fdt_path_offset_namelen
	b	LBB0_8
LBB0_3:
	ldr	w0, [x19]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fdt_path_offset
	tbnz	w0, #31, LBB0_6
; %bb.4:
	mov	x1, x0
	ldr	w0, [x19]
	add	x3, sp, #12
	mov	x2, x20
	bl	_fdt_getprop
	ldr	w2, [sp, #12]
	tbnz	w2, #31, LBB0_7
; %bb.5:
	mov	x21, x0
	b	LBB0_2
LBB0_6:
Lloh2:
	adrp	x0, l_.str.1@PAGE
Lloh3:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dtoverlay_error
LBB0_7:
Lloh4:
	adrp	x8, _FDT_ERR_NOTFOUND@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FDT_ERR_NOTFOUND@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_8:
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #64
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/__symbols__"

l_.str.1:                               ; @.str.1
	.asciz	"No symbols found"

	.comm	_FDT_ERR_NOTFOUND,4,2           ; @FDT_ERR_NOTFOUND
.subsections_via_symbols
