	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function overlay_phandle_add_offset
_overlay_phandle_add_offset:            ## @overlay_phandle_add_offset
	.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	%r12
	pushq	%rbx
	subq	$16, %rsp
	.cfi_offset %rbx, -48
	.cfi_offset %r12, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, %r12
	movq	%rdx, %r14
	movl	%esi, %r15d
	movq	%rdi, %rbx
	leaq	-36(%rbp), %rcx
	callq	_fdt_getprop
	movq	%rax, %rcx
	movl	-36(%rbp), %eax
	testq	%rcx, %rcx
	je	LBB0_8
## %bb.1:
	cmpl	$8, %eax
	jne	LBB0_2
## %bb.4:
	movq	(%rcx), %rdi
	callq	_fdt32_to_cpu
	testq	%r12, %r12
	js	LBB0_5
## %bb.6:
	addq	%r12, %rax
	cmpq	$-1, %rax
	je	LBB0_5
## %bb.7:
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movq	%r14, %rdx
	movq	%rax, %rcx
	callq	_fdt_setprop_inplace_u32
	jmp	LBB0_8
LBB0_2:
	movq	_FDT_ERR_BADPHANDLE@GOTPCREL(%rip), %rcx
	jmp	LBB0_3
LBB0_5:
	movq	_FDT_ERR_NOPHANDLES@GOTPCREL(%rip), %rcx
LBB0_3:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_8:
	addq	$16, %rsp
	popq	%rbx
	popq	%r12
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FDT_ERR_BADPHANDLE,4,2         ## @FDT_ERR_BADPHANDLE
	.comm	_FDT_ERR_NOPHANDLES,4,2         ## @FDT_ERR_NOPHANDLES
	.no_dead_strip	_overlay_phandle_add_offset
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function overlay_phandle_add_offset
_overlay_phandle_add_offset:            ; @overlay_phandle_add_offset
	.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	x22, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x3, sp, #12
	bl	_fdt_getprop
	mov	x8, x0
	ldr	w0, [sp, #12]
	cbz	x8, LBB0_8
; %bb.1:
	cmp	w0, #8
	b.ne	LBB0_5
; %bb.2:
	ldr	x0, [x8]
	bl	_fdt32_to_cpu
	tbnz	x22, #63, LBB0_6
; %bb.3:
	add	x3, x0, x22
	cmn	x3, #1
	b.eq	LBB0_6
; %bb.4:
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_fdt_setprop_inplace_u32
	b	LBB0_8
LBB0_5:
Lloh0:
	adrp	x8, _FDT_ERR_BADPHANDLE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FDT_ERR_BADPHANDLE@GOTPAGEOFF]
	b	LBB0_7
LBB0_6:
Lloh2:
	adrp	x8, _FDT_ERR_NOPHANDLES@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FDT_ERR_NOPHANDLES@GOTPAGEOFF]
LBB0_7:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.cfi_endproc
                                        ; -- End function
	.comm	_FDT_ERR_BADPHANDLE,4,2         ; @FDT_ERR_BADPHANDLE
	.comm	_FDT_ERR_NOPHANDLES,4,2         ; @FDT_ERR_NOPHANDLES
	.no_dead_strip	_overlay_phandle_add_offset
.subsections_via_symbols
