	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_path_offset_namelen        ## -- Begin function fdt_path_offset_namelen
	.p2align	4, 0x90
_fdt_path_offset_namelen:               ## @fdt_path_offset_namelen
	.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	$24, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movl	%edx, %r15d
	movq	%rsi, %r13
	movslq	%edx, %r14
	addq	%rsi, %r14
	movq	%rdi, -56(%rbp)                 ## 8-byte Spill
	callq	_FDT_CHECK_HEADER
	xorl	%r12d, %r12d
	cmpb	$47, (%r13)
	movq	%r13, %rbx
	je	LBB0_4
## %bb.1:
	movq	%r13, %rdi
	movl	$47, %esi
	movl	%r15d, %edx
	callq	_memchr
	movq	%rax, %rbx
	testq	%rax, %rax
	cmoveq	%r14, %rbx
	movl	%ebx, %edx
	subl	%r13d, %edx
	movq	-56(%rbp), %r12                 ## 8-byte Reload
	movq	%r12, %rdi
	movq	%r13, %rsi
	callq	_fdt_get_alias_namelen
	testq	%rax, %rax
	je	LBB0_2
## %bb.3:
	movq	%r12, %rdi
	movq	%rax, %rsi
	callq	_fdt_path_offset
	movl	%eax, %r12d
LBB0_4:
	addl	%r13d, %r15d
LBB0_5:                                 ## =>This Loop Header: Depth=1
                                        ##     Child Loop BB0_7 Depth 2
	cmpq	%r14, %rbx
	jae	LBB0_10
## %bb.6:                               ##   in Loop: Header=BB0_5 Depth=1
	movl	%r15d, %eax
	movl	%ebx, %r15d
	.p2align	4, 0x90
LBB0_7:                                 ##   Parent Loop BB0_5 Depth=1
                                        ## =>  This Inner Loop Header: Depth=2
	cmpb	$47, (%rbx)
	jne	LBB0_9
## %bb.8:                               ##   in Loop: Header=BB0_7 Depth=2
	incq	%rbx
	incl	%r15d
	cmpq	%r14, %rbx
	jne	LBB0_7
	jmp	LBB0_10
	.p2align	4, 0x90
LBB0_9:                                 ##   in Loop: Header=BB0_5 Depth=1
	movl	%eax, %edx
	movl	%eax, -44(%rbp)                 ## 4-byte Spill
	subl	%r15d, %edx
	movq	%rbx, %rdi
	movl	$47, %esi
	callq	_memchr
	movq	%rax, %r13
	testq	%rax, %rax
	cmoveq	%r14, %r13
	movl	%r13d, %ecx
	subl	%r15d, %ecx
	movl	-44(%rbp), %r15d                ## 4-byte Reload
	movq	-56(%rbp), %rdi                 ## 8-byte Reload
	movl	%r12d, %esi
	movq	%rbx, %rdx
	callq	_fdt_subnode_offset_namelen
	movl	%eax, %r12d
	movq	%r13, %rbx
	testl	%eax, %eax
	jns	LBB0_5
	jmp	LBB0_10
LBB0_2:
	movq	_FDT_ERR_BADPATH@GOTPCREL(%rip), %rax
	xorl	%r12d, %r12d
	subl	(%rax), %r12d
LBB0_10:
	movl	%r12d, %eax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FDT_ERR_BADPATH,4,2            ## @FDT_ERR_BADPATH
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_path_offset_namelen        ; -- Begin function fdt_path_offset_namelen
	.p2align	2
_fdt_path_offset_namelen:               ; @fdt_path_offset_namelen
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	mov	x22, x2
	mov	x23, x1
	mov	x19, x0
	add	x24, x1, w2, sxtw
	bl	_FDT_CHECK_HEADER
	ldrb	w8, [x23]
	cmp	w8, #47
	b.ne	LBB0_2
; %bb.1:
	mov	w21, #0
	mov	x20, x23
	b	LBB0_4
LBB0_2:
	mov	x0, x23
	mov	w1, #47
	mov	x2, x22
	bl	_memchr
	cmp	x0, #0
	csel	x20, x24, x0, eq
	sub	w2, w20, w23
	mov	x0, x19
	mov	x1, x23
	bl	_fdt_get_alias_namelen
	cbz	x0, LBB0_10
; %bb.3:
	mov	x1, x0
	mov	x0, x19
	bl	_fdt_path_offset
	mov	x21, x0
LBB0_4:
	add	w22, w22, w23
LBB0_5:                                 ; =>This Loop Header: Depth=1
                                        ;     Child Loop BB0_7 Depth 2
	cmp	x20, x24
	b.hs	LBB0_11
; %bb.6:                                ;   in Loop: Header=BB0_5 Depth=1
	mov	x23, x20
LBB0_7:                                 ;   Parent Loop BB0_5 Depth=1
                                        ; =>  This Inner Loop Header: Depth=2
	ldrb	w8, [x20]
	cmp	w8, #47
	b.ne	LBB0_9
; %bb.8:                                ;   in Loop: Header=BB0_7 Depth=2
	add	x20, x20, #1
	add	w23, w23, #1
	cmp	x20, x24
	b.ne	LBB0_7
	b	LBB0_11
LBB0_9:                                 ;   in Loop: Header=BB0_5 Depth=1
	sub	w2, w22, w23
	mov	x0, x20
	mov	w1, #47
	bl	_memchr
	cmp	x0, #0
	csel	x25, x24, x0, eq
	sub	w3, w25, w23
	mov	x0, x19
	mov	x1, x21
	mov	x2, x20
	bl	_fdt_subnode_offset_namelen
	mov	x21, x0
	mov	x20, x25
	tbz	w0, #31, LBB0_5
	b	LBB0_11
LBB0_10:
Lloh0:
	adrp	x8, _FDT_ERR_BADPATH@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FDT_ERR_BADPATH@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w21, w8
LBB0_11:
	mov	x0, x21
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_FDT_ERR_BADPATH,4,2            ; @FDT_ERR_BADPATH
.subsections_via_symbols
