	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_add_subnode_namelen        ## -- Begin function fdt_add_subnode_namelen
	.p2align	4, 0x90
_fdt_add_subnode_namelen:               ## @fdt_add_subnode_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	$40, %rsp
	.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, %rbx
	movl	%esi, %r14d
	movq	%rdi, %r12
	callq	_FDT_RW_CHECK_HEADER
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%rbx, %rdx
	movl	%r15d, %ecx
	callq	_fdt_subnode_offset_namelen
	testl	%eax, %eax
	js	LBB0_2
## %bb.1:
	movq	_FDT_ERR_EXISTS@GOTPCREL(%rip), %rcx
	xorl	%eax, %eax
	subl	(%rcx), %eax
	jmp	LBB0_8
LBB0_2:
	movq	_FDT_ERR_NOTFOUND@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	jne	LBB0_8
## %bb.3:
	movq	%rbx, -64(%rbp)                 ## 8-byte Spill
	movq	%r15, -72(%rbp)                 ## 8-byte Spill
	leaq	-52(%rbp), %r13
	movq	%r12, %rdi
	movl	%r14d, %esi
	movq	%r13, %rdx
	callq	_fdt_next_tag
	movq	_FDT_PROP@GOTPCREL(%rip), %r14
	movq	_FDT_NOP@GOTPCREL(%rip), %r15
	.p2align	4, 0x90
LBB0_4:                                 ## =>This Inner Loop Header: Depth=1
	movl	-52(%rbp), %ebx
	movq	%r12, %rdi
	movl	%ebx, %esi
	movq	%r13, %rdx
	callq	_fdt_next_tag
	cmpq	(%r14), %rax
	je	LBB0_4
## %bb.5:                               ##   in Loop: Header=BB0_4 Depth=1
	cmpq	(%r15), %rax
	je	LBB0_4
## %bb.6:
	movq	%r12, %rdi
	movl	%ebx, %esi
	callq	__fdt_offset_ptr_w
	movq	%rax, %r13
	movq	-72(%rbp), %r14                 ## 8-byte Reload
	leal	1(%r14), %edi
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	callq	_FDT_TAGALIGN
                                        ## kill: def $eax killed $eax def $rax
	movq	_FDT_TAGSIZE@GOTPCREL(%rip), %rcx
	movl	(%rcx), %ecx
	addl	%eax, %ecx
	addl	$16, %ecx
	movq	%r12, %rdi
	movq	%r13, %rsi
	xorl	%edx, %edx
	movl	%ecx, -48(%rbp)                 ## 4-byte Spill
	callq	__fdt_splice_struct
	testl	%eax, %eax
	movq	-64(%rbp), %r15                 ## 8-byte Reload
	jne	LBB0_8
## %bb.7:
	movq	_FDT_BEGIN_NODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_fdt32
	movq	%rax, 8(%r13)
	movl	(%r13), %r12d
	movl	-44(%rbp), %edi                 ## 4-byte Reload
	callq	_FDT_TAGALIGN
	movl	%r12d, %edi
	xorl	%esi, %esi
	movl	%eax, %edx
	callq	_memset
	movl	(%r13), %edi
	movq	%r15, %rsi
	movl	%r14d, %edx
	callq	_memcpy
	movslq	-48(%rbp), %r14                 ## 4-byte Folded Reload
	addq	%r13, %r14
	movq	_FDT_TAGSIZE@GOTPCREL(%rip), %rax
	movslq	(%rax), %rax
	subq	%rax, %r14
	movq	_FDT_END_NODE@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	_cpu_to_fdt32
	movq	%rax, (%r14)
	movl	%ebx, %eax
LBB0_8:
	addq	$40, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_FDT_ERR_EXISTS,4,2             ## @FDT_ERR_EXISTS
	.comm	_FDT_ERR_NOTFOUND,4,2           ## @FDT_ERR_NOTFOUND
	.comm	_FDT_PROP,8,3                   ## @FDT_PROP
	.comm	_FDT_NOP,8,3                    ## @FDT_NOP
	.comm	_FDT_TAGSIZE,4,2                ## @FDT_TAGSIZE
	.comm	_FDT_BEGIN_NODE,4,2             ## @FDT_BEGIN_NODE
	.comm	_FDT_END_NODE,4,2               ## @FDT_END_NODE
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_add_subnode_namelen        ; -- Begin function fdt_add_subnode_namelen
	.p2align	2
_fdt_add_subnode_namelen:               ; @fdt_add_subnode_namelen
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #96
	.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
	mov	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	bl	_FDT_RW_CHECK_HEADER
	mov	x0, x22
	mov	x1, x21
	mov	x2, x20
	mov	x3, x19
	bl	_fdt_subnode_offset_namelen
	tbnz	w0, #31, LBB0_2
; %bb.1:
Lloh0:
	adrp	x8, _FDT_ERR_EXISTS@GOTPAGE
Lloh1:
	ldr	x8, [x8, _FDT_ERR_EXISTS@GOTPAGEOFF]
Lloh2:
	ldr	w8, [x8]
	neg	w0, w8
	b	LBB0_7
LBB0_2:
Lloh3:
	adrp	x8, _FDT_ERR_NOTFOUND@GOTPAGE
Lloh4:
	ldr	x8, [x8, _FDT_ERR_NOTFOUND@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	cmn	w0, w8
	b.ne	LBB0_7
; %bb.3:
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x21
	bl	_fdt_next_tag
Lloh6:
	adrp	x23, _FDT_PROP@GOTPAGE
Lloh7:
	ldr	x23, [x23, _FDT_PROP@GOTPAGEOFF]
Lloh8:
	adrp	x24, _FDT_NOP@GOTPAGE
Lloh9:
	ldr	x24, [x24, _FDT_NOP@GOTPAGEOFF]
LBB0_4:                                 ; =>This Inner Loop Header: Depth=1
	ldr	w21, [sp, #12]
	add	x2, sp, #12
	mov	x0, x22
	mov	x1, x21
	bl	_fdt_next_tag
	ldr	x8, [x23]
	ldr	x9, [x24]
	cmp	x0, x8
	ccmp	x0, x9, #4, ne
	b.eq	LBB0_4
; %bb.5:
	mov	x0, x22
	mov	x1, x21
	bl	__fdt_offset_ptr_w
	mov	x23, x0
	add	w25, w19, #1
	mov	x0, x25
	bl	_FDT_TAGALIGN
Lloh10:
	adrp	x26, _FDT_TAGSIZE@GOTPAGE
Lloh11:
	ldr	x26, [x26, _FDT_TAGSIZE@GOTPAGEOFF]
	ldr	w8, [x26]
	add	w8, w0, w8
	add	w24, w8, #16
	mov	x0, x22
	mov	x1, x23
	mov	w2, #0
	mov	x3, x24
	bl	__fdt_splice_struct
	cbnz	w0, LBB0_7
; %bb.6:
Lloh12:
	adrp	x8, _FDT_BEGIN_NODE@GOTPAGE
Lloh13:
	ldr	x8, [x8, _FDT_BEGIN_NODE@GOTPAGEOFF]
Lloh14:
	ldr	w0, [x8]
	bl	_cpu_to_fdt32
	str	x0, [x23, #8]
	ldr	w22, [x23]
	mov	x0, x25
	bl	_FDT_TAGALIGN
	mov	x2, x0
	mov	x0, x22
	mov	w1, #0
	bl	_memset
	ldr	w0, [x23]
	mov	x1, x20
	mov	x2, x19
	bl	_memcpy
	add	x8, x23, w24, sxtw
	ldrsw	x9, [x26]
	sub	x19, x8, x9
Lloh15:
	adrp	x8, _FDT_END_NODE@GOTPAGE
Lloh16:
	ldr	x8, [x8, _FDT_END_NODE@GOTPAGEOFF]
Lloh17:
	ldr	w0, [x8]
	bl	_cpu_to_fdt32
	str	x0, [x19]
	mov	x0, x21
LBB0_7:
	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
	add	sp, sp, #96
	ret
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGot	Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh15, Lloh16, Lloh17
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.cfi_endproc
                                        ; -- End function
	.comm	_FDT_ERR_EXISTS,4,2             ; @FDT_ERR_EXISTS
	.comm	_FDT_ERR_NOTFOUND,4,2           ; @FDT_ERR_NOTFOUND
	.comm	_FDT_PROP,8,3                   ; @FDT_PROP
	.comm	_FDT_NOP,8,3                    ; @FDT_NOP
	.comm	_FDT_TAGSIZE,4,2                ; @FDT_TAGSIZE
	.comm	_FDT_BEGIN_NODE,4,2             ; @FDT_BEGIN_NODE
	.comm	_FDT_END_NODE,4,2               ; @FDT_END_NODE
.subsections_via_symbols
