	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OfwCopyDeviceTree              ## -- Begin function OfwCopyDeviceTree
	.p2align	4, 0x90
_OfwCopyDeviceTree:                     ## @OfwCopyDeviceTree
	.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	$712, %rsp                      ## imm = 0x2C8
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%r9, -712(%rbp)                 ## 8-byte Spill
	movq	%r8, -704(%rbp)                 ## 8-byte Spill
	movq	%rcx, %r12
	movl	%edx, %ebx
	movl	%edi, %r14d
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	leaq	-688(%rbp), %rdi
	callq	_NarrowToWide
	movq	_AdapterClass@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_MultiFunctionAdapter@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	leaq	-692(%rbp), %rax
	movq	%rax, 24(%rsp)
	xorps	%xmm0, %xmm0
	movups	%xmm0, (%rsp)
	movl	$0, 16(%rsp)
	movl	%r14d, %edi
	xorl	%ecx, %ecx
	xorl	%r8d, %r8d
	movl	$-1, %r9d
	callq	_FldrCreateComponentKey
	leaq	L_.str(%rip), %r15
	leaq	-112(%rbp), %rdx
	movl	%ebx, %edi
	movq	%r15, %rsi
	callq	_ofw_nextprop
	cmpl	$1, %eax
	jne	LBB0_5
## %bb.1:
	leaq	-112(%rbp), %r13
	leaq	L_.str.1(%rip), %r14
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r13, %rsi
	callq	_ofw_getproplen
	cmpl	$257, %eax                      ## imm = 0x101
	jb	LBB0_12
## %bb.3:                               ##   in Loop: Header=BB0_2 Depth=1
	movq	%r14, %rdi
	movq	%r13, %rsi
	movl	%eax, %edx
	callq	_printf
LBB0_4:                                 ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	movq	%r15, %rsi
	movq	%r13, %rdx
	callq	_ofw_nextprop
	cmpl	$1, %eax
	je	LBB0_2
	jmp	LBB0_5
LBB0_12:                                ##   in Loop: Header=BB0_2 Depth=1
	movl	%ebx, %edi
	movq	%r13, %rsi
	leaq	-368(%rbp), %r15
	movq	%r15, %rdx
	movl	$256, %ecx                      ## imm = 0x100
	callq	_ofw_getprop
	movq	-112(%rbp), %rax
	movabsq	$8385532508832687460, %rcx      ## imm = 0x745F656369766564
	xorq	%rcx, %rax
	movl	-104(%rbp), %ecx
	xorq	$6647929, %rcx                  ## imm = 0x657079
	orq	%rax, %rcx
	jne	LBB0_14
## %bb.13:                              ##   in Loop: Header=BB0_2 Depth=1
	leaq	-432(%rbp), %rdi
	movq	%r15, %rsi
	callq	_strcpy
LBB0_14:                                ##   in Loop: Header=BB0_2 Depth=1
	leaq	-688(%rbp), %rdi
	movq	%r13, %rsi
	callq	_NarrowToWide
	movq	%r15, %rdi
	movq	%r13, %rsi
	callq	_strcpy
	jmp	LBB0_4
LBB0_5:
	movl	%ebx, %edi
	callq	_ofw_child
	testl	%eax, %eax
	movq	-712(%rbp), %r15                ## 8-byte Reload
	movq	-704(%rbp), %r13                ## 8-byte Reload
	je	LBB0_10
## %bb.6:
	movl	%eax, %ebx
	leaq	-368(%rbp), %r14
	jmp	LBB0_7
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_7 Depth=1
	movl	%ebx, %edi
	callq	_ofw_peer
	movl	%eax, %ebx
	testl	%eax, %eax
	je	LBB0_10
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movl	%ebx, %edi
	movq	%r14, %rsi
	movl	$256, %edx                      ## imm = 0x100
	callq	_ofw_package_to_path
	movq	%r14, %rdi
	movl	$47, %esi
	callq	_strrchr
	testq	%rax, %rax
	je	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=1
	incq	%rax
	movl	-692(%rbp), %edi
	movq	%rax, %rsi
	movl	%ebx, %edx
	movq	%r12, %rcx
	movq	%r13, %r8
	movq	%r15, %r9
	callq	_OfwCopyDeviceTree
	jmp	LBB0_9
LBB0_10:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_15
## %bb.11:
	addq	$712, %rsp                      ## imm = 0x2C8
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_15:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_AdapterClass,4,2               ## @AdapterClass
	.comm	_MultiFunctionAdapter,4,2       ## @MultiFunctionAdapter
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.space	1

L_.str.1:                               ## @.str.1
	.asciz	"Warning: not getting prop %s (too long: %d)\n"

L_.str.2:                               ## @.str.2
	.asciz	"device_type"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_OfwCopyDeviceTree              ; -- Begin function OfwCopyDeviceTree
	.p2align	2
_OfwCopyDeviceTree:                     ; @OfwCopyDeviceTree
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	sub	sp, sp, #672
	mov	x19, x5
	mov	x20, x4
	mov	x21, x3
	mov	x22, x2
	mov	x23, x0
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
	add	x0, sp, #24
	bl	_NarrowToWide
Lloh3:
	adrp	x8, _AdapterClass@GOTPAGE
Lloh4:
	ldr	x8, [x8, _AdapterClass@GOTPAGEOFF]
Lloh5:
	ldr	w1, [x8]
Lloh6:
	adrp	x8, _MultiFunctionAdapter@GOTPAGE
Lloh7:
	ldr	x8, [x8, _MultiFunctionAdapter@GOTPAGEOFF]
Lloh8:
	ldr	w2, [x8]
	add	x8, sp, #20
	str	x8, [sp, #8]
	str	wzr, [sp]
	mov	x0, x23
	mov	w3, #0
	mov	w4, #0
	mov	w5, #-1
	mov	x6, #0
	mov	x7, #0
	bl	_FldrCreateComponentKey
Lloh9:
	adrp	x1, l_.str@PAGE
Lloh10:
	add	x1, x1, l_.str@PAGEOFF
	sub	x2, x29, #152
	mov	x0, x22
	bl	_ofw_nextprop
	cmp	w0, #1
	b.ne	LBB0_8
; %bb.1:
	sub	x25, x29, #152
Lloh11:
	adrp	x24, l_.str@PAGE
Lloh12:
	add	x24, x24, l_.str@PAGEOFF
	mov	x26, #25956
	movk	x26, #26998, lsl #16
	movk	x26, #25955, lsl #32
	movk	x26, #29791, lsl #48
	mov	w27, #28793
	movk	w27, #101, lsl #16
Lloh13:
	adrp	x23, l_.str.1@PAGE
Lloh14:
	add	x23, x23, l_.str.1@PAGEOFF
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	sub	x1, x29, #152
	mov	x0, x22
	bl	_ofw_getproplen
	cmp	w0, #257
	b.lo	LBB0_5
; %bb.3:                                ;   in Loop: Header=BB0_2 Depth=1
	mov	x2, x0
	sub	x1, x29, #152
	mov	x0, x23
	bl	_printf
	sub	x2, x29, #152
	mov	x0, x22
	mov	x1, x24
LBB0_4:                                 ;   in Loop: Header=BB0_2 Depth=1
	bl	_ofw_nextprop
	cmp	w0, #1
	b.eq	LBB0_2
	b	LBB0_8
LBB0_5:                                 ;   in Loop: Header=BB0_2 Depth=1
	sub	x1, x29, #152
	add	x2, sp, #344
	mov	x0, x22
	mov	w3, #256
	bl	_ofw_getprop
	ldr	x8, [x25]
	eor	x8, x8, x26
	ldur	w9, [x29, #-144]
	eor	x9, x9, x27
	orr	x8, x8, x9
	cbnz	x8, LBB0_7
; %bb.6:                                ;   in Loop: Header=BB0_2 Depth=1
	add	x0, sp, #280
	add	x1, sp, #344
	bl	_strcpy
LBB0_7:                                 ;   in Loop: Header=BB0_2 Depth=1
	add	x24, sp, #344
	add	x0, sp, #24
	sub	x1, x29, #152
	bl	_NarrowToWide
	add	x0, sp, #344
	sub	x1, x29, #152
	bl	_strcpy
	add	x1, sp, #344
	sub	x2, x29, #152
	mov	x0, x22
	b	LBB0_4
LBB0_8:
	mov	x0, x22
	bl	_ofw_child
	cbz	w0, LBB0_13
; %bb.9:
	mov	x22, x0
	b	LBB0_11
LBB0_10:                                ;   in Loop: Header=BB0_11 Depth=1
	mov	x0, x22
	bl	_ofw_peer
	mov	x22, x0
	cbz	w0, LBB0_13
LBB0_11:                                ; =>This Inner Loop Header: Depth=1
	add	x1, sp, #344
	mov	x0, x22
	mov	w2, #256
	bl	_ofw_package_to_path
	add	x0, sp, #344
	mov	w1, #47
	bl	_strrchr
	cbz	x0, LBB0_10
; %bb.12:                               ;   in Loop: Header=BB0_11 Depth=1
	add	x1, x0, #1
	ldr	w0, [sp, #20]
	mov	x2, x22
	mov	x3, x21
	mov	x4, x20
	mov	x5, x19
	bl	_OfwCopyDeviceTree
	b	LBB0_10
LBB0_13:
	ldur	x8, [x29, #-88]
Lloh15:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh16:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh17:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_15
; %bb.14:
	add	sp, sp, #672
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_15:
	bl	___stack_chk_fail
	.loh AdrpAdd	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.cfi_endproc
                                        ; -- End function
	.comm	_AdapterClass,4,2               ; @AdapterClass
	.comm	_MultiFunctionAdapter,4,2       ; @MultiFunctionAdapter
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.space	1

l_.str.1:                               ; @.str.1
	.asciz	"Warning: not getting prop %s (too long: %d)\n"

l_.str.2:                               ; @.str.2
	.asciz	"device_type"

.subsections_via_symbols
