	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dtoverlay_phandle_relocate
_dtoverlay_phandle_relocate:            ## @dtoverlay_phandle_relocate
	.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
	movq	%rcx, %r14
	movq	%rdx, %r12
	movl	%esi, %r15d
	movq	%rdi, %r13
	movl	(%rdi), %edi
	leaq	-44(%rbp), %rcx
	callq	_fdt_getprop
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	cmpl	$3, -44(%rbp)
	jg	LBB0_4
## %bb.3:
	leaq	L_.str(%rip), %rdi
	movq	%r12, %rsi
	callq	_dtoverlay_error
	movq	_FDT_ERR_BADSTRUCTURE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_5
LBB0_1:
	xorl	%eax, %eax
	jmp	LBB0_5
LBB0_4:
	movq	%rax, %rbx
	movl	(%rax), %edi
	callq	_fdt32_to_cpu
	addq	%rax, %r14
	movl	(%rbx), %edi
	callq	_fdt32_to_cpu
	leaq	L_.str.1(%rip), %rdi
	movq	%rax, %rsi
	movq	%r14, %rdx
	callq	_phandle_debug
	movl	(%r13), %edi
	movl	%r15d, %esi
	movq	%r12, %rdx
	movq	%r14, %rcx
	callq	_fdt_setprop_inplace_u32
LBB0_5:
	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	"%s property too small"

	.comm	_FDT_ERR_BADSTRUCTURE,4,2       ## @FDT_ERR_BADSTRUCTURE
L_.str.1:                               ## @.str.1
	.asciz	"  phandle_relocate %d->%d"

	.no_dead_strip	_dtoverlay_phandle_relocate
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dtoverlay_phandle_relocate
_dtoverlay_phandle_relocate:            ; @dtoverlay_phandle_relocate
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	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
	.cfi_offset w23, -56
	.cfi_offset w24, -64
	mov	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	ldr	w0, [x0]
	add	x3, sp, #12
	bl	_fdt_getprop
	cbz	x0, LBB0_4
; %bb.1:
	ldr	w8, [sp, #12]
	cmp	w8, #3
	b.gt	LBB0_3
; %bb.2:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x19
	bl	_dtoverlay_error
Lloh2:
	adrp	x8, _FDT_ERR_BADSTRUCTURE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FDT_ERR_BADSTRUCTURE@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_4
LBB0_3:
	mov	x23, x0
	ldr	w0, [x0]
	bl	_fdt32_to_cpu
	add	x22, x0, x22
	ldr	w0, [x23]
	bl	_fdt32_to_cpu
	mov	x1, x0
Lloh5:
	adrp	x0, l_.str.1@PAGE
Lloh6:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x2, x22
	bl	_phandle_debug
	ldr	w0, [x21]
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	bl	_fdt_setprop_inplace_u32
LBB0_4:
	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
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #80
	ret
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"%s property too small"

	.comm	_FDT_ERR_BADSTRUCTURE,4,2       ; @FDT_ERR_BADSTRUCTURE
l_.str.1:                               ; @.str.1
	.asciz	"  phandle_relocate %d->%d"

	.no_dead_strip	_dtoverlay_phandle_relocate
.subsections_via_symbols
