	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function save_string
_save_string:                           ## @save_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
	pushq	%rax
	.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, %rbx
	movq	_my_string@GOTPCREL(%rip), %rax
	movq	(%rax), %r15
	movq	%rdi, %r12
	subq	%r15, %r12
	movq	%rsi, %rdi
	callq	_strlen
	leaq	(%rax,%r12), %rsi
	addq	$2, %rsi
	movq	_my_length@GOTPCREL(%rip), %r13
	movq	(%r13), %rdx
	cmpq	%rdx, %rsi
	jbe	LBB0_4
## %bb.1:
	addq	%rsi, %rsi
	movq	%rsi, (%r13)
	movq	%r15, %rdi
	callq	__nc_doalloc
	movq	%rax, %rbx
	movq	_my_string@GOTPCREL(%rip), %r15
	movq	%rax, (%r15)
	testq	%rax, %rax
	jne	LBB0_3
## %bb.2:
	movq	_MSG_NO_MEMORY@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	callq	__nc_err_abort
	movq	(%r15), %rbx
LBB0_3:
	addq	%r12, %rbx
	movq	(%r13), %rdx
LBB0_4:
	subq	%r12, %rdx
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	__nc_STRCPY
	movq	%rbx, %rdi
	callq	_strlen
	addq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_my_string,8,3                  ## @my_string
	.comm	_my_length,8,3                  ## @my_length
	.comm	_MSG_NO_MEMORY,4,2              ## @MSG_NO_MEMORY
	.no_dead_strip	_save_string
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function save_string
_save_string:                           ; @save_string
	.cfi_startproc
; %bb.0:
	stp	x24, x23, [sp, #-64]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 64
	stp	x22, x21, [sp, #16]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #32]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #48]             ; 16-byte Folded Spill
	add	x29, sp, #48
	.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, x1
	mov	x20, x0
Lloh0:
	adrp	x23, _my_string@GOTPAGE
Lloh1:
	ldr	x23, [x23, _my_string@GOTPAGEOFF]
	ldr	x21, [x23]
	sub	x22, x0, x21
	mov	x0, x1
	bl	_strlen
	add	x8, x0, x22
	add	x9, x8, #2
Lloh2:
	adrp	x24, _my_length@GOTPAGE
Lloh3:
	ldr	x24, [x24, _my_length@GOTPAGEOFF]
	ldr	x8, [x24]
	cmp	x9, x8
	b.ls	LBB0_4
; %bb.1:
	lsl	x1, x9, #1
	str	x1, [x24]
	mov	x0, x21
	bl	__nc_doalloc
	str	x0, [x23]
	cbnz	x0, LBB0_3
; %bb.2:
Lloh4:
	adrp	x8, _MSG_NO_MEMORY@GOTPAGE
Lloh5:
	ldr	x8, [x8, _MSG_NO_MEMORY@GOTPAGEOFF]
Lloh6:
	ldr	w0, [x8]
	bl	__nc_err_abort
	ldr	x0, [x23]
LBB0_3:
	add	x20, x0, x22
	ldr	x8, [x24]
LBB0_4:
	sub	x2, x8, x22
	mov	x0, x20
	mov	x1, x19
	bl	__nc_STRCPY
	mov	x0, x20
	bl	_strlen
	add	x0, x20, x0
	ldp	x29, x30, [sp, #48]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #32]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #16]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp], #64             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh2, Lloh3
	.loh AdrpLdrGot	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh4, Lloh5, Lloh6
	.cfi_endproc
                                        ; -- End function
	.comm	_my_string,8,3                  ; @my_string
	.comm	_my_length,8,3                  ; @my_length
	.comm	_MSG_NO_MEMORY,4,2              ; @MSG_NO_MEMORY
	.no_dead_strip	_save_string
.subsections_via_symbols
