	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function dtoverlay_apply_fixups
_dtoverlay_apply_fixups:                ## @dtoverlay_apply_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	%rdx, -56(%rbp)                 ## 8-byte Spill
	cmpb	$0, (%rsi)
	je	LBB0_14
## %bb.1:
	movq	%rsi, %r14
	movq	%rdi, %r13
	jmp	LBB0_2
	.p2align	4, 0x90
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	L_.str.1(%rip), %rdi
	movq	%r14, %rsi
	movq	-56(%rbp), %r14                 ## 8-byte Reload
	movq	%r14, %rdx
	xorl	%eax, %eax
	callq	_phandle_debug
LBB0_13:                                ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	movq	%r14, %rdx
	callq	_dtoverlay_write_u32
	leaq	1(%r12), %r14
	cmpb	$0, 1(%r12)
	je	LBB0_14
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%r14, %rdi
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r15
	leaq	1(%rax), %rdi
	movq	%rdi, -80(%rbp)                 ## 8-byte Spill
	movl	$58, %esi
	callq	_strchr
	testq	%rax, %rax
	je	LBB0_3
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	leaq	1(%rax), %r12
	movq	%r12, %rdi
	leaq	-88(%rbp), %rsi
	movl	$10, %edx
	callq	_strtoul
	movq	%rax, -72(%rbp)                 ## 8-byte Spill
	movq	-88(%rbp), %rax
	cmpq	%r12, %rax
	je	LBB0_3
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	cmpb	$0, (%rax)
	jne	LBB0_3
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	subl	%r14d, %r15d
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_fdt_path_offset_namelen
	testl	%eax, %eax
	js	LBB0_15
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	(%r13), %edi
	movq	-80(%rbp), %r14                 ## 8-byte Reload
	subl	%r14d, %ebx
	movl	%eax, %esi
	movq	%r14, %rdx
	movl	%ebx, %ecx
	leaq	-44(%rbp), %r8
	callq	_fdt_getprop_namelen
	movq	%rax, %r15
	movl	-44(%rbp), %eax
	testq	%r15, %r15
	je	LBB0_15
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	cltq
	addq	$-4, %rax
	movq	-72(%rbp), %rbx                 ## 8-byte Reload
	cmpq	%rax, %rbx
	ja	LBB0_3
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	_FIXUP_RELATIVE@GOTPCREL(%rip), %rcx
	cmpq	%rax, (%rcx)
	jne	LBB0_12
## %bb.11:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%r15, %rdi
	movq	%rbx, %rsi
	callq	_dtoverlay_read_u32
	movq	-56(%rbp), %rsi                 ## 8-byte Reload
	leaq	(%rax,%rsi), %r14
	leaq	L_.str(%rip), %rdi
	movq	%rax, %rdx
	movq	%r14, %rcx
	xorl	%eax, %eax
	callq	_phandle_debug
	jmp	LBB0_13
LBB0_14:
	xorl	%eax, %eax
	jmp	LBB0_15
LBB0_3:
	movq	_FDT_ERR_BADSTRUCTURE@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_15:
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FDT_ERR_BADSTRUCTURE,4,2       ## @FDT_ERR_BADSTRUCTURE
	.comm	_FIXUP_RELATIVE,8,3             ## @FIXUP_RELATIVE
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"  phandle fixup %d+%d->%d"

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

	.no_dead_strip	_dtoverlay_apply_fixups
.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
_dtoverlay_apply_fixups:                ; @dtoverlay_apply_fixups
	.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
	ldrb	w8, [x1]
	cbz	w8, LBB0_13
; %bb.1:
	mov	x19, x3
	mov	x20, x2
	mov	x26, x1
	mov	x21, x0
	b	LBB0_4
LBB0_2:                                 ;   in Loop: Header=BB0_4 Depth=1
Lloh0:
	adrp	x0, l_.str.1@PAGE
Lloh1:
	add	x0, x0, l_.str.1@PAGEOFF
	mov	x1, x25
	mov	x2, x20
	bl	_phandle_debug
	mov	x25, x20
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	mov	x1, x24
	mov	x2, x25
	bl	_dtoverlay_write_u32
	ldrb	w8, [x23, #1]!
	mov	x26, x23
	cbz	w8, LBB0_13
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x26
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x28, x0
	add	x25, x0, #1
	mov	x0, x25
	mov	w1, #58
	bl	_strchr
	cbz	x0, LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x27, x0
	add	x22, x0, #1
	add	x1, sp, #24
	mov	x0, x22
	mov	w2, #10
	bl	_strtoul
	ldr	x23, [sp, #24]
	cmp	x23, x22
	b.eq	LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldrb	w8, [x23]
	cbnz	w8, LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x24, x0
	ldr	w0, [x21]
	sub	w2, w28, w26
	mov	x1, x26
	bl	_fdt_path_offset_namelen
	mov	x1, x0
	tbnz	w0, #31, LBB0_15
; %bb.9:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x21]
	sub	w3, w27, w25
	add	x4, sp, #20
                                        ; kill: def $w1 killed $w1 killed $x1
	mov	x2, x25
	bl	_fdt_getprop_namelen
	ldr	w1, [sp, #20]
	cbz	x0, LBB0_15
; %bb.10:                               ;   in Loop: Header=BB0_4 Depth=1
	sxtw	x8, w1
	sub	x8, x8, #4
	cmp	x24, x8
	b.hi	LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x26, x0
Lloh2:
	adrp	x8, _FIXUP_RELATIVE@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FIXUP_RELATIVE@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cmp	x8, x19
	b.ne	LBB0_2
; %bb.12:                               ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x26
	mov	x1, x24
	bl	_dtoverlay_read_u32
	mov	x2, x0
	add	x25, x0, x20
	str	x25, [sp]
Lloh5:
	adrp	x0, l_.str@PAGE
Lloh6:
	add	x0, x0, l_.str@PAGEOFF
	mov	x1, x20
	bl	_phandle_debug
	b	LBB0_3
LBB0_13:
	mov	w1, #0
	b	LBB0_15
LBB0_14:
Lloh7:
	adrp	x8, _FDT_ERR_BADSTRUCTURE@GOTPAGE
Lloh8:
	ldr	x8, [x8, _FDT_ERR_BADSTRUCTURE@GOTPAGEOFF]
Lloh9:
	ldr	w8, [x8]
	neg	w1, w8
LBB0_15:
	mov	x0, x1
	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
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.comm	_FDT_ERR_BADSTRUCTURE,4,2       ; @FDT_ERR_BADSTRUCTURE
	.comm	_FIXUP_RELATIVE,8,3             ; @FIXUP_RELATIVE
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"  phandle fixup %d+%d->%d"

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

	.no_dead_strip	_dtoverlay_apply_fixups
.subsections_via_symbols
