	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtoverlay_foreach_override_target ## -- Begin function dtoverlay_foreach_override_target
	.p2align	4, 0x90
_dtoverlay_foreach_override_target:     ## @dtoverlay_foreach_override_target
	.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	$72, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -96(%rbp)                  ## 8-byte Spill
	movq	%r8, -88(%rbp)                  ## 8-byte Spill
	movq	%rsi, -104(%rbp)                ## 8-byte Spill
	movl	%ecx, -68(%rbp)
	movl	$0, -48(%rbp)
	testl	%ecx, %ecx
	je	LBB0_1
## %bb.2:
	movl	%ecx, %ebx
	movq	%rdx, %r14
	movq	%rdi, %r13
	movl	%ecx, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_19
## %bb.3:
	movq	%rax, %r15
	movq	%rax, %rdi
	movq	%r14, %rsi
	movl	%ebx, %edx
	callq	_memcpy
	movq	%r15, -80(%rbp)                 ## 8-byte Spill
	movq	%r15, -112(%rbp)
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movq	$0, -64(%rbp)
	movl	$0, -44(%rbp)
	movl	$0, -56(%rbp)
	movl	$0, -52(%rbp)
	movq	-104(%rbp), %rdi                ## 8-byte Reload
	leaq	-48(%rbp), %rsi
	leaq	-112(%rbp), %rdx
	leaq	-68(%rbp), %rcx
	leaq	-64(%rbp), %r8
	leaq	-44(%rbp), %r9
	leaq	-52(%rbp), %rax
	pushq	%rax
	leaq	-56(%rbp), %rax
	pushq	%rax
	callq	_dtoverlay_extract_override
	addq	$16, %rsp
	movl	%eax, %r14d
	movl	-48(%rbp), %esi
	movl	$0, %r15d
	testl	%esi, %esi
	je	LBB0_8
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	(%r13), %edi
	callq	_fdt_node_offset_by_phandle
	movl	%eax, %r15d
	testl	%eax, %eax
	js	LBB0_6
LBB0_8:                                 ##   in Loop: Header=BB0_4 Depth=1
	cmpq	$0, -64(%rbp)
	je	LBB0_9
## %bb.10:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %edi
	incl	%edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_11
## %bb.12:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%rax, %r12
	movq	-64(%rbp), %rsi
	movl	-44(%rbp), %edx
	movq	%rax, %rdi
	callq	_memcpy
	movslq	-44(%rbp), %rax
	movb	$0, (%r12,%rax)
	jmp	LBB0_13
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	xorl	%r12d, %r12d
LBB0_13:                                ##   in Loop: Header=BB0_4 Depth=1
	movl	-48(%rbp), %r8d
	movl	-56(%rbp), %r9d
	movl	-52(%rbp), %eax
	movl	%r14d, %edi
	movq	%r13, %rsi
	movl	%r15d, %edx
	movq	%r12, %rcx
	pushq	-96(%rbp)                       ## 8-byte Folded Reload
	pushq	%rax
	callq	*-88(%rbp)                      ## 8-byte Folded Reload
	addq	$16, %rsp
	movl	%eax, %ebx
	testq	%r12, %r12
	je	LBB0_15
## %bb.14:                              ##   in Loop: Header=BB0_4 Depth=1
	movq	%r12, %rdi
	callq	_free
LBB0_15:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	_DTOVERRIDE_END@GOTPCREL(%rip), %rax
	cmpl	(%rax), %r14d
	je	LBB0_17
## %bb.16:                              ##   in Loop: Header=BB0_4 Depth=1
	testl	%ebx, %ebx
	je	LBB0_4
	jmp	LBB0_17
LBB0_1:
	xorl	%ebx, %ebx
	jmp	LBB0_18
LBB0_19:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_dtoverlay_error
	movq	_FDT_ERR_NOSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	addq	$72, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	jmp	_NON_FATAL                      ## TAILCALL
LBB0_6:
	movl	-48(%rbp), %esi
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_dtoverlay_error
	jmp	LBB0_7
LBB0_11:
	leaq	L_.str(%rip), %rdi
	xorl	%eax, %eax
	callq	_dtoverlay_error
	movq	_FDT_ERR_NOSPACE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
LBB0_7:
	movl	%r15d, %edi
	callq	_NON_FATAL
	movl	%eax, %ebx
LBB0_17:
	movq	-80(%rbp), %rdi                 ## 8-byte Reload
	callq	_free
LBB0_18:
	movl	%ebx, %eax
	addq	$72, %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	"  out of memory"

	.comm	_FDT_ERR_NOSPACE,4,2            ## @FDT_ERR_NOSPACE
L_.str.1:                               ## @.str.1
	.asciz	"  phandle %d not found"

	.comm	_DTOVERRIDE_END,4,2             ## @DTOVERRIDE_END
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_dtoverlay_foreach_override_target ; -- Begin function dtoverlay_foreach_override_target
	.p2align	2
_dtoverlay_foreach_override_target:     ; @dtoverlay_foreach_override_target
	.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
	stp	wzr, w3, [sp, #32]
	cbz	w3, LBB0_14
; %bb.1:
	mov	x20, x5
	mov	x21, x4
	mov	x24, x3
	mov	x25, x2
	mov	x22, x1
	mov	x23, x0
	mov	x0, x3
	bl	_malloc
	cbz	x0, LBB0_15
; %bb.2:
	mov	x19, x0
	mov	x1, x25
	mov	x2, x24
	bl	_memcpy
	str	x19, [sp, #40]
Lloh0:
	adrp	x27, _DTOVERRIDE_END@GOTPAGE
Lloh1:
	ldr	x27, [x27, _DTOVERRIDE_END@GOTPAGEOFF]
LBB0_3:                                 ; =>This Inner Loop Header: Depth=1
	stp	xzr, xzr, [sp, #16]
	str	wzr, [sp, #12]
	add	x1, sp, #32
	add	x2, sp, #40
	add	x3, sp, #36
	add	x4, sp, #24
	add	x5, sp, #20
	add	x6, sp, #16
	add	x7, sp, #12
	mov	x0, x22
	bl	_dtoverlay_extract_override
	mov	x24, x0
	ldr	w1, [sp, #32]
	cbz	w1, LBB0_8
; %bb.4:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w0, [x23]
	bl	_fdt_node_offset_by_phandle
	mov	x25, x0
	tbnz	w0, #31, LBB0_16
; %bb.5:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	x8, [sp, #24]
	cbz	x8, LBB0_9
LBB0_6:                                 ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [sp, #20]
	add	w0, w8, #1
	bl	_malloc
	cbz	x0, LBB0_17
; %bb.7:                                ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, x0
	ldr	x1, [sp, #24]
	ldr	w2, [sp, #20]
	bl	_memcpy
	ldrsw	x8, [sp, #20]
	strb	wzr, [x26, x8]
	b	LBB0_10
LBB0_8:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	w25, #0
	ldr	x8, [sp, #24]
	cbnz	x8, LBB0_6
LBB0_9:                                 ;   in Loop: Header=BB0_3 Depth=1
	mov	x26, #0
LBB0_10:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w4, [sp, #32]
	ldp	w6, w5, [sp, #12]
	mov	x0, x24
	mov	x1, x23
	mov	x2, x25
	mov	x3, x26
	mov	x7, x20
	blr	x21
	mov	x25, x0
	cbz	x26, LBB0_12
; %bb.11:                               ;   in Loop: Header=BB0_3 Depth=1
	mov	x0, x26
	bl	_free
LBB0_12:                                ;   in Loop: Header=BB0_3 Depth=1
	ldr	w8, [x27]
	cmp	w24, w8
	b.eq	LBB0_19
; %bb.13:                               ;   in Loop: Header=BB0_3 Depth=1
	cbz	w25, LBB0_3
	b	LBB0_19
LBB0_14:
	mov	w25, #0
	b	LBB0_20
LBB0_15:
Lloh2:
	adrp	x0, l_.str@PAGE
Lloh3:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dtoverlay_error
Lloh4:
	adrp	x8, _FDT_ERR_NOSPACE@GOTPAGE
Lloh5:
	ldr	x8, [x8, _FDT_ERR_NOSPACE@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	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
	b	_NON_FATAL
LBB0_16:
	ldr	w8, [sp, #32]
	str	x8, [sp]
Lloh7:
	adrp	x0, l_.str.1@PAGE
Lloh8:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_dtoverlay_error
	b	LBB0_18
LBB0_17:
Lloh9:
	adrp	x0, l_.str@PAGE
Lloh10:
	add	x0, x0, l_.str@PAGEOFF
	bl	_dtoverlay_error
Lloh11:
	adrp	x8, _FDT_ERR_NOSPACE@GOTPAGE
Lloh12:
	ldr	x8, [x8, _FDT_ERR_NOSPACE@GOTPAGEOFF]
Lloh13:
	ldr	w25, [x8]
LBB0_18:
	mov	x0, x25
	bl	_NON_FATAL
	mov	x25, x0
LBB0_19:
	mov	x0, x19
	bl	_free
LBB0_20:
	mov	x0, x25
	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 AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.loh AdrpAdd	Lloh2, Lloh3
	.loh AdrpAdd	Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpAdd	Lloh9, Lloh10
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"  out of memory"

	.comm	_FDT_ERR_NOSPACE,4,2            ; @FDT_ERR_NOSPACE
l_.str.1:                               ; @.str.1
	.asciz	"  phandle %d not found"

	.comm	_DTOVERRIDE_END,4,2             ; @DTOVERRIDE_END
.subsections_via_symbols
