	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function overlay_fixup_one_phandle
_overlay_fixup_one_phandle:             ## @overlay_fixup_one_phandle
	.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
	subq	$40, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %ebx
	testl	%edx, %edx
	js	LBB0_11
## %bb.1:
	movq	%r8, %r12
	movq	%rcx, %r13
	movq	%rsi, %r15
	movq	%rdi, %r14
	movq	%r9, -56(%rbp)                  ## 8-byte Spill
	movq	32(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	movl	%ebx, %esi
	callq	_fdt_getprop
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%r14, %rdi
	movq	%rax, %rsi
	callq	_fdt_path_offset
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_11
## %bb.4:
	movq	%r14, %rdi
	movl	%ebx, %esi
	callq	_fdt_get_phandle
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:
	movq	%rax, %r14
	movq	%r15, %rdi
	movq	%r13, %rsi
	movq	%r12, %rdx
	callq	_fdt_path_offset_namelen
	movl	%eax, %ebx
	movq	_FDT_ERR_NOTFOUND@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_9
## %bb.8:
	movq	_FDT_ERR_BADOVERLAY@GOTPCREL(%rip), %rax
	jmp	LBB0_6
LBB0_2:
	movl	-44(%rbp), %ebx
	jmp	LBB0_11
LBB0_5:
	movq	_FDT_ERR_NOTFOUND@GOTPCREL(%rip), %rax
LBB0_6:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
	jmp	LBB0_11
LBB0_9:
	testl	%ebx, %ebx
	js	LBB0_11
## %bb.10:
	movl	24(%rbp), %r12d
	movq	16(%rbp), %r13
	movq	%r14, %rdi
	callq	_cpu_to_fdt32
	movq	%rax, -64(%rbp)
	movl	$8, (%rsp)
	leaq	-64(%rbp), %r9
	movq	%r15, %rdi
	movl	%ebx, %esi
	movq	-56(%rbp), %rdx                 ## 8-byte Reload
	movq	%r13, %rcx
	movl	%r12d, %r8d
	callq	_fdt_setprop_inplace_namelen_partial
	movl	%eax, %ebx
LBB0_11:
	movl	%ebx, %eax
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FDT_ERR_NOTFOUND,4,2           ## @FDT_ERR_NOTFOUND
	.comm	_FDT_ERR_BADOVERLAY,4,2         ## @FDT_ERR_BADOVERLAY
	.no_dead_strip	_overlay_fixup_one_phandle
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function overlay_fixup_one_phandle
_overlay_fixup_one_phandle:             ; @overlay_fixup_one_phandle
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	mov	x22, x2
	tbnz	w2, #31, LBB0_11
; %bb.1:
	mov	x19, x7
	mov	x20, x6
	mov	x21, x5
	mov	x24, x4
	mov	x25, x3
	mov	x23, x1
	mov	x26, x0
	ldr	x2, [x29, #16]
	add	x3, sp, #4
	mov	x1, x22
	bl	_fdt_getprop
	cbz	x0, LBB0_6
; %bb.2:
	mov	x1, x0
	mov	x0, x26
	bl	_fdt_path_offset
	mov	x22, x0
	tbnz	w0, #31, LBB0_11
; %bb.3:
	mov	x0, x26
	mov	x1, x22
	bl	_fdt_get_phandle
	cbz	x0, LBB0_7
; %bb.4:
	mov	x26, x0
	mov	x0, x23
	mov	x1, x25
	mov	x2, x24
	bl	_fdt_path_offset_namelen
Lloh0:
	adrp	x8, _FDT_ERR_NOTFOUND@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FDT_ERR_NOTFOUND@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_9
; %bb.5:
Lloh3:
	adrp	x8, _FDT_ERR_BADOVERLAY@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FDT_ERR_BADOVERLAY@GOTPAGEOFF]
	b	LBB0_8
LBB0_6:
	ldr	w22, [sp, #4]
	b	LBB0_11
LBB0_7:
Lloh5:
	adrp	x8, _FDT_ERR_NOTFOUND@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FDT_ERR_NOTFOUND@GOTPAGEOFF]
LBB0_8:
	ldr	w8, [x8]
	neg	w22, w8
	b	LBB0_11
LBB0_9:
	mov	x22, x0
	tbnz	w0, #31, LBB0_11
; %bb.10:
	mov	x0, x26
	bl	_cpu_to_fdt32
	str	x0, [sp, #8]
	add	x5, sp, #8
	mov	x0, x23
	mov	x1, x22
	mov	x2, x21
	mov	x3, x20
	mov	x4, x19
	mov	w6, #8
	bl	_fdt_setprop_inplace_namelen_partial
	mov	x22, x0
LBB0_11:
	mov	x0, x22
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FDT_ERR_NOTFOUND,4,2           ; @FDT_ERR_NOTFOUND
	.comm	_FDT_ERR_BADOVERLAY,4,2         ; @FDT_ERR_BADOVERLAY
	.no_dead_strip	_overlay_fixup_one_phandle
.subsections_via_symbols
