	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dtoverlay_apply_fixups_node
_dtoverlay_apply_fixups_node:           ## @dtoverlay_apply_fixups_node
	.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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
                                        ## kill: def $ecx killed $ecx def $rcx
	movq	%rcx, -80(%rbp)                 ## 8-byte Spill
	movl	%edx, %r15d
	movq	%rdi, %r12
	movl	(%rdi), %edi
	movl	%esi, -60(%rbp)                 ## 4-byte Spill
	callq	_fdt_first_property_offset
	testl	%eax, %eax
	js	LBB0_12
## %bb.1:
	movl	%eax, %r14d
	movl	%r15d, -64(%rbp)                ## 4-byte Spill
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	movl	-68(%rbp), %esi                 ## 4-byte Reload
	callq	_fdt_next_property_offset
	movl	%eax, %r14d
	testl	%eax, %eax
	movl	-64(%rbp), %r15d                ## 4-byte Reload
	js	LBB0_12
LBB0_2:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	movl	(%r12), %edi
	movl	%r14d, %esi
	leaq	-56(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	callq	_fdt_getprop_by_offset
	movq	%rax, -88(%rbp)                 ## 8-byte Spill
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r12), %edi
	movq	-56(%rbp), %rdx
	movl	%r15d, %esi
	leaq	-72(%rbp), %rcx
	callq	_fdt_getprop_w
	testq	%rax, %rax
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, -68(%rbp)                ## 4-byte Spill
	cmpl	$4, -44(%rbp)
	jl	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_2 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%r13d, %esi
	callq	_dtoverlay_read_u32
	movl	%eax, %r15d
	leal	4(%r15), %eax
	cmpl	-72(%rbp), %eax
	jg	LBB0_8
## %bb.10:                              ##   in Loop: Header=BB0_7 Depth=2
	movq	%rbx, %rdi
	movl	%r15d, %esi
	callq	_dtoverlay_read_u32
                                        ## kill: def $eax killed $eax def $rax
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r12, %r14
	leal	(%rax,%rsi), %r12d
	leaq	L_.str(%rip), %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movl	%eax, %edx
	movl	%r12d, %ecx
	callq	_phandle_debug
	movq	%rbx, %rdi
	movl	%r15d, %esi
	movl	%r12d, %edx
	movq	%r14, %r12
	callq	_dtoverlay_write_u32
	leal	4(%r13), %eax
	addl	$8, %r13d
	cmpl	-44(%rbp), %r13d
	movl	%eax, %r13d
	jle	LBB0_7
	jmp	LBB0_11
LBB0_8:
	movq	_FDT_ERR_BADSTRUCTURE@GOTPCREL(%rip), %rax
LBB0_9:
	xorl	%r13d, %r13d
	subl	(%rax), %r13d
	jmp	LBB0_19
LBB0_12:
	movl	(%r12), %edi
	movl	-60(%rbp), %esi                 ## 4-byte Reload
	callq	_fdt_first_subnode
	testl	%eax, %eax
	js	LBB0_13
## %bb.14:
	movl	%eax, %ebx
	leaq	-56(%rbp), %r14
	.p2align	4, 0x90
LBB0_15:                                ## =>This Inner Loop Header: Depth=1
	movl	(%r12), %edi
	movl	%ebx, %esi
	movq	%r14, %rdx
	callq	_fdt_get_name
	movl	(%r12), %edi
	movl	-56(%rbp), %ecx
	movl	%r15d, %esi
	movq	%rax, %rdx
	callq	_fdt_subnode_offset_namelen
	movl	%eax, %r13d
	testl	%eax, %eax
	js	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_15 Depth=1
	movq	%r12, %rdi
	movl	%ebx, %esi
	movl	%r13d, %edx
	movq	-80(%rbp), %rcx                 ## 8-byte Reload
                                        ## kill: def $ecx killed $ecx killed $rcx
	callq	_dtoverlay_apply_fixups_node
	movl	%eax, %r13d
LBB0_17:                                ##   in Loop: Header=BB0_15 Depth=1
	movl	(%r12), %edi
	movl	%ebx, %esi
	callq	_fdt_next_subnode
	testl	%eax, %eax
	js	LBB0_19
## %bb.18:                              ##   in Loop: Header=BB0_15 Depth=1
	movl	%eax, %ebx
	testl	%r13d, %r13d
	je	LBB0_15
	jmp	LBB0_19
LBB0_13:
	xorl	%r13d, %r13d
LBB0_19:
	movl	%r13d, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_3:
	movq	_FDT_ERR_INTERNAL@GOTPCREL(%rip), %rax
	jmp	LBB0_9
	.cfi_endproc
                                        ## -- End function
	.comm	_FDT_ERR_INTERNAL,4,2           ## @FDT_ERR_INTERNAL
	.comm	_FDT_ERR_BADSTRUCTURE,4,2       ## @FDT_ERR_BADSTRUCTURE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"  phandle fixup %d+%d->%d"

	.no_dead_strip	_dtoverlay_apply_fixups_node
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dtoverlay_apply_fixups_node
_dtoverlay_apply_fixups_node:           ; @dtoverlay_apply_fixups_node
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #128
	.cfi_def_cfa_offset 128
	stp	x28, x27, [sp, #32]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #48]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #64]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #80]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #96]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #112]            ; 16-byte Folded Spill
	add	x29, sp, #112
	.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
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	mov	x19, x3
	mov	x20, x2
	mov	x21, x0
	ldr	w0, [x0]
	str	w1, [sp, #12]                   ; 4-byte Folded Spill
	bl	_fdt_first_property_offset
	tbnz	w0, #31, LBB0_11
; %bb.1:
	mov	x23, x0
Lloh0:
	adrp	x24, l_.str@PAGE
Lloh1:
	add	x24, x24, l_.str@PAGEOFF
	b	LBB0_3
LBB0_2:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x21]
	mov	x1, x23
	bl	_fdt_next_property_offset
	mov	x23, x0
	tbnz	w0, #31, LBB0_11
LBB0_3:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	ldr	w0, [x21]
	add	x2, sp, #24
	add	x3, sp, #20
	mov	x1, x23
	bl	_fdt_getprop_by_offset
	cbz	x0, LBB0_19
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x25, x0
	ldr	w0, [x21]
	ldr	x2, [sp, #24]
	add	x3, sp, #16
	mov	x1, x20
	bl	_fdt_getprop_w
	cbz	x0, LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #20]
	cmp	w8, #4
	b.lt	LBB0_2
; %bb.6:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x0
	mov	w27, #0
LBB0_7:                                 ;   Parent Loop BB0_3 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	mov	x0, x25
	mov	x1, x27
	bl	_dtoverlay_read_u32
	add	w8, w0, #4
	ldr	w9, [sp, #16]
	cmp	w8, w9
	b.gt	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	mov	x28, x0
	mov	x0, x26
	mov	x1, x28
	bl	_dtoverlay_read_u32
	mov	x2, x0
	add	w22, w0, w19
	mov	x0, x24
	mov	x1, x19
	mov	x3, x22
	bl	_phandle_debug
	mov	x0, x26
	mov	x1, x28
	mov	x2, x22
	bl	_dtoverlay_write_u32
	ldr	w8, [sp, #20]
	add	w9, w27, #8
	add	w27, w27, #4
	cmp	w9, w8
	b.le	LBB0_7
	b	LBB0_2
LBB0_9:
Lloh2:
	adrp	x8, _FDT_ERR_BADSTRUCTURE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FDT_ERR_BADSTRUCTURE@GOTPAGEOFF]
LBB0_10:
	ldr	w8, [x8]
	neg	w23, w8
	b	LBB0_18
LBB0_11:
	ldr	w0, [x21]
	ldr	w1, [sp, #12]                   ; 4-byte Folded Reload
	bl	_fdt_first_subnode
	tbnz	w0, #31, LBB0_17
; %bb.12:
	mov	x22, x0
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x21]
	add	x2, sp, #24
	mov	x1, x22
	bl	_fdt_get_name
	mov	x2, x0
	ldr	w0, [x21]
	ldr	w3, [sp, #24]
	mov	x1, x20
	bl	_fdt_subnode_offset_namelen
	mov	x23, x0
	tbnz	w0, #31, LBB0_15
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x0, x21
	mov	x1, x22
	mov	x2, x23
	mov	x3, x19
	bl	_dtoverlay_apply_fixups_node
	mov	x23, x0
LBB0_15:                                ;   in Loop: Header=BB0_13 Depth=1
	ldr	w0, [x21]
	mov	x1, x22
	bl	_fdt_next_subnode
	tbnz	w0, #31, LBB0_18
; %bb.16:                               ;   in Loop: Header=BB0_13 Depth=1
	mov	x22, x0
	cbz	w23, LBB0_13
	b	LBB0_18
LBB0_17:
	mov	w23, #0
LBB0_18:
	mov	x0, x23
	ldp	x29, x30, [sp, #112]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #96]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #80]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #64]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #48]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #32]             ; 16-byte Folded Reload
	add	sp, sp, #128
	ret
LBB0_19:
Lloh4:
	adrp	x8, _FDT_ERR_INTERNAL@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FDT_ERR_INTERNAL@GOTPAGEOFF]
	b	LBB0_10
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh4, Lloh5
	.cfi_endproc
                                        ; -- End function
	.comm	_FDT_ERR_INTERNAL,4,2           ; @FDT_ERR_INTERNAL
	.comm	_FDT_ERR_BADSTRUCTURE,4,2       ; @FDT_ERR_BADSTRUCTURE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"  phandle fixup %d+%d->%d"

	.no_dead_strip	_dtoverlay_apply_fixups_node
.subsections_via_symbols
