	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_M_SaveSelect                   ## -- Begin function M_SaveSelect
	.p2align	4, 0x90
_M_SaveSelect:                          ## @M_SaveSelect
	.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	_saveStringEnter@GOTPCREL(%rip), %rax
	movl	$1, (%rax)
	movq	_saveSlot@GOTPCREL(%rip), %rax
	movl	%edi, (%rax)
	movq	_saveOldString@GOTPCREL(%rip), %rax
	movl	(%rax), %eax
	movq	_savegamestrings@GOTPCREL(%rip), %r14
	movq	(%r14), %rcx
	movslq	%edi, %rbx
	movq	(%rcx,%rbx,8), %rsi
	movl	%eax, %edi
	callq	_strcpy
	movq	(%r14), %rax
	movq	(%rax,%rbx,8), %rdi
	movq	_EMPTYSTRING@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_strcmp
	movq	(%r14), %rcx
	movq	(%rcx,%rbx,8), %rdi
	testl	%eax, %eax
	jne	LBB0_2
## %bb.1:
	movq	$0, (%rdi)
LBB0_2:
	callq	_strlen
	movq	_saveCharIndex@GOTPCREL(%rip), %rcx
	movl	%eax, (%rcx)
	popq	%rbx
	popq	%r14
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_saveStringEnter,4,2            ## @saveStringEnter
	.comm	_saveSlot,4,2                   ## @saveSlot
	.comm	_saveOldString,4,2              ## @saveOldString
	.comm	_savegamestrings,8,3            ## @savegamestrings
	.comm	_EMPTYSTRING,4,2                ## @EMPTYSTRING
	.comm	_saveCharIndex,4,2              ## @saveCharIndex
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_M_SaveSelect                   ; -- Begin function M_SaveSelect
	.p2align	2
_M_SaveSelect:                          ; @M_SaveSelect
	.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
                                        ; kill: def $w0 killed $w0 def $x0
Lloh0:
	adrp	x8, _saveStringEnter@GOTPAGE
Lloh1:
	ldr	x8, [x8, _saveStringEnter@GOTPAGEOFF]
	mov	w9, #1
Lloh2:
	str	w9, [x8]
Lloh3:
	adrp	x8, _saveSlot@GOTPAGE
Lloh4:
	ldr	x8, [x8, _saveSlot@GOTPAGEOFF]
Lloh5:
	str	w0, [x8]
Lloh6:
	adrp	x8, _saveOldString@GOTPAGE
Lloh7:
	ldr	x8, [x8, _saveOldString@GOTPAGEOFF]
Lloh8:
	ldr	w8, [x8]
Lloh9:
	adrp	x19, _savegamestrings@GOTPAGE
Lloh10:
	ldr	x19, [x19, _savegamestrings@GOTPAGEOFF]
	ldr	x9, [x19]
	sbfiz	x20, x0, #3, #32
	ldr	x1, [x9, x20]
	mov	x0, x8
	bl	_strcpy
	ldr	x8, [x19]
	ldr	x0, [x8, x20]
Lloh11:
	adrp	x8, _EMPTYSTRING@GOTPAGE
Lloh12:
	ldr	x8, [x8, _EMPTYSTRING@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
	bl	_strcmp
	mov	x8, x0
	ldr	x9, [x19]
	ldr	x0, [x9, x20]
	cbnz	w8, LBB0_2
; %bb.1:
	str	xzr, [x0]
LBB0_2:
	bl	_strlen
Lloh14:
	adrp	x8, _saveCharIndex@GOTPAGE
Lloh15:
	ldr	x8, [x8, _saveCharIndex@GOTPAGEOFF]
Lloh16:
	str	w0, [x8]
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGot	Lloh9, Lloh10
	.loh AdrpLdrGotLdr	Lloh6, Lloh7, Lloh8
	.loh AdrpLdrGotStr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotStr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGotStr	Lloh14, Lloh15, Lloh16
	.cfi_endproc
                                        ; -- End function
	.comm	_saveStringEnter,4,2            ; @saveStringEnter
	.comm	_saveSlot,4,2                   ; @saveSlot
	.comm	_saveOldString,4,2              ; @saveOldString
	.comm	_savegamestrings,8,3            ; @savegamestrings
	.comm	_EMPTYSTRING,4,2                ; @EMPTYSTRING
	.comm	_saveCharIndex,4,2              ; @saveCharIndex
.subsections_via_symbols
