	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_savename                       ## -- Begin function savename
	.p2align	4, 0x90
_savename:                              ## @savename
	.cfi_startproc
## %bb.0:
	pushq	%rbp
	.cfi_def_cfa_offset 16
	.cfi_offset %rbp, -16
	movq	%rsp, %rbp
	.cfi_def_cfa_register %rbp
	pushq	%r14
	pushq	%rbx
	.cfi_offset %rbx, -32
	.cfi_offset %r14, -24
	movq	%rdi, %r14
	testq	%rdi, %rdi
	jne	LBB0_2
## %bb.1:
	leaq	L_.str(%rip), %rdi
	callq	_panic
LBB0_2:
	movq	%r14, %rdi
	callq	_strlen
	movq	%rax, %rdi
	movq	_strtblhdr@GOTPCREL(%rip), %rax
	movq	(%rax), %rcx
	movq	_STRTBLINCR@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	%rdi, %rax
	orq	%rsi, %rax
	shrq	$32, %rax
	je	LBB0_3
## %bb.4:
	movq	%rdi, %rax
	xorl	%edx, %edx
	divq	%rsi
	jmp	LBB0_5
LBB0_3:
	movl	%edi, %eax
	xorl	%edx, %edx
	divl	%esi
                                        ## kill: def $eax killed $eax def $rax
LBB0_5:
	movq	(%rcx,%rax,8), %rbx
	testq	%rbx, %rbx
	je	LBB0_7
## %bb.6:
	movq	(%rbx), %rdx
	movq	%rdx, (%rcx,%rax,8)
	jmp	LBB0_9
LBB0_7:
	callq	_allocsize
	movl	%eax, %edi
	callq	_malloc
	movq	%rax, %rbx
	testq	%rax, %rax
	jne	LBB0_9
## %bb.8:
	leaq	L_.str.1(%rip), %rdi
	callq	_panic
	xorl	%ebx, %ebx
LBB0_9:
	movq	%rbx, %rdi
	movq	%r14, %rsi
	callq	_strcpy
	movq	%rbx, %rax
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"bad name\n"

	.comm	_strtblhdr,8,3                  ## @strtblhdr
	.comm	_STRTBLINCR,8,3                 ## @STRTBLINCR
L_.str.1:                               ## @.str.1
	.asciz	"no space for string table\n"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_savename                       ; -- Begin function savename
	.p2align	2
_savename:                              ; @savename
	.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
	mov	x19, x0
	cbnz	x0, LBB0_2
; %bb.1:
Lloh0:
	adrp	x0, l_.str@PAGE
Lloh1:
	add	x0, x0, l_.str@PAGEOFF
	bl	_panic
LBB0_2:
	mov	x0, x19
	bl	_strlen
Lloh2:
	adrp	x8, _strtblhdr@GOTPAGE
Lloh3:
	ldr	x8, [x8, _strtblhdr@GOTPAGEOFF]
Lloh4:
	ldr	x8, [x8]
Lloh5:
	adrp	x9, _STRTBLINCR@GOTPAGE
Lloh6:
	ldr	x9, [x9, _STRTBLINCR@GOTPAGEOFF]
Lloh7:
	ldr	x9, [x9]
	udiv	x9, x0, x9
	ldr	x20, [x8, x9, lsl #3]
	cbz	x20, LBB0_4
; %bb.3:
	ldr	x10, [x20]
	str	x10, [x8, x9, lsl #3]
	b	LBB0_6
LBB0_4:
	bl	_allocsize
	bl	_malloc
	mov	x20, x0
	cbnz	x0, LBB0_6
; %bb.5:
Lloh8:
	adrp	x0, l_.str.1@PAGE
Lloh9:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	_panic
LBB0_6:
	mov	x0, x20
	mov	x1, x19
	bl	_strcpy
	mov	x0, x20
	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	Lloh5, Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh2, Lloh3, Lloh4
	.loh AdrpAdd	Lloh8, Lloh9
	.cfi_endproc
                                        ; -- End function
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"bad name\n"

	.comm	_strtblhdr,8,3                  ; @strtblhdr
	.comm	_STRTBLINCR,8,3                 ; @STRTBLINCR
l_.str.1:                               ; @.str.1
	.asciz	"no space for string table\n"

.subsections_via_symbols
