	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_savestr                        ## -- Begin function savestr
	.p2align	4, 0x90
_savestr:                               ## @savestr
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%rbx
	pushq	%rax
	.cfi_offset %rbx, -24
	testq	%rdi, %rdi
	leaq	L_.str(%rip), %rax
	cmoveq	%rax, %rdi
	callq	_strdup
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_4
## %bb.1:
	movq	_using_plan_a@GOTPCREL(%rip), %rax
	cmpq	$0, (%rax)
	je	LBB0_3
## %bb.2:
	movq	_out_of_mem@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	jmp	LBB0_4
LBB0_3:
	leaq	L_.str.1(%rip), %rdi
	callq	_fatal
LBB0_4:
	movq	%rbx, %rax
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Oops"

	.comm	_using_plan_a,8,3               ## @using_plan_a
	.comm	_out_of_mem,4,2                 ## @out_of_mem
L_.str.1:                               ## @.str.1
	.asciz	"out of memory\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_savestr                        ; -- Begin function savestr
	.p2align	2
_savestr:                               ; @savestr
	.cfi_startproc
; %bb.0:
	stp	x20, x19, [sp, #-32]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 32
	stp	x29, x30, [sp, #16]             ; 16-byte Folded Spill
	add	x29, sp, #16
	.cfi_def_cfa w29, 16
	.cfi_offset w30, -8
	.cfi_offset w29, -16
	.cfi_offset w19, -24
	.cfi_offset w20, -32
Lloh0:
	adrp	x8, l_.str@PAGE
Lloh1:
	add	x8, x8, l_.str@PAGEOFF
	cmp	x0, #0
	csel	x0, x8, x0, eq
	bl	_strdup
	mov	x19, x0
	cbnz	x0, LBB0_4
; %bb.1:
Lloh2:
	adrp	x8, _using_plan_a@GOTPAGE
Lloh3:
	ldr	x8, [x8, _using_plan_a@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
	cbz	x8, LBB0_3
; %bb.2:
Lloh5:
	adrp	x8, _out_of_mem@GOTPAGE
Lloh6:
	ldr	x8, [x8, _out_of_mem@GOTPAGEOFF]
	mov	w9, #1
Lloh7:
	str	w9, [x8]
	b	LBB0_4
LBB0_3:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_fatal
LBB0_4:
	mov	x0, x19
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpAdd	Lloh0, Lloh1
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpLdrGotStr	Lloh5, Lloh6, Lloh7
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Oops"

	.comm	_using_plan_a,8,3               ; @using_plan_a
	.comm	_out_of_mem,4,2                 ; @out_of_mem
l_.str.1:                               ; @.str.1
	.asciz	"out of memory\n"

.subsections_via_symbols
