	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function fdt_merge_strings
_fdt_merge_strings:                     ## @fdt_merge_strings
	.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
	movq	%rsi, %r15
	movq	%rcx, -64(%rbp)                 ## 8-byte Spill
	movq	$0, (%rcx)
	xorl	%r12d, %r12d
	movl	%edi, -44(%rbp)                 ## 4-byte Spill
	movl	%edi, %r14d
	movl	%edx, -56(%rbp)                 ## 4-byte Spill
	subl	%edx, %r14d
	jle	LBB0_3
## %bb.1:
	movslq	-56(%rbp), %rbx                 ## 4-byte Folded Reload
	movslq	-44(%rbp), %r13                 ## 4-byte Folded Reload
	xorl	%r12d, %r12d
	.p2align	4, 0x90
LBB0_2:                                 ## =>This Inner Loop Header: Depth=1
	movq	(%r15,%rbx,8), %rdi
	callq	_strlen
	addl	%eax, %r12d
	incq	%rbx
	cmpq	%rbx, %r13
	jne	LBB0_2
LBB0_3:
	addl	%r14d, %r12d
	movl	%r12d, %edi
	callq	_malloc
	testq	%rax, %rax
	je	LBB0_4
## %bb.5:
	movq	%rax, %r14
	movq	%rax, %rdi
	movl	%r12d, %esi
	callq	_bzero
	movl	-56(%rbp), %eax                 ## 4-byte Reload
	movl	-44(%rbp), %ecx                 ## 4-byte Reload
	cmpl	%eax, %ecx
	jle	LBB0_8
## %bb.6:
	movslq	%eax, %rbx
	movslq	%ecx, %rax
	movq	%rax, -56(%rbp)                 ## 8-byte Spill
	xorl	%eax, %eax
	.p2align	4, 0x90
LBB0_7:                                 ## =>This Inner Loop Header: Depth=1
	movslq	%eax, %r13
	leaq	(%r14,%r13), %rdi
	movq	(%r15,%rbx,8), %rsi
	callq	_strcpy
	movq	(%r15,%rbx,8), %rdi
	callq	_strlen
	leaq	(%rax,%r13), %rcx
	movslq	%ecx, %rcx
	movb	$32, (%r14,%rcx)
	addq	%r13, %rax
	incq	%rax
	incq	%rbx
	cmpq	%rbx, -56(%rbp)                 ## 8-byte Folded Reload
	jne	LBB0_7
LBB0_8:
	movslq	%r12d, %rax
	movb	$0, -1(%rax,%r14)
	movq	-64(%rbp), %rax                 ## 8-byte Reload
	movq	%r14, (%rax)
	xorl	%eax, %eax
	jmp	LBB0_9
LBB0_4:
	movq	_command_errbuf@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	leaq	L_.str(%rip), %rsi
	callq	_sprintf
	movl	$1, %eax
LBB0_9:
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_command_errbuf,4,2             ## @command_errbuf
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"could not allocate space for string"

	.no_dead_strip	_fdt_merge_strings
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function fdt_merge_strings
_fdt_merge_strings:                     ; @fdt_merge_strings
	.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	x19, x3
	mov	x20, x2
	mov	x21, x1
	mov	x22, x0
	str	xzr, [x3]
	mov	w24, #0
	subs	w23, w0, w2
	b.le	LBB0_3
; %bb.1:
	sxtw	x8, w22
	add	x25, x21, w20, sxtw #3
	sub	x26, x8, w20, sxtw
LBB0_2:                                 ; =>This Inner Loop Header: Depth=1
	ldr	x0, [x25], #8
	bl	_strlen
	add	w24, w24, w0
	subs	x26, x26, #1
	b.ne	LBB0_2
LBB0_3:
	add	w23, w24, w23
	mov	x0, x23
	bl	_malloc
	cbz	x0, LBB0_8
; %bb.4:
	mov	x24, x0
	mov	x1, x23
	bl	_bzero
	cmp	w22, w20
	b.le	LBB0_7
; %bb.5:
	mov	x8, #0
                                        ; kill: def $w22 killed $w22 killed $x22 def $x22
	sxtw	x9, w22
	add	x21, x21, w20, sxtw #3
	sub	x20, x9, w20, sxtw
	mov	w22, #32
LBB0_6:                                 ; =>This Inner Loop Header: Depth=1
	sxtw	x25, w8
	add	x0, x24, x25
	ldr	x1, [x21]
	bl	_strcpy
	ldr	x0, [x21], #8
	bl	_strlen
	add	x8, x0, x25
	strb	w22, [x24, w8, sxtw]
	add	x8, x8, #1
	subs	x20, x20, #1
	b.ne	LBB0_6
LBB0_7:
	mov	w0, #0
	add	x8, x24, w23, sxtw
	sturb	wzr, [x8, #-1]
	str	x24, [x19]
	b	LBB0_9
LBB0_8:
Lloh0:
	adrp	x8, _command_errbuf@GOTPAGE
Lloh1:
	ldr	x8, [x8, _command_errbuf@GOTPAGEOFF]
Lloh2:
	ldr	w0, [x8]
Lloh3:
	adrp	x1, l_.str@PAGE
Lloh4:
	add	x1, x1, l_.str@PAGEOFF
	bl	_sprintf
	mov	w0, #1
LBB0_9:
	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 AdrpAdd	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_command_errbuf,4,2             ; @command_errbuf
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"could not allocate space for string"

	.no_dead_strip	_fdt_merge_strings
.subsections_via_symbols
