	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	4, 0x90                         ## -- Begin function SaveBoard
_SaveBoard:                             ## @SaveBoard
	.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
	subq	$56, %rsp
	.cfi_offset %rbx, -56
	.cfi_offset %r12, -48
	.cfi_offset %r13, -40
	.cfi_offset %r14, -32
	.cfi_offset %r15, -24
	movq	%rdi, %r13
	movq	%rsp, -96(%rbp)                 ## 8-byte Spill
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	_MAX_PLAYER_NAME_SIZE@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	incl	%r15d
	leaq	(,%r15,4), %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_HKEY_CURRENT_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_registry_key@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_REG_OPTION_NON_VOLATILE@GOTPCREL(%rip), %rax
	movl	(%rax), %r8d
	movq	_KEY_WRITE@GOTPCREL(%rip), %rax
	movl	(%rax), %r9d
	subq	$8, %rsp
	leaq	-84(%rbp), %rax
	xorl	%edx, %edx
	xorl	%ecx, %ecx
	pushq	$0
	pushq	%rax
	pushq	$0
	callq	_RegCreateKeyExW
	addq	$32, %rsp
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_2
## %bb.1:
	movl	-84(%rbp), %edi
	movq	_xposW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movq	_REG_DWORD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	leal	36(%r13), %r12d
	leal	40(%r13), %r8d
	xorl	%edx, %edx
	movl	$4, %r9d
	callq	_RegSetValueExW
	movl	-84(%rbp), %edi
	movq	_yposW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	(%rbx), %ecx
	xorl	%edx, %edx
	movl	%r12d, %r8d
	movl	$4, %r9d
	callq	_RegSetValueExW
	movl	-84(%rbp), %edi
	movq	_difficultyW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	(%rbx), %ecx
	leal	32(%r13), %r8d
	xorl	%edx, %edx
	movl	$4, %r9d
	callq	_RegSetValueExW
	movl	-84(%rbp), %edi
	movq	_heightW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	(%rbx), %ecx
	leal	28(%r13), %r8d
	xorl	%edx, %edx
	movl	$4, %r9d
	callq	_RegSetValueExW
	movl	-84(%rbp), %edi
	movq	_widthW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	(%rbx), %ecx
	leal	24(%r13), %r8d
	xorl	%edx, %edx
	movl	$4, %r9d
	callq	_RegSetValueExW
	movl	-84(%rbp), %edi
	movq	_minesW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	(%rbx), %ecx
	leal	20(%r13), %r8d
	xorl	%edx, %edx
	movl	$4, %r9d
	callq	_RegSetValueExW
	movl	-84(%rbp), %edi
	movq	_markW@GOTPCREL(%rip), %rax
	movq	(%rax), %rsi
	movl	(%rbx), %ecx
	leal	16(%r13), %r8d
	xorl	%edx, %edx
	movl	$4, %r9d
	callq	_RegSetValueExW
	movq	_nameW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdi
	movl	$1, %edx
	callq	_wsprintfW
	movq	8(%r13), %rax
	movl	(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_lstrcpynW
	movl	-84(%rbp), %ebx
	movq	_REG_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r14, %rdi
	callq	_lstrlenW
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %r9d
	movl	%ebx, %edi
	leaq	-80(%rbp), %rsi
	xorl	%edx, %edx
	movl	%r12d, %ecx
	movl	%r14d, %r8d
	callq	_RegSetValueExW
	movq	_nameW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdi
	movl	$2, %edx
	callq	_wsprintfW
	movq	8(%r13), %rax
	movl	4(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_lstrcpynW
	movl	-84(%rbp), %ebx
	movq	_REG_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	movq	%r14, %rdi
	callq	_lstrlenW
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %r9d
	movl	%ebx, %edi
	leaq	-80(%rbp), %rsi
	xorl	%edx, %edx
	movl	%r12d, %ecx
	movl	%r14d, %r8d
	callq	_RegSetValueExW
	movq	_nameW@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	leaq	-80(%rbp), %rdi
	movq	%rdi, %r12
	movl	$3, %edx
	callq	_wsprintfW
	movq	8(%r13), %rax
	movl	8(%rax), %esi
	movq	%r14, %rdi
	movl	%r15d, %edx
	callq	_lstrcpynW
	movl	-84(%rbp), %ebx
	movq	_REG_SZ@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r14, %rdi
	callq	_lstrlenW
                                        ## kill: def $eax killed $eax def $rax
	leal	4(,%rax,4), %r9d
	movl	%ebx, %edi
	movq	%r12, %rsi
	xorl	%edx, %edx
	movl	%r15d, %ecx
	movl	%r14d, %r8d
	callq	_RegSetValueExW
	movq	_timeW@GOTPCREL(%rip), %r14
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	$1, %edx
	callq	_wsprintfW
	movl	-84(%rbp), %edi
	movq	_REG_DWORD@GOTPCREL(%rip), %rbx
	movl	(%rbx), %ecx
	movl	(%r13), %r8d
	movq	%r12, %rsi
	xorl	%edx, %edx
	movl	$4, %r9d
	callq	_RegSetValueExW
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	$2, %edx
	callq	_wsprintfW
	movl	-84(%rbp), %edi
	movl	(%rbx), %ecx
	movq	%rbx, %r15
	movl	(%r13), %r8d
	addl	$4, %r8d
	movq	%r12, %rsi
	xorl	%edx, %edx
	movl	$4, %r9d
	callq	_RegSetValueExW
	movl	(%r14), %esi
	movq	%r12, %rdi
	movl	$3, %edx
	callq	_wsprintfW
	movl	-84(%rbp), %edi
	movl	(%rbx), %ecx
	movl	(%r13), %r8d
	addl	$8, %r8d
	movq	%r12, %rsi
	xorl	%edx, %edx
	movl	$4, %r9d
	callq	_RegSetValueExW
	movl	-84(%rbp), %edi
	callq	_RegCloseKey
LBB0_2:
	movq	-96(%rbp), %rsp                 ## 8-byte Reload
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_4
## %bb.3:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_4:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_MAX_PLAYER_NAME_SIZE,4,2       ## @MAX_PLAYER_NAME_SIZE
	.comm	_HKEY_CURRENT_USER,4,2          ## @HKEY_CURRENT_USER
	.comm	_registry_key,4,2               ## @registry_key
	.comm	_REG_OPTION_NON_VOLATILE,4,2    ## @REG_OPTION_NON_VOLATILE
	.comm	_KEY_WRITE,4,2                  ## @KEY_WRITE
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_xposW,8,3                      ## @xposW
	.comm	_REG_DWORD,4,2                  ## @REG_DWORD
	.comm	_yposW,8,3                      ## @yposW
	.comm	_difficultyW,8,3                ## @difficultyW
	.comm	_heightW,8,3                    ## @heightW
	.comm	_widthW,8,3                     ## @widthW
	.comm	_minesW,8,3                     ## @minesW
	.comm	_markW,8,3                      ## @markW
	.comm	_nameW,4,2                      ## @nameW
	.comm	_REG_SZ,4,2                     ## @REG_SZ
	.comm	_timeW,4,2                      ## @timeW
	.no_dead_strip	_SaveBoard
.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.p2align	2                               ; -- Begin function SaveBoard
_SaveBoard:                             ; @SaveBoard
	.cfi_startproc
; %bb.0:
	stp	x28, x27, [sp, #-96]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 96
	stp	x26, x25, [sp, #16]             ; 16-byte Folded Spill
	stp	x24, x23, [sp, #32]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #48]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #64]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #80]             ; 16-byte Folded Spill
	add	x29, sp, #80
	.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
	.cfi_offset w25, -72
	.cfi_offset w26, -80
	.cfi_offset w27, -88
	.cfi_offset w28, -96
	sub	sp, sp, #48
	mov	x19, x0
	mov	x24, sp
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-88]
Lloh3:
	adrp	x8, _MAX_PLAYER_NAME_SIZE@GOTPAGE
Lloh4:
	ldr	x8, [x8, _MAX_PLAYER_NAME_SIZE@GOTPAGEOFF]
Lloh5:
	ldr	w8, [x8]
	add	w21, w8, #1
	lsl	x8, x21, #2
	mov	x9, x8
Lloh6:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh7:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x20, x9, x8
	mov	sp, x20
Lloh8:
	adrp	x8, _HKEY_CURRENT_USER@GOTPAGE
Lloh9:
	ldr	x8, [x8, _HKEY_CURRENT_USER@GOTPAGEOFF]
Lloh10:
	ldr	w0, [x8]
Lloh11:
	adrp	x8, _registry_key@GOTPAGE
Lloh12:
	ldr	x8, [x8, _registry_key@GOTPAGEOFF]
Lloh13:
	ldr	w1, [x8]
Lloh14:
	adrp	x8, _REG_OPTION_NON_VOLATILE@GOTPAGE
Lloh15:
	ldr	x8, [x8, _REG_OPTION_NON_VOLATILE@GOTPAGEOFF]
Lloh16:
	ldr	w4, [x8]
Lloh17:
	adrp	x8, _KEY_WRITE@GOTPAGE
Lloh18:
	ldr	x8, [x8, _KEY_WRITE@GOTPAGEOFF]
Lloh19:
	ldr	w5, [x8]
	str	xzr, [sp, #-16]!
	sub	x7, x29, #124
	mov	w2, #0
	mov	x3, #0
	mov	x6, #0
	bl	_RegCreateKeyExW
	add	sp, sp, #16
Lloh20:
	adrp	x8, _ERROR_SUCCESS@GOTPAGE
Lloh21:
	ldr	x8, [x8, _ERROR_SUCCESS@GOTPAGEOFF]
Lloh22:
	ldr	x8, [x8]
	cmp	x0, x8
	b.ne	LBB0_2
; %bb.1:
	ldur	w0, [x29, #-124]
Lloh23:
	adrp	x8, _xposW@GOTPAGE
Lloh24:
	ldr	x8, [x8, _xposW@GOTPAGEOFF]
Lloh25:
	ldr	x1, [x8]
Lloh26:
	adrp	x25, _REG_DWORD@GOTPAGE
Lloh27:
	ldr	x25, [x25, _REG_DWORD@GOTPAGEOFF]
	ldr	w3, [x25]
	add	w22, w19, #36
	add	w4, w19, #40
	mov	w2, #0
	mov	w5, #4
	bl	_RegSetValueExW
	ldur	w0, [x29, #-124]
Lloh28:
	adrp	x8, _yposW@GOTPAGE
Lloh29:
	ldr	x8, [x8, _yposW@GOTPAGEOFF]
Lloh30:
	ldr	x1, [x8]
	ldr	w3, [x25]
	mov	w2, #0
	mov	x4, x22
	mov	w5, #4
	bl	_RegSetValueExW
	ldur	w0, [x29, #-124]
Lloh31:
	adrp	x8, _difficultyW@GOTPAGE
Lloh32:
	ldr	x8, [x8, _difficultyW@GOTPAGEOFF]
Lloh33:
	ldr	x1, [x8]
	ldr	w3, [x25]
	add	w4, w19, #32
	mov	w2, #0
	mov	w5, #4
	bl	_RegSetValueExW
	ldur	w0, [x29, #-124]
Lloh34:
	adrp	x8, _heightW@GOTPAGE
Lloh35:
	ldr	x8, [x8, _heightW@GOTPAGEOFF]
Lloh36:
	ldr	x1, [x8]
	ldr	w3, [x25]
	add	w4, w19, #28
	mov	w2, #0
	mov	w5, #4
	bl	_RegSetValueExW
	ldur	w0, [x29, #-124]
Lloh37:
	adrp	x8, _widthW@GOTPAGE
Lloh38:
	ldr	x8, [x8, _widthW@GOTPAGEOFF]
Lloh39:
	ldr	x1, [x8]
	ldr	w3, [x25]
	add	w4, w19, #24
	mov	w2, #0
	mov	w5, #4
	bl	_RegSetValueExW
	ldur	w0, [x29, #-124]
Lloh40:
	adrp	x8, _minesW@GOTPAGE
Lloh41:
	ldr	x8, [x8, _minesW@GOTPAGEOFF]
Lloh42:
	ldr	x1, [x8]
	ldr	w3, [x25]
	add	w4, w19, #20
	mov	w2, #0
	mov	w5, #4
	bl	_RegSetValueExW
	ldur	w0, [x29, #-124]
Lloh43:
	adrp	x8, _markW@GOTPAGE
Lloh44:
	ldr	x8, [x8, _markW@GOTPAGEOFF]
Lloh45:
	ldr	x1, [x8]
	ldr	w3, [x25]
	add	w4, w19, #16
	mov	w2, #0
	mov	w5, #4
	bl	_RegSetValueExW
Lloh46:
	adrp	x26, _nameW@GOTPAGE
Lloh47:
	ldr	x26, [x26, _nameW@GOTPAGEOFF]
	ldr	w1, [x26]
	sub	x0, x29, #120
	mov	w2, #1
	bl	_wsprintfW
	ldr	x8, [x19, #8]
	ldr	w1, [x8]
	mov	x0, x20
	mov	x2, x21
	bl	_lstrcpynW
	ldur	w22, [x29, #-124]
Lloh48:
	adrp	x27, _REG_SZ@GOTPAGE
Lloh49:
	ldr	x27, [x27, _REG_SZ@GOTPAGEOFF]
	ldr	w23, [x27]
	mov	x0, x20
	bl	_lstrlenW
	lsl	w8, w0, #2
	add	w5, w8, #4
	sub	x1, x29, #120
	mov	x0, x22
	mov	w2, #0
	mov	x3, x23
	mov	x4, x20
	bl	_RegSetValueExW
	ldr	w1, [x26]
	sub	x0, x29, #120
	mov	w2, #2
	bl	_wsprintfW
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #4]
	mov	x0, x20
	mov	x2, x21
	bl	_lstrcpynW
	ldur	w22, [x29, #-124]
	ldr	w23, [x27]
	mov	x0, x20
	bl	_lstrlenW
	lsl	w8, w0, #2
	add	w5, w8, #4
	sub	x1, x29, #120
	mov	x0, x22
	mov	w2, #0
	mov	x3, x23
	mov	x4, x20
	bl	_RegSetValueExW
	ldr	w1, [x26]
	sub	x0, x29, #120
	mov	w2, #3
	bl	_wsprintfW
	ldr	x8, [x19, #8]
	ldr	w1, [x8, #8]
	mov	x0, x20
	mov	x2, x21
	bl	_lstrcpynW
	ldur	w21, [x29, #-124]
	ldr	w22, [x27]
	mov	x0, x20
	bl	_lstrlenW
	lsl	w8, w0, #2
	add	w5, w8, #4
	sub	x1, x29, #120
	mov	x0, x21
	mov	w2, #0
	mov	x3, x22
	mov	x4, x20
	bl	_RegSetValueExW
Lloh50:
	adrp	x20, _timeW@GOTPAGE
Lloh51:
	ldr	x20, [x20, _timeW@GOTPAGEOFF]
	ldr	w1, [x20]
	sub	x0, x29, #120
	mov	w2, #1
	bl	_wsprintfW
	ldur	w0, [x29, #-124]
	ldr	w3, [x25]
	ldr	w4, [x19]
	sub	x1, x29, #120
	mov	w2, #0
	mov	w5, #4
	bl	_RegSetValueExW
	ldr	w1, [x20]
	sub	x0, x29, #120
	mov	w2, #2
	bl	_wsprintfW
	ldur	w0, [x29, #-124]
	ldr	w3, [x25]
	ldr	w8, [x19]
	add	w4, w8, #4
	sub	x1, x29, #120
	mov	w2, #0
	mov	w5, #4
	bl	_RegSetValueExW
	ldr	w1, [x20]
	sub	x0, x29, #120
	mov	w2, #3
	bl	_wsprintfW
	ldur	w0, [x29, #-124]
	ldr	w3, [x25]
	ldr	w8, [x19]
	add	w4, w8, #8
	sub	x1, x29, #120
	mov	w2, #0
	mov	w5, #4
	bl	_RegSetValueExW
	ldur	w0, [x29, #-124]
	bl	_RegCloseKey
LBB0_2:
	mov	sp, x24
	ldur	x8, [x29, #-88]
Lloh52:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh53:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh54:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_4
; %bb.3:
	sub	sp, x29, #80
	ldp	x29, x30, [sp, #80]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #64]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #48]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #32]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp, #16]             ; 16-byte Folded Reload
	ldp	x28, x27, [sp], #96             ; 16-byte Folded Reload
	ret
LBB0_4:
	bl	___stack_chk_fail
	.loh AdrpLdrGotLdr	Lloh20, Lloh21, Lloh22
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGotLdr	Lloh14, Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh11, Lloh12, Lloh13
	.loh AdrpLdrGotLdr	Lloh8, Lloh9, Lloh10
	.loh AdrpLdrGot	Lloh6, Lloh7
	.loh AdrpLdrGotLdr	Lloh3, Lloh4, Lloh5
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpLdrGot	Lloh50, Lloh51
	.loh AdrpLdrGot	Lloh48, Lloh49
	.loh AdrpLdrGot	Lloh46, Lloh47
	.loh AdrpLdrGotLdr	Lloh43, Lloh44, Lloh45
	.loh AdrpLdrGotLdr	Lloh40, Lloh41, Lloh42
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh31, Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh28, Lloh29, Lloh30
	.loh AdrpLdrGot	Lloh26, Lloh27
	.loh AdrpLdrGotLdr	Lloh23, Lloh24, Lloh25
	.loh AdrpLdrGotLdr	Lloh52, Lloh53, Lloh54
	.cfi_endproc
                                        ; -- End function
	.comm	_MAX_PLAYER_NAME_SIZE,4,2       ; @MAX_PLAYER_NAME_SIZE
	.comm	_HKEY_CURRENT_USER,4,2          ; @HKEY_CURRENT_USER
	.comm	_registry_key,4,2               ; @registry_key
	.comm	_REG_OPTION_NON_VOLATILE,4,2    ; @REG_OPTION_NON_VOLATILE
	.comm	_KEY_WRITE,4,2                  ; @KEY_WRITE
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_xposW,8,3                      ; @xposW
	.comm	_REG_DWORD,4,2                  ; @REG_DWORD
	.comm	_yposW,8,3                      ; @yposW
	.comm	_difficultyW,8,3                ; @difficultyW
	.comm	_heightW,8,3                    ; @heightW
	.comm	_widthW,8,3                     ; @widthW
	.comm	_minesW,8,3                     ; @minesW
	.comm	_markW,8,3                      ; @markW
	.comm	_nameW,4,2                      ; @nameW
	.comm	_REG_SZ,4,2                     ; @REG_SZ
	.comm	_timeW,4,2                      ; @timeW
	.no_dead_strip	_SaveBoard
.subsections_via_symbols
