	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LoadSettings                   ## -- Begin function LoadSettings
	.p2align	4, 0x90
_LoadSettings:                          ## @LoadSettings
	.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	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -48(%rbp)
	movq	$0, -56(%rbp)
	movq	_HKEY_CURRENT_USER@GOTPCREL(%rip), %rbx
	movl	(%rbx), %edi
	movq	_g_szGeneralRegKey@GOTPCREL(%rip), %r12
	movl	(%r12), %esi
	movq	_KEY_READ@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	leaq	-56(%rbp), %r8
	xorl	%edx, %edx
	callq	_RegOpenKeyEx
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %r13
	cmpq	(%r13), %rax
	jne	LBB0_10
## %bb.1:
	movq	%rsp, -64(%rbp)                 ## 8-byte Spill
	movq	_MAX_PATH@GOTPCREL(%rip), %rax
	movl	(%rax), %r15d
	movq	%r15, %rax
	shlq	$2, %rax
	callq	____chkstk_darwin
	addq	$15, %rax
	andq	$-16, %rax
	subq	%rax, %rsp
	movq	%rsp, %r14
	movq	_REG_DWORD@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	movq	%rax, -80(%rbp)
	movq	$1024, -72(%rbp)                ## imm = 0x400
	movl	(%rbx), %ebx
	movl	(%r12), %r12d
	leaq	L_.str(%rip), %rdi
	callq	__T
	movl	%ebx, %edi
	movl	%r12d, %esi
	movq	%rax, %rdx
	movq	%r14, %rcx
	movl	%r15d, %r8d
	callq	_QueryStringValue
	cmpq	(%r13), %rax
	jne	LBB0_4
## %bb.2:
	movq	_hCharmapDlg@GOTPCREL(%rip), %r12
	movl	(%r12), %edi
	movq	_IDC_FONTCOMBO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movq	_hWnd@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	movl	%eax, %edi
	movl	$-1, %esi
	movq	%r14, %rdx
	callq	_ComboBox_FindStringExact
	movq	_CB_ERR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_4
## %bb.3:
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_ComboBox_SetCurSel
	movl	(%r12), %edi
	callq	_ChangeMapFont
LBB0_4:
	movq	_HKEY_CURRENT_USER@GOTPCREL(%rip), %rax
	movl	(%rax), %ebx
	movq	_g_szGeneralRegKey@GOTPCREL(%rip), %rax
	movl	(%rax), %r12d
	leaq	L_.str.1(%rip), %rdi
	callq	__T
	movl	%ebx, %edi
	movl	%r12d, %esi
	movq	%rax, %rdx
	movq	%r14, %rcx
	movl	%r15d, %r8d
	callq	_QueryStringValue
	movq	_ERROR_SUCCESS@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	jne	LBB0_7
## %bb.5:
	movq	_hCharmapDlg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IDC_COMBO_CHARSET@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movq	_hWnd@GOTPCREL(%rip), %rbx
	movl	%eax, (%rbx)
	movl	%eax, %edi
	movl	$-1, %esi
	movq	%r14, %rdx
	callq	_ComboBox_FindStringExact
	movq	_CB_ERR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_7
## %bb.6:
	movl	(%rbx), %edi
	movl	%eax, %esi
	callq	_ComboBox_SetCurSel
LBB0_7:
	movq	-56(%rbp), %rbx
	leaq	L_.str.2(%rip), %rdi
	callq	__T
	leaq	-88(%rbp), %r8
	leaq	-80(%rbp), %rcx
	leaq	-72(%rbp), %r9
	movq	%rbx, %rdi
	movq	%rax, %rsi
	xorl	%edx, %edx
                                        ## kill: def $r8d killed $r8d killed $r8
	callq	_RegQueryValueEx
	movq	-88(%rbp), %rax
	movq	_FALSE@GOTPCREL(%rip), %rcx
	cmpq	(%rcx), %rax
	je	LBB0_9
## %bb.8:
	movq	_hCharmapDlg@GOTPCREL(%rip), %rax
	movl	(%rax), %edi
	movq	_IDC_CHECK_ADVANCED@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	movq	_BM_CLICK@GOTPCREL(%rip), %rax
	movl	(%rax), %edx
	movq	_MF_CHECKED@GOTPCREL(%rip), %rax
	movl	(%rax), %ecx
	xorl	%r8d, %r8d
	callq	_SendDlgItemMessage
LBB0_9:
	movq	-56(%rbp), %rdi
	callq	_RegCloseKey
	movq	-64(%rbp), %rsp                 ## 8-byte Reload
	jmp	LBB0_12
LBB0_10:
	movq	_hCharmapDlg@GOTPCREL(%rip), %r14
	movl	(%r14), %edi
	movq	_IDC_FONTCOMBO@GOTPCREL(%rip), %rax
	movl	(%rax), %esi
	callq	_GetDlgItem
	movl	%eax, %ebx
	movq	_hWnd@GOTPCREL(%rip), %r15
	movl	%eax, (%r15)
	leaq	L_.str.3(%rip), %rdi
	callq	__T
	movl	%ebx, %edi
	movl	$-1, %esi
	movq	%rax, %rdx
	callq	_ComboBox_FindStringExact
	movq	_CB_ERR@GOTPCREL(%rip), %rcx
	cmpl	(%rcx), %eax
	je	LBB0_12
## %bb.11:
	movl	(%r15), %edi
	movl	%eax, %esi
	callq	_ComboBox_SetCurSel
	movl	(%r14), %edi
	callq	_ChangeMapFont
LBB0_12:
	movq	___stack_chk_guard@GOTPCREL(%rip), %rax
	movq	(%rax), %rax
	cmpq	-48(%rbp), %rax
	jne	LBB0_14
## %bb.13:
	leaq	-40(%rbp), %rsp
	popq	%rbx
	popq	%r12
	popq	%r13
	popq	%r14
	popq	%r15
	popq	%rbp
	retq
LBB0_14:
	callq	___stack_chk_fail
	.cfi_endproc
                                        ## -- End function
	.comm	_HKEY_CURRENT_USER,4,2          ## @HKEY_CURRENT_USER
	.comm	_g_szGeneralRegKey,4,2          ## @g_szGeneralRegKey
	.comm	_KEY_READ,4,2                   ## @KEY_READ
	.comm	_ERROR_SUCCESS,8,3              ## @ERROR_SUCCESS
	.comm	_MAX_PATH,4,2                   ## @MAX_PATH
	.comm	_REG_DWORD,8,3                  ## @REG_DWORD
	.section	__TEXT,__cstring,cstring_literals
L_.str:                                 ## @.str
	.asciz	"Font"

	.comm	_hCharmapDlg,4,2                ## @hCharmapDlg
	.comm	_IDC_FONTCOMBO,4,2              ## @IDC_FONTCOMBO
	.comm	_hWnd,4,2                       ## @hWnd
	.comm	_CB_ERR,4,2                     ## @CB_ERR
L_.str.1:                               ## @.str.1
	.asciz	"CodePage"

	.comm	_IDC_COMBO_CHARSET,4,2          ## @IDC_COMBO_CHARSET
L_.str.2:                               ## @.str.2
	.asciz	"Advanced"

	.comm	_FALSE,8,3                      ## @FALSE
	.comm	_IDC_CHECK_ADVANCED,4,2         ## @IDC_CHECK_ADVANCED
	.comm	_BM_CLICK,4,2                   ## @BM_CLICK
	.comm	_MF_CHECKED,4,2                 ## @MF_CHECKED
L_.str.3:                               ## @.str.3
	.asciz	"Arial"

.subsections_via_symbols

	.section	__TEXT,__text,regular,pure_instructions
	.build_version macos, 13, 0	sdk_version 13, 3
	.globl	_LoadSettings                   ; -- Begin function LoadSettings
	.p2align	2
_LoadSettings:                          ; @LoadSettings
	.cfi_startproc
; %bb.0:
	stp	x26, x25, [sp, #-80]!           ; 16-byte Folded Spill
	.cfi_def_cfa_offset 80
	stp	x24, x23, [sp, #16]             ; 16-byte Folded Spill
	stp	x22, x21, [sp, #32]             ; 16-byte Folded Spill
	stp	x20, x19, [sp, #48]             ; 16-byte Folded Spill
	stp	x29, x30, [sp, #64]             ; 16-byte Folded Spill
	add	x29, sp, #64
	.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
	sub	sp, sp, #48
Lloh0:
	adrp	x8, ___stack_chk_guard@GOTPAGE
Lloh1:
	ldr	x8, [x8, ___stack_chk_guard@GOTPAGEOFF]
Lloh2:
	ldr	x8, [x8]
	stur	x8, [x29, #-72]
	stur	xzr, [x29, #-80]
Lloh3:
	adrp	x24, _HKEY_CURRENT_USER@GOTPAGE
Lloh4:
	ldr	x24, [x24, _HKEY_CURRENT_USER@GOTPAGEOFF]
	ldr	w0, [x24]
Lloh5:
	adrp	x26, _g_szGeneralRegKey@GOTPAGE
Lloh6:
	ldr	x26, [x26, _g_szGeneralRegKey@GOTPAGEOFF]
	ldr	w1, [x26]
Lloh7:
	adrp	x8, _KEY_READ@GOTPAGE
Lloh8:
	ldr	x8, [x8, _KEY_READ@GOTPAGEOFF]
Lloh9:
	ldr	w3, [x8]
	sub	x4, x29, #80
	mov	w2, #0
	bl	_RegOpenKeyEx
Lloh10:
	adrp	x25, _ERROR_SUCCESS@GOTPAGE
Lloh11:
	ldr	x25, [x25, _ERROR_SUCCESS@GOTPAGEOFF]
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_10
; %bb.1:
	mov	x23, sp
Lloh12:
	adrp	x8, _MAX_PATH@GOTPAGE
Lloh13:
	ldr	x8, [x8, _MAX_PATH@GOTPAGEOFF]
Lloh14:
	ldr	w20, [x8]
	lsl	x8, x20, #2
	mov	x9, x8
Lloh15:
	adrp	x16, ___chkstk_darwin@GOTPAGE
Lloh16:
	ldr	x16, [x16, ___chkstk_darwin@GOTPAGEOFF]
	blr	x16
	mov	x9, sp
	add	x8, x8, #15
	and	x8, x8, #0x7fffffff0
	sub	x19, x9, x8
	mov	sp, x19
Lloh17:
	adrp	x8, _REG_DWORD@GOTPAGE
Lloh18:
	ldr	x8, [x8, _REG_DWORD@GOTPAGEOFF]
Lloh19:
	ldr	x9, [x8]
	mov	w8, #1024
	stp	x8, x9, [x29, #-104]
	ldr	w21, [x24]
	ldr	w22, [x26]
Lloh20:
	adrp	x0, l_.str@PAGE
Lloh21:
	add	x0, x0, l_.str@PAGEOFF
	bl	__T
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	mov	x3, x19
	mov	x4, x20
	bl	_QueryStringValue
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_4
; %bb.2:
Lloh22:
	adrp	x21, _hCharmapDlg@GOTPAGE
Lloh23:
	ldr	x21, [x21, _hCharmapDlg@GOTPAGEOFF]
	ldr	w0, [x21]
Lloh24:
	adrp	x8, _IDC_FONTCOMBO@GOTPAGE
Lloh25:
	ldr	x8, [x8, _IDC_FONTCOMBO@GOTPAGEOFF]
Lloh26:
	ldr	w1, [x8]
	bl	_GetDlgItem
Lloh27:
	adrp	x22, _hWnd@GOTPAGE
Lloh28:
	ldr	x22, [x22, _hWnd@GOTPAGEOFF]
	str	w0, [x22]
	mov	w1, #-1
	mov	x2, x19
	bl	_ComboBox_FindStringExact
Lloh29:
	adrp	x8, _CB_ERR@GOTPAGE
Lloh30:
	ldr	x8, [x8, _CB_ERR@GOTPAGEOFF]
Lloh31:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_4
; %bb.3:
	mov	x1, x0
	ldr	w0, [x22]
	bl	_ComboBox_SetCurSel
	ldr	w0, [x21]
	bl	_ChangeMapFont
LBB0_4:
	ldr	w21, [x24]
	ldr	w22, [x26]
Lloh32:
	adrp	x0, l_.str.1@PAGE
Lloh33:
	add	x0, x0, l_.str.1@PAGEOFF
	bl	__T
	mov	x2, x0
	mov	x0, x21
	mov	x1, x22
	mov	x3, x19
	mov	x4, x20
	bl	_QueryStringValue
	ldr	x8, [x25]
	cmp	x0, x8
	b.ne	LBB0_7
; %bb.5:
Lloh34:
	adrp	x8, _hCharmapDlg@GOTPAGE
Lloh35:
	ldr	x8, [x8, _hCharmapDlg@GOTPAGEOFF]
Lloh36:
	ldr	w0, [x8]
Lloh37:
	adrp	x8, _IDC_COMBO_CHARSET@GOTPAGE
Lloh38:
	ldr	x8, [x8, _IDC_COMBO_CHARSET@GOTPAGEOFF]
Lloh39:
	ldr	w1, [x8]
	bl	_GetDlgItem
Lloh40:
	adrp	x20, _hWnd@GOTPAGE
Lloh41:
	ldr	x20, [x20, _hWnd@GOTPAGEOFF]
	str	w0, [x20]
	mov	w1, #-1
	mov	x2, x19
	bl	_ComboBox_FindStringExact
Lloh42:
	adrp	x8, _CB_ERR@GOTPAGE
Lloh43:
	ldr	x8, [x8, _CB_ERR@GOTPAGEOFF]
Lloh44:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_7
; %bb.6:
	mov	x1, x0
	ldr	w0, [x20]
	bl	_ComboBox_SetCurSel
LBB0_7:
	ldur	x19, [x29, #-80]
Lloh45:
	adrp	x0, l_.str.2@PAGE
Lloh46:
	add	x0, x0, l_.str.2@PAGEOFF
	bl	__T
	mov	x1, x0
	sub	x3, x29, #96
	sub	x4, x29, #88
	sub	x5, x29, #104
	mov	x0, x19
	mov	x2, #0
	bl	_RegQueryValueEx
	ldur	x8, [x29, #-88]
Lloh47:
	adrp	x9, _FALSE@GOTPAGE
Lloh48:
	ldr	x9, [x9, _FALSE@GOTPAGEOFF]
Lloh49:
	ldr	x9, [x9]
	cmp	x8, x9
	b.eq	LBB0_9
; %bb.8:
Lloh50:
	adrp	x8, _hCharmapDlg@GOTPAGE
Lloh51:
	ldr	x8, [x8, _hCharmapDlg@GOTPAGEOFF]
Lloh52:
	ldr	w0, [x8]
Lloh53:
	adrp	x8, _IDC_CHECK_ADVANCED@GOTPAGE
Lloh54:
	ldr	x8, [x8, _IDC_CHECK_ADVANCED@GOTPAGEOFF]
Lloh55:
	ldr	w1, [x8]
Lloh56:
	adrp	x8, _BM_CLICK@GOTPAGE
Lloh57:
	ldr	x8, [x8, _BM_CLICK@GOTPAGEOFF]
Lloh58:
	ldr	w2, [x8]
Lloh59:
	adrp	x8, _MF_CHECKED@GOTPAGE
Lloh60:
	ldr	x8, [x8, _MF_CHECKED@GOTPAGEOFF]
Lloh61:
	ldr	w3, [x8]
	mov	w4, #0
	bl	_SendDlgItemMessage
LBB0_9:
	ldur	x0, [x29, #-80]
	bl	_RegCloseKey
	mov	sp, x23
	b	LBB0_12
LBB0_10:
Lloh62:
	adrp	x20, _hCharmapDlg@GOTPAGE
Lloh63:
	ldr	x20, [x20, _hCharmapDlg@GOTPAGEOFF]
	ldr	w0, [x20]
Lloh64:
	adrp	x8, _IDC_FONTCOMBO@GOTPAGE
Lloh65:
	ldr	x8, [x8, _IDC_FONTCOMBO@GOTPAGEOFF]
Lloh66:
	ldr	w1, [x8]
	bl	_GetDlgItem
	mov	x19, x0
Lloh67:
	adrp	x21, _hWnd@GOTPAGE
Lloh68:
	ldr	x21, [x21, _hWnd@GOTPAGEOFF]
	str	w0, [x21]
Lloh69:
	adrp	x0, l_.str.3@PAGE
Lloh70:
	add	x0, x0, l_.str.3@PAGEOFF
	bl	__T
	mov	x2, x0
	mov	x0, x19
	mov	w1, #-1
	bl	_ComboBox_FindStringExact
Lloh71:
	adrp	x8, _CB_ERR@GOTPAGE
Lloh72:
	ldr	x8, [x8, _CB_ERR@GOTPAGEOFF]
Lloh73:
	ldr	w8, [x8]
	cmp	w0, w8
	b.eq	LBB0_12
; %bb.11:
	mov	x1, x0
	ldr	w0, [x21]
	bl	_ComboBox_SetCurSel
	ldr	w0, [x20]
	bl	_ChangeMapFont
LBB0_12:
	ldur	x8, [x29, #-72]
Lloh74:
	adrp	x9, ___stack_chk_guard@GOTPAGE
Lloh75:
	ldr	x9, [x9, ___stack_chk_guard@GOTPAGEOFF]
Lloh76:
	ldr	x9, [x9]
	cmp	x9, x8
	b.ne	LBB0_14
; %bb.13:
	sub	sp, x29, #64
	ldp	x29, x30, [sp, #64]             ; 16-byte Folded Reload
	ldp	x20, x19, [sp, #48]             ; 16-byte Folded Reload
	ldp	x22, x21, [sp, #32]             ; 16-byte Folded Reload
	ldp	x24, x23, [sp, #16]             ; 16-byte Folded Reload
	ldp	x26, x25, [sp], #80             ; 16-byte Folded Reload
	ret
LBB0_14:
	bl	___stack_chk_fail
	.loh AdrpLdrGot	Lloh10, Lloh11
	.loh AdrpLdrGotLdr	Lloh7, Lloh8, Lloh9
	.loh AdrpLdrGot	Lloh5, Lloh6
	.loh AdrpLdrGot	Lloh3, Lloh4
	.loh AdrpLdrGotLdr	Lloh0, Lloh1, Lloh2
	.loh AdrpAdd	Lloh20, Lloh21
	.loh AdrpLdrGotLdr	Lloh17, Lloh18, Lloh19
	.loh AdrpLdrGot	Lloh15, Lloh16
	.loh AdrpLdrGotLdr	Lloh12, Lloh13, Lloh14
	.loh AdrpLdrGotLdr	Lloh29, Lloh30, Lloh31
	.loh AdrpLdrGot	Lloh27, Lloh28
	.loh AdrpLdrGotLdr	Lloh24, Lloh25, Lloh26
	.loh AdrpLdrGot	Lloh22, Lloh23
	.loh AdrpAdd	Lloh32, Lloh33
	.loh AdrpLdrGotLdr	Lloh42, Lloh43, Lloh44
	.loh AdrpLdrGot	Lloh40, Lloh41
	.loh AdrpLdrGotLdr	Lloh37, Lloh38, Lloh39
	.loh AdrpLdrGotLdr	Lloh34, Lloh35, Lloh36
	.loh AdrpLdrGotLdr	Lloh47, Lloh48, Lloh49
	.loh AdrpAdd	Lloh45, Lloh46
	.loh AdrpLdrGotLdr	Lloh59, Lloh60, Lloh61
	.loh AdrpLdrGotLdr	Lloh56, Lloh57, Lloh58
	.loh AdrpLdrGotLdr	Lloh53, Lloh54, Lloh55
	.loh AdrpLdrGotLdr	Lloh50, Lloh51, Lloh52
	.loh AdrpLdrGotLdr	Lloh71, Lloh72, Lloh73
	.loh AdrpAdd	Lloh69, Lloh70
	.loh AdrpLdrGot	Lloh67, Lloh68
	.loh AdrpLdrGotLdr	Lloh64, Lloh65, Lloh66
	.loh AdrpLdrGot	Lloh62, Lloh63
	.loh AdrpLdrGotLdr	Lloh74, Lloh75, Lloh76
	.cfi_endproc
                                        ; -- End function
	.comm	_HKEY_CURRENT_USER,4,2          ; @HKEY_CURRENT_USER
	.comm	_g_szGeneralRegKey,4,2          ; @g_szGeneralRegKey
	.comm	_KEY_READ,4,2                   ; @KEY_READ
	.comm	_ERROR_SUCCESS,8,3              ; @ERROR_SUCCESS
	.comm	_MAX_PATH,4,2                   ; @MAX_PATH
	.comm	_REG_DWORD,8,3                  ; @REG_DWORD
	.section	__TEXT,__cstring,cstring_literals
l_.str:                                 ; @.str
	.asciz	"Font"

	.comm	_hCharmapDlg,4,2                ; @hCharmapDlg
	.comm	_IDC_FONTCOMBO,4,2              ; @IDC_FONTCOMBO
	.comm	_hWnd,4,2                       ; @hWnd
	.comm	_CB_ERR,4,2                     ; @CB_ERR
l_.str.1:                               ; @.str.1
	.asciz	"CodePage"

	.comm	_IDC_COMBO_CHARSET,4,2          ; @IDC_COMBO_CHARSET
l_.str.2:                               ; @.str.2
	.asciz	"Advanced"

	.comm	_FALSE,8,3                      ; @FALSE
	.comm	_IDC_CHECK_ADVANCED,4,2         ; @IDC_CHECK_ADVANCED
	.comm	_BM_CLICK,4,2                   ; @BM_CLICK
	.comm	_MF_CHECKED,4,2                 ; @MF_CHECKED
l_.str.3:                               ; @.str.3
	.asciz	"Arial"

.subsections_via_symbols
