	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dtoverlay_resolve_fixups
_dtoverlay_resolve_fixups:              ## @dtoverlay_resolve_fixups
	.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
	movq	%rsi, %rbx
	movq	%rdi, %r15
	movl	$0, -44(%rbp)
	movl	(%rsi), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fdt_path_offset
	testl	%eax, %eax
	js	LBB0_18
## %bb.1:
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_fdt_first_property_offset
	testl	%eax, %eax
	js	LBB0_18
## %bb.2:
	movl	%eax, %r13d
	movl	(%r15), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fdt_path_offset
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	testl	%eax, %eax
	js	LBB0_21
## %bb.3:
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	(%rbx), %edi
	movl	%r13d, %esi
	leaq	-56(%rbp), %rdx
	leaq	-44(%rbp), %rcx
	callq	_fdt_getprop_by_offset
	testq	%rax, %rax
	je	LBB0_5
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	movq	-56(%rbp), %r12
	cmpb	$47, (%r12)
	movq	%rax, -80(%rbp)                 ## 8-byte Spill
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.4(%rip), %r14
	jmp	LBB0_9
	.p2align	4, 0x90
LBB0_11:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %edi
	movl	-48(%rbp), %esi                 ## 4-byte Reload
	movq	%r12, %rdx
	leaq	-44(%rbp), %rcx
	callq	_fdt_getprop
	movq	%rax, %r12
	leaq	L_.str.6(%rip), %r14
	testq	%rax, %rax
	je	LBB0_12
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r15), %edi
	movq	%r12, %rsi
	callq	_fdt_path_offset
	movq	%r15, %rcx
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_10
## %bb.13:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rcx), %edi
	movl	%r15d, %esi
	callq	_fdt_get_phandle
	movq	%rax, %r14
	testq	%rax, %rax
	jne	LBB0_16
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	%r13d, -60(%rbp)                ## 4-byte Spill
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	movq	8(%r13), %r14
	incq	%r14
	movq	%r14, 8(%r13)
	movq	%r14, %rdi
	callq	_cpu_to_fdt32
	movl	%eax, -64(%rbp)
	movl	(%r13), %edi
	movl	%r15d, %esi
	leaq	L_.str.8(%rip), %rdx
	leaq	-64(%rbp), %rcx
	movl	$4, %r8d
	callq	_fdt_setprop
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jne	LBB0_20
## %bb.15:                              ##   in Loop: Header=BB0_4 Depth=1
	leaq	L_.str.10(%rip), %rdi
	movq	%r12, %rsi
	movq	%r14, %rdx
	callq	_phandle_debug
	movl	(%r13), %edi
	leaq	L_.str.1(%rip), %rsi
	callq	_fdt_path_offset
	movl	%eax, -48(%rbp)                 ## 4-byte Spill
	movl	-60(%rbp), %r13d                ## 4-byte Reload
LBB0_16:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_FIXUP_ABSOLUTE@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	movq	%rbx, %rdi
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movq	%r14, %rdx
	callq	_dtoverlay_apply_fixups
	movl	%eax, -44(%rbp)
	testl	%eax, %eax
	jne	LBB0_18
## %bb.17:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	(%rbx), %edi
	movl	%r13d, %esi
	callq	_fdt_next_property_offset
	movl	%eax, %r13d
	testl	%eax, %eax
	movq	-72(%rbp), %r15                 ## 8-byte Reload
	jns	LBB0_4
	jmp	LBB0_18
LBB0_21:
	leaq	L_.str.2(%rip), %rdi
	xorl	%ebx, %ebx
	xorl	%eax, %eax
	callq	_dtoverlay_error
	movq	_FDT_ERR_NOTFOUND@GOTPCREL(%rip), %rax
	subl	(%rax), %ebx
	jmp	LBB0_19
LBB0_5:
	leaq	L_.str.3(%rip), %rdi
	jmp	LBB0_6
LBB0_10:
	movq	-56(%rbp), %rdx
	leaq	L_.str.7(%rip), %rdi
	movq	%r14, %rsi
	xorl	%eax, %eax
	callq	_dtoverlay_error
	movl	%r15d, -44(%rbp)
	jmp	LBB0_18
LBB0_12:
	movq	-56(%rbp), %rsi
	leaq	L_.str.5(%rip), %rdi
	xorl	%eax, %eax
	callq	_dtoverlay_error
	jmp	LBB0_18
LBB0_20:
	leaq	L_.str.9(%rip), %rdi
LBB0_6:
	xorl	%eax, %eax
	callq	_dtoverlay_error
LBB0_18:
	movl	-44(%rbp), %ebx
LBB0_19:
	movl	%ebx, %eax
	addq	$40, %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	"/__fixups__"

L_.str.1:                               ## @.str.1
	.asciz	"/__symbols__"

L_.str.2:                               ## @.str.2
	.asciz	"No symbols found"

	.comm	_FDT_ERR_NOTFOUND,4,2           ## @FDT_ERR_NOTFOUND
L_.str.3:                               ## @.str.3
	.asciz	"__fixups__ are borked"

L_.str.4:                               ## @.str.4
	.asciz	"path"

L_.str.5:                               ## @.str.5
	.asciz	"can't find symbol '%s'"

L_.str.6:                               ## @.str.6
	.asciz	"symbol"

L_.str.7:                               ## @.str.7
	.asciz	"%s '%s' is invalid"

L_.str.8:                               ## @.str.8
	.asciz	"phandle"

L_.str.9:                               ## @.str.9
	.asciz	"failed to add a phandle"

L_.str.10:                              ## @.str.10
	.asciz	"  phandle '%s'->%d"

	.comm	_FIXUP_ABSOLUTE,4,2             ## @FIXUP_ABSOLUTE
	.no_dead_strip	_dtoverlay_resolve_fixups
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function dtoverlay_resolve_fixups
_dtoverlay_resolve_fixups:              ; @dtoverlay_resolve_fixups
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #144
	.cfi_def_cfa_offset 144
	stp	x28, x27, [sp, #48]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #64]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #80]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #96]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #112]            ; 16-byte Folded Spill
	stp	x29, x30, [sp, #128]            ; 16-byte Folded Spill
	add	x29, sp, #128
	.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, x1
	mov	x20, x0
	str	wzr, [sp, #44]
	ldr	w0, [x1]
Lloh0:
	adrp	x1, l_.str@PAGE
Lloh1:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fdt_path_offset
	tbnz	w0, #31, LBB0_21
; %bb.1:
	mov	x1, x0
	ldr	w0, [x19]
	bl	_fdt_first_property_offset
	tbnz	w0, #31, LBB0_21
; %bb.2:
	mov	x21, x0
	ldr	w0, [x20]
Lloh2:
	adrp	x1, l_.str.1@PAGE
Lloh3:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fdt_path_offset
	tbnz	w0, #31, LBB0_15
; %bb.3:
	mov	x25, x0
Lloh4:
	adrp	x24, _FIXUP_ABSOLUTE@GOTPAGE
Lloh5:
	ldr	x24, [x24, _FIXUP_ABSOLUTE@GOTPAGEOFF]
Lloh6:
	adrp	x22, l_.str.6@PAGE
Lloh7:
	add	x22, x22, l_.str.6@PAGEOFF
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w0, [x19]
	add	x2, sp, #32
	add	x3, sp, #44
	mov	x1, x21
	bl	_fdt_getprop_by_offset
	cbz	x0, LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
	ldr	x27, [sp, #32]
	ldrb	w8, [x27]
	cmp	w8, #47
	b.ne	LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
Lloh8:
	adrp	x28, l_.str.4@PAGE
Lloh9:
	add	x28, x28, l_.str.4@PAGEOFF
	b	LBB0_9
LBB0_7:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
	add	x3, sp, #44
	mov	x1, x25
	mov	x2, x27
	bl	_fdt_getprop
	cbz	x0, LBB0_18
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x0
	mov	x28, x22
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
	mov	x1, x27
	bl	_fdt_path_offset
	mov	x23, x0
	tbnz	w0, #31, LBB0_17
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x20]
	mov	x1, x23
	bl	_fdt_get_phandle
	mov	x28, x0
	cbnz	x0, LBB0_13
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	x8, [x20, #8]
	add	x28, x8, #1
	str	x28, [x20, #8]
	mov	x0, x28
	bl	_cpu_to_fdt32
	str	w0, [sp, #28]
	ldr	w0, [x20]
	add	x3, sp, #28
	mov	x1, x23
Lloh10:
	adrp	x2, l_.str.8@PAGE
Lloh11:
	add	x2, x2, l_.str.8@PAGEOFF
	mov	w4, #4
	bl	_fdt_setprop
	str	w0, [sp, #44]
	cbnz	w0, LBB0_19
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
Lloh12:
	adrp	x0, l_.str.10@PAGE
Lloh13:
	add	x0, x0, l_.str.10@PAGEOFF
	mov	x1, x27
	mov	x2, x28
	bl	_phandle_debug
	ldr	w0, [x20]
Lloh14:
	adrp	x1, l_.str.1@PAGE
Lloh15:
	add	x1, x1, l_.str.1@PAGEOFF
	bl	_fdt_path_offset
	mov	x25, x0
LBB0_13:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w3, [x24]
	mov	x0, x19
	mov	x1, x26
	mov	x2, x28
	bl	_dtoverlay_apply_fixups
	str	w0, [sp, #44]
	cbnz	w0, LBB0_21
; %bb.14:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x19]
	mov	x1, x21
	bl	_fdt_next_property_offset
	mov	x21, x0
	tbz	w0, #31, LBB0_4
	b	LBB0_21
LBB0_15:
Lloh16:
	adrp	x0, l_.str.2@PAGE
Lloh17:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	_dtoverlay_error
Lloh18:
	adrp	x8, _FDT_ERR_NOTFOUND@GOTPAGE
Lloh19:
	ldr	x8, [x8, _FDT_ERR_NOTFOUND@GOTPAGEOFF]
Lloh20:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_22
LBB0_16:
Lloh21:
	adrp	x0, l_.str.3@PAGE
Lloh22:
	add	x0, x0, l_.str.3@PAGEOFF
	b	LBB0_20
LBB0_17:
	ldr	x8, [sp, #32]
	stp	x28, x8, [sp]
Lloh23:
	adrp	x0, l_.str.7@PAGE
Lloh24:
	add	x0, x0, l_.str.7@PAGEOFF
	bl	_dtoverlay_error
	str	w23, [sp, #44]
	b	LBB0_21
LBB0_18:
	ldr	x8, [sp, #32]
	str	x8, [sp]
Lloh25:
	adrp	x0, l_.str.5@PAGE
Lloh26:
	add	x0, x0, l_.str.5@PAGEOFF
	b	LBB0_20
LBB0_19:
Lloh27:
	adrp	x0, l_.str.9@PAGE
Lloh28:
	add	x0, x0, l_.str.9@PAGEOFF
LBB0_20:
	bl	_dtoverlay_error
LBB0_21:
	ldr	w0, [sp, #44]
LBB0_22:
	ldp	x29, x30, [sp, #128]            ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #112]            ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #96]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #80]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #64]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #48]             ; 16-byte Folded Reload
	add	sp, sp, #144
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh4, Lloh5
	.loh AdrpAdd	Lloh8, Lloh9
	.loh AdrpAdd	Lloh10, Lloh11
	.loh AdrpAdd	Lloh14, Lloh15
	.loh AdrpAdd	Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh18, Lloh19, Lloh20
	.loh AdrpAdd	Lloh16, Lloh17
	.loh AdrpAdd	Lloh21, Lloh22
	.loh AdrpAdd	Lloh23, Lloh24
	.loh AdrpAdd	Lloh25, Lloh26
	.loh AdrpAdd	Lloh27, Lloh28
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"/__fixups__"

l_.str.1:                               ; @.str.1
	.asciz	"/__symbols__"

l_.str.2:                               ; @.str.2
	.asciz	"No symbols found"

	.comm	_FDT_ERR_NOTFOUND,4,2           ; @FDT_ERR_NOTFOUND
l_.str.3:                               ; @.str.3
	.asciz	"__fixups__ are borked"

l_.str.4:                               ; @.str.4
	.asciz	"path"

l_.str.5:                               ; @.str.5
	.asciz	"can't find symbol '%s'"

l_.str.6:                               ; @.str.6
	.asciz	"symbol"

l_.str.7:                               ; @.str.7
	.asciz	"%s '%s' is invalid"

l_.str.8:                               ; @.str.8
	.asciz	"phandle"

l_.str.9:                               ; @.str.9
	.asciz	"failed to add a phandle"

l_.str.10:                              ; @.str.10
	.asciz	"  phandle '%s'->%d"

	.comm	_FIXUP_ABSOLUTE,4,2             ; @FIXUP_ABSOLUTE
	.no_dead_strip	_dtoverlay_resolve_fixups
.subsections_via_symbols
