	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dtoverlay_resolve_phandles
_dtoverlay_resolve_phandles:            ## @dtoverlay_resolve_phandles
	.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	%rsi, %r13
	movq	%rdi, %r14
	movl	$0, -44(%rbp)
	xorl	%ebx, %ebx
	leaq	L_.str(%rip), %r15
	leaq	L_.str.1(%rip), %r12
	.p2align	4, 0x90
LBB0_1:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%r14), %ecx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r15, %rdx
	callq	_dtoverlay_phandle_relocate
	movl	(%r14), %ecx
	movq	%r13, %rdi
	movl	%ebx, %esi
	movq	%r12, %rdx
	callq	_dtoverlay_phandle_relocate
	movl	4(%r13), %edi
	movl	%ebx, %esi
	xorl	%edx, %edx
	callq	_fdt_next_node
	movl	%eax, %ebx
	testl	%eax, %eax
	jns	LBB0_1
## %bb.2:
	movl	4(%r13), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_fdt_path_offset
	testl	%eax, %eax
	js	LBB0_8
## %bb.3:
	movl	%eax, %ebx
	movl	4(%r13), %edi
	leaq	L_.str.3(%rip), %rdx
	leaq	-44(%rbp), %rcx
	movl	%eax, %esi
	callq	_fdt_getprop
	movl	(%r14), %r8d
	testq	%rax, %rax
	je	LBB0_5
## %bb.4:
	movq	_FIXUP_RELATIVE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	movq	%r13, %rdi
	movq	%rax, %rsi
	movl	%r8d, %edx
	callq	_dtoverlay_apply_fixups
	jmp	LBB0_6
LBB0_5:
	movq	%r13, %rdi
	movl	%ebx, %esi
	xorl	%edx, %edx
	movl	%r8d, %ecx
	callq	_dtoverlay_apply_fixups_node
LBB0_6:
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	js	LBB0_7
LBB0_8:
	movl	(%r13), %edx
	addl	(%r14), %edx
	movl	%edx, (%r13)
	movl	(%r14), %esi
	leaq	L_.str.5(%rip), %rdi
	callq	_phandle_debug
	jmp	LBB0_9
LBB0_7:
	leaq	L_.str.4(%rip), %rdi
	callq	_dtoverlay_error
LBB0_9:
	movl	-44(%rbp), %eax
	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	"phandle"

L_.str.1:                               ## @.str.1
	.asciz	"linux,phandle"

L_.str.2:                               ## @.str.2
	.asciz	"/__local_fixups__"

L_.str.3:                               ## @.str.3
	.asciz	"fixup"

	.comm	_FIXUP_RELATIVE,4,2             ## @FIXUP_RELATIVE
L_.str.4:                               ## @.str.4
	.asciz	"error applying local fixups"

L_.str.5:                               ## @.str.5
	.asciz	"  +overlay max phandle +%d -> %d"

	.no_dead_strip	_dtoverlay_resolve_phandles
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dtoverlay_resolve_phandles
_dtoverlay_resolve_phandles:            ; @dtoverlay_resolve_phandles
	.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	x20, x1
	mov	x19, x0
	mov	w22, #0
	str	wzr, [sp, #12]
Lloh0:
	adrp	x21, l_.str@PAGE
Lloh1:
	add	x21, x21, l_.str@PAGEOFF
Lloh2:
	adrp	x23, l_.str.1@PAGE
Lloh3:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_1:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w3, [x19]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x21
	bl	_dtoverlay_phandle_relocate
	ldr	w3, [x19]
	mov	x0, x20
	mov	x1, x22
	mov	x2, x23
	bl	_dtoverlay_phandle_relocate
	ldr	w0, [x20, #4]
	mov	x1, x22
	mov	x2, #0
	bl	_fdt_next_node
	mov	x22, x0
	tbz	w0, #31, LBB0_1
; %bb.2:
	ldr	w0, [x20, #4]
Lloh4:
	adrp	x1, l_.str.2@PAGE
Lloh5:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fdt_path_offset
	tbnz	w0, #31, LBB0_5
; %bb.3:
	mov	x21, x0
	ldr	w0, [x20, #4]
Lloh6:
	adrp	x2, l_.str.3@PAGE
Lloh7:
	add	x2, x2, l_.str.3@PAGEOFF
	add	x3, sp, #12
	mov	x1, x21
	bl	_fdt_getprop
	ldr	w8, [x19]
	cbz	x0, LBB0_6
; %bb.4:
	mov	x1, x0
Lloh8:
	adrp	x9, _FIXUP_RELATIVE@GOTPAGE
Lloh9:
	ldr	x9, [x9, _FIXUP_RELATIVE@GOTPAGEOFF]
Lloh10:
	ldr	w3, [x9]
	mov	x0, x20
	mov	x2, x8
	bl	_dtoverlay_apply_fixups
	str	w0, [sp, #12]
	tbnz	w0, #31, LBB0_7
LBB0_5:
	ldr	w8, [x19]
	ldr	w9, [x20]
	add	w2, w9, w8
	str	w2, [x20]
	ldr	w1, [x19]
Lloh11:
	adrp	x0, l_.str.5@PAGE
Lloh12:
	add	x0, x0, l_.str.5@PAGEOFF
	bl	_phandle_debug
	b	LBB0_8
LBB0_6:
	mov	x0, x20
	mov	x1, x21
	mov	w2, #0
	mov	x3, x8
	bl	_dtoverlay_apply_fixups_node
	str	w0, [sp, #12]
	tbz	w0, #31, LBB0_5
LBB0_7:
Lloh13:
	adrp	x0, l_.str.4@PAGE
Lloh14:
	add	x0, x0, l_.str.4@PAGEOFF
	bl	_dtoverlay_error
LBB0_8:
	ldr	w0, [sp, #12]
	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 AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh4, Lloh5
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpAdd	Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"phandle"

l_.str.1:                               ; @.str.1
	.asciz	"linux,phandle"

l_.str.2:                               ; @.str.2
	.asciz	"/__local_fixups__"

l_.str.3:                               ; @.str.3
	.asciz	"fixup"

	.comm	_FIXUP_RELATIVE,4,2             ; @FIXUP_RELATIVE
l_.str.4:                               ; @.str.4
	.asciz	"error applying local fixups"

l_.str.5:                               ; @.str.5
	.asciz	"  +overlay max phandle +%d -> %d"

	.no_dead_strip	_dtoverlay_resolve_phandles
.subsections_via_symbols
