	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function overlay_get_target
_overlay_get_target:                    ## @overlay_get_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	%r15
	pushq	%r14
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %rbx
	movq	%rdi, %r14
	movq	%rsi, %rdi
	movl	%edx, %esi
	callq	_overlay_get_target_phandle
	testq	%rax, %rax
	je	LBB0_5
## %bb.1:
	cmpq	$-1, %rax
	jne	LBB0_4
## %bb.2:
	movq	_FDT_ERR_BADPHANDLE@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_9
LBB0_5:
	leaq	L_.str(%rip), %rdx
	leaq	-28(%rbp), %rcx
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_fdt_getprop
	testq	%rax, %rax
	je	LBB0_6
## %bb.8:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_fdt_path_offset
	jmp	LBB0_9
LBB0_4:
	movq	%r14, %rdi
	movq	%rax, %rsi
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_fdt_node_offset_by_phandle     ## TAILCALL
LBB0_6:
	movl	-28(%rbp), %eax
	movq	_FDT_ERR_NOTFOUND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_9
## %bb.7:
	movq	_FDT_ERR_BADOVERLAY@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_9:
	addq	$8, %rsp
	popq	%rbx
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FDT_ERR_BADPHANDLE,4,2         ## @FDT_ERR_BADPHANDLE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"target-path"

	.comm	_FDT_ERR_NOTFOUND,4,2           ## @FDT_ERR_NOTFOUND
	.comm	_FDT_ERR_BADOVERLAY,4,2         ## @FDT_ERR_BADOVERLAY
	.no_dead_strip	_overlay_get_target
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function overlay_get_target
_overlay_get_target:                    ; @overlay_get_target
	.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, x2
	mov	x21, x1
	mov	x19, x0
	mov	x0, x1
	mov	x1, x2
	bl	_overlay_get_target_phandle
	cbz	x0, LBB0_4
; %bb.1:
	mov	x1, x0
	cmn	x0, #1
	b.ne	LBB0_6
; %bb.2:
Lloh0:
	adrp	x8, _FDT_ERR_BADPHANDLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FDT_ERR_BADPHANDLE@GOTPAGEOFF]
LBB0_3:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_9
LBB0_4:
Lloh2:
	adrp	x2, l_.str@PAGE
Lloh3:
	add	x2, x2, l_.str@PAGEOFF
	add	x3, sp, #12
	mov	x0, x21
	mov	x1, x20
	bl	_fdt_getprop
	cbz	x0, LBB0_7
; %bb.5:
	mov	x1, x0
	mov	x0, x19
	bl	_fdt_path_offset
	b	LBB0_9
LBB0_6:
	mov	x0, x19
	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
	b	_fdt_node_offset_by_phandle
LBB0_7:
	ldr	w0, [sp, #12]
Lloh4:
	adrp	x8, _FDT_ERR_NOTFOUND@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FDT_ERR_NOTFOUND@GOTPAGEOFF]
Lloh6:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_9
; %bb.8:
Lloh7:
	adrp	x8, _FDT_ERR_BADOVERLAY@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FDT_ERR_BADOVERLAY@GOTPAGEOFF]
	b	LBB0_3
LBB0_9:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh7, Lloh8
	.cfi_endproc
                                        ; -- End function
	.comm	_FDT_ERR_BADPHANDLE,4,2         ; @FDT_ERR_BADPHANDLE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"target-path"

	.comm	_FDT_ERR_NOTFOUND,4,2           ; @FDT_ERR_NOTFOUND
	.comm	_FDT_ERR_BADOVERLAY,4,2         ; @FDT_ERR_BADOVERLAY
	.no_dead_strip	_overlay_get_target
.subsections_via_symbols
