	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function _fdt_find_add_string
__fdt_find_add_string:                  ## @_fdt_find_add_string
	.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, %r14
	movq	%rdi, %r15
	callq	_fdt_totalsize
	movslq	%eax, %rbx
	addq	%r15, %rbx
	movq	%r15, %rdi
	callq	_fdt_size_dt_strings
	movl	%eax, %r12d
	movq	%r14, %rdi
	callq	_strlen
	movl	%eax, %r13d
	movslq	%r12d, %rsi
	movq	%rbx, %rdi
	subq	%rsi, %rdi
                                        ## kill: def $esi killed $esi killed $rsi
	movq	%r14, %rdx
	callq	__fdt_find_string
	testq	%rax, %rax
	je	LBB0_2
## %bb.1:
	subl	%ebx, %eax
	jmp	LBB0_4
LBB0_2:
	movl	%r13d, -44(%rbp)                ## 4-byte Spill
	notl	%r13d
	movl	%r12d, -48(%rbp)                ## 4-byte Spill
	subl	%r12d, %r13d
	movq	%r15, %rdi
	callq	_fdt_off_dt_struct
	movl	%eax, -52(%rbp)                 ## 4-byte Spill
	movq	%r15, %rdi
	callq	_fdt_size_dt_struct
	movl	%eax, %r12d
	addl	-52(%rbp), %r12d                ## 4-byte Folded Reload
	movq	%r15, %rdi
	callq	_fdt_totalsize
	movl	%eax, %ecx
	addl	%r13d, %ecx
	xorl	%eax, %eax
	cmpl	%r12d, %ecx
	jl	LBB0_4
## %bb.3:
	movl	-44(%rbp), %r12d                ## 4-byte Reload
	incl	%r12d
	movslq	%r13d, %rax
	addq	%rax, %rbx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	movl	%r12d, %edx
	callq	_memcpy
	addl	-48(%rbp), %r12d                ## 4-byte Folded Reload
	movq	%r15, %rdi
	movl	%r12d, %esi
	callq	_fdt_set_size_dt_strings
	movl	%r13d, %eax
LBB0_4:
                                        ## kill: def $eax killed $eax killed $rax
	addq	$24, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.no_dead_strip	__fdt_find_add_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function _fdt_find_add_string
__fdt_find_add_string:                  ; @_fdt_find_add_string
	.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	x20, x1
	mov	x19, x0
	bl	_fdt_totalsize
	add	x25, x19, w0, sxtw
	mov	x0, x19
	bl	_fdt_size_dt_strings
	mov	x21, x0
	mov	x0, x20
	bl	_strlen
	mov	x23, x0
	sub	x0, x25, w21, sxtw
	mov	x1, x21
	mov	x2, x20
	bl	__fdt_find_string
	cbz	x0, LBB0_2
; %bb.1:
	sub	w22, w0, w25
	b	LBB0_5
LBB0_2:
	mvn	w8, w23
	sub	w22, w8, w21
	mov	x0, x19
	bl	_fdt_off_dt_struct
	mov	x24, x0
	mov	x0, x19
	bl	_fdt_size_dt_struct
	add	w24, w0, w24
	mov	x0, x19
	bl	_fdt_totalsize
	add	w8, w0, w22
	cmp	w8, w24
	b.ge	LBB0_4
; %bb.3:
	mov	w22, #0
	b	LBB0_5
LBB0_4:
	add	w23, w23, #1
	add	x0, x25, w22, sxtw
	mov	x1, x20
	mov	x2, x23
	bl	_memcpy
	add	w1, w23, w21
	mov	x0, x19
	bl	_fdt_set_size_dt_strings
LBB0_5:
	mov	x0, x22
	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
	.cfi_endproc
                                        ; -- End function
	.no_dead_strip	__fdt_find_add_string
.subsections_via_symbols
