	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function unflatten_tree
_unflatten_tree:                        ## @unflatten_tree
	.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
	pushq	%rax
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%ecx, %r15d
	movq	%rdx, -48(%rbp)                 ## 8-byte Spill
	movq	%rsi, %r14
	movq	%rdi, %rbx
	xorl	%edi, %edi
	xorl	%esi, %esi
	callq	_build_node
	movq	%rax, %r12
	movq	%rbx, %rdi
	callq	_flat_read_string
	movq	%rax, %r13
	movq	_FTF_FULLPATH@GOTPCREL(%rip), %rcx
	testl	%r15d, (%rcx)
	je	LBB0_2
## %bb.1:
	movq	-48(%rbp), %rdi                 ## 8-byte Reload
	movq	%r13, %rsi
	callq	_nodename_from_path
LBB0_2:
	movq	%r13, -48(%rbp)                 ## 8-byte Spill
	movq	%rax, (%r12)
	leaq	LJTI0_0(%rip), %r13
	jmp	LBB0_3
LBB0_9:                                 ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.1(%rip), %rdi
	xorl	%eax, %eax
	callq	_die
	.p2align	4, 0x90
LBB0_3:                                 ## =>This Inner Loop Header: Depth=1
	movq	%rbx, %rdi
	callq	_flat_read_word
                                        ## kill: def $eax killed $eax def $rax
	leal	-128(%rax), %ecx
	cmpl	$4, %ecx
	ja	LBB0_12
## %bb.4:                               ##   in Loop: Header=BB0_3 Depth=1
	movslq	(%r13,%rcx,4), %rax
	addq	%r13, %rax
	jmpq	*%rax
LBB0_5:                                 ##   in Loop: Header=BB0_3 Depth=1
	cmpl	$0, 8(%r12)
	je	LBB0_7
## %bb.6:                               ##   in Loop: Header=BB0_3 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_fprintf
LBB0_7:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r15d, %edx
	callq	_flat_read_property
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_add_property
	jmp	LBB0_3
LBB0_12:                                ##   in Loop: Header=BB0_3 Depth=1
	leaq	L_.str.3(%rip), %rdi
	movl	%eax, %esi
	xorl	%eax, %eax
	callq	_die
	jmp	LBB0_3
LBB0_10:                                ##   in Loop: Header=BB0_3 Depth=1
	movq	_FTF_NOPS@GOTPCREL(%rip), %rax
	testl	%r15d, (%rax)
	jne	LBB0_3
## %bb.11:                              ##   in Loop: Header=BB0_3 Depth=1
	movq	_stderr@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str.2(%rip), %rsi
	callq	_fprintf
	jmp	LBB0_3
LBB0_8:                                 ##   in Loop: Header=BB0_3 Depth=1
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movq	-48(%rbp), %rdx                 ## 8-byte Reload
	movl	%r15d, %ecx
	callq	_unflatten_tree
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_add_child
	jmp	LBB0_3
LBB0_13:
	movq	%r12, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
	.p2align	2, 0x90
	.data_region jt32
.set L0_0_set_5, LBB0_5-LJTI0_0
.set L0_0_set_10, LBB0_10-LJTI0_0
.set L0_0_set_13, LBB0_13-LJTI0_0
.set L0_0_set_9, LBB0_9-LJTI0_0
.set L0_0_set_8, LBB0_8-LJTI0_0
LJTI0_0:
	.long	L0_0_set_5
	.long	L0_0_set_10
	.long	L0_0_set_13
	.long	L0_0_set_9
	.long	L0_0_set_8
	.end_data_region
                                        ## -- End function
	.comm	_FTF_FULLPATH,4,2               ## @FTF_FULLPATH
	.comm	_stderr,4,2                     ## @stderr
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Warning: Flat tree input has subnodes preceding a property.\n"

L_.str.1:                               ## @.str.1
	.asciz	"Premature FDT_END in device tree blob\n"

	.comm	_FTF_NOPS,4,2                   ## @FTF_NOPS
L_.str.2:                               ## @.str.2
	.asciz	"Warning: NOP tag found in flat tree version <16\n"

L_.str.3:                               ## @.str.3
	.asciz	"Invalid opcode word %08x in device tree blob\n"

	.no_dead_strip	_unflatten_tree
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function unflatten_tree
_unflatten_tree:                        ; @unflatten_tree
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #112
	.cfi_def_cfa_offset 112
	stp	x28, x27, [sp, #16]             ; 16-byte Folded Spill
	stp	x26, x25, [sp, #32]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #48]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #64]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #80]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #96]             ; 16-byte Folded Spill
	add	x29, sp, #96
	.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, x3
	mov	x24, x2
	mov	x20, x1
	mov	x21, x0
	mov	x0, #0
	mov	x1, #0
	bl	_build_node
	mov	x22, x0
	mov	x0, x21
	bl	_flat_read_string
	mov	x23, x0
Lloh0:
	adrp	x8, _FTF_FULLPATH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FTF_FULLPATH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	tst	w8, w19
	b.eq	LBB0_2
; %bb.1:
	mov	x0, x24
	mov	x1, x23
	bl	_nodename_from_path
LBB0_2:
	str	x0, [x22]
Lloh3:
	adrp	x24, l_.str.3@PAGE
Lloh4:
	add	x24, x24, l_.str.3@PAGEOFF
Lloh5:
	adrp	x28, lJTI0_0@PAGE
Lloh6:
	add	x28, x28, lJTI0_0@PAGEOFF
Lloh7:
	adrp	x26, _stderr@GOTPAGE
Lloh8:
	ldr	x26, [x26, _stderr@GOTPAGEOFF]
Lloh9:
	adrp	x25, _FTF_NOPS@GOTPAGE
Lloh10:
	ldr	x25, [x25, _FTF_NOPS@GOTPAGEOFF]
Lloh11:
	adrp	x27, l_.str.1@PAGE
Lloh12:
	add	x27, x27, l_.str.1@PAGEOFF
	b	LBB0_4
LBB0_3:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x27
	bl	_die
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	mov	x0, x21
	bl	_flat_read_word
                                        ; kill: def $w0 killed $w0 def $x0
	sub	w8, w0, #128
	cmp	w8, #4
	b.hi	LBB0_9
; %bb.5:                                ;   in Loop: Header=BB0_4 Depth=1
	adr	x9, LBB0_3
	ldrb	w10, [x28, x8]
	add	x9, x9, x10, lsl #2
	br	x9
LBB0_6:                                 ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x22, #8]
	cbz	w8, LBB0_8
; %bb.7:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26]
Lloh13:
	adrp	x1, l_.str@PAGE
Lloh14:
	add	x1, x1, l_.str@PAGEOFF
	bl	_fprintf
LBB0_8:                                 ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x19
	bl	_flat_read_property
	mov	x1, x0
	mov	x0, x22
	bl	_add_property
	b	LBB0_4
LBB0_9:                                 ;   in Loop: Header=BB0_4 Depth=1
	str	x0, [sp]
	mov	x0, x24
	bl	_die
	b	LBB0_4
LBB0_10:                                ;   in Loop: Header=BB0_4 Depth=1
	ldr	w8, [x25]
	tst	w8, w19
	b.ne	LBB0_4
; %bb.11:                               ;   in Loop: Header=BB0_4 Depth=1
	ldr	w0, [x26]
Lloh15:
	adrp	x1, l_.str.2@PAGE
Lloh16:
	add	x1, x1, l_.str.2@PAGEOFF
	bl	_fprintf
	b	LBB0_4
LBB0_12:                                ;   in Loop: Header=BB0_4 Depth=1
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	mov	x3, x19
	bl	_unflatten_tree
	mov	x1, x0
	mov	x0, x22
	bl	_add_child
	b	LBB0_4
LBB0_13:
	mov	x0, x22
	ldp	x29, x30, [sp, #96]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #80]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #64]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #48]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #32]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp, #16]             ; 16-byte Folded Reload
	add	sp, sp, #112
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh11, Lloh12
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh7, Lloh8
	.loh AdrpAdd	Lloh5, Lloh6
	.loh AdrpAdd	Lloh3, Lloh4
	.loh AdrpAdd	Lloh13, Lloh14
	.loh AdrpAdd	Lloh15, Lloh16
	.cfi_endproc
	.section	__TEXT,__const
lJTI0_0:
	.byte	(LBB0_6-LBB0_3)>>2
	.byte	(LBB0_10-LBB0_3)>>2
	.byte	(LBB0_13-LBB0_3)>>2
	.byte	(LBB0_3-LBB0_3)>>2
	.byte	(LBB0_12-LBB0_3)>>2
                                        ; -- End function
	.comm	_FTF_FULLPATH,4,2               ; @FTF_FULLPATH
	.comm	_stderr,4,2                     ; @stderr
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Warning: Flat tree input has subnodes preceding a property.\n"

l_.str.1:                               ; @.str.1
	.asciz	"Premature FDT_END in device tree blob\n"

	.comm	_FTF_NOPS,4,2                   ; @FTF_NOPS
l_.str.2:                               ; @.str.2
	.asciz	"Warning: NOP tag found in flat tree version <16\n"

l_.str.3:                               ; @.str.3
	.asciz	"Invalid opcode word %08x in device tree blob\n"

	.no_dead_strip	_unflatten_tree
.subsections_via_symbols
