	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_M_DoSave                       ## -- Begin function M_DoSave
	.p2align	4, 0x90
_M_DoSave:                              ## @M_DoSave
	.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
	movl	%edi, %ebx
	movq	_savegamestrings@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movslq	%edi, %rdi
	movl	(%rax,%rdi,4), %esi
                                        ## kill: def $edi killed $edi killed $rdi
	callq	_G_SaveGame
	xorl	%eax, %eax
	callq	_M_ClearMenus
	movq	_quickSaveSlot@GOTPCREL(%rip), %rax
	cmpl	$-2, (%rax)
	jne	LBB0_2
## %bb.1:
	movl	%ebx, (%rax)
LBB0_2:
	addq	$8, %rsp
	popq	%rbx
	popq	%rbp
	retq
	.cfi_endproc
                                        ## -- End function
	.comm	_savegamestrings,8,3            ## @savegamestrings
	.comm	_quickSaveSlot,4,2              ## @quickSaveSlot
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_M_DoSave                       ; -- Begin function M_DoSave
	.p2align	2
_M_DoSave:                              ; @M_DoSave
	.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
Lloh0:
	adrp	x8, _savegamestrings@GOTPAGE
Lloh1:
	ldr	x8, [x8, _savegamestrings@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	ldr	w1, [x8, w0, sxtw #2]
	bl	_G_SaveGame
	bl	_M_ClearMenus
Lloh3:
	adrp	x8, _quickSaveSlot@GOTPAGE
Lloh4:
	ldr	x8, [x8, _quickSaveSlot@GOTPAGEOFF]
	ldr	w9, [x8]
	cmn	w9, #2
	b.ne	LBB0_2
; %bb.1:
	str	w19, [x8]
LBB0_2:
	ldp	x29, x30, [sp, #16]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp], #32             ; 16-byte Folded Reload
	ret
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.cfi_endproc
                                        ; -- End function
	.comm	_savegamestrings,8,3            ; @savegamestrings
	.comm	_quickSaveSlot,4,2              ; @quickSaveSlot
.subsections_via_symbols
