	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function overlay_fixup_phandle
_overlay_fixup_phandle:                 ## @overlay_fixup_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	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, -60(%rbp)                 ## 4-byte Spill
	movq	%rdi, -72(%rbp)                 ## 8-byte Spill
	leaq	-96(%rbp), %rdx
	leaq	-44(%rbp), %rax
	movq	%rsi, -80(%rbp)                 ## 8-byte Spill
	movq	%rsi, %rdi
	movl	%ecx, %esi
	movq	%rax, %rcx
	callq	_fdt_getprop_by_offset
	testq	%rax, %rax
	je	LBB0_12
## %bb.1:
	movq	%rax, %rbx
	movl	-44(%rbp), %edx
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, -56(%rbp)                 ## 8-byte Spill
	movq	%rbx, %rdi
	xorl	%esi, %esi
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_11
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %rbx
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	subq	%rdi, %rbx
	movl	%ebx, %eax
	notl	%eax
	addl	%eax, -44(%rbp)
	movl	$58, %esi
	movl	%ebx, %edx
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_11
## %bb.4:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r14
	cmpb	$58, (%rax)
	jne	LBB0_11
## %bb.5:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r14d, %r15d
	subl	-56(%rbp), %r15d                ## 4-byte Folded Reload
	leal	-1(%rbx), %eax
	cmpl	%r15d, %eax
	je	LBB0_11
## %bb.6:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r15d, %edx
	notl	%edx
	addl	%ebx, %edx
	incq	%r14
	movq	%r14, %rdi
	movl	$58, %esi
	callq	_memchr
	testq	%rax, %rax
	je	LBB0_11
## %bb.7:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%rax, %r12
	cmpb	$58, (%rax)
	jne	LBB0_11
## %bb.8:                               ##   in Loop: Header=BB0_2 Depth=1
	movl	%r12d, %r13d
	subl	%r14d, %r13d
	je	LBB0_11
## %bb.9:                               ##   in Loop: Header=BB0_2 Depth=1
	incq	%r12
	movq	%r12, %rdi
	leaq	-88(%rbp), %rsi
	movl	$10, %edx
	callq	_strtoul
                                        ## kill: def $eax killed $eax def $rax
	movq	-88(%rbp), %rcx
	cmpq	%r12, %rcx
	jbe	LBB0_11
## %bb.10:                              ##   in Loop: Header=BB0_2 Depth=1
	cmpb	$0, (%rcx)
	jne	LBB0_11
## %bb.15:                              ##   in Loop: Header=BB0_2 Depth=1
	movq	%rbx, %r12
	subq	$8, %rsp
	movq	-72(%rbp), %rdi                 ## 8-byte Reload
	movq	-80(%rbp), %rsi                 ## 8-byte Reload
	movl	-60(%rbp), %edx                 ## 4-byte Reload
	movq	-56(%rbp), %rbx                 ## 8-byte Reload
	movq	%rbx, %rcx
	movl	%r15d, %r8d
	movq	%r14, %r9
	pushq	-96(%rbp)
	pushq	%rax
	pushq	%r13
	callq	_overlay_fixup_one_phandle
	addq	$32, %rsp
	testl	%eax, %eax
	jne	LBB0_18
## %bb.16:                              ##   in Loop: Header=BB0_2 Depth=1
	movslq	%r12d, %rax
	addq	%rax, %rbx
	incq	%rbx
	movl	-44(%rbp), %edx
	testl	%edx, %edx
	jg	LBB0_2
## %bb.17:
	xorl	%eax, %eax
	jmp	LBB0_18
LBB0_11:
	movq	_FDT_ERR_BADOVERLAY@GOTPCREL(%rip), %rcx
	jmp	LBB0_14
LBB0_12:
	movl	-44(%rbp), %eax
	movq	_FDT_ERR_NOTFOUND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_18
## %bb.13:
	movq	_FDT_ERR_INTERNAL@GOTPCREL(%rip), %rcx
LBB0_14:
	xorl	%eax, %eax
	subl	(%rcx), %eax
LBB0_18:
	addq	$56, %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_INTERNAL,4,2           ## @FDT_ERR_INTERNAL
	.comm	_FDT_ERR_BADOVERLAY,4,2         ## @FDT_ERR_BADOVERLAY
	.no_dead_strip	_overlay_fixup_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_phandle
_overlay_fixup_phandle:                 ; @overlay_fixup_phandle
	.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	x8, x3
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	add	x2, sp, #24
	add	x3, sp, #20
	mov	x0, x1
	mov	x1, x8
	bl	_fdt_getprop_by_offset
	cbz	x0, LBB0_15
; %bb.1:
	mov	x22, x0
	ldr	w2, [sp, #20]
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x22
	mov	w1, #0
	bl	_memchr
	cbz	x0, LBB0_14
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w24, w0, w22
	add	w27, w24, #1
	ldr	w8, [sp, #20]
	sub	w8, w8, w27
	str	w8, [sp, #20]
	mov	x0, x22
	mov	w1, #58
	mov	x2, x24
	bl	_memchr
	cbz	x0, LBB0_14
; %bb.4:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x0]
	cmp	w8, #58
	b.ne	LBB0_14
; %bb.5:                                ;   in Loop: Header=BB0_2 Depth=1
	sub	w8, w24, #1
	sub	w23, w0, w22
	cmp	w8, w23
	b.eq	LBB0_14
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	mvn	w8, w23
	add	w2, w8, w24
	add	x24, x0, #1
	mov	x0, x24
	mov	w1, #58
	bl	_memchr
	cbz	x0, LBB0_14
; %bb.7:                                ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x0]
	cmp	w8, #58
	b.ne	LBB0_14
; %bb.8:                                ;   in Loop: Header=BB0_2 Depth=1
	subs	w25, w0, w24
	b.eq	LBB0_14
; %bb.9:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x26, x0, #1
	add	x1, sp, #8
	mov	x0, x26
	mov	w2, #10
	bl	_strtoul
	ldr	x8, [sp, #8]
	cmp	x8, x26
	b.ls	LBB0_14
; %bb.10:                               ;   in Loop: Header=BB0_2 Depth=1
	ldrb	w8, [x8]
	cbnz	w8, LBB0_14
; %bb.11:                               ;   in Loop: Header=BB0_2 Depth=1
	mov	x7, x0
	ldr	x8, [sp, #24]
	str	x8, [sp]
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	mov	x3, x22
	mov	x4, x23
	mov	x5, x24
	mov	x6, x25
	bl	_overlay_fixup_one_phandle
	cbnz	w0, LBB0_18
; %bb.12:                               ;   in Loop: Header=BB0_2 Depth=1
	add	x22, x22, w27, sxtw
	ldr	w2, [sp, #20]
	cmp	w2, #0
	b.gt	LBB0_2
; %bb.13:
	mov	w0, #0
	b	LBB0_18
LBB0_14:
Lloh0:
	adrp	x8, _FDT_ERR_BADOVERLAY@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FDT_ERR_BADOVERLAY@GOTPAGEOFF]
	b	LBB0_17
LBB0_15:
	ldr	w0, [sp, #20]
Lloh2:
	adrp	x8, _FDT_ERR_NOTFOUND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FDT_ERR_NOTFOUND@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_18
; %bb.16:
Lloh5:
	adrp	x8, _FDT_ERR_INTERNAL@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FDT_ERR_INTERNAL@GOTPAGEOFF]
LBB0_17:
	ldr	w8, [x8]
	neg	w0, w8
LBB0_18:
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGot	Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_FDT_ERR_NOTFOUND,4,2           ; @FDT_ERR_NOTFOUND
	.comm	_FDT_ERR_INTERNAL,4,2           ; @FDT_ERR_INTERNAL
	.comm	_FDT_ERR_BADOVERLAY,4,2         ; @FDT_ERR_BADOVERLAY
	.no_dead_strip	_overlay_fixup_phandle
.subsections_via_symbols
