	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_set_name                   ## -- Begin function fdt_set_name
	.p2align	4, 0x90
_fdt_set_name:                          ## @fdt_set_name
	.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
	movq	%rdx, %r14
	movl	%esi, %ebx
	movq	%rdi, %r13
	callq	_FDT_RW_CHECK_HEADER
	leaq	-44(%rbp), %rdx
	movq	%r13, %rdi
	movl	%ebx, %esi
	callq	_fdt_get_name
	testq	%rax, %rax
	je	LBB0_1
## %bb.2:
	movq	%rax, %r15
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %r12d
	movl	-44(%rbp), %edi
	incl	%edi
	callq	_FDT_TAGALIGN
	movl	%eax, %ebx
	incl	%r12d
	movl	%r12d, %edi
	callq	_FDT_TAGALIGN
	movq	%r13, %rdi
	movq	%r15, %rsi
	movl	%ebx, %edx
	movl	%eax, %ecx
	callq	__fdt_splice_struct
	testl	%eax, %eax
	jne	LBB0_4
## %bb.3:
	movq	%r15, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	xorl	%eax, %eax
	jmp	LBB0_4
LBB0_1:
	movl	-44(%rbp), %eax
LBB0_4:
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_fdt_set_name                   ; -- Begin function fdt_set_name
	.p2align	2
_fdt_set_name:                          ; @fdt_set_name
	.cfi_startproc
; %bb.0:
	sub	sp, sp, #80
	.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
	mov	x19, x2
	mov	x20, x1
	mov	x21, x0
	bl	_FDT_RW_CHECK_HEADER
	add	x2, sp, #12
	mov	x0, x21
	mov	x1, x20
	bl	_fdt_get_name
	cbz	x0, LBB0_3
; %bb.1:
	mov	x20, x0
	mov	x0, x19
	bl	_strlen
	mov	x22, x0
	ldr	w8, [sp, #12]
	add	w0, w8, #1
	bl	_FDT_TAGALIGN
	mov	x23, x0
	add	w22, w22, #1
	mov	x0, x22
	bl	_FDT_TAGALIGN
	mov	x3, x0
	mov	x0, x21
	mov	x1, x20
	mov	x2, x23
	bl	__fdt_splice_struct
	cbnz	w0, LBB0_4
; %bb.2:
	mov	x0, x20
	mov	x1, x19
	mov	x2, x22
	bl	_memcpy
	mov	w0, #0
	b	LBB0_4
LBB0_3:
	ldr	w0, [sp, #12]
LBB0_4:
	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
	add	sp, sp, #80
	ret
	.cfi_endproc
                                        ; -- End function
.subsections_via_symbols
