	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_get_path                   ## -- Begin function fdt_get_path
	.p2align	4, 0x90
_fdt_get_path:                          ## @fdt_get_path
	.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	%ecx, %ebx
	movq	%rdx, -72(%rbp)                 ## 8-byte Spill
	movl	%esi, %r14d
	movq	%rdi, -88(%rbp)                 ## 8-byte Spill
	callq	_FDT_CHECK_HEADER
	movl	%ebx, -76(%rbp)                 ## 4-byte Spill
	cmpl	$1, %ebx
	jg	LBB0_2
LBB0_1:
	movq	_FDT_ERR_NOSPACE@GOTPCREL(%rip), %rax
	jmp	LBB0_35
LBB0_2:
	movl	$0, -44(%rbp)
	testl	%r14d, %r14d
	js	LBB0_32
## %bb.3:
	movl	%r14d, -48(%rbp)                ## 4-byte Spill
	movq	-72(%rbp), %rax                 ## 8-byte Reload
	leaq	-2(%rax), %r14
	xorl	%eax, %eax
	movabsq	$-4294967296, %r15              ## imm = 0xFFFFFFFF00000000
	xorl	%ebx, %ebx
	xorl	%r12d, %r12d
	xorl	%r13d, %r13d
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_10 Depth 2
                                        ##     Child Loop BB0_13 Depth 2
                                        ##       Child Loop BB0_14 Depth 3
                                        ##       Child Loop BB0_16 Depth 3
	movl	%r13d, %ecx
	subl	%eax, %ecx
	jl	LBB0_27
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	jle	LBB0_6
## %bb.7:                               ##   in Loop: Header=BB0_4 Depth=1
	leal	1(%rax), %edx
	testb	$1, %cl
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_4 Depth=1
	movl	%r13d, %ecx
	cmpl	%edx, %r13d
	jne	LBB0_13
	jmp	LBB0_18
	.p2align	4, 0x90
LBB0_6:                                 ##   in Loop: Header=BB0_4 Depth=1
	movq	%r13, -64(%rbp)                 ## 8-byte Spill
	jmp	LBB0_19
LBB0_9:                                 ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r12d, %rcx
	addq	%r14, %rcx
	.p2align	4, 0x90
LBB0_10:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	decl	%r12d
	cmpb	$47, (%rcx)
	leaq	-1(%rcx), %rcx
	jne	LBB0_10
## %bb.11:                              ##   in Loop: Header=BB0_4 Depth=1
	leal	-1(%r13), %ecx
	cmpl	%edx, %r13d
	je	LBB0_18
	.p2align	4, 0x90
LBB0_13:                                ##   Parent Loop BB0_4 Depth=1
                                        ## =>  This Loop Header: Depth=2
                                        ##       Child Loop BB0_14 Depth 3
                                        ##       Child Loop BB0_16 Depth 3
	movslq	%r12d, %rdi
	leaq	(%r14,%rdi), %rsi
	movq	%rdi, %rdx
	shlq	$32, %rdx
	decl	%edi
	.p2align	4, 0x90
LBB0_14:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_13 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	movl	%edi, %r12d
	addq	%r15, %rdx
	cmpb	$47, (%rsi)
	leaq	-1(%rsi), %rsi
	leal	-1(%r12), %edi
	jne	LBB0_14
## %bb.15:                              ##   in Loop: Header=BB0_13 Depth=2
	movslq	%r12d, %rdx
	addq	%r14, %rdx
	.p2align	4, 0x90
LBB0_16:                                ##   Parent Loop BB0_4 Depth=1
                                        ##     Parent Loop BB0_13 Depth=2
                                        ## =>    This Inner Loop Header: Depth=3
	decl	%r12d
	cmpb	$47, (%rdx)
	leaq	-1(%rdx), %rdx
	jne	LBB0_16
## %bb.17:                              ##   in Loop: Header=BB0_13 Depth=2
	addl	$-2, %ecx
	cmpl	%eax, %ecx
	jg	LBB0_13
LBB0_18:                                ##   in Loop: Header=BB0_4 Depth=1
                                        ## kill: def $eax killed $eax killed $rax def $rax
	movq	%rax, -64(%rbp)                 ## 8-byte Spill
LBB0_19:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	leaq	-52(%rbp), %rdx
	callq	_fdt_get_name
	movl	-52(%rbp), %edx
	testq	%rax, %rax
	je	LBB0_20
## %bb.21:                              ##   in Loop: Header=BB0_4 Depth=1
	leal	(%rdx,%r12), %ecx
	cmpl	-76(%rbp), %ecx                 ## 4-byte Folded Reload
	jge	LBB0_22
## %bb.23:                              ##   in Loop: Header=BB0_4 Depth=1
	movslq	%r12d, %r12
	movq	-72(%rbp), %r13                 ## 8-byte Reload
	leaq	(%r12,%r13), %rdi
	movq	%rax, %rsi
                                        ## kill: def $edx killed $edx killed $rdx
	callq	_memcpy
	movslq	-52(%rbp), %rax
	addq	%r12, %rax
	leal	1(%rax), %r12d
	movb	$47, (%r13,%rax)
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	incl	%r13d
	cmpl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	jne	LBB0_27
	jmp	LBB0_25
	.p2align	4, 0x90
LBB0_22:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-64(%rbp), %r13                 ## 8-byte Reload
	cmpl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	je	LBB0_25
LBB0_27:                                ##   in Loop: Header=BB0_4 Depth=1
	movq	-88(%rbp), %rdi                 ## 8-byte Reload
	movl	%ebx, %esi
	leaq	-44(%rbp), %rdx
	callq	_fdt_next_node
	movl	%eax, %ebx
	testl	%eax, %eax
	js	LBB0_30
## %bb.28:                              ##   in Loop: Header=BB0_4 Depth=1
	cmpl	-48(%rbp), %ebx                 ## 4-byte Folded Reload
	jg	LBB0_30
## %bb.29:                              ##   in Loop: Header=BB0_4 Depth=1
	movl	-44(%rbp), %eax
	jmp	LBB0_4
LBB0_30:
	testl	%ebx, %ebx
	jns	LBB0_32
## %bb.31:
	movq	_FDT_ERR_NOTFOUND@GOTPCREL(%rip), %rax
	xorl	%ecx, %ecx
	subl	(%rax), %ecx
	cmpl	%ecx, %ebx
	je	LBB0_32
## %bb.33:
	movq	_FDT_ERR_BADOFFSET@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	addl	%ebx, %eax
	jne	LBB0_36
## %bb.34:
	movq	_FDT_ERR_BADSTRUCTURE@GOTPCREL(%rip), %rax
	jmp	LBB0_35
LBB0_32:
	movq	_FDT_ERR_BADOFFSET@GOTPCREL(%rip), %rax
LBB0_35:
	xorl	%ebx, %ebx
	subl	(%rax), %ebx
LBB0_36:
	movl	%ebx, %eax
	addq	$56, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_20:
	movl	%edx, %ebx
	jmp	LBB0_36
LBB0_25:
	cmpl	-44(%rbp), %r13d
	jle	LBB0_1
## %bb.26:
	xorl	%eax, %eax
	cmpl	$2, %r12d
	setge	%al
	subl	%eax, %r12d
	movslq	%r12d, %rax
	movq	-72(%rbp), %rcx                 ## 8-byte Reload
	movb	$0, (%rcx,%rax)
	movl	%r12d, %ebx
	jmp	LBB0_36
	.cfi_endproc
                                        ## -- End function
	.comm	_FDT_ERR_NOSPACE,4,2            ## @FDT_ERR_NOSPACE
	.comm	_FDT_ERR_NOTFOUND,4,2           ## @FDT_ERR_NOTFOUND
	.comm	_FDT_ERR_BADOFFSET,4,2          ## @FDT_ERR_BADOFFSET
	.comm	_FDT_ERR_BADSTRUCTURE,4,2       ## @FDT_ERR_BADSTRUCTURE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_get_path                   ; -- Begin function fdt_get_path
	.p2align	2
_fdt_get_path:                          ; @fdt_get_path
	.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	x21, x3
	mov	x20, x2
	mov	x22, x1
	mov	x23, x0
	bl	_FDT_CHECK_HEADER
	cmp	w21, #1
	b.gt	LBB0_2
LBB0_1:
Lloh0:
	adrp	x8, _FDT_ERR_NOSPACE@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FDT_ERR_NOSPACE@GOTPAGEOFF]
	b	LBB0_21
LBB0_2:
	str	wzr, [sp, #12]
	tbnz	w22, #31, LBB0_20
; %bb.3:
	mov	w8, #0
	mov	w19, #0
	mov	w26, #0
	mov	w24, #0
	sub	x25, x20, #2
	mov	w27, #47
	cmp	w24, w8
	b.lt	LBB0_13
LBB0_4:
	b.le	LBB0_9
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_6 Depth 2
	add	x9, x25, w26, sxtw
LBB0_6:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w10, [x9], #-1
	sub	w26, w26, #1
	cmp	w10, #47
	b.ne	LBB0_6
; %bb.7:                                ;   in Loop: Header=BB0_5 Depth=1
	sub	w24, w24, #1
	cmp	w24, w8
	b.gt	LBB0_5
; %bb.8:
	mov	x24, x8
LBB0_9:
	add	x2, sp, #8
	mov	x0, x23
	mov	x1, x19
	bl	_fdt_get_name
	ldr	w2, [sp, #8]
	cbz	x0, LBB0_23
; %bb.10:
	add	w8, w2, w26
	cmp	w8, w21
	b.ge	LBB0_12
; %bb.11:
	mov	x1, x0
	sxtw	x26, w26
	add	x0, x20, x26
	bl	_memcpy
	ldrsw	x8, [sp, #8]
	add	x8, x8, x26
	add	w26, w8, #1
	strb	w27, [x20, x8]
	add	w24, w24, #1
LBB0_12:
	cmp	w19, w22
	b.eq	LBB0_24
LBB0_13:                                ; =>This Inner Loop Header: Depth=1
	add	x2, sp, #12
	mov	x0, x23
	mov	x1, x19
	bl	_fdt_next_node
	mov	x19, x0
	tbnz	w0, #31, LBB0_16
; %bb.14:                               ;   in Loop: Header=BB0_13 Depth=1
	cmp	w19, w22
	b.gt	LBB0_16
; %bb.15:                               ;   in Loop: Header=BB0_13 Depth=1
	ldr	w8, [sp, #12]
	cmp	w24, w8
	b.ge	LBB0_4
	b	LBB0_13
LBB0_16:
	tbz	w19, #31, LBB0_20
; %bb.17:
Lloh2:
	adrp	x8, _FDT_ERR_NOTFOUND@GOTPAGE
Lloh3:
	ldr	x8, [x8, _FDT_ERR_NOTFOUND@GOTPAGEOFF]
Lloh4:
	ldr	w8, [x8]
	neg	w8, w8
	cmp	w19, w8
	b.eq	LBB0_20
; %bb.18:
Lloh5:
	adrp	x8, _FDT_ERR_BADOFFSET@GOTPAGE
Lloh6:
	ldr	x8, [x8, _FDT_ERR_BADOFFSET@GOTPAGEOFF]
Lloh7:
	ldr	w8, [x8]
	cmn	w19, w8
	b.ne	LBB0_22
; %bb.19:
Lloh8:
	adrp	x8, _FDT_ERR_BADSTRUCTURE@GOTPAGE
Lloh9:
	ldr	x8, [x8, _FDT_ERR_BADSTRUCTURE@GOTPAGEOFF]
	b	LBB0_21
LBB0_20:
Lloh10:
	adrp	x8, _FDT_ERR_BADOFFSET@GOTPAGE
Lloh11:
	ldr	x8, [x8, _FDT_ERR_BADOFFSET@GOTPAGEOFF]
LBB0_21:
	ldr	w8, [x8]
	neg	w19, w8
LBB0_22:
	mov	x0, x19
	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
LBB0_23:
	mov	x19, x2
	b	LBB0_22
LBB0_24:
	ldr	w8, [sp, #12]
	cmp	w24, w8
	b.le	LBB0_1
; %bb.25:
	cmp	w26, #1
	cset	w8, gt
	sub	w19, w26, w8
	strb	wzr, [x20, w19, sxtw]
	b	LBB0_22
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh10, Lloh11
	.cfi_endproc
                                        ; -- End function
	.comm	_FDT_ERR_NOSPACE,4,2            ; @FDT_ERR_NOSPACE
	.comm	_FDT_ERR_NOTFOUND,4,2           ; @FDT_ERR_NOTFOUND
	.comm	_FDT_ERR_BADOFFSET,4,2          ; @FDT_ERR_BADOFFSET
	.comm	_FDT_ERR_BADSTRUCTURE,4,2       ; @FDT_ERR_BADSTRUCTURE
.subsections_via_symbols
